How i recover my database
Dear All
My database crash but luckly i have logical and phsical backup of my data base and i try my level best but i did not get good result, so plz let me know, how i recover my database(Oracle 10g, OS:window xp), means even i attach my tablespaces also
thsnks in advance
Regards,
10g means what? Please provide a full and complete version number.
What do you mean by logical and physical backup ... be very specific and clear. For example don't say "export" indicate whether it was made with exp or datapump and how you were logged on and the parameters used when it was created.
What do you mean by "crash." Again be very specific and clear.
We can do more harm by guessing your situation whereas we can help if we know what actually happened.
Similar Messages
-
How to recover the database when some of the archive log file get deleted.
I am facing a problem with Oracle database, which is related to archivelogs.
Our development database is running in archivelog mode, but we don't have backups scheduled and have no recovery catalog.
When the database was in running condition, disk got full, so some archivelogs were deleted manually.
After this they restarted the DB, and now DB is not coming up. Errors are as follows:
SQL> startup
ORACLE instance started.
Total System Global Area 1444383504 bytes
Fixed Size 731920 bytes
Variable Size 486539264 bytes
Database Buffers 956301312 bytes
Redo Buffers 811008 bytes
Database mounted.
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '/export/home/oracle/dev/ADVFRW/ADVFRW.system'
SQL> recover datafile '/export/home/oracle/dev/ADVFRW/ADVFRW.system'
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
SQL> recover database using backup controlfile;
ORA-00279: change 215548705 generated at 09/02/2008 17:06:10 needed for thread
1
ORA-00289: suggestion :
/export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC
ORA-00280: change 215548705 for thread 1 is in sequence #1107
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC
ORA-00308: cannot open archived log
'/export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC'
ORA-27037: unable to obtain file status
SVR4 Error: 2: No such file or directory
Additional information: 3
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
CANCEL
Media recovery cancelled.
SQL>
1. How to recover the database and bring it online
Any help will be highly appreciated.
With Regards
Hemant Joshi
Edited by: hem_Kec on Sep 7, 2008 9:07 AMHi,
Archive log files are the copies of redolog files.As redo log files are circularly overwritten,oracle generates archive log file of the corresponding redo logfiles being overwritten.So if you have a backup that dates back to 10 am in the morning and if your database creashed at 3 pm,you cannot use the redo log files alone as they have incomplete information.To completely recover the database upto 3 pm,you need archive log files generated between 10 am to 3 pm. In your case since you are missing one archive log file,you cannot perform complete recovery and hence would suffer data loss. -
How to recover my database after lose some archivelogs?
How to recover my database after lose some archivelogs?
What should I do next?
When I make a point-in-time recovery, I get the following message:
Oracle Error:
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/u01/app/oracle/oradata/rcatalog/system01.dbf'
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 09/25/2008 16:41:19
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of log thread 1 seq 17 lowscn 798237 found to restore
RMAN-06025: no backup of log thread 1 seq 16 lowscn 796977 found to restore
RMAN-06025: no backup of log thread 1 seq 15 lowscn 781378 found to restore
RMAN-06025: no backup of log thread 1 seq 14 lowscn 759019 found to restore
RMAN-06025: no backup of log thread 1 seq 13 lowscn 709039 found to restore
RMAN-06025: no backup of log thread 1 seq 12 lowscn 708479 found to restore
RMAN-06025: no backup of log thread 1 seq 11 lowscn 676234 found to restore
RMAN-06025: no backup of log thread 1 seq 10 lowscn 646686 found to restore
RMAN-06025: no backup of log thread 1 seq 9 lowscn 645207 found to restore
RMAN-06025: no backup of log thread 1 seq 8 lowscn 645199 found to restore
RMAN-06025: no backup of log thread 1 seq 7 lowscn 595363 found to restore
RMAN-06025: no backup of log thread 1 seq 6 lowscn 557197 found to restore
RMAN-06025: no backup of log thread 1 seq 5 lowscn 519102 found to restore
RMAN-06025: no backup of log thread 1 seq 4 lowscn 519053 found to restore
RMAN-06025: no backup of log thread 1 seq 3 lowscn 492824 found to restore
RMAN-06025: no backup of log thread 1 seq 2 lowscn 476888 found to restoreMixing thread
yours recovery asking a lot of archivelog ,you are in the situation now like you are in no archive mode recovery..which requires last cold backup.
What you can do is restore yours old backup with its old controlfile and then recover till before that miissing log by using recover database using backup controlfile.
Khurram -
How to recover a database with archive log
how to recover database with archivle log
Hi,
With in information no one can tell the answer.
Kindly post your qusetion in details information, you want to recover the database in archive log mode, what type of error you get, bcoz depending up on the errors you recover your database,
please mention all about your database
cheers
Senthil Kumar -
Redo log files are deleted, how to recover the database
Hi All,
I removed the redo01.log, redo02.log and redo03.log files of our Oracle database. And it caused the db to fail. Is there any way I can recover the database and startup database in normal mode? I do not need it to have all the latest data restored, I will be happy to just start the db and get going.
database is in arcive log mode.
ThanksHello,
You may try this if the database is mounted:
recover database until cancel;
cancel
alter database open resetlogs;Hope it can help.
Best regards,
Jean-Valentin -
How to recover from database consistency errors?
I have a SQL server cluster 2005. Due to the broken of SAN storage's controller and disks, one of my SharePoint content DB has corrupted and has been causing numerous error to the SharePoint. I have run the command "DBCC CHECKDB WITH NO_INFOMDGS"
and the truncated output are as following:
Table error: Object ID 53575229, index ID 1, partition ID 72057594038583296, alloc unit ID 72057594043564032 (type In-row data), page ID (3:21580503) contains an incorrect page ID in its page header. The PageId in the page header = (3:21580511).
CHECKDB found 0 allocation errors and 6 consistency errors in table 'AllDocs' (object ID 53575229).
Table error: Object ID 53575229, index ID 1, partition ID 72057594038583296, alloc unit ID 72057594043564032 (type In-row data), page ID (3:21580503) contains an incorrect page ID in its page header. The PageId in the page header = (3:21580511).
CHECKDB found 0 allocation errors and 6 consistency errors in table 'AllDocs' (object ID 53575229).
Object ID 1058102810, index ID 4, partition ID 72057594052411392, alloc unit ID 72057594058571776 (type In-row data): Page (3:21580478) could not be processed. See other errors for details.
CHECKDB found 0 allocation errors and 4 consistency errors in table 'EventCache' (object ID 1058102810).
Table error: Object ID 1762105318, index ID 1, partition ID 72057594055819264, alloc unit ID 72057594062897152 (type LOB data). The off-row data node at page (3:21985593), slot 35, text ID 5702751551488 is not referenced.
Msg 8964, Level 16, State 1, Line 1
Table error: Object ID 1762105318, index ID 1, partition ID 72057594055819264, alloc unit ID 72057594062897152 (type LOB data). The off-row data node at page (3:21985594), slot 14, text ID 5702751354880 is not referenced.
Msg 8986, Level 16, State 1, Line 1
Too many errors found (201) for object ID 1762105318. To see all error messages rerun the statement using "WITH ALL_ERRORMSGS".
CHECKDB found 0 allocation errors and 307 consistency errors in table 'AuditData' (object ID 1762105318).
CHECKDB found 0 allocation errors and 363 consistency errors in database 'ALCIM_WSS_Content'.
repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (WSS_Content).
Error show in the event log:
SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 3:21580475; actual 0:0). It occurred during a read of page (3:21580475) in database ID 9 at offset 0x00002929576000 in file 'E:\Microsoft SQL Server\Data\MSSQL.1\MSSQL\DATA\WSS_Content_2.ndf'.
The last DB backup creatred was about a month ago so doing DB resotre will be my last choice. Is it possible I can recover the DB without data loss using "DBCC CHECKDB ('WSS_Content', REPAIR_REBUILD)"? Any alternative method to acheive my
goal?
Thank you.Hi,
Check this part of the output that you have posted
"repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (WSS_Content)."
Which clearly states that your only option is "repair_allow_data_loss". This option should ONLY be tried as a last resort. If you have any chance of restoring the backup as Bass_player suggested that should be your way. Even if you run repair_allow_data_loss
and it runs successfully and fixes the corruption, you still would be facing logical corruption with data, as we never know which all records repair_allow_data_loss removes.
More over in case of SharePoint databases as far as I know, Microsoft Sharepoint Support never used to support those sharepoint databases which were repaired. They will only support a backup of the database in case of corruptions.
I would suggest you to start working on a better disaster recovery plan in the mean while you are waiting for the backups :)
HTH,
Regards, Ashwin Menon My Blog - http:\\sqllearnings.wordpress.com -
IPhoto 11 damaged database how to recover?
How to recover the database of iPhoto?
When I open iPhoto I can see all the events and pictures i had always, no rpoblem there.
But when i sync with iPhone and iPad some other events are appearing on the sync folder from iTunes.
I know the pictures they are some i had imported and deleted because i don't wnated them.
I cannot not find them in the bin or somewhere else on iPhoto (empty bin)
How can I clean the database of iPhoto? These pictures are using capacitz I don't want.
Can someone help me?
MerciThank you OT but it is not working.
I still have many events in the itunes sync bar as you can see in enclosed picture.
Sao Paulo is ok as event, but the other I have no event neither in some any pictures.
In some of the dates I have pictures but i have deleted them already. I don't know why I find them on the iphone but they are not in iPhot on the MBA.
On iPhoto on iPhone they are appearing, but i cannot delete them.
Very strnage.
Do you have another advise?
Regards
Sebastien -
How can i recover my database after losing system data file.
hi everyone,
how can i recover my database in the following scenario.
1. offline complete backup taken 2 days ago. database was in archive mode.
2. today i lost my system data file, and also lost my all archived files.
3. i started up the database but, the following error was generated.
SQL> startup
ORACLE instance started.
Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
Database mounted.
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: 'D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF'
4. i copied the system data file from backup and wrote the following statement, to recover the database.
SQL> recover datafile 1;
ORA-00279: change 2234434 generated at 07/15/2009 10:52:10 needed for thread 1
ORA-00289: suggestion : C:\B\ARC00051.001
ORA-00280: change 2234434 for thread 1 is in sequence #51
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
now i don't have any archive file. is there any chance to recover the database ?
R e g a r d s,
Asif Iqbal
Software Engineer,
Lucky Tex, Karachi,
Pakistan.now i don't have any archive file. is there any chance to recover the database ?If no archive log files are available you can't recover the datafile.You need to have all the archives from the time of offline backup was taken till the system datafile is lost.
Anand -
How to recover database in this situation?
My os is windows 2000 server, the oracle database version is 9.2.0.1
And the database is in archivelog mode.
first: I backup the controlfile to trace
second: I added a new tablespace
third: I shutdown immediate the database
forth: I delete the controlfile and datafile of the new added database
then: I tried to recover my database.
But I meet troubles.
I am a user from China. Appreciate your help!
C:\>sqlplus
SQL*Plus: Release 9.2.0.1.0 - Production on 星期一 10月 24 21:05:24 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
请输入用户名: sys/nolog as sysdba
连接到:
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
SQL> archive log list
数据库日志模式 存档模式
自动存档 启用
存档终点 D:\oracle\ora92\RDBMS
最早的概要日志序列 0
下一个存档日志序列 1
当前日志序列 1
SQL> select group#, sequence#, archived, status from v$log;
GROUP# SEQUENCE# ARC STATUS
1 0 YES UNUSED
2 0 YES UNUSED
3 1 NO CURRENT
SQL> create tablespace user_data datafile
2 'd:\oracle\oradata\wwfdb\user_data01.dbf' size 50m;
表空间已创建。
SQL> create table t(a number) tablespace user_data;
表已创建。
SQL> insert into t values(10);
已创建 1 行。
SQL> commit;
SQL> shutdown immediate
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> host del d:\oracle\oradata\wwfdb\*.CTL
SQL> host del d:\oracle\oradata\wwfdb\user_data01.dbf
SQL> startup nomount
ORACLE 例程已经启动。
Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
SQL> CREATE CONTROLFILE REUSE DATABASE "WWFDB" NORESETLOGS ARCHIVELOG
2 MAXLOGFILES 50
3 MAXLOGMEMBERS 5
4 MAXDATAFILES 100
5 MAXINSTANCES 1
6 MAXLOGHISTORY 226
7 LOGFILE
8 GROUP 1 'D:\ORACLE\ORADATA\WWFDB\REDO01.LOG' SIZE 100M,
9 GROUP 2 'D:\ORACLE\ORADATA\WWFDB\REDO02.LOG' SIZE 100M,
10 GROUP 3 'D:\ORACLE\ORADATA\WWFDB\REDO03.LOG' SIZE 100M
11 DATAFILE
12 'D:\ORACLE\ORADATA\WWFDB\SYSTEM01.DBF',
13 'D:\ORACLE\ORADATA\WWFDB\UNDOTBS01.DBF',
14 'D:\ORACLE\ORADATA\WWFDB\CWMLITE01.DBF',
15 'D:\ORACLE\ORADATA\WWFDB\DRSYS01.DBF',
16 'D:\ORACLE\ORADATA\WWFDB\EXAMPLE01.DBF',
17 'D:\ORACLE\ORADATA\WWFDB\INDX01.DBF',
18 'D:\ORACLE\ORADATA\WWFDB\ODM01.DBF',
19 'D:\ORACLE\ORADATA\WWFDB\TOOLS01.DBF',
20 'D:\ORACLE\ORADATA\WWFDB\USERS01.DBF',
21 'D:\ORACLE\ORADATA\WWFDB\XDB01.DBF'
22 CHARACTER SET ZHS16GBK;
控制文件已创建
SQL> recover database until time '2005-10-24 21:10:33';
完成介质恢复。
SQL> alter database open;
alter database open
ERROR 位于第 1 行:
ORA-01589: ??????????? RESETLOGS ? NORESETLOGS ??
SQL> alter database open noresetlogs;
数据库已更改。
SQL> select * from t;
select * from t
ERROR 位于第 1 行:
ORA-00376: ???????? 11
ORA-01111: ???? 11 ???? - ?????????
ORA-01110: ???? 11: 'D:\ORACLE\ORA92\DATABASE\MISSING00011'
the above sql statement:
recover database until time '2005-10-24 21:10:33',the reason I choosed the time '2005-10-24 21:10:33'
is based the contents of alert.log file:
Mon Oct 24 21:10:20 2005
create tablespace user_data datafile
'd:\oracle\oradata\wwfdb\user_data01.dbf' size 50m
Mon Oct 24 21:10:32 2005
Completed: create tablespace user_data datafile
'd:\oracle\orHi,
why you create trace file ? and if you did that then you must have trace your ctl file after adding the tablespace for your db.so your ctl file will have registered the name of newly created tablespace.and if you do not have backup of ctl file which dosent contain the name of newly created tablespace then how would you recover your tablespace ? if you want to achieve your disered thoughts then add the tablespace and then backup of your full db then shutdown your db and delete your ctl file and data file.now open your db in nomount mode then restore your ctl file and datafile.
thanks
Alok -
WHAT IF I DELETE THE SYSTEM06.DBF FILE FROM DATABASE /U01/DB/apps_<sid>/ system06.dbf and how to recover it in apps
Hi,
First of all you must Open a ticket with oracle Support and explore the options
You can use this note to fix it:
RECOVERING FROM A LOST DATAFILE IN A UNDO TABLESPACE [ID 1013221.6]
If you is Unable to Drop Undo tablespace Since Undo Segment is in Needs Recovery
You can Upload the following trace file while opening the ticket
SQL>Alter session set tracefile_identifier='corrupt';
SQL>Alter system dump undo header "<new of undo segment in recover status>";
Go to udump
ls -lrt *corrupt*
Upload this trace file
Also upload the alert log fileRegards,
Levi Pereira
Edited by: Levi Pereira on Nov 29, 2011 1:58 PM -
How to recover dbf file in dbf VFP database?
How to recover dbf file in dbf VFP database?
The platform writes that can't open dhXXXX.dbf.
What to do? Whether there are utilities where it is possible to bring into accord heading of the dbf-file and directly its contents manually? Where there is a good description of the structure .dbf?1 Delete the indexes.
2. To determine to which document (its cap) belongs to this file.
3. Try to look for this file in the archives
4. DBF Viewer Tool will help view and edit the contents .dbf file.
http://www.dbf.viewertool.com/
5. At a forum you can look at information on your problem
http://www.filerepairforum.com/forum/databases/databases-aa/dbase-iv-clipper-foxpro/1355-help-to-repair-dbf-file -
How to recover database without archive files
Hello,
I've a test database without archive files and I need to know how to recover it without using archive files.
What is SQL command to recover database wthout archives?
Thanks in advance for your help.
Regards,
CarlesThere are serveral information missing in this posting and as a support personnel, I would like to find out more when I see postings like this.
1. This person wants to "Test" his backup and recovery in NOARCHIVELOG mode.
2. He/She did not say his database had already crashed or had a problem.
3. He/She did not give any indication the kind of scenario he wants to recover from.
4. He/She did not mention the state of his database at the time of he posting.
5. He/She did not mention the Release of his Oracle Server or Platform.
6. He/She did not mention the type of backup he already has in place (although provided later as Full COLD Backup). How "genuine" is the back?
7. What actions has already been taken to attempt recovery.
In my support experience, I normally would go through a list of questions witht he use/client to get the full picture of the current status of the database before I give answers that would worsen situations, especially in a Disaster Recovery sitaution.
Personaly, I would suggest you have a look at the list above. One of the most important is number 3 (The Recovery Scenario), then number 4, number 6 and 7. Number 7 will determine the situation of your database. So, when you ask for SQL commands to use, there are different commands for different kind of recovery depending on what has gone wrong or what kind of file is damaged (Datafiles, Logfiles, Control Files, one tablespace, one table, entire database gone, etc). -
How can recover database using only Full Export ?
Hi,
I have one query , i have only Full export is given database , after full export sucessfully
database Crash by mistacally, how can recover it, i have only export is given no backup is taken (RMAN,COLD or HOT) statergy is use , How can recover it.You need to recreate the database from scratch as imp requires a working database.
You could already do this by transforming the results from
'alter database backup controlfile to trace', a trace file containing a 'create controlfile' statement, into a 'create database' script.
After that step you apply your import. Everything after that import is lost forever.
One would ask for a sanity check of management and personell of a company, which has no backup strategy in place.
Sybrand Bakker
Senior Oracle DBA -
How to recover database SYSTEM datafile get corrupt ?
Database is in ARCHIVELOG mode, and the datafile belonging to SYSTEM tablespace gets corrupted. Up to what point can I recover the database ?
A. Until last commit.
B. Until the time you perform recovery.
C. Until the time the datafile got corrupted.
D. You cannot recover the SYSTEM tablespace and you must be re-create the database.
and 1 more doubt :
If redologfiles are not multiplexed and redolog blocks get corrupt in group 2, and archiving stops. All redolog files are filled and database activity is halted.
DBWR has written everything to disk. What command can be used to proceed further ?
A. recover logfile block group 2;
B. alter database drop logfile group 2;
C. alter database clear logfile group 2;
D. alter database recover logfile group 2;
E. alter database clear unarchived lofile group 2;
Edited by: user642367 on Sep 18, 2008 8:45 PM1. A. Since the DB is in archivelog mode, so you can always restore and recover the whole DB including system tablespace datafile till last SCN generated provided the redo record is available in archive/online logfiles.
2. E. Since only redolog is corrupted so archiver won't proceed and hence a db hang is obvious, So, in order to proceed further you need to clear online (un archived log file) and then db will work as usual. Care should be taken that you must take a full backkup of DB(cold backup wherever feasible) as soon as possible after issuing this command. As now you don't have redo info in archivelog files to recover the db in case of a crash.
Please go through Oracle 10g DB Administrators guide (available on OTN) for more details.
Thanks -
How to recover database when all redo logs are losted
pls help me in recovering the database when all the redo logs are losted
In both cases he has to open the database in RESETLOGS option. So try:
recover database until cancel;
Then cancel the recovery, and
alter database open resetlogs;
If you want to check where your database is at then mount your database and issue:
select group#, sequence#,first_change# from v$log;
This will tell you the sequence and SCN of all the online log files then compare it with what it prompted when you issued recovery command.
Daljit Singh
Maybe you are looking for
-
How do I move an icon from the second page of my home screen to the first page and vice versa?
How do I move an icon from the second page of my home screen to the first page and vice versa?
-
Runtime error in kob5, kob1 and line items display in Cost Analysis in ko03
Hello everyone, I would like to ask for your expert advice on a situation we need to have a solution. Let me tell you what happened. In ko88, we tried to settle an internal order to a final asset using 'partial capitalization'. We encountered an erro
-
BIA physical indexes with no assignment to logical index (InfoCube)
Hi there. In RSDDBIAMON2 I can see the following warning: one BIA physical indexes is not assigned to any logical index. They explain it as the following: when a BI InfoProvider is deleted from the BI accelerator, some physical indexes of this kind o
-
Notice when new shortdump in st22
Hi, we are getting shortdumps when table tsp01 is getting updated. As usual when I ask the users abput what they have done when the error occured they tell me they don´t remember ´cuase that was yesterday. Is there any chance to receive a notice when
-
Help with PL/SQL returning SQL query for Report
Hi I have got a report which I have formatted as PL/SQL function body returning SQL query. I have the following code declare q VARCHAR2(32000); -- query w VARCHAR2(4000) ; -- where clause begin q := 'select min(identified_date) first_identified,' ||