.ora-code.com

Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
backup of offline dropped datafile

backup of offline dropped datafile

2005-12-25       - By zhu chao
Reply:     1     2     3     4     5     6  

If it is locally managed tablespace, then oracle will not try to allocate
new extents to the offline dropped datafile.

If it is dictionary managed tablespace, then oracle will do that wrong
thing. And it found no file to write, then there will be no segment data ,
but some empty extent in the datafile.

Seems the original poster's DB is in noarchivelog mode. So the best solution
would be export the damanged tablespace and then drop and recreate it,
import it back. Or create a new tablespace and then move the tables one by
one during outage time.

On 12/24/05, Tanel Põder <tanel.poder.003@(protected)> wrote:
>
> Hi,
>
> > From the scenario that Koen described, it doesn't look that storage been
> > allocated for any objects in the dropped data file, so queries against
> > objects
> > shoudn't fail.
>
> If there is any table/index segment which had it's segment header block in
> the offline datafile, most queries against it will definitely fail
> (exceptions would be accessing table using ROWID access path or a cluster
> access, which doesn't have to read segment header).
>
> Index root blocks are always immediately next to segment header block, so
> indexe scans would fail.
>
> I don't have access to an Oracle DB right now, but you could try to
> allocate
> extents to a table in your USERS tablespace to see whether it will hit a
> "file inaccessible" error or not. It used to, but could be changed in
> later
> versions (although I don't really why Oracle would do that, because an
> offline drop renders tablespace physically invalid and it's only mean is
> getting rid of a corrupt/lost datafile, followed by drop tablespace).
>
> > Even if you recreate controlfiles/resetlogs (from backup or from trace),
> > offline datafile will still apear in v$datafile - there is nothing you
> can
> > do
> > about it - but from my understanding it should not cause any issue.
>
> See above, offline drop renders tablespace invalid, everything done in the
> tablespace after it is hacking.
>
> Tanel.
>
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>


--
Regards
Zhu Chao
www.cnoug.org

<div>If it is locally managed tablespace, then oracle will not try to allocate
new extents to the offline dropped datafile.</div>
<div>&nbsp;</div>
<div>If it is dictionary managed tablespace, then oracle will do that wrong
thing. And it found no file to write, then there will be no segment data , but
some&nbsp;empty extent&nbsp;in the datafile. <br><br>Seems the original poster
's DB is in noarchivelog mode. So the best solution would be export the damanged
tablespace and then drop and recreate it, import it back. Or create a new
tablespace and then move the tables one by one during outage time.
</div>
<div>&nbsp;</div>
<div><span class="gmail_quote">On 12/24/05, <b class="gmail_sendername">Tanel
Põder</b> &lt;<a href="mailto:tanel.poder.003@(protected)">tanel.poder.003@(protected)<
/a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0
.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>&gt; From the scenario that Koen
described, it doesn't look that storage been<br>&gt; allocated for any objects
in the dropped data file, so queries against
<br>&gt; objects<br>&gt; shoudn't fail.<br><br>If there is any table/index
segment which had it's segment header block in<br>the offline datafile, most
queries against it will definitely fail<br>(exceptions would be accessing table
using ROWID access path or a cluster
<br>access, which doesn't have to read segment header).<br><br>Index root
blocks are always immediately next to segment header block, so<br>indexe scans
would fail.<br><br>I don't have access to an Oracle DB right now, but you could
try to allocate
<br>extents to a table in your USERS tablespace to see whether it will hit a<br
>&quot;file inaccessible&quot; error or not. It used to, but could be changed in
later<br>versions (although I don't really why Oracle would do that, because an
<br>offline drop renders tablespace physically invalid and it's only mean is<br
>getting rid of a corrupt/lost datafile, followed by drop tablespace).<br><br>
&gt; Even if you recreate controlfiles/resetlogs (from backup or from trace),
<br>&gt; offline datafile will still apear in v$datafile - there is nothing you
can<br>&gt; do<br>&gt; about it - but from my understanding it should not cause
any issue.<br><br>See above, offline drop renders tablespace invalid,
everything done in the
<br>tablespace after it is hacking.<br><br>Tanel.<br><br>--<br><a href="http:/
/www.freelists.org/webpage/oracle-l">http://www.freelists.org/webpage/oracle-l<
/a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>
Regards<br>Zhu Chao<br><a href="http://www.cnoug.org">www.cnoug.org</a><br>