Configure Oracle10gDataGuard on RHEL5

Source: Internet
Author: User
1. Configure the primary database SID (ddd) GlobalDatabaseName (ddd) ServiceName (ddd) NetServerName (ddd) IP: 192.168.0.102DB: OracleDatabase10gEnterpriseEditionRelease10.2.0.1.0OS: rhel5 standby database SID (ddd) GlobalDatabaseName (dd

I. Environment Configuration
Primary database SID (ddd)
Global Database Name (ddd)
Service Name (ddd)
Net Server Name (ddd)
IP: 192.168.0.102

DB: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
OS: rhel5

Slave database SID (ddd)
Global Database Name (ddd)
Service Name (ddd)
Net Service Name (dddsby)
IP: 192.168.0.109

DB: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
OS: rhel5

Primary is a production database in use. standby installs the oracle software but does not create a database.

2. Establish a physical standby Database
1. Prepare the oracle environment of the master database:
Edit the oracle user's ~ In the oracle/. bash_profile file, the oracle environment variables are as follows:
Export ORACLE_BASE =/oracle
Export ORACLE_HOME =/oracle/product/10g
Export ORACLE_SID = ddd
Export PATH = $ ORACLE_HOME/bin [click an image to open it in a new window] PATH
Export TNS_ADMIN = $ ORACLE_HOME/network/admin
Export LANG = zh_CN
# Export NLS_LANG = AMERICAN_AMERICA.ZHS16GBK
Export NLS_LANG = "SIMPLIFIED Chinese_CHINA.ZHS16GBK"

2. Change the master database to archive mode.
Create an archive directory:
Mkdir-p/oracle/oradata/arch
Modify the archive mode:
Alter database force logging;
Archive log list;
Create pfile from spfile;
Edit $ ORACLE_HOME/dbs/initddd. ora
The configuration of the master database file is as follows: [click an image to open it in a new window] The red part is the parameter to be modified)
Ddd. _ db_cache_size = 167772160
Ddd. _ java_pool_size = 4194304
Ddd. _ large_pool_size = 4194304
Ddd. _ shared_pool_size = 83886080
Ddd. _ streams_pool_size = 0
*. Audit_file_dest = '/oracle // admin/ddd/adump'
*. Background_dump_dest = '/oracle // admin/ddd/bdump'
*. Compatible = '10. 2.0.1.0 ′
*. Control_files = '/oracle // oradata/ddd/control01.ctl', '/oracle // oradata/ddd/control02.ctl', '/oracle // oradata/ddd/control03.ctl'
*. Core_dump_dest = '/oracle // admin/ddd/cdump'
*. Db_block_size = 8192
*. Db_domain ="
*. Db_file_multiblock_read_count = 16
*. Db_name = 'ddd'
*. Db_recovery_file_dest = '/oracle // flash_recovery_area'
*. Db_recovery_file_dest_size = 2147483648
*. Dg_broker_start = TRUE
*. Dispatchers = '(PROTOCOL = TCP) (SERVICE = dddXDB )'
*. Fal_client = 'ddd '# Here, fal_client refers to the net service name
*. Fal_server = 'dddsby1' # Here, fal_server refers to the net service name
*. Job_queue_processes = 10
*. Log_archive_dest_1 = 'location =/oracle/oradata/arch'
*. Log_archive_dest_2 = 'service = dddsby1 lgwr' # Here the SERVICE refers to the net SERVICE name
*. Open_cursors = 300
*. Pga_aggregate_target = 88080384
*. Processses = 150
*. Remote_login_passwordfile = 'clusive'
*. Sga_target = 264241152
*. Standby_archive_dest = '/oracle/oradata/arch'
*. Standby_file_management = 'auto'
*. Undo_management = 'auto'
*. Undo_tablespace = 'undotbs1 ′
*. User_dump_dest = '/oracle // admin/ddd/udump'

Sqlplus/as sysdba;
Shutdown immediate;
Create spfile from pfile;
Startup mount;
Alter database archivelog;
Alter database open;

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.