Description: The data Guard characteristics of the Oracle9i database ensure the complete protection of the information, which is one of the key features of Oracle 9i. The data Guard can create a physical standby database, or create a logical standby database, and can be mixed, and with greater flexibility. This document is the Fenng practice time to write down things, not to mention what the experience. * It's just a note from the installation process * If you have higher expectations for this, or want more information about the Oracle database data guard and Standby, please refer to the official documentation.
System Environment: Windows 2000 Professional Edition SP3 512M memory
BANNER
----------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.1.0-production
Pl/sql Release 9.2.0.1.0-production
CORE 9.2.0.1.0 Production
TNS for 32-bit windows:version 9.2.0.1.0-production
Nlsrtl Version 9.2.0.1.0-production
Preparatory work
First verify that the primary database is in archive mode
Sql> Show User
USER is "SYS"
Sql>
Sql> Archive Log List
Database Log Mode Archive mode
Automatic Archival Enabled
Archive Destination D:\oracle\oradata\demo\archive
Oldest online log sequence 42
Next Log sequence to archive 44
Current Log Sequence 44
If you are not in archive mode, adjust the database.
First commit the command to modify the SPFile:
Sql>alter system set Log_archive_start=true scope=spfile;
Almost all of the things that are prone to errors are concentrated in the process. The document must be treated carefully. The place marked black is modified.
2.6 Creating a Windows service
winnt> Oradim-new-sid Pstandby-startmode Manual
2.7 Create a Server Parameter File for the Standby Database
You can refer to the following actions:
C:\>set Oracle_sid=pstandby
C:\>sqlplus/nolog
Sql> Connect/as SYSDBA
Sql> CREATE SPFILE from pfile= ' C:\DataGuard\Pstandby\DEMO\initPstandby.ora ';
2.8 Starting the physical standby database
C:\>set Oracle_sid=pstandby
C:\>sqlplus/nolog
Sql> Connect/as SYSDBA
Sql> STARTUP Nomount;
sql> ALTER database MOUNT STANDBY database;
2.9 On the standby database, initialize the log Apply service:
sql> ALTER database RECOVER MANAGED STANDBY database DISCONNECT from session;
2.10 Activation to the physical standby database archive
sql> ALTER SYSTEM SET log_archive_dest_2= ' Service=pstandby ' Scope=both;
sql> ALTER SYSTEM SET log_archive_dest_state_2=enable scope=both;
2.11 Start Remote archiving
sql> ALTER SYSTEM ARCHIVE LOG current;
3. Installation of the verification:
3.1 in database, query V$archived_log
(You can actually see if log is created directly to the relevant directory):
Sql> SELECT sequence#, First_time, Next_time
2 from V$archived_log-sequence#;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.