Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1021671
  • 博文数量: 584
  • 博客积分: 2293
  • 博客等级: 大尉
  • 技术积分: 3045
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-28 11:15
文章分类

全部博文(584)

文章存档

2012年(532)

2011年(47)

2009年(5)

我的朋友

分类:

2012-08-21 01:36:58

原文地址:Active Data Guard配置记录 作者:lzdyxin

主机:
    hostname:oracle1 IP:211.XXX.XXX.181

/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1                localhost.localdomain localhost
#::1            localhost6.localdomain6 localhost6
211.XXX.XXX.181      oracle1
211.XXX.XXX.182      oracle2
.bash_profile
primary.__db_cache_size=71303168
primary.__java_pool_size=4194304
primary.__large_pool_size=4194304
primary.__oracle_base='/oracle'#ORACLE_BASE set from environment
primary.__pga_aggregate_target=536870912
primary.__sga_target=306184192
primary.__shared_io_pool_size=0
primary.__shared_pool_size=209715200
primary.__streams_pool_size=4194304
*.audit_file_dest='/oracle/admin/primary/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/oracle/oradata/primary/control01.ctl','/oracle/flash_recovery_area/primary/control02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='primary'
*.db_recovery_file_dest='/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=4070572032
*.db_unique_name='dbpri'
*.diagnostic_dest='/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=primaryXDB)'
*.fal_client='oracle1'
*.fal_server='oracle2'
*.log_archive_config='DG_CONFIG=(dbpri,dbstd)'
*.log_archive_dest_2='SERVICE=oracle2 lgwr ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=dbstd'
*.log_archive_dest_state_1='enable'
*.log_archive_dest_state_2='enable'
*.log_archive_max_processes=30
*.memory_target=839909376
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.standby_file_management='AUTO'
*.undo_tablespace='UNDOTBS1'

oracle@/oracle/product/11.2.0/dbhome_1/network/admin$more listener.ora
# listener.ora Network Configuration File: /oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 211.XXX.XXX.181)(PORT = 1521))
    )
  )

ADR_BASE_LISTENER = /oracle

oracle2 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 211.XXX.XXX.182)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = dbstd)
    )
  )

oracle1 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 211.XXX.XXX.181)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = dbpri)
    )
  )

primary =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 211.XXX.XXX.182)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = primary)
    )
  )



备机:

hostname:oracle2    IP:211.XXX.XXX.182
[oracle@oracle2 ~]$ more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
#::1            localhost6.localdomain6 localhost6
211.XXX.XXX.181      oracle1
211.XXX.XXX.182      oracle2

[oracle@oracle2 ~]$ more /oracle/orcl.ora
primary.__db_cache_size=322961408
primary.__java_pool_size=4194304
primary.__large_pool_size=4194304
primary.__oracle_base='/oracle'#ORACLE_BASE set from environment
primary.__pga_aggregate_target=339738624
primary.__sga_target=503316480
primary.__shared_io_pool_size=0
primary.__shared_pool_size=159383552
primary.__streams_pool_size=0
*.audit_file_dest='/oracle/admin/primary/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/oracle/oradata/primary/control01.ctl','/oracle/flash_recovery_area/primary/control02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='primary'
*.db_unique_name=dbstd
*.log_archive_config='DG_CONFIG=(dbpri,dbstd)'
*.log_archive_dest_2 ='SERVICE=oracle1 lgwr ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=dbpri'
*.log_archive_dest_state_1=enable
*.log_archive_dest_state_2=enable
*.log_archive_max_processes=30
*.fal_server=oracle1
*.fal_client=oracle2
*.standby_file_management=AUTO
*.db_recovery_file_dest='/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=4070572032
*.diagnostic_dest='/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=primaryXDB)'
*.memory_target=839909376
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS1'

[oracle@oracle2 admin]$ more listener.ora
# listener.ora Network Configuration File: /oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 211.XXX.XXX.182)(PORT = 1521))
    )
  )

ADR_BASE_LISTENER = /oracle

[oracle@oracle2 admin]$ more tnsnames.ora
# tnsnames.ora Network Configuration File: /oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

primary =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 211.XXX.XXX.181)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = primary)
    )
  )

oracle1 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 211.XXX.XXX.181)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = dbpri)
    )
  )

oracle2 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 211.XXX.XXX.182)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = dbstd)
    )
  )


阅读(789) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~