Oracle standby database creation different backup location
Hi,
I am using Oracle EE 11gR2 on aix 6.2.I am tring to create a standby database.The directory structure od primary and standby database server are different.
I am taking backup (RMAN) at /u01/backup directory on primary server and shipping those backup to standby server at /u05/backup.While duplication the rman unable to locate backup pieces at Dr server as those backups are located on different location from Dc.How to over come this situation.catalog start with is not working.
Regards
DBAFORU
Hello;
Since you are on Oracle 11 one option would be duplicate from active primary. You can use the Standby parameters of DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT for the directory structure.
duplicate target database for standby from active database NOFILENAMECHECK;
How To Restore From An Old Backupset Using RMAN? (Doc ID 209214.1)
Step by Step Guide on Creating Physical Standby Using RMAN DUPLICATE...FROM ACTIVE DATABASE (Doc ID 1075908.1)
RMAN ACTIVE DUPLICATE WHEN CONNECTED TO STANDBY AS TARGET (Doc ID 1343515.1)
Creating a Physical Standby Database (Doc ID 1475344.1)
Best Regards
mseberg
Similar Messages
-
Build standby database using cold backup on a different file system & host
Hi gurus,
The database version is 11.2.0.3. OS is HP UX Itanium 11.31
I am building a standby database using cold backup of primary. The primary mount points are (/p003/oracle, /p004/oracle) on HOST1 and the standby file system on HOST2 are (/s003/oracle,/s004/oracle). I am not using Data Guard to apply logs as we have a script that mounts the log location periodically to standby server and apply the logs to make it current. I am using cold backup as the database is small like 200G and can be taken down. Could someone help me with the steps to build standby using cold backup for a different file location in standby ?? My concern is I can copy the data files from /p003 to /s003. How will I build the controlfile ?
If it was same File system on both HOST 1 and HOST2 I can copy the cold backup to the standby server, build a standby control file on primary and copy and replace the standby control file and everything was set.
Thanks
Cherrish VaidiyanHello;
I have a note on this using a cold copy of the current files instead of a copy backup :
http://www.visi.com/~mseberg/data_guard_on_oracle_10_step_by_step.html
I will post SCP SQL in a moment.
Best Regards
mseberg
set heading off
set feedback off
set pagesize 100
set linesize 400
select 'scp '||a.name ||' server_name:' || a.name as newname from v$datafile a;
select 'scp '||a.name ||' server_name:' || a.name as newname from v$controlfile a;
select 'scp '||a.member ||' server_name:' || a.member as newname from v$logfile a;Edited by: mseberg on May 25, 2013 10:35 AM -
Physical Standby Database Creation with RMAN
Hi,
I'm in 10g on Linux. I want to create a standby database on another Linux server. I did not find a clear procedure to create it in Oracle® Database Backup and Recovery Advanced User's Guide 10g Release 2 (10.2) Part Number B14191-02
and niether in Oracle® Data Guard Concepts and Administration 10g Release 2 (10.2) B14239-04
In the last one chapter 3 sends you to F appendix and F appendix says do nothing before having than all in chapter 3 :
In F.1.1 page F-2 it is said :
See Chapter 3 for a complete discussion of physical standby database preparation,including initialization parameter settings. You must perform all necessary preparation tasks described in these chapters before RMAN can successfully create the standby database files and mount the standby database.
Any way I'm looking for a procedure or clear article to create it.
Many thanks before.Physical Standby Database Creation with RMAN
Use the DUPLICATE command.
Check out this metalink doc: Note:374069.1 and Note:118409.1
Message was edited by:
STW
Message was edited by:
STW -
Standby database with different directory structure
Hi,
sorry to say that we are in desupported version due to some constraint.
oracle version : 8.1.7.0.0.
os:sun 5.9
I need to create physical standby database with different directory structure:
i have created standby database with same directory structure of primary, now i have requirement to create with different directory structure.
in oracle 8i we can not give multiple parameter for db_file_name_convert(ORA-01678: parameter db_file_name_convert must be two strings, a pattern and a replacement) and i do have partitions in primary as follows:
bash-2.05$ df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t0d0s0 20G 14G 5.6G 72% /
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
swap 11G 40K 11G 1% /var/run
dmpfs 11G 0K 11G 0% /dev/vx/dmp
dmpfs 11G 0K 11G 0% /dev/vx/rdmp
swap 11G 656K 11G 1% /tmp
/dev/dsk/c1t0d0s3 25G 18G 6.8G 72% /oracle
/dev/vx/dsk/suportaldg/oracle1
12G 11G 1.1G 91% /oracle1
/dev/vx/dsk/suportaldg/oracle2
12G 8.1G 3.7G 69% /oracle2
/dev/vx/dsk/suportaldg/orapurge
200G 182G 17G 92% /orapurge
/dev/vx/dsk/suportaldg/oracle3
12G 10G 1.9G 85% /oracle3
/dev/vx/dsk/suportaldg/oracle4
12G 12G 58M 100% /oracle4
/dev/vx/dsk/suportaldg/oracle5
7.0G 5.9G 1.0G 86% /oracle5
/dev/vx/dsk/suportaldg/oracle6
7.0G 6.4G 564M 93% /oracle6
/dev/vx/dsk/suportaldg/oracle7
23G 23G 358M 99% /oracle7
/dev/vx/dsk/suportaldg/oracle8
13G 13G 165M 99% /oracle8
/dev/vx/dsk/suportaldg/oracle9
23G 22G 1.4G 94% /oracle9
/dev/vx/dsk/suportaldg/oracle10
12G 10.0G 1.9G 85% /oracle10
/dev/vx/dsk/suportaldg/oracle11
39G 36G 2.1G 95% /oracle11
/dev/vx/dsk/suportaldg/oracle12
39G 38G 1.1G 98% /oracle12
/dev/vx/dsk/suportaldg/oracle13
68G 65G 2.6G 97% /oracle13
/dev/vx/dsk/suportaldg/oracle14
200G 199G 1.3G 100% /oracle14
/dev/vx/dsk/suportaldg/oracle15
200G 196G 3.6G 99% /oracle15
/dev/vx/dsk/suportaldg/oracle16
70G 64G 5.5G 93% /oracle16
/dev/vx/dsk/suportaldg/oracle20
7.0G 6.4G 609M 92% /oracle20
/dev/vx/dsk/suportaldg/oracle50
28G 26G 2.0G 93% /oracle50
/dev/vx/dsk/suportaldg/oratranslog
185G 165G 19G 90% /oratranslogso how i can create standby database with different directory structure, help is appreciated.
Thanks
Edited by: prakashdba on Mar 5, 2009 11:04 PMLooks like very difficult and inform you mgmt about the drawbacks of running olderv ersions
may be you can try something like this but i dont know whether it is supported or not
db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle3','/dev/vx/dsk/suportaldg/STDBY/oracle3']
db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle4','/dev/vx/dsk/suportaldg/STDBY/oracle4']
db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle5','/dev/vx/dsk/suportaldg/STDBY/oracle5'] -
Tnsnames.ora / listener.ora files on Oracle Standby Database
Hi I am configuring an Oracle Standby Database to my production system 4.7 and Oracle 9.2.0.4
My production server is: PR01
Database SID: PRD
Standby database server is: PRDR
Database SID: PRD
I have already configured the server to a standby database offline backup. Was generated the control files of the standby database and the database is in standby mode.
Now I will create a script to start the synchronization of offline redolog from the production server to standby server.
I have a question: in the document SAP Oracle Standby Database, tells me I should change the tnsnames.ora production server pointing to an additional entry disaster recovery server. The tnsnames.ora file must have two entries??? corresponding to a production server and another to the disaster recovery server??
In several links of oracle tells me I should configure listener.ora disaster recovery server that is true??
Guys my question is: where should I change my listener.ora and tnsnames.ora files?
Please clear my doubt.
Best regards,
DesireeHi Desiree,
The entry in your TNSNAMES.ORA is a nothing but a tns service, when you define archive log destination it will point to a service. This service's host name will be resolved in your tnsnsmaes.ora file.
Below is the eg of an entry in pfile:
*.log_archive_dest_2='SERVICE=<service_name> ARCH OPTIONAL'
Below is the entry in your tnsnames.ora file
<service_name>.WORLD=
(DESCRIPTION = (ADDRESS_LIST = (ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = <DR_HOST>)
(PORT = 1527)
(CONNECT_DATA =
(SID = <DB_SID>)
(GLOBAL_NAME = <DB_SID>.WORLD)
So, your tnsnames.ora will have one entry for your host and the other for the DR host, i.e two entries.
Listener entry for the convenience when there is a switch over.
Regards,
Bala -
Oracle Portal Development from different geographic locations
Hello,
Have anyone done the development with Oracle Portal from different geographic locations, our customer want to know is there a way we can develop Oracle portal application from different geographic locations and merge it one place.
One reason is because the portal is in the database. If you have two separate groups work to build a single portal, it reason that each team would have their own installation. When these two groups are done (or periodically), the development efforts must be merged into the final complete portal. Is this possible using Oracle Portal (merging portal installations)?
Second reason is that typically other systems owned by the customer are exposed or accessed by portlets. Access to these portlets would probably be required for development. If nothing else then for unit testing.
How do you typically see off-shoring done with Oracle Portal, if at all? Or am I incorrect in my thinkings. How does the Portal meta-data stores the portal configurations is it possible to merge different portal schema into one and make it the main portal environment.
Please let me know if anyone successfully done this. Your comments would be greatly appreciated.
Thanks,
KathirAlready replied in Oracle Portal Development from different geographic locations
Cheers,
Pedro. -
Standby database creation notes by metalink
Can any body send me good Standby database creation notes by metalink.
Are you wanting to see notes for physical or logical standby and what Database version and OS?
Use the knowledge browser in Metalink and click the database link in the Support Categories section on the left of the page and select Dataguard under the High Availability Section on the resulting page. -
StandBy database creation in oracle 10g
Respected Sir's
I have to create stand by database in oracle 10g i am working on (Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod) .Plz any body provide steps required for creating stand by database in oracle10g.Both the database db1 and db2 are running on archivelog.I am confuse how to set archivelog parameter that goes to db2(standby database) from db(primary database).Any one provide me steps to properly configuring the stand by database.
ThanksRespected Sir
These are the detailed steps that i performed on standby and primary database.
On both the systems i install the oracle in E drive and the database i create in G drive and archive destination also in G drive.
Like G:\prod1\(all the datafiles,logfiles and control file).
G:\arch\(all the archive files).
ON PRIMARY DATABASE(IP:192.168.2.14):
1.First i create a database with DBCA and the database SID is prod1.
2.Put the database in archive mode and also enable the force logging.
3.Shutdown the Primary database and modify the following parameters in pfile.
log_archive_dest_1='LOCATION=G:\ARCH'
log_archive_dest_2 = "service=STDBY mandatory reopen=60"
log_archive_dest_state_1 = enable
log_archive_dest_state_2 = enable
log_archive_min_succeed_dest = 2
4.Mount the primary database and create the standby controle file and create the spfile from the modified pfile.
5.Shutdown the primary database and take the backup of all the datafile,logfile,standby controlfile ,passwordfile,pfile in a folder.
6.Startup the primary database.
Tnsname.ora Configuration.
Create the connection string using the Net Manager with name STDBY and in host name i provide the IP address of the standby database.
ON STANDBY DATABASE(IP 192.168.2.9):
Listener.ora Configuration.
Create a listener using the Net configuration Assistance.
1.I copy the datafile,logfile and standby controle file in g:\prod1
2.Copy the E:\oracle\product\10.2.0\admin\prod1 folder from primary database and past it on the same location on the standby database.
3.On standby pfile i change only the standby_archive_dest parameter to g:\arch.
4.Create the service with oradim -SID -NEW prod1 -STARTMODE manuall
5.Start the standby database in nomount mode.
6.Create the spfile from pfile and shutdown the database.
7.Startup the database in nomount mode using spfile.
8.ALTER DATABASE MOUNT STANDBY DATABASE;
These are the occurs when i use tnsping stdby on primary database.
C:\Documents and Settings\Administrator>TNSPING STDBY
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 04-FEB-2009 12:03:55
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
E:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.9
NECT_DATA = (SERVICE_NAME = prod1)))
OK (20 msec)
sqlnet.ora file on stand by database.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, LDAP)
BEQUEATH_DETACH=yes
AUTOMATIC_IPC = ON
NAMES.DEFAULT_DOMAIN = IDEVELOPMENT.INFO
SQLNET.EXPIRE_TIME=2
This occurs when i use tnsping prod1 on standby database.
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 04-FEB-2
009 12:01:40
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
E:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
TNS-03505: Failed to resolve name
Please help me bec i have to create the stand database as soon as possible.Thanks Sir -
Standby Database Creation in the same Box Oracle 9.2.0.1
Box - Sun Solaris 64 bit
Oracle Version - 9.2.0.1
I have a database called 'sales' in the above box. I want to create a standby database in the same box (in different mount point). This is what I did:
1. took cold backup of all datafiles
2. created standby controlfile
3. updated init file.
-when I tried to start the stabdby db, it is throwing error because the controlfile is confusing with the same db name as the primary ('sales').
My question is: Can I create a standby db in the same box?Hello,
For keeping the standby database on same HOST....it does seems to be great...i must be on separate box....may be on different network...i believe you would be using it for some failiover purpose...Isn't it.
For Unix it is quite easy..you may implement like this...The Issue which you are referring may be because of wrong Oracle Home or SID....(i'm not very much sure..) You may try following steps:
1. Create a separate Unix A/c and set ORACLE_HOME and ORACLE_SID relevant to your StandBy Database. I believe the Home would be same whereas SID would be your standby databse.
2. Take a Cold Backup of All your database files from Production.
3. Copy these files on separate mount points for standby Db. Put them all to relevant directory and be sure to set the Group of all these files as "SYSDBA" This is Must.
4. And then modify your INIT.ORA file i.e. InitSID.ora file accordingly and put the file in ORACLE_HOME
5. Login to Newly created Unix A/c. Check whether ORACLE_SID is set ot not to your standby database instance.
6. Login to sys as sysdba and start up the database. It will by default would try to check & do for your relevant Oracle SID for this profile...
HTH
Regards,
Kamesh Rastogi -
Standby database from RMAN backup
I have been assigned to create a standby database from our RMAN backups in a different machine, as this is my first attempt at recovering, I am struggling a bit. I would appreciate if someone can throw any light on what dumb mistakeI am doing here. I ahve absolutely no control over the back up script which is done by my vendor, but can do anything in the reocvery portion. I did try going through the documentaiton and other help available for the last 2 days.
Database : Oracle 10G R2
OS : Windows Server 2003
My backup script is
configure channel device type disk format 'J:\RMAN\RMAN_df_%U' maxpiecesize 2048M;
SQL "ALTER SYSTEM SWITCH LOGFILE";
SQL "ALTER SYSTEM SWITCH LOGFILE";
backup database;
SQL "ALTER SYSTEM SWITCH LOGFILE";
SQL "ALTER SYSTEM SWITCH LOGFILE";
backup current controlfile for standby FORMAT='J:\RMAN\RMAN_sc_%U';
For recovery of a standby database,
I have copied the the back up pieces and the archive logs to the standby server where I have just created an instance with the same name as production db.
set ORACLE_SID=NGINPROD
set dbid 820336652
STARTUP NOMOUNT
RESTORE STANDBY CONTROLFILE FROM 'I:\TEMP\RMAN_Backup\RMAN\RMAN_SC_2UMIUJM1_1_1';
CATALOG BACKUPPIECE 'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2RMIUIE4_1_1',
'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2RMIUIE4_2_1',
'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2RMIUIE4_3_1',
'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2RMIUIE4_4_1',
'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2RMIUIE4_5_1',
'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2RMIUIE4_6_1',
'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2RMIUIE4_7_1',
'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2SMIUJ88_1_1',
'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2SMIUJ88_2_1',
'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2SMIUJ88_3_1',
'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2SMIUJ88_4_1',
'I:\TEMP\RMAN_Backup\RMAN\RMAN_DF_2TMIUJLN_1_1',
'I:\TEMP\RMAN_Backup\RMAN\RMAN_SC_2UMIUJM1_1_1';
RESTORE DATABASE;
Till this step I do not encounter any issues, but when i try to recover the database I am hit with the below error.
RMAN> recover database;
Starting recover at 16-AUG-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
starting media recovery
unable to find archive log
archive log thread=1 sequence=253340
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 08/16/2011 09:31:57
RMAN-06054: media recovery requesting unknown log: thread 1 seq 253340 lowscn 4696173517
------------------------------------------------------------------------------------------------------------------------------------------------Here's the standard dcoumentation on the procedure :
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rcmbackp.htm#i636377
Appendix "F Creating a Standby Database with Recovery Manager" of the "Oracle® Data Guard Concepts and Administration" guide.
I don't see ArchiveLog backups being done by the vendor's script. How do you backup the ArchiveLogs ?
In your post you state that you have copied the ArchiveLogs. Are they copied to the same log_archive_dest location ? RMAN needs to be "aware" of them. You can use the "CATALOG" command in RMAN to register them into the controlfile.
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta011.htm#sthref230
A Standby Database uses a Standby Controlfile which is created from the Primary (with the "ALTER DATABASE CREATE STANDBY CONTROLFILE AS 'locaion';" command) and then copied over to the Standby server.
Hemant K Chitale -
Create standby database using restore backup
Hi,
I am creating a standby database 11g using manual process of restoring a backup , but to no avail. I can not even restore the backup successfully.
This is the steps I followed (courtesy of ORACLE-BASE) ORACLE-BASE - Data Guard Physical Standby Setup in Oracle Database 11g Release 2
I am confused about these steps:
Copy the files from the primary to the standby server.
Copy Standby controlfile to all locations.
$ scp oracle@ol5-112-dga1:/tmp/db11g_stby.ctl /u01/app/oracle/oradata/DB11G/control01.ctl
$ cp /u01/app/oracle/oradata/DB11G/control01.ctl /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl
My question is, for the 2nd copy, do I need to shutdown the primary db? since control01.ctl is being updated all the time?
Can I not used the standby ctl (db11g_stbg.ctl) and copy it to /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl instead?
Your assistance is highly appreciated.f55237a7-2c38-4db3-a7a3-1d77256f0730 wrote:
Hi,
I am creating a standby database 11g using manual process of restoring a backup , but to no avail. I can not even restore the backup successfully.
This is the steps I followed (courtesy of ORACLE-BASE) ORACLE-BASE - Data Guard Physical Standby Setup in Oracle Database 11g Release 2
I am confused about these steps:
Copy the files from the primary to the standby server.
Copy Standby controlfile to all locations.
$ scp oracle@ol5-112-dga1:/tmp/db11g_stby.ctl /u01/app/oracle/oradata/DB11G/control01.ctl
$ cp /u01/app/oracle/oradata/DB11G/control01.ctl /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl
My question is, for the 2nd copy, do I need to shutdown the primary db? since control01.ctl is being updated all the time?
Can I not used the standby ctl (db11g_stbg.ctl) and copy it to /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl instead?
Your assistance is highly appreciated.
Hi,
You are created standby control file on primary and copied to standby side:
$ scp oracle@ol5-112-dga1:/tmp/db11g_stby.ctl /u01/app/oracle/oradata/DB11G/control01.ctl
And now, in paramter files, you have CONTROL_FILES parameter as below :
control_files='/u01/app/oracle/oradata/DB11G/control01.ctl', '/u01/app/oracle/fast_recovery_area/DB11G/control02.ctl'
it means you must copy controlfile IN standby side to second control file. Control files must be same.
$ cp /u01/app/oracle/oradata/DB11G/control01.ctl /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl
My question is, for the 2nd copy, do I need to shutdown the primary db? since control01.ctl is being updated all the time?
You not need shutdown priamry database, becuase you copied standby control file to standby side, and all operations goin in standby side.
Can I not used the standby ctl (db11g_stbg.ctl) and copy it to /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl instead?
Yes, you can use (db11g_stbg.ctl) standby controlfile
Regard
Mahir M. Quluzade -
Standby database with different os
Hi,
can anyone help me,
if i want build standby database,
my primary database using Oracle on Sun Solaris v880,
can i use intel based linux or intel based solaris as standby
database (hardware cheaper than sun unix) ?
if can how to configure or install hardware and software.
or maybe you can recomend me hw/software, because i have tight
budget for backup server.
thank you
richardHi buddy,
I would like to mention two points to you.
1) Oracle and ideal standby database concepts suggest to have
same hardware and operating system (including patch).
2) You may use your own same hardware machine on which primary
database running, for your standby database, provided Oracle
instance names are different. You may not need another system to
buy.
I hope this helps you......my friend.. -
Do I need to use standby database in begin backup mode to take the backup?
Hi All,
I have a 10g(10.2.0.4) primary database with standby on a solaris platform. I need to create another standby database for the same primary.
I have stopped the recovery on existing standby database and started copying(os copy) the files from existing standby to 2nd standby server. However I haven't kept the existing standby database(mounted) in begin backup mode. Is it okay?
Thanks,
ArunBackup mode for a mounted database?
orclz>
orclz> startup mount
ORACLE instance started.
Total System Global Area 788529152 bytes
Fixed Size 3050600 bytes
Variable Size 373293976 bytes
Database Buffers 406847488 bytes
Redo Buffers 5337088 bytes
Database mounted.
orclz>
orclz> alter database begin backup;
alter database begin backup
ERROR at line 1:
ORA-01109: database not open
orclz> -
Standby database on different version than prod.
Is it possible to have a standby database running on a different version of Oracle than the production database?
In this case I have production DB on the following version:
7.3.4
8.1.7.4.0
9.2.0.4.0
9.2.0.6.0
Would it be possible to run the a stand by DB in 10g?From the docs posted previously, which you clearly didn't read
Oracle Data Guard is available only as a feature of Oracle Database Enterprise Edition. It is not available with Oracle Database Standard Edition. This means the same release of Oracle Database Enterprise Edition must be installed on the primary database and all standby databases in a Data Guard configuration.
Rhetorical question: Now what would same release mean?
Sybrand Bakker
Senior Oracle DBA -
Implementing Oracle StandBy Database - Suggestion & Tips needed Pls.
Dear Sir,
With rerefence to high availability of our database, we would like to implement a standby database. Regarding this, i have few doubts and request all you expert to pls. help me out. This goes like this:
1. What is DataGuard.? Is it Separate product in Oracle or Part of Oracle Database Server - Enterprise Edition.?
2. Is standby database implemented / created ONLY using DataGaurd?
3. Do we need to buy another license for Oracle Database when i go for implementing StandBy Database.?
Basically we want if my main production server is down, it should automatically go to my StandBy database and does not stop my application. This is possible i feel by implementing Standby database. And we are thingking to do it. In that respect, we have above query.
I would request if somebody could be guide us and help.
Thanks.
Regards,
Kamesh Rastogiyou can get DATAGUARD in Oracle Database Enterprise Edition !!
this is script for Craeting Standby DB!!
Creating Standby Database
Primary Server Configuration
1.In the TNSNAMES.ORA of Primary DB add the entry of the Standby DB
IRCSSTDB(This is the service name in Primary DB to connect to Standby DB) =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = IRDBACK)(PORT = 1512))
(CONNECT_DATA =
(SERVICE_NAME = IRCS(This is the actual INSTANCE name of Running DB on Standby DB)
2. There is no need to Make any Changes in the Listener.ora of PRIMARY DB
Keep LISTENER.ORA of Primary as it is
Copy Listener.ora from Primary DB to Standby DB and make following changes
Delete All the Extra Existing listeners.
(These Modifications are for the STANDBY DB)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = IRDBACK)(PORT = 1521))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /ora01/app/oracle/product/9.2.0)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = IRCS)
(ORACLE_HOME = /ora01/app/oracle/product/9.2.0))
3.In the INIT.ORA of Primary DB add Following…
log_archive_dest_2 = "service=STBY optional/Mandatory scope=BOTH"
log_archive_dest_2 = Enable
log_archive_min_succeed_dest = 2
We can skip this & Dynamically add with the SQL*PLUS..
Standby DB Server Configuration
1.In the TNSNAMES.ORA of Standby DB add the entry of the Primary DB
primary1(ISSL)(This is the service name in Standby DB to connect to Primary DB)=
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp) (PORT=1521) (HOST=PRIMARY MACHINE NAME))
(CONNECT_DATA=(SERVICE_NAME=IRCS(This is the actual INSTANCE name of Running DB on Primary DB)
2.Copy Listener.ora from Primary DB to Standby DB and make following changes
Same as Above
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = IRDBACK)(PORT = 1521))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /ora01/app/oracle/product/9.2.0)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = IRCS)
(ORACLE_HOME = /ora01/app/oracle/product/9.2.0))
3. Connecting to an Idle instance..
1.C:\ oradim –NEW –SID ircs –INTPWD pwdfilename –STARTMODE auto –pfile E:\oracle\oradata\pfile\init.ora
2. C:\ set oracle_sid=IRCS
3. C:\ sqlplus /nolog
4. SQL:>connect sys/ircl as SYSDBA
5. SQL:>startup nomount pfile= E:\oracle\oradata\pfile\init.ora
6. SQL:> alter database mount standby database;
7. SQL :> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE;
4. we can also add these parameter in INIT.ORA of Standby DB
1.standby_archive_dest= /u00/app/oracle/admin/sec/arch (Same path as in
(log_archive_dest_1) in init.ora
2. Fal_client=standby1 (Service Name)
3. Fal_server=primary1 (Service Name)
Troubleshooting….
1. Check Init.ora of Primary DB
2. Try to open Standby Database in normal mode try to connect it with normal user from different Machine.
3.check *.logs file on Standby Database
4.Check v$archive_dest on Primary DB
5. lsnrctl services <listener name>….For Checking Listener, for service
Maybe you are looking for
-
4 computers in less than 4 years. What can I learn from this?
I've had four MacBook Pros in the past 3.5 years. The first one had a bad motherboard and in the end, the computer was just replaced. I had it for less than a year when that happned, and the computer they replaced it with (#2) lasted two years. One m
-
Power Events Repeating on C6508 Blade Server Chassis
Anyone seeing FaultCode F0391 - Description = Power Supply 1(2,3,4) in chassis 1 voltage:upper-non-recoverable. The chassis at this customer keeps reporting these across the four PS, then clears after approx 1 minute. Thanks!
-
Premiere CC's XML and EDL files not being interpreted correctly by Redcine-X - clip duration problem
I'm having a recurring problem when sending a finished sequence to Redcine-X for final color correction. Redcine-X doesn't read the in and out points on seemingly random clips in a timeline, making the problem clips overlap onto the surrounding clips
-
Port-ACL's on a 3750 - question
I have a 3750 that is connected to another network via a layer-2 type connection. I have a specific set of tcp and udp ports that I want to allow access to via this switch. In taking a look at the documentation I see that I can apply Port ACL's direc
-
Schema level varaibles ????
hello frnds can anybody help me ..... with an example how to create a schema level variable in PLSQL program ... thankss