Steps to configure Oralce 9i Data Guard
Hello,
I am looking out for a document that has step by step instruction how to set up an Oracle 9i Dat aguard in Maximum Performance mode.
Can someone kindly point me to an existing document.
Thanks..RCube
Please read the Dataguard Concepts and Administration Manual for your version, which you can find online at http://tahiti.oracle.com.
It also contains working scenarios.
As you don't provide a version, I can not provide a link.
You can easily navigate to the 'List of books' and find it there.
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
Configure listener for data guard
HI everyone,
I am currently setting data guard (Physical standby database) for my database. But I have problem to configure the listener on both servers. Can anyone provide me some example?
Oracle: 10g R2
O/S: Windows
Primary database ken10g
standby database: ken10gbk
Following is the content of my current listener files on both of servers:
Primary server:
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = Primary_server)(PORT = 1521))
Standby Server:
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = standby_server)(PORT = 1521))
Thanks in advance.
KenHi Ken,
You need to configure this on both primary and standby, I would have kept different listener name on primary and standby. Also if you are going to use dataguard broker you would need to set GLOBAL_DBNAME in your listener.ora file
I have give a sample entry for tnsnames.ora and listener.ora
TNSNAMES.ORA on primary
STNDBY =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = node2-prv)(PORT = 10521))
(CONNECT_DATA =
(SERVICE_NAME = STNDBY)
PRIM =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-prv)(PORT = 10521)))
PRIMARY =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-prv)(PORT = 10521))
(CONNECT_DATA =
(SERVICE_NAME = PRIMARY)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
Copy the same file to the standby server and adjust it based on the listener.ora file. Also update the listener.ora file so that it listen the SIDs mentioned in the tnsnames.ora file.
Listener.ora
LISTENER_STBY =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node2-prv)(PORT = 10521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
SID_LIST_LISTENER_STBY =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db10g)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = stndby)
(GLOBAL_DBNAME = stndby_DGMGRL)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db10g)
) -
Hi,
I've created a data guard setup consisting of single-node primary and standby databases using 11.2.0.1 AIX 6.1
Now I would like to configure the TAF, so that the application is automatically and transparently failed-over to the new primary database during switchover. I've read several links, but they seem to be pointing to some documents which are no-longer accessible on the Oracle website.
I'd a appreciate a simple walk-through on the process, or a pointer to some useful documentation on this.
Regards,
dulaNot sure how far you want to go with this. If far enough is to have the users re-connect then what follows works.
I assume you have flashback database configured and an observer in place.
Given that' true then:
A trigger will be created in the database so that whichever database opens as “primary”, the service will start. The service will be defined in tnsnames so that applications connect to that service. Since only the current primary will have the service running, applications will only connect to the “primary”.
1. Create the service current primary.
SQL> Exec dbms_service.create_service (service_name => 'testserv',network_name = > 'testserv');
PL/SQL procedure successfully completed.
2. Now create the trigger to start the service.
create or replace
trigger start_testserv
after startup on database
declare
role varchar (30);
begin
select database_role into role from v$database;
If role= 'PRIMARY' then
dbms_service.start_service('testserv');
end if;
end;
3. Manually start the service (fires at database startup normally).
SQL> execute dbms_service.start_service('testserv');
4. Verify the service is started.
Lsnrctl status
And you should see:
Service "testserv.nsight.com" has 1 instance(s).
Instance "standdb", status READY, has 1 handler(s) for this service...
5. Create a tnsnames entry for this service that references both databases – but only the primary will have the service running so when a user connects, they get the current primary and, should a failover occur, when they login they connect to what is then the primary.
testserv =
(description=
(SDU=32767)
(address_list=
(address=(protocol=tcp)(host=ora-vm-db2.nsight.com)(port=1521))
(address=(protocol=tcp)(host=ora-vm-db3.nsight.com)(port=1521))
(connect_data=
(service_name = testserv.nsight.com)
(server=dedicated)
(FAILOVER_MODE =
(TYPE=select)
(METHOD=BASIC)
(RETRIES=30)
(DELAY=10)
Note: included in the address list are both servers
6. Test the connection
Create a connection to testserv from sql developer.
select db_unique_name from v$database;
DB_UNIQUE_NAME
standdb
Now shutdown abort the current primary (standdb);
SQL> shutdown abort;
ORACLE instance shut down.
Now connect to the broker and look at status.
DGMGRL> show configuration verbose;
Configuration - drconfig
Protection Mode: MaxAvailability
Databases:
testdb - Primary database
Warning: ORA-16817: unsynchronized fast-start failover configuration
standdb - (*) Physical standby database (disabled)
ORA-16661: the standby database needs to be reinstated
(*) Fast-Start Failover target
Fast-Start Failover: ENABLED
Threshold: 300 seconds
Target: standdb
Observer: ora-vm-db3.nsight.com
Lag Limit: 30 seconds (not in use)
Shutdown Primary: TRUE
Auto-reinstate: TRUE
Configuration Status:
WARNING
The former standby is now the primary.
Try again from sql developer. You will need to reconnect.
select db_unique_name from v$database;
DB_UNIQUE_NAME
testdb
And that is basically how the applications will operate – reconnect if there is a failure and they will be connected to the new primary with no data loss and with only a momentary loss of service while the failover occurs. -
Configure about the DATA GUARD APPLICATION on ORACLE 9i platform
I have worked on Oracle 9i (9.2.0.1) platform. I have installed Oracle 9i server edition in my machine, and created one database name ORCL.
I want to configure DATA GUARD APPLICATION in my machine... is it possible?
if it is then how can I do this...Yes, it is possible.
Please refer to the Dataguard Concepts and Administration Manual for installation guidance.
Please do not bother to come back to ask further doc questions, showing you are not prepared to do your own work.
Sybrand Bakker
Senior Oracle DBA -
Data Guard configuration for RAC database disappeared from Grid control
Primary Database Environment - Three node cluster
RAC Database 10.2.0.1.0
Linux Red Hat 4.0 2.6.9-22 64bit
ASM 10.2.0.1.0
Management Agent 10.2.0.2.0
Standby Database Environment - one Node database
Oracle Enterprise Edition 10.2.0.1.0 Single standby
Linux Red Hat 4.0 2.6.9-22 64bit
ASM 10.2.0.1.0
Management Agent 10.2.0.2.0
Grid Control 10.2.0.1.0 - Node separate from standby and cluster environments
Oracle 10.1.0.1.0
Grid Control 10.2.0.1.0
Red Hat 4.0 2.6.9-22 32bit
After adding a logical standby database through Grid Control for a RAC database, I noticed sometime later the Data Guard configuration disappeared from Grid Control. Not sure why but it is gone. I did notice that something went wrong with the standby creation but i did not get much feedback from Grid Control. The last thing I did was to view the configuration, see output below.
Initializing
Connected to instance qdcls0427:ELCDV3
Starting alert log monitor...
Updating Data Guard link on database homepage...
Data Protection Settings:
Protection mode : Maximum Performance
Log Transport Mode settings:
ELCDV.qdx.com: ARCH
ELXDV: ARCH
Checking standby redo log files.....OK
Checking Data Guard status
ELCDV.qdx.com : ORA-16809: multiple warnings detected for the database
ELXDV : Creation status unknown
Checking Inconsistent Properties
Checking agent status
ELCDV.qdx.com
qdcls0387.qdx.com ... OK
qdcls0388.qdx.com ... OK
qdcls0427.qdx.com ... OK
ELXDV ... WARNING: No credentials available for target ELXDV
Attempting agent ping ... OK
Switching log file 672.Done
WARNING: Skipping check for applied log on ELXDV : disabled
Processing completed.
Here are the steps followed to add the standby database in Grid Control
Maintenance tab
Setup and Manage Data Guard
Logged in as sys
Add standby database
Create a new logical standby database
Perform a live backup of the primary database
Specify backup directory for staging area
Specify standby database name and Oracle home location
Specify file location staging area on standby node
At the end am presented with a review of the selected options and then the standby database is created
Has any body come across a similar issue?
Thanks,Any resolution on this?
I just created a Logical Standby database and I'm getting the same warning (WARNING: No credentials available for target ...) when I do a 'Verify Configuration' from the Data Guard page.
Everything else seems to be working fine. Logs are being applied, etc.
I can't figure out what credentials its looking for. -
Hi Hussein,
We have Configure the Standby database for our 11.5.10.2 application database, I have configured standby database(data guard) for only oracle 10g but not for apps, please let me know what are all the steps to carry out this activity
REgds
BilalHi Bilal,
Please refer to the following notes, it should be helpful.
Note: 403347.1 - MAA Roadmap for the E-Business Suite
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=403347.1
Note: 216212.1 - Business Continuity for Oracle Applications Release 11i, Database Releases 9i and 10g
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=216212.1
Note: 464167.1 - Is Logical Standby Feature Supported For Oracle Applications Release 11i
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=464167.1
Regards,
Hussein -
Oracle data guard configuration for primary and standby db_name
I am working on configuring an active data guard for one primary DB and one standby DB. I have a few questions:
1. Can I use different db_name, db_unique_name and instance_name for primary and standby. For example: primary(db_name, db_unique_name and instance_name)=chicago. When I create standby DB with Rman backup and copy of pfile and control file from primary DB or use Grid control to create standby database. Oracle document or Grid control all keep standby db_name=chicago. Only make standby db_unique_name and instance_name=boston. Due to my application system condition, I want to make db_name=boston, not keep it as the same as primary=chicago. Is this valid configuration?
2. In primary datafiles, application system generate datafile name like this: hr_chicago_01.dbf, fn_chicago_01.dbf. When I move datafiles to standby server, if I plan to use db_name=boston for standby DB, can I rename datafiles as
hr_boston_01.dbf, fn_boston_01.dbf? In this way, datafile name match up with db_name. but I will create standby log group and members on primary and standby identically. If in future switching over, DB will not have problems.
3. If I don't use primary DB backup. Instead, I copy all datafiles, redo_log files (no control files) to standby. Then "alter database backup controlfile to trace" from promary and also " create pfile='/xxx/initSTANDBY.ora' from primary. Then modify init.ora and controlfile. Then run control.sql to bring standby DB up. After that, configure redo log shipping and apply with data guard or SQL. Is this a acceptable way to create physical standby DB?
Please advise your comments. Thanks in advance.I want to make db_name=boston, not keep it as the same as primary=chicago. Is this valid configuration?NO. DB_NAME must be the same ("chicago") at both sites. The Standby will be using a different DB_UNIQUE_NAME (e.g. "boston") and can be using a different Instance name / SID (e.g. "boston").
can I rename datafiles Yes. The database file names can be changed.
If I don't use primary DB backup. Instead, I copy all datafiles, redo_log files (no control files) to standbyWhat is the difference between the first sentence (a backup of the primary) and the second sentence (a copy of the primary) ? A Copy is a backup.
Are you intending to differentiate between an RMAN Backup and a User-Managed (aka "scripted") backup ?
Normally, for DataGuard, tou can use non-RMAN methods to copy the database but there's no value add in this.
You'd still have to setup DataGuard ! (and I wonder if you'd have complications setting up Active DataGuard).
But remember that you MUST create the Standby controlfile from the Primary and copy it over to your Standby -- particularly as you are planning to use DataGuard. This is not created by 'alter database backup controlfile to trace' , but by 'ALTER DATABASE CREATE STANDBY CONTROLFILE AS 'filename''
Hemant K Chitale -
Data Guard - Grid Control - Standby database
Heys,
now I have to RAC Clusters. The next step would be to setup a standby database to prepare a graceful switchover.
But what are the next steps ?
I am currently installing GridControl on a seperate host with the option: Enterprise Manager10g Grid Control Using an Existing Database
The installation is still running....
What are the steps ? Any documentation ? Any tutorials ?
Do I need to install agents on each client in the cluster ?
What about the name resolution ?
Any listener configuration necessary ?
Is the configuration done via data guard command line ?
ChristianBear in mind that the standby creation wizard in Grid Control will only create a non-RAC standby. Once you get to Grid Control 10.2.0.5 and your databases are in 11g you will be able to use the Grid Control convert to RAC wizard on your standby. Prior to that you will have to convert the standby to RAC manually or follow the above mentioned paper and create the standby by hand and then import it into Grid Control.
Larry -
Application of patches on oracle data guard 10g
Help!
I need apply the patch 9233832 on oracle 10.2.0.4 but I have configuration a pysical data guard. Considerations should I have to do? What steps should I follow?
Thanks.Hello;
I have the steps in my notes will post back here - These :
Disable log shipping from the Primary
Shutdown Standby
Install patch software on Standby
Startup Standby in recovery mode (do NOT run any SQL at the standby)
Shutdown Primary
Install patch software on Primary
Run SQL for patch on the Primary
Re-enable log shipping
Monitor the redo apply from Primary This is pretty much the same for a CPU type patch or going from say 11.2.0.1 to 11.2.0.2. On Standby you just install the software and let the redo handle the rest.
Best Regards
mseberg
Edited by: mseberg on Mar 6, 2012 12:56 PM -
I am looking for a document on "Active data guard configuration and setup".
In past I have used the following doc.....
http://wiki.oracle.com/page/11GR2+Data+Guard+Setup+project
But now the web link isn't available anymore (The link automatically redirects to www.oracle.com). The document was basically a workshop on how to setup Oracle 11gR2 active data guard with fast-failover option. It was an excellent document and very informative. Any idea where I can find it?
If anyone could point me to the document or atleast let me know who the author is....that will be extremly helpful.
Thanks,
SouravThanks for the reply! But no, that's not the one I was looking for.
The old URL "http://wiki.oracle.com/page/11GR2+Data+Guard+Setup+project" had step by step very detail directions on data guard setup starting from physical standby creation from scratch. Nor typical OBE style....... just step by step instructions. It was indeed a very popular document/workshop.
Since this web link was active just 2 months back, I was wondering if there would be an archived location or someone would be able to help me locate the doc. It's hard to believe that these very helpful docs are deleted overnight.
Thanks,
Sourav
Edited by: user11948852 on Aug 23, 2011 5:01 PM -
Data Guard Broker fails with ORA-16635 and ORA-03135
Hi All,
I configured Oracle RAC with Dataguard 11.2 on Windows 2003.
I've already configured Standby without Data Guard Broker and everything is working fine, but when I try to use Data Guard Broker, he can not synchronize the files from the Data Guard Broker.
I've tried everything including MOS, but not found anything.
I'm getting this error.
From Primary
DG 2011-02-11-09:15:41 0 2 0 NSV1: (MIV = 57) Start sending metadata file: "+DG_DATA/orcl/dgbroker/dg_config_file1.dat"
DG 2011-02-11-09:15:41 0 2 0 NSV1: Sending block #1 (containing MIV = 57), 67 blocks
DG 2011-02-11-09:15:42 0 2 0 NSV1: Error sending block #1, size 67 blocks. Error is ORA-16635.
DG 2011-02-11-09:15:42 0 2 0 NSV1: Current network link for metadata resync is broken.
DG 2011-02-11-09:15:42 0 2 0 NSV1: (MIV = 57) End metadata file transmission: opcode CTL_ENABLE (1.1.1825138532)
DG 2011-02-11-09:15:42 0 2 0 NSV1: Can't send CLOSE message to DRCX. Network error is: ORA-16635.
DG 2011-02-11-09:15:42 0 2 0 NSV1: Error is ORA-03135 connection lost contact
DG 2011-02-11-09:15:42 0 2 0 NSV1: Current network link for metadata resync is broken.From Standby
DG 2011-02-11-08:35:39 3001000 3 1825138419 for opcode = CTL_ENABLE, phase = RESYNCH, req_id = 1.1.1825138419
DG 2011-02-11-08:35:39 0 2 0 NSV2: Error sending block #1, size 67 blocks. Error is ORA-16635.
DG 2011-02-11-08:35:39 0 2 0 NSV2: Current network link for metadata resync is broken.
DG 2011-02-11-08:35:39 0 2 0 NSV2: (MIV = 11) End metadata file transmission: opcode CTL_ENABLE (1.1.1825138419)
DG 2011-02-11-08:35:39 0 2 0 NSV2: Can't send CLOSE message to DRCX. Network error is: ORA-16635.
DG 2011-02-11-08:35:39 0 2 0 NSV2: Current network link for metadata resync is broken.
DG 2011-02-11-08:35:39 0 2 0 NSV2: Metadata Resync failed. Status = ORA-16635
DG 2011-02-11-08:35:39 3001000 3 1825138419 DMON: Database ORCLSTBY returned ORA-16635Hi,
Are you using firewall between Hosts?
If yes check if firewall is blocking yours connections.
Set the following parameter in the sqlnet.ora file that would be referenced by each database, primary and standby.
SQLNET.EXPIRE_TIME=n
Where n is some number of minutes. Preferably below 10. When this parameter is enabled, a small 10 byte probe packet will be sent from node to node at specific intervals.
Regards,
Levi Pereira -
I have configured physical standby data guard on two different physical machines on oracle 10g. Log shipping is working fine. All the arch log generated on primary server is shipped to standby server successfully . On standby server, applied column shows 'YES' when queried from v$archived_log for all the logs. There are no errors in alert log on both the primary and standby servers.
Then,
When I check switchover_status on standby server i, why does it shows 'NOT ALLOWED' ?SWITCHOVER_STATUS Column Indicates whether switchover is allowed and it can following information,
_NOT ALLOWED - Either this is a standby database and the primary database has not been switched first_ or this is a primary database and there are no standby databases.
SESSIONS ACTIVE - Indicates that there are active SQL sessions attached to the primary or standby database that need to be disconnected before the switchover operation is permitted. Query the V$SESSION view to identify the specific processes that need to be terminated.
SWITCHOVER PENDING - This is a standby database and the primary database switchover request has been received but not processed.
SWITCHOVER LATENT - The switchover was in pending mode, but did not complete and went back to the primary database.
TO PRIMARY - This is a standby database and is allowed to switch over to a primary database.
TO STANDBY - This is a primary database and is allowed to switch over to a standby database.
RECOVERY NEEDED - This is a standby database that has not received the switchover request.
Thanks -
Should e-book Data Guard Concepts and Administration be useless for us?
I think The Data Guard Broker is an easy and efficient way to manage a Data Guard configuration. The Data Guard Broker provides us with two efficient tools: EM Console and DGMGRL. We can do everything we want for Data Guard system.
Why we spend so much time to read Oracle e-book Data Guard Concepts and Administration? I think it is useless. Only Broker is enough?Frank,
The thing is GUI tool itself is also program that need some one to manage. The developer of such tools cannot take care unlimited possibilities in the real world.
Just check how many threads in this forum about why emca, dbca and EM console not working.
Being a DBA, we should understand the underlying technology that driven the system. It's like driving a car. A regular customer could say I don't care about mechanics of a car. As long as it's running, that's enough. But we are not regular customer, we suppose to be the auto repair mechanician in Oracle world. We could enjoy driving a car, but at same time we should know why and how it's working. -
10g Data Guard Install Questions... Solaris 9
Firstly, I've done several Failsafe installes on Wintel platforms, but I'm having a tough time getting started installing Dataguard on Solaris. According to the manual:
Oracle® Data Guard Broker
10g Release 1 (10.1)
Part Number B10822-01
"The Oracle Data Guard graphical user interface (GUI), which you can use to manage broker configurations, is installed with the Oracle Enterprise Manager software."
I don't see any link or otherwise access to Data Guard via the 10g Enterprise Manager. Is there something that I missed during install that will allow me access Data Guard GUI?
I'm stuck
http://download-east.oracle.com/docs/cd/B14117_01/server.101/b10822/concepts.htm#sthref14rajeysh wrote:
refer the link:- hope this will help you.
http://blogs.oracle.com/AlejandroVargas/gems/DataGuardBrokerandobserverst.pdf
http://oracleinstance.blogspot.com/2010/01/configuration-of-10g-data-guard-broker.html
http://gjilevski.wordpress.com/2010/03/06/configuring-10g-data-guard-broker-and-observer-for-failover-and-switchover/
Good luck.
SQL> show parameter broker
NAME TYPE VALUE
dg_broker_config_file1 string /u03/KMC/db/tech_st/10.2.0/dbs
/dr1KMC_PROD.dat
dg_broker_config_file2 string /u03/KMC/db/tech_st/10.2.0/dbs
/dr2KMC_PROD.dat
dg_broker_start boolean FALSE
SQL>so i need only:
ALTER SYSTEM SET DG_BROKER_START=true scope=both;only to act in dgmgrl.
please confirm me ...... -
I am in need of Step by Step instruction set to implement Data Guard on 11gr2 OS linux.
Hi again;
Please also see:
http://wiki.oracle.com/page/DataGuard+%3A+Step-by-Step+Instructions+for+Creating+a+Physical+Standby+Database
http://www.oracletutorial.info/oracle-data-guard-11g/videos/oracle-data-guard-11g-step-by-step/
Regard
Helios
Maybe you are looking for
-
Dynamically changed view within a IFrame object in HTML page is not visible in UI Automation tree
Hi, I have a webpage where are are some links in the top of the page. Then there is a IFrame. When the web page is hit, it opens with a default page in the IFrame. Clicking on each link will load a page in the IFrame alone. The UI Automation tree d
-
I am freaking out! I am a college student and owner of my Iphone 3Gs. I just got it this past August and I don't understand what is wrong. I did not drop it or come into contact with any water or disabling substance. I am literally stuck on the calli
-
MacBook Pro 13" Audio Output sound quality terrible after Lion upgrade
Hi guys, I have recently upgraded my 2011 MBP 13 to Lion, and ever since have had terrible audio out sound quality, i.e. it is 'grainy' and full of feedback - very unpleasant to listen to. Is anyone else in the same boat and does anyone have the solu
-
Problem opening some PDF files in Adobe Acrobat
I have several PDF files that cannot be open in Adobe Acrobat. I have the message as shown below: There was an error opening this document. The file is damaged and could not be repaired. But I first discovered the problem in Adobe Reader: the files
-
ASO cache problem with Windows 7
I have a large base of AS2 classes that support my application. I've been working on it for a few years and I'm very familiar with the ASO cache problem that causes edits to not be compiled. Well, I hit it today and I can't get rid of the old files