473,289 Members | 2,089 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,289 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 3285

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 : ...
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: 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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
1
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.