Datafile offline drop
Dear all,
In my DB, one datafile got corrupted. DB running in noarchive log mode. I took a complete export of the DB. now I took the datafile offline by
alter database datafile 7 offline drop;
now I can able to open the database, now what should I do ?.. still in dba_data_files, this corrupted file is shown..shall I drop this file alone ?.. how ?..I have already 2 other datafiles in the same tablespace ..
Kai
In my DB, one datafile got corruptedHOW??
alter database datafile 7 offline drop; It seems you are using version lower than 10g.This will offline the datafile with the intention of dropping the tablespace.Oracle no longer attempts to access it, but it is still considered part of that tablespace.The datafile is marked offline in the controlfile.So, you will see the datafile in the dba_data_files.The data in the offline datafile won't be available to the users.
But from 10g and higher version, you can finally drop the datafile
alter tablespace tbs_name drop datafile 'datafile_name';
10g link [http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dfiles.htm#sthref1396]
now I can able to open the database, now what should I do ?What actually you want to do. what do you want to do.
HTH
Anand
Similar Messages
-
Datafile Offline dropped.
I have added a datafile to a tablespace and did the offline drop immediately since it was not adhering to the naming convention.
Is their a way I can get rid off that file since the controlfile still has that entry.
I can't drop and recreate the tablespace bec. of the size constraint (250GB).
DB version: 9.2.0.7
Any help would be really appreciable.Hi
Have a look at Note:111316.1.
Hope this Helps
Regards -
Hi gurus!!!
I got into a problem with some datafiles.
We have MySAP in a BD oracle 9.2.0.6
I used Oracle Entreprise Manager Console to generate two datafiles in the tablespace PSAPPRDUSR,
but I generated them in another tablesapce (PSAPPRD) with a name of file,
size and location very different from those that there uses the tablespace PSAPPRD.
<b>So... I put them offline later to erase them later!!!</b>
<b>The datafiles contains no data.</b>
<b>Later, in the night backup:</b>
BR0334W Status of database file /oracle/PRD/sapdata4/prdusr_2/prdusr.data2 is RECOVER
BR0334W Status of database file /oracle/PRD/sapdata4/prdusr_2/prdusr.data2a is RECOVER
BR0301E SQL error -1128 at location BrTspAlter-3
ORA-01128: cannot start online backup - file 31 is offline
ORA-01110: data file 31: '/oracle/PRD/sapdata4/prdusr_2/prdusr.data2'
BR0280I BRBACKUP time stamp: 2007-04-20 03.01.21
BR0316E 'Alter tablespace PSAPPRD begin backup' failed
BR0056I End of database backup: bdvbtndh.ant 2007-04-20 03.01.21
<b>
And now... I neither can erase them nor can put online again.</b>
<b>To erase them I used:</b>
SQL> ALTER DATABASE DATAFILE '/oracle/PRD/sapdata4/prdusr_2/prdusr.data2' OFFLINE DROP;
Database altered.
SQL> commit;
But they continue there, do not resign.
<b>To put them online:</b>
SQL> alter database recover datafile '/oracle/PRD/sapdata4/prdusr_2/prdusr.data2';
alter database recover datafile '/oracle/PRD/sapdata4/prdusr_2/prdusr.data2'
ERROR at line 1:
ORA-00279: change 31203204 generated at 04/19/2007 19:30:11 needed for thread 1
ORA-00289: suggestion : /oracle/PRD/oraarch/PRDarch1_2574.dbf
ORA-00280: change 31203204 for thread 1 is in sequence #2574
SQL>
<b>But we have continued working and I don't want to lose any data.</b>
HEEEELP!!!!
What I can do to recover the datafiles and to continue with my daily Online backups?
The BD is in production and I do not have long time to fix it, only a few hours on Saturdays night.Hi,
alter database datafile offline drop;
This command is not meant to drop a datafile. It is meant to offline the datafile with the intention of dropping the tablespace.
For a tablespace comprising multiple datafiles you can only drop a datafile by dropping the entire tablespace, this will work even you have one datafile.
If you have 10gr2, it's finally possible to drop a datafile as long as
it's not the only datafile within the tablespace, and
the tablespace is only and in read-write status.
So since you are on 9i your situation in summary:
If you have more than one datafile in the tablespace and you wish to keep the objects that reside in the other datafile(s) which are part of this tablespace, then you must export all the objects inside the tablespace.
1. Gather information on the current datafiles within the tablespace by running some query to remember the t/s, segment, and datafile info.
2. Export all the objects that you wish to keep.
3. Once the export is done, issue the DROP TABLESPACE <tablespace name> INCLUDING CONTENTS.
4. Delete the datafiles belonging to this tablespace using the operating system.
5. Recreate the tablespace with the datafile(s) desired, then import the objects into that tablespace.
Hope this helps and good luck,
George -
After offline drop datafile, v$datafile.status='RECOVER'
OS version:
[oracle@base ~]$ uname -a
Linux base.no.sohu.com 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
DB version:
SQL> select version from v$instance;
VERSION
9.2.0.1.0Here is my steps,
SQL>alter database datafile '/usr/oradata/bill/soq05.dbf' offline;
Database altered.
SQL>alter database datafile '/usr/oradata/bill/soq05.dbf' offline drop;
Database altered.Cause there is nothing errors generated, I thought the commands executed sucessfully. But it's not.
SQL> SELECT NAME,STATUS FROM v$datafile WHERE NAME='/usr/oradata/bill/soq05.dbf';
NAME STATUS
/usr/oradata/bill/soq05.dbf RECOVER
SQL> SELECT FILE#, STATUS, ERROR, RECOVER, TABLESPACE_NAME, NAME
2 FROM V$DATAFILE_HEADER
3 WHERE RECOVER = 'YES' OR (RECOVER IS NULL AND ERROR IS NOT NULL);
FILE# STATUS ERROR RECOVER TABLESPACE_NAME NAME
18 OFFLINE YES SOQ /usr/oradata/bill/soq05.dbf
[oracle@base ~]$ ll /usr/oradata/bill/soq05.dbf
-rw-r----- 1 oracle oinstall 1073750016 Aug 28 17:39 /usr/oradata/bill/soq05.dbfThe datafile haven't been droped successfully and its status changed to 'RECOVER'. Also, I can't online it now.
What should I do to make this datafile droped or at least make it online/offline? What I am worry is the database will be failed to restart because of this 'RECOVER' datafile.
Thanks very much!
SatineHey Werner,
Thanks very much for your help.
The reason I tried to drop the datafile is after I add the datafile to tablespace, I found the datafile failed to be created on the standby side because the parameter "db_file_name_convert"'s value were incorrect. When I created the datafile on primary side, the value of "db_file_name_convert" was,
SQL> select name,value from v$parameter where name='db_file_name_convert';
NAME VALUE
db_file_name_convert /home/oracle/bill/oradata/bill, /U02/bill/oradata/billIt should be VALUE='/usr/oradata/bill','/U02/bill/oradata/bill'. For now the datafile's status on standby side is,
SQL> SELECT name,status FROM V$DATAFILE where file#=18;
NAME STATUS
/U02/bill/product/9.2.0.1/dbs/UNNAMED00018 RECOVERIf the datafile on primary side could been recovered successfully, is there a way to make the datafile on standby side also correct?
Thanks
Satine -
Create standby having offline dropped datafile .
Hi,
How to deal with offline dropped datafiles on source when creating standby .
I've 4 node rac, and one tablespace offline and related bigdatafile droped offline (because of corruption).
SQL> select tablespace_name , status from dba_tablespaces order by status ;
TABLESPACE_NAME STATUS
OLD_TBS OFFLINE
SQL> select TS#,STATUS,ENABLED from v$datafile order by status;
TS# STATUS ENABLED
16 OFFLINE DISABLED
Its 4 node RAC 10.2.0.3 and ASM .
select name,TS#,STATUS,ENABLED from v$datafile order by status
+DBG1/dbname/datafile/bigfile.279.615031073
Currently I'm doing something like that
rman target /
catalog backuppiece '/oarch/backup/bigfile.279.615031073';
run{
allocate channel ch1 type disk;
SET NEWNAME FOR DATAFILE 16 TO '+DBG1';
restore datafile 16 from tag='TAG20100209T124507';
SWITCH DATAFILE 16;
release channel ch1;
and then after duplicate is end
SQL> alter database datafile 16 offline drop;
SQL> recover automatic standby database;Please advice.
Regards
GregGHi GregG,
I think there is no requirement to file the request with Oracle. :-) Please check the below testcase where I tried to simulate the scenario this time by using RMAN.
Primary Database: oraprd
Physical Standby database: oraphy
SYS @ oraprd>select tablespace_name,file_id from dba_data_files;
TABLESPACE_NAME FILE_ID
SYSTEM 1
SYSAUX 2
UNDOTBS1 3
USERS 4
TEST 5
SYS @ oraprd>select TS#,file#,STATUS,ENABLED from v$datafile order by status;
TS# FILE# STATUS ENABLED
6 5 OFFLINE DISABLED
1 2 ONLINE READ WRITE
2 3 ONLINE READ WRITE
4 4 ONLINE READ WRITE
0 1 SYSTEM READ WRITEConfigure catalog (controlfile) to exclude an offline tablespace TEST and perform the full database backup with standby control file
C:\>rman target sys/abc123@oraprd
connected to target database: ORAPRD (DBID=2633932676)
RMAN> configure exclude for tablespace 'TEST';
using target database control file instead of recovery catalog
Tablespace TEST will be excluded from future whole database backups
new RMAN configuration parameters are successfully storedprimary database backup with standby control file
RMAN> run{
2> allocate channel d1 type disk;
3> allocate channel d2 type disk;
4> backup database format 'c:\temp\rman_oraprd_%U.bkp';
5> backup archivelog all format 'c:\temp\rman_arch_%U.bkp';
6> backup current controlfile for standby format 'c:\temp\rman_standby_%U.bkp';
7> }
released channel: ORA_DISK_1
allocated channel: d1
channel d1: SID=9 device type=DISK
allocated channel: d2
channel d2: SID=143 device type=DISK
Starting backup at 15-JUN-12
file 5 is excluded from whole database backup <===
channel d1: starting full datafile backup set
channel d1: specifying datafile(s) in backup set
input datafile file number=00001 name=C:\APP\XYZ\ORADATA\ORAPRD\ORAPRD\DATAFILE\O1_MF_SYSTEM_DATA_D-ORA11PRD_I-2924940358_TS-SYSTEM_FNO-1_07NDBK6A_.DBF
input datafile file number=00003 name=C:\APP\XYZ\ORADATA\ORAPRD\ORAPRD\DATAFILE\O1_MF_UNDOTBS1_DATA_D-ORA11PRD_I-2924940358_TS-UNDOTBS1_FNO-3_0ANDBK7H_.DBF
channel d1: starting piece 1 at 15-JUN-12
channel d2: starting full datafile backup set
channel d2: specifying datafile(s) in backup set
input datafile file number=00002 name=C:\APP\XYZ\ORADATA\ORAPRD\ORAPRD\DATAFILE\O1_MF_SYSAUX_DATA_D-ORA11PRD_I-2924940358_TS-SYSAUX_FNO-2_08NDBK6A_.DBF
input datafile file number=00004 name=C:\APP\XYZ\ORADATA\ORAPRD\ORAPRD\DATAFILE\O1_MF_USERS_DATA_D-ORA11PRD_I-2924940358_TS-USERS_FNO-4_09NDBK6B_.DBF
channel d1: specifying datafile(s) in backup set
including standby control file in backup set
channel d1: starting piece 1 at 15-JUN-12
channel d1: finished piece 1 at 15-JUN-12
piece handle=C:\TEMP\RMAN_STANDBY_0VNDJJR2_1_1.BKP tag=TAG20120615T123858 commen
t=NONE
channel d1: backup set complete, elapsed time: 00:00:03
Finished backup at 15-JUN-12
released channel: d1
released channel: d2
RMAN> exitBuild the physical standby database using RMAN
C:\>rman target sys/abc123@oraprd auxiliary sys/abc123@oraphy
connected to target database: ORAPRD (DBID=2633932676)
connected to auxiliary database: ORAPRD (not mounted)
RMAN>
RMAN> run{
2> allocate auxiliary channel a1 type disk;
3> allocate auxiliary channel a2 type disk;
4> duplicate target database for standby nofilenamecheck;
5> }
using target database control file instead of recovery catalog
allocated channel: a1
channel a1: SID=134 device type=DISK
allocated channel: a2
channel a2: SID=10 device type=DISK
Starting Duplicate Db at 15-JUN-12
contents of Memory Script:
restore clone standby controlfile;
executing command: SET NEWNAME
Starting restore at 15-JUN-12
file 5 is excluded from whole database backup <==
channel a1: starting datafile backup set restore
channel a1: specifying datafile(s) to restore from backup set
channel a1: restoring datafile 00002 to C:\APP\XYZ\ORADATA\ORAPRD\ORAPHY\DATAFILE\O1_MF_SYSAUX_DATA_D-ORA11PRD_I-2924940358_TS-SYSAUX_FNO-2_08NDBK6A_.DBF
channel a1: restoring datafile 00004 to C:\APP\XYZ\ORADATA\ORAPRD\ORAPHY\DATAFILE\O1_MF_USERS_DATA_D-ORA11PRD_I-2924940358_TS-USERS_FNO-4_09NDBK6B_.DBF
channel a1: reading from backup piece C:\TEMP\RMAN_ORAPRD_0PNDJJN7_1_1.BKP
datafile 3 switched to datafile copy
input datafile copy RECID=10 STAMP=786026596 file name=C:\APP\XYZ\ORADATA\ORAPHY\ORAPHY\DATAFILE\O1_MF_UNDOTBS1_7XPWYO19_.DBF
datafile 4 switched to datafile copy
input datafile copy RECID=11 STAMP=786026596 file name=C:\APP\XYZ\ORADATA\ORAPHY\ORAPHY\DATAFILE\O1_MF_USERS_7XPWYN8N_.DBF
Finished Duplicate Db at 15-JUN-12
released channel: a1
released channel: a2
RMAN>start the managed recovery
SYS @ oraphy>recover managed standby database disconnect;
Media recovery complete.
SYS @ oraphy>select TS#,file#,STATUS,ENABLED from v$datafile order by status;
TS# FILE# STATUS ENABLED
6 5 OFFLINE DISABLED
1 2 ONLINE READ WRITE
2 3 ONLINE READ WRITE
4 4 ONLINE READ WRITE
0 1 SYSTEM READ WRITE
SYS @ oraphy>select thread#,sequence#,process,status from v$managed_standby;
THREAD# SEQUENCE# PROCESS STATUS
1 24 RFS IDLE
1 22 MRP0 WAIT_FOR_GAP <---------------
....archive the current log on the primary database
SYS @ oraprd>select thread#,sequence#,status from v$log;
THREAD# SEQUENCE# STATUS
1 22 INACTIVE
1 23 ACTIVE
1 24 CURRENT
SYS @ oraprd>alter system archive log current;
System altered.
SYS @ oraphy>select thread#,sequence#,process,status from v$managed_standby;
THREAD# SEQUENCE# PROCESS STATUS
1 25 RFS IDLE
1 25 MRP0 WAIT_FOR_LOG <-------- the recovery is in progress on the standby database.
....Regards,
Vaibhav -
Taking the datafile offline when the database is in NOARCHIVELOG mode
My question is when the database is in No Archive log mode i'm not able to take the datafile offline.
When i tried in my computer i have noticed fallowing.
case1:
SYS>alter database datafile 5 offline;
ERROR at line1;
ORA-01145:offline immediate disallowed unless media recovery enabled.
case 2:
SYS>alter database datafile 5 offline immediate;
ERROR at line 1;
ORA-00933:SQL command not properly ended
case3:
I have tried the command alter database datafile 6 offline drop; (in NOARCHIVELOG mode) and it is showing the same effect as alter database datafile 6 offline; ( in ARCHIVELOG mode).
*In the NOARCHIVELOG mode are we really dropping the datafile to take the datafile offline? Will you please tell me the effect of keyword drop.JohnWatson wrote:
You've marked your question answered - was that a mistake?
The answer is that you cannot directly take a datafile offline in noarchivelog mode. You must take the tablespace offline:
Hmm, are you certain about that? Perhaps I'm missing something.
SQL> select file_id, file_name, online_status, status from dba_data_files where tablespace_name = 'USERS';
FILE_ID FILE_NAME ONLINE_ STATUS
4 /u01/app/oracle/oradata/TEST/users01.dbf ONLINE AVAILABLE
SQL> select log_mode from v$database;
LOG_MODE
NOARCHIVELOG
SQL> alter database datafile 4 offline drop;
Database altered.
SQL> select file_id, file_name, online_status, status from dba_data_files where tablespace_name = 'USERS';
FILE_ID FILE_NAME ONLINE_ STATUS
4 /u01/app/oracle/oradata/TEST/users01.dbf RECOVER AVAILABLE
SQL> ALTER SYSTEM FLUSH BUFFER_CACHE; <-- may not have been necessary
System altered.
SQL> select count(*) from scott.emp;
select count(*) from scott.emp
ERROR at line 1:
ORA-00376: file 4 cannot be read at this time
ORA-01110: data file 4: '/u01/app/oracle/oradata/TEST/users01.dbf'
SQL> recover datafile 4;
Media recovery complete.
SQL> select file_id, file_name, online_status, status from dba_data_files where tablespace_name = 'USERS';
FILE_ID FILE_NAME ONLINE_ STATUS
4 /u01/app/oracle/oradata/TEST/users01.dbf OFFLINE AVAILABLE
SQL> alter database datafile 4 online;
Database altered.
SQL> select file_id, file_name, online_status, status from dba_data_files where tablespace_name = 'USERS';
FILE_ID FILE_NAME ONLINE_ STATUS
4 /u01/app/oracle/oradata/TEST/users01.dbf ONLINE AVAILABLE
SQL> select count(*) from scott.emp;
COUNT(*)
14
Also, please see the following link from the manual which discusses altering data file availability in noarchivelog mode.
Altering Datafile Availability -
Problem To Recover Database (Cannot Take Datafile Offline)
Hi
I have a Oracle10g Database in Linux ...
By Mistake I Delete one Datafile From. Now I can't Start My Database..
I am Tring to get Offline The Deleted Data File..But can't do it..
To Detail of my Work is geven bellow....
SQL> startup mount
ORACLE instance started.
Total System Global Area 281018368 bytes
Fixed Size 1218968 bytes
Variable Size 83887720 bytes
Database Buffers 192937984 bytes
Redo Buffers 2973696 bytes
Database mounted.
SQL> alter database open
2 ;
alter database open
ERROR at line 1:
ORA-01122: database file 6 failed verification check
ORA-01110: data file 6: '/u01/app/oracle/db_2/dbs/DNS_DATA_1'
ORA-01251: Unknown File Header Version read for file number 6
SQL> alter database datafile '/u01/app/oracle/db_2/dbs/DNS_DATA_1' offline immediate;
alter database datafile '/u01/app/oracle/db_2/dbs/DNS_DATA_1' offline immediate
ERROR at line 1:
ORA-00933: SQL command not properly ended
SQL> alter database datafile '/u01/app/oracle/db_2/dbs/DNS_DATA_1' offline;
alter database datafile '/u01/app/oracle/db_2/dbs/DNS_DATA_1' offline
ERROR at line 1:
ORA-01145: offline immediate disallowed unless media recovery enabled
SQL>
Any One pls Help me...Seems that your DB is running in NOARCHIVELOG mode : try using "offline drop" :
SQL> alter database datafile '/u01/app/oracle/db_2/dbs/DNS_DATA_1' offline drop; -
I am using oracle 8i and turned a data file offline by :
ALTER DATABASE DATAFILE '/ua01/oradata/hdb1/tmp01.dbf' OFFLINE DROP;
However, the status in dba_data_files is still AVAILABLE, is it correct?
Regards,
JimmyI am using oracle 8i and turned a data file offline
However, the status in dba_data_files is still AVAILABLE, is it correct?Yes this behaviour is correct and this link will give you an explanation.
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:515222144417 -
Deleted undo datafile before dropping the tablespace.
i had accidently deleted a undo datafile which was no more needed before dropping the tablespace.
i started up the database in mount stage by making that datafile offline.
now while dropping the database it is giving an error.
SQL> drop tablespace UNDOTBS1 ;
drop tablespace UNDOTBS1
ERROR at line 1:
ORA-01548: active rollback segment '_SYSSMU1$' found, terminate dropping tablespace
Do someone have a resolution. I dnt need this tablespace anymore.http://www.my-whiteboard.com/oracle-dba/how-to-drop-and-recreate-oracle-undo-tablespace-and-its-data-files.html may be helpful to you.
-
Automatic datafile offline due to write error
Hi,
Our SAP system are down. In the alert.log file, i found that one of the files are being locked by third party backup software.
I'm new to both oracle and basis, pls advise the steps to recover the database. Thank you.
The error in the alert log file:
Errors in file f:\oracle\p02\saptrace\background\p02_lgwr_3896.trc:
ORA-00345: redo log write error block 8404 count 2
ORA-00312: online log 3 thread 1: 'D:\ORACLE\P02\ORIGLOGA\LOG_G13M1.DBF'
ORA-27072: File I/O error
OSD-04008: WriteFile() failure, unable to write to file
O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.
Sat Oct 25 00:23:12 2008
Errors in file f:\oracle\p02\saptrace\background\p02_lgwr_3896.trc:
ORA-00343: too many errors, log member closed
ORA-00346: log member marked as STALE
ORA-00312: online log 3 thread 1: 'D:\ORACLE\P02\ORIGLOGA\LOG_G13M1.DBF'
Sat Oct 25 00:26:04 2008
Incremental checkpoint up to RBA [0x1c1b.2079.0], current log tail at RBA [0x1c1b.20dc.0]
Sat Oct 25 00:35:18 2008
KCF: write/open error block=0x3f7c6 online=1
file=5 G:\ORACLE\P02\SAPDATA1\SR3_2\SR3.DATA2
error=27072 txt: 'OSD-04008: WriteFile() failure, unable to write to file
O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.'
Automatic datafile offline due to write error on
file 5: G:\ORACLE\P02\SAPDATA1\SR3_2\SR3.DATA2
Sat Oct 25 00:35:19 2008
KCF: write/open error block=0x3f7c4 online=1
file=5 G:\ORACLE\P02\SAPDATA1\SR3_2\SR3.DATA2
error=27070 txt: 'OSD-04016: Error queuing an asynchronous I/O request.
O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.'
Automatic datafile offline due to write error on
file 5: G:\ORACLE\P02\SAPDATA1\SR3_2\SR3.DATA2
Sat Oct 25 00:36:00 2008
KCF: write/open error block=0x37f74 online=1
file=7 G:\ORACLE\P02\SAPDATA1\SR3_4\SR3.DATA4
error=27072 txt: 'OSD-04008: WriteFile() failure, unable to write to file
O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.'
Automatic datafile offline due to write error on
file 7: G:\ORACLE\P02\SAPDATA1\SR3_4\SR3.DATA4
Sat Oct 25 00:45:49 2008
Errors in file f:\oracle\p02\saptrace\usertrace\p02_ora_3876.trc:
ORA-00600: internal error code, arguments: [kdtdelrow-2], [2], [2], [], [], [], [], []
ORA-00376: file 5 cannot be read at this time
ORA-01110: data file 5: 'G:\ORACLE\P02\SAPDATA1\SR3_2\SR3.DATA2'Hi
As alway use this information for research purposes only.
I presume that Oracle and SAP application servers are down.
Now would be a good time to make a backup image of your crippled system.
This way you can always get back to this state if needed.
So do an offline backup if possible.
It looks like a log file is damaged or deleted. You may find that you have a
mirror image of it so this might not be the end of the world.
If you have oracle up to the mount point e.g.
startup mount
then you should be able to acces the v$logfile
select GROUP#,STATUS,MEMBER from v$logfile;
This will show you whether the have a mirror setup for the log file you need.
Make sure all the files outlined in this output exist.
e.g. do a DIR in the parant directory.
Post all the output of v$logfile and whether all the files exist.
regards
Stephen -
Hello -
I am running an Oracle 8.1.7.4 database in archivelog mode. Can I take a datafile offline, rename the datafile, then bring the datafile back online?
For example,
1. alter database datafile 'string' offline;
2. rename the datafile at the os level
3. alter database rename file 'string' to 'newstring';
alter database datafile 'newstring' online;
While the datafile is offline, does this cause errors if an attempt is made to access the datafile?Of course, as already posted, data in the offline datafile are not available, so you cannot access them. In my case, those data were previous years accounting data, and people asked for mounting removable disks when they needed them.
-
Taking rollback segment and datafile offline caused application error
One of the DBA's added a large rollback segment which caused the rman backup to abort. The rollback segment was taking offline and it's datafile was taken offline, all went normally no errors. An Application started gettting errors the database and application were taking down and up, no errors on either but the problem was still there. The rbs datafile and RBS were placed back online and the application worked properly. It looks as if Oracle let us take the RBS and datafile offline with active segments in the RBS is this possible?? If so it means you can pull the rug out from under Oracle and it doesn't even complain
Pls check any transactions written in application level,
explicitly assigned to the RBs which was taken offline. -
Deleted archive files during the datafile offline period
Dear Gurus
I want to report a mishap that happened in one of our system.
I made one of the data files x01.dbf offline(the only datafile for that tablespace say X )
Now unfortunately i deleted the archives during the period the datafile was offline ..
Now it is not letting me do any operation like any ddl operation ..
How can I restore the database back to normal .
Thanks in advance
abhiHi again,
Dear GuruOh la, I'm not a guru, just an old oracle newwbie!
I did not understand what was that 7 error game :)Lesson learned: do not try to translate obscure French stuff :-)
About your problem, if this does not work, you have only one possibility: drop it. If the drop fails you'll have to bounce the database in order to do that.
If you have to "recover" from the tablespace loss, you'll have to do some TSPITR (Tablespace Point In Time Recovery).
HTH,
Yoann. -
Dear all
I have just completed a cloning.One of my datafile is offline.
In the control file it is pointing to a different path with a ficticious filename like
/nd01/oradev/devdb/9.2.0/dbs/MISSING00098'
The file I want is under location another location.I tried to generate a trace control file and run it on nomout mode,but still no luck.
Can somebody help me.I do not have datafile name MISSING.
It generated the name.I tried to generate a script
from alter database backup controlfile to trace.But
still NO LUCK.
Regardsthis's from your original post,
I have just completed a cloning.One of my datafile is offline.
In the control file it is pointing to a different path with a ficticious filename like
>>/nd01/oradev/devdb/9.2.0/dbs/MISSING00098'
Compare your output of
select name from v$datafile;from source and cloned database -
Datafile offline in reade only mode
i read the oracle9i reference and it show me the message
'Read-only mode does not restrict database recovery or operations that change the
database’s state without generating redo data. For example, in read-only mode:
Datafiles can be taken offline and online
Offline datafiles and tablespaces can be recovered
The control file remains available for updates about the state of the database'
first one the message show me is 'datafiles can be taken offline and online' , i think this tell me i can change the datafiles's state online to offline, so when i use
alter database datafile test.ora offline is a error ora-01145 in the noarchivelog mode
but it is successful in the archivelog mode
so could anyone tell the distinct of two mode the database and tablespace offlineThe docs are at http://tahiti.oracle.com.
No doubt while reading the docs you will find other valuable information that someone writing you a short paragraph would omit.
Maybe you are looking for
-
Queer mini-DVI Connector on Late 2006 iMac
I have a late 2006 (all white) 24" iMac and a new Mac Mini. The Mac Mini runs under Snow Leopard, and has a keyboard and mouse but no monitor. A couple of days ago, I downloaded Lion from the App Store,Thinking it would come as a downloadable file I
-
Hi, How do I count number of spaces contain in a varchar2 column? Thanks
-
Just tried to download iOs 5 on my iphone 3G and now it says "can't restore" iphone. I just has a pic of itunes. Won't do anything even after hard shutdown.
-
Our app includes a music player which streams MP3s from a server. We would like to be able to stream the MP3, and save it to a cache on disk once it has fully downloaded. I am using the load() method of the Sound class to stream the MP3 so that playb
-
How to convert a3 to a4 in pdf
How do you convert a3 to a4 with a .pdf file?