Restore 11g rman cold backup on same server.

Hi All,
I have a requirement , where we have to clone one development database's to other database's sitting on the same host.
I have taken the cold rman backup and copy it different database's local folder.
I changed the db_name in target pfile and did the nomount , but when I tries to restore the controlfile , it throws me below errors.
Just to add to to it, I was ale to restore the controlfile to the location specified in pfile.
now , when I tries to mount the database , it throws me following errors
Snippet from target database's
SQL> startup mount pfile=/db/epmtrain/oracle/11.1.0/dbs/initepmtrain.bkp
ORACLE instance started.
Total System Global Area 1.3696E+10 bytes
Fixed Size                  2132152 bytes
Variable Size            6173202248 bytes
Database Buffers         7516192768 bytes
Redo Buffers                4362240 bytes
ORA-00205: error in identifying control file, check alert log for more info
RMAN> run {
2> restore controlfile from '/db/epmtrain/export/rman/EPMDEV_06ogm377.bkp';
3> }
Starting restore at 07-AUG-13
using channel ORA_DISK_1
channel ORA_DISK_1: restoring control file
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/07/2013 07:12:21
ORA-19870: error while restoring backup piece /db/epmtrain/export/rman/EPMDEV_06ogm377.bkp
ORA-19504: failed to create file "/db/epmtrain/oracle/11.1.0/dbs/db/epmtrain/data1/epmtrain/control01.ctl'"
ORA-27040: file create error, unable to create file
HPUX-ia64 Error: 2: No such file or directory
Regards

940856 wrote:
I restored the controlfile to the path mentioned in pfile. after that , when I tries to mount the database , it throws me the following errors.
---------- Snippet from alert.log ------
ORA-00210: cannot open the specified control file
ORA-00202: control file: '/db/epmtrain/data1/epmtrain/control01.ctl''
ORA-27037: unable to obtain file status
HPUX-ia64 Error: 2: No such file or directory
Additional information: 3
ORA-205 signalled during: ALTER DATABASE   MOUNT...
------------ controlfile location in pfile ---------
*.control_files=/db/epmtrain/data1/epmtrain/control01.ctl','/db/epmtrain/data1/epmtrain/control02.ctl'
--------------- show parameter control output -------------
SQL>  show parameter control
NAME                                 TYPE                             VALUE
control_file_record_keep_time        integer                          7
control_files                        string                           /db/epmtrain/data1/epmtrain/co
                                                                      ntrol01.ctl', /db/epmtrain/dat
                                                                      a1/epmtrain/control02.ctl
control_management_pack_access       string                           DIAGNOSTIC+TUNING
Regards
So present proof that "/db/epmtrain/data1/epmtrain/control01.ctl" actually exists .....

Similar Messages

  • RMAN Restore using RMAN COLD Backup!!

    Hi All,
    I Need to restore a database using rman cold backup taken a month back.
    Can i use Duplicate database option until time/scn just like we do for hotbackup or is there any other procedure for cloning/refreshing the database using RMAN COLD BACKUP of source.
    Thanks & Regards,
    Pdev

    This may be used to clone db
    connect target sys/sys@<dba>
    connect catalog rman/rman@<dba>
    connect auxiliary sys/sys<new>
    run {
    set newname for datafile 1 to 'e:\oracle\oradata\giri\system01.dbf';
    set newname for datafile 2 to 'e:\oracle\oradata\giri\undotbs01.dbf';
    set newname for datafile 3 to 'e:\oracle\oradata\giri\users01.dbf';
    set newname for datafile 4 to 'e:\oracle\oradata\giri\indx01.dbf';
    set newname for datafile 5 to 'e:\oracle\oradata\giri\example01.dbf';
    allocate auxiliary channel dupdb1 type disk;
    set until sequence 2 thread 1;
    duplicate target database to dupdb
    logfile
    GROUP 1 ('e:\oracle\oradata\giri\redo01.log') SIZE 100k REUSE,
    GROUP 2 ('e:\oracle\oradata\giri\redo02.log') SIZE 100k REUSE;
    Message was edited by:
    Girishh

  • Spfile restore from RMAN Tape backup to different server

    Hi All,
    First of all let me thank you to the forum from which I keep updating my knowledge on oracle.
    I am having issues when trying to restore spfile from controlfile autobackup to different server. Problem and other details are below:
    Target version : 10.2.0.2
    Netbackup : 6.5.6
    Taken the tape backup through rman on server ABC and trying to restore the spfile from controlfile autobackup to server XYZ. Tape backup has been taken today morning and trying restore now.
    Both servers ABC and XYX have been added (as clients) to netbackup policy.
    Below is the syntax I used for restoring spfile and getting error as mentioned.
    RMAN> run {
    2> set controlfile autobackup format for device type 'SBT_TAPE' to '%F';
    3> allocate channel ch00 device type 'sbt_tape'
    4> parms='ENV=(NB_ORA_SERV=Mediaserver,NB_ORA_CLIENT=XYZ)';
    5> restore spfile to pfile '/oracle/product/10g/dbs/inittest.ora' from
    6> autobackup maxseq 5 maxdays 3;
    7> }
    executing command: SET CONTROLFILE AUTOBACKUP FORMAT
    allocated channel: ch00
    channel ch00: sid=36 devtype=SBT_TAPE
    channel ch00: Veritas NetBackup for Oracle - Release 6.5 (2010042405)
    Starting restore at 03-AUG-2011
    channel ch00: looking for autobackup on day: 20110803
    channel ch00: looking for autobackup on day: 20110802
    channel ch00: looking for autobackup on day: 20110801
    channel ch00: no autobackup in 3 days found
    released channel: ch00
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 08/03/2011 14:03:26
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    Not sure where I am doing wrong. The same can be restored onto same host (I.E ABC) without any issues .
    Request your help and guidance.
    Thanks,
    SSS

    I don't know whether you can restore to a different server. The easier way should be
    RMAN> restore spfile to pfile 'YOUR_PFILE_NAME' from autobackup;
    then copy this to the new host.
    Check this link
    restore spfile to another host
    Hope this helps

  • Clonning using RMAN Cold Backup?

    Hi,
    I have a COLD RMAN backup in prod server and now i want to clone test db using this backup through RMAN. I have 2 question regarding this
    1) Where do i need to place the prod RMAN COLD backup files in test server?
    2) If i ran below command how RMAN will know where did i placed the backup in test server?
    In Test Server
    RMAN> duplicate target database to test;DB Version is : 10.2.0.4
    Thanks in advance

    thanks. Now it is unable to restore the datafiles from rman backup.Below steps i tried.
    [oracle@Test test1]$ rman target /
    Recovery Manager: Release 10.2.0.4.0 - Production on Tue Feb 21 08:58:46 2012
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup nomount pfile='/u01/app/oracle/product/10.2.0/db_1/dbs/initprod2.ora';
    Oracle instance started
    Total System Global Area     603979776 bytes
    Fixed Size                     1268896 bytes
    Variable Size                163578720 bytes
    Database Buffers             436207616 bytes
    Redo Buffers                   2924544 bytes
    RMAN> restore controlfile from '/u01/app/oracle/product/10.2.0/backup/test1/21_RMAN_BACKUP_08n3s02u_1_1.bak';
    Starting restore at 21-FEB-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:05
    output filename=/u01/app/oracle/product/10.2.0/oradata/test1/control01.ctl
    output filename=/u01/app/oracle/product/10.2.0/oradata/test1/control02.ctl
    output filename=/u01/app/oracle/product/10.2.0/oradata/test1/control03.ctl
    Finished restore at 21-FEB-12
    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1
    RMAN> catalog start with '/u01/app/oracle/product/10.2.0/backup/test1';
    Starting implicit crosscheck backup at 21-FEB-12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    Crosschecked 3 objects
    Finished implicit crosscheck backup at 21-FEB-12
    Starting implicit crosscheck copy at 21-FEB-12
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 21-FEB-12
    searching for all files in the recovery area
    cataloging files...
    no files cataloged
    searching for all files that match the pattern /u01/app/oracle/product/10.2.0/backup/test1
    List of Files Unknown to the Database
    =====================================
    File Name: /u01/app/oracle/product/10.2.0/backup/test1/21_RMAN_BACKUP_07n3rvvq_1_1.bak
    File Name: /u01/app/oracle/product/10.2.0/backup/test1/21_RMAN_BACKUP_08n3s02u_1_1.bak
    Do you really want to catalog the above files (enter YES or NO)? yes
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: /u01/app/oracle/product/10.2.0/backup/test1/21_RMAN_BACKUP_07n3rvvq_1_1.bak
    File Name: /u01/app/oracle/product/10.2.0/backup/test1/21_RMAN_BACKUP_08n3s02u_1_1.bak
    RMAN>
    RMAN> restore database;
    Starting restore at 21-FEB-12
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to /u01/app/oracle/oradata/prod2/system.dbf
    restoring datafile 00002 to /u01/app/oracle/oradata/prod2/usr04.dbf
    restoring datafile 00003 to /u01/app/oracle/oradata/prod2/undo.dbf
    restoring datafile 00004 to /u01/app/oracle/oradata/prod2/sysaux.dbf
    restoring datafile 00005 to /u01/app/oracle/oradata/prod2/p1_01.dbf
    restoring datafile 00006 to /u01/app/oracle/oradata/prod2/p2_01.dbf
    channel ORA_DISK_1: reading from backup piece /u01/app/oracle/product/10.2.0/backup/test1/21_RMAN_BACKUP_07n3rvvq_1_1.bak
    ORA-19870: error reading backup piece /u01/app/oracle/product/10.2.0/backup/test1/21_RMAN_BACKUP_07n3rvvq_1_1.bak
    ORA-19504: failed to create file "/u01/app/oracle/oradata/prod2/system.dbf"
    ORA-27040: file create error, unable to create file
    Linux Error: 2: No such file or directory
    failover to previous backup
    creating datafile fno=1 name=/u01/app/oracle/oradata/prod2/system.dbf
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 02/21/2012 09:01:09
    ORA-01180: can not create datafile 1
    ORA-01110: data file 1: '/u01/app/oracle/oradata/prod2/system.dbf'

  • User managed coldbkp vs rman cold backup

    Hi,
    I confused about rman cold backup in no catalog mode while restore the backup.please anyone clarify it.
    1,I am not confused about user manged cold backup.I took the backup (spfile,control file,redo file,datafile,password file.)Is it right one?
    2,In rman cold backup in no catalog mod, we used backup sets for backup,control file is autobackup is enabled.
    The backup set format is not OS format.The backup stored at flash recovery area.
    Just assume,
    I lost all files(spfile,control file,redo file,datafile,password file.)How to recover that.
    I am not able to identity spfile & control file in backupset in flash recovery area.
    How to identity the spfile,control file during the restoration?
    3,Rman takes the copy of online redo file in cold backup?
    If it's not,How to recover the database & in user managed backup,copy of online redo log file is must?
    4,What is the difference between dbid & sid?when it is used?
    5,Can i specifty format for spfile when i take the backup? can i use trace file(control file ) for restoration?
    I read the oracle documents, but I am not understand the above things clearly.please anyone rectify it.

    user3266490 wrote:
    Hi,
    I confused about rman cold backup in no catalog mode while restore the backup.please anyone clarify it.
    1,I am not confused about user manged cold backup.I took the backup (spfile,control file,redo file,datafile,password file.)Is it right one?
    Yes,you are right,but first need SHUTDOWN IMMEDIATE;
    >
    2,In rman cold backup in no catalog mod, we used backup sets for backup,control file is autobackup is enabled.
    The backup set format is not OS format.The backup stored at flash recovery area.
    If you do not explicitly configured rman then yes it will backup to FRA.
    Just assume,
    I lost all files(spfile,control file,redo file,datafile,password file.)How to recover that.
    First need SET (EXPORT) ORACLE_SID and then
    rman target /
    startup force nomount;
    restore spfile from 'autobackuplocation';
    startup force nomount;
    restore controlfile  from 'autobackuplocation';
    catalog start with 'backupandarchiveloglocation';
    restore database;
    recover database;
    alter database open resetlogs;
    I am not able to identity spfile & control file in backupset in flash recovery area.
    From rman you can execute LIST BACKUP or LIST BACKUP OF CONTROLFILE;
    How to identity the spfile,control file during the restoration?
    3,Rman takes the copy of online redo file in cold backup?No,RMAN do not backup online logs,due to this do not need.
    If it's not,How to recover the database & in user managed backup,copy of online redo log file is must?
    If cold backup then you can open database with resetlogs option and online logs will create automatically(if you did not copy this logs)
    >
    4,What is the difference between dbid & sid?when it is used?
    DBID is unique identify database in recovery catalog and using this you can restore controlfile easily.But SID is ORACLE_SID and identify instance.This is environment variable like ORACLE_HOME
    5,Can i specifty format for spfile when i take the backup? can i use trace file(control file ) for restoration?
    Yes you can identify format manually for spfile. ALTER DATABASE BACKUP CONTROLFILE TO TRACE ... this statement use to getting script for recreating controlfile again.So this is not backup and you can notuse for restoring controlfile.If you do not have a backup of controlfile and all datafilesd available then you can use this statement.
    I read the oracle documents, but I am not understand the above things clearly.please anyone rectify it.All these and with all situation clearly explained below doc
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/toc.htm

  • Restoration of MaxDB online backup on other server for creating Standby DB

    Hi,
    I had taken MaxDB online database backup through Data Protector 6.11. Now i want to restore this backup on other server. So that i can configure this as a standby database. I selected config and data for restoration but it was giving me an error as below,
    [Critical] From: OB2BAR_SAPDBBAR@ttcsolma "BE1"  Time: 01/11/11 01:19:05
          Error: SAPDB responded with: -24988,ERR_SQL: SQL error
    -9407,System error: unexpected error
    3,Database state: OFFLINE
    Internal errorcode, Error code 9050 "disk_not_accessible"
    So I created the database but with default values and then tried restoration but getting error as below,
    Error: Unable to read the configuration value `All' for SAPDB instance `SID'.
    If anybody is having any document or steps for confguring the Standby MaxDB database through Data Protector backup/restore method.
    Thanks,
    Narendra

    Hi Siva,
    Thanks for the replyu2026Yes I had copied the dbm.ebf, dbm.mdf dbm.knl files from the source server to target server. And also backup is visible in target server. And also I created Data /Log volumes size as equal to source server.
    I tried restoring through DBM GUI with "recovery with initialization" option but I am getting error message as below and also I am getting same error message when I restore from Data Protector GUI. But I donu2019t have any problem restoring the backup on same server the problem occurs only when restoring it on target server.
    Now for testing I have taken backup on file system through DBM GUI of source system and started restoring on target system. No problem while restoring from file system backup on target server. I am suspecting there is some problem with PIPE as I am using third party backup tool i.e. DP 6.11. I want to resolve the problem with third party backup tool as we will take all MaxDB database backup on tapes through DP 6.11.
    Through DBM GUI error message:
    Error: SAPDB responded with: -24925,ERR_PREPARE: preparation of backup operation failed
    The list of external backup ID's contains less than 16 ID's.
    Through Data Protector GUI error message:
    [Normal] From: RSM@bkupsvr ""  Time: 1/18/11 8:49:16 AM
          Restore session 2011/01/18-12 started.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:50:58
          Executing the dbmcli command: `user_logon'.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:00
          Executing the dbmcli command: `dbm_configset -raw BSI_ENV /var/opt/omni/tmp/SID.bsi_env'.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:03
          Executing the dbmcli command: `db_admin'.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:03
          Executing the dbmcli command: `util_execute clear log'.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:22
          Executing the dbmcli command: `dbm_configset -raw set_variable_10 OB2BACKUPAPPNAME=SID'.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:22
          Executing the dbmcli command: `dbm_configset -raw set_variable_11 OB2BACKUPHOSTNAME=ttcmaxdr'.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:23
          Executing the dbmcli command: `util_connect'.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:24
          Restoring backup 2011/01/17 0061.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:24
          Executing the dbmcli command: `medium_put BACKDP-Data[8]/1 /var/opt/omni/tmp/SID.BACKDP-Data[8].1 PIPE DATA 0 8 NO NO \"\" BACK'.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:24
          Executing the dbmcli command: `medium_put BACKDP-Data[8]/2 /var/opt/omni/tmp/SID.BACKDP-Data[8].2 PIPE DATA 0 8 NO NO \"\" BACK'.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:25
          Executing the dbmcli command: `medium_put BACKDP-Data[8]/3 /var/opt/omni/tmp/SID.BACKDP-Data[8].3 PIPE DATA 0 8 NO NO \"\" BACK'.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:25
          Executing the dbmcli command: `medium_put BACKDP-Data[8]/4 /var/opt/omni/tmp/SID.BACKDP-Data[8].4 PIPE DATA 0 8 NO NO \"\" BACK'.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:26
          Executing the dbmcli command: `medium_put BACKDP-Data[8]/5 /var/opt/omni/tmp/SID.BACKDP-Data[8].5 PIPE DATA 0 8 NO NO \"\" BACK'.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:27
          Executing the dbmcli command: `medium_put BACKDP-Data[8]/6 /var/opt/omni/tmp/SID.BACKDP-Data[8].6 PIPE DATA 0 8 NO NO \"\" BACK'.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:27
          Executing the dbmcli command: `medium_put BACKDP-Data[8]/7 /var/opt/omni/tmp/SID.BACKDP-Data[8].7 PIPE DATA 0 8 NO NO \"\" BACK'.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:28
          Executing the dbmcli command: `medium_put BACKDP-Data[8]/8 /var/opt/omni/tmp/SID.BACKDP-Data[8].8 PIPE DATA 0 8 NO NO \"\" BACK'.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:28
          Executing the dbmcli command: `recover_start BACKDP-Data[8] DATA ExternalBackupID "SID 11011761:1 Stream,SID 11011761:2 Stream,SID 11011761:3 Stream,SID 11011761:4 Stream,SID 11011761:5 Stream,SID 11011761:6 Stream,SID 11011761:7 Stream,SID 11011761:8 Stream"'.
    [Critical] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:30
          Error: SAPDB responded with: -24925,ERR_PREPARE: preparation of backup operation failed
    The list of external backup ID's contains less than 16 ID's.
    [Normal] From: OB2BAR_SAPDBBAR@tstmaxdb "SID"  Time: 01/18/11 08:51:30
          Executing the dbmcli command: `exit'.
    [Normal] From: RSM@bkupsvr ""  Time: 1/18/11 8:49:59 AM
          OB2BAR application on "tstmaxdb" disconnected.
    Thanks,
    Narendra

  • How to I find out if rman backup that was done is Rman Cold backup or Rman

    Hi,please help me I have backup set ,that is backupset that have rman data backup and autobackup that have control file,I want to restore this backup but I don't know how the backup was done .please advice me how to check if this was Rman cold backup or rman hot backup.I have pfile that is extracted from database before backup was taken.

    Hi Thanks for the update,I checked the v$backup_set on the other database ,but it does not tell me whether ithe backup was Rman cold backup in which database was mounted or Rman hot backup ,now I have to do the restore but I don't know what type of backup do I have please assist.
    Edited by: user1022397 on 2010/11/11 4:40 AM

  • RMAN Cold Backup FINAL

    We are upgrading our production database in 2 weeks. We will be using datapump to export the source and then import to the new target database. As a final backup before the source export I want an RMAN cold backup to get a consistent point-in-time backup. The database is in archivelog mode. After shutting down and using RMAN to perform the cold backup, I will have to open the database to do the export. So how would RMAN restore the production source database back to the time the database was down if additional archive logs are generated during the export? Would I have to specify a time or SCN or would I have SCN gap issues in the recovery of the source database? This is for the source database that will no longer be used once the import to the target and subsequent ERP upgrades are applied. However, I need to preserve the source for a month or so. I could also continue to take hot RMAN backups after the export is completed, but I need the point-in-time recovery to the exact time of the export. I currently only use online RMAN backups since this is a 24/7 database, but I have a short window to upgrade to the new production database.
    Thank you,
    Curt Swartzlander
    DBA

    >
    Would I have to specify a time or SCN or would I have SCN gap issues in the recovery of the source database? TTo do an incomplete recovery with RMAN requires to specify a date/time or SCN or log sequence because by default RMAN will try to do complete recovery: http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta065.htm#RCMRF160
    Edited by: P. Forstmann on 25 janv. 2010 18:32
    Edited by: P. Forstmann on 25 janv. 2010 18:34

  • 11g RMAN UNDO backup optimization

    Hi all?
    I have tested 11g RMAN UNDO backup optimization
    1st I fill the undo tablespace by sql manipulations and not commiting
    2nd backed undo_ts up by RMAN (size 24m)
    3rd I made a commit
    Then backed undo tablespace again but backup_size didn’t change     (24m)
    Then I made some more manipulations and backed undo_ts again. This time backup_size reduced. (11m)
    Then I restarted db and backed up undo_ts again. This time backup size became what I expected (600K)
    The question is why 11g rman undo tablespace backup size didn’t reduce after commit?
    according to 11g undo optimization it had to
    SQL> select sum(bytes) from dba_free_space where tablespace_name = 'UNDOTBS2';
    SUM(BYTES)
    13172736
    SQL> begin
    for i in 1..100000 loop
    insert into testundo values(i);
    end loop;
    end;
    2 3 4 5 6
    PL/SQL procedure successfully completed.
    SQL> SQL> update testundo set
    id=2 where id>0;
    2
    update testundo set
    ERROR at line 1:
    ORA-30036: unable to extend segment by 8 in undo tablespace 'UNDOTBS2'
    SQL> select sum(bytes) from dba_free_space where tablespace_name = 'UNDOTBS2';
    SUM(BYTES)RMAN> backup datafile 6;
    RMAN> list backup of datafile 6;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    10 Full *24.54M* DISK 00:00:04 10-JUN-10
    BP Key: 10 Status: AVAILABLE Compressed: NO Tag: TAG20100610T142437
    Piece Name: /home/oracle/flash_recovery_area/11GR1/backupset/2010_06_10/o1_mf_nnndf_TAG20100610T142437_611ctr1f_.bkp
    List of Datafiles in backup set 10
    File LV Type Ckp SCN Ckp Time Name
    6 Full 577669 10-JUN-10 /home/oracle/oradata/11GR1/datafile/undotbs2.dbf
    SQL> commit;
    Commit complete.RMAN> backup datafile 6 format 'after commit.backup';
    RMAN> list backup of datafile 6;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    11 Full *24.54M* DISK 00:00:02 10-JUN-10
    BP Key: 11 Status: AVAILABLE Compressed: NO Tag: TAG20100610T142541
    Piece Name: /home/oracle/product/11/Db_1/dbs/after commit.backup
    List of Datafiles in backup set 11
    File LV Type Ckp SCN Ckp Time Name
    6 Full 577705 10-JUN-10 /home/oracle/oradata/11GR1/datafile/undotbs2.dbf
    SQL> alter system archive log current;
    System altered.
    SQL> commit;
    Commit complete.
    SQL> select count(*) from testundo;
    COUNT(*)
    100000
    SQL> delete from testundo;
    100000 rows deleted.
    SQL> commit;
    Commit complete.
    SQL> insert into testundo values(1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> alter system flush buffer_cache;
    System altered.RMAN> backup datafile 6;
    RMAN> list backup of datafile 6;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    13 Full *11.03M* DISK 00:00:01 10-JUN-10
    BP Key: 13 Status: AVAILABLE Compressed: NO Tag: TAG20100610T143359
    Piece Name: /home/oracle/flash_recovery_area/11GR1/backupset/2010_06_10/o1_mf_nnndf_TAG20100610T143359_611dd8sz_.bkp
    List of Datafiles in backup set 13
    File LV Type Ckp SCN Ckp Time Name
    6 Full 578410 10-JUN-10 /home/oracle/oradata/11GR1/datafile/undotbs2.dbf
    RMAN>
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 393375744 bytes
    Fixed Size 1300156 bytes
    Variable Size 352323908 bytes
    Database Buffers 33554432 bytes
    Redo Buffers 6197248 bytes
    Database mounted.
    Database opened.
    SQL> RMAN> backup datafile 6;
    RMAN> list backup of datafile 6;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    14 Full *600.00K* DISK 00:00:02 10-JUN-10
    BP Key: 14 Status: AVAILABLE Compressed: NO Tag: TAG20100610T152843
    Piece Name: /home/oracle/flash_recovery_area/11GR1/backupset/2010_06_10/o1_mf_nnndf_TAG20100610T152843_611hlwmv_.bkp
    List of Datafiles in backup set 14
    File LV Type Ckp SCN Ckp Time Name
    6 Full 580347 10-JUN-10 /home/oracle/oradata/11GR1/datafile/undotbs2.dbf
    Thanks in advance
    Turkel

    Hi Turkel,
    The space used for undo is also related to the undo retention setting.
    As it seems you do a test update and proceed with backups on:
    - 14:24:37 (-> 25M)
    - 14:25:41 (-> 25M)
    - 14:33:59 (-> 11M)
    - 15:28:43 (-> 600K)
    The first two backups probably are still within the undo retention period for the update.
    The third backup shows a partly empty undo (is your setting 900?).
    The last falls outside the retention period for the update resulting in the small backup size.
    Regards,
    Tycho

  • RMAN Cold backup script

    DB version :10.2.0.4
    Do you find anything wrong in the below mentioned RMAN cold backup script? Any enhancements, corrections required?
    shutdown immediate;
    startup mount;
    backup database including current controlfile tag='full_bkp';
    startup;
    crosscheck backup;
    delete noprompt obsolete device type disk;
    resync catalog;
    }

    Since you are doing a SHUTDOWN IMMEDIATE and STARTUP MOUNT before the BACKUP, there will be no ArchiveLogs generated while the backup is running --- as the database is not OPEN.
    However, the PLUS ARCHIVELOG can include ArchiveLogs that had been generated from the previous STARTUP or ALTER DATABASE OPEN.
    (In that case, I would suggest an SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT' before the SHUTDOWN IMMEDIATE).
    Is your database running in ARCHIVELOG mode ? If not, then this discussion is moot.
    If yes, the next question is, obviously : Why not take a Hot Backup while the database is running (in which case you MUST backup archivelogs !)
    Hemant K Chitale

  • Restoring and Recovering from RMAN cold backup

    DB Version: 11gR2
    os : Solaris
    Before dropping a DB we had taken an RMAN backup of the DB using
    RMAN> backup database;We hadn't set a FORMAT (like db_%d_S_%s_P_%p_T_%t) for this DB , so the backups went to ORACLE_HOME/dbs directory. The 2 backup files are
    /u02/app/oracle/11.2/db/dbs/01mo9fms_1_1
    /u02/app/oracle/11.2/db/dbs/02mo9fnc_1_1  -- spfile and control fileNow we need to recreate this DB on a new server.
    In the new server, we've placed the backup files in /u04/backup/rmanbkp .
    Since We hadn't set a FORMAT parameter for the original DB which we have dropped what format i will give during restore?
    Will RMAN automatically recognize the FORMAT of the backup piece and restore ?
    RMAN> run
    allocate channel c1 device type disk format 'i_dont_know_the_format';
    allocate channel c2 device type disk format 'i_dont_know_the_format';
    restore controlfile;
    restore database;
    }This the SHOW ALL output from the DB we have dropped .
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name BRCFTST 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
    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 MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u02/app/oracle/11.2/db/snapcf_brcftst.f'; # defaultAs you can see we hadn't set the format explicitly , ie. the line
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT is missing

    Hi,
    Before dropping a DB we had taken an RMAN backup.I hope you were in mount mode.
    Will RMAN automatically recognize the FORMAT of the backup piece and restore ?No it won't.
    First you have to restore a controlfile in nomount mode with:
    restore controlfile from '/u04/backup/rmanbkp /02mo9fnc_1_1';
    and do alter database mount.
    Than you have to run "catalog start with '/u04/backup/rmanbkp'; " so the instance now knows where to find the pieces.
    Now you can run a restore database command.
    Than open the database with resetlogs.
    Regards,
    Tycho

  • Restoration of cold backup on differnet server

    Question: 1) I have cold backup of sunday using User managed backup on A server & all archivelogs upto wednesday on A server.
    2) I transfer my cold backup & archivelogs on B server.
    3) Now I need to recover my B server's database upto wednesday.
    Note: 1) I have different location of datafiles,controlfiles.redologs on B server as of A server..
    2) OS is AIX 5.3
    3) Oracle databse version 10.2.0.4 on both server

    duplicate thread
    rman backup optimization question
    Aman....

  • Backup and restore the wss_content db to the same server with different name

    Hi,
     I want to restore the content db of 80 port in my sp 2013  web appln to a different web appl. is this possible?
    By default wss_content is pointing to the 80 port. so if i wanna take the backup of this content db and restore it in the same machine as a  different content db name, is this achievable?
    if this is achieved, i want to mount this newly restored content db to a new  web appln.

    Hi Benjamin,
    you could restore database with new name using below script
    RESTORE
    DATABASEWSS_Content_NewFROMDISK='C:\Program
    Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\WSS_Content.bak'
    WITH
    MOVE'WSS_Content'TO'C:\Program
    Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\WSS_Content_New.mdf',
    MOVE'WSS_Content_log'TO'C:\Program
    Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\WSS_Content_Newt_log.ldf'
    Regards,
    Regards, <b>Khalil Kothia, PMP </b>
    Blog

  • Restoration of Cold backup on another server

    Hi ALL,
    Question: 1) I have cold backup of sunday using User managed backup on A server & all archivelogs upto wednesday on A server.
    2) I transfer my cold backup & archivelogs on B server.
    3) Now I need to recover my B server's database upto wednesday.
    Note: 1) I have same location of datafiles,controlfiles.redologs on B server as of A server..
    Please Help
    Regards

    user13364785 wrote:
    Hi ALL,
    Question: 1) I have cold backup of sunday using User managed backup on A server & all archivelogs upto wednesday on A server.
    2) I transfer my cold backup & archivelogs on B server.
    3) Now I need to recover my B server's database upto wednesday.
    Note: 1) I have same location of datafiles,controlfiles.redologs on B server as of A server..
    Please Help
    RegardsIf your OS is windows then you have to create OracleService using oradim utility,then create need directory for data/control/log files and according background/diag/trace also parameter file.
    After creating these directories startup mount database using STARTUP MOUNT PFILE='PFILELOCATION' then issue command RECOVER DATABASE USING BACKUP CONTROLFILE in this case oracle will read default location of archive logs and will apply,if this directory is different then main server then execute RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL and apply archive logs manually and open database with ALTER DATABASE OPEN RESETLOGS.

  • How to restore cold backups on other server

    Hi all
    On Oracle9i production server, we have windows scheduled job to take the cold backups every day night. The size of the database is 2GB.
    Now, the cold backup consists of
    - Database files & Log files
    - Parameter file
    - Control file.
    I am required to check the validity of the cold backup we have. So, I need to restore the database in another server.
    So, please provide me the steps I need to do to restore the database.
    Thanks.

    See Chapter 3 "Performing User-Managed Restore Operations" of the
    "Oracle9i User-Managed Backup and Recovery Guide Release 2 (9.2)" (Part Number A96572-01)
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96572/osrestore.htm#26029
    Best to start with Chapter 1 "Introduction ..."
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96572/intro.htm#431510
    and Chapter 2 "Making User-Managed Backups"
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96572/osbackups.htm#10000
    If you are on Windows note that besides installing the sofwtare you must also create the Oracle Service before you restore a database backp to another server.
    See Chapter 6 "Backing Up and Recovering Database Files" in the Oracle Database Administrator's Guide for Windows
    http://download.oracle.com/docs/cd/B10501_01/win.920/a95491/backup.htm#1004903

Maybe you are looking for

  • Gong nuts trying to replace a hard drive on an early 2008 IMAC

    Hi All, I'll try to be brief.  I thought we were having hard drive issues, because if we tried to reboot once warm we just get the folder with the flashing ?  SOmetimes the computer would go days before it was kind enough to reboot. I managed to keep

  • ABAP Class not displaying in operation mapping.

    HI, I have created abap class using se24 for throwing exception message in sxmb_moni, this abap class needs to be called in operation mapping, even though i have activated this abap class in PI environtment, i couldnt see the abap class option in the

  • Need help with synchroniz​ing a PN generator

    Hi, My first post here J I am trying to build a PN generator with 5 bit shift register. I am using the following: Primitive polynomial x^5+x^3+X+1 , [1,3,5] . keeping the following in mind;   (Input signal)  XOR (PN sequence) = output signal (Output

  • Reading message contexts from WCF custom behavior

    Hi, I'm trying to create a WCF custom behavior extension because I can't simply use out of box WCF adapters without this customization. I'm trying to write some custom code in BeforeSendRequest() method in the message inspector, and I wonder from her

  • Adding EL attribute

    Hi, I want to display text item on the page. If length of this field will by greather then 60 characters, I want to move the text to next line. I don't want to set the attribute "rows" in <af:inputText> component to constans value, because if the len