SlideShare a Scribd company logo
Created By Jorge S Batista                                              jbatista@scirex.com


              CREATING A NON-MANAGED STANDBY DATABASE

This document will provide a basic step-by-step instructions on how to create a Non-
Managed Standby Database on Oracle 8i and Windows.

You can set up a standby database in several different ways, depending on the method for
example:
      Oracle’s managed standby environment allows the primary database to
      automatically archive redo logs to the standby database site as long as the standby
      instance is started.

       Oracle’s non-managed standby environment, you must continually and manually
       transfer and apply archived redo logs to the standby database to keep it
       synchronized with the primary database.

Even if you setup remote, automatic archiving, there may be occasions where manual
shipment of archive logs is necessary.

If you are planning to open the standby database in read only mode, I recommend that
you create locally managed temporary tablespaces with tempfiles. If you do not, disk
based sorts will be prohibited since you cannot write to data files once the database is in
“read only” mode.

The following table explains the possible configurations depending on the environment
that you choose, but please keep in mind that my document talks about Non-Managed
Standby Databases.

Environment             Method of               Standby Database        Network
                        Transfer                Modes                   requirements
Managed                 Automatic or            Managed Recovery        Net8
                        manual if necessary     Manual Recovery
                                                Read-Only

Non-Managed             Manual Only             Manual Recovery         None
                                                Read-Only


For more information, see the Standby Database Concepts and Administration Book from
Oracle.

This is a basic step-by-step instructions document that does not get into all details of an
Oracle Standby databases




                                            -1-
Created By Jorge S Batista                                             jbatista@scirex.com



1) Create OFA Directory Structure on the Standby Server

       E:>md oracle
       E:>cd oracle

       E:oracle>md oradata
       E:oracle>cd oradata

       E:oracleoradata>md dmprod

       F:>md oracle
       F:>cd oracle

       F:oracle>md oraadmin
       F:oracle>cd oraadmin

       F:oracleoraadmin>md dmprod
       F:oracleoraadmin>cd dmprod

       F:oracleoraadmindmprod>md udump
       F:oracleoraadmindmprod>md create
       F:oracleoraadmindmprod>md pfile
       F:oracleoraadmindmprod>md bdump

2) Install the Oracle Software:
       Install Oracle8i to the following location: E:oracleorcl817

3) Ensure the Primary Database is in ARCHIVELOG Mode:
       C:>sqplus /nolog

       SQL>connect as sysdba
       SQL> archive log list

        Database log mode          Archive Mode
        Automatic archival         Enabled
        Archive destination       G:ArchiveDMPROD
        Oldest online log sequence x
        Next log sequence to archive y
        Current log sequence       y




                                           -2-
Created By Jorge S Batista                                              jbatista@scirex.com



4) Create a full Backup (coldbackup) of the Primary Database:
   Create a backup of all datafiles and online redo logs using an OS command or utility.
   A backup of the online redo logs is necessary to facilitate switchover.

       From the Primary Database Server:

       MAP a drive to the STANNDBY Database Server:
             C:>Net Use Z: PHLORCL5E$

       Shutdown the Database:
             C:>sqlplus /nolog

               SQL>connect / as sysdba
               SQL>shutdown immediate
               SQL>exit

       Copy the files to the Standby Host: (From the Primary Database Server:)

               C:>XCOPY F:ORACLEORADATADMPRO*.* Z:ORACLEORADATADMPRO /D
               C:>XCOPY G:ORACLEORADATADMPRO*.* Z:ORACLEORADATADMPRO /D
               C:>XCOPY I:ORACLEORADATADMPRO*.* Z:ORACLEORADATADMPRO /D


       Once complete startup the Primary/Production instance:
             C:>sqlplus /nolog

               SQL>connect / as sysdba
               SQL> STARTUP PFILE=F:OracleOraAdminDMPRODPFileinitDMPROD.ora
               SQL>exit

5) From the STANDBY DATABASE delete all control files:

       E: ORACLEORADATADMPRO >DEL *.CTL

6) Connect to your Primary Database and create the Stanby Controlfile:

       C:>sqlplus /nolog

       SQL>connect / as sysdba
       SQL> alter database create standby controlfile as 'E:TEMPstbyprod.ctl';
       SQL>exit

7) Transfer the Stanby Controlfile to the Standby Host: (do not edit this file!!)

       C:>XCOPY E:TEMPstbyprod.ctl Z:ORACLEORADATADMPRO /D




                                            -3-
Created By Jorge S Batista                                                       jbatista@scirex.com


8) Copy the following files from the Primary Database Server to the Standby Database
Server:
        From the Primary Database Server map a drive to the STANNDBY Database
Server:
       C:>Net Use X: PHLORCL5F$

       C:> XCOPY F:oracleoraadmindmprodpfileinitdmprod.ora X:oracleoraadmindmprodpfile /D
       C:> XCOPY E:oracleorcl817NetworkAdmintnsnames.ora X:oracleorcl817NetworkAdmin /D
       C:> XCOPY E:oracleorcl817NetworkAdminsqlnet.ora X:oracleorcl817NetworkAdmin /D
       C:> XCOPY E:oracleorcl817NetworkAdminlistener.ora X:oracleorcl817NetworkAdmin /D



At this point we have all we need to create the STANDBY Database.
Please, keep in mind that the Standby Database Server has one RAID5 Drive E and one
RAID1 Drive F, so we will have to do some renaming of the files.

If the standby has the same directory structure as the primary database then we do not
have to do any conversion or renaming of the files.

Our Standby Database has a different directory structure than the Primary Database, so
we must rename the files in the Standby Database

This can be done using the db_file_name_convert and log_file_name_convert
INIT.ORA-parameters or by manually using the ALTER DATABASE statements.

In our case, we will use both options.

9) Configure the INIT.ORA file:

  On the Primary Database we do not have to do anything.

  On the Standby Database we have to do the following:
      9.1. Remove all entries for the Control Files
      9.2. Make sure that UDUMP, BDUMP, PFile are pointing to the correct PATH
              F:oracleoraadmindmprodbdump
              F:oracleoraadmindmprodudump
              F:oracleoraadmindmprodpfile

       9.3. Check entries for Archiving:

          Primary INIT.ORA:
              log_archive_start=true
              log_archive_dest=G:ArchiveDMPROD
              log_archive_format=arch%s.arc




                                                 -4-
Created By Jorge S Batista                                                jbatista@scirex.com



           Standby INIT.ORA:
               log_archive_start=true
               log_archive_dest=E:ArchiveDMPROD
               log_archive_format=arch%s.arc (MUST be the same as on Primiary !!)

        9.4 Add the entry for the Control File
              control_files=E:oracleORADATADMPRODSTBYPROD.CTL

        9.5 Add the entry for the renaming of the files:
               #convert ALL data files from G location to E Location
               db_file_name_convert="G:ORACLEORADATADMPROD", "E:ORACLEORADATADMPROD"
               #
               #convert ALL log files from G location to E Location
               log_file_name_convert="G:ORACLEORADATADMPROD", "E:ORACLEORADATADMPROD"


10) Configure Networking Components:

TNSNAMES.ORA File Configuration:

  On the Primary Database we do not have to do anything.

        TNSNAMES.ORA (on Primary Host):

        DMPROD.scirex.com =
        (DESCRIPTION =
         (SOURCE_ROUTE = OFF)
         (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST =PHORCL6)(PORT = 1521))
        )
        (CONNECT_DATA=(SERVICE_NAME = DMPROD))
    )

  On the Standby Database: make sure you update the Host Name

        TNSNAMES.ORA (on Standby Host):

        DMPROD.scirex.com =
        (DESCRIPTION =
         (SOURCE_ROUTE = OFF)
         (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST =PHLORCL5)(PORT = 1521))
        )
        (CONNECT_DATA=(SERVICE_NAME = DMPROD))
    )




                                             -5-
Created By Jorge S Batista                                          jbatista@scirex.com



LISTENER.ORA File Configuration:

  On the Primary Database we do not have to do anything.

       LISTENER.ORA (on Primary Host):

       LISTENER =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = PHORCL6)(PORT = 1521))
        )

       SID_LIST_LISTENER =
        (SID_LIST =
          (SID_DESC =
            (GLOBAL_DBNAME = DMPROD)
            (ORACLE_HOME = e:oracleorcl817)
            (SID_NAME = DMPROD)
          )
        )

  On the Standby Database: make sure you update the Host Name

       LISTENER.ORA (on Standby Host):

       LISTENER =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = PHLORCL5)(PORT = 1521))
        )

       SID_LIST_LISTENER =
        (SID_LIST =
          (SID_DESC =
            (GLOBAL_DBNAME = DMPROD)
            (ORACLE_HOME = e:oracleorcl817)
            (SID_NAME = DMPROD)
          )
        )


11) WINDOWS NT/2000 only: Create a Windows Service for the new Standby Database
Before you startup the Standby instance, you have to

create and start a Windows Service for this Standby Database. You can create this
Service using the ORADIM-utility:




                                          -6-
Created By Jorge S Batista                                           jbatista@scirex.com

   C:>ORADIM -NEW -SID DMPROD -INTPWD my_password -STARTMODE MANUAL -PFILE
F:OracleOraAdminDMPRODpfileinitDMPROD.ora



12) Start the Standby Instance and mount the Standby Database:

  C:>set oracle_sid=DMPROD
  C:>net start "OracleServiceDMPROD"

  C:>sqlplus /nolog

  SQL>connect / as sysdba
  SQL>STARTUP NOMOUNT PFILE=F:OracleOraAdminDMPRODPFileinitDMPROD.ora
  SLQ>alter database mount standby database;

13) Adjust Filenames:

  SQL>spool f:tempren_files.log

  SQL>ALTER DATABASE RENAME FILE 'I:ORACLEORADATADMPRODEDMCLIN01.DBF'
TO 'E:ORACLEORADATADMPRODEDMCLIN01.DBF';

  SQL>ALTER DATABASE RENAME FILE 'I:ORACLEORADATADMPRODEDMCLIN02.DBF'
TO 'E:ORACLEORADATADMPRODEDMCLIN02.DBF';

  SQL>ALTER DATABASE RENAME FILE 'I:ORACLEORADATADMPRODEDMIDX01.DBF'
TO 'E:ORACLEORADATADMPRODEDMIDX01.DBF';

  SQL>ALTER DATABASE RENAME FILE 'I:ORACLEORADATADMPRODEDMIDX02.DBF'
TO 'E:ORACLEORADATADMPRODEDMIDX02.DBF';

   SQL>ALTER DATABASE RENAME FILE 'I:ORACLEORADATADMPRODRBS01.DBF'              TO
'E:ORACLEORADATADMPRODRBS01.DBF';

   SQL>ALTER DATABASE RENAME FILE 'I:ORACLEORADATADMPRODRBS12.DBF'              TO
'E:ORACLEORADATADMPRODRBS12.DBF';

   SQL>ALTER DATABASE RENAME FILE 'I:ORACLEORADATADMPRODUSER01.DBF'             TO
'E:ORACLEORADATADMPRODUSER01.DBF';

  SQL>ALTER DATABASE RENAME FILE 'F:ORACLEORADATADMPRODLOG1A.ORA'
TO 'E:ORACLEORADATADMPRODLOG1A.ORA';

  SQL>ALTER DATABASE RENAME FILE 'F:ORACLEORADATADMPRODLOG2B.ORA'
TO 'E:ORACLEORADATADMPRODLOG2B.ORA';

  SQL>ALTER DATABASE RENAME FILE 'F:ORACLEORADATADMPRODLOG3A.ORA'
TO 'E:ORACLEORADATADMPRODLOG3A.ORA';

  SQL>ALTER DATABASE RENAME FILE 'F:ORACLEORADATADMPRODLOG4B.ORA'
TO 'E:ORACLEORADATADMPRODLOG4B.ORA';

  SQL>spool off


                                          -7-
Created By Jorge S Batista                                           jbatista@scirex.com


14) Start Listener:

  Perform a LSNRCTL STOP and LSNRCTL START on Standby Site to make the
Changes take effect.

15) Bounce Primary Database for Change of INIT.ORA-Parameters to take effect.

16) Keep Standby database Current:

  To keep the standby current, manually copy archived redo logs
  as they are generated on the primary, then apply them to the standby.

 (This can be accomplished best by a batch job).

17) Apply any logs already archived to the standby host:

  C:>set oracle_sid=DMPROD
  C:>net start "OracleServiceDMPROD"

  C:>sqlplus /nolog

  SQL>connect / as sysdba
  SQL>spool F:tempstartDMPROD.log
 SQL>STARTUP NOMOUNT PFILE=F:OracleOraAdminDMPRODPFileinitDMPROD.ora
  SQL>ALTER DATABASE MOUNT STANDBY DATABASE;
  SQL>RECOVER STANDBY DATABASE;
  ORA-00279: change 277355 generated at ....
  ORA-00289: suggestion : ....
  ORA-00280: change 277355 ....
  Specify log: {<RET>=suggested | filename | AUTO | CANCEL}

   When prompted, type AUTO. All archived logs will be applied. As
   soon as Oracle fails to find a log, the recovery session will be
   terminated, and the user will be returned to the SVRMGR prompt:

   ORA-00308: cannot open archived log ....
   ORA-27041: unable to open file
   OSD-04002: unable to open file
   OS Error: (OS 2) The system cannot find the file specified

   SQL>shutdown immediate
   SQL>exit

18) At this stage, the standby database is ready




                                           -8-

More Related Content

What's hot

FIXING BLOCK CORRUPTION (RMAN) on 11G
FIXING BLOCK CORRUPTION (RMAN) on 11GFIXING BLOCK CORRUPTION (RMAN) on 11G
FIXING BLOCK CORRUPTION (RMAN) on 11G
N/A
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different host
Osama Mustafa
 
Basic - Oracle Edition Based Redefinition Presentation
Basic - Oracle Edition Based Redefinition PresentationBasic - Oracle Edition Based Redefinition Presentation
Basic - Oracle Edition Based Redefinition Presentation
N/A
 
Backup and Restore of database on 2-Node RAC
Backup and Restore of database on 2-Node RACBackup and Restore of database on 2-Node RAC
Backup and Restore of database on 2-Node RAC
Paulo Fagundes
 
Exadata - BULK DATA LOAD Testing on Database Machine
Exadata - BULK DATA LOAD Testing on Database Machine Exadata - BULK DATA LOAD Testing on Database Machine
Exadata - BULK DATA LOAD Testing on Database Machine
Monowar Mukul
 
Backup and Recovery
Backup and RecoveryBackup and Recovery
Backup and Recovery
Anar Godjaev
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
uzzal basak
 
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
Markus Flechtner
 
Oracle upgrade
Oracle upgradeOracle upgrade
Oracle upgrade
Raj p
 
Oracle goldengate 11g schema replication from standby database
Oracle goldengate 11g schema replication from standby databaseOracle goldengate 11g schema replication from standby database
Oracle goldengate 11g schema replication from standby database
uzzal basak
 
The first bug on Oracle Database 12c: how to create a pdb by cloning a remote...
The first bug on Oracle Database 12c: how to create a pdb by cloning a remote...The first bug on Oracle Database 12c: how to create a pdb by cloning a remote...
The first bug on Oracle Database 12c: how to create a pdb by cloning a remote...
Marco Vigelini
 
oracle dba
oracle dbaoracle dba
oracle dba
uday jampani
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
subhani shaik
 
Rman cloning guide
Rman cloning guideRman cloning guide
Rman cloning guide
Amit87_dba
 
Creating a physical standby database 11g on windows
Creating a physical standby database 11g on windowsCreating a physical standby database 11g on windows
Creating a physical standby database 11g on windows
Roo Wall
 
Build Your OS Part1
Build Your OS Part1Build Your OS Part1
Build Your OS Part1
Ahmed Hashem El Fiky
 
RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA
Guatemala User Group
 
B35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarezB35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarez
Insight Technology, Inc.
 
Testing Orachk for Database Health Monitoring
Testing Orachk for Database Health MonitoringTesting Orachk for Database Health Monitoring
Testing Orachk for Database Health Monitoring
Monowar Mukul
 
Change DB Name
Change DB NameChange DB Name
Change DB Name
Anar Godjaev
 

What's hot (20)

FIXING BLOCK CORRUPTION (RMAN) on 11G
FIXING BLOCK CORRUPTION (RMAN) on 11GFIXING BLOCK CORRUPTION (RMAN) on 11G
FIXING BLOCK CORRUPTION (RMAN) on 11G
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different host
 
Basic - Oracle Edition Based Redefinition Presentation
Basic - Oracle Edition Based Redefinition PresentationBasic - Oracle Edition Based Redefinition Presentation
Basic - Oracle Edition Based Redefinition Presentation
 
Backup and Restore of database on 2-Node RAC
Backup and Restore of database on 2-Node RACBackup and Restore of database on 2-Node RAC
Backup and Restore of database on 2-Node RAC
 
Exadata - BULK DATA LOAD Testing on Database Machine
Exadata - BULK DATA LOAD Testing on Database Machine Exadata - BULK DATA LOAD Testing on Database Machine
Exadata - BULK DATA LOAD Testing on Database Machine
 
Backup and Recovery
Backup and RecoveryBackup and Recovery
Backup and Recovery
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
 
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
 
Oracle upgrade
Oracle upgradeOracle upgrade
Oracle upgrade
 
Oracle goldengate 11g schema replication from standby database
Oracle goldengate 11g schema replication from standby databaseOracle goldengate 11g schema replication from standby database
Oracle goldengate 11g schema replication from standby database
 
The first bug on Oracle Database 12c: how to create a pdb by cloning a remote...
The first bug on Oracle Database 12c: how to create a pdb by cloning a remote...The first bug on Oracle Database 12c: how to create a pdb by cloning a remote...
The first bug on Oracle Database 12c: how to create a pdb by cloning a remote...
 
oracle dba
oracle dbaoracle dba
oracle dba
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
 
Rman cloning guide
Rman cloning guideRman cloning guide
Rman cloning guide
 
Creating a physical standby database 11g on windows
Creating a physical standby database 11g on windowsCreating a physical standby database 11g on windows
Creating a physical standby database 11g on windows
 
Build Your OS Part1
Build Your OS Part1Build Your OS Part1
Build Your OS Part1
 
RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA
 
B35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarezB35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarez
 
Testing Orachk for Database Health Monitoring
Testing Orachk for Database Health MonitoringTesting Orachk for Database Health Monitoring
Testing Orachk for Database Health Monitoring
 
Change DB Name
Change DB NameChange DB Name
Change DB Name
 

Similar to How to create a non managed standby database

Create manula and automaticly database
Create manula and automaticly databaseCreate manula and automaticly database
Create manula and automaticly database
Anar Godjaev
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
influxbob
 
2011 384 hackworth_ppt
2011 384 hackworth_ppt2011 384 hackworth_ppt
2011 384 hackworth_ppt
maclean liu
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard Setup
Arun Sharma
 
Oracle-12cData-Guard-Broker-Session-4.pptx
Oracle-12cData-Guard-Broker-Session-4.pptxOracle-12cData-Guard-Broker-Session-4.pptx
Oracle-12cData-Guard-Broker-Session-4.pptx
naveencl4
 
Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4
mohammed shahnawaz ahmed
 
Pluggable Databases: What they will break and why you should use them anyway!
Pluggable Databases: What they will break and why you should use them anyway!Pluggable Databases: What they will break and why you should use them anyway!
Pluggable Databases: What they will break and why you should use them anyway!
Guatemala User Group
 
Oracle Database Backup
Oracle Database BackupOracle Database Backup
Oracle Database Backup
Handy_Backup
 
Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1
Voeurng Sovann
 
D17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sqlD17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sql
Moeen_uddin
 
Linux configer
Linux configerLinux configer
Linux configer
MD. AL AMIN
 
Peoplesoft installation steps
Peoplesoft installation stepsPeoplesoft installation steps
Peoplesoft installation steps
Rogério Pereira Falcone
 
Distrubuted database connection with oracle
Distrubuted database connection with oracleDistrubuted database connection with oracle
Distrubuted database connection with oracle
ashrafulais
 
Oracle backup
Oracle backupOracle backup
Oracle backup
Ravi Kumar Lanke
 
Bacula - Backup system
Bacula - Backup systemBacula - Backup system
Bacula - Backup system
Mohammad Parvin
 
12c (12.1) Database installation on Solaris 11(11.2)
12c (12.1) Database  installation on Solaris 11(11.2)12c (12.1) Database  installation on Solaris 11(11.2)
12c (12.1) Database installation on Solaris 11(11.2)
K Kumar Guduru
 
Cloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step ProcedureCloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step Procedure
Orazer Technologies
 
Auditing security of Oracle DB (Karel Miko)
Auditing security of Oracle DB (Karel Miko)Auditing security of Oracle DB (Karel Miko)
Auditing security of Oracle DB (Karel Miko)
DCIT, a.s.
 
Oracle 12c - Multitenant Feature
Oracle 12c - Multitenant FeatureOracle 12c - Multitenant Feature
Oracle 12c - Multitenant Feature
Vigilant Technologies
 
Cloning 2
Cloning 2Cloning 2
Cloning 2
Deepti Singh
 

Similar to How to create a non managed standby database (20)

Create manula and automaticly database
Create manula and automaticly databaseCreate manula and automaticly database
Create manula and automaticly database
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
 
2011 384 hackworth_ppt
2011 384 hackworth_ppt2011 384 hackworth_ppt
2011 384 hackworth_ppt
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard Setup
 
Oracle-12cData-Guard-Broker-Session-4.pptx
Oracle-12cData-Guard-Broker-Session-4.pptxOracle-12cData-Guard-Broker-Session-4.pptx
Oracle-12cData-Guard-Broker-Session-4.pptx
 
Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4
 
Pluggable Databases: What they will break and why you should use them anyway!
Pluggable Databases: What they will break and why you should use them anyway!Pluggable Databases: What they will break and why you should use them anyway!
Pluggable Databases: What they will break and why you should use them anyway!
 
Oracle Database Backup
Oracle Database BackupOracle Database Backup
Oracle Database Backup
 
Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1
 
D17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sqlD17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sql
 
Linux configer
Linux configerLinux configer
Linux configer
 
Peoplesoft installation steps
Peoplesoft installation stepsPeoplesoft installation steps
Peoplesoft installation steps
 
Distrubuted database connection with oracle
Distrubuted database connection with oracleDistrubuted database connection with oracle
Distrubuted database connection with oracle
 
Oracle backup
Oracle backupOracle backup
Oracle backup
 
Bacula - Backup system
Bacula - Backup systemBacula - Backup system
Bacula - Backup system
 
12c (12.1) Database installation on Solaris 11(11.2)
12c (12.1) Database  installation on Solaris 11(11.2)12c (12.1) Database  installation on Solaris 11(11.2)
12c (12.1) Database installation on Solaris 11(11.2)
 
Cloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step ProcedureCloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step Procedure
 
Auditing security of Oracle DB (Karel Miko)
Auditing security of Oracle DB (Karel Miko)Auditing security of Oracle DB (Karel Miko)
Auditing security of Oracle DB (Karel Miko)
 
Oracle 12c - Multitenant Feature
Oracle 12c - Multitenant FeatureOracle 12c - Multitenant Feature
Oracle 12c - Multitenant Feature
 
Cloning 2
Cloning 2Cloning 2
Cloning 2
 

More from Jorge Batista

Step by step installation of oracle19c (19.3.0.0.0) on windows 2016
Step by step installation of oracle19c (19.3.0.0.0) on windows 2016Step by step installation of oracle19c (19.3.0.0.0) on windows 2016
Step by step installation of oracle19c (19.3.0.0.0) on windows 2016
Jorge Batista
 
Step by Step installation of oracle18c (18.3.0.0.0) on windows 2012 r2
Step by Step installation of oracle18c (18.3.0.0.0) on windows 2012 r2Step by Step installation of oracle18c (18.3.0.0.0) on windows 2012 r2
Step by Step installation of oracle18c (18.3.0.0.0) on windows 2012 r2
Jorge Batista
 
Step by step installation of oracle business intelligence 12c enterprise edition
Step by step installation of oracle business intelligence 12c enterprise editionStep by step installation of oracle business intelligence 12c enterprise edition
Step by step installation of oracle business intelligence 12c enterprise edition
Jorge Batista
 
Step by Step Oracle11g out of-place upgrade from 11.2.0.3 to 11.2.0.4
Step by Step Oracle11g out of-place upgrade from 11.2.0.3 to 11.2.0.4Step by Step Oracle11g out of-place upgrade from 11.2.0.3 to 11.2.0.4
Step by Step Oracle11g out of-place upgrade from 11.2.0.3 to 11.2.0.4
Jorge Batista
 
How to calculate the optimal undo retention in Oracle
How to calculate the optimal undo retention in OracleHow to calculate the optimal undo retention in Oracle
How to calculate the optimal undo retention in Oracle
Jorge Batista
 
Step by Step installation of SAP BusinessObjects BI Platform 4.0 on Windows 2...
Step by Step installation of SAP BusinessObjects BI Platform 4.0 on Windows 2...Step by Step installation of SAP BusinessObjects BI Platform 4.0 on Windows 2...
Step by Step installation of SAP BusinessObjects BI Platform 4.0 on Windows 2...
Jorge Batista
 
Step by Step Installation of Oracle11gR2 on OEL5 and VMware
Step by Step Installation of Oracle11gR2 on OEL5 and VMwareStep by Step Installation of Oracle11gR2 on OEL5 and VMware
Step by Step Installation of Oracle11gR2 on OEL5 and VMware
Jorge Batista
 

More from Jorge Batista (7)

Step by step installation of oracle19c (19.3.0.0.0) on windows 2016
Step by step installation of oracle19c (19.3.0.0.0) on windows 2016Step by step installation of oracle19c (19.3.0.0.0) on windows 2016
Step by step installation of oracle19c (19.3.0.0.0) on windows 2016
 
Step by Step installation of oracle18c (18.3.0.0.0) on windows 2012 r2
Step by Step installation of oracle18c (18.3.0.0.0) on windows 2012 r2Step by Step installation of oracle18c (18.3.0.0.0) on windows 2012 r2
Step by Step installation of oracle18c (18.3.0.0.0) on windows 2012 r2
 
Step by step installation of oracle business intelligence 12c enterprise edition
Step by step installation of oracle business intelligence 12c enterprise editionStep by step installation of oracle business intelligence 12c enterprise edition
Step by step installation of oracle business intelligence 12c enterprise edition
 
Step by Step Oracle11g out of-place upgrade from 11.2.0.3 to 11.2.0.4
Step by Step Oracle11g out of-place upgrade from 11.2.0.3 to 11.2.0.4Step by Step Oracle11g out of-place upgrade from 11.2.0.3 to 11.2.0.4
Step by Step Oracle11g out of-place upgrade from 11.2.0.3 to 11.2.0.4
 
How to calculate the optimal undo retention in Oracle
How to calculate the optimal undo retention in OracleHow to calculate the optimal undo retention in Oracle
How to calculate the optimal undo retention in Oracle
 
Step by Step installation of SAP BusinessObjects BI Platform 4.0 on Windows 2...
Step by Step installation of SAP BusinessObjects BI Platform 4.0 on Windows 2...Step by Step installation of SAP BusinessObjects BI Platform 4.0 on Windows 2...
Step by Step installation of SAP BusinessObjects BI Platform 4.0 on Windows 2...
 
Step by Step Installation of Oracle11gR2 on OEL5 and VMware
Step by Step Installation of Oracle11gR2 on OEL5 and VMwareStep by Step Installation of Oracle11gR2 on OEL5 and VMware
Step by Step Installation of Oracle11gR2 on OEL5 and VMware
 

Recently uploaded

Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
fredae14
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
Project Management Semester Long Project - Acuity
Project Management Semester Long Project - AcuityProject Management Semester Long Project - Acuity
Project Management Semester Long Project - Acuity
jpupo2018
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Webinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data WarehouseWebinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data Warehouse
Federico Razzoli
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 

Recently uploaded (20)

Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
Project Management Semester Long Project - Acuity
Project Management Semester Long Project - AcuityProject Management Semester Long Project - Acuity
Project Management Semester Long Project - Acuity
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Webinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data WarehouseWebinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data Warehouse
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 

How to create a non managed standby database

  • 1. Created By Jorge S Batista jbatista@scirex.com CREATING A NON-MANAGED STANDBY DATABASE This document will provide a basic step-by-step instructions on how to create a Non- Managed Standby Database on Oracle 8i and Windows. You can set up a standby database in several different ways, depending on the method for example: Oracle’s managed standby environment allows the primary database to automatically archive redo logs to the standby database site as long as the standby instance is started. Oracle’s non-managed standby environment, you must continually and manually transfer and apply archived redo logs to the standby database to keep it synchronized with the primary database. Even if you setup remote, automatic archiving, there may be occasions where manual shipment of archive logs is necessary. If you are planning to open the standby database in read only mode, I recommend that you create locally managed temporary tablespaces with tempfiles. If you do not, disk based sorts will be prohibited since you cannot write to data files once the database is in “read only” mode. The following table explains the possible configurations depending on the environment that you choose, but please keep in mind that my document talks about Non-Managed Standby Databases. Environment Method of Standby Database Network Transfer Modes requirements Managed Automatic or Managed Recovery Net8 manual if necessary Manual Recovery Read-Only Non-Managed Manual Only Manual Recovery None Read-Only For more information, see the Standby Database Concepts and Administration Book from Oracle. This is a basic step-by-step instructions document that does not get into all details of an Oracle Standby databases -1-
  • 2. Created By Jorge S Batista jbatista@scirex.com 1) Create OFA Directory Structure on the Standby Server E:>md oracle E:>cd oracle E:oracle>md oradata E:oracle>cd oradata E:oracleoradata>md dmprod F:>md oracle F:>cd oracle F:oracle>md oraadmin F:oracle>cd oraadmin F:oracleoraadmin>md dmprod F:oracleoraadmin>cd dmprod F:oracleoraadmindmprod>md udump F:oracleoraadmindmprod>md create F:oracleoraadmindmprod>md pfile F:oracleoraadmindmprod>md bdump 2) Install the Oracle Software: Install Oracle8i to the following location: E:oracleorcl817 3) Ensure the Primary Database is in ARCHIVELOG Mode: C:>sqplus /nolog SQL>connect as sysdba SQL> archive log list Database log mode Archive Mode Automatic archival Enabled Archive destination G:ArchiveDMPROD Oldest online log sequence x Next log sequence to archive y Current log sequence y -2-
  • 3. Created By Jorge S Batista jbatista@scirex.com 4) Create a full Backup (coldbackup) of the Primary Database: Create a backup of all datafiles and online redo logs using an OS command or utility. A backup of the online redo logs is necessary to facilitate switchover. From the Primary Database Server: MAP a drive to the STANNDBY Database Server: C:>Net Use Z: PHLORCL5E$ Shutdown the Database: C:>sqlplus /nolog SQL>connect / as sysdba SQL>shutdown immediate SQL>exit Copy the files to the Standby Host: (From the Primary Database Server:) C:>XCOPY F:ORACLEORADATADMPRO*.* Z:ORACLEORADATADMPRO /D C:>XCOPY G:ORACLEORADATADMPRO*.* Z:ORACLEORADATADMPRO /D C:>XCOPY I:ORACLEORADATADMPRO*.* Z:ORACLEORADATADMPRO /D Once complete startup the Primary/Production instance: C:>sqlplus /nolog SQL>connect / as sysdba SQL> STARTUP PFILE=F:OracleOraAdminDMPRODPFileinitDMPROD.ora SQL>exit 5) From the STANDBY DATABASE delete all control files: E: ORACLEORADATADMPRO >DEL *.CTL 6) Connect to your Primary Database and create the Stanby Controlfile: C:>sqlplus /nolog SQL>connect / as sysdba SQL> alter database create standby controlfile as 'E:TEMPstbyprod.ctl'; SQL>exit 7) Transfer the Stanby Controlfile to the Standby Host: (do not edit this file!!) C:>XCOPY E:TEMPstbyprod.ctl Z:ORACLEORADATADMPRO /D -3-
  • 4. Created By Jorge S Batista jbatista@scirex.com 8) Copy the following files from the Primary Database Server to the Standby Database Server: From the Primary Database Server map a drive to the STANNDBY Database Server: C:>Net Use X: PHLORCL5F$ C:> XCOPY F:oracleoraadmindmprodpfileinitdmprod.ora X:oracleoraadmindmprodpfile /D C:> XCOPY E:oracleorcl817NetworkAdmintnsnames.ora X:oracleorcl817NetworkAdmin /D C:> XCOPY E:oracleorcl817NetworkAdminsqlnet.ora X:oracleorcl817NetworkAdmin /D C:> XCOPY E:oracleorcl817NetworkAdminlistener.ora X:oracleorcl817NetworkAdmin /D At this point we have all we need to create the STANDBY Database. Please, keep in mind that the Standby Database Server has one RAID5 Drive E and one RAID1 Drive F, so we will have to do some renaming of the files. If the standby has the same directory structure as the primary database then we do not have to do any conversion or renaming of the files. Our Standby Database has a different directory structure than the Primary Database, so we must rename the files in the Standby Database This can be done using the db_file_name_convert and log_file_name_convert INIT.ORA-parameters or by manually using the ALTER DATABASE statements. In our case, we will use both options. 9) Configure the INIT.ORA file: On the Primary Database we do not have to do anything. On the Standby Database we have to do the following: 9.1. Remove all entries for the Control Files 9.2. Make sure that UDUMP, BDUMP, PFile are pointing to the correct PATH F:oracleoraadmindmprodbdump F:oracleoraadmindmprodudump F:oracleoraadmindmprodpfile 9.3. Check entries for Archiving: Primary INIT.ORA: log_archive_start=true log_archive_dest=G:ArchiveDMPROD log_archive_format=arch%s.arc -4-
  • 5. Created By Jorge S Batista jbatista@scirex.com Standby INIT.ORA: log_archive_start=true log_archive_dest=E:ArchiveDMPROD log_archive_format=arch%s.arc (MUST be the same as on Primiary !!) 9.4 Add the entry for the Control File control_files=E:oracleORADATADMPRODSTBYPROD.CTL 9.5 Add the entry for the renaming of the files: #convert ALL data files from G location to E Location db_file_name_convert="G:ORACLEORADATADMPROD", "E:ORACLEORADATADMPROD" # #convert ALL log files from G location to E Location log_file_name_convert="G:ORACLEORADATADMPROD", "E:ORACLEORADATADMPROD" 10) Configure Networking Components: TNSNAMES.ORA File Configuration: On the Primary Database we do not have to do anything. TNSNAMES.ORA (on Primary Host): DMPROD.scirex.com = (DESCRIPTION = (SOURCE_ROUTE = OFF) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST =PHORCL6)(PORT = 1521)) ) (CONNECT_DATA=(SERVICE_NAME = DMPROD)) ) On the Standby Database: make sure you update the Host Name TNSNAMES.ORA (on Standby Host): DMPROD.scirex.com = (DESCRIPTION = (SOURCE_ROUTE = OFF) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST =PHLORCL5)(PORT = 1521)) ) (CONNECT_DATA=(SERVICE_NAME = DMPROD)) ) -5-
  • 6. Created By Jorge S Batista jbatista@scirex.com LISTENER.ORA File Configuration: On the Primary Database we do not have to do anything. LISTENER.ORA (on Primary Host): LISTENER = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = PHORCL6)(PORT = 1521)) ) SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = DMPROD) (ORACLE_HOME = e:oracleorcl817) (SID_NAME = DMPROD) ) ) On the Standby Database: make sure you update the Host Name LISTENER.ORA (on Standby Host): LISTENER = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = PHLORCL5)(PORT = 1521)) ) SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = DMPROD) (ORACLE_HOME = e:oracleorcl817) (SID_NAME = DMPROD) ) ) 11) WINDOWS NT/2000 only: Create a Windows Service for the new Standby Database Before you startup the Standby instance, you have to create and start a Windows Service for this Standby Database. You can create this Service using the ORADIM-utility: -6-
  • 7. Created By Jorge S Batista jbatista@scirex.com C:>ORADIM -NEW -SID DMPROD -INTPWD my_password -STARTMODE MANUAL -PFILE F:OracleOraAdminDMPRODpfileinitDMPROD.ora 12) Start the Standby Instance and mount the Standby Database: C:>set oracle_sid=DMPROD C:>net start "OracleServiceDMPROD" C:>sqlplus /nolog SQL>connect / as sysdba SQL>STARTUP NOMOUNT PFILE=F:OracleOraAdminDMPRODPFileinitDMPROD.ora SLQ>alter database mount standby database; 13) Adjust Filenames: SQL>spool f:tempren_files.log SQL>ALTER DATABASE RENAME FILE 'I:ORACLEORADATADMPRODEDMCLIN01.DBF' TO 'E:ORACLEORADATADMPRODEDMCLIN01.DBF'; SQL>ALTER DATABASE RENAME FILE 'I:ORACLEORADATADMPRODEDMCLIN02.DBF' TO 'E:ORACLEORADATADMPRODEDMCLIN02.DBF'; SQL>ALTER DATABASE RENAME FILE 'I:ORACLEORADATADMPRODEDMIDX01.DBF' TO 'E:ORACLEORADATADMPRODEDMIDX01.DBF'; SQL>ALTER DATABASE RENAME FILE 'I:ORACLEORADATADMPRODEDMIDX02.DBF' TO 'E:ORACLEORADATADMPRODEDMIDX02.DBF'; SQL>ALTER DATABASE RENAME FILE 'I:ORACLEORADATADMPRODRBS01.DBF' TO 'E:ORACLEORADATADMPRODRBS01.DBF'; SQL>ALTER DATABASE RENAME FILE 'I:ORACLEORADATADMPRODRBS12.DBF' TO 'E:ORACLEORADATADMPRODRBS12.DBF'; SQL>ALTER DATABASE RENAME FILE 'I:ORACLEORADATADMPRODUSER01.DBF' TO 'E:ORACLEORADATADMPRODUSER01.DBF'; SQL>ALTER DATABASE RENAME FILE 'F:ORACLEORADATADMPRODLOG1A.ORA' TO 'E:ORACLEORADATADMPRODLOG1A.ORA'; SQL>ALTER DATABASE RENAME FILE 'F:ORACLEORADATADMPRODLOG2B.ORA' TO 'E:ORACLEORADATADMPRODLOG2B.ORA'; SQL>ALTER DATABASE RENAME FILE 'F:ORACLEORADATADMPRODLOG3A.ORA' TO 'E:ORACLEORADATADMPRODLOG3A.ORA'; SQL>ALTER DATABASE RENAME FILE 'F:ORACLEORADATADMPRODLOG4B.ORA' TO 'E:ORACLEORADATADMPRODLOG4B.ORA'; SQL>spool off -7-
  • 8. Created By Jorge S Batista jbatista@scirex.com 14) Start Listener: Perform a LSNRCTL STOP and LSNRCTL START on Standby Site to make the Changes take effect. 15) Bounce Primary Database for Change of INIT.ORA-Parameters to take effect. 16) Keep Standby database Current: To keep the standby current, manually copy archived redo logs as they are generated on the primary, then apply them to the standby. (This can be accomplished best by a batch job). 17) Apply any logs already archived to the standby host: C:>set oracle_sid=DMPROD C:>net start "OracleServiceDMPROD" C:>sqlplus /nolog SQL>connect / as sysdba SQL>spool F:tempstartDMPROD.log SQL>STARTUP NOMOUNT PFILE=F:OracleOraAdminDMPRODPFileinitDMPROD.ora SQL>ALTER DATABASE MOUNT STANDBY DATABASE; SQL>RECOVER STANDBY DATABASE; ORA-00279: change 277355 generated at .... ORA-00289: suggestion : .... ORA-00280: change 277355 .... Specify log: {<RET>=suggested | filename | AUTO | CANCEL} When prompted, type AUTO. All archived logs will be applied. As soon as Oracle fails to find a log, the recovery session will be terminated, and the user will be returned to the SVRMGR prompt: ORA-00308: cannot open archived log .... ORA-27041: unable to open file OSD-04002: unable to open file OS Error: (OS 2) The system cannot find the file specified SQL>shutdown immediate SQL>exit 18) At this stage, the standby database is ready -8-