Creating logical standby from non primary backup
We want to test creation for logical standby in our test enviroment.
Here is the plan we are
1. Backup Prod.
2. Restore Test Primary (T1) and Restore test standby (T2) from Prod backup.
3. Setup standby between T1 and T2.
Plan is to save the time for backup and restore process. I have not doe it before. Will this process work or T2 restore needs to be done from backup of T1 as that would be primary.
Manuj
969257 wrote:
Thanks Tobi.
I will try this. The test system is very large about 16TB and the backup/restore process takes days. I just wanted to be sure if the same backup would work for creating the primary and standby at the same time.
So in this case, I will just have to restore from backup and move forward with archivelogs. Will I have to use the control-file from Prod or from T1.
Use the control file from T1(test primary)
I would like to use the backup COPY.
General steps to follow:
1. restore T1 as the (test)primary DB.
2. recover/apply the T1 using the redo log.
3. restore T2 but do not apply redo to prevent it from divergence from T1. i mean, let T2 scn be behind T1 scn.
4. following the general steps as it apply to you in preparing and creating primary and standby DB
http://docs.oracle.com/cd/B19306_01/server.102/b14239/create_ps.htm
5. make sure T2 can receive and apply redo data from T1
6.covert T2 to logical standby DB
http://docs.oracle.com/cd/B19306_01/server.102/b14239/create_ls.htm
HTH
Tobi
Similar Messages
-
Create logical standby from existing physical standby on 9i
I have physical standby database 9i running.
I want to try to convert the physical standby to logical standby. i follow the step by step in metalink document no. 748595.1
But I cannot do the 6th step:
6. Issue command to switch physical standby to logical standby after changing db_name in pfile to logical standby name. Shutdown the standby database if mounted and mount the database again. In this configuration, logical standby database name is LGSTDBY.
sql>alter database recover to logical standby LGSTDBY;
alter database recover to logical standby LGSTDBY;
Error at line 1:
ORA-00905: missing keyword
I have tried to create pfile from spfile on stanby and change the db_name to lgstdby.
I started nomount using pfile. I still cannot run the command.
I tried to mount the standby database but error occured:
ORA-01103: database name 'PRIMARY' in controlfile is not 'LGSTDBY'
The document in metalink is for 10.2.0.4
Is it possible to do it at 9i??
Thx for the help...FEDORA 6 & ORACLE 10.2.0
alert_stb.log:
alter database start logical standby apply
Wed Jun 17 22:46:58 2009
ALTER DATABASE START LOGICAL STANDBY APPLY (stb)
Wed Jun 17 22:46:58 2009
No optional part
Attempt to start background Logical Standby process
LSP0 started with pid=22, OS id=4156
Wed Jun 17 22:46:59 2009
Completed: alter database start logical standby apply
Wed Jun 17 22:47:01 2009
LOGSTDBY status: ORA-16111: log mining and apply setting up
Wed Jun 17 22:47:01 2009
LOGMINER: Parameters summary for session# = 1
LOGMINER: Number of processes = 3, Transaction Chunk Size = 201
LOGMINER: Memory Size = 30M, Checkpoint interval = 150M
LOGMINER: session# = 1, reader process P000 started with pid=23 OS id=4158
LOGMINER: session# = 1, builder process P001 started with pid=24 OS id=4160
LOGMINER: session# = 1, preparer process P002 started with pid=25 OS id=4162
Wed Jun 17 22:47:02 2009
LOGMINER: Begin mining logfile: /u01/app/oracle/flash_recovery_area/STB/archivelog_3/1_3_689731882.arc
Wed Jun 17 22:47:02 2009
LOGMINER: Turning ON Log Auto Delete
Wed Jun 17 22:47:02 2009
LOGMINER: End mining logfile: /u01/app/oracle/flash_recovery_area/STB/archivelog_3/1_3_689731882.arc
LOGSTDBY Analyzer process P003 started with pid=26 OS id=4164
LOGSTDBY Apply process P008 started with pid=31 OS id=4174
LOGSTDBY Apply process P007 started with pid=30 OS id=4172
LOGSTDBY Apply process P004 started with pid=27 OS id=4166
LOGSTDBY Apply process P006 started with pid=29 OS id=4170
LOGSTDBY Apply process P005 started with pid=28 OS id=4168 -
Creating Standby From RMAN Compressed backup taken on Primary ....
I am creating a Standby from RMAN Compressed backup taken on Primary.
On Primary, I have taken Compressed backup as follows:
RMAN> run
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
BACKUP AS COMPRESSED BACKUPSET DATABASE PLUS ARCHIVELOG format '/dboracle/orbit_pr_bkp/primary_%U';
backup current controlfile for standby format '/dboracle/orbit_pr_bkp/primary_cntl.bkp';
oracle@apl06635orbvu1:/dboracle/orbit_pr_bkp>ls -ltr
total 51652
-rw-r----- 1 oracle dba 11972608 Jan 7 13:45 primary_0tm1h32n_1_1
-rw-r----- 1 oracle dba 15762432 Jan 7 13:45 primary_0sm1h32n_1_1
-rw-r----- 1 oracle dba 16785920 Jan 7 13:45 primary_0rm1h32n_1_1
-rw-r----- 1 oracle dba 1088000 Jan 7 13:45 primary_0um1h32v_1_1
-rw-r----- 1 oracle dba 32768 Jan 7 13:45 primary_12m1h33r_1_1
-rw-r----- 1 oracle dba 7143424 Jan 7 13:47 primary_cntl.bkp
On Standby, I restored the control file as below:
RMAN> restore standby controlfile from '/dboracle/orbit_pr_bkp/primary_cntl.bkp';
Starting restore at 10-JAN-11
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:01
output filename=/dboracle/orbit_dr/oradata/ORBIT_DR/controlfile/o1_mf_6lo6nwfr_.ctl
output filename=/dboracle/orbit_dr/flash_recovery_area/ORBIT_DR/controlfile/o1_mf_6lo6nwky_.ctl
Finished restore at 10-JAN-11
But, When I am trying to restore the datafiles, RMAN is throwing error:
RMAN> run {
allocate channel d1 type disk format '/dboracle/orbit_pr_bkp/primary_%U';
allocate channel d2 type disk format '/dboracle/orbit_pr_bkp/primary_%U';
restore database;
2> 3> 4> 5>
released channel: ORA_DISK_1
allocated channel: d1
channel d1: sid=155 devtype=DISK
allocated channel: d2
channel d2: sid=151 devtype=DISK
Starting restore at 10-JAN-11
released channel: d1
released channel: d2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 01/10/2011 05:38:56
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
What would be the correct RMAN command?
Regards, AnirbanAfter your RESTORE the (standby) controlfile, you must MOUNT the database instance with "ALTER DATABASE MOUNT".
You can also then query the controlfile with a "LIST BACKUP" or "LIST BACKUP SUMMARY" in RMAN to see if the deseired backups have been cataloged in the controlfile.
Don't specify the format for the ALLOCATE CHANNEL when you RESTORE DATABASE. In fact, you don't need to ALLOCATE CHANNEL at all when the device type is the default value of DISK if your are on 10gR2 or above.
Hemant K Chitale -
How to create logical standby database without using Oracle Grid Control
Hi All,
I want to create Logical standby database on 11gr2 on RHEL 5 without using oracle Grid Control.
I already have a primary database as well as physical standby database.
What i want to create a logical standby database as well on the same machine where physical standby database is running.
So anyone of you help me out to do that
Thanks in advanceHi,
Creating a Logical Standby Database
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm#SBYDB00300
Regards,
Tom -
REcreate physical standby from New Primary
Dear Experts;
My Production db 11G R1 os was crashed so I had to trigger failover at my physical standby (New Primary).
I recreated Crashed Primary as Standby from New Primary mentioned above with Hot backup
Now question is that I have successfully Switched to my old primary (Crashed one) but the New Primary crashed (old Standby).
I have tried rman duplicate it restores my datafiles but THE Number of LOG MEMBERS IS NOT the same as in Primary.
When I issue " SELECT GROUP#, STATUS FROM V$LOG;" at primary
it shows
GROUP# STATUS
1 ACTIVE
2 CURRENT
3 ACTIVE
select member from v$logfile;
/u02/app/oracle/oradata/orcl/redo03.log
/u02/app/oracle/oradata/orcl/redo02.log
/u02/app/oracle/oradata/orcl/redo01.log
/u02/app/oracle/oradata/orcl/redo04.log
/u02/app/oracle/oradata/orcl/redo05.log
/u02/app/oracle/oradata/orcl/redo06.log
/u02/app/oracle/oradata/standby_redo01.log
/u02/app/oracle/oradata/standby_redo02.log
/u02/app/oracle/oradata/standby_redo03.log
/u02/app/oracle/oradata/standby_redo04.log
So what is the solution of this problem
Kindly Help
Thanks in Advance
Edited by: Fayn_dba on May 27, 2013 12:09 AMFayn_dba wrote:
Dear Experts;
My Production db 11G R1 os was crashed so I had to trigger failover at my physical standby (New Primary).
I recreated Crashed Primary as Standby from New Primary mentioned above with Hot backup
Now question is that I have successfully Switched to my old primary (Crashed one) but the New Primary crashed (old Standby).
I have tried rman duplicate it restores my datafiles but THE Number of LOG MEMBERS IS NOT the same as in Primary.
When I issue "" at primary
it shows
GROUP# STATUS
1 ACTIVE
2 CURRENT
3 ACTIVE
select member from v$logfile;
/u02/app/oracle/oradata/orcl/redo03.log
/u02/app/oracle/oradata/orcl/redo02.log
/u02/app/oracle/oradata/orcl/redo01.log
/u02/app/oracle/oradata/orcl/redo04.log
/u02/app/oracle/oradata/orcl/redo05.log
/u02/app/oracle/oradata/orcl/redo06.log
/u02/app/oracle/oradata/standby_redo01.log
/u02/app/oracle/oradata/standby_redo02.log
/u02/app/oracle/oradata/standby_redo03.log
/u02/app/oracle/oradata/standby_redo04.log
So what is the solution of this problem
Kindly Help
Thanks in Advance
Edited by: Fayn_dba on May 27, 2013 12:09 AMHi
It is not problem.
Online redo members of groups or group count, may be is different primary and standby databases.
If you want learn which member is which group, the try below script.
select member, group# from v$logfile;
{coide}
I think there have 2 member every log group.
Every standby redo log group heve only one member, It is recommended.
Regards
Mahir M. Quluzade
http://www.mahir-quluzade.com -
How to create logical standby database?
Hi,
can i created logical standby database without creating physical stanby database? is it possible?
Thanks,Hi,
Creating a Logical Standby Database
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm#SBYDB00300
Regards,
Tom -
Create logical standby.
Hi.
I've created physical standby database on the same machine.
Standby apply archivelogs.
I strugle with convert physical standby into logical one.
When I try create controlfile for logical get:
SYS@stb>ALTER DATABASE CREATE LOGICAL STANDBY CONTROLFILE AS '/tmp/stbl.ctl';
ALTER DATABASE CREATE LOGICAL STANDBY CONTROLFILE AS '/tmp/stbl.ctl'
ERROR at line 1:
ORA-06550: line 1, column 36:
PLS-00201: identifier 'DBMS_LOGMNR_D.STORE_IN_REDO_LOGS' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
plsFEDORA 6 & ORACLE 10.2.0
alert_stb.log:
alter database start logical standby apply
Wed Jun 17 22:46:58 2009
ALTER DATABASE START LOGICAL STANDBY APPLY (stb)
Wed Jun 17 22:46:58 2009
No optional part
Attempt to start background Logical Standby process
LSP0 started with pid=22, OS id=4156
Wed Jun 17 22:46:59 2009
Completed: alter database start logical standby apply
Wed Jun 17 22:47:01 2009
LOGSTDBY status: ORA-16111: log mining and apply setting up
Wed Jun 17 22:47:01 2009
LOGMINER: Parameters summary for session# = 1
LOGMINER: Number of processes = 3, Transaction Chunk Size = 201
LOGMINER: Memory Size = 30M, Checkpoint interval = 150M
LOGMINER: session# = 1, reader process P000 started with pid=23 OS id=4158
LOGMINER: session# = 1, builder process P001 started with pid=24 OS id=4160
LOGMINER: session# = 1, preparer process P002 started with pid=25 OS id=4162
Wed Jun 17 22:47:02 2009
LOGMINER: Begin mining logfile: /u01/app/oracle/flash_recovery_area/STB/archivelog_3/1_3_689731882.arc
Wed Jun 17 22:47:02 2009
LOGMINER: Turning ON Log Auto Delete
Wed Jun 17 22:47:02 2009
LOGMINER: End mining logfile: /u01/app/oracle/flash_recovery_area/STB/archivelog_3/1_3_689731882.arc
LOGSTDBY Analyzer process P003 started with pid=26 OS id=4164
LOGSTDBY Apply process P008 started with pid=31 OS id=4174
LOGSTDBY Apply process P007 started with pid=30 OS id=4172
LOGSTDBY Apply process P004 started with pid=27 OS id=4166
LOGSTDBY Apply process P006 started with pid=29 OS id=4170
LOGSTDBY Apply process P005 started with pid=28 OS id=4168 -
My two node RAC database Primary hangs upon executing SQL> exec DBMS_LOGSTDBY.BUILD; when creating a Logical Standby. I have stopped all the recovery processes on the Physical Standby. I have also taken down the instances on the RAC apart from the one I'm working on. Additionally not much info in the alert log...
Logminer Bld: Build started
Wed Jan 23 06:01:57 2013
ALTER SYSTEM SWITCH ALL LOGFILE start (UDSRED1)
Wed Jan 23 06:01:57 2013
ALTER SYSTEM SWITCH ALL LOGFILE complete (UDSRED1)
Wed Jan 23 06:01:57 2013
Thread 1 advanced to log sequence 2323 (LGWR switch)
Current log# 2 seq# 2323 mem# 0: /data03/oracle/oradata/UDSRED/redo02.rdo
Wed Jan 23 06:01:57 2013
Wed Jan 23 06:01:57 2013
Logminer Bld: Lockdown Complete. DB_TXN_SCN is 2548 1551493736
Wed Jan 23 06:01:57 2013
LNS: Standby redo logfile selected for thread 1 sequence 2323 for destination LOG_ARCHIVE_DEST_2
Wed Jan 23 06:01:57 2013
LNS: Standby redo logfile selected for thread 1 sequence 2323 for destination LOG_ARCHIVE_DEST_3
Wed Jan 23 06:01:59 2013
ALTER SYSTEM ARCHIVE LOG
Wed Jan 23 06:01:59 2013
Thread 1 advanced to log sequence 2324 (LGWR switch)
Current log# 3 seq# 2324 mem# 0: /data03/oracle/oradata/UDSRED/redo03.rdo
Wed Jan 23 06:01:59 2013
LNS: Standby redo logfile selected for thread 1 sequence 2324 for destination LOG_ARCHIVE_DEST_3
Wed Jan 23 06:01:59 2013
LNS: Standby redo logfile selected for thread 1 sequence 2324 for destination LOG_ARCHIVE_DEST_2
Wed Jan 23 06:02:00 2013
Wed Jan 23 06:02:00 2013
Logminer Bld: Done
Edited by: Imran on Jan 23, 2013 2:10 PMImran,
The information from alert log file is not sufficient.
Can you log switch on primary and monitor whether it is archiving in standby or not.
and you can monitor the changes in "v$managed_standby"
Also check for the errors using "v$dataguard_status"
SQL> select error_cdoe, message, timestamp from v$dataguard_status where dest_id=<n>; -
Creating logical standby database
Hi all,
10.2.0.1
Following this link
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm
Where do i need to issue these statements:
SQL> EXECUTE DBMS_LOGSTDBY.BUILD;
SQL> ALTER DATABASE RECOVER TO LOGICAL STANDBY db_name;
on physical standby or primary database.
I issued the first stament on primary and second on physical standby .
IN the alert log of standby,i have the following entries.
Wed Jan 20 15:34:28 2010
Converting standby mount to primary mount.
Wed Jan 20 15:34:28 2010
ACTIVATE STANDBY: Complete - Database mounted as primary (treasury)
*** DBNEWID utility started ***
DBID will be changed from 306589979 to new DBID of 330710340 for database
.........................I am trying to create a logical standby database after creating a physical standby database.
It seems standby changed to primary which was not desired.
ThanksNot tried myself, but you might want to have a look at this URL.
It appears to suggest that you need to change names of datafiles as well as value db_name explcitly on standby. -
Create a standby controlfile using cold backup
Hi All,
We have to setup a DR for a production database.
Here we have the coldbackup which backups all the datafiles and the control file from the production database.
For cloining we generally copy them to another instance and then create controlfile manually. But for setting up as a DR , we would be creating it for standby controlfile.
I tried to google but I am not able to find a way to create a standby controlfile from the existing controlfile cold backup.
OS version solaris 10 , database version 11.2.0.1
Regards
KK
Edited by: Kk on Feb 16, 2012 8:51 AMKk wrote:
Hi All,
We have to setup a DR for a production database.
Here we have the coldbackup which backups all the datafiles and the control file from the production database.
For cloining we generally copy them to another instance and then create controlfile manually. But for setting up as a DR , we would be creating it for standby controlfile.
I tried to google but I am not able to find a way to create a standby controlfile from the existing controlfile cold backup.
OS version solaris 10 , database version 11.2.0.1
Regards
KK
Edited by: Kk on Feb 16, 2012 8:51 AMTry as below
My version:
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL>1) Taken backup of current controlfile
2) Deleted Current controlfiles
3) Restored using standby clause from current controlfile
4) Mounted & now controlfile type is Standby
Try in this way when you have cold backup. :)
SQL> select controlfile_type from v$database;
CONTROL
CURRENT
RMAN> run
2> {
3> allocate channel ch1 device type disk format 'c:\oracle\control%U.bkp';
4> backup current controlfile;
5> release channel ch1;
6> }
using target database control file instead of recovery catalog
allocated channel: ch1
channel ch1: SID=63 device type=DISK
Starting backup at 16-FEB-12
channel ch1: starting full datafile backup set
channel ch1: specifying datafile(s) in backup set
including current control file in backup set
channel ch1: starting piece 1 at 16-FEB-12
channel ch1: finished piece 1 at 16-FEB-12
piece handle=C:\ORACLE\CONTROL08N3GEA6_1_1.BKP tag=TAG20120216T230334 comment=NONE
channel ch1: backup set complete, elapsed time: 00:00:01
Finished backup at 16-FEB-12
released channel: ch1
RMAN> exit
RMAN> restore standby controlfile from 'C:\ORACLE\CONTROL08N3GEA6_1_1.BKP';
Starting restore at 16-FEB-12
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=66 device type=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
output file name=C:\ORACLE\ORADATA\ORCL\CONTROL01.CTL
output file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\CONTROL02.CTL
Finished restore at 16-FEB-12
SQL> alter database mount;
Database altered.
SQL> select controlfile_type from v$database;
CONTROL
STANDBY
SQL>
Some More information:-
Even if your database backup is old, still you can create a new standby controlfile and restore new controlfile and restore database. Later after starting MRP all will be synchronized. No issues
SQL> select controlfile_type from v$database;
CONTROL
CURRENT
SQL> alter database create standby controlfile as 'c:\oracle\control_stby.ctl';
Database altered.
SQL> $dir c:\oracle\con*
Volume in drive C is System
Volume Serial Number is 1853-3E21
Directory of c:\oracle
02/16/2012 11:41 PM 9,748,480 CONTROL_STBY.CTL
1 File(s) 19,546,112 bytes
0 Dir(s) 177,185,570,816 bytes free
SQL>Now Just restore database. You already have backup.
Or
If you have opportunity you can go ahead for Duplicate/Duplicate from active database
Edited by: CKPT on Feb 16, 2012 11:41 PM -
RMAN script problem to create logical standby database !
Dear Friends ,
I am using Oracle10g database . I want to create a logical standby database . I create two database :
Primary : orcl
standby : orclsby1
Every steps I followed successfully , but when I am going to create "standby database" from "primary database" using rman then I found the following error :
The script is below which I have to run in Primary (orcl) database :
Script :
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 'orcl','orclsby1'
set db_unique_name='orclsby1'
set db_file_name_convert='/orcl/','/orclsby1/'
set log_file_name_convert='/orcl/','/orclsby1/'
set control_files='/u01/app/oracle/oradata/orclsby1.ctl'
set log_archive_max_processes='5'
set fal_client='orclsby1'
set fal_server='orcl'
set standby_file_management='AUTO'
set log_archive_config='dg_config=(orcl,orclsby1)'
set log_archive_dest_1='service=orcl ASYNC
valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=orcl'
Problem which I got :
[oracle@localhost DG]$ rman target sys/sys123@orcl auxiliary sys/sys123@orclsby1
Recovery Manager: Release 10.2.0.1.0 - Production on Mon Oct 19 15:58:17 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: ORCL (DBID=1227832857)
connected to auxiliary database: ORCLSBY1 (not mounted)
RMAN> @cr_phys_sby1.txt
RMAN> run {
2> allocate channel prmy1 type disk;
3> allocate channel prmy2 type disk;
4> allocate channel prmy3 type disk;
5> allocate channel prmy4 type disk;
6> allocate auxiliary channel stby type disk;
7> duplicate target database for standby from
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "from": expecting one of: "dorecover, db_file_name_convert, nofilenamecheck, ;"
RMAN-01007: at line 7 column 39 file: cr_phys_sby1.txt
I try to edit the above script using 'nofilenamecheck' 'dorecover' etc. , but cannot resolve the problem . Would u plz help me .... where the problem is .
Both databases are running on Oracle10g platform .
Waiting for ur kind reply .. ...You need to:
- create a SPFILE manually for standby database
- use the RMAN command: DUPLICATE TARGET DATABASE FOR STANDBY
- remove all SPFILE statements from RMAN script. -
Oracle 10g standby configuration - Restoring primary backup to Standby DB.
Hi experts,
This is my first time configuring a Standby (Data Guard) scenario for our Oracle data base. The platform used is Solaris 10 with Oracle 10g.
After reviewing a lot of documents and tutorials regarding this matter still have some doubts on how to get this scenario finally configured.
Basically I would like some confirmations regarding the following point. We have the new db already installed in our disaster recovery site and the next step I need to do is to perform an offline backup from our primary data base and then transfer that backup to our standby database. Iu2019m currently stuck in this steps since Iu2019m not completely sure on how proceed with this specific step. According to the following link http://help.sap.com/saphelp_nw04s/helpdata/en/08/5744b84ae611d1894f0000e829fbbd/content.htm , the following steps are necessary:
1. Take a backup (online or offline) of the data files of the production database
2. Create a control file at the production site to be used at the standby site, by entering the following command:
alter database create standby controlfile as <filename>
3. Archive the current online redo log of the production database, by entering the following command:
alter system archive log current
4. Transfer the backed up data files, the control file and all archived redo log files to the standby site.
Regarding the above step u201C4u201D... Could someone please detail me what all the data files are? As per SAP System Copy guide in its section u201CRestoring Database Files on the Target Systemu201D the following is indicated...and I think these are the files to transfers to the standby db.
Files/oracle/<DBSID>/sapdata<x>
All files/oracle/<DBSID>/origlog<x>
All files/oracle/<DBSID>/mirrlog<x>
Is my assumption correct?
Please let me know which the correct steps are and if any other process is applicable or advisable over the above mentioned....let me know.
RegardsHi,
As far as cold backup of database is concerned, backup of the folders you have mentioned is enough.
Hope you have created a parameter file for the standby database and changed the primary parameter file as part of preparation of primary database.
Here is a sample entry you have to have on standby parameter file apart from other entries..
db_unique_name='STANDBY'
fal_client='STANDBY'
fal_server='PRIMARY'
log_archive_config='DG_CONFIG=(PRIMARY,STANDBY)'
Also browse through the following threads...it may help..
Re: Standby server - WAIT_FOR_GAP error
Re: Hot DR site preparation
Regards,
Anish -
How to Refresh UAT Primary/standby from Production primary/standby
Hi ,
We have the following setup :
Primary/standby - Production
Primary/Standby - UAT
I need to know the process on how to refresh the UAT primary/standby .
I'm thinking on the following lines :
1] If we have the export dump of production , can we go ahead and drop the schemas to be refreshed on both UAT Primary and UAT Standby UAT then perform the schema import on Primary UAT .
2] In case if I have to do a full refresh of UAT , do I need to rebuild the UAT environment from the proudction backups Ie,
(i) Drop both the UAT primary and UAT standby database .
(ii) using the produciton backup built the UAT Primary . Take the UAT primary backup and build the UAT standby .
Appricaite if any one can provide some best practices to refresh UAT from Production.That setup seems to be rare. We assume that the Standby Database is used for testing and have a feature for that called Snapshot Standby.
But in your scenario, you need to develop your own techniques for "refreshment of the UAT Primary".
An easy way (if your Primary is not too large): Throw away your UAT env each time the "Production Primary" changes and RMAN clone it to "UAT Primary" then.
Then RMAN duplicate "UAT Standby" again. Could be relatively easily scripted.
But again: Why not just create an ordinary Standby on your UAT hardware and use it for testing with Snapshot Standby feature? Much easier to maintain.
Kind regards
Uwe Hesse
http://uhesse.wordpress.com -
Can Grid Control 10gR2 create a standby database when primary db uses ASM?
Does anyone know if Grid Control 10gR2 will be able to create a standby database when the primary database uses ASM for data files, redo log files, and archive log files but the standby database will use mounted disks? If it can, would it matter that the primary db will be a RAC cluster and the standby will be a single instance db?
I appreciate your reply and hope you are correct. Have you had a look at the 10gR2 Grid Control to confirm this or are you only going on published statements? The reason I ask is because previous versions of Grid Control claimed to support ASM but they would only allow you to work with them AFTER you had created a standby database manually but you couldn't actually use Grid Control to create a standby database from a primary database that had its log files on ASM disks.
-
Logical standby problem on primary DB updates
Hi all!
I am quite new to standby databases, but I managed to sucessfully setup logical standby (11g on linux).
However, I got some problem - when I try to insert some data into Primary DB using simple JDBC statements, I sometimes get exception:
java.sql.SQLException: ORA-16224: Database Guard is enabled
And this happens not all the time - sometimes I can insert and commit, but sometimes I get exception.
This never happens when I am trying to insert data directly from sqlplus or TOAD.
looks to me like java application sometimes is connecting to standby database.
any suggestions?
ThanksCheck for example, whether both DBs present the same service and whether you have an oracle net configuration like
myservice =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = host_A)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = host_B)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = myservice)
)You should make sure that the productive service is only presented by the primary database. See this explanation:
http://prutser.files.wordpress.com/2008/12/client_connectivity.pdf
Kind regards
Uwe
http://uhesse.wordpress.com
Maybe you are looking for
-
I've Just migrated my mac to a new iMac and CS5 is dead
I've Just migrated my mac to a new iMac and CS5 is dead, I can't uninstall it or do anything with it. When I try to load an application it just crashes (I'm guessing because it needs registering on my new machine) and I can't uninstall it. I've been
-
Re: Satellite P - Windows Media Center issue
Without any visible virus problems or bug threats Windows Media Center starts to crack out in video release. Simply random loosing pixels on a screen, and all other similar programs such as wmp, vlc media player, mv2 and Intervideo Win DVD working co
-
Why is Refresh Sheet not showing me the parameters for report?
I have a really large amount of data showing up in my report. It is taking forever (times out after 30 minutes) for my data to display. In the past, I have cancelled and then used the refresh sheet to constrict my report parameters and then rerun the
-
Unable to use HTTPS proxy when redirecting HTTP/HTTPS via NAT
I'm trying to get the WSA to work when redirecting HTTP and HTTPS traffic along the lines of the following: object network WSA-HOST host 10.0.210.2 object network obj-10.0.1.0 subnet 10.0.1.0 255.255.255.0 object service ORIG-HTTP-PORT se
-
I'm getting an error on this line of code: OracleXMLSave oxs = new OracleXMLSave(conn,"newsstoryview"); conn is a connection to an oracle database using jdbc:oracle:thin and "newsstoryview" is the name of a view. Exception breakpoint occurred at line