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
what 's the diffrent between offline and offline drop

what 's the diffrent between offline and offline drop

2004-12-27       - By Alex
Reply:     1     2     3     4  

Hi oracle-l

i did a test about 'alter database datafile xxx offline (drop) '
it seems for the end user, there is no diffrent. i can recover the datafile and take the datafile online even i offline drop the datafile.

SQL > select * from v$version;

BANNER
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
PL/SQL Release 8.1.7.0.0 - Production
CORE 8.1.7.0.0 Production
TNS for 32-bit Windows: Version 8.1.7.0.0 - Production
NLSRTL Version 3.4.1.0.0 - Production

SQL > select name from v$datafile;

NAME
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
C:\ORACLE\ORADATA\ALEX\SYSTEM01.DBF
C:\ORACLE\ORADATA\ALEX\RBS01.DBF
C:\ORACLE\ORADATA\ALEX\USERS01.DBF
C:\ORACLE\ORADATA\ALEX\TEMP01.DBF
C:\ORACLE\ORADATA\ALEX\TOOLS01.DBF
C:\ORACLE\ORADATA\ALEX\INDX01.DBF

6 rows selected.

SQL > alter database datafile 'C:\ORACLE\ORADATA\ALEX\TOOLS01.DBF ' offline;

Database altered.

SQL > alter database datafile 'C:\ORACLE\ORADATA\ALEX\TOOLS01.DBF ' online;
alter database datafile 'C:\ORACLE\ORADATA\ALEX\TOOLS01.DBF ' online
*
ERROR at line 1:
ORA-01113 (See ORA-01113.ora-code.com): file 5 needs media recovery
ORA-01110 (See ORA-01110.ora-code.com): data file 5: 'C:\ORACLE\ORADATA\ALEX\TOOLS01.DBF '


SQL > recover datafile 'C:\ORACLE\ORADATA\ALEX\TOOLS01.DBF ';
Media recovery complete.
SQL > alter database datafile 'C:\ORACLE\ORADATA\ALEX\TOOLS01.DBF ' online;

Database altered.

SQL >
SQL > alter database datafile 'C:\ORACLE\ORADATA\ALEX\TOOLS01.DBF ' offline drop;

Database altered.

SQL > alter database datafile 'C:\ORACLE\ORADATA\ALEX\TOOLS01.DBF ' online;
alter database datafile 'C:\ORACLE\ORADATA\ALEX\TOOLS01.DBF ' online
*
ERROR at line 1:
ORA-01113 (See ORA-01113.ora-code.com): file 5 needs media recovery
ORA-01110 (See ORA-01110.ora-code.com): data file 5: 'C:\ORACLE\ORADATA\ALEX\TOOLS01.DBF '


SQL > recover datafile 'C:\ORACLE\ORADATA\ALEX\TOOLS01.DBF ';
Media recovery complete.
SQL > alter database datafile 'C:\ORACLE\ORADATA\ALEX\TOOLS01.DBF ' online;

Database altered.
   

    Thanks
            Alex

tech_a@(protected)
2004-12-27


--
http://www.freelists.org/webpage/oracle-l