Backup controlfile from O/S command

Is it possible that backup controlfile by OS level command without issue oracle DDL command such as "alter database backup controlfile to ..." ?

The control file is a binary file that is constantly being written to when the database is open. If the database is open, then you should only backup the control file with RMAN or the 'alter database ..." commands. If the database is shut down, then you can use the OS command to backup the control file.
Thanks, Tammy

Similar Messages

  • How to extract controlfile from backup set?

    Hi
    If I use this "INCLUDE CURRENT CONTROLFILE" in backup command direct to tape and no catalog, How to extract controlfile from backup set from tape?
    Thanks,
    Taohiko
    Edited by: taohiko on Sep 17, 2009 7:54 AM

    yes
    list backup of controlfile
    will show you where controlfile backup piece reside with backup piece name
    after then
    restore controlfile from 'backup_piece_naem_with_its_full_path_from_above_command_result';Khurram

  • Restore controlfile from tape backup without autobackup setting on

    I am testing a scenraio of restoring control file if we loose all control files.
    My RMAN settings for CONTROLFILE AUTOBACKUP is OFF. But, I have taken a backup of controlfile using 'BACKUP CURRENT CONTROL FILE' .
    When I tried to restore control file. I am receiving following error:
    RMAN> run {
    2> allocate channel c101 type sbt_tape;
    3> restore controlfile ;
    4> }
    allocated channel: c101
    channel c101: sid=153 devtype=SBT_TAPE
    channel c101: VERITAS NetBackup for Oracle - Release 6.0 (2006110304)
    Starting restore at 24-MAY-2007 13:44:59
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 05/24/2007 13:44:59
    RMAN-06563: control file or SPFILE must be restored using FROM AUTOBACKUP
    My question is, How can I restore control file from tape backup without CONTROLFILE AUTOBACKUP setting ON.
    It sounds like, There is no way we can restore control file from tape backup if you've not set the CONTROLFILE AUTOBACKUP is ON.
    Please advice

    When all controlfiles are lost and a recovery catalog is NOT used, RMAN has no information , where to find the controlfile backup. It's not enough to specify the channel, such a channel could hold many different backups from many different databases. You have tell , which database and which backupset. Modify your run block:
    SET DBID <DBID of the database,for which you want to restore the controlfile>;
    RESTORE CONTROLFILE FROM <name_of_backupiece_which_contains_the_controlfile backup>';
    Werner

  • Add date to backup controlfile to trace command

    A little background:
    I'm writting a rman script and want to include a controlfile to trace and a pfile.
    The commands I'm using are:
    alter database backup controlfile to trace as 'd:\oracle\backup\controlfile.bak';
    create pfile='d:\oracle\backup\pfile.bak' from spfile;
    However, I want the file to be controlfile.bak.theDate, ie controlfile.bak.20090323, as I want to keep so many days worth and not overwrite the file.
    How can I add the date in this way?
    Thanks in advance.

    I'm writting a rman script and want to include a controlfile to trace and a pfile.The commands I'm using are:
    alter database backup controlfile to trace as 'd:\oracle\backup\controlfile.bak';
    create pfile='d:\oracle\backup\pfile.bak' from spfile;
    However, I want the file to be controlfile.bak.theDate, ie controlfile.bak.20090323, as I want to keep so many days worth and not overwrite the file.
    How can I add the date in this way?>
    But why do you want to do so when RMAN itself can take the controlfile backup and of the pfile automatically.Why do want to get the trace of controlfile.In you script simply add
    backup current controlfile format '/location/ctl_%d_%T';
    backup spfile format 'location/sp_%d_%T';
    %d ---> The name of the database.
    %T ---> The year, month, and day (YYYYMMDD)
    Every time you take a backup, the controlfile and spfile with unique name will be present along with the database backup.
    Anand

  • Restore controlfile from leagato tape backup

    I am using legato tool to perform rman tape backup.
    I use the following script on legato to get the controlfile backup.
    "backup current controlfile format '%d_%s_%p.ctrl'; "
    If I lost the controlfile how do i restore controlfile from the tape. Assume that the DB in nomount stage.

    Hi,
    backing up autobackup controlfiles to legato is possible. All you have to do is to configure autobackup accordingly. By default autobackup controlfiles will get written to disk.
    However i strongly recommend to use a rman backup catalog. This will save you a lot of time consuming trouble if you need to restore your database.
    The rman catalog database itself does not need any license and is rather small (5 GB on disk, 512 MB memory).
    Restoring the control file will be something like this:
    set controlfile autobackup format for device type sbt to '%F';
    restore controlfile from autobackup;
    Ronny Egner
    My Blog: http://blog.ronnyegner-consulting.de

  • How to create standby controlfile from restored backup

    Hi Techies,
    I am re-building one of my DR server, Source and target DB is oracle 10g.
    I have taken the source backup which is going to be restored on target, But I forgot to take a standby controlfile from source DB at the time (Pre/Post) backup.
    Now the issue is I can create a standby controlfile on primary and copy the same to target, But so many datafiles are added after the backup which I have taken to restore and medias are already shipped.
    I can send the other set of backup to DR site, but it takes a week time and I don't want to do that If I can regenerate it.
    So any clue to create standby controlfile on target with restored datafiles?
    Regards,
    Nick Loy

    Hmm... sounds like you perform this in a rather manual fashion...
    Do you use RMAN for taking the backups?
    Or maybe the BR*TOOLS?
    With these tools you are usually safe from such mistakes - I can only recommend to use them!
    However, since you don't have a control file at all on the target side, the only thing left to do would be to
    ALTER DATABASE BACKUP CONTROLFILE TO TRACE NORESETLOGS;
    on the primary side and manually remove the files that have been added since you took the backup from the control file script,
    Afterwards you use the script on the standby side to create the control files.
    regards,
    Lars

  • FOR EXPERTS!! How to restore controlfile from tape using TSM??

    Hi ,
    I have a backup of my database (controlfiles, datafiles and archives) on tapes (TSM).
    I'm doing some tests and i delete all my controlfiles.
    Now i'm trying to restore the control file using the following:
    RMAN>set DBID=1489198124;
    RMAN>run{
    allocate channel t1 device type sbt_tape parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo_capdb15p.opt)';
    restore controlfile from autobackup;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 05/10/2007 16:25:30
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    The autobackup is OFF now (i will put this ON later and become a production enviroment).
    How can i get the controlfile backup from tape. I have this backup on tape made by RMAN using TIVOLI STORAGE MANAGER.
    Tks,
    Paulo.

    This is the command:
    run {
    allocate channel t1 device type sbt_tape parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo_capdb15p.opt)';
    backup current controlfile;
    This is my backups!!!
    RMAN> list backup of controlfile;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    5234 Incr 0 7.25M SBT_TAPE 00:00:06 10-MAY-07
    BP Key: 5236 Status: AVAILABLE Compressed: NO Tag: SEMANAL
    Handle: BKP_HOT_SEMANAL_02ihckld_1_1 Media: 35240
    Control File Included: Ckp SCN: 215589 Ckp time: 10-MAY-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    5254 Incr 1 7.25M SBT_TAPE 00:00:04 10-MAY-07
    BP Key: 5260 Status: AVAILABLE Compressed: NO Tag: SEMANAL
    Handle: BKP_HOT_SEMANAL_05ihcksm_1_1 Media: 35240
    Control File Included: Ckp SCN: 215769 Ckp time: 10-MAY-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    5315 Incr 0 7.25M SBT_TAPE 00:00:05 10-MAY-07
    BP Key: 5327 Status: AVAILABLE Compressed: NO Tag: SEMANAL
    Handle: BKP_HOT_SEMANAL_0aihcld9_1_1 Media: 35212
    Control File Included: Ckp SCN: 216284 Ckp time: 10-MAY-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    5454 Incr 0 7.25M SBT_TAPE 00:00:04 10-MAY-07
    BP Key: 5459 Status: AVAILABLE Compressed: NO Tag: SEMANAL
    Handle: BKP_HOT_SEMANAL_0gihcmjn_1_1 Media: 35240
    Control File Included: Ckp SCN: 217433 Ckp time: 10-MAY-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    5553 Incr 0 7.11M DISK 00:00:01 10-MAY-07
    BP Key: 5556 Status: AVAILABLE Compressed: NO Tag: SEMANAL
    Piece Name: /oracle/product/10.2.0/db/dbs/BKP_HOT_SEMANAL_0nihcv0m_1_1
    Control File Included: Ckp SCN: 260191 Ckp time: 10-MAY-07

  • Recover database until cancel using backup controlfile Fails with ORA-01547

    Hi
    First of all, I'm sorry for posting in this community as my issue doesn't have any thing to do with Rman, but I couldn't find any more relative Community to post in
    our System is Oracle EBS 11i and the OS on the production is AIX 5.2 / and the DR is 5.3 / DB version is 9i
    we have our Oracle ERP scheduled using crontab to take a database COLD backup daily using gtar -cvzf .
    yesterday I needed to clone the database only, so I used my usual method witch is
    1) on the source SQL> alter database backup controlfile to trace as '<dest>/makecntrlfil.sql'
    then you can delete the Commented header and change the first command from
    "CREATE CONTROLFILE REUSE DATABASE <SOURCE> NORESETLOGS ..."
    TO
    CREATE CONTROLFILE SET DATABASE <TARGET> RESETLOGS <NO>ARCHIVELOG
    2) de-compress the tgz files
    3) on the target edit the $ORACLE_HOME/dbs/init<source>.ora, $ORACLE_HOME/environment file
    4)run /ORACLE_HOME/appsutils/clone/bin/adcfgclone.prl
    5) delete old controlfiles
    6) on the database run the script you created on firs t step to create a new control fole
    7)recover database until cancel using backup controlfile
    8) alter database open resetlogs
    add new temp file system
    this way I used to do it
    but yesterday when trying to execute recover database it didn't work, and gave this error
    ORA-00279: change 6450277404 generated at 02/28/2013 02:47:56 needed for thread
    1
    ORA-00289: suggestion : /ERPDEV/DBASE/devdb/9.2.0/dbs/arch1_188462.dbf
    ORA-00280: change 6450277404 for thread 1 is in sequence #188462
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL} >> I gave cancel >> so >>
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/ERPDEV/DBASE/SYS/devdata/system01.dbf'
    nothing strange in the original alert log file in the time of taking the backup
    So can You please tell me what maybe wrong and why it used to work before and now it's not
    take in consideration that we are on archive log mode, but not using Rman or the archived Logs for backup and the sequence it needed ( 188462 ) is too old and already deleted on Production.

    the output of the sript
    Please Do not Forgot to run /usr/bin/runmwm as root Please Do not Forgot to run /usr/bin/runmwm as root Please Do not Forgot to run /usr/bin/runmwm as root Please Do not Forgot to run /usr/bin/runmwm as root ConcMgr will not work ConcMgr will not work ConcMgr will not work #####################################################
    172.16.10.10:1.0
    access control disabled, clients can connect from any host
    You are running adstpall.sh version 115.19
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adapcctl.sh stop script returned:
    adapcctl.sh version 115.54
    Apache Web Server Listener :httpd ( pid 765998 ) is running.
    Stopping Apache Web Server Listener (dedicated HTTP) ...
    Apache Web Server Listener (PLSQL) :httpd ( pid 2830390 ) is running.
    Stopping Apache Web Server Listener (dedicated PLSQL) ...
    adapcctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adalnctl.sh stop script returned:
    adalnctl.sh version
    Shutting down listener process APPS_ABP.
    adalnctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adtcfctl.sh stop script returned:
    You are running adtcfctl.sh version 115.14
    Shutting down TCF SocketServer for ABP on port -1.
    adtcfctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adcmctl.sh stop script returned:
    You are running adcmctl.sh version 115.28
    Shutting down concurrent managers for ABP ...
    Submitted request 7481224 for CONCURRENT FND SHUTDOWN
    adcmctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adfrmctl.sh stop script returned:
    You are running adfrmctl.sh version 115.37
    Stopping forms server for ABP on port 9003.
    adfrmctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adrepctl.sh stop script returned:
    You are running adrepctl.sh version 115.32
    stopping Reports Server for ABP on port 7003.
    kill -9 827420
    Reports Server for ABP successfully stopped.
    adrepctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adfmcctl.sh stop script returned:
    You are running adfmcctl.sh version 115.19
    Stopping forms load balancing client for ABP.
    adfmcctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adfmsctl.sh stop script returned:
    You are running adfmsctl.sh version 115.15
    Stopping forms metrics server for ABP on port 9203.
    adfmsctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/jtffmctl.sh stop script returned:
    You are running jtffmctl.sh version 115.16
    Shutting down Fulfillment Server for ABP on port 9303 ...
    jtffmctl.sh: exiting with status 0
    .end std out.
    .end err out.
    All enabled services on this node are stopped.
    Check logfile /ERPABP/APPL/abpcomn/admin/log/ABP_babtain-erp/04010130.log for details
    Exiting with status 0
    You are running addlnctl.sh version 115.7
    Logfile: /ERPABP/DBASE/abpdb/9.2.0/appsutil/log/ABP_babtain-erp/addlnctl.txt
    Shutting down listener process ABP ...
    addlnctl.sh: exiting with status 0
    You are running addbctl.sh version 115.10
    Shutting down database ABP ...
    SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 1 01:36:25 2013
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected.
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.8.0 - Production
    addbctl.sh: exiting with status 0
    You are running addbctl.sh version 115.10
    Starting the database ABP ...
    SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 1 01:38:48 2013
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 6829474752 bytes
    Fixed Size          742336 bytes
    Variable Size          1493172224 bytes
    Database Buffers     5324800000 bytes
    Redo Buffers          10760192 bytes
    Database mounted.
    Database opened.
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.8.0 - Production
    addbctl.sh: exiting with status 0
    You are running addbctl.sh version 115.10
    Shutting down database ABP ...
    SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 1 01:39:08 2013
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected.
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.8.0 - Production
    addbctl.sh: exiting with status 0
    root 2883784 2097278 0 01:39:54 - 0:00 grep abpappl
    root 1425530 2097278 1 01:39:54 - 0:00 grep abpora
    Taring /ERPABP/DBASE/SYS/abpdata
    Mon Apr 1 01:39:54 SAUST 2013
    Mon Apr 1 03:00:16 SAUST 2013
    Taring /ERPDEV/DBASE/SYS/abpdata
    Mon Apr 1 03:00:16 SAUST 2013
    Mon Apr 1 03:10:18 SAUST 2013
    Taring /ERPABP/DBASE/DATA/abpdata
    Mon Apr 1 03:10:18 SAUST 2013
    Mon Apr 1 04:51:04 SAUST 2013
    Taring /ERPDEV/APPL/DATA/abpdata
    Mon Apr 1 04:51:04 SAUST 2013
    Mon Apr 1 05:02:58 SAUST 2013
    You are running addbctl.sh version 115.10
    Starting the database ABP ...
    SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 1 05:04:46 2013
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 6829474752 bytes
    Fixed Size          742336 bytes
    Variable Size          1493172224 bytes
    Database Buffers     5324800000 bytes
    Redo Buffers          10760192 bytes
    Database mounted.
    Database opened.
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.8.0 - Production
    addbctl.sh: exiting with status 0
    You are running addlnctl.sh version 115.7
    Logfile: /ERPABP/DBASE/abpdb/9.2.0/appsutil/log/ABP_babtain-erp/addlnctl.txt
    Starting listener process ABP ...
    addlnctl.sh: exiting with status 0
    Please Do not Forgot to run /usr/bin/runmwm as root Please Do not Forgot to run /usr/bin/runmwm as root Please Do not Forgot to run /usr/bin/runmwm as root Please Do not Forgot to run /usr/bin/runmwm as root ConcMgr will not work ConcMgr will not work ConcMgr will not work #####################################################
    172.16.10.10:1.0
    access control disabled, clients can connect from any host
    You are running adstrtal.sh version 115.16
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adapcctl.sh start script returned:
    adapcctl.sh version 115.54
    Apache Web Server Listener is not running.
    Starting Apache Web Server Listener (dedicated HTTP) ...
    Apache Web Server Listener (PLSQL) is not running.
    Starting Apache Web Server Listener (dedicated PLSQL) ...
    adapcctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adalnctl.sh start script returned:
    adalnctl.sh version
    Checking for FNDFS executable.
    Starting listener process APPS_ABP.
    adalnctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adtcfctl.sh start script returned:
    You are running adtcfctl.sh version 115.14
    TCF SocketServer for ABP on port -1 is already started.
    adtcfctl.sh: exiting with status 2
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adcmctl.sh start script returned:
    You are running adcmctl.sh version 115.28
    Starting concurrent manager for ABP ...
    Starting ABP_0401@ABP Internal Concurrent Manager Default printer is noprint
    adcmctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adfrmctl.sh start script returned:
    You are running adfrmctl.sh version 115.37
    Starting forms server for ABP on port 9003.
    adfrmctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adrepctl.sh start script returned:
    You are running adrepctl.sh version 115.32
    starting Reports Server for ABP on port 7003.
    adrepctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adfmcctl.sh start script returned:
    You are running adfmcctl.sh version 115.19
    Starting forms load balancing client for ABP.
    adfmcctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adfmsctl.sh start script returned:
    You are running adfmsctl.sh version 115.15
    starting forms metrics server for ABP.
    adfmsctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/jtffmctl.sh start script returned:
    You are running jtffmctl.sh version 115.16
    Validating Fulfillment patch level via /ERPABP/APPL/abpcomn/java Fulfillment patch level validated.
    Starting Fulfillment Server for ABP on port 9303 ...
    jtffmctl.sh: exiting with status 0
    .end std out.
    .end err out.
    All enabled services for this node are started.
    Check logfile /ERPABP/APPL/abpcomn/admin/log/ABP_babtain-erp/04010505.log for details
    Exiting with status 0
    MWA Telnet Server Release: 1.0.8.4 [December 12th 2002] Mon Apr 1 05:06:01 SAUST 2013
    9653.50     /store/abp/data/data_abpdata_010413.tgz
    1089.50     /store/abp/data/datadev_abpdata_010413.tgz
    0.04     /store/abp/data/mkctrl.sql
    13309.38     /store/abp/data/sys_abpdata_010413.tgz
    1000.25     /store/abp/data/sysdev_abpdata_010413.tgz
    Mon Apr 1 05:06:01 SAUST 2013
    #######################################################################################################################

  • RMAN error when restoring controlfile from tape

    Hi,
    We have a Production database with instance name PROD.
    We use Symantec Netbackup software to backup this database to tape library.
    We want to test some recovery scenarios on a test server. So we want to restore the production backups from Tape to this test server.
    We did the following:
    Cloned the ORACLE Home to the Test Server.
    Changed the db_name parameter to PROD and also set ORACLE_SID to PROD.
    then we connected to RMAN and ran the following command to restore the control files:
    RMAN> run {
    set dbid 4155532403
    set controlfile autobackup format for device type 'sbt_type' to '%F';
    set until time "to_date('16/12/2012:10:13:37','dd/mm/yyyy:hh24:mi:ss')";
    allocate channel t1 device type 'sbt_tape';
    SEND 'NB_ORA_SERV=riysvbkp-001,NB_ORA_CLIENT=lh-erp';
    restore controlfile to '/testerp/dbexec/tmp/cf1.ctl' from autobackup;
    executing command: SET DBID
    database name is "PROD" and DBID is 4155532403
    executing command: SET CONTROLFILE AUTOBACKUP FORMAT
    executing command: SET until clause
    allocated channel: t1
    channel t1: SID=171 device type=SBT_TAPE
    channel t1: Veritas NetBackup for Oracle - Release 7.1 (2011082510)
    sent command to channel: t1
    Starting restore at 17-DEC-12
    channel t1: looking for AUTOBACKUP on day: 20121216
    channel t1: AUTOBACKUP found: c-4155532403-20121216-01
    channel t1: restoring control file from AUTOBACKUP c-4155532403-20121216-01
    released channel: t1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 12/17/2012 08:34:41
    ORA-19870: error while restoring backup piece c-4155532403-20121216-01
    ORA-19507: failed to retrieve sequential file, handle="c-4155532403-20121216-01", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
    Failed to process backup file <c-4155532403-20121216-01>
    Here you can see that AUTOBACKUP is found but RMAN is unable to process the backup piece.
    I am not able to see any errors in the log files. Please advise.
    Thanks,
    Muneer.

    Thanks.
    The earlier error is gone and now I am getting the following error:
    channel t1: looking for AUTOBACKUP on day: 20121216
    channel t1: AUTOBACKUP found: c-4155532403-20121216-01
    channel t1: restoring control file from AUTOBACKUP c-4155532403-20121216-01
    released channel: t1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 12/17/2012 14:34:25
    ORA-19870: error while restoring backup piece c-4155532403-20121216-01
    ORA-19507: failed to retrieve sequential file, handle="c-4155532403-20121216-01", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
    Backup file <c-4155532403-20121216-01> not found in NetBackup catalog

  • Backup controlfile to trace as 'c:\prod_ctl.txt'

    Hi All,
    11.2.0.1
    I am examining the output of the trace file, because I want to simulate or test this process.
    This file has two(2) sets of command. one(1) is for the intact online logs and the other one(1) is for damage online logs.
    Questions:
    1. What do u mean by damage online logs. does this mean that i lost all these redo files:
    LOGFILE
      GROUP 1 'D:\APP\PROD\ORADATA\ORCL\REDO01.LOG'  SIZE 50M BLOCKSIZE 512,
      GROUP 2 'D:\APP\PROD\ORADATA\ORCL\REDO02.LOG'  SIZE 50M BLOCKSIZE 512,
      GROUP 3 'D:\APP\PROD\ORADATA\ORCL\REDO03.LOG'  SIZE 50M BLOCKSIZE 512
    2. Why is that the two(2) sets are just the same set of commands? except for backup controlfile and open resetlogs?
    3. Do I need RMAN backup to run this recovery statements?
    Thanks,
    pK
    ========
    -- The following are current System-scope REDO Log Archival related
    -- parameters and can be included in the database initialization file.
    -- LOG_ARCHIVE_DEST=''
    -- LOG_ARCHIVE_DUPLEX_DEST=''
    -- LOG_ARCHIVE_FORMAT=ARC%S_%R.%T
    -- DB_UNIQUE_NAME="orcl"
    -- LOG_ARCHIVE_CONFIG='SEND, RECEIVE, NODG_CONFIG'
    -- LOG_ARCHIVE_MAX_PROCESSES=4
    -- STANDBY_FILE_MANAGEMENT=MANUAL
    -- STANDBY_ARCHIVE_DEST=%ORACLE_HOME%\RDBMS
    -- FAL_CLIENT=''
    -- FAL_SERVER=''
    -- LOG_ARCHIVE_DEST_1='LOCATION=USE_DB_RECOVERY_FILE_DEST'
    -- LOG_ARCHIVE_DEST_1='MANDATORY NOREOPEN NODELAY'
    -- LOG_ARCHIVE_DEST_1='ARCH NOAFFIRM EXPEDITE NOVERIFY SYNC'
    -- LOG_ARCHIVE_DEST_1='NOREGISTER NOALTERNATE NODEPENDENCY'
    -- LOG_ARCHIVE_DEST_1='NOMAX_FAILURE NOQUOTA_SIZE NOQUOTA_USED NODB_UNIQUE_NAME'
    -- LOG_ARCHIVE_DEST_1='VALID_FOR=(PRIMARY_ROLE,ONLINE_LOGFILES)'
    -- LOG_ARCHIVE_DEST_STATE_1=ENABLE
    -- Below are two sets of SQL statements, each of which creates a new
    -- control file and uses it to open the database. The first set opens
    -- the database with the NORESETLOGS option and should be used only if
    -- the current versions of all online logs are available. The second
    -- set opens the database with the RESETLOGS option and should be used
    -- if online logs are unavailable.
    -- The appropriate set of statements can be copied from the trace into
    -- a script file, edited as necessary, and executed when there is a
    -- need to re-create the control file.
    --     Set #1. NORESETLOGS case
    -- The following commands will create a new control file and use it
    -- to open the database.
    -- Data used by Recovery Manager will be lost.
    -- Additional logs may be required for media recovery of offline
    -- Use this only if the current versions of all online logs are
    -- available.
    -- After mounting the created controlfile, the following SQL
    -- statement will place the database in the appropriate
    -- protection mode:
    --  ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  NOARCHIVELOG
        MAXLOGFILES 16
        MAXLOGMEMBERS 3
        MAXDATAFILES 100
        MAXINSTANCES 8
        MAXLOGHISTORY 292
    LOGFILE
      GROUP 1 'D:\APP\PROD\ORADATA\ORCL\REDO01.LOG'  SIZE 50M BLOCKSIZE 512,
      GROUP 2 'D:\APP\PROD\ORADATA\ORCL\REDO02.LOG'  SIZE 50M BLOCKSIZE 512,
      GROUP 3 'D:\APP\PROD\ORADATA\ORCL\REDO03.LOG'  SIZE 50M BLOCKSIZE 512
    -- STANDBY LOGFILE
    DATAFILE
      'D:\APP\PROD\ORADATA\ORCL\SYSTEM01.DBF',
      'D:\APP\PROD\ORADATA\ORCL\SYSAUX01.DBF',
      'D:\APP\PROD\ORADATA\ORCL\UNDOTBS01.DBF',
      'D:\APP\PROD\ORADATA\ORCL\USERS01.DBF',
      'D:\APP\PROD\ORADATA\ORCL\EXAMPLE01.DBF'
    CHARACTER SET WE8MSWIN1252
    -- Commands to re-create incarnation table
    -- Below log names MUST be changed to existing filenames on
    -- disk. Any one log file from each branch can be used to
    -- re-create incarnation records.
    -- ALTER DATABASE REGISTER LOGFILE 'D:\APP\PROD\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_12_26\O1_MF_1_1_%U_.ARC';
    -- ALTER DATABASE REGISTER LOGFILE 'D:\APP\PROD\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_12_26\O1_MF_1_1_%U_.ARC';
    -- Recovery is required if any of the datafiles are restored backups,
    -- or if the last shutdown was not normal or immediate.
    RECOVER DATABASE
    -- Database can now be opened normally.
    ALTER DATABASE OPEN;
    -- Commands to add tempfiles to temporary tablespaces.
    -- Online tempfiles have complete space information.
    -- Other tempfiles may require adjustment.
    ALTER TABLESPACE TEMP ADD TEMPFILE 'D:\APP\PROD\ORADATA\ORCL\TEMP01.DBF'
         SIZE 20971520  REUSE AUTOEXTEND ON NEXT 655360  MAXSIZE 32767M;
    -- End of tempfile additions.
    --     Set #2. RESETLOGS case
    -- The following commands will create a new control file and use it
    -- to open the database.
    -- Data used by Recovery Manager will be lost.
    -- The contents of online logs will be lost and all backups will
    -- be invalidated. Use this only if online logs are damaged.
    -- After mounting the created controlfile, the following SQL
    -- statement will place the database in the appropriate
    -- protection mode:
    --  ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS  NOARCHIVELOG
        MAXLOGFILES 16
        MAXLOGMEMBERS 3
        MAXDATAFILES 100
        MAXINSTANCES 8
        MAXLOGHISTORY 292
    LOGFILE
      GROUP 1 'D:\APP\PROD\ORADATA\ORCL\REDO01.LOG'  SIZE 50M BLOCKSIZE 512,
      GROUP 2 'D:\APP\PROD\ORADATA\ORCL\REDO02.LOG'  SIZE 50M BLOCKSIZE 512,
      GROUP 3 'D:\APP\PROD\ORADATA\ORCL\REDO03.LOG'  SIZE 50M BLOCKSIZE 512
    -- STANDBY LOGFILE
    DATAFILE
      'D:\APP\PROD\ORADATA\ORCL\SYSTEM01.DBF',
      'D:\APP\PROD\ORADATA\ORCL\SYSAUX01.DBF',
      'D:\APP\PROD\ORADATA\ORCL\UNDOTBS01.DBF',
      'D:\APP\PROD\ORADATA\ORCL\USERS01.DBF',
      'D:\APP\PROD\ORADATA\ORCL\EXAMPLE01.DBF'
    CHARACTER SET WE8MSWIN1252
    -- Commands to re-create incarnation table
    -- Below log names MUST be changed to existing filenames on
    -- disk. Any one log file from each branch can be used to
    -- re-create incarnation records.
    -- ALTER DATABASE REGISTER LOGFILE 'D:\APP\PROD\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_12_26\O1_MF_1_1_%U_.ARC';
    -- ALTER DATABASE REGISTER LOGFILE 'D:\APP\PROD\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_12_26\O1_MF_1_1_%U_.ARC';
    -- Recovery is required if any of the datafiles are restored backups,
    -- or if the last shutdown was not normal or immediate.
    RECOVER DATABASE USING BACKUP CONTROLFILE
    -- Database can now be opened zeroing the online logs.
    ALTER DATABASE OPEN RESETLOGS;
    -- Commands to add tempfiles to temporary tablespaces.
    -- Online tempfiles have complete space information.
    -- Other tempfiles may require adjustment.
    ALTER TABLESPACE TEMP ADD TEMPFILE 'D:\APP\PROD\ORADATA\ORCL\TEMP01.DBF'
         SIZE 20971520  REUSE AUTOEXTEND ON NEXT 655360  MAXSIZE 32767M;
    -- End of tempfile additions.
    ===============,

    Hi ,
    As far as i understand  , one is with :
    CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS  NOARCHIVELOG
    and the other one is with :
    CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  NOARCHIVELOG
    The first one (resetlogs) is useful when you are trying to open a database after incomplete recovery (during cloning for example) or while changing the name of the database after restoring and recovering a database during a clone process.
    The second one ( noresetlogs )is used when we have a consistent database and we are recreating the controlfile.
    In General , you may be using resetlogs while opening a cloned database after incomplete recovery.
    Regards
    Karan

  • Why can't I restore the controlfile from autobackup?

    Running 10GR2
    Something that I have always had a problem with is the restore controlfile from autobackup command. RMAN is configured to run autobackyps of the controlfiles.
    I have setup a restore test and moved the backups over to the test machine. I have restored the spfile and modified the necessary init parameters. When I startup nomount and try to restore the controlfile from autobackup RMAN says it cannot find an autobackup controlfile.
    I have always gotten around this by explicitly naming the controlfile to restore but am wondering what is possibly incorrect in my config such that RMAN doesn't know where to find the controlfile autbackups.
    Thanks

    Do you have such a configuration?
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    You must not specify any other format,only '%F'.
    FRA structure should like <db_recovery_file_dest>/<SID>/AUTOBACKUP/<date>/<controlfile_backup>. Only when both is true, RMAN will find the autobackup, otherwise it searches in the OS dependent default location.
    Werner

  • Error, Backup Controlfile

    Hello,
    When I tried to make a trace of controlfile, it works very well
    sql> alter database backup controlfile to trace
    But, when I tried to make a copy of the controlfile, it fails
    sql> alter database backup controlfile to 'E:\oracle\db\adm\bdump\control_bkp.ctl'
    ERROR at line 1:
    ORA-01587: error during controlfile backup file copy
    ORA-27091: skgfqio: unable to queue I/O
    ORA-27070: skgfdisp: async read/write failed
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 1117) The request could not be performed because of an I/O
    device error.
    The Oracle user has enough privileges to write and read files at dumps directories. And there is a lot of space on disk.
    The version of oracle software is:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE     9.2.0.8.0     Production
    TNS for 32-bit Windows: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production
    Operating system is Windows Server 2003
    Any ideas about the error?

    the output of E:\ORACLE\DB\ADMIN\UDUMP is
    a lot of files *.trc. Here I can see the trace for the backup controlfile.
    the output of E:\ORACLE\DB\ADMIN\UDUMP is
    is empty. I saw in command window(cmd) that oracle create the filecontrol while execute the alter database backup controlfile to 'path\control_bck.ctl'. But when the command fails, Oracle automatic delete the file.

  • How to restore specific backup file from RMAN?

    Hi,
    I am just begginer with Oracle DB so I do not have a lot knowledge.
    I created two backups at April the 8th and April the 10th.
    I did following from RMAN.
    shutdown immediate
    startup mount
    configure channel 1 device type disk format '/opt/oracle/backup/std_%U';
    backup database
    startup
    output was:
    including current control file in backupset
    including current SPFILE in backupset
    it created two files: std-0so6l0vn(2 GB) and std_0to6l106 (7 MB).
    First question - first file is backup and what is the second file???
    Today I created also backup and it also created two files: std_0uo6morg (2GB) and std_0vo6morv (7MB)
    Now I want to return backup from 2 days ago (*std-0so6l0vn*) but can't;
    I do the the following:
    shutdown immediate
    startup mount
    restore database from '/opt/oracle/backup/std_0so6l0vn'
    but getting error - only SPFILE or control file can be restored from autobackup.
    How to restore my backup from two days ago? It looks to me so complicated and hardly understandable.
    What command to execute from RMAN to succeed in restore?
    Thank you

    I still can not restore database; I tried Honza method.
    i try
    startup nomount
    restore controlfile from 'restore controlfile from /opt/oracle/backup/sss_11o7efd9_1_1';
    And getting message:
    no autobackup found or specified handle is not a valid copy or piece
    list backup returns:
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    19 Full 6.80M DISK 00:00:01 19-APR-13
    BP Key: 19 Status: AVAILABLE Compressed: NO Tag: TAG20130419T025522
    Piece Name: /opt/oracle/backup/sss_11o7efd9_1_1
    Control File Included: Ckp SCN: 3178467 Ckp time: 19-APR-13
    SPFILE Included: Modification time: 02-APR-13
    show all returns:
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
    configuration for DISK channel 2 is ignored
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/opt/oracle/backup/sss_%U';
    CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/opt/oracle/backup/sss_%U';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/opt/oracle/product/10.2.0/dbs/snapcf_ctginst1.f'; # default
    Please help I really must restore database but can't do it.

  • How to restore a database backup taken from a SQL Server 2012 instance to SQL Server 2014

    I am trying to restore a database backup taken from a SQL Server 2012 instance to my new SQL Server 2014 instance.  When I add the .bak through the Mgmt studio UI, it does not seem to find a backup set in the file so I cannot proceed (does not give
    me any errors though either.  I tried restoring through TSQL command but only got a database restore terminating abnormally error with no other details.  How can I restore this database to SQL 2014?

    Hello,
    Please examine SQL Server Error Log and share with us any error you can find. The following article may locate the log:
    http://msdn.microsoft.com/en-us/library/ms187109.aspx
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How to backup files from other user logged in as administrator

    RE: How to backup files from other user logged in as administrator AND/OR how to repair drive with "Invalid catalog PEOF"
    Hello,
    My MacBook Pro computer’s hard drive is not booting.
    I booted with the base operating system and ran Disk utilities and I got the following messages:
        Invalid catalog PEOF
        The volume could not be verified completely.
        This disk needs to be repaired.
        Disk utility can’t repair this disk. Backup as many files as possible, reformat the disk,
        and restore your backed-up files.
    The problem is that I have a couple of USERS set up on this computer, and it won’t let me backup the files of the second user.  The folders are locked and I can’t access them, even though I am logged in as the administrator.
    I made a boot disk on my other computer ( a MacPro Early 2008 ) desktop computer with the DiskWarrior 4.4 updater,
    but it won’t boot on my MacBook Pro.
    How can I backup these user files so that I can copy them back once I fix the drive?
    or better yet,  How can I repair the Invalid catalog PEOF on this drive?
    Thank you in advance for your time! 
    Bill
    THIS IS THE COMPUTER
    ================
    17” MacBook Pro 2.8GHZ 4GB Ram (purchased in 2009).
    Model: A1297
    Running Mac OSX 10.9.5

    Try using Disk Utility/Restore to copy the backup to a new location. Please note that this will reformat the destination partition which will erase all data.
    Do a backup. Boot to the Recovery Volume (command - R on a restart or hold down the option/alt key during a restart and select Recovery Volume). Run Disk Utility Verify/Repair and Repair Permissions until you get no errors.  Reformat the drive using Disk Utility/Erase Mac OS Extended (Journaled), then click the Option button and select GUID. Then re-install the OS.
    OS X Recovery
    OS X Recovery (2)
    When you reboot, use Setup Assistant to restore your data.

Maybe you are looking for

  • Report on pdf

    hi all. i am displaying a report on pdf but it gives me a rubbish text on the pdf ( the report is working) so my problem is with the font thanx

  • How to show a report of reports3.0 in intranet hosted by IIS Server

    Hello i had created a report in Reports 3.0 and i wanted to run the report on personnel dash board of the INTRANET withe user login specified parameters and the Intranet was hosted by IIS SERVER Urgent help needed Regards BUSI KIRAN KUMAR

  • Depreciation run for each business area

    Hi all, In case all business areas are belong to 1 company code. So how to run depreciation for each business area separately? I mean business area A can run depreciation for itself, and not affect other business areas in the same company code. Any s

  • /CCM/MINIMUM_QUANTITY[1]#/CCM/QUANTITY_VALUE

    Dear all, we try to upload a csv 2.0 file. Everything works fine when we don´t use "/CCM/MINIMUM_QUANTITY[1]#/CCM/QUANTITY_VALUE" and "/CCM/MINIMUM_QUANTITY[1]#/CCM/UNIT_CODE" But we need the fields. Which value is expected from CCM in this field? "/

  • Cant find Export Datasource ..

    Hi    I need to copy Cube content(0SD_C04) to (ZSD_C04) Cube.So generated Export Datasource from (0SD_C04) .I can view them (80sd_c04) under Myself   So urce system - Datasource Overview.But i cannot view them in INFOSOURCES..Under which Appl.Comp it