Rman Bkup
Hi..
I have a 2 node RAC DB , so how to take RMAN backup. Is it same as for 1 node Db.Writing backup archivelog all.. will it backup the archivelog from both the instance.
Regards,
Anand
Anand,
RMAN works in the same fashion whether you are in single instance or in RAC.In RAC, the nodes contain memory footprint differently , physical db is one only for which RMAN has to work.So there wont be any much difference with the RMAN and its backup methods. Please read the following for the RMAN backup over non clustered and clustered systems,
http://download-east.oracle.com/docs/cd/B19306_01/rac.102/b14197/rmanops.htm#i474611
HTH
Aman....
Similar Messages
-
Rman bkup db; takes full bckup THEN why rman bkup db + archive?
Rman>backup database;
takes full backup also the changes made to archivelog
then Why need Rman>backup database plus archive log; ? even though changes are already stored VIA >backup database;983292 wrote:
so you mean that ,taken online backups when DB open , that not included when i command Rman> backup database; after shutdown??after normal shutdown, database is consistent, you can mount it and backup and this backup will be consistent
but if you backup opened database, backup will be not consistent and requires all archived logs that were made during backup and last online log that should be manually archived -
RMAN INC bkup is very large on Primary and small on Standby
Hi All,
I need to get some understanding on RMAN, by asking some basic questions:
I have RAC running rman FULL and INC backups on the Primary and Standby nodes
Question 1: THere is no cronjob for any user to check the script being used for the backups - where else can I check , is there a scheduled job in Oracle so I can see what is being executed ?
Question 2. The FULL and INC backups are same size on Primary and come to approx same size , is there any reason for this, is INC not supposed to be much smaller ?
[root@CODEN-OTA-ODC APM]# du -h FULL_BACKUP_05-24-2011-040001/
19G FULL_BACKUP_05-24-2011-040001/
[root@CODEN-OTA-ODC APM]# du -h INC_BACKUP_05-25-2011-040001/
21G INC_BACKUP_05-25-2011-040001/
Question 3. The customer does have a script to delete INC and FULL backups every few days as there is no space - would this affect the behaviour of what is taken during INC backup ?
Question 4. The backup sets on the standby node which is in sync with the primary is much much smaller - should it not be aprox same size as Primary ?
[root@ILORD-OTA-ODC APM]# du -h INC_BACKUP_05-25-2011-040001/
8.2G INC_BACKUP_05-25-2011-040001/
[root@ILORD-OTA-ODC APM]# du -h FULL_BACKUP_05-26-2011-040001/
5.2G FULL_BACKUP_05-26-2011-040001/
Here is a snapshot of RMAN.log from Primary for INC backup
Recovery Manager: Release 11.2.0.1.0 - Production on Wed May 25 04:00:01 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: APM (DBID=3637752344)
using target database control file instead of recovery catalog
RMAN> CONFIGURE BACKUP OPTIMIZATION ON;
2> CONFIGURE DEFAULT DEVICE TYPE TO DISK;
3> CONFIGURE CONTROLFILE AUTOBACKUP ON;
4> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup/APM/daily/ctl_APM_bak_%F';
5> CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;
6> CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
7> CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
8> CONFIGURE MAXSETSIZE TO UNLIMITED;
9> CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;
10> CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/backup/APM/daily/SNCAPM.ORA';
11>
12> #
13> # Run Crosschecks
14> #
15>
16> CROSSCHECK BACKUP;
17> CROSSCHECK COPY;
18> CROSSCHECK BACKUP OF DATABASE;
19> CROSSCHECK BACKUP OF CONTROLFILE;
20> crosscheck copy of archivelog all;
21> CROSSCHECK ARCHIVELOG ALL;
22>
23>
24>
25> # Backup Database and Archive log files
26>
27> BACKUP AS COMPRESSED BACKUPSET INCREMENTAL LEVEL = 1 DEVICE TYPE DISK FORMAT '/backup/APM/daily/%U' DATABASE PLUS ARCHIVELOG;
28>
Here is a snapshot of RMAN.log on standby:
Recovery Manager: Release 11.2.0.1.0 - Production on Wed May 25 04:00:01 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: APM (DBID=3637752344)
using target database control file instead of recovery catalog
RMAN> CONFIGURE BACKUP OPTIMIZATION ON;
2> CONFIGURE DEFAULT DEVICE TYPE TO DISK;
3> CONFIGURE CONTROLFILE AUTOBACKUP ON;
4> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup/APM/daily/ctl_APM_bak_%F';
5> CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;
6> CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
7> CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
8> CONFIGURE MAXSETSIZE TO UNLIMITED;
9> CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;
10> CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/backup/APM/daily/SNCAPM.ORA';
11>
12> #
13> # Run Crosschecks
14> #
15>
16> CROSSCHECK BACKUP;
17> CROSSCHECK COPY;
18> CROSSCHECK BACKUP OF DATABASE;
19> CROSSCHECK BACKUP OF CONTROLFILE;
20> crosscheck copy of archivelog all;
21> CROSSCHECK ARCHIVELOG ALL;
22>
23>
24>
25> # Backup Database and Archive log files
26>
27> BACKUP AS COMPRESSED BACKUPSET INCREMENTAL LEVEL = 1 DEVICE TYPE DISK FORMAT '/backup/APM/daily/%U' DATABASE PLUS ARCHIVELOG;
Thanks in advance !Hi Jorg
Here is the ls -la output from the Primary Backups:
ls -la FULL_BACKUP_05-24-2011-040001/
drwxr-xr-x 2 oracle oinstall 4096 May 25 02:18 .
drwxr-xr-x 5 oracle oinstall 4096 May 26 05:12 ..
-rw-r----- 1 oracle asmadmin 375100416 May 24 04:11 00md3q9a_1_1
-rw-r----- 1 oracle asmadmin 339966976 May 24 04:12 01md3qb2_1_1
-rw-r----- 1 oracle asmadmin 368397312 May 24 04:13 02md3qcq_1_1
-rw-r----- 1 oracle asmadmin 363201024 May 24 04:13 03md3qei_1_1
-rw-r----- 1 oracle asmadmin 353362944 May 24 04:14 04md3qga_1_1
-rw-r----- 1 oracle asmadmin 370720768 May 24 04:15 05md3qi2_1_1
-rw-r----- 1 oracle asmadmin 375879168 May 24 04:16 06md3qjq_1_1
-rw-r----- 1 oracle asmadmin 380150784 May 24 04:17 07md3qli_1_1
-rw-r----- 1 oracle asmadmin 369453056 May 24 04:18 08md3qna_1_1
-rw-r----- 1 oracle asmadmin 362929664 May 24 04:19 09md3qp2_1_1
-rw-r----- 1 oracle asmadmin 367475712 May 24 04:20 0amd3qqq_1_1
-rw-r----- 1 oracle asmadmin 372242944 May 24 04:21 0bmd3qsi_1_1
-rw-r----- 1 oracle asmadmin 373087744 May 24 04:22 0cmd3qua_1_1
-rw-r----- 1 oracle asmadmin 370864128 May 24 04:23 0dmd3r02_1_1
-rw-r----- 1 oracle asmadmin 374902272 May 24 04:24 0emd3r1q_1_1
-rw-r----- 1 oracle asmadmin 352796160 May 24 04:25 0fmd3r3i_1_1
-rw-r----- 1 oracle asmadmin 369763328 May 24 04:26 0gmd3r5a_1_1
-rw-r----- 1 oracle asmadmin 373312000 May 24 04:27 0hmd3r72_1_1
-rw-r----- 1 oracle asmadmin 368820736 May 24 04:27 0imd3r8q_1_1
-rw-r----- 1 oracle asmadmin 352500224 May 24 04:28 0jmd3rai_1_1
-rw-r----- 1 oracle asmadmin 369486848 May 24 04:29 0kmd3rca_1_1
-rw-r----- 1 oracle asmadmin 365342720 May 24 04:30 0lmd3re1_1_1
-rw-r----- 1 oracle asmadmin 355034624 May 24 04:31 0mmd3rfp_1_1
-rw-r----- 1 oracle asmadmin 359270912 May 24 04:32 0nmd3rhh_1_1
-rw-r----- 1 oracle asmadmin 364269056 May 24 04:33 0omd3rj9_1_1
-rw-r----- 1 oracle asmadmin 377111552 May 24 04:34 0pmd3rl1_1_1
-rw-r----- 1 oracle asmadmin 372756480 May 24 04:35 0qmd3rmp_1_1
-rw-r----- 1 oracle asmadmin 368577536 May 24 04:36 0rmd3roh_1_1
-rw-r----- 1 oracle asmadmin 353378816 May 24 04:37 0smd3rq9_1_1
-rw-r----- 1 oracle asmadmin 368087040 May 24 04:38 0tmd3rs1_1_1
-rw-r----- 1 oracle asmadmin 129885696 May 24 04:38 0umd3rtp_1_1
-rw-r----- 1 oracle asmadmin 3008430080 May 24 04:45 0vmd3ruk_1_1
-rw-r----- 1 oracle asmadmin 2874195968 May 24 04:52 10md3sbu_1_1
-rw-r----- 1 oracle asmadmin 3488768 May 24 04:52 11md3som_1_1
-rw-r----- 1 oracle asmadmin 34832384 May 24 04:52 ctl_APM_bak_c-3637752344-20110524-00
-rw-r--r-- 1 oracle oinstall 2067066 May 24 05:08 RMAN.log
-rw-r----- 1 oracle asmadmin 34750464 May 24 05:08 SNCAPM.ORA
-rw-r----- 1 oracle asmadmin 340066304 May 24 04:02 vnmd3ppi_1_1
-rw-r----- 1 oracle asmadmin 354584064 May 24 04:03 vomd3pra_1_1
-rw-r----- 1 oracle asmadmin 362307584 May 24 04:04 vpmd3pt2_1_1
-rw-r----- 1 oracle asmadmin 350283776 May 24 04:05 vqmd3puq_1_1
-rw-r----- 1 oracle asmadmin 372881920 May 24 04:06 vrmd3q0i_1_1
-rw-r----- 1 oracle asmadmin 377876480 May 24 04:07 vsmd3q2a_1_1
-rw-r----- 1 oracle asmadmin 366512640 May 24 04:08 vtmd3q42_1_1
-rw-r----- 1 oracle asmadmin 364825088 May 24 04:09 vumd3q5q_1_1
-rw-r----- 1 oracle asmadmin 363695616 May 24 04:10 vvmd3q7i_1_1
ls -la INC_BACKUP_05-25-2011-040001/
total 21063656
drwxr-xr-x 2 oracle oinstall 4096 May 25 04:55 .
drwxr-xr-x 5 oracle oinstall 4096 May 26 05:12 ..
-rw-r----- 1 oracle asmadmin 340066304 May 25 04:02 13md6e5k_1_1
-rw-r----- 1 oracle asmadmin 354584064 May 25 04:03 14md6e7c_1_1
-rw-r----- 1 oracle asmadmin 362307584 May 25 04:04 15md6e94_1_1
-rw-r----- 1 oracle asmadmin 350283776 May 25 04:05 16md6eas_1_1
-rw-r----- 1 oracle asmadmin 365918208 May 25 04:06 17md6eck_1_1
-rw-r----- 1 oracle asmadmin 366973952 May 25 04:07 18md6eec_1_1
-rw-r----- 1 oracle asmadmin 368461824 May 25 04:08 19md6eg4_1_1
-rw-r----- 1 oracle asmadmin 357740032 May 25 04:09 1amd6ehs_1_1
-rw-r----- 1 oracle asmadmin 363838464 May 25 04:10 1bmd6ejk_1_1
-rw-r----- 1 oracle asmadmin 375784960 May 25 04:11 1cmd6elc_1_1
-rw-r----- 1 oracle asmadmin 339231744 May 25 04:12 1dmd6en4_1_1
-rw-r----- 1 oracle asmadmin 362354688 May 25 04:13 1emd6eos_1_1
-rw-r----- 1 oracle asmadmin 365081088 May 25 04:13 1fmd6eqk_1_1
-rw-r----- 1 oracle asmadmin 351527424 May 25 04:14 1gmd6esc_1_1
-rw-r----- 1 oracle asmadmin 364279296 May 25 04:15 1hmd6eu4_1_1
-rw-r----- 1 oracle asmadmin 366113280 May 25 04:16 1imd6evs_1_1
-rw-r----- 1 oracle asmadmin 368507904 May 25 04:17 1jmd6f1k_1_1
-rw-r----- 1 oracle asmadmin 364067840 May 25 04:18 1kmd6f3c_1_1
-rw-r----- 1 oracle asmadmin 361388032 May 25 04:19 1lmd6f54_1_1
-rw-r----- 1 oracle asmadmin 372647936 May 25 04:20 1mmd6f6s_1_1
-rw-r----- 1 oracle asmadmin 354013696 May 25 04:21 1nmd6f8k_1_1
-rw-r----- 1 oracle asmadmin 362156032 May 25 04:22 1omd6fac_1_1
-rw-r----- 1 oracle asmadmin 366610432 May 25 04:23 1pmd6fc4_1_1
-rw-r----- 1 oracle asmadmin 365109760 May 25 04:24 1qmd6fds_1_1
-rw-r----- 1 oracle asmadmin 366146048 May 25 04:25 1rmd6ffk_1_1
-rw-r----- 1 oracle asmadmin 364806656 May 25 04:26 1smd6fhb_1_1
-rw-r----- 1 oracle asmadmin 374528512 May 25 04:27 1tmd6fj3_1_1
-rw-r----- 1 oracle asmadmin 360662016 May 25 04:27 1umd6fkr_1_1
-rw-r----- 1 oracle asmadmin 361217536 May 25 04:28 1vmd6fmj_1_1
-rw-r----- 1 oracle asmadmin 365206016 May 25 04:29 20md6fob_1_1
-rw-r----- 1 oracle asmadmin 372246528 May 25 04:30 21md6fq3_1_1
-rw-r----- 1 oracle asmadmin 346032640 May 25 04:31 22md6frr_1_1
-rw-r----- 1 oracle asmadmin 355503616 May 25 04:32 23md6ftj_1_1
-rw-r----- 1 oracle asmadmin 363812352 May 25 04:33 24md6fvb_1_1
-rw-r----- 1 oracle asmadmin 358790656 May 25 04:34 25md6g13_1_1
-rw-r----- 1 oracle asmadmin 366017024 May 25 04:35 26md6g2r_1_1
-rw-r----- 1 oracle asmadmin 375584256 May 25 04:36 27md6g4j_1_1
-rw-r----- 1 oracle asmadmin 358258176 May 25 04:37 28md6g6b_1_1
-rw-r----- 1 oracle asmadmin 351728128 May 25 04:38 29md6g83_1_1
-rw-r----- 1 oracle asmadmin 366784000 May 25 04:39 2amd6g9r_1_1
-rw-r----- 1 oracle asmadmin 369561600 May 25 04:40 2bmd6gbj_1_1
-rw-r----- 1 oracle asmadmin 7882240 May 25 04:40 2cmd6gdb_1_1
-rw-r----- 1 oracle asmadmin 3373162496 May 25 04:48 2dmd6gdg_1_1
-rw-r----- 1 oracle asmadmin 3245465600 May 25 04:55 2emd6gsc_1_1
-rw-r----- 1 oracle asmadmin 3531776 May 25 04:55 2fmd6ham_1_1
-rw-r----- 1 oracle asmadmin 34832384 May 25 04:55 ctl_APM_bak_c-3637752344-20110525-00
-rw-r--r-- 1 oracle oinstall 2199366 May 25 05:13 RMAN.log
-rw-r----- 1 oracle asmadmin 34750464 May 25 04:55 SNCAPM.ORA
[oracle@CODEN-OTA-ODC APM]$
Thanks -
Is there any way that we can run script file Directly through RMAN.
Hi Team,
I have backup script as ,
allocate channel t1 type disk;
backup
format 'C:\bkup'
(database);
release channel t1;
I had used this script for backup operation on RMAN & its executing properly...as
RMAN> run
2> {
3> allocate channel t1 type disk;
4> backup
5> format 'C:\bkup'
6> (database);
7> release channel t1;
8> }
Now I want to put this srcipt file in one file i.e (backup.sh) ... Can I give this backup.sh file (stored in disk location)directly to the Run command. Is there any way ..
Plz comment...You can use cmdfile parameter to specify the script which contains the actual code and also you can specify log parameter for the log file. Here is an example:
rman target / cmdfile=backup.ora log=backup.log
And here are all the command line parameters which you can use with RMAN:
Argument Value Description
target quoted-string connect-string for target database
catalog quoted-string connect-string for recovery catalog
nocatalog none if specified, then no recovery catalog
cmdfile quoted-string name of input command file
log quoted-string name of output message log file
trace quoted-string name of output debugging message log file
append none if specified, log is opened in append mode
debug optional-args activate debugging
msgno none show RMAN-nnnn prefix for all messages
send quoted-string send a command to the media manager
pipe string building block for pipe names
timeout integer number of seconds to wait for pipe input
checksyntax none check the command file for syntax errors
Daljit Singh -
Data Guard - Physical Standby Setup by RMAN
I am trying to set up a physical standby using RMAN. After I brought up the standby db, I failed to turn on redo apply. I found out that the standby redo log files were not copied over to the standby.
The back up script I use is as follows.
run {
allocate channel ch2 type disk;
backup current controlfile for standby format '/backups/sitv/cf_%d_t%t_s%s_p%p';
backup format '/backups/sitv/%U.bkup' database;
sql 'alter system archive log current';
backup format '/backups/sitv/al_t%t_s%s_p%p.bkup' archivelog all;
release channel ch2;
What command should I use to be able to make a backup of the standby log files as well?
Thanks.Hi Sybrand,
Thank for the reply. Let me give a little bit more detailed information on what I did.
I followed the documentation as follows to set up the physical standby
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm#g88234
I created the standby log files per section 3.1.3 on the primary db before the standby is created.
I used the following command to restore the standby on a different server.
run {
allocate auxiliary channel ch1 device type disk;
duplicate target database for standby dorecover nofilenamecheck;}
My question is the standby log files did not show up on the standby server. However, the log files showed in the v$logfile table. After I tured on the redo apply, the changes I made in primary db did not happen in the standby db.
Any idea on how to fix it?
Thanks. -
Hi, All -
I am receiving the following error messages while running a level 0 backup. Please assist!
====================================================================================================
RMAN-03009: failure of backup command on d1 channel at 11/17/2008 01:08:34
ORA-19502: write error on file "/NEW_backups/backups/admin/CCPROD/bkups/CCPROD.5313.1.670986008.DB", blockno 82945 (blocksize=8192)
ORA-27072: File I/O error
Linux-x86_64 Error: 5: Input/output error
RMAN-03009: failure of backup command on d2 channel at 11/17/2008 01:08:34
ORA-19502: write error on file "/NEW_backups/backups/admin/CCPROD/bkups/CCPROD.5314.1.670986008.DB", blockno 84609 (blocksize=8192)
ORA-27072: File I/O error
Linux-x86_64 Error: 5: Input/output error
Additional information: 4
Additional information: 84609
Additional information: -1
channel d2 disabled, job failed on it will be run on another channel
released channel: d1
released channel: d2
released channel: d3
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on d3 channel at 11/17/2008 01:08:34
ORA-19502: write error on file "/NEW_backups/backups/admin/CCPROD/bkups/CCPROD.5315.1.670986008.DB", blockno 98433 (blocksize=8192)
ORA-27072: File I/O error
Linux-x86_64 Error: 5: Input/output error
Additional information: 4
Additional information: 98433
Additional information: -1Since it is a <b>write</b> error, I'd look at permissions on the target directory, and available disk space on the target file system.
-
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,
We have are 800GB database and we take daily backup through RMAN.
Backup policy is LEVEL 0 on week end and LEVEL1 AND LEVEL2 on other days.
When we take the backup our system utilization become high and which is effecting our 24X7 service.
How can I reduce the load on the database during backup.
Thanks in advance.if you have a physical standby in place , or if you can create one, use that to backup. Using standby will completely off load your backup time & performance impact
other wise use RATE in channel
CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE <piecesize> K FORMAT '/backups/DBSID/DBSID.bkup.%U' RATE 2000000; -
win2003 oracle10gR2
What are the privs required to use rman?
Currently taking cold bkups [os bkups]. to start/implement taking fresh rman backup do i need to delete the archivelogs.
rman>backup database plus archivelogs delete input;
ThanksBackup/recovery is a typical DBA task and should only be done by such privileged users. DBA's can define automated backups, there's no need to give access to non-privileged users.
Werner -
I'm trying to put my nightly backup in the scheduler.
-- CALL_BKUP (Program)
BEGIN
SYS.DBMS_SCHEDULER.CREATE_PROGRAM
program_name => 'SYS.CALL_BKUP'
,program_type => 'EXECUTABLE'
,program_action => '/opt/bkup/scripts/rman.rcv'
,number_of_arguments => 0
,enabled => FALSE
,comments => NULL
SYS.DBMS_SCHEDULER.ENABLE
(name => 'SYS.CALL_BKUP');
END;
-- BKUB_SCHED (Schedule)
BEGIN
SYS.DBMS_SCHEDULER.CREATE_SCHEDULE
schedule_name => 'SYS.BKUB_SCHED'
,start_date => TO_TIMESTAMP_TZ('2009/11/18 00:00:00.000000 -05:00','yyyy/mm/dd hh24:mi:ss.ff tzr')
,repeat_interval => 'FREQ=DAILY;INTERVAL=1'
,end_date => NULL
,comments => NULL
END;
-- NIGHTLY_BKUP (Scheduler Job)
BEGIN
SYS.DBMS_SCHEDULER.CREATE_JOB
job_name => 'SYS.NIGHTLY_BKUP'
,schedule_name => 'SYS.BKUB_SCHED'
,program_name => 'SYS.CALL_BKUP'
,comments => NULL
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
( name => 'SYS.NIGHTLY_BKUP'
,attribute => 'RESTARTABLE'
,value => FALSE);
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
( name => 'SYS.NIGHTLY_BKUP'
,attribute => 'LOGGING_LEVEL'
,value => SYS.DBMS_SCHEDULER.LOGGING_RUNS);
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE_NULL
( name => 'SYS.NIGHTLY_BKUP'
,attribute => 'MAX_FAILURES');
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE_NULL
( name => 'SYS.NIGHTLY_BKUP'
,attribute => 'MAX_RUNS');
BEGIN
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
( name => 'SYS.NIGHTLY_BKUP'
,attribute => 'STOP_ON_WINDOW_CLOSE'
,value => FALSE);
EXCEPTION
-- could fail if program is of type EXECUTABLE...
WHEN OTHERS THEN
NULL;
END;
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
( name => 'SYS.NIGHTLY_BKUP'
,attribute => 'JOB_PRIORITY'
,value => 3);
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE_NULL
( name => 'SYS.NIGHTLY_BKUP'
,attribute => 'SCHEDULE_LIMIT');
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
( name => 'SYS.NIGHTLY_BKUP'
,attribute => 'AUTO_DROP'
,value => FALSE);
SYS.DBMS_SCHEDULER.ENABLE
(name => 'SYS.NIGHTLY_BKUP');
END;
[]$ cat rman.rcv
#!/bin/bash
export ORACLE_SID=dmsdev
rman target / cmdfile=/opt/bkup/scripts/DMSDevBKUP.rcv;
exit;
EOF
[]$ cat DMSDevBKUP.rcv
run {
allocate channel oem_backup_disk1 type disk;
backup incremental level 1 cumulative as COMPRESSED BACKUPSET database;
backup as COMPRESSED BACKUPSET archivelog all not backed up delete all input;
release channel oem_backup_disk1;
allocate channel for maintenance type disk;
delete noprompt obsolete device type disk;
release channel;
I'm getting
Run Detail
Request Start Date Nov 25, 2009 8:39:12 AM -05:00
Actual Start Date Nov 25, 2009 8:39:12 AM -05:00
Error # 27369
Run Duration (minutes) 0.03
CPU Used (seconds) 0.0
Instance ID 1
Session ID 113,7243
Process ID
Details ORA-27369: job of type EXECUTABLE failed with exit code: Key has expired STANDARD_ERROR="/opt/bkup/scripts/rman.rcv: line 3: rman: command not found"
It will run fine if I just do ./rman.rcv
Edited by: user10302330 on Nov 25, 2009 8:49 AM
Edited by: user10302330 on Nov 25, 2009 8:49 AMAs far as I know it is always better to schedule such jobs from OS utility like cronjob or task schedular. Any you probably have wron line in your first file.
cat rman.rcv
#!/bin/bash
export ORACLE_SID=dmsdev
rman target / cmdfile=/opt/bkup/scripts/DMSDevBKUP.rcv;
exit;
EOF
Try afte removing EOF.
It should help.
Regards.
Virendra -
I have what I thought was a simple backup strategy but am failing to get it to work properly. Running 10.2.0.4, my desire is to run a nightly full image copy to the flash recovery disk including archive logs, control file, etc. Next morning, I wish to copy the previous backup to an shared storage disk mounted by NFS. My RMAN defaults are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO COPY;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/10.2.0/db_1/dbs/snapcf_<snip>.f; # default
My nightly full backup job is simply:
BACKUP DATABASE PLUS ARCHIVELOG;
My script for copying the prior backup is failing with RMAN-20230. The script is:
run
ALLOCATE CHANNEL C1 DEVICE TYPE DISK FORMAT 'mnt/bkup/%U';
BACKUP DATAFILECOPY LIKE 'sysdate - 1' TAG 'offsite';
There seems to be a problem with 'DATAFILECOPY'. I have run this exact script using backup sets before and it works correctly. When I moved to data file copies, that's when the problems started. Does anyone have ideas?RMAN> backup as copy database format '/backup/rman/%f-%T';
Starting backup at 31-MAR-09
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
input datafile fno=00004 name=/oradata/db01/users01.dbf
output filename=/backup/rman/4-20090331 tag=TAG20090331T212809 recid=14 stamp=682982904
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile copy
input datafile fno=00001 name=/oradata/db01/system01.dbf
output filename=/backup/rman/1-20090331 tag=TAG20090331T212809 recid=15 stamp=682982933
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
channel ORA_DISK_1: starting datafile copy
input datafile fno=00003 name=/oradata/db01/sysaux01.dbf
output filename=/backup/rman/3-20090331 tag=TAG20090331T212809 recid=16 stamp=682982957
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:25
channel ORA_DISK_1: starting datafile copy
input datafile fno=00002 name=/oradata/db01/undotbs01.dbf
output filename=/backup/rman/2-20090331 tag=TAG20090331T212809 recid=17 stamp=682982968
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:07
Finished backup at 31-MAR-09
Starting Control File and SPFILE Autobackup at 31-MAR-09
piece handle=/backup/rman/c-1306541374-20090331-03 comment=NONE
Finished Control File and SPFILE Autobackup at 31-MAR-09
RMAN> list copy of database;
List of Datafile Copies
Key File S Completion Time Ckp SCN Ckp Time Name
15 1 A 31-MAR-09 658265 31-MAR-09 /backup/rman/1-20090331
17 2 A 31-MAR-09 658287 31-MAR-09 /backup/rman/2-20090331
16 3 A 31-MAR-09 658277 31-MAR-09 /backup/rman/3-20090331
14 4 A 31-MAR-09 658259 31-MAR-09 /backup/rman/4-20090331
13 4 A 31-MAR-09 658227 31-MAR-09 /backup/rman/1306541374-20090331
RMAN> backup datafilecopy like 'sysdate';
Starting backup at 31-MAR-09
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 03/31/2009 21:35:02
RMAN-20230: datafile copy not found in the recovery catalog
RMAN> backup datafilecopy like '20090331';
Starting backup at 31-MAR-09
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 03/31/2009 21:35:17
RMAN-20230: datafile copy not found in the recovery catalog
RMAN> backup datafilecopy like '%20090331%';
Starting backup at 31-MAR-09
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: including datafile copy of datafile 00004 in backupset
input filename=/backup/rman/4-20090331
channel ORA_DISK_1: including datafile copy of datafile 00001 in backupset
input filename=/backup/rman/1-20090331
channel ORA_DISK_1: including datafile copy of datafile 00003 in backupset
input filename=/backup/rman/3-20090331
channel ORA_DISK_1: including datafile copy of datafile 00002 in backupset
input filename=/backup/rman/2-20090331
channel ORA_DISK_1: starting piece 1 at 31-MAR-09
channel ORA_DISK_1: finished piece 1 at 31-MAR-09
piece handle=/backup/rman/2ekbavt1_1_1 tag=TAG20090331T213529 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:55
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: including datafile copy of datafile 00004 in backupset
input filename=/backup/rman/1306541374-20090331
channel ORA_DISK_1: starting piece 1 at 31-MAR-09
channel ORA_DISK_1: finished piece 1 at 31-MAR-09
piece handle=/backup/rman/2fkbavuo_1_1 tag=TAG20090331T213529 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
Finished backup at 31-MAR-09
Starting Control File and SPFILE Autobackup at 31-MAR-09
piece handle=/backup/rman/c-1306541374-20090331-04 comment=NONE
Finished Control File and SPFILE Autobackup at 31-MAR-09
RMAN> -
How can i do a RMAN backup of my database from the network ?
i'm using oracle 8i.1.7.3 with win server 2003
i want to know how can i do a RMAN backup of my database (sever machine A) from the network.
i'd like to save the backup in another machine (the same LAN, the same OS ).
to do that i've mapped a logical device in my comptur (z):
when i run rman command i got this error:
channel ORA_DISK_1: starting piece 1 at .......
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command ON ORA_DISK_1 channel at .......
00
ORA-19504: failed TO CREATE file "\\remote\save\"
ORA-27040: skgfrcre: create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 123) The filename, directory name, or volume label syntax is inco
rrect.Hi,
ORA-19504: failed TO CREATE file "\\remote\save\"make sure you have created this directory and change it's ownership (chown command)to oracle.
also make sure that oracle user has permission to write to this direcotry (chmod command)
hope this helps
cheers, walrus -
Issue in configuring Standby Database from Active database in 11g by RMAN
POSTED THE SAME IN DATA GUARD CATEGORY UNABLE TO DELETE
Hi All,
I am facing issue in creating the standby database from Active database using RMAN and getting the below issue after i executed the duplicate command.
Version of Database:11g(11.2.0.1.0)
Operating System:Linux 5
Error:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 12/21/2012 17:26:52
RMAN-03015: error occurred in stored script Memory Script
RMAN-04006: error from auxiliary database: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Primary Database Entries:
Tnsentry:
SONYPRD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.131)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sonyprd.localdomain)(UR=A)
SONYPRDSTBY =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.132)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sonyprdstby)(UR=A)
Listner Entry:
SID_LIST_SONYPRD =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtproc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = SONYPRD)
(GLOBAL_DBNAME = SONYPRD)
Auxiliary Details:
Tns Entry:
SONYPRD =
(DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = oracle11g.localdomain)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.131)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sonyprd.localdomain)
SONYPRDSTBY =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.132)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sonyprdstby)(UR=A)
Listener Entry in auxiliary:
SID_LIST_SONYPRDSTBY =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = SONYPRDSTBY)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = SONYPRDSTBY)
TNSPING from Primary DB:
[oracle@oracle11g ~]$ tnsping sonyprdstby
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 17:39:28
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.132)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = sonyprdstby)(UR=A)))
OK (0 msec)
TNSPING from Auxuliary server
[oracle@oracle11gstby ~]$ tnsping sonyprd
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 17:40:19
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.131)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = sonyprd.localdomain)))
OK (10 msec)
Script Used for duplicate:
run {
allocate channel prmy1 type disk;
allocate channel prmy2 type disk;
allocate channel prmy3 type disk;
allocate channel prmy4 type disk;
allocate auxiliary channel stby type disk;
duplicate target database for standby from active database
spfile
parameter_value_convert 'sonyprd','sonyprdstby'
set db_unique_name='sonyprdstby'
set db_file_name_convert='/sonyprd/','/sonyprdstby/'
set log_file_name_convert='/sonyprd/','/sonyprdstby/'
set control_files='/u01/app/oracle/oradata/control01.ctl'
set log_archive_max_processes='5'
set fal_client='sonyprdstby'
set fal_server='sonyprd'
set standby_file_management='AUTO'
set log_archive_config='dg_config=(sonyprd,sonyprdstby)'
set log_archive_dest_2='service=sonyprd ASYNC valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=sonyprd'
Tried the script from both Primary and auxiliary but no luck
[oracle@oracle11gstby admin]$ rman target sys/welcome@sonyprd auxiliary sys/*****@sonyprdstby
Recovery Manager: Release 11.2.0.1.0 - Production on Fri Dec 21 17:26:24 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: SONYPRD (DBID=3131093559)
connected to auxiliary database: SONYPRD (not mounted)
Listener Status from primary:
[oracle@oracle11g ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 18:08:56
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 20-DEC-2012 17:42:17
Uptime 1 days 0 hr. 26 min. 41 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Services Summary...
Service "sonyprd.localdomain" has 1 instance(s).
Instance "sonyprd", status READY, has 1 handler(s) for this service...
Service "sonyprdXDB.localdomain" has 1 instance(s).
Instance "sonyprd", status READY, has 1 handler(s) for this service...
The command completed successfully
Listener Status from Standby when database bring to Nomount state:
[oracle@oracle11gstby admin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 18:11:54
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 21-DEC-2012 16:13:47
Uptime 0 days 1 hr. 58 min. 6 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/oracle11gstby/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle11gstby)(PORT=1521)))
Services Summary...
Service "sonyprdstby" has 1 instance(s).
Instance "sonyprdstby", status BLOCKED, has 1 handler(s) for this service...
The command completed successfully
Please provide any work arounds to proceed further in creating the standby database.
Thanks,
Ram.
Edited by: 895188 on Dec 21, 2012 5:50 PM
Edited by: 895188 on Dec 21, 2012 6:09 PM
Edited by: 895188 on Dec 21, 2012 6:22 PMHello;
Script has to be run from auxiliary.
Great details, but what I don't see is how you connect in RMAN.
Example
Start RMAN
$ORACLE_HOME/bin/rman target=sys/@recover2 auxiliary=sys/@reclone
Recovery Manager: Release 11.2.0.2.0 - Production on Wed Feb 22 14:50:31 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: RECOVER2 (DBID=3806912436)
connected to auxiliary database: RECLONE (not mounted)Nothing in your tnsnames or listener jumps out as wrong. I copied them into my text editor and compared against my working ones.
Generally for active duplication I start the future standby on a pfile NOMOUNT.
Auxiliary Instance Initialization Parameters Needed :
DB_NAME
CONTROL_FILES
DB_BLOCK_SIZE
( add extra parameters like DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT instead of using the SET command - clean up standby spfile right after duplication )
Then start RMAN and finally run a single line duplication command.
$ORACLE_HOME/bin/rman target=sys/@primary auxiliary=sys/@standby
RMAN>duplicate target database for standby from active database NOFILENAMECHECK;Best Regards
mseberg -
Issue in creating the standby database from Active database using RMAN
Hi All,
I am facing issue in creating the standby database from Active database using RMAN and getting the below issue after i executed the duplicate command.
Version of Database:11g(11.2.0.1.0)
Operating System:Linux 5
Error:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 12/21/2012 17:26:52
RMAN-03015: error occurred in stored script Memory Script
RMAN-04006: error from auxiliary database: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Primary Database Entries:
Tnsentry:
SONYPRD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.131)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sonyprd.localdomain)(UR=A)
SONYPRDSTBY =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.132)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sonyprdstby)(UR=A)
Listner Entry:
SID_LIST_SONYPRD =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtproc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = SONYPRD)
(GLOBAL_DBNAME = SONYPRD)
Auxiliary Details:
Tns Entry:
SONYPRD =
(DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = oracle11g.localdomain)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.131)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sonyprd.localdomain)
SONYPRDSTBY =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.132)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sonyprdstby)(UR=A)
Listener Entry in auxiliary:
SID_LIST_SONYPRDSTBY =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = SONYPRDSTBY)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = SONYPRDSTBY)
TNSPING from Primary DB:
[oracle@oracle11g ~]$ tnsping sonyprdstby
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 17:39:28
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.132)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = sonyprdstby)(UR=A)))
OK (0 msec)
TNSPING from Auxuliary server
[oracle@oracle11gstby ~]$ tnsping sonyprd
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 17:40:19
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.131)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = sonyprd.localdomain)))
OK (10 msec)
Script Used for duplicate:
run {
allocate channel prmy1 type disk;
allocate channel prmy2 type disk;
allocate channel prmy3 type disk;
allocate channel prmy4 type disk;
allocate auxiliary channel stby type disk;
duplicate target database for standby from active database
spfile
parameter_value_convert 'sonyprd','sonyprdstby'
set db_unique_name='sonyprdstby'
set db_file_name_convert='/sonyprd/','/sonyprdstby/'
set log_file_name_convert='/sonyprd/','/sonyprdstby/'
set control_files='/u01/app/oracle/oradata/control01.ctl'
set log_archive_max_processes='5'
set fal_client='sonyprdstby'
set fal_server='sonyprd'
set standby_file_management='AUTO'
set log_archive_config='dg_config=(sonyprd,sonyprdstby)'
set log_archive_dest_2='service=sonyprd ASYNC valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=sonyprd'
Tried the script from both Primary and auxiliary but no luck
[oracle@oracle11gstby admin]$ rman target sys/welcome@sonyprd auxiliary sys/*****@sonyprdstby
Recovery Manager: Release 11.2.0.1.0 - Production on Fri Dec 21 17:26:24 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: SONYPRD (DBID=3131093559)
connected to auxiliary database: SONYPRD (not mounted)
Listener Status from primary:
[oracle@oracle11g ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 18:08:56
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 20-DEC-2012 17:42:17
Uptime 1 days 0 hr. 26 min. 41 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Services Summary...
Service "sonyprd.localdomain" has 1 instance(s).
Instance "sonyprd", status READY, has 1 handler(s) for this service...
Service "sonyprdXDB.localdomain" has 1 instance(s).
Instance "sonyprd", status READY, has 1 handler(s) for this service...
The command completed successfully
Listener Status from Standby when database bring to Nomount state:
[oracle@oracle11gstby admin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 18:11:54
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 21-DEC-2012 16:13:47
Uptime 0 days 1 hr. 58 min. 6 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/oracle11gstby/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle11gstby)(PORT=1521)))
Services Summary...
Service "sonyprdstby" has 1 instance(s).
Instance "sonyprdstby", status BLOCKED, has 1 handler(s) for this service...
The command completed successfully
Please provide any work arounds to proceed further in creating the standby database.
Thanks,
Ram.Pl do not post duplicates - Issue in configuring Standby Database from Active database in 11g by RMAN
-
Dear friends,
Is it passible that we take logical backup(i.e Export/Impot)
in Rman.
If yes then.
Why?
[email protected]Pixels.
For a 1" x 1" photo first crop the photo square. Then export with Kind = Current with JPEF Quality = Maximum and Size = Full size.
Then when you go to print the photo select a 1" x 1" print size. This will squeeze all available pixels in each dimension into the 1" dimension giving you the highest DPI resolution available from your image file.
More about DPI can be found here: All About Digital Photos - The Arithmetic of DPI and All About Digital Photos - The Myth of DPI
OT
Maybe you are looking for
-
Admin Tool can not create any new database or model [nqserror 46131]
Hi everyone! I can not create anything new in each layer on the admin tool. It marks unknown error. When I try to import metadata it send the message: [nqserror 46131] unresolved hostname, everything in online mode. I can modify everything offline, t
-
Authorization control for creating change request transaction
Hi, We are creating the Change Request(SDCR) through support desk message by using action Create Change Document. How can I control the creation of Change Request Document(SDCR). By which roles i need to control this. Regards PK Edited by: PK on May
-
How can i delete text in a command prompt above where the cursor currently is?
-
Triggering delivery output once requirement is fullfilled
Hello, I have created a custom output type for delivery and mentioned the custom routine in the procedure (picking complete). The issue I have now is once Picking is complete the output is not getting triggered automatically untill I go into VL02N an
-
Could anyone give me some idea about heap imlementation with linked structure?(As far as i know, i had no problem with the "HeapNode" class, but i have a lot of difficulties with implementing the heap class. Also, i got the following code segment fro