TABLESPACE BACKUP - Database crash

Hello guys,
i got a little question about "Online / Hot Backup" and a crashing instance.
The following worst case happen:
1) Alter Tablespace TABSP_USER01 in backup mode at 03:00 am
2) There is a problem, while copying the datafiles and the backup modus for the tablespace TABSP_USER01 exists all the time
3) Database crashes at 04:30 am and the tablespace TABSP_USER01 is still in backup mode
4) While the whole online/hot backup was run, an archive log backup runs at 04:00 am and the saved archive log files are deleted from disk
I know what happen to the datafiles while the "online backup". The SCN is frozen when the "backup modus" is set... and in the redo log files a complete block-image is written.
All dirty blocks are written to the datafiles, while the "backup modus" is on, but the SCN is not updated.
But my question is now:
1) If i restart my crashed instance at 05:03 am .. are the archive logs needed for checking (which were already back upped and deleted) at a startup?
2) Does Oracle verify the data in the redo/archive logs with the ones in the datafiles?
3) Or does Oracle only set the actual SCNs to the header of the datafiles (the actual scn is get from the controlfile)?
Thanks and Regards
Stefan

#1) If i restart my crashed instance at 05:03 am .. are the archive logs needed for checking (which were already back upped and deleted) at a startup? ##
Yes it will ask for the recovery needed in the mount stage.you need to backup again...
# 2) Does Oracle verify the data in the redo/archive logs with the ones in the datafiles? &3) Or does Oracle only set the actual SCNs to the header of the datafiles (the actual scn is get from the controlfile)? ###
The asnwer is yes and no...It checks both header and information..
Since it is asking for the recocvery it is understandable that it checks for header is not in synch and will apply all the changes...to make it synch.(.all the sequenced are captured in redo-log and archived logs.)
kindly go through this document for clarifications..
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14220/backrec.htm#i1007289
Thanks
-- Raman

Similar Messages

  • Restoring a Rman Tablespace backup to noarchilog mode database

    Hi All,
    Is it possible to take a backup of a tablespace through rman from archivelog mode database and restore the same to noarchivelog mode database through rman ? Please suggest if it is not possible why it is not possible.
    We have a testing database from which a tablespace has been dropped. Can it be restored from the Prod database ?
    Please help. The database version is 9.2.0.8..

    Fabricio_Jorge wrote:
    I think it's possible to backup/restore a single tablespace:
    BACKUP TABLESPACE nome_tablespace [FORMAT 'path/bkp_file'];
    Being able to backup a single tablespace is NOT the same as grafting that TS into a different database.
    First, you are not really backing up a 'tablespace'. You are backing up files. In this case, just the files that implement the named TS, but files, nevertheless. And files belong to a database. Header info in each file defines, among other things, the dbid of the database the file belongs to. And the current scn. That will be a severe mis-match if you tried to 'restore' it to some other db.

  • If the offline tablespace will be backuped when I issue the BACKUP DATABASE

    will the offline tablespace be backuped if I issue the BACKUP DATABASE command?------No.148
    Message was edited by:
    frank.qian

    Simple answer is yes. Use the SKIP OFFLINE to skip offline tablespaces.
    sys@ORCL> create tablespace test datafile 'c:\oracle\product\10.2.0\oradata\orcl\test01.dbf' size 100m autoextend on
      2  extent management local uniform size 1m;
    Tablespace created.
    Elapsed: 00:00:06.96
    sys@ORCL> alter tablespace test offline;
    Tablespace altered.
    Elapsed: 00:00:02.54
    sys@ORCL> select tablespace_name, status from dba_tablespaces;
    TABLESPACE_NAME                STATUS
    SYSTEM                         ONLINE
    UNDOTBS1                       ONLINE
    SYSAUX                         ONLINE
    TEMP                           ONLINE
    USERS                          ONLINE
    EXAMPLE                        ONLINE
    TEST                           OFFLINE
    7 rows selected.
    Elapsed: 00:00:00.01
    sys@ORCL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    c:\sql>rman
    Recovery Manager: Release 10.2.0.2.0 - Production on Mon Jan 15 11:40:06 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    RMAN> connect target /
    connected to target database: ORCL (DBID=1133000557)
    RMAN> backup database;
    Starting backup at 15-JAN-07
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=159 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
    input datafile fno=00002 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
    input datafile fno=00003 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
    input datafile fno=00005 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF
    input datafile fno=00006 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEST01.DBF
    input datafile fno=00004 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 15-JAN-07
    channel ORA_DISK_1: finished piece 1 at 15-JAN-07
    piece handle=C:\ORACLE\PRODUCT\10.2.0\ORADATA\BACKUP\0AI7IGP2_1_1 tag=TAG20070115T114018 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:01:15
    Finished backup at 15-JAN-07
    Starting Control File and SPFILE Autobackup at 15-JAN-07
    piece handle=C:\ORACLE\PRODUCT\10.2.0\ORADATA\BACKUP\C-1133000557-20070115-02 comment=NONE
    Finished Control File and SPFILE Autobackup at 15-JAN-07
    RMAN>

  • Query: Tablespace backup Vs Full database backup

    Which is an better option- Tablespace Backup or Full database backup.What are the adv and disadv of each?
    Rgds,

    RMAN> backup tablespace users;
    Starting backup at 27-AUG-11
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00004 name=/u02/oradata/TEST/datafile/o1_mf_users_6o06qs2q_.dbf
    channel ORA_DISK_1: starting piece 1 at 27-AUG-11
    channel ORA_DISK_1: finished piece 1 at 27-AUG-11
    piece handle=/u02/fra/TEST/backupset/2011_08_27/o1_mf_nnndf_TAG20110827T163233_75l0015r_.bkp tag=TAG20110827T163233 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 27-AUG-11

  • Can't backup database in NOarchivelog mode

    Hi there,
    I get this error when I run this command from rman:
    backup database
    Starting backup at 19-JAN-11
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 01/19/2011 17:18:10
    ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
    please help.
    Thanks in advance!

    user13286861 wrote:
    ok it finally shutdown cleanly.
    I altered it in archivelog mode.
    Now I can run a backup database command from rman?What does it cost to try it and see? What would be the worst thing that could possibly happen? An error message saying you can't do that?
    And please note, this forum is not a chat line. Operators are NOT standing by. Posting a new message every two minutes to give an update on the fact that the database hasn't shut down yet is not necessary and not productive.
    If there are a lot of pending transactions when you issue SHUTDOWN IMMEDIATE, they will all have to be rolled back as part of the shutdown. That can take some time. And if you bypass that with SHUTDOWN ABORT, they will have to be rolled back as part of instance crash recovery on the next startup, which will also take some time. Five minutes may feel like an eternity when you are sitting there waiting for your command to complete, but is no reason to panic.

  • Database Crashing after successful restarts

    Hi Guys,
    I am sort stuck in a process where my DB is starting but after a few seconds its starts shutting down all the processes.  The system was running perfectly before but after todays restart this is all happening.
    the following is the log from the startup to shutdown. Can any one help to figure out what is causing this issue.
    This is ORACLE 11G on Enterprise LINUX._
    Mon Aug 13 13:12:28 2012
    Starting ORACLE instance (normal)
    ****************** Large Pages Information *****************
    Total Shared Global Region in Large Pages = 0 KB (0%)
    Large Pages used by this instance: 0 (0 KB)
    Large Pages unused system wide = 0 (0 KB) (alloc incr 16 MB)
    Large Pages configured system wide = 0 (0 KB)
    Large Page size = 2048 KB
    RECOMMENDATION:
    Total Shared Global Region size is 4098 MB. For optimal performance,
    prior to the next instance restart increase the number
    of unused Large Pages by atleast 2049 2048 KB Large Pages (4098 MB)
    system wide to get 100% of the Shared
    Global Region allocated with Large pages
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Shared memory segment for instance monitoring created
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =28
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up:
    Oracle Database 11g Release 11.2.0.3.0 - 64bit Production.
    ORACLE_HOME = /u01/app/oracle/product/11.2.0.3/db_1
    System name:     Linux
    Node name:     OM5000
    Release:     2.6.18-308.el5
    Version:     #1 SMP Fri Jan 27 17:17:51 EST 2012
    Machine:     x86_64
    Using parameter settings in client-side pfile /u01/app/oracle/admin/OML5K/pfile/init.ora on machine OM5000
    System parameters with non-default values:
    processes = 150
    nls_language = "ENGLISH"
    nls_territory = "AUSTRALIA"
    sga_target = 4G
    control_files = "/u01/app/oracle/oradata/OML5K/control01.ctl"
    control_files = "/u01/app/oracle/fast_recovery_area/OML5K/control02.ctl"
    db_block_size = 8192
    compatible = "11.2.0.0.0"
    db_recovery_file_dest = "/u01/app/oracle/fast_recovery_area"
    db_recovery_file_dest_size= 50000M
    undo_tablespace = "UNDOTBS1"
    remote_login_passwordfile= "EXCLUSIVE"
    db_domain = ""
    dispatchers = "(PROTOCOL=TCP) (SERVICE=OML5KXDB)"
    audit_file_dest = "/u01/app/oracle/admin/OML5K/adump"
    audit_trail = "DB"
    db_name = "OML5K"
    open_cursors = 300
    pga_aggregate_target = 34558M
    diagnostic_dest = "/u01/app/oracle"
    Mon Aug 13 13:12:28 2012
    PMON started with pid=2, OS id=21976
    Mon Aug 13 13:12:28 2012
    PSP0 started with pid=3, OS id=21978
    Mon Aug 13 13:12:29 2012
    VKTM started with pid=4, OS id=21980 at elevated priority
    VKTM running at (1)millisec precision with DBRM quantum (100)ms
    Mon Aug 13 13:12:29 2012
    GEN0 started with pid=5, OS id=21984
    Mon Aug 13 13:12:29 2012
    DIAG started with pid=6, OS id=21986
    Mon Aug 13 13:12:29 2012
    DBRM started with pid=7, OS id=21988
    Mon Aug 13 13:12:29 2012
    DIA0 started with pid=8, OS id=21990
    Mon Aug 13 13:12:29 2012
    MMAN started with pid=9, OS id=21992
    Mon Aug 13 13:12:29 2012
    DBW0 started with pid=10, OS id=21994
    Mon Aug 13 13:12:30 2012
    DBW1 started with pid=11, OS id=21996
    Mon Aug 13 13:12:30 2012
    DBW2 started with pid=12, OS id=21998
    Mon Aug 13 13:12:30 2012
    DBW3 started with pid=13, OS id=22000
    Mon Aug 13 13:12:30 2012
    LGWR started with pid=14, OS id=22002
    Mon Aug 13 13:12:30 2012
    CKPT started with pid=15, OS id=22004
    Mon Aug 13 13:12:30 2012
    SMON started with pid=16, OS id=22006
    Mon Aug 13 13:12:30 2012
    RECO started with pid=17, OS id=22008
    Mon Aug 13 13:12:30 2012
    MMON started with pid=18, OS id=22010
    Mon Aug 13 13:12:30 2012
    MMNL started with pid=19, OS id=22012
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 1 shared server(s) ...
    ORACLE_BASE from environment = /u01/app/oracle
    Mon Aug 13 13:12:30 2012
    kcbztek_populate_tbskey: db key in controlfile and datafile 1 is inconsistent..
    Full restore complete of datafile 4 to datafile copy /u01/app/oracle/oradata/OML5K/users01.dbf. Elapsed time: 0:00:00
    checkpoint is 995547
    last deallocation scn is 3
    Full restore complete of datafile 3 to datafile copy /u01/app/oracle/oradata/OML5K/undotbs01.dbf. Elapsed time: 0:00:00
    checkpoint is 995547
    last deallocation scn is 3
    Mon Aug 13 13:13:00 2012
    Full restore complete of datafile 2 to datafile copy /u01/app/oracle/oradata/OML5K/sysaux01.dbf. Elapsed time: 0:00:30
    checkpoint is 995547
    last deallocation scn is 995211
    Full restore complete of datafile 1 to datafile copy /u01/app/oracle/oradata/OML5K/system01.dbf. Elapsed time: 0:00:38
    checkpoint is 995547
    last deallocation scn is 993074
    Mon Aug 13 13:13:08 2012
    Create controlfile reuse set database "OML5K"
    MAXINSTANCES 8
    MAXLOGHISTORY 1
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    Datafile
    '/u01/app/oracle/oradata/OML5K/system01.dbf',
    '/u01/app/oracle/oradata/OML5K/sysaux01.dbf',
    '/u01/app/oracle/oradata/OML5K/undotbs01.dbf',
    '/u01/app/oracle/oradata/OML5K/users01.dbf'
    LOGFILE GROUP 1 ('/u01/app/oracle/oradata/OML5K/redo01.log') SIZE 51200K,
    GROUP 2 ('/u01/app/oracle/oradata/OML5K/redo02.log') SIZE 51200K,
    GROUP 3 ('/u01/app/oracle/oradata/OML5K/redo03.log') SIZE 51200K RESETLOGS
    WARNING: Default Temporary Tablespace not specified in CREATE DATABASE command
    Default Temporary Tablespace will be necessary for a locally managed database in future release
    Mon Aug 13 13:13:08 2012
    Successful mount of redo thread 1, with mount id 3547719972
    Completed: Create controlfile reuse set database "OML5K"
    MAXINSTANCES 8
    MAXLOGHISTORY 1
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    Datafile
    '/u01/app/oracle/oradata/OML5K/system01.dbf',
    '/u01/app/oracle/oradata/OML5K/sysaux01.dbf',
    '/u01/app/oracle/oradata/OML5K/undotbs01.dbf',
    '/u01/app/oracle/oradata/OML5K/users01.dbf'
    LOGFILE GROUP 1 ('/u01/app/oracle/oradata/OML5K/redo01.log') SIZE 51200K,
    GROUP 2 ('/u01/app/oracle/oradata/OML5K/redo02.log') SIZE 51200K,
    GROUP 3 ('/u01/app/oracle/oradata/OML5K/redo03.log') SIZE 51200K RESETLOGS
    Shutting down instance (immediate)
    Shutting down instance: further logons disabled
    Stopping background process MMNL
    Stopping background process MMON
    License high water mark = 1
    All dispatchers and shared servers shutdown
    ALTER DATABASE CLOSE NORMAL
    ORA-1109 signalled during: ALTER DATABASE CLOSE NORMAL...
    ALTER DATABASE DISMOUNT
    Shutting down archive processes
    Archiving is disabled
    Completed: ALTER DATABASE DISMOUNT
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Mon Aug 13 13:13:11 2012
    Stopping background process VKTM
    Mon Aug 13 13:13:13 2012
    Instance shutdown complete
    Mon Aug 13 13:13:13 2012
    Starting ORACLE instance (normal)
    ****************** Large Pages Information *****************
    Total Shared Global Region in Large Pages = 0 KB (0%)
    Large Pages used by this instance: 0 (0 KB)
    Large Pages unused system wide = 0 (0 KB) (alloc incr 16 MB)
    Large Pages configured system wide = 0 (0 KB)
    Large Page size = 2048 KB
    RECOMMENDATION:
    Total Shared Global Region size is 4098 MB. For optimal performance,
    prior to the next instance restart increase the number
    of unused Large Pages by atleast 2049 2048 KB Large Pages (4098 MB)
    system wide to get 100% of the Shared
    Global Region allocated with Large pages
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =28
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up:
    Oracle Database 11g Release 11.2.0.3.0 - 64bit Production.
    ORACLE_HOME = /u01/app/oracle/product/11.2.0.3/db_1
    System name:     Linux
    Node name:     OM5000
    Release:     2.6.18-308.el5
    Version:     #1 SMP Fri Jan 27 17:17:51 EST 2012
    Machine:     x86_64
    Using parameter settings in client-side pfile /u01/app/oracle/cfgtoollogs/dbca/OML5K/initOML5KTemp.ora on machine OM5000
    System parameters with non-default values:
    processes = 150
    nls_language = "ENGLISH"
    nls_territory = "AUSTRALIA"
    sga_target = 4G
    control_files = "/u01/app/oracle/oradata/OML5K/control01.ctl"
    control_files = "/u01/app/oracle/fast_recovery_area/OML5K/control02.ctl"
    db_block_size = 8192
    compatible = "11.2.0.0.0"
    db_recovery_file_dest = "/u01/app/oracle/fast_recovery_area"
    db_recovery_file_dest_size= 50000M
    norecovery_through_resetlogs= TRUE
    undo_tablespace = "UNDOTBS1"
    remote_login_passwordfile= "EXCLUSIVE"
    db_domain = ""
    dispatchers = "(PROTOCOL=TCP) (SERVICE=OML5KXDB)"
    audit_file_dest = "/u01/app/oracle/admin/OML5K/adump"
    audit_trail = "DB"
    db_name = "OML5K"
    open_cursors = 300
    pga_aggregate_target = 34558M
    diagnostic_dest = "/u01/app/oracle"
    Mon Aug 13 13:13:14 2012
    PMON started with pid=2, OS id=22030
    Mon Aug 13 13:13:14 2012
    PSP0 started with pid=3, OS id=22032
    Mon Aug 13 13:13:15 2012
    VKTM started with pid=4, OS id=22034 at elevated priority
    VKTM running at (1)millisec precision with DBRM quantum (100)ms
    Mon Aug 13 13:13:15 2012
    GEN0 started with pid=5, OS id=22038
    Mon Aug 13 13:13:15 2012
    DIAG started with pid=6, OS id=22040
    Mon Aug 13 13:13:15 2012
    DBRM started with pid=7, OS id=22042
    Mon Aug 13 13:13:15 2012
    DIA0 started with pid=8, OS id=22044
    Mon Aug 13 13:13:15 2012
    MMAN started with pid=9, OS id=22046
    Mon Aug 13 13:13:15 2012
    DBW0 started with pid=10, OS id=22048
    Mon Aug 13 13:13:15 2012
    DBW1 started with pid=11, OS id=22050
    Mon Aug 13 13:13:15 2012
    DBW2 started with pid=12, OS id=22052
    Mon Aug 13 13:13:15 2012
    DBW3 started with pid=13, OS id=22054
    Mon Aug 13 13:13:15 2012
    LGWR started with pid=14, OS id=22056
    Mon Aug 13 13:13:15 2012
    CKPT started with pid=15, OS id=22058
    Mon Aug 13 13:13:15 2012
    SMON started with pid=16, OS id=22060
    Mon Aug 13 13:13:15 2012
    RECO started with pid=17, OS id=22062
    Mon Aug 13 13:13:15 2012
    MMON started with pid=18, OS id=22064
    Mon Aug 13 13:13:15 2012
    MMNL started with pid=19, OS id=22066
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 1 shared server(s) ...
    ORACLE_BASE from environment = /u01/app/oracle
    Mon Aug 13 13:13:15 2012
    Create controlfile reuse set database "OML5K"
    MAXINSTANCES 8
    MAXLOGHISTORY 1
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    Datafile
    '/u01/app/oracle/oradata/OML5K/system01.dbf',
    '/u01/app/oracle/oradata/OML5K/sysaux01.dbf',
    '/u01/app/oracle/oradata/OML5K/undotbs01.dbf',
    '/u01/app/oracle/oradata/OML5K/users01.dbf'
    LOGFILE GROUP 1 ('/u01/app/oracle/oradata/OML5K/redo01.log') SIZE 51200K,
    GROUP 2 ('/u01/app/oracle/oradata/OML5K/redo02.log') SIZE 51200K,
    GROUP 3 ('/u01/app/oracle/oradata/OML5K/redo03.log') SIZE 51200K RESETLOGS
    WARNING: Default Temporary Tablespace not specified in CREATE DATABASE command
    Default Temporary Tablespace will be necessary for a locally managed database in future release
    Successful mount of redo thread 1, with mount id 3547724076
    Completed: Create controlfile reuse set database "OML5K"
    MAXINSTANCES 8
    MAXLOGHISTORY 1
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    Datafile
    '/u01/app/oracle/oradata/OML5K/system01.dbf',
    '/u01/app/oracle/oradata/OML5K/sysaux01.dbf',
    '/u01/app/oracle/oradata/OML5K/undotbs01.dbf',
    '/u01/app/oracle/oradata/OML5K/users01.dbf'
    LOGFILE GROUP 1 ('/u01/app/oracle/oradata/OML5K/redo01.log') SIZE 51200K,
    GROUP 2 ('/u01/app/oracle/oradata/OML5K/redo02.log') SIZE 51200K,
    GROUP 3 ('/u01/app/oracle/oradata/OML5K/redo03.log') SIZE 51200K RESETLOGS
    Stopping background process MMNL
    Stopping background process MMON
    Starting background process MMON
    Starting background process MMNL
    Mon Aug 13 13:13:18 2012
    MMON started with pid=18, OS id=22077
    Mon Aug 13 13:13:18 2012
    MMNL started with pid=19, OS id=22079
    ALTER SYSTEM enable restricted session;
    alter database "OML5K" open resetlogs
    RESETLOGS after incomplete recovery UNTIL CHANGE 995547
    Errors in file /u01/app/oracle/diag/rdbms/oml5k/OML5K/trace/OML5K_ora_22071.trc:
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/OML5K/redo01.log'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    Clearing online redo logfile 1 /u01/app/oracle/oradata/OML5K/redo01.log
    Clearing online log 1 of thread 1 sequence number 0
    Errors in file /u01/app/oracle/diag/rdbms/oml5k/OML5K/trace/OML5K_ora_22071.trc:
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/OML5K/redo01.log'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    Errors in file /u01/app/oracle/diag/rdbms/oml5k/OML5K/trace/OML5K_ora_22071.trc:
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/OML5K/redo01.log'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    Mon Aug 13 13:13:18 2012
    Checker run found 1 new persistent data failures
    Clearing online redo logfile 1 complete
    Errors in file /u01/app/oracle/diag/rdbms/oml5k/OML5K/trace/OML5K_ora_22071.trc:
    ORA-00313: open failed for members of log group 2 of thread 1
    ORA-00312: online log 2 thread 1: '/u01/app/oracle/oradata/OML5K/redo02.log'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    Clearing online redo logfile 2 /u01/app/oracle/oradata/OML5K/redo02.log
    Clearing online log 2 of thread 1 sequence number 0
    Errors in file /u01/app/oracle/diag/rdbms/oml5k/OML5K/trace/OML5K_ora_22071.trc:
    ORA-00313: open failed for members of log group 2 of thread 1
    ORA-00312: online log 2 thread 1: '/u01/app/oracle/oradata/OML5K/redo02.log'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    Errors in file /u01/app/oracle/diag/rdbms/oml5k/OML5K/trace/OML5K_ora_22071.trc:
    ORA-00313: open failed for members of log group 2 of thread 1
    ORA-00312: online log 2 thread 1: '/u01/app/oracle/oradata/OML5K/redo02.log'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    Clearing online redo logfile 2 complete
    Errors in file /u01/app/oracle/diag/rdbms/oml5k/OML5K/trace/OML5K_ora_22071.trc:
    ORA-00313: open failed for members of log group 3 of thread 1
    ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/OML5K/redo03.log'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    Clearing online redo logfile 3 /u01/app/oracle/oradata/OML5K/redo03.log
    Clearing online log 3 of thread 1 sequence number 0
    Errors in file /u01/app/oracle/diag/rdbms/oml5k/OML5K/trace/OML5K_ora_22071.trc:
    ORA-00313: open failed for members of log group 3 of thread 1
    ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/OML5K/redo03.log'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    Errors in file /u01/app/oracle/diag/rdbms/oml5k/OML5K/trace/OML5K_ora_22071.trc:
    ORA-00313: open failed for members of log group 3 of thread 1
    ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/OML5K/redo03.log'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    Clearing online redo logfile 3 complete
    Online log /u01/app/oracle/oradata/OML5K/redo01.log: Thread 1 Group 1 was previously cleared
    Online log /u01/app/oracle/oradata/OML5K/redo02.log: Thread 1 Group 2 was previously cleared
    Online log /u01/app/oracle/oradata/OML5K/redo03.log: Thread 1 Group 3 was previously cleared
    Setting recovery target incarnation to 2
    Assigning activation ID 3547724076 (0xd375f92c)
    Thread 1 opened at log sequence 1
    Current log# 1 seq# 1 mem# 0: /u01/app/oracle/oradata/OML5K/redo01.log
    Successful open of redo thread 1
    SMON: enabling cache recovery
    [22071] Successfully onlined Undo Tablespace 2.
    Undo initialization finished serial:0 start:256557774 end:256557834 diff:60 (0 seconds)
    Dictionary check beginning
    Tablespace 'TEMP' #3 found in data dictionary,
    but not in the controlfile. Adding to controlfile.
    Dictionary check complete
    Verifying file header compatibility for 11g tablespace encryption..
    Verifying 11g file header compatibility for tablespace encryption completed
    SMON: enabling tx recovery
    WARNING: The following temporary tablespaces contain no files.
    This condition can occur when a backup controlfile has
    been restored. It may be necessary to add files to these
    tablespaces. That can be done using the SQL statement:
    ALTER TABLESPACE <tablespace_name> ADD TEMPFILE
    Alternatively, if these temporary tablespaces are no longer
    needed, then they can be dropped.
    Empty temporary tablespace: TEMP
    Database Characterset is US7ASCII
    Create Relation IPS_PACKAGE_UNPACK_HISTORY
    No Resource Manager plan active
    WARNING: Files may exists in db_recovery_file_dest
    that are not known to the database. Use the RMAN command
    CATALOG RECOVERY AREA to re-catalog any such files.
    If files cannot be cataloged, then manually delete them
    using OS command.
    One of the following events caused this:
    1. A backup controlfile was restored.
    2. A standby controlfile was restored.
    3. The controlfile was re-created.
    4. db_recovery_file_dest had previously been enabled and
    then disabled.
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    Mon Aug 13 13:13:20 2012
    QMNC started with pid=24, OS id=22087
    LOGSTDBY: Validating controlfile with logical metadata
    LOGSTDBY: Validation complete
    Global Name changed to OML5K
    Completed: alter database "OML5K" open resetlogs
    alter database rename global_name to "OML5K"
    Completed: alter database rename global_name to "OML5K"
    ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/OML5K/temp01.dbf' SIZE 20480K REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
    Completed: ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/OML5K/temp01.dbf' SIZE 20480K REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
    ALTER DATABASE DEFAULT TABLESPACE "USERS"
    Completed: ALTER DATABASE DEFAULT TABLESPACE "USERS"
    alter database character set INTERNAL_CONVERT ZHS16GBK
    Starting background process CJQ0
    Mon Aug 13 13:13:22 2012
    CJQ0 started with pid=23, OS id=22089
    Mon Aug 13 13:13:23 2012
    db_recovery_file_dest_size of 50000 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Mon Aug 13 13:13:27 2012
    Thread 1 advanced to log sequence 2 (LGWR switch)
    Current log# 2 seq# 2 mem# 0: /u01/app/oracle/oradata/OML5K/redo02.log
    Mon Aug 13 13:13:30 2012
    Updating character set in controlfile to ZHS16GBK
    Synchronizing connection with database character set information
    SYS.RULE$ (CONDITION) - CLOB representation altered
    SYS.SCHEDULER$_EVENT_LOG (ADDITIONAL_INFO) - CLOB representation altered
    SYS.SNAP$ (REL_QUERY) - CLOB representation altered
    SYS.SNAP$ (ALIAS_TXT) - CLOB representation altered
    SYS.WRI$_ADV_OBJECTS (ATTR4) - CLOB representation altered
    SYS.WRI$_ADV_OBJECTS (OTHER) - CLOB representation altered
    SYS.WRI$_ADV_DIRECTIVE_META (DATA) - CLOB representation altered
    SYS.WRI$_DBU_FEATURE_METADATA (INST_CHK_LOGIC) - CLOB representation altered
    SYS.WRI$_DBU_FEATURE_METADATA (USG_DET_LOGIC) - CLOB representation altered
    SYS.WRI$_DBU_HWM_METADATA (LOGIC) - CLOB representation altered
    SYS.WRI$_OPTSTAT_HISTHEAD_HISTORY (EXPRESSION) - CLOB representation altered
    Mon Aug 13 13:13:30 2012
    Starting background process SMCO
    Mon Aug 13 13:13:30 2012
    SMCO started with pid=27, OS id=22098
    SYS.WRI$_REPT_FILES (SYS_NC00005$) - CLOB representation altered
    SYS.SUM$ (SRC_STMT) - CLOB representation altered
    SYS.SUM$ (DEST_STMT) - CLOB representation altered
    SYS.ATTRIBUTE_TRANSFORMATIONS$ (XSL_TRANSFORMATION) - CLOB representation altered
    SYS.METASTYLESHEET (STYLESHEET) - CLOB representation altered
    XDB.XDB$RESOURCE (SYS_NC00027$) - CLOB representation altered
    XDB.XDB$XDB_READY (DATA) - CLOB representation altered
    XDB.XDB$DXPTAB (SYS_NC00006$) - CLOB representation altered
    MDSYS.SDO_XML_SCHEMAS (XMLSCHEMA) - CLOB representation altered
    Thread 1 advanced to log sequence 3 (LGWR switch)
    Current log# 3 seq# 3 mem# 0: /u01/app/oracle/oradata/OML5K/redo03.log
    Mon Aug 13 13:13:43 2012
    MDSYS.SDO_COORD_OP_PARAM_VALS (PARAM_VALUE_FILE) - CLOB representation altered
    MDSYS.SDO_GEOR_XMLSCHEMA_TABLE (XMLSCHEMA) - CLOB representation altered
    MDSYS.SDO_STYLES_TABLE (DEFINITION) - CLOB representation altered
    SYSMAN.MGMT_IP_ELEM_DEFAULT_PARAMS (VALUE) - CLOB representation altered
    SYSMAN.MGMT_IP_REPORT_ELEM_PARAMS (VALUE) - CLOB representation altered
    SYSMAN.MGMT_IP_SQL_STATEMENTS (SQL_STATEMENT) - CLOB representation altered
    SYSMAN.MGMT_JOB_LARGE_PARAMS (PARAM_VALUE) - CLOB representation altered
    SYSMAN.MGMT_SEC_INFO (B64_LOCAL_CA) - CLOB representation altered
    SYSMAN.MGMT_SEC_INFO (B64_INTERNET_CA) - CLOB representation altered
    APEX_030200.WWV_FLOW_FLASH_CHARTS (CHART_XML) - CLOB representation altered
    APEX_030200.WWV_FLOW_FLASH_CHART_SERIES (SERIES_QUERY) - CLOB representation altered
    APEX_030200.WWV_FLOW_SHORTCUTS (SHORTCUT) - CLOB representation altered
    APEX_030200.WWV_FLOW_STEPS (HELP_TEXT) - CLOB representation altered
    APEX_030200.WWV_FLOW_STEPS (HTML_PAGE_HEADER) - CLOB representation altered
    APEX_030200.WWV_FLOW_STEP_PROCESSING (PROCESS_SQL_CLOB) - CLOB representation altered
    APEX_030200.WWV_FLOW_PAGE_GENERIC_ATTR (ATTRIBUTE_VALUE) - CLOB representation altered
    APEX_030200.WWV_FLOW_TEMPLATES (HEADER_TEMPLATE) - CLOB representation altered
    APEX_030200.WWV_FLOW_TEMPLATES (FOOTER_TEMPLATE) - CLOB representation altered
    APEX_030200.WWV_FLOW_TEMPLATES (BOX) - CLOB representation altered
    Mon Aug 13 13:13:54 2012
    Thread 1 cannot allocate new log, sequence 4
    Checkpoint not complete
    Current log# 3 seq# 3 mem# 0: /u01/app/oracle/oradata/OML5K/redo03.log
    Mon Aug 13 13:13:57 2012
    APEX_030200.WWV_FLOW_PAGE_PLUGS (PLUG_SOURCE) - CLOB representation altered
    Thread 1 advanced to log sequence 4 (LGWR switch)
    Current log# 1 seq# 4 mem# 0: /u01/app/oracle/oradata/OML5K/redo01.log
    APEX_030200.WWV_FLOW_PAGE_PLUGS (CUSTOM_ITEM_LAYOUT) - CLOB representation altered
    APEX_030200.WWV_FLOW_PAGE_PLUG_TEMPLATES (TEMPLATE) - CLOB representation altered
    APEX_030200.WWV_FLOW_PAGE_PLUG_TEMPLATES (TEMPLATE2) - CLOB representation altered
    APEX_030200.WWV_FLOW_PAGE_PLUG_TEMPLATES (TEMPLATE3) - CLOB representation altered
    APEX_030200.WWV_FLOW_PROCESSING (PROCESS_SQL_CLOB) - CLOB representation altered
    APEX_030200.WWV_FLOW_REGION_REPORT_COLUMN (PK_COL_SOURCE) - CLOB representation altered
    APEX_030200.WWV_FLOW_ROW_TEMPLATES (ROW_TEMPLATE1) - CLOB representation altered
    APEX_030200.WWV_FLOW_ROW_TEMPLATES (ROW_TEMPLATE2) - CLOB representation altered
    APEX_030200.WWV_FLOW_ROW_TEMPLATES (ROW_TEMPLATE3) - CLOB representation altered
    APEX_030200.WWV_FLOW_ROW_TEMPLATES (ROW_TEMPLATE4) - CLOB representation altered
    APEX_030200.WWV_FLOW_BANNER (BANNER) - CLOB representation altered
    APEX_030200.WWV_FLOW_BUTTON_TEMPLATES (TEMPLATE) - CLOB representation altered
    APEX_030200.WWV_FLOW_INSTALL (DEINSTALL_SCRIPT) - CLOB representation altered
    APEX_030200.WWV_FLOW_LIST_TEMPLATES (LIST_TEMPLATE_CURRENT) - CLOB representation altered
    APEX_030200.WWV_FLOW_LIST_TEMPLATES (LIST_TEMPLATE_NONCURRENT) - CLOB representation altered
    APEX_030200.WWV_FLOW_LIST_TEMPLATES (SUB_LIST_ITEM_CURRENT) - CLOB representation altered
    APEX_030200.WWV_FLOW_LIST_TEMPLATES (SUB_LIST_ITEM_NONCURRENT) - CLOB representation altered
    APEX_030200.WWV_FLOW_LIST_TEMPLATES (ITEM_TEMPLATE_CURR_W_CHILD) - CLOB representation altered
    APEX_030200.WWV_FLOW_LIST_TEMPLATES (ITEM_TEMPLATE_NONCURR_W_CHILD) - CLOB representation altered
    APEX_030200.WWV_FLOW_LIST_TEMPLATES (SUB_TEMPLATE_CURR_W_CHILD) - CLOB representation altered
    APEX_030200.WWV_FLOW_LIST_TEMPLATES (SUB_TEMPLATE_NONCURR_W_CHILD) - CLOB representation altered
    APEX_030200.WWV_FLOW_WORKSHEETS (SQL_QUERY) - CLOB representation altered
    Mon Aug 13 13:14:08 2012
    APEX_030200.WWV_FLOW_CUSTOM_AUTH_SETUPS (PAGE_SENTRY_FUNCTION) - CLOB representation altered
    APEX_030200.WWV_FLOW_CUSTOM_AUTH_SETUPS (SESS_VERIFY_FUNCTION) - CLOB representation altered
    APEX_030200.WWV_FLOW_CUSTOM_AUTH_SETUPS (PRE_AUTH_PROCESS) - CLOB representation altered
    APEX_030200.WWV_FLOW_CUSTOM_AUTH_SETUPS (AUTH_FUNCTION) - CLOB representation altered
    APEX_030200.WWV_FLOW_CUSTOM_AUTH_SETUPS (POST_AUTH_PROCESS) - CLOB representation altered
    Refreshing type attributes with new character set information
    Completed: alter database character set INTERNAL_CONVERT ZHS16GBK
    Mon Aug 13 13:14:11 2012
    ALTER SYSTEM disable restricted session;
    Mon Aug 13 13:14:12 2012
    Thread 1 advanced to log sequence 5 (LGWR switch)
    Current log# 2 seq# 5 mem# 0: /u01/app/oracle/oradata/OML5K/redo02.log
    Mon Aug 13 13:14:28 2012
    Shutting down instance (immediate)
    Stopping background process SMCO
    Shutting down instance: further logons disabled
    Stopping background process QMNC
    Mon Aug 13 13:14:29 2012
    Stopping background process CJQ0
    Stopping background process MMNL
    Stopping background process MMON
    License high water mark = 14
    Stopping Job queue slave processes, flags = 7
    Job queue slave processes stopped
    All dispatchers and shared servers shutdown
    ALTER DATABASE CLOSE NORMAL
    Mon Aug 13 13:14:33 2012
    SMON: disabling tx recovery
    SMON: disabling cache recovery
    Mon Aug 13 13:14:33 2012
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    Thread 1 closed at log sequence 5
    Successful close of redo thread 1
    Completed: ALTER DATABASE CLOSE NORMAL
    ALTER DATABASE DISMOUNT
    Shutting down archive processes
    Archiving is disabled
    Completed: ALTER DATABASE DISMOUNT
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Mon Aug 13 13:14:34 2012
    Stopping background process VKTM
    System State dumped to trace file /u01/app/oracle/diag/rdbms/oml5k/OML5K/trace/OML5K_ora_22163.trc
    Mon Aug 13 13:14:36 2012
    Instance shutdown complete
    Mon Aug 13 13:14:37 2012
    Starting ORACLE instance (normal)

    All the mesages are dated "Aug 13" which is quite a few months ago ! I see no recent messages.
    You have two CREATE CONTROLFILE calls and one alter database character set INTERNAL_CONVERT ZHS16GBK call.
    Were these part of a Database Creation using DBCA (The Database Creation Assistant) ?
    Hemant K Chitale

  • ORACLE 9I DATABASE - CRASH & RECOVER

    I AM USING ORACLE 9I FOR LINUX IN A DUAL XEON PROCESSOR SERVER. NOW DATABASE DOES NOT OPEN PROPERLY AND SHOW FOLLOWING MESSAGES:-
    1) for SYSDBA user message for startup database
    SQL*Plus: Release 9.2.0.1.0 - Production on Thu Aug 21 18:49:14 2003
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Enter user-name: sys as sysdba
    Enter password:
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 621875780 bytes
    Fixed Size 451140 bytes
    Variable Size 335544320 bytes
    Database Buffers 285212672 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL>
    2) Then we reset the logs the message is:
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/C/app/oracle9ir2/oradata/tepiapp/system01.dbf'
    SQL>
    3) When connecting with different user the message is :
    Enter user-name: mis-dba
    Enter password:
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    0;oracle@tepiapp:~[oracle@tepiapp oracle]$
    Please guide me for detail solutions for this problem
    Regards,
    FSL

    hmmm ok, so it seems that you dont use RMAN to backup your database...
    It seems there that your have a controlfile problem after a disk crash. I hope your database is on ARCHIVELOG mode.
    Does your database crashed during activity or was idle ?
    1. Mount the database
    2. set autorecovery on ;
    recover database using backup controlfile ;
    media recovery complete <= this means that all is ok now
    3. alter database open resetlogs ;
    if #2 doesnt work cause of redo log problem such as corrupted redo log, or some transactions "blocked" in theses redo log cause of a big crash during the database activity, Oracle will tell you that a redo log is corrupted and will give you the hour of the redo log log entry that Oracle need to recover.
    So you will have to make an incomplete recovery (that means you will lose some datas, no much but some) until time.
    For example, your redo entry has been corrupted at 12:00:50
    1. recover database until time '2003-08-25:12:00:00' ;
    2. alter database open resetlogs ;
    3. Make a full backup of your database !
    Fred

  • "Backup optimization on" is not working for "backup database"

    Hi,
    I am using a windows environment and my database info is like this:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Productionnow, I change my configuration for backup optimization on and then make example tablespace offline and also make example datafile offline. After that I run 2 times "Backup Database" command but 2 backup has same size and have example tablespace too... Backup archivelog all is working bur backup database is not!
    according to this link it must not backup example datafile for second: http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmconfb.htm#BRADV113
    is there something that I missed ?
    rman configuration:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 5;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF;
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'HIGH' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'C:\APP\ABC\PRODUCT\11.2.0\DBHOME_1\DATABASE\SNCFORCL.ORA'; # default

    If you enable backup optimization, then the BACKUP command skips backing up files when the identical file has already been backed up to the specified device type.
    1. In case of datafile RMAN compares the DBID, checkpoint SCN, creation SCN, and RESETLOGS SCN and time as a datafile already in a backup. If they are identical then skip to take backup again.
    2. In case of archived redo log RMAN compares thread, sequence number, and RESETLOGS SCN and time.
    3. In case of backupset RMAN compares recid and stamp.
    Backup optimization applies to only commands,
    -BACKUP DATABASE
    -BACKUP ARCHIVELOG with ALL or LIKE options
    -BACKUP BACKUPSET ALL
    refer,
    http://www.stanford.edu/dept/itss/docs/oracle/10gR2/backup.102/b14191/rcmconc1008.htm
    Thanks

  • RMAN throwing errors during Tablespace Backup - RMAN-06004 and RMAN-06019

    Hi All.
    Please help me to fix trail of error message I'm getting while trying backup of a newly added tablespace in database. I'm using RMAN as a recovery method.
    Tablespace Name: test
    DB Version: Oracle 10g R1.
    OS: Red Hat Linux 5
    RMAN> report schema;
    Report of database schema
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace RB segs Datafile Name
    1 490 SYSTEM YES /u01/app/oracle/oradata/qrcl/system01.dbf
    2 25 UNDOTBS1 YES /u01/app/oracle/oradata/qrcl/undotbs01.dbf
    3 270 SYSAUX NO /u01/app/oracle/oradata/qrcl/sysaux01.dbf
    4 23 USERS NO /u01/app/oracle/oradata/qrcl/users01.dbf
    5 40 TEST NO /u01/app/test01.dbf
    List of Temporary Files
    =======================
    File Size(MB) Tablespace Maxsize(MB) Tempfile Name
    1 20 TEMP 32767 /u01/app/oracle/oradata/qrcl/temp01.dbf
    RMAN>
    RMAN> backup tablespace "test";
    Starting backup at 22-AUG-12
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 08/22/2012 11:57:13
    RMAN-06004: ORACLE error from recovery catalog database: RMAN-20202: tablespace not found in the recovery catalog
    RMAN-06019: could not translate tablespace name "test"
    RMAN> restore tablespace test;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "test": expecting one of: "double-quoted-string, identifier, single-quoted-string"
    RMAN-01007: at line 1 column 20 file: standard input
    I tried to update Catalog Server but still no luck:
    RMAN> RESYNC CATALOG;
    starting full resync of recovery catalog
    full resync complete
    Please Assist.
    Thanks
    Prashant Dixit

    Hello Prashant;
    The main issue is your tablespace name is an RMAN Reserved Word "Test"
    http://docs.oracle.com/cd/B13789_01/server.101/b10770/rcmcomma.htm#1006728
    Different test
    -- Create the tablespace
    CREATE TABLESPACE OTN_TEST DATAFILE
      '/u01/oradata/RECOVER2/test01.dbf' SIZE 1M AUTOEXTEND OFF
    LOGGING
    ONLINE;-- Create a user for the tablespace
    CREATE USER RMAN_TEST
      IDENTIFIED BY RMAN_TEST
      DEFAULT TABLESPACE OTN_TEST
      TEMPORARY TABLESPACE TEMP
      PROFILE DEFAULT
      ACCOUNT UNLOCK;
    ALTER USER RMAN_TEST QUOTA UNLIMITED ON "OTN_TEST";  -- Create a table in the tablespace
    CREATE TABLE RMAN_TEST.EMP
      EMPNO     NUMBER,
      ENAME     VARCHAR2(30 BYTE),
      JOB       VARCHAR2(30 BYTE),
      MGR       NUMBER,
      HIREDATE  DATE,
      SAL       NUMBER,
      COMM      NUMBER,
      DEPTNO    NUMBER
    TABLESPACE OTN_TEST;-- Add some data
    SET DEFINE OFF;
    Insert into RMAN_TEST.EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
    Values
       (7369, 'SMITH', 'CLERK', 7902, TO_DATE('12/17/1980 00:00:00', 'MM/DD/YYYY HH24:MI:SS'),
        800, 20, 0);
    Insert into RMAN_TEST.EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
    Values
       (5000, 'NOCATALOG', 'DBA', 77902, TO_DATE('04/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'),
        200, 0, 0);
    COMMIT;-- start RMAN and backup tablespace
    RMAN> BACKUP TABLESPACE OTN_TEST;
    Starting backup at 22-AUG-12
    starting full resync of recovery catalog
    full resync complete
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00007 name=/u01/oradata/RECOVER2/test01.dbf
    channel ORA_DISK_1: starting piece 1 at 22-AUG-12
    channel ORA_DISK_1: finished piece 1 at 22-AUG-12
    piece handle=/u01/app/oracle/flash_recovery_area/RECOVER2/backupset/2012_08_22/o1_mf_nnndf_TAG20120822T080711_839pczng_.bkp tag=TAG20120822T080711 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 22-AUG-12
    Starting Control File and SPFILE Autobackup at 22-AUG-12
    piece handle=/u01/app/oracle/flash_recovery_area/RECOVER2/autobackup/2012_08_22/o1_mf_s_791971633_839pd1bm_.bkp comment=NONE
    Finished Control File and SPFILE Autobackup at 22-AUG-12
    Note
    If you dropped the tablespace then you need to recover the database to a point in time, not the tablespace.
    Best Regards
    mseberg

  • Tablespace Backup & Restore

    Hi Team,
    I am working on the TableSpace Backup & restore operation.
    I can able to take backup of the tablespace using the rman script. Also I can able to restore that table space properly without any errors.
    Now my query is that How can I verify that tablespace is restored properly or not.
    Like in whole database backup & restore , we will create table in database & take a backup of the whole database after that we delete that table. & then we will perfom the Incomplete recovery to get back that table.
    Can we have any method to verify for Tabalespace.?
    Plz comment ,
    Regards,
    S. Tiwari

    Hi edrian,
    Thanks for the reply,
    I had created the table in the EXAMPLE tablespace as testing
    Now after that I had taken the backup of EXAMPLE tablespace using follwing script.
    run
    BACKUP TABLESPACE 'EXAMPLE' FORMAT 'C:\BK\EXAMPLE_%d_%s';
    & its taking the tablespace backup succesfully also .
    Now after that I am dropping that table from the database.
    If I do Incomplete recovey for the EXAMLE tablespace , I am expecting the table back in the database. But its not there in the database.
    I am using Incomplete restore Script as given below.
    run
    RESTORE TABLESPACE "EXAMPLE" UNTIL TIME "to_date('Feb 08 2007 11:54:56','Mon DD YYYY HH24:MI:SS')";
    Plz comment if I am going wrong anywhere. Also suggest me the proper Incomplete tablespace restore script.
    Regards,
    S. Tiwari

  • Tablespace Backup

    SQL> CREATE TABLESPACE RMANTBS
    DATAFILE 'C:\Oracle10g\Ora10gdata\oradb\RMANTBS1.DBF' SIZE 10M
    EXTENT MANAGEMENT LOCAL AUTOALLOCATE
    SEGMENT SPACE MANAGEMENT AUTO;
    RMAN> BACKUP TABLESPACE RMANTBS;
    SQL> DROP TABLESPACE RMANTBS INCLUDING CONTENTS AND DATAFILES;.. Accidentally
    How can we recover the tablespace..using the Tablespace backup
    ..But I can do a Incomplete Recovery successfully..
    RMAN> run {
    2> shutdown immediate;
    3> startup mount;
    4> sql " alter session set nls_date_format=''yy-mm-dd hh24:mi:ss'' ";
    5> set until time '09-11-24 12:30:00';
    6> restore database;
    7> recover database;
    8> alter database open resetlogs;
    9> }
    Edited by: Verma on Nov 24, 2009 10:28 AM

    DROP TABLESPACE RMANTBS INCLUDING CONTENTS AND DATAFILES;..
    Will cause the control file to be updated also.
    So RMAN> SQL 'ALTER TABLESPACE RMANTBS OFFLINE';..
    gives ERROR..
    RMAN> SQL 'ALTER TABLESPACE RMANTBS OFFLINE';
    sql statement: ALTER TABLESPACE RMANTBS OFFLINE
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 11/25/2009 17:21:27
    RMAN-11003: failure during parse/execution of SQL statement: ALTER TABLESPACE RMANTBS OFFLINE
    ORA-00959: tablespace 'RMANTBS' does not exist..
    So only if the physical file is corrupted your solution is Ok..which I know..
    Or you have to go for point-in-time recovery..which was Ok

  • Production Database Crashed

    Dear Members
    let see a scneario
    i have a primary database and a standby database
    my production database crashed
    how can i recover my standby database until last comitted transaction. how can i get imy transactions from online redo logs which were on primary database
    now my primary database server is crashed i cant login to primary database.
    is standby database's redo logs synched with primary database's online redo logs?
    please help me out
    regards

    Hi,
    You need to check first whether all online Redo Logs till the point of time - are applied to DB.
    Check for logs still need to apply or not - If all the logs are applied then you can stop the real time apply on standby and the cancel the recovery on standby and try to Open the DB in read write mode for access
    Is there any other standby apart from this . ??
    If not first take the backup of this standby immediately, then recover the DB on primary DB till the point of time of crash and try to mount the DB on primary.
    then you can make it as standby.
    - Pavan Kumar N
    Oracle 9i/10g - OCP
    http://oracleinternals.blogspot.com/

  • Can anyone tell me the senarios in which database crashes

    hi
    can anyone tell me the senarios in which database crashes other then backup recovery concepts.when the databse goes live
    regards,
    swapna.s

    Those sort of errors would mostly be TNS errors when the database server runs out of memory (memory configured for Oracle, swapping, number of network connections limit) etc...
    Other than that, if the application is written badly (which I hope is not the case), then users may face deadlock situations but those would be handled by Oracle automatically.
    Of course, these errors can be handled by properly tuning the database or the application.

  • Can I plug in (restore) an RMAN tablespace backup into another DB ?

    11.2.0.3/AIX 6.1
    We accidently dropped a development DB without taking the latest expdp backup of an important schema. All the objects on this schema belonged to only one tablespace and we have the RMAN backup of that tablespace. Is there anyway we could recreate that schema by restoring the tablespace backup into another database ?

    Yes.
    Use the TRANSPORT TABLESPACE feature/method :
    http://oracle.su/docs/11g/backup.112/e10643/rcmsynta2021.htm
    Also check out sys.dbms_tts.transport_set_check
    RMAN> transport tablespace emp_data, emp_data2
               tablespace destination '/u01/app/oracle/oradata'
               auxiliary destination '/u04/app/oracle/oradata';If you need to check your endian format use this query :
    SELECT
      PLATFORM_NAME,
      ENDIAN_FORMAT
    FROM
      V$TRANSPORTABLE_PLATFORM;http://www.fadalti.com/oracle/database/how_to_transportable_tablespaces.htm
    http://husnusensoy.wordpress.com/2008/07/12/migrating-data-using-transportable-tablespacetts/
    Best Regards
    mseberg

  • UNDO Tablespace backup- RMAN

    Hi Team/champions,
    I am confused in RMAN full DB backup why UNDO tablespce is included even we include the archive logs also.
    in Short ?
    why UNDO tablespace backup is required while taking RMAN backup ?
    Regards,
    Shitesh Shukla

    if I dont want to include the UNDO tablespce in my backup
    what if I took only database files backup excluding TEMP n UNDONOT an option. You have to include UNDO. 11g has optimization for backing up an Undo tablespace.
    In 10gR2 what you could do is
    1. Create a New Undo Tablespace
    2. Switch to the new Undo Tablespace
    3. verify that the Old Undo Tablespace is no longer in use -- confirm that there are no active transactions in undo segments in it
    4. drop the old Undo tablespace
    5. Run your RMAN Backup
    You run the risks of
    a. Waiting a long time at step 3
    b. ORA-1555s for users after you drop the Undo tablespace in step 4.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

Maybe you are looking for

  • How do you change the axis of an object?

    I'm trying to make a rotating image on the corner of my screen, but the only axis it rotates around (trying to do an x axis rotation) seems to be in the corner of the image. Can i change it so it rotates around the middle? Thanks

  • Need help with Link passed from XML

    This is to create a flash driven navigation menu. What I have is a coldfusion page that serves a simple XML formatted page. There are 3 XML components, linkLabel, linkURL and linkType. The label just passes text, the type is just a number 0-9 that is

  • IMac freezes when syncing iPod touch

    My iMac freezes (spinning beach ball) when I attempt to sync iPod Touch, using iTunes 10.5.  Otherwise, iMac, iTunes, and iPod Touch work fine. iPod Touch 3rd Gen., IOS 4.3 iMac 21", new in Dec. 2010 Snow Leopard

  • How do I reinstall and restore my iMac?

    I am currently backing up the contents using disk utility of my friends iMac (I lied in the question, sorry) and I want to be sure Im doing this right. My goal is to reinstall the OS, and then restore it to the backup using the disk image. Im concern

  • How to convert mysql into bekerley db?

    i have a mysql database ,there is a table in it ,only have 7 fields:symbol,date,open,high,low,close,vol. would you mind to tell me how to convert it into bekerley db?