Chinaunix首页 | 论坛 | 博客
  • 博客访问: 832653
  • 博文数量: 199
  • 博客积分: 6363
  • 博客等级: 准将
  • 技术积分: 2225
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-28 10:01
个人简介

来自农村的老实娃

文章分类

全部博文(199)

文章存档

2017年(1)

2014年(2)

2013年(3)

2012年(6)

2011年(26)

2010年(34)

2009年(50)

2008年(44)

2007年(33)

我的朋友

分类: Oracle

2010-09-16 09:30:30

主机:
    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)
    )
  )


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

chinaunix网友2010-09-16 15:27:05

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com