Backing up RMAN
Hi,
I have created RMAN in 92 database and registered the target database which is also 92. I'd like to backup the RMAN itself using export mechanism. Is there a specific table or tablespace I need to export or should I export the entire RMAN schema of catalog db.
In case I lose the target and RMAN databases, can I reconstruct the target database by first rebuilding the catalog (from export file) and then rebuilding the target database ? The target database will be backed up everyday.
Thanks a lot.
Vissu
The recovery catalog schema export should be fine to recover the catalog data if both your target and catalog databases are lost. The recovery catalog schema holds all the data RMAN needs to recover your target databases.
Similar Messages
-
Error while taking RMAN back up - RMAN-03009: failure of backup command ..
Hi Experts,
I am trying to take RMAN back up but at the end I get this error message.. I found a solution at http://www.oracle-base.com/articles/9i/RecoveryManager9i.php
But this is of oracle 9i. Can I use it on 10g too ?
So is this Step correct ?
1) First create a user to hold the recovery catalog:
a) CONNECT sys/password@w2k1 AS SYSDBA
b) GRANT connect, resource, recovery_catalog_owner TO rman;
2) Then create the recovery catalog:
a) C:>rman catalog=rman/rman@w2k1
b) RMAN> create catalog tablespace "RMAN";
c) RMAN> exit
3) Register Database
a) C:>rman catalog=rman/rman@w2k1 target=sys/password@w2k2
b) RMAN> register database;
c) Existing user-created backups can be added to the catalog using: (*So far no Back up taken so I guess this step can be ignored*)
i) RMAN> catalog datafilecopy 'C:\Oracle\Oradata\TSH1.dbf';
ii) RMAN> catalog archivelog 'log1', 'log2', 'log3', ... 'logN';
4) Full Backup Configuration
RMAN> configure retention policy to recovery window of 7 days;
RMAN> configure default device type to disk;
RMAN> configure controlfile autobackup on;
RMAN> configure channel device type disk format 'C:\Oracle\Admin\W2K2\Backup%d_DB_%u_%s_%p';
5) Full back up
RMAN> run {
backup database plus archivelog;
delete noprompt obsolete;
6) RMAN> resync catalog;
Starting backup at 15-MAY-10
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00006 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\DM_MENTOR200
60430230208_DB.DBF
input datafile fno=00002 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\UNDOTBS01.DB
F
input datafile fno=00007 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\DM_MENTOR200
60430230208_IND.DBF
input datafile fno=00001 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\SYSTEM01.DBF
input datafile fno=00003 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\SYSAUX01.DBF
input datafile fno=00005 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\EXAMPLE01.DB
F
input datafile fno=00004 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ZUMA\USERS01.DBF
channel ORA_DISK_1: starting piece 1 at 15-MAY-10
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 05/15/2010 05:11:
03
ORA-19809: limit exceeded for recovery files
ORA-19804: cannot reclaim 52428800 bytes disk space from 2147483648 limit
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current controlfile in backupset
channel ORA_DISK_1: starting piece 1 at 15-MAY-10
channel ORA_DISK_1: finished piece 1 at 15-MAY-10
piece handle=C:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ZUMA\BACKUPSET\2010_05
_15\O1_MF_NCNNF_TAG20100515T045136_5YX3TTFT_.BKP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:17
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup plus archivelog command at 05/15/2010 05:11:21
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 05/15/2010 05:11:
03
ORA-19809: limit exceeded for recovery files
ORA-19804: cannot reclaim 52428800 bytes disk space from 2147483648 limit
RMAN>
Thanks & Regards,
Ranjith JohnProvided you consult the 10g RMAN documentation and the online error documentation: yes.
But apparently you didn't check documentation, not even the error messages!!!!! Why?
You are backing up to the Flash Recovery Area, and the error messages mean too much space is occupied.
How to configure the Flash Recovery Areea is fully documented in the Backup and Recovery manual for 10g at http://tahiti.oracle.com
READ IT.
Please do not ask a volunteer to abstract it.
Sybrand Bakker
Senior Oracle DBA -
"list backup of tablespace" - Not coming out back to RMAN prompt
Hi All,
We have a script to perform the restore and recover test process.
In that we have given the command "list backup of tablespace <tablespace name > summary" to check if the tablespace is backedup successfully.
Its returning the list of backup pieces, but it hangs in that stage without coming back to RMAN prompt.
I have manually loged in to rman session and typed "list backup of tablespace <tablespace name > summary", after listing the backup it hangs and not coming back to RMAN prompt.
Please advice on this.
Thanks & Regards,
RakeshAnd your version and operating system are?
Is this a production system with other things running or a home machine with minimal resources?
If Windows specifically which edition of the Windows software (don't just say XP). -
How can I move back the rman convert file from file system to ASM?
I have no idea on pluging-in the data files which were unloaded as follows:
SQL> alter tablespace P_CDDH_DSPGD_V1_2011 read only;
SQL> alter tablespace P_IDX_CDDH_DSPGD_V1_2011 read only;
SQL> exec dbms_tts.transport_set_check('P_CDDH_DSPGD_V1_2011,P_IDX_CDDH_DSPGD_V1_2011',true);
SQL> select * from transport_set_violations;
UNIX> expdp tossadm@pmscdhf1 dumpfile=ttsfy1.dmp directory=trans_dir transport_tablespaces = P_CDDH_DSPGD_V1_2011,P_IDX_CDDH_DSPGD_V1_2011
RMAN> convert tablespace P_CDDH_DSPGD_V1_2011, P_IDX_CDDH_DSPGD_V1_2011 format = '/appl/oem/backup/temp/%I_%s_%t_extbspace.dbf';
Starting conversion at source at 03-OCT-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=116 instance=pmscdhf11 device type=DISK
channel ORA_DISK_1: starting datafile conversion
input datafile file number=00079 name=+PMSCDHF1/p_cddh_dspgd_v1_2011_01.dbf
converted datafile=/appl/oem/backup/temp/3536350174_2820_827849001_extbspace.dbf
channel ORA_DISK_1: datafile conversion complete, elapsed time: 00:02:15
channel ORA_DISK_1: starting datafile conversion
input datafile file number=00080 name=+PMSCDHF1/p_idx_cddh_dspgd_v1_2011_02.dbf
converted datafile=/appl/oem/backup/temp/3536350174_2821_827849136_extbspace.dbf
channel ORA_DISK_1: datafile conversion complete, elapsed time: 00:01:45
Finished conversion at source at 03-OCT-13
Starting Control File Autobackup at 03-OCT-13
piece handle=/dbms/oracle/r1110/db_01/dbs/c-3536350174-20131003-02 comment=NONE
Finished Control File Autobackup at 03-OCT-13
SQL> drop tablespace P_CDDH_DSPGD_V1_2011 including contents;
SQL> drop tablespace P_IDX_CDDH_DSPGD_V1_2011 including contents;
Afterward, how can I relocate the backup files "/appl/oem/backup/temp/3536350174_2820_827849001_extbspace.dbf", "/appl/oem/backup/temp/3536350174_2821_827849136_extbspace.dbf" back to the ASM group +PMSCDHF1 ???The 11.1 documentation only says "Enables you to copy files between ASM disk groups on local instances to and from remote instances" and "You can also use this command to copy files from ASM disk groups to the operating system."
http://docs.oracle.com/cd/B28359_01/server.111/b31107/asm_util.htm#CHDJEIEA
The 11.2 documentation says "Copy files from a disk group to the operating system Copy files from a disk group to a disk group Copy files from the operating system to a disk group"
http://docs.oracle.com/cd/E11882_01/server.112/e18951/asm_util003.htm#CHDJEIEA
I've never tried 11.1
Hemant K Chitale -
How to take back up of messages from iphone
Hello,
I tried taking a back up from my iphone 3g to iphone 5s, but however on doing that only my contacts and my photographs got transferred but not my messages. Can anyone please let me know how I can take backup of my messages from my previous old iphone to my new iphone.
Thankshi 3360, i found the following example;
for back up:
rman target sys/*** nocatalog
run {
allocate channel t1 type disk;
backup
format '/app/oracle/backup/%d_t%t_s%s_p%p'
(database);
release channel t1;
i couldn't undertsand this,actually i want the databse which has the
username:scott
password:jetora
host string:jetora
i want to take the database backup in c:/databasebackup.
here databasebackup is one folder which is in c:(c directory)
wil the above mentioned exapmle work? what are the things i have to modify in that examploe to accomplich my need.please help me and please modify that example and show me please -
RMAN-00558: error encountered while parsing input commands
Hi,
on 12C on Win 2008
as said in documentation :
@ (at sign)
Example 2-2 Running a Command File Within RMAN
This example shows how you can execute a command file from the RMAN prompt and from within a RUN command. User-entered text appears in bold.
RMAN> @backup_db.rman
I do as follows to run a script to back up :
RMAN> @C:\scripts\RMAN\al_backup_full_cdb.rman LOG=C:\scripts\logs\al_backup_full_log
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "log": expecting one of: "double-quoted-string, identifier, integer, single-quoted-string"
RMAN-01007: at line 1 column 1 file: standard input
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "@": expecting one of: "double-quoted-string, identifier, integer, single-quoted-string"
RMAN-01007: at line 0 column 1 file: standard input
Thank you.user10274093 wrote:
yes thank you. Like this :
@C:\scripts\RMAN\al_backup_full_cdb.rman
But how to have a log file ?
You can not use the log= clause *inside* rman, you can only use it on the shell prompt *outside* rman. -
RMAN Skips the corrupted Block
Hi,
We are using Oracle 10.2.0.4 rman utility for backup, In SYSAUX tablespace, datafile 3, one block has been corrupted.
I have try to export the tablespace , i found warning message of "corrupted block and table name". But RMAN, while try to backup datafile 3, or validate the backup, it doesn't popu any error message and went through with out any problem.
==>I have set maxcorrupt 0 in run block
==> Check logical i have used
==> V$database_block_corruption pops the result but MAXCORRUPT 0.
==> But Analyis the table show the corrupted block error.
===> Try to select * from corrupted table. it throws the error message.
Please advice
Regards
KrishSteve,
Thank you for the doc, But i have already mentioned,
--> i have tried from check logical
--> Also MaxCorrupt parameter
Am able to view the corrutped block information in database_block_corruption
but while backing with rman using
RMAN> run
2> {
3> set MAXCORRUPT for datafile 3 to 0;
4> backup datafile 3;
5> }
executing command: SET MAX CORRUPT
using target database control file instead of recovery catalog
Starting backup at 27-APR-09
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=12 instance=TEST devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00003 name=+DBFILE_GRP1/TEST/datafile/sysaux.499.667900479
channel ORA_DISK_1: starting piece 1 at 27-APR-09
channel ORA_DISK_1: finished piece 1 at 27-APR-09
piece handle=/usr/oradata/BKUP/TEST/backup/database/BIRTEF1_4229_1_1_45kdh7uj tag=TAG
comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
Finished backup at 27-APR-09
Starting Control File and SPFILE Autobackup at 27-APR-09
Finished Control File and SPFILE Autobackup at 27-APR-09
SQL> select * from v$database_block_corruption;
FILE# BLOCK# BLOCKS CORRUPTION_CHANGE# CORRUPTIO
3 23260 1 0 CORRUPT
3 123228 1 0 CORRUPT
ITs backing up with no issues. Thats the confusion here.
REgards
KRishnan -
Hi ,
following is the message from Alert log file and trace files.
This error encountered during RMAN backup but the backup was fine.
Didn't get any errors in RMAN log file.
Can anybody tell me what's the problem and solution?
----------- alert log file --------------------
Thu Mar 9 02:14:13 2006
Errors in file /app/oracle/admin/SOFPDWB4/udump/sofpdwb4_ora_950328.trc:
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 4
Thu Mar 9 02:14:13 2006
Errors in file /app/oracle/admin/SOFPDWB4/udump/sofpdwb4_ora_1769540.trc:
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 4
Thu Mar 9 02:14:13 2006
Errors in file /app/oracle/admin/SOFPDWB4/udump/sofpdwb4_ora_1392642.trc:
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 4
----------- trace files -------------------
/app/oracle/admin/SOFPDWB4/udump/sofpdwb4_ora_950328.trc
Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production
ORACLE_HOME = /app/oracle/product/9.2.0
System name: AIX
Node name: sof016
Release: 1
Version: 5
Machine: 000CEF9C4C00
Instance name: SOFPDWB4
Redo thread mounted by this instance: 1
Oracle process number: 24
Unix process pid: 950328, image: oracle@sof016 (TNS V1-V3)
*** 2006-03-09 02:14:13.053
*** SESSION ID:(77.60408) 2006-03-09 02:14:13.040
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 4
~
/app/oracle/admin/SOFPDWB4/udump/sofpdwb4_ora_1769540.trc
Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production
ORACLE_HOME = /app/oracle/product/9.2.0
System name: AIX
Node name: sof016
Release: 1
Version: 5
Machine: 000CEF9C4C00
Instance name: SOFPDWB4
Redo thread mounted by this instance: 1
Oracle process number: 25
Unix process pid: 1769540, image: oracle@sof016 (TNS V1-V3)
*** 2006-03-09 02:14:13.311
*** SESSION ID:(53.5721) 2006-03-09 02:14:13.310
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 4
/app/oracle/admin/SOFPDWB4/udump/sofpdwb4_ora_1392642.trc
Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production
ORACLE_HOME = /app/oracle/product/9.2.0
System name: AIX
Node name: sof016
Release: 1
Version: 5
Machine: 000CEF9C4C00
Instance name: SOFPDWB4
Redo thread mounted by this instance: 1
Oracle process number: 27
Unix process pid: 1392642, image: oracle@sof016 (TNS V1-V3)
*** 2006-03-09 02:14:13.549
*** SESSION ID:(59.52476) 2006-03-09 02:14:13.548
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 4Hello looks like when backing up database using RMAN it did not find the archivelogs hence you got the errors. Try doing "Crosscheck archivelog all" and see.
-Sri
<< Symptoms >>
Archivelog backup using RMAN failed with error :
RMAN-03002: failure of backup command at 08/18/2005 14:51:16
RMAN-06059: expected archived log not found, lost of archived log compromises recoverability
ORA-19625: error identifying file /arch/arch2/1_266_563489673.dbf
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: A file or directory in the path name does not exist.
Additional information: 3
<<Cause>>
RMAN get the information about what archivelog files are required to back up from the v$archived_log view.
RMAN cannot find the file archivelog in the archivelog destination. So itscannot continue taking the backup because this file does not exist.
<<Solution>>
Check if the archivelog exist in the log archive destination. If the is moved to some other location then restore the file back to its original location and then do RMAN back.
else
RMAN> crosscheck archivelog all;
After the crosscheck all take the rman backup. -
Help is needed in restoring DB to new host
Hello ,
I posted new thread two days ago , but yet, haven't succedded in restore my DB from host A to host b .
I need to do a test case , backup database at 11:00 , make some changes , (create / drop tables , whatever ) , take incremental level 1 at 11:15 , make more changes , plus another incremental level 1 backup at 11:30 .
At the end of that , I should try to to restore the Database called DB1 , into host b , for the changes made before the backup of 11:15 (that is , set until time ... 11:15) .
the problem is that I sit on that thing for about a week ,
and each time get another error at the end of the process when trying to run :
"recover database / recover database noredo" .
Here is what I do in host a :
[b]% setenv ORACLE_SID DB1
% sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Thu Jan 25 10:29:46 2007
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning and Data Mining options
SQL> select to_char (sysdate,'dd-mm-yyyy hh24:mi') From dual ;
TO_CHAR(SYSDATE,
25-01-2007 10:34
exit;
% rman target / catalog rman/rman@RCVCAT
Recovery Manager: Release 10.2.0.2.0 - Production on Thu Jan 25 10:32:33 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: DB1 (DBID=1206648960)
connected to recovery catalog database
RMAN> register database ;
database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
RMAN> configure controlfile autobackup on ;
new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete
RMAN> backup database ;
Starting backup at 25-JAN-07
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=198 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00002 name=/u03/oradata/DB1/dbf/t_undo_01_DB1.ora
input datafile fno=00001 name=/u03/oradata/DB1/dbf/t_system_01_DB1.ora
input datafile fno=00003 name=/u03/oradata/DB1/dbf/t_sysaux_01_DB1.ora
input datafile fno=00005 name=/u02/oradata/DB1/dbf/t_common_data_01_DB1.ora
input datafile fno=00006 name=/u02/oradata/DB1/dbf/t_common_ix_01_DB1.ora
input datafile fno=00004 name=/u03/oradata/DB1/dbf/t_users_01_DB1.ora
input datafile fno=00007 name=/u02/oradata/DB1/dbf/t_cipher_data_01_DB1.ora
input datafile fno=00008 name=/u02/oradata/DB1/dbf/t_cipher_ix_01_DB1.ora
channel ORA_DISK_1: starting piece 1 at 25-JAN-07
channel ORA_DISK_1: finished piece 1 at 25-JAN-07
piece handle=/u01/oradata/DB1/rman_admin/DB1/backupset/2007_01_25/o1_mf_nnndf_TAG20070125T103356_2vjtvnsz_.bkp tag=TAG20070125T103356 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
Finished backup at 25-JAN-07
Starting Control File Autobackup at 25-JAN-07
piece handle=/u01/oradata/DB1/rman_admin/DB1/autobackup/2007_01_25/o1_mf_n_612786863_2vjtwhsb_.bkp comment=NONE
Finished Control File Autobackup at 25-JAN-07
RMAN> backup archivelog all ;
Starting backup at 25-JAN-07
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=11 recid=1 stamp=612786900
channel ORA_DISK_1: starting piece 1 at 25-JAN-07
channel ORA_DISK_1: finished piece 1 at 25-JAN-07
piece handle=/u01/oradata/DB1/rman_admin/DB1/backupset/2007_01_25/o1_mf_annnn_TAG20070125T103501_2vjtxq1g_.bkp tag=TAG20070125T103501 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04
Finished backup at 25-JAN-07
Starting Control File Autobackup at 25-JAN-07
piece handle=/u01/oradata/DB1/rman_admin/DB1/autobackup/2007_01_25/o1_mf_n_612786907_2vjtxvrj_.bkp comment=NONE
Finished Control File Autobackup at 25-JAN-07
BACK TO SQLPLUS
> SQL> select to_char (sysdate,'dd-mm-yyyy hh24:mi') From dual ;
TO_CHAR(SYSDATE,
25-01-2007 10:39
SQL> create user newuser identified by nweuser ;
User created.
SQL> grant connect , resource , create table to newuser ;
Grant succeeded.
SQL> create table newuser.tab (col number) ;
Table created.
BACK TO RMAN
RMAN> backup archivelog all ;
Starting backup at 25-JAN-07
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=11 recid=1 stamp=612786900
channel ORA_DISK_1: starting piece 1 at 25-JAN-07
channel ORA_DISK_1: finished piece 1 at 25-JAN-07
piece handle=/u01/oradata/DB1/rman_admin/DB1/backupset/2007_01_25/o1_mf_annnn_TAG20070125T103501_2vjtxq1g_.bkp tag=TAG20070125T103501 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04
Finished backup at 25-JAN-07
Starting Control File Autobackup at 25-JAN-07
piece handle=/u01/oradata/DB1/rman_admin/DB1/autobackup/2007_01_25/o1_mf_n_612786907_2vjtxvrj_.bkp comment=NONE
Finished Control File Autobackup at 25-JAN-07
RMAN> backup incremental level 1 all database ;
Starting backup at 25-JAN-07
using channel ORA_DISK_1
channel ORA_DISK_1: starting incremental level 1 datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00002 name=/u03/oradata/DB1/dbf/t_undo_01_DB1.ora
input datafile fno=00001 name=/u03/oradata/DB1/dbf/t_system_01_DB1.ora
input datafile fno=00003 name=/u03/oradata/DB1/dbf/t_sysaux_01_DB1.ora
input datafile fno=00005 name=/u02/oradata/DB1/dbf/t_common_data_01_DB1.ora
input datafile fno=00006 name=/u02/oradata/DB1/dbf/t_common_ix_01_DB1.ora
input datafile fno=00004 name=/u03/oradata/DB1/dbf/t_users_01_DB1.ora
input datafile fno=00007 name=/u02/oradata/DB1/dbf/t_cipher_data_01_DB1.ora
input datafile fno=00008 name=/u02/oradata/DB1/dbf/t_cipher_ix_01_DB1.ora
channel ORA_DISK_1: starting piece 1 at 25-JAN-07
channel ORA_DISK_1: finished piece 1 at 25-JAN-07
piece handle=/u01/oradata/DB1/rman_admin/DB1/backupset/2007_01_25/o1_mf_nnnd1_TAG20070125T104227_2vjvcnpg_.bkp tag=TAG20070125T104227 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:46
Finished backup at 25-JAN-07
Starting Control File Autobackup at 25-JAN-07
piece handle=/u01/oradata/DB1/rman_admin/DB1/autobackup/2007_01_25/o1_mf_n_612787395_2vjvf3rp_.bkp comment=NONE
Finished Control File Autobackup at 25-JAN-07
RMAN> backup archivelog all ;
Starting backup at 25-JAN-07
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=11 recid=1 stamp=612786900
input archive log thread=1 sequence=12 recid=2 stamp=612787440
channel ORA_DISK_1: starting piece 1 at 25-JAN-07
channel ORA_DISK_1: finished piece 1 at 25-JAN-07
piece handle=/u01/oradata/DB1/rman_admin/DB1/backupset/2007_01_25/o1_mf_annnn_TAG20070125T104401_2vjvglw5_.bkp tag=TAG20070125T104401 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04
Finished backup at 25-JAN-07
Starting Control File Autobackup at 25-JAN-07
piece handle=/u01/oradata/DB1/rman_admin/DB1/autobackup/2007_01_25/o1_mf_n_612787447_2vjvgqog_.bkp comment=NONE
Finished Control File Autobackup at 25-JAN-07
BACK TO SQLPLUS
SQL> select to_char (sysdate,'dd-mm-yyyy hh24:mi') From dual ;
TO_CHAR(SYSDATE,
25-01-2007 10:45
SQL> create user userb identified by userb ;
User created.
SQL> grant create table , connect , resource to userb ;
Grant succeeded.
SQL> create table userb.userb_tab (col number) ;
Table created.
BACK TO RMAN
RMAN> backup incremental level 1 database ;
Starting backup at 25-JAN-07
using channel ORA_DISK_1
channel ORA_DISK_1: starting incremental level 1 datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00002 name=/u03/oradata/DB1/dbf/t_undo_01_DB1.ora
input datafile fno=00001 name=/u03/oradata/DB1/dbf/t_system_01_DB1.ora
input datafile fno=00003 name=/u03/oradata/DB1/dbf/t_sysaux_01_DB1.ora
input datafile fno=00005 name=/u02/oradata/DB1/dbf/t_common_data_01_DB1.ora
input datafile fno=00006 name=/u02/oradata/DB1/dbf/t_common_ix_01_DB1.ora
input datafile fno=00004 name=/u03/oradata/DB1/dbf/t_users_01_DB1.ora
input datafile fno=00007 name=/u02/oradata/DB1/dbf/t_cipher_data_01_DB1.ora
input datafile fno=00008 name=/u02/oradata/DB1/dbf/t_cipher_ix_01_DB1.ora
channel ORA_DISK_1: starting piece 1 at 25-JAN-07
channel ORA_DISK_1: finished piece 1 at 25-JAN-07
piece handle=/u01/oradata/DB1/rman_admin/DB1/backupset/2007_01_25/o1_mf_nnnd1_TAG20070125T104750_2vjvoqb0_.bkp tag=TAG20070125T104750 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:35
Finished backup at 25-JAN-07
Starting Control File Autobackup at 25-JAN-07
piece handle=/u01/oradata/DB1/rman_admin/DB1/autobackup/2007_01_25/o1_mf_n_612787707_2vjvpw09_.bkp comment=NONE
Finished Control File Autobackup at 25-JAN-07
RMAN> backup archivelog all ;
Starting backup at 25-JAN-07
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=11 recid=1 stamp=612786900
input archive log thread=1 sequence=12 recid=2 stamp=612787440
input archive log thread=1 sequence=13 recid=3 stamp=612787722
channel ORA_DISK_1: starting piece 1 at 25-JAN-07
channel ORA_DISK_1: finished piece 1 at 25-JAN-07
piece handle=/u01/oradata/DB1/rman_admin/DB1/backupset/2007_01_25/o1_mf_annnn_TAG20070125T104843_2vjvqdpf_.bkp tag=TAG20070125T104843 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
Finished backup at 25-JAN-07
Starting Control File Autobackup at 25-JAN-07
piece handle=/u01/oradata/DB1/rman_admin/DB1/autobackup/2007_01_25/o1_mf_n_612787727_2vjvqhk7_.bkp comment=NONE
Finished Control File Autobackup at 25-JAN-07
exit host a
Now I create same directories I have in host a , also in host b ,
I have my init.ora file from host a and put it in host b ,
and have all backups taken in host a , available in host b (got them through ftp) .
here comes my question , I look at the pdf books of oracle and do somthing like that in host b :
setenv ORACLE_SID DB1
% sqlplus "/ as sysdba"
SQL> startup nomount pfile=initDB1.ora
SQL> exit
% rman target / nocatalog
RMAN > set dbid 1206648960 ;
RMAN > restore controlfile from autobackup until time "to_date ('25-01-2007 10:35','dd-mm-yyyy hh24:mi')";
## to get back in time to the changes made before userb was created !
RMAN > alter database mount ;
RMAN > restore database ;
RMAN > recover database noredo ;
RMAN > alter database open resetlogs ;
I don't run the whole process in host b , cause the restore is written somewhere , and I don't know where , and in the next time I try to run the restore operation , I get another kind of error message , and have to start the whole thing from the begining .
what's wrong in my process ? it's either I got errors about my files that are older than the last time of the resetlogs , or the DB is recovered to its most current state , after the creation of userb .
please advice . what should I change in my process ? it has been 3 days that I fail to recover my DB , and all I do is taken from oracle tecnet or metalink site .
Thanks in advanced ,
Lior .I think I found what was wrong .
when I use restore controlfile until time , it means that if I wrote 13:00 the recover should be at least to 13:01 (for example) .
meanwhile it works , I'm going to do some more tests to be sure . -
How to check wether we are using Compressed backup option or not in 11gR1?
Actually I'm trying save some space in FRA? Any Ideas will be really welcome.
One option I can think of is Compressed backup sets
I don't see anyhting like 'Compress' in my scripts below....Also in 'Backup Settings' under 'Availability' Tab in Grid
I see 'Backup Set' selected and not 'Compressed Backup set'.
Is there anywhere else I can check wether I'm taking compressed backups or not?
Thanks in Advance
run {
RECOVER COPY OF DATABASE WITH TAG "ngprod_incr_backup";
allocate channel 'dev_0' type 'sbt_tape' parms 'SBT_LIBRARY=/ora00/app/oracle/product/11/db1/lib/libobk.so';
send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
allocate channel 'dev_1' type 'sbt_tape' parms 'SBT_LIBRARY=/ora00/app/oracle/product/11/db1/lib/libobk.so';
send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
backup recovery area;
release channel dev_0;
release channel dev_1;
BACKUP INCREMENTAL LEVEL 0 DATABASE TAG "ngprod_incr_backup" ;
run {
RECOVER COPY OF DATABASE WITH TAG "ngprod_incr_backup";
BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG "ngprod_incr_backup" DATABASE;
run {
allocate channel 'dev_0' type 'sbt_tape'
send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
allocate channel 'dev_1' type 'sbt_tape'
send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
allocate channel 'dev_2' type 'sbt_tape'
send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
allocate channel 'dev_3' type 'sbt_tape'
send 'NSR_ENV=(NSR_SERVER=corpntw01.amhc.amhealthways.net, NSR_CLIENT=NGPROD.amhc.amhealthways.net, NSR_DATA_VOLUME_POOL=UNIX Daily)';
backup filesperset 1 tag='NGPROD' format 'ARCH<NGPROD_%s:%t:%p>' archivelog all not backed up 2 times;
delete noprompt archivelog all backed up 2 times to device type sbt;
release channel dev_0;
release channel dev_1;
release channel dev_2;
release channel dev_3;
}hi,
also you may define default behaviour of backing up:
RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO COMPRESSED BACKUPSET;
Turn on this great feature:
SQL> alter database enable block change tracking using file '/u01/oradata/ora1/change_tracking.f';
and use incremental backups. -
How to recovery the database from a complete backup
I have a 10.2.0.3 database with archive log enabled.
I do a cold backup of database every Sunday night.
I shutdown the database, copy all the database files, control files and redo logs to a backup disk.
Then the database started and running again.
I am trying to test my backup and make sure I can recovery the database to the most current stage using the Sunday backup and the archive logs.
for example: use the backup from 4/01/2012, recover the database to today 4/04/2012 9:00am.
What's the steps of doing this?
I tried to copy all the Sunday backup files to the correct location, start the database, the database is started successfully. However, I don't know how to apply the logs from since the Sunday backup upto now.
Thanks a lot!hi,
rman is your friend to do backups, restores and recovers of database.
to do a full recover of database, for example to do a test on your current test database (no in crash):
rman time:
startup nomount;
restore controlfile;
alter database mount;
sql now
select archivelog_change#-1 from v$database;
then go back to rman and do the following :
RMAN> run{
2> set until scn xxxxxx;
3> restore database;
4> recover database;
5> alter database open resetlogs;
6> }
**where xxxxx is the result of your sql query
HTH
--edit:
forgot to told that You will need to set your ORACLE_HOME and ORACLE_SID env variables
Edited by: Me_101 on 04-abr-2012 8:41 -
Hi gurus,
I having a very documented problem but can't resolved by myself. I need a bit of help.
I have two databases in my laptop, both 11.2.0.1 running in windows 7 (i know that it was unsupported yet but this is not the problem).
Now i want duplicate ORIGINAL to COPY database with rman but i'm having:
RMAN-04006: error from auxiliary database: ORA-12505: TNS:listener does not currently know of SID given in connect
Both databases are running and working well, i can connect in different windows:
set ORACLE_SID=ORIGINAL
sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Jue Ago 2 11:02:47 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Conectado a:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select name from v$database;
NAME
ORIGINAL
in other window:
set ORACLE_SID=COPY
sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Jue Ago 2 11:02:47 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Conectado a:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select name from v$database;
NAME
COPYso i check the tnsnames:
# tnsnames.ora Network Configuration File: C:\Users\my_user\miBBDD\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
COPY=
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = copy)
ORIGINAL=
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORIGINAL)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
LISTENER_COPY =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
LISTENER_ORIGINAL =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))All shows normal so check listener services:
C:\Users\my_user>lsnrctl services;
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 02-AGO-2012 11:30
:28
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Conectßndose a (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
Resumen de Servicios...
El servicio "CLRExtProc" tiene 1 instancia(s).
La instancia "CLRExtProc", con estado UNKNOWN, tiene 1 manejador(es) para este
servicio...
Manejador(es):
"DEDICATED" establecido:0 rechazado:0
LOCAL SERVER
El servicio "DDBBXDB" tiene 1 instancia(s).
La instancia "original", con estado READY, tiene 1 manejador(es) para este servicio...
Manejador(es):
"D000" establecidos:0 rechazados:0 actuales:0 mßximo:1022 estado:ready
DISPATCHER <machine: MY_USER, pid: 4356>
(ADDRESS=(PROTOCOL=tcp)(HOST=MY_USER)(PORT=54428))
El servicio "original" tiene 1 instancia(s).
La instancia "original", con estado READY, tiene 1 manejador(es) para este servicio...
Manejador(es):
"DEDICATED" establecido:0 rechazado:0 estado:ready
LOCAL SERVER
El comando ha terminado correctamenteListener.ora
# listener.ora Network Configuration File: C:\Users\my_user\miBBDD\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\Users\my_user\miBBDD\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\Users\my_user\miBBDD\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ADR_BASE_LISTENER = C:\Users\my_user\miBBDDand sqlnet.ora
# sqlnet.ora Network Configuration File: C:\Users\my_user\miBBDD\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)I don't know why and how to resolve it, so any idea will be apreciated.
Thanks,I have two databases in my laptop, both 11.2.0.1 running in windows 7 (i know that it was unsupported yet but this is not the problem).+
how could not be problem , please describe to us this sentence ?
It is recommended to run the duplicate database from the Auxiliary database only.
Please run the RMAN duplicate from auxiliary database only.
OR
Make a static entry of the service used in the service name to connect to the auxiliary database.
Back to
RMAN-04006 And ORA-12514 During RMAN Duplicate [ID 883490.1] -
Hi,
RAC Database - 11.2 , Standby - 11.2
There was not much space in the archive destination of the primary database, so moved few archive logs to a diff destination within the same server. Few archivelogs were backed by RMAN after the sequence 37635, since
archivelogs from seq from 37631 to 37634 were in a diff destination. Now the standby is comlplaining abaout the seq 37631.
Standby database is unable to fetch an archivelog from the primary database " Fetching gap sequence in thread 1, gap sequence 37631-37730 ".
So i moved the archivelogs from seq 37631 to 37634 were moved to their original destination. The archivelog - 37631 is present in the archive destination of the primary database.
However, still the standby database is unable to find these archivelogs.
Crosschecked the archivelogs, but its unable to run crosscheck on these 4 archivelogs.
First thought to backup these archivelogs and then to restore it back. But RMAN is unable to find these archivelogs :
RMAN> backup archivelog from logseq 37631 until logseq 37634 thread 1;
Starting backup at 06-04-2012 07:47:00
using channel ORA_DISK_1
using channel ORA_DISK_2
specification does not match any archived log in the repository
backup cancelled because there are no files to backup
Finished backup at 06-04-2012 07:47:01
ThanksThere was not much space in the archive destination of the primary database, so moved few archive logs to a diff destination within the same server. Few archivelogs were backed by RMAN after the sequence 37635, since
archivelogs from seq from 37631 to 37634 were in a diff destination. Now the standby is comlplaining abaout the seq 37631.
Standby database is unable to fetch an archivelog from the primary database " Fetching gap sequence in thread 1, gap sequence 37631-37730 ".
So i moved the archivelogs from seq 37631 to 37634 were moved to their original destination. The archivelog - 37631 is present in the archive destination of the primary database.
However, still the standby database is unable to find these archivelogs.
Crosschecked the archivelogs, but its unable to run crosscheck on these 4 archivelogs.Does this RMAN will backup & delete or just backup?
If just backup then fine, Once after you moving archives to the original location.
Still standby is an impression as there is GAP, so better if you bounce MRP.
First thought to backup these archivelogs and then to restore it back. But RMAN is unable to find these archivelogs :First check where physically exist, also check from v$archived_log;
once you move to the original location, this step no need still better you catalog them again.
RMAN> crosscheck archivelog all;
RMAN> delete expired archivelog all;
- now make sure all the archives exist in archive destination, then
RMAN> catalog start with 'archive location';
This command will search for all the archives, if any new archives found then it will register it.
You have less archive gaps, so you are fine with this procedure, or restore archives from backup and SCP to standby and then perform recovery.
Also you can check procedure of incremental roll forward http://www.oracle-ckpt.com/rman-incremental-backups-to-roll-forward-a-physical-standby-database-2/
HTH. -
Got an error RMAN-06183: datafile or datafile copy <filename> (file number 227) larger than MAXSETSIZE
Quick bit of reading and the fix is to set maxsetsize to our largest datafile. no problem.
question is why? I thought RMAN backed up blocks, what has the datafile size got to do with it?Hemant K Chitale wrote:
A datafile can span backuppieces in a backupset. A datafile CANNOT span backupsets. So a backupset has to be able to contain a datafile --- the largest datafile in the database.
For multiplee backuppieces see MAXPIECESIZE.
Hemant K Chitale
thanks Hemant thats the answer then, a file cannot span backupset.
Refining my google search further found the relevant doc entry, its related to the not BACKED UP SINCE feature
Making Backups with RMAN: Advanced Topics
and
RMAN Backups Concepts
where we have the entry
When determining whether a file has been backed up, RMAN compares the SINCE TIME date with the completion time of the most recent backup of the file. The completion time for a backup piece is the completion time of the entire backup set, not an individual backup piece; in other words, all files in the same backup set have the same completion time."
So Im going to guess Oracle said lets keep all files in the one backupset or else we'll have trouble with that feature. -
Fwd: Standby Oracle 11g database on standalone computer
I have only rman backup that are taken from the target data base, i wont to create new database using that rman backup without disturbing to the target database.
is it possible to create new standby database using backed up rman copy.
now i have installed oracle11g on standalone computer and i wont to create standby database on that computer.
Sangeeththis may help you
http://repettas.wordpress.com/2008/10/24/duplicating-a-database-using-oracle-11g-rman/
Regards,
Pavan
http://pavandba.wordpress.com
Maybe you are looking for
-
My iPod Touch is connected to my house internet and every few hours, it doesn't work so I have to shut it off and turn it back on which makes my iPod slower, how do I make it connect the whole time?
-
How to extract data from xml and insert into Oracle table
Hi, I have a large xml file. which will have hundreds of the following transaction tags having column names and there values. There is a table one of the schema with coulums "actualCostRate","billRate"....etc. I need to extract the values of these co
-
ISE 1.1.2 patch 8 NTP Service failing
Hi all, after a recent upgrade of my ISE deployment from 1.1.1 patch 3 to 1.1.2 patch 8, the NTP service on the ISE now crashes at regular intervals. Can I have some help debugging this issue? I would like to check the logs but there are so many that
-
I've created a project using both GL1 and XL1 video footage in FCP 3. Everything has gone fine with the digitizing and editing, but when I try and Print to Video, it goes to a blue screen during the XL1 footage. What gives?
-
FM for Price Family price update at child level
Hi All, Currently we are using RV_Condition_Copy for updating the price of the family. The problem with this is its not updating the child articles as per the Relationship maintained in the Price Family. It is explicitly updating the price which is m