473,714 Members | 2,623 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_DES T_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.or a' 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_sta rt=TRUE
standby_archive _dest='/disk1/oracle/oradata/payroll/standby'
db_file_name_co nvert=('/disk1/oracle/oradata/payroll/',
'/disk1/oracle/oradata/payroll/standby/')
log_file_name_c onvert=('/disk1/oracle/oradata/payroll/',
'/disk1/oracle/oradata/payroll/standby/')
log_archive_for mat=log%d_%t_%s .arc
log_archive_des t_1=('LOCATION=/disk1/oracle/oradata/payroll/standby/')
standby_file_ma nagement=AUTO
remote_archive_ enable=TRUE
instance_name=P AYROLL2
# 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_c onvert' & '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_T IME
parameter to 2 in the SQLNET.ORA parameter file on the standby system.
For example:

SQLNET.EXPIRE_T IME=2

[X] Create Oracle Net Service Names

[XI]Create a Server Parameter File for the Standby Database
SQL> CREATE SPFILE FROM PFILE='initpayr oll2.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 3334

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

Similar topics

1
5578
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 going fine. I have few questions about Standby Database which I could not find answer in Backup Recovery Guide.
0
3919
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 but have some doubts. here are the basic stpes i followed. 1 Either make a new backup of the primary database datafiles or access
3
7546
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 Oracle9i. I name the 2 system and DB for convenience. SYSTEM01 & DB NAME= APPLE (Primary) SYSTEM02 & DB NAME=INTEL (Standby)
7
12867
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 sorry as some of the queries i have posted twice).Is it that my doubt are funny and simple for u gurus. I am just interested in Oracle on Linux . i request u all to guide me.
0
2498
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 thread#,sequence#,archived,status from v$log; THREAD# SEQUENCE# ARC STATUS ---------- ---------- --- ---------------- 1 35 YES INACTIVE 1 36 YES INACTIVE
2
5869
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 server, checks for new logs, and, if any, simply rollforward to the end of logs. Most of the time everything looks fine with the only weird thing that
6
21938
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 down hill from there. Though the Standby machine seemed to know it was a standby it would not connect to the primary. I could not even do a db2 get snapshot to view the hadr status on the machine. I was wanting to do a few HADR tests before I...
0
4722
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 -Guarantees that no data loss will occur if the primary database fails. To provide this level of protection, the redo data needed to recover each transaction must be written to both the local online redo log and to a standby redo log on at least...
0
445
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 : http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96653/create_ps.htm#66206 Still i give the steps i followed. Preparing the Primary Database for Standby Database Creation
0
9314
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9174
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9015
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7953
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6634
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4725
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2520
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2110
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.