Lost Undo datafile
We lost the only datafile of the undo table space. (can not recover this file)
Is there any way we can recover the database?
select SEGMENT_NAME,STATUS,TABLESPACE_NAME from dba_rollback_segs;
is the above query produces any status = 'NEEDS RECOVERY'?
If not, you can simply, create another undo tablespace, alter the undo_tablespace parameter witht he new tablespace. Finally, drop the previous undo tablespace.
Jaffar
Similar Messages
-
Please assist I have lost undo datafile
Hi ,please advice me ,the filesystem that contantain undo datafile is lost while the database is was down for OS maintenance,now when I have to start database I found that undo datafile is lost and they can't even see it from OS side,how can I start the database.
P. Forstmann wrote:
If you didn't shutdown your database cleanly and you have no backup for undo tablespace then there is no documented way to restart your database instance and you should contact Oracle Support.Yes,that is right,if database was not cleanly shutdown(with abort option) then actually in next instance startup will need recover and its instance recovery(must be perform).But performing instance recovery need undo tablespace,actually this is lost ,so with simple operations you can not open database.Of course the best way is report Oracle Support.However you can implement hidden parameter to opening database(_offline_rollback_segments).I do not recommend this way,just can try this.Before doing this you have to full backup database. -
Lost of datafile to 2 tablespaces, no rman but expdp image
Hello,
We lost 2 datafiles to 2 tablespaces in our non-production database. We can not open the database because of the missing 2 datafiles on the same mountpoint. The database is mounted. How to drop these 2 tablespaces and datafiles so the database can be open? We do not have rman but do have expdp files as backup. Thank you.Offline drop the datafiles,drop the tablespaces,recreate them,import the data.
ALTER DATABASE DATAFILE '<full_path_file_name>' OFFLINE DROP;
ALTER DATABASE OPEN;
DROP TABLESPACE <tablespace_name> INCLUDING CONTENTS;
CREATE TABLESPACE <tablespace_name> DATAFILE
'<datafile_full_path_name'> SIZE <required_size>;
impdp .....
Werner -
Block corruption in UNDO datafile
Hi,
I am getting block corruption problem related to undo datafile on my pre production db.
Alert log says:
Tue Jun 24 17:59:38 2008
Errors in file /oracle/admin/CBOPROD/bdump/cboprod_pmon_2596886.trc:
ORA-01578: ORACLE data block corrupted (file # 2, block # 121)
ORA-01110: data file 2: '/oracle/oradata/CBOPROD/undotbs01.dbf'
Tue Jun 24 17:59:38 2008
Errors in file /oracle/admin/CBOPROD/bdump/cboprod_pmon_2596886.trc:
ORA-01578: ORACLE data block corrupted (file # 2, block # 137)
ORA-01110: data file 2: '/oracle/oradata/CBOPROD/undotbs01.dbf'
Tue Jun 24 17:59:38 2008
Errors in file /oracle/admin/CBOPROD/bdump/cboprod_pmon_2596886.trc:
ORA-01578: ORACLE data block corrupted (file # 2, block # 57)
ORA-01110: data file 2: '/oracle/oradata/CBOPROD/undotbs01.dbf'
Tue Jun 24 17:59:38 2008
Errors in file /oracle/admin/CBOPROD/bdump/cboprod_pmon_2596886.trc:
ORA-01578: ORACLE data block corrupted (file # 2, block # 25)
ORA-01110: data file 2: '/oracle/oradata/CBOPROD/undotbs01.dbf'
Tue Jun 24 17:59:38 2008
Errors in file /oracle/admin/CBOPROD/bdump/cboprod_pmon_2596886.trc:
ORA-01578: ORACLE data block corrupted (file # 2, block # 105)
ORA-01110: data file 2: '/oracle/oradata/CBOPROD/undotbs01.dbf'
Tue Jun 24 17:59:38 2008
Errors in file /oracle/admin/CBOPROD/bdump/cboprod_pmon_2596886.trc:
ORA-01578: ORACLE data block corrupted (file # 2, block # 73)
ORA-01110: data file 2: '/oracle/oradata/CBOPROD/undotbs01.dbf'
Tue Jun 24 17:59:38 2008This issue happend while loading the data into db. I am more worried about data rather than availability as we took a good time move production data.
I have the cold backup of last night using RMAN (at mount stage) and my db is running in Archive log mode.
Please suggest to how to approach in current scnario.
OS: AIX 5.3
Oracle: 10.2.0.3.0
Thanks for your time
BhupinderBhupinder,
The problem here it is your undo tablespace, and you are getting this error, because Oracle is hitting these blocks to use them.
You could try to create a new undo tablespace, but this measure is a bit strange, as obviously you can change the undo tablespace only without current transactions. If you can change the undo tablespace why recover the inactive undo tablespace?
I would probably try to change the undo tablespace, and if that fails there really is no other solution than at least restore the entire undo tablespace. Likely undo is disabled in mount stage so this should work.
Hth
Sybrand Bakker
Senior Oracle DBA -
Hi Dba,
I am using oracle 11g version. I did proper shut down , one of my undo datafile is got corrupted here and i removed and started to startup my db. But my db is not mounted. i am not able to open my database. any one can say ? y this undo datafile is needed? I did proper shut ly na it doesnt have any datas in the undo datafile right? then y its necessary ? to start up my database.
waiting for your response.
Thanks in Advance.SQL> startup
ORACLE instance started.
Total System Global Area 648663040 bytes
Fixed Size 1335108 bytes
Variable Size 301990076 bytes
Database Buffers 339738624 bytes
Redo Buffers 5599232 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 3 - see DBWR trace file
ORA-01110: data file 3:
'D:\APP\ADMINISTRATOR\ORADATA\SIPDB\DATAFILE\O1_MF_UNDOTBS1_7H3FYSG8_.DBF'
Hi ,
I am getting the above error while starting up the database without undo datafile. after i did proper shut down ly i am starting up my db now. in the undo datafile there is no datas right? then y its asking undo datafile to startup? if we do proper shutdown means undo datafile will not have any datas right then y its necessary at a time of recovery to open the db up .... any one can help me? -
Hi, all
The undo datafile in my database growed fast yesterday. I want to find out which DML SQLs caused the datafile growing, is it possible?
Thanks,
Siko.LeeRafi (Oracle DBA) wrote:
Hi,
Do you want the result like this:
SQL> sho user
USER is "SYS"
SQL> select
2 to_char(begin_time,'yyyy-mm-dd hh24:mi:ss')
3 starttime,
4 to_char(end_time,'yyyy-mm-dd hh24:mi:ss')
5 endtime,
6 undoblks,
7 maxquerylen maxqrylen
8 from v$undostat;
STARTTIME ENDTIME UNDOBLKS MAXQRYLEN
2011-02-22 16:54:00 2011-02-22 16:58:13 0 0
2011-02-22 16:44:00 2011-02-22 16:54:00 12 0
2011-02-22 16:34:00 2011-02-22 16:44:00 42 0
2011-02-22 16:24:00 2011-02-22 16:34:00 8 0Best regards,
Rafi.
http://rafioracledba.blogspot.com
Thanks, Rafi
But I want to know which DML SQL generated the maximum undo data in the past. -
Hi,
Database is 10.2.0.4
I m planning to drop my undo datafile ..im falling short of space on server
I have 2 undo datafiles in different mount points. First one is 10GB and second one is 2 GB
Can i go ahead...i hope there is no risk in dropping second undo file...
Pls advice
ThanksCreate a new undo tablespace
switch database to then new undo tablespace
drop the old one undo tablespace
Don't drop just one datafile. undo tablespace is in use as Your db is in use and probably some activity is going there. -
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.
-
Hi,
I want to drop some UNDO datafiles from the UNDO tablespace.
Can some one suggest how can it be done.
the database is shutdown.
Oracle 10g
Sun solarisRead the Admin guide?
-
Hi all
Here's the scenario:
1. Dont have a backup
2. Lost one datafile in tablespace X
3. Left with only two datafiles in tablespace X
Question:
Is there a way to recover your database in such a way that you don't lose data in the other two remaining datafiles?
Thanks in advance
DurbaniteWell maybe not look for a new job but this problem definitely tells you a great deal of things.
1. You really need to understand Backup and Recovery Concepts and look there are Oracle manuals that can help:
http://www.oracle.com/pls/db102/portal.portal_db?selected=3
Check the ones out that say Backup and Recovery.
2. You really need create a Backup and Recovery Plan.
Look I created a template the could help you it is posted on www.dba-village.com
http://www.dba-village.com/village/dvp_papers.PaperDetails?PaperIdA=3183&SkipA=0&SortA=Date
3. You really need to TEST your Backup and Recovery Plan
Appendix B to your Backup and Recovery Plan from the above step.
4. And at this point I would probably call Oracle or at least submit a TAR or whatever they are calling them nowdays. They can offically confirm the possibility of recovering the database and give offical future guidance.
Regards
Tim -
Growing UNDO datafile with small transactions?
Hi,
We're currently using 9i release 2 (with patchset) and have noticed that the UNDO datafile is increasing in size when it was my understanding that it shouldn't. We are performing a lot of DML (millions of inserts/updates) but commiting after each operation i.e. the transcations are very small but the number is very large. Why is the undo datafile getting very big in thos scenario and is there anything I can do to prevent it happening?
Many thanks,
Warren
[email protected]After reading again ur post, i think my first answer is not adapted to ur question :-)
The Undo segment is a circular one so it will grow till he reached the last extent and after only re-write in the first one (if the undo-entries in the first extent are commited).
So the undo tablespace is too "big" in ur case cause u should have created it permitting it to grow big...
Fred -
RAC instance, trying to recover UNDO datafile, RMAN gives RMAN-06054
Hello all,
This has been a troublesome instance..a quick bit of background. This was created awhile back by someone else, I inherited this 3 mode RAC clusterof instance1.
I'm exporting out of one database (10G) into this instance1 (11G). When I was about to start the import..I found this instance wouldn't start. Turned out no backup had been going on of this empty instance. I backed up the archive logs to tape to free up the FRA..and things fired up.
I began the import, and found a bunch of errors...basically tellling me that I couldn't access one of the undo tablespaces...datafile problems.
I went to look and saw:
SQL> select a.file_name, a.file_id, b.status, a.tablespace_name
2 from dba_data_files a, v$datafile b
3 where a.file_id = b.file#
4 order by a.file_name;
FILE_NAME FILE_ID STATUS TABLESPACE_NAME
+DATADG/instance1/datafile/sysaux.270.696702269 2 ONLINE SYSAUX
+DATADG/instance1/datafile/system.263.696702253 1 SYSTEM SYSTEM
+DATADG/instance1/datafile/undotbs1.257.696702279 3 ONLINE UNDOTBS1
+DATADG/instance1/datafile/undotbs2.266.696702305 4 ONLINE UNDOTBS2
+DATADG/instance1/datafile/undotbs3.269.696702313 5 RECOVER UNDOTBS3
+DATADG/instance1/datafile/users.268.696702321 6 ONLINE USERS
+DATADG/instance1/l_data_01_01 11 ONLINE L_DATA_01
+DATADG/instance1/s_data_01_01 7 ONLINE S_DATA_01
+DATADG/instance1/s_data_01_02 8 ONLINE S_DATA_01
+INDEXDG/instance1/l_index_01_01 12 ONLINE L_INDEX_01
+INDEXDG/instance1/s_index_01_01 9 ONLINE S_INDEX_01
FILE_NAME FILE_ID STATUS TABLESPACE_NAME
+INDEXDG/instance1/s_index_01_02 10 ONLINE S_INDEX_01
There is is, file #5.
So, I went into RMAN to try to restore/recover:
RMAN> restore datafile 5;
Starting restore at 06-APR-10
allocated channel: ORA_SBT_TAPE_1
channel ORA_SBT_TAPE_1: SID=222 instance=instance1 device type=SBT_TAPE
channel ORA_SBT_TAPE_1: NMO v4.5.0.0
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=222 instance=instance1 device type=DISK
creating datafile file number=5 name=+DATADG/instance1/datafile/undotbs3.269.696702313
restore not done; all files read only, offline, or already restored
Finished restore at 06-APR-10
RMAN> recover datafile 5;
Starting recover at 06-APR-10
using channel ORA_SBT_TAPE_1
using channel ORA_DISK_1
starting media recovery
RMAN-06560: WARNING: backup set with key 343546 will be read 2 times
available space of 8315779 kb needed to avoid reading the backup set multiple times
unable to find archived log
archived log thread=1 sequence=1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 04/06/2010 14:33:07
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 16016
This is all on ASM, and am a bit of a newb with that. I bascially have no data I'm worried about losing, I just need to get everything 'on the air' so I can import successfully, and let users on this instance. I've set up the backups in GRID now....so, it will be backed up on the future, but what is the quickest, most efficient way to get this UNDO tablespace datafile recovered?
Thank you,
cayenneHemant K Chitale wrote:
SET UNTIL SEQUENCE 27wouldn't work if the Recovery requires Sequence 1 and it is missing.
Hemant K ChitaleOops...meant to have start and set until both to "1"
However, I see what you mean. It seems I cannot find the file on tape.
Since the RAC instance hasn't yet had any data put into it, I'm thinking it might be best to just blow it away, and recreate everything.
Trouble is, I'm a bit new at RAC and ASM. I was thinking the best route might be to use DBCA to remove the database...? Would this not take care of removing all the datafiles from all the ASM instances on the RAC..as well as all the other directories, etc on all 3x nodes?
I've already used the dbca to create templates of this instance, so recreation shouldn't be too difficult (although it will be my first RAC creation)...
Thank you in advance for the advice so far,
cayenne -
Recovery lost undo tablespace and Redo log
Recovery undo tablespace
[email protected]> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.e
[email protected]> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
[ora920@tkyte-pc-isdn ora920]$ ls
control01.ctl cwmlite01.dbf indx01.dbf redo02.log redo0B.log temp01.dbf
users01.dbf
control02.ctl drsys01.dbf odm01.dbf redo03.log redo0C.log tools01.dbf
xdb01.dbf
control03.ctl example01.dbf redo01.log redo0A.log system01.dbf undotbs01.dbf
[ora920@tkyte-pc-isdn ora920]$ mv undotbs01.dbf undotbs01.dbf.xxx
[ora920@tkyte-pc-isdn ora920]$ sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on Sat Sep 28 08:33:29 2002
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
idle> connect / as sysdba
Connected to an idle instance.
idle> startup
ORACLE instance started.
Total System Global Area 143725064 bytes
Fixed Size 451080 bytes
Variable Size 109051904 bytes
Database Buffers 33554432 bytes
Redo Buffers 667648 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
ORA-01110: data file 2: '/usr/oracle/ora920/OraHome1/oradata/ora920/undotbs01.dbf'
idle> show parameter undo
NAME TYPE VALUE
undo_management string AUTO
undo_retention integer 10800
undo_suppress_errors boolean FALSE
undo_tablespace string UNDOTBS1
idle> alter system set undo_management = manual scope=spfile;
System altered.
Note: disabling the undo tablespace here, this'll let us go back to "rollback segments"
and we'll use the system RBS to get back on our feet
idle> shutdown
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
idle> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
[ora920@tkyte-pc-isdn ora920]$ !sql
sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on Sat Sep 28 08:35:34 2002
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
idle> connect / as sysdba;
Connected to an idle instance.
idle> startup
ORACLE instance started.
Total System Global Area 143725064 bytes
Fixed Size 451080 bytes
Variable Size 109051904 bytes
Database Buffers 33554432 bytes
Redo Buffers 667648 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
ORA-01110: data file 2: '/usr/oracle/ora920/OraHome1/oradata/ora920/undotbs01.dbf'
Note: we still have to get rid of that thing..
idle> alter database datafile '/usr/oracle/ora920/OraHome1/oradata/ora920/undotbs01.dbf'
2 offline drop;
Database altered.
idle> alter database open;
Database altered.
idle> drop tablespace undotbs1;
Tablespace dropped.
idle> create UNDO tablespace undotbs1
2 datafile '/usr/oracle/ora920/OraHome1/oradata/ora920/undotbs01.dbf' size 25m
3 autoextend on next 1m maxsize 1024m;
Tablespace created.
idle> alter system set undo_management = auto scope=spfile;
System altered.
Now, we've put the undo tablespace "back" by creating a new one. Just bounce...
idle> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
idle> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
[ora920@tkyte-pc-isdn ora920]$ !sql
sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on Sat Sep 28 08:40:51 2002
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
idle> connect / as sysdba;
Connected to an idle instance.
idle> startup
ORACLE instance started.
Total System Global Area 143725064 bytes
Fixed Size 451080 bytes
Variable Size 109051904 bytes
Database Buffers 33554432 bytes
Redo Buffers 667648 bytes
Database mounted.
Database opened.
idle> show parameter undo
NAME TYPE VALUE
undo_management string AUTO
undo_retention integer 10800
undo_suppress_errors boolean FALSE
undo_tablespace string UNDOTBS1
idle>
and we are right back where we started from
RECOVERY REDO TABLESPACE
STARTUP MOUNT;
RESTORE DATABASE;
RECOVER DATABASE UNTIL SEQUENCE $v_seq THREAD 1;
ALTER DATABASE OPEN RESETLOGS;[email protected] wrote:
just ignore first one like title
Alter database open resetlog is not necessary to open database ?
Regards
kmphttp://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/osrecov.htm#i1007426
About Opening with the RESETLOGS Option
The RESETLOGS option is always required after incomplete media recovery or recovery using a backup control file.
You did not do an incomplete media recovery nor a recovery using a backup control file. -
How to get undo datafile number without opening the database ?
I cannot open the database because the my undotbs01.dbf file is corrupted :
SQL> connect sys/... as sysdba
Connected to an idle instance.
SQL> startup mount;
ORACLE instance started.
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
Process ID: 6627
Session ID: 170 Serial number: 5
SQL>
I tryed several solutions but I failed. So I want to use RMAN :
set newname for datafile X to '/location/undotbs01.dbf';
But how can I get X which is the file number for my undo tablespace ? I cannot call
SELECT tablespace_name,file_id,file_name FROM dba_data_files;
because my database cannot be opened.hi,
hi have this problem and i cannot solve it, the customer has not backup data base
can you help me ?
thanks
can you send me the note you are talking about ?
thanks
regards
I cannot open the database because the my undotbs01.dbf file is corrupted :
SQL> connect sys/... as sysdba
Connected to an idle instance.
SQL> startup mount;
ORACLE instance started.
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
SQL> -
Re-create controlfile when lost all datafile
dear all,
assume i have a database, i backuped full database use Rman, after that i deleted all of datafile,redolog file,controfile of database and i also deleted the backup controlfile by Rman, backup snapshot cotrolfile,
so how to create the controlfile in the case?
thank,TyL wrote:
hi CKPT
"If you have RMAN backup, then no need to create the controlfile, Restore of controlfile is fine."
thank your response,
but in the case, the backup controlfile is lost (error hardware)
thank,If Database is down, if no backup of controlfile is found from OS level,
Then you have to restore controlfile from RMAN backup, There is no other option.
@Fiedi Z
We can take the trace of controlfile but OP is expecting how to take the trace file when datafiles/controlfile deleted.
Thanks.
Maybe you are looking for
-
Hi! My phone speaker is not working, so I cant hear people when they call me. I bought my iphone 4s con February 2013 in the Grand Central (NYC - USA) Apple Store. I would like to know if I can take it to an Apple Store in Spain so they can fix it or
-
How to be business analyst/functional consultant...
hello guys, I posted in wrong forum before....apologies.... I am 27 yrs old..completed engineering....didnt work for some years after university becos of health problems...now got SAP training(paid by me) and luckily got job in consulting company in
-
How to export large .jpeg in indesign
I'm trying to export a large jpg file from indesign for a commercial printer (Large format bill board Advertising poster). Getting message indicating that the file is too large and to try using a lower resolution - but this does not deliver required
-
Ok people i have been using this z10 baby for almost a month and there r no short cuts here everything almost has a looooong cut so if ur ok with that its a good phone...... I am pretty happy with mine...... battery run time is very good... But still
-
Full Replication vz Business Agreement - Which Way ?
Hello IS-U Gurus Client is using SAP CRM 5 and plans to move to version 7 - currently they use Transaction Launcher and we want to move them to using the Utility Business Roles. my project manger's problem ( and therefore mine) is that each team m