начал разбираться c data guardom.
выставел на primary
init.ora
orcl10.__db_cache_size=92274688
orcl10.__java_pool_size=4194304
orcl10.__large_pool_size=4194304
orcl10.__shared_pool_size=58720256
orcl10.__streams_pool_size=0
*.audit_file_dest='/u02/app/oracle/admin/orcl10/adump'
*.background_dump_dest='/u02/app/oracle/admin/orcl10/bdump'
*.compatible='10.2.0.1.0'
*.control_files='/u02/app/oracle/orcl10/control01.ctl','/u02/app/oracle/orcl10/control02.ctl','/u02/app/oracle/orcl10/control03.ctl'
*.core_dump_dest='/u02/app/oracle/admin/orcl10/cdump'
*.db_block_size=8192
*.db_domain='test.ru'
*.db_file_multiblock_read_count=16
*.db_name='orcl10'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orcl10XDB)'
*.job_queue_processes=10
*.log_archive_dest_1='LOCATION=/u02/app/oracle/orcl10/archive MANDATORY'
*.log_archive_dest_2='SERVICE=standby.test.ru LGWR ASYNC NOAFFIRM OPTIONAL REOPEN=1'
*.log_archive_dest_state_1='enable'
*.log_archive_dest_state_2='ENABLE'
*.log_archive_format='arch_%t_%s_%r.arc'
*.open_cursors=300
*.pga_aggregate_target=16777216
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=167772160
*.standby_archive_dest='/u02/app/oracle/orcl10/archive_teacher'
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/u02/app/oracle/admin/orcl10/udump'
*.fal_client = "orcl10.test.ru"
*.fal_server = "standby.test.ru"
tnsnames.ora
orcl10.test.ru =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = pluto.test.ru)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl10.test.ru)
)
)
standby.test.ru =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rh.test.ru)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl10.test.ru)
)
)
standby
init.ora
orcl10.__db_cache_size=92274688
orcl10.__java_pool_size=4194304
orcl10.__large_pool_size=4194304
orcl10.__shared_pool_size=62914560
orcl10.__streams_pool_size=0
*.audit_file_dest='/u02/app/oracle/admin/orcl10/adump'
*.background_dump_dest='/u02/app/oracle/admin/orcl10/bdump'
*.compatible='10.2.0.1.0'
*.control_files='/u02/app/oracle/orcl10/control01.ctl','/u02/app/oracle/orcl10/control02.ctl','/u02/app/oracle/orcl10/control03.ctl'
*.core_dump_dest='/u02/app/oracle/admin/orcl10/cdump'
*.db_block_size=8192
*.db_domain='test.ru'
*.db_file_multiblock_read_count=16
*.db_name='orcl10'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orcl10XDB)'
*.job_queue_processes=10
*.log_archive_dest_1='LOCATION=/u02/app/oracle/orcl10/archive MANDATORY'
*.log_archive_dest_2='SERVICE=standby.test.ru LGWR ASYNC NOAFFIRM OPTIONAL'
*.log_archive_dest_state_1='ENABLE'
*.log_archive_dest_state_2='defer'
*.log_archive_format='arch_%t_%s_%r.arc'
*.open_cursors=300
*.pga_aggregate_target=16777216
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=167772160
*.standby_archive_dest='/u02/app/oracle/orcl10/archive_teacher'
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/u02/app/oracle/admin/orcl10/udump'
*.fal_client=standby.test.ru
*.fal_server=orcl10.test.ru
tnsnames.ora
orcl10.test.ru =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = pluto.test.ru)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl10.test.ru)
)
)
standby.test.ru =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rh.test.ru)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl10.test.ru)
)
на праймари стоит MAXIMUM PERFOMANCE. после запуска redo дышат синхронно все переключения вызывают записи в редо на primary и standby а также архивацию обоих логов у каждого в отдельности. Хочу сэмулировать разрыв сети и сталкиваюст с такой проблемой. Грубо выдираю кабель из standby и при последующем переключении журналов на primary система зависает до тех пор пока кабель на standby не будет снова воткнут. Получается так что и при работе если связь с сервером будет утеряно на некоторое время все встанет на primary? но режим то MAXIMUM PERFOMANCE, указывающий не обращать внимания если поток redo stream отвалился от standby
автор |
this is accomplished by allowing a transaction to commit as soon as the redo data needed to recover that transaction is written to the local online redo log. The primary database's redo data stream is also written to at least one standby database, but that redo stream is written asynchronously with respect to the commitment of the transactions that create the redo data.
|