oracle data guard!!

imlihj2007發表於2008-05-11

用了兩天的時間終於完成拉data guard的培植!

primary database inin.ora

oradb.__db_cache_size=100663296
oradb.__java_pool_size=4194304
oradb.__large_pool_size=4194304
oradb.__shared_pool_size=54525952
oradb.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/oradb/adump'
*.background_dump_dest='/u01/app/oracle/admin/oradb/bdump'
*.compatible='10.2.0.1.0'
*.control_files='/u01/app/oracle/oradata/oradb/control01.ctl','/u01/app/oracle/oradata/oradb/control02.ctl','/u01/app/oracle/oradata/oradb/control03.ctl'
*.core_dump_dest='/u01/app/oracle/admin/oradb/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='oradb'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=oradbXDB)'
*.job_queue_processes=10
*.log_archive_dest_1='LOCATION=/u01/app/oracle/oradata'
*.log_archive_format='%t_%s_%r.dbf'
*.open_cursors=300
*.pga_aggregate_target=16777216
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=167772160
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/u01/app/oracle/admin/oradb/udump'

db_unique_name=mynode1
log_archive_config='dg_config=(mynode1,mynode2)'
log_archive_dest_2='service=stdb valid_for=(online_logfiles,primary_role) db_unique_name=mynode2'
log_archive_dest_state_1=enable
log_archive_dest_state_2=enable
fal_server=stdb
fal_client=prdb
standby_file_management=auto


standby database init.ora

oradb.__db_cache_size=100663296
oradb.__java_pool_size=4194304
oradb.__large_pool_size=4194304
oradb.__shared_pool_size=54525952
oradb.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/oradb/adump'
*.background_dump_dest='/u01/app/oracle/admin/oradb/bdump'
*.compatible='10.2.0.1.0'
*.control_files='/u01/app/oracle/oradata/oradb/control01.ctl','/u01/app/oracle/oradata/oradb/control02.ctl','/u01/app/oracle/oradata/oradb/control03.ctl'
*.core_dump_dest='/u01/app/oracle/admin/oradb/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='oradb'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=oradbXDB)'
*.job_queue_processes=10
*.log_archive_dest_1='LOCATION=/u01/app/oracle/oradata'
*.log_archive_format='%t_%s_%r.dbf'
*.open_cursors=300
*.pga_aggregate_target=16777216
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=167772160
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/u01/app/oracle/admin/oradb/udump'

db_unique_name=mynode2
log_archive_config='dg_config=(mynode1,mynode2)'
log_archive_dest_2='service=prdb valid_for=(online_logfiles,primary_role) db_unique_name=mynode1'
log_archive_dest_state_1=enable
log_archive_dest_state_2=enable
fal_server=prdb
fal_client=stdb
standby_file_management=auto

starup mount
alter database recover standby database disconnect from session
alter database recover standby database cancel
alter database open
alter database recover standby database disconnect from session


安裝配置好資料庫後出現的問題
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused

修改 /etc/hosts
127.0.0.1 localhost.localdomain localhost
10.10.10.2 rac2
10.10.10.1 rac1

引數的理解是最為重要的!

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9879835/viewspace-1003820/,如需轉載,請註明出處,否則將追究法律責任。

相關文章