473,241 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,241 software developers and data experts.

ERROR in Standby database setup with RH9

sir,
The following are the steps that i followed in setting up standby
database on Red hat Linux 9. i am using Oracle 9i.

i have followed the steps in this site :

http://download-west.oracle.com/docs...e_ps.htm#66206

Still i give the steps i followed.
[i] Preparing the Primary Database for Standby Database Creation

Before you create a standby database you must first ensure that the
primary database is properly configured.
Place the primary database in FORCE LOGGING mode after database
creation using the following SQL statement:

SQL> ALTER DATABASE FORCE LOGGING;

Ensure that the primary database is in ARCHIVELOG mode, that automatic
archiving is enabled, and that you have defined a local archiving
destination.

Set the local archive destination using the following SQL statement:

SQL> ALTER SYSTEM SET
LOG_ARCHIVE_DEST_1='LOCATION=/disk1/oracle/oradata/payroll
2> MANDATORY' SCOPE=BOTH;

[II] Identify the Primary Database Datafiles

On the primary database, query the V$DATAFILE view to list the files
that will be used to create the physical standby database, as follows:

SQL> SELECT NAME FROM V$DATAFILE;
[III] Make a Copy of the Primary Database

On the primary database, perform the following steps to make a closed
backup copy of the primary database.
Step 1 Shut down the primary database.

SQL> SHUTDOWN IMMEDIATE;

Step 2 Copy the datafiles to a temporary location.

Step 3 Restart the primary database.

SQL> STARTUP;

[IV] Create a Control File for the Standby Database

SQL> ALTER DATABASE CREATE STANDBY CONTROLFILE AS
2> '/disk1/oracle/oradata/payroll/standby/payroll2.ctl';

[V] Prepare the Initialization Parameter File to be Copied to the
Standby Database

Create a traditional text initialization parameter file from the
server parameter file used by the primary database; a traditional text
initialization parameter file can be copied to the standby location
and modified

SQL> CREATE PFILE='/disk1/oracle/dbs/initpayroll2.ora' FROM SPFILE;

[VI] Copy Files from the Primary System to the Standby System

[VII] Set Initialization Parameters on a Physical Standby Database

Although most of the initialization parameter settings in the text
initialization parameter file that you copied from the primary system
are also appropriate for the physical standby database, some
modifications need to be made.

db_name=PAYROLL
compatible=9.2.0.1.0
control_files='/disk1/oracle/oradata/payroll/standby/payroll2.ctl'
log_archive_start=TRUE
standby_archive_dest='/disk1/oracle/oradata/payroll/standby'
db_file_name_convert=('/disk1/oracle/oradata/payroll/',
'/disk1/oracle/oradata/payroll/standby/')
log_file_name_convert=('/disk1/oracle/oradata/payroll/',
'/disk1/oracle/oradata/payroll/standby/')
log_archive_format=log%d_%t_%s.arc
log_archive_dest_1=('LOCATION=/disk1/oracle/oradata/payroll/standby/')
standby_file_management=AUTO
remote_archive_enable=TRUE
instance_name=PAYROLL2
# The following parameter is required only if the primary and standby
databases
# are located on the same system.
lock_name_space=PAYROLL2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@
I got some doubts here in modifying parameters :

1) Is the db_name kept same as that of primary ?
2) I think i have to give path of standby control file that i have
created.. right ?
3)Wat abt value in 'db_file_name_convert' & 'log_file_name_convert'
parameter ? what is the first path that i have to give ?my primary
database is in another system..

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@

[VIII] Configure Listeners for the Primary and Standby Databases

[IX] Enable Dead Connection Detection on the Standby System

Enable dead connection detection by setting the SQLNET.EXPIRE_TIME
parameter to 2 in the SQLNET.ORA parameter file on the standby system.
For example:

SQLNET.EXPIRE_TIME=2

[X] Create Oracle Net Service Names

[XI]Create a Server Parameter File for the Standby Database
SQL> CREATE SPFILE FROM PFILE='initpayroll2.ora';

[XII] Start the Physical Standby Database

On the standby database, issue the following SQL statements to start
and mount the database in standby mode:

SQL> STARTUP NOMOUNT;
SQL> ALTER DATABASE MOUNT STANDBY DATABASE;

################################################## ####
now i get the following error... can u help me out wats the problem???
the error is

SQL> alter database mount standby database;
alter database mount standby database
*
ERROR at line 1:
ORA-01102: cannot mount database in EXCLUSIVE mode
################################################## #####

Can anyone experienced such a problem..? pls do help me .. if anyone
can give me in personal mail pls donot hesitate.

thanking u in advance..
Cherrish Vaidiyan
Jul 19 '05 #1
0 3278

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mahesh Hardikar | last post by:
Hi , Oracle 8.1.7.0.0 on HP-UX 11.0 EMC2 Disk Array We are in a process of implementing DR Site using Standby Database feature of Oracle. We have tested it on 2 NT machines here & things are...
0
by: Cherrish Vaidiyan | last post by:
hello, Thanx for the suggestions on my Listener query. Now i am performing a simple work.. STANDBY DATABASE creation. I have followed the instraction from Oracle 9i Release 1 documentation...
3
by: Cherrish Vaidiyan | last post by:
Sir, A Warm and Smart 2004 greetings to all. I have a problem with standby database.I have been posting queries but no response ..... I am using 2 system running on Red Hat Linux9 and...
7
by: Cherrish Vaidiyan | last post by:
hello, I am been getting mad with so many doubts and errors.. I have posted some doubts,test cases regarding listener,replication and standby database.But i havent got any response..(I am...
0
by: Officer | last post by:
I want to setup standby database which reside on the same host with my primary database -dbSA is my primary and dbSB is my standby database. I select v$log as follows: SVRMGR> select...
2
by: fabrizio.blanco | last post by:
Hi all, I'm trying to setup a standby server using log shipping. The live database has a user exit in place, which archives the closed logs and ships them to the standby server. The standby...
6
by: shorti | last post by:
db2 8.1 fix pack 12 on AIX 5.3 This is a newly configured HADR machine. The HADR was up and running. I was 'playing' around some on the standby and did a db2 deactivate and things sort of went...
0
by: Vinod Sadanandan | last post by:
STANDBY DATABASE MONITORING & PROTECION MODES (9iR2) This document is written for understanding and monitoring standby database configured with diffrent protection modes . MAXIMUM PROTECTION ...
0
by: Cherrish Vaidiyan | last post by:
sir, The following are the steps that i followed in setting up standby database on Red hat Linux 9. i am using Oracle 9i. i have followed the steps in this site : ...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.