How to recover Database 10g

Hi
1. I have oracle 10g installed on D drive, and my window on C drive is corrupted.
2. I have installed fresh windows, but now my Oracle 10g Database is not functional.
3. How i make it Functional again, i dont want to install again 10g database, as it lose my all previous data.
Help as soon as possible.
Regards.

I think the main problem you are facing now is this. You lost your pfile/spfile wich was in the ORACLE_HOME directory (wich i suppose was on dirve c?) now you need to do very difficult tusk.
Get from internet an example of standart pfile and put it in $ORacle_HoME/dbs with the name initYOURDBNAME.ora and then start your database. All will be allright.
P.S. in the future store pfile /spfile in your oradata with a link to dbs. Because if you lost your datafiles, it will be usefull to lose pfile as a bonus. You don't need spfile if u lost datafiles. Please allways copy all database files on a floppy, to prevent a complete datalose. Also consider an archivelog mode. Sometimes it saves a lot of stuff. Hope it helps.

Similar Messages

  • How to install database 10g and forms&reports developer 10g?

    hi
    how to install database 10g and forms & reports developer 10g on windows xp 32 bit? and which one is to install first? how to connect them together? where can i find complete guide

    Gul wrote:
    hi
    how to install database 10g and forms & reports developer 10g on windows xp 32 bit? and which one is to install first? how to connect them together? where can i find complete guideThis link will help you http://tahiti.oracle.com/

  • How to recover database without controlfile and redo files?

    Hi all,
    If I just have datafiles using hot backup saving in another machine, and all files in current database were lost including data files,control files and redo log files .
    How can I recover database just using hot backup datafiles? without control file, without redo files.
    Your help is greatly appreciated.

    alter database backup control file to trace
    SQL> alter database backup controlfile to trace;
    Go to udump folder in oracle home folder check the trace file copy these lines
    CREATE CONTROLFILE REUSE DATABASE "O10G1” NORESETLOGS NOARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 454
    LOGFILE
    GROUP 1 'E:\ORACLE2\PRODUCT\10.1.0\ORADATA\O10G1\REDO01.LOG' SIZE 10M,
    GROUP 2 'E:\ORACLE2\PRODUCT\10.1.0\ORADATA\O10G1\REDO02.LOG' SIZE 10M,
    GROUP 3 'E:\ORACLE2\PRODUCT\10.1.0\ORADATA\O10G1\REDO03.LOG' SIZE 10M
    -- STANDBY LOGFILE
    DATAFILE
    'E:\ORACLE2\PRODUCT\10.1.0\ORADATA\O10G1\SYSTEM01.DBF',
    'E:\ORACLE2\PRODUCT\10.1.0\ORADATA\O10G1\UNDOTBS01.DBF',
    'E:\ORACLE2\PRODUCT\10.1.0\ORADATA\O10G1\SYSAUX01.DBF',
    'E:\ORACLE2\PRODUCT\10.1.0\ORADATA\O10G1\USERS01.DBF'
    CHARACTER SET WE8MSWIN1252
    Change the new database name “abc
    ” and REUSE replaced by SET and NORESTLOGS replaced by RESTLOGS above lines.
    Save as C1.sql
    C:\ set oracle_sid=instance name
    C:\>sqlplus /nolog
    SQL*Plus: Release 10.1.0.2.0 - Production on Tue Apr
    11 06:44:28 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> connect / as sysdba;
    Connected to an idle instance.
    SQL> startup nomount
    pfile='C:\oracle\product\10.1.0\admin\jeeno\pfile\jeenoinit.ora'
    ORACLE instance started.
    Total System Global Area 171966464 bytes
    Fixed Size 787988 bytes
    Variable Size 145750508 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 262144 bytes
    SQL> @c1.sql
    Control file created.
    SQL> alter database open resetlogs;
    Database altered

  • 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\or

    Hi,
    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

  • How to Recover database from old backup and full archive log file

    Hi Oracle expert!
    I met problem when restore my oracle database.
    In my case:
    - My database version: 10.2.0.2
    - I have a database full backup (01-Nov)
    - I have all Archived log file from (01-Nov -> 05-Nov)
    - My database drop in 05-Nov with disk error (no datafile, no redo..).
    - I have no any RMAN backup from (01-Nov -> 05-Nov)
    How can i restore my database to 05-Nov?
    Thanks

    user10280724 wrote:
    Hi Chinar.
    When i used RMAN flow as your step, but i met the problem!
    - After recover database i select sequence#, applied from v$archived_log;
    --> it apply newest archived log that i had.
    - but when I select Data from table created between 01-Nov to 05-Nov, it not found!
    Not the same way the step:
    SQL> RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL?
    It apply newest the same archived log i had table created between 01-Nov to 05-Nov.
    How can i do with RMAN to recover my table?That is not possible,if your all available archive logs applied using rman or through sqlplus(recover database using backup controlfile until cancel) and one of these logs contain your table then there are not any problems.So there are not any difference between recovery using rman and user managed(using sqlplus),but there main matter is applying all archive logs.So first check through rman list copy of archivelog all or list backup of archivelog all and identify there in rman repository is any information or not about these logs.

  • 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,
    Carles

    There 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

    1、Level 0
    [oracle@localhost ~]$ rman
    Recovery Manager: Release 10.2.0.1.0 - Production on Thu Nov 12 16:23:37 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    RMAN> connect target /
    connected to target database: ORCL (DBID=1222511055)
    RMAN> backup incremental level 0 database;
    Starting backup at 2009-11-12 16:23:56
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=141 devtype=DISK
    channel ORA_DISK_1: starting incremental level 0 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
    input datafile fno=00003 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf
    input datafile fno=00005 name=/u01/app/oracle/oradata/orcl/example01.dbf
    input datafile fno=00006 name=/u01/app/oracle/oradata/orcl/lily01.dbf
    input datafile fno=00002 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf
    input datafile fno=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf
    channel ORA_DISK_1: starting piece 1 at 2009-11-12 16:23:58
    channel ORA_DISK_1: finished piece 1 at 2009-11-12 16:25:23
    piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2009_11_12/o1_mf_nnnd0_TAG20091112T162358_5hqkjz6s_.bkp tag=TAG20091112T162358 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:01:26
    channel ORA_DISK_1: starting incremental level 0 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 2009-11-12 16:25:26
    channel ORA_DISK_1: finished piece 1 at 2009-11-12 16:25:29
    piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2009_11_12/o1_mf_ncsn0_TAG20091112T162358_5hqkmppw_.bkp tag=TAG20091112T162358 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:05
    Finished backup at 2009-11-12 16:25:29
    RMAN> exit
    Recovery Manager complete.
    2、Archive log
    [oracle@localhost ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 12 16:31:29 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> alter system archive log current;
    System altered.
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@localhost ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 12 16:31:51 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 68
    Next log sequence to archive 70
    Current log sequence 70
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@localhost ~]$ ls -l /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2009_11_12/
    total 6984
    -rw-r----- 1 oracle oinstall 11776 Nov 12 15:43 o1_mf_1_68_5hqh4wmj_.arc
    -rw-r----- 1 oracle oinstall 7118848 Nov 12 16:31 o1_mf_1_69_5hqkzfk0_.arc
    [oracle@localhost ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 12 16:32:27 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> insert into hy select * from dba_objects;
    49173 rows created.
    SQL> commit;
    Commit complete.
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@localhost ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 12 16:32:49 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> alter system archive log current;
    System altered.
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@localhost ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 12 16:33:06 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 69
    Next log sequence to archive 71
    Current log sequence 71
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@localhost ~]$ ls -l /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2009_11_12/
    total 12592
    -rw-r----- 1 oracle oinstall 11776 Nov 12 15:43 o1_mf_1_68_5hqh4wmj_.arc
    -rw-r----- 1 oracle oinstall 7118848 Nov 12 16:31 o1_mf_1_69_5hqkzfk0_.arc
    -rw-r----- 1 oracle oinstall 5722624 Nov 12 16:33 o1_mf_1_70_5hql209r_.arc
    3、Level 1
    [oracle@localhost ~]$ rman
    Recovery Manager: Release 10.2.0.1.0 - Production on Thu Nov 12 16:33:27 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    RMAN> connect target /
    connected to target database: ORCL (DBID=1222511055)
    RMAN> backup incremental level 1 database;
    Starting backup at 2009-11-12 16:33:44
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=143 devtype=DISK
    channel ORA_DISK_1: starting incremental level 1 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
    input datafile fno=00003 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf
    input datafile fno=00005 name=/u01/app/oracle/oradata/orcl/example01.dbf
    input datafile fno=00006 name=/u01/app/oracle/oradata/orcl/lily01.dbf
    input datafile fno=00002 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf
    input datafile fno=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf
    channel ORA_DISK_1: starting piece 1 at 2009-11-12 16:33:46
    channel ORA_DISK_1: finished piece 1 at 2009-11-12 16:34:31
    piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2009_11_12/o1_mf_nnnd1_TAG20091112T163345_5hql3cdb_.bkp tag=TAG20091112T163345 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting incremental level 1 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 2009-11-12 16:34:34
    channel ORA_DISK_1: finished piece 1 at 2009-11-12 16:34:35
    piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2009_11_12/o1_mf_ncsn1_TAG20091112T163345_5hql4t7k_.bkp tag=TAG20091112T163345 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 2009-11-12 16:34:35
    RMAN> exit
    Recovery Manager complete.
    4、Archive log
    [oracle@localhost ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 12 16:35:04 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> alter system archive log current;
    System altered.
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@localhost ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 12 16:35:21 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 70
    Next log sequence to archive 72
    Current log sequence 72
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@localhost ~]$ ls -l /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2009_11_12/
    total 12620
    -rw-r----- 1 oracle oinstall 11776 Nov 12 15:43 o1_mf_1_68_5hqh4wmj_.arc
    -rw-r----- 1 oracle oinstall 7118848 Nov 12 16:31 o1_mf_1_69_5hqkzfk0_.arc
    -rw-r----- 1 oracle oinstall 5722624 Nov 12 16:33 o1_mf_1_70_5hql209r_.arc
    -rw-r----- 1 oracle oinstall 23552 Nov 12 16:35 o1_mf_1_71_5hql64nq_.arc
    [oracle@localhost ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 12 16:35:41 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> update hy set object_id=1;
    98346 rows updated.
    SQL> commit;
    Commit complete.
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@localhost ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 12 16:37:27 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> alter system archive log current;
    System altered.
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@localhost ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 12 16:37:42 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 72
    Next log sequence to archive 74
    Current log sequence 74
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@localhost ~]$ ls -l /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2009_11_12/
    total 68712
    -rw-r----- 1 oracle oinstall 11776 Nov 12 15:43 o1_mf_1_68_5hqh4wmj_.arc
    -rw-r----- 1 oracle oinstall 7118848 Nov 12 16:31 o1_mf_1_69_5hqkzfk0_.arc
    -rw-r----- 1 oracle oinstall 5722624 Nov 12 16:33 o1_mf_1_70_5hql209r_.arc
    -rw-r----- 1 oracle oinstall 23552 Nov 12 16:35 o1_mf_1_71_5hql64nq_.arc
    -rw-r----- 1 oracle oinstall 51229184 Nov 12 16:36 o1_mf_1_72_5hql8p7w_.arc
    -rw-r----- 1 oracle oinstall 6126080 Nov 12 16:37 o1_mf_1_73_5hqlbmpo_.arc
    5、Delete datafiles
    [oracle@localhost ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 12 16:38:03 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> select file_name from dba_data_files;
    FILE_NAME
    /u01/app/oracle/oradata/orcl/users01.dbf
    /u01/app/oracle/oradata/orcl/sysaux01.dbf
    /u01/app/oracle/oradata/orcl/undotbs01.dbf
    /u01/app/oracle/oradata/orcl/system01.dbf
    /u01/app/oracle/oradata/orcl/example01.dbf
    /u01/app/oracle/oradata/orcl/lily01.dbf
    6 rows selected.
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@localhost ~]$ [color=Red]rm -f /u01/app/oracle/oradata/orcl/users01.dbf[color]
    [oracle@localhost ~]$ [color=Red]rm -f /u01/app/oracle/oradata/orcl/sysaux01.dbf[color]
    [oracle@localhost ~]$ [color=Red]rm -f /u01/app/oracle/oradata/orcl/undotbs01.dbf[color]
    [oracle@localhost ~]$ [color=Red]rm -f /u01/app/oracle/oradata/orcl/system01.dbf[color]
    [oracle@localhost ~]$ [color=Red]rm -f /u01/app/oracle/oradata/orcl/example01.dbf[color]
    [oracle@localhost ~]$ [color=Red]rm -f /u01/app/oracle/oradata/orcl/lily01.dbf[color]
    6、Delete archive logs
    [oracle@localhost ~]$ [color=Red]rm -f /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2009_11_12/o1_mf_1_68_5hqh4wmj_.arc[color]
    [oracle@localhost ~]$ [color=Red]rm -f /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2009_11_12/o1_mf_1_69_5hqkzfk0_.arc[color]
    [oracle@localhost ~]$ [color=Red]rm -f /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2009_11_12/o1_mf_1_70_5hql209r_.arc[color]
    [oracle@localhost ~]$ [color=Red]rm -f /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2009_11_12/o1_mf_1_71_5hql64nq_.arc[color]
    [oracle@localhost ~]$ [color=Red]rm -f /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2009_11_12/o1_mf_1_72_5hql8p7w_.arc[color]
    [oracle@localhost ~]$ [color=Red]rm -f /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2009_11_12/o1_mf_1_73_5hqlbmpo_.arc[color]
    7、Restore database
    [oracle@localhost ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 12 16:39:42 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> [color=Red]shutdown abort[color]
    ORACLE instance shut down.
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@localhost ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 12 16:39:53 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected to an idle instance.
    SQL> [color=Red]startup mount[color]
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1218992 bytes
    Variable Size 92276304 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 2973696 bytes
    Database mounted.
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@localhost ~]$ rman
    Recovery Manager: Release 10.2.0.1.0 - Production on Thu Nov 12 16:40:14 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    RMAN> connect target /
    connected to target database: ORCL (DBID=1222511055, not open)
    RMAN> [color=Red]restore database;[color]
    Starting restore at 2009-11-12 16:40:24
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=155 devtype=DISK
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to /u01/app/oracle/oradata/orcl/system01.dbf
    restoring datafile 00002 to /u01/app/oracle/oradata/orcl/undotbs01.dbf
    restoring datafile 00003 to /u01/app/oracle/oradata/orcl/sysaux01.dbf
    restoring datafile 00004 to /u01/app/oracle/oradata/orcl/users01.dbf
    restoring datafile 00005 to /u01/app/oracle/oradata/orcl/example01.dbf
    restoring datafile 00006 to /u01/app/oracle/oradata/orcl/lily01.dbf
    channel ORA_DISK_1: reading from backup piece [color=Red]/u01/app/oracle/flash_recovery_area/ORCL/backupset/2009_11_12/o1_mf_nnnd0_TAG20091112T162358_5hqkjz6s_.bkp[color]
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2009_11_12/o1_mf_nnnd0_TAG20091112T162358_5hqkjz6s_.bkp tag=TAG20091112T162358
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:16
    Finished restore at 2009-11-12 16:41:43
    RMAN> [color=Red]recover database;[color]
    Starting recover at 2009-11-12 16:44:22
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting incremental datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    destination for restore of datafile 00001: /u01/app/oracle/oradata/orcl/system01.dbf
    destination for restore of datafile 00002: /u01/app/oracle/oradata/orcl/undotbs01.dbf
    destination for restore of datafile 00003: /u01/app/oracle/oradata/orcl/sysaux01.dbf
    destination for restore of datafile 00004: /u01/app/oracle/oradata/orcl/users01.dbf
    destination for restore of datafile 00005: /u01/app/oracle/oradata/orcl/example01.dbf
    destination for restore of datafile 00006: /u01/app/oracle/oradata/orcl/lily01.dbf
    channel ORA_DISK_1: reading from backup piece [color=Red]/u01/app/oracle/flash_recovery_area/ORCL/backupset/2009_11_12/o1_mf_nnnd1_TAG20091112T163345_5hql3cdb_.bkp[color]
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2009_11_12/o1_mf_nnnd1_TAG20091112T163345_5hql3cdb_.bkp tag=TAG20091112T163345
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:04
    starting media recovery
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 11/12/2009 16:44:29
    RMAN-06053: unable to perform media recovery because of missing log
    [color=Red]RMAN-06025: no backup of log thread 1 seq 73 lowscn 2053082 found to restore
    RMAN-06025: no backup of log thread 1 seq 72 lowscn 2051370 found to restore
    RMAN-06025: no backup of log thread 1 seq 71 lowscn 2051304 found to restore[color]
    RMAN> exit
    Recovery Manager complete.

    1、the point when i make an incremental level 1 backup recently.
    2、The following is the result of the list backup command.
    [oracle@localhost ~]$ rman
    Recovery Manager: Release 10.2.0.1.0 - Production on Fri Nov 13 14:21:33 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    RMAN> connect target /
    connected to target database: ORCL (DBID=1222511055, not open)
    RMAN> list backup;
    using target database control file instead of recovery catalog
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    19 Incr 0 782.84M DISK 00:01:18 2009-11-12 16:25:16
    BP Key: 19 Status: AVAILABLE Compressed: NO Tag: TAG20091112T162358
    Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2009_11_12/o1_mf_nnnd0_TAG20091112T162358_5hqkjz6s_.bkp
    List of Datafiles in backup set 19
    File LV Type Ckp SCN Ckp Time Name
    1 0 Incr 2050993 2009-11-12 16:23:58 /u01/app/oracle/oradata/orcl/system01.dbf
    2 0 Incr 2050993 2009-11-12 16:23:58 /u01/app/oracle/oradata/orcl/undotbs01.dbf
    3 0 Incr 2050993 2009-11-12 16:23:58 /u01/app/oracle/oradata/orcl/sysaux01.dbf
    4 0 Incr 2050993 2009-11-12 16:23:58 /u01/app/oracle/oradata/orcl/users01.dbf
    5 0 Incr 2050993 2009-11-12 16:23:58 /u01/app/oracle/oradata/orcl/example01.dbf
    6 0 Incr 2050993 2009-11-12 16:23:58 /u01/app/oracle/oradata/orcl/lily01.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    20 Incr 0 6.83M DISK 00:00:03 2009-11-12 16:25:27
    BP Key: 20 Status: AVAILABLE Compressed: NO Tag: TAG20091112T162358
    Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2009_11_12/o1_mf_ncsn0_TAG20091112T162358_5hqkmppw_.bkp
    Control File Included: Ckp SCN: 2051025 Ckp time: 2009-11-12 16:25:24
    SPFILE Included: Modification time: 2009-11-12 16:21:56
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    21 Incr 1 11.38M DISK 00:00:42 2009-11-12 16:34:28
    BP Key: 21 Status: AVAILABLE Compressed: NO Tag: TAG20091112T163345
    Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2009_11_12/o1_mf_nnnd1_TAG20091112T163345_5hql3cdb_.bkp
    List of Datafiles in backup set 21
    File LV Type Ckp SCN Ckp Time Name
    1 1 Incr 2051329 2009-11-12 16:33:46 /u01/app/oracle/oradata/orcl/system01.dbf
    2 1 Incr 2051329 2009-11-12 16:33:46 /u01/app/oracle/oradata/orcl/undotbs01.dbf
    3 1 Incr 2051329 2009-11-12 16:33:46 /u01/app/oracle/oradata/orcl/sysaux01.dbf
    4 1 Incr 2051329 2009-11-12 16:33:46 /u01/app/oracle/oradata/orcl/users01.dbf
    5 1 Incr 2051329 2009-11-12 16:33:46 /u01/app/oracle/oradata/orcl/example01.dbf
    6 1 Incr 2051329 2009-11-12 16:33:46 /u01/app/oracle/oradata/orcl/lily01.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    22 Incr 1 6.83M DISK 00:00:02 2009-11-12 16:34:34
    BP Key: 22 Status: AVAILABLE Compressed: NO Tag: TAG20091112T163345
    Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2009_11_12/o1_mf_ncsn1_TAG20091112T163345_5hql4t7k_.bkp
    Control File Included: Ckp SCN: 2051345 Ckp time: 2009-11-12 16:34:32
    SPFILE Included: Modification time: 2009-11-12 16:21:56
    RMAN> exit
    Recovery Manager complete.
    3、I don't backup the archived log files;
    Edited by: user1020343 on 2009-11-12 下午11:05
    Edited by: user1020343 on 2009-11-12 下午11:06

  • 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

  • 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 PM

    1. 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 from .mdf file

    create a database of
    equal size to the one you're trying to attach
    shutdown the server (Stop)
    swap in the old mdf file (replace new .mdf file with .mdf file to be recovered )
    Location: C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA
    bring up the server (start) and let the database attempt to be recovered and then go into suspect mode
    put the database into emergency mode with ALTER DATABASE
    run DBCC CHECKDB (dbname, REPAIR_ALLOW_DATA_LOSS) which will rebuild the log and run full repair
    Your database will be available again but you'll have lost data and the data won't be transactionally consistent
    USE [master]
    GO
    ALTER DATABASE [RdmStoreInformation] SET EMERGENCY
    GO
    ALTER DATABASE [RdmStoreInformation] SET SINGLE_USER
    GO
    DBCC CHECKDB ([RdmStoreInformation], REPAIR_ALLOW_DATA_LOSS)
    GO
    ALTER DATABASE [RdmStoreInformation] SET MULTI_USER
    GO
    ALTER DATABASE [RdmStoreInformation] SET ONLINE
    GO
    This is a issue I had to fix and it's solution listed here for your reference(I gathered all the In-formations by surfing web)

    Interesting, did you get any errors trying to attach the .mdf file?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to recover database using dbf file

    Hi all,
    My oracle database gets crash. But i have all the dbf file . But there is no controlfile,redo log file and pfile . So i have to create a database that will contain these existing dbf file.
    Can anyone tell what are the steps i have to follow ?
    Regards

    Does the datafiles comes from a cold backup or was database closed when disk crashed ?
    Well, what's your OS ?
    You need to write a new init.ora file, create the dba service if your under windows, and recreate the database with the command line, that will create controlfile and redolog.
    Nicolas.
    Argh, this is a Re: Lost database, and you already get answer into the other. Spending time here.
    Message was edited by:
    N. Gasparotto

  • 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

  • Doubt in - recover database command

    Hello,
    I wanted to know the significance of - using backup controlfile
    in the sql command:
    recover database using backup controlfile until cancel
    Some background info-
    I am performing a system copy using Db backup-restore methodology.
    I generated a new control file using -
    1. alter database backup controlfile to trace;
    2. Editing the file, changing SID and renaming it to control.sql
    3. @control.sql
    So how is - recover database using backup controlfile until cancel
    different from - recover database until cancel
    in this scenario?
    Thanks.

    This is the best explanation i had found earlier which is well written
    If you were to recover the database with a current control file, Oralce will know the last SCN of the last checkpoint. So Oracle can use the information in the archived and online redo logs to apply recovery up to that SCN. This is called a "complete" recovery.
    If you do not have the current control file, your option is to use a backup controlfile. Which means Oracle does not know the SCN to stop applying recovery. So you tell Oracle that you are using a "backup controlfile" and that you will tell it when to stop applying redo by replying "cancel." When Oracle starts recovery, it looks at the datafiles to know the last time a checkpoint was performed on the datafile. Oracle now knows to start applying recovery to the datafile for all SCNs after the SCN in the datafile header. Oracle rolls forward transactions. But Oracle does not know when to stop, and eventually, Oracle applies recovery in all of your archived redo logs. You can then tell Oracle to use the redo in the online redo logs. Oracle will ask you where to find more redo. At this point, you tell it to quit applying redo by replying CANCEL.
    Hope this helps in explaining the difference
    Pravin

  • How to install database notification send to email.

    Hi,
    Anyboddy help for how to install notification send to email.
    Aquil

    Gul wrote:
    hi
    how to install database 10g and forms & reports developer 10g on windows xp 32 bit? and which one is to install first? how to connect them together? where can i find complete guideThis link will help you http://tahiti.oracle.com/

Maybe you are looking for

  • Clock & Calculator missing?

    I notice unlike the iPod Touch there isn't a clock or a calculator built in app on the iPad 3.  Was there a reason to exclude these from the iPad and can they be downloaded from somewhere, not necessarily the calculator but I quite like the clock app

  • Printer Setup Utility

    can't be found> "either disabled or not installed" . I've been printing >printer is recognized by computer > using about a week and needed to stop a 'job', there was no printer Icon in the dock (seems like there was before?), not able to create icon.

  • Accessing presentation server file in background

    Hi gurus, my requirement is to access presentation server file in background mode. I got the below documentation regarding this ,but i'm not able to complete the setup as mentioned in this document. please help . [https://www.sdn.sap.com/irj/servlet/

  • [SOLVED] Cheese missing gstreamer plugin: videobalance

    after a recent system update, cheese no longer runs properly... it will load, but have a big error icon in the middle (similar to the Wrong Way street sign) with this written above: One or more needed GStreamer elements are missing: videobalance. Ple

  • Key Photo

    It appears that EVERYTIME there is an iPhoto update, it messes up the key photos in Events and Albums.  After updating to the latest version (9.4.2) of iPhoto on my MacBook Pro, the key photos do not match with the key photos in the Photos app of my