ORACLE 12C DataGuard 구축
5730 단어 Oacle
2. 백업 제어 파일 sql > alter database create standby controlfile as' / home / oracle / dg / control01. ctl ';3. 백업 매개 변수 파일 sql > create pfile = '/ home / oracle / dg / initorcl. ora' from spfile;4. 발동 forcelogging sql>alter database force logging; sql>select FORCE_LOGGING from v$database;
비밀번호 가 asm 에 있어 징 그 러 워 srvctl config database - d oriepay 비밀번호 가 어디 있 는 지 확인
주 창고
alter system set log_archive_dest_2=‘service=orcl_dg valid_for=(online_logfiles,primary_role) lgwr async NOAFFIRM db_unique_name=orcl_dg’ scope=both sid=’’; alter system set log_archive_dest_state_2=enable scope=both sid=’’; alter system set log_archive_config=‘dg_config=(orcl_rac,orcl_dg)’ scope=both sid=’*’;
tns 메 인 라 이브 러 리 설정
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + = 라 이브 러 리 편집 매개 변수 파일 orcl.data_transfer_cache_size=0 orcl.__db_cache_size=29595009024 orcl.__inmemory_ext_roarea=0 orcl.__inmemory_ext_rwarea=0 orcl.__java_pool_size=402653184 orcl.__large_pool_size=671088640 *.__oracle_base=’/oracle/app/oracle’#ORACLE_BASE set from environment orcl.__pga_aggregate_target=3221225472 orcl.__sga_target=34359738368 orcl.__shared_io_pool_size=0 orcl.__shared_pool_size=3623878656 orcl.__streams_pool_size=0 *._gc_policy_time=0 *._optimizer_dsdir_usage_control=0 *._optimizer_gather_feedback=FALSE *._optimizer_nlj_hj_adaptive_join=FALSE *._optimizer_strans_adaptive_pruning=FALSE *._optimizer_use_feedback=FALSE *._px_adaptive_dist_method=‘OFF’ *.audit_file_dest=’/oracle/app/oracle/admin/orcl/adump’ *.audit_trail=‘NONE’ *.compatible=‘12.2.0’ *.control_files=’/oracle/app/oracle/oradata/orcl/control01.ctl’,’/oracle/app/oracle/oradata/orcl/control02.ctl’ *.db_block_size=8192 *.db_file_name_convert=’+MGMT/orcl/’,’/oracle/app/oracle/oradata/orcl/’ *.db_name=‘orcl’ *.db_unique_name=‘orcl_dg’ *.deferred_segment_creation=FALSE *.diagnostic_dest=’/oracle/app/oracle’ *.fal_client=‘orcl_dg’ *.fal_server=‘orcl’ *.local_listener=’-oraagent-dummy-’ *.log_archive_config=‘dg_config=(orcl_rac,orcl_dg)’ *.log_archive_dest_1=‘location=/oracle/app/oracle/oradata/orcl/arch/’ *.log_archive_dest_2=’’ *.log_archive_dest_state_2=‘DEFER’ *.log_archive_max_processes=5 *.log_file_name_convert=’+DATA3/orcl/ONLINELOG/’,’/oracle/app/oracle/oradata/orcl/’,’+MGMT/orcl/ONLINELOG/’,’/oracle/app/oracle/oradata/orcl/’ *.nls_language=‘AMERICAN’ *.nls_territory=‘AMERICA’ *.open_cursors=300 *.optimizer_adaptive_plans=FALSE *.pga_aggregate_target=3221225472 *.processes=1500 *.remote_login_passwordfile=‘exclusive’ *.service_names=‘orcl’ *.sga_max_size=34359738368 *.sga_target=34359738368 *.standby_file_management=‘AUTO’ *.undo_tablespace=‘UNDOTBS1’
2. copy controlfile 복구 제어 파일 3. alter database mount 4. 데이터 베 이 스 를 복구 run {configure device type disk parallelism 4; 데이터 베 이 스 를 복원 합 니 다.}
라 이브 러 리 alter system set servicenames=‘orcl’ scope=both; alter system set fal_server=‘orcl_rac’ scope=both sid=’’; alter system set fal_client=‘orcl_dg’ scope=both sid=’’; .db_file_name_convert=’+MGMT/orcl/’,’/oracle/oradata/orcl/’,’+DATA/orcl/tempfile’,’/oracle/oradata/orcl/’***** .log_file_name_convert=’+DATA/orcl/onlinelog/’,’/oracle/oradata/orcl/’***** *.log_archive_max_processes=30 *.standby_file_management=‘AUTO’ *.undo_tablespace=‘UNDOTBS1’ *.db_unique_name=‘orcl_dg’ *.service_names=‘orcl’
remote_listener = 'racscan: 1521' \ # \ # \ # 삭제 할 것
################## alter database add standby logfile thread 1 group 31 ‘/oracle/app/oracle/oradata/storage/orcl/redo31s.log’ size 1G; alter database add standby logfile thread 1 group 32 ‘/oracle/app/oracle/oradata/storage/orcl/redo32s.log’ size 1G; alter database add standby logfile thread 1 group 33 ‘/oracle/app/oracle/oradata/storage/orcl/redo33s.log’ size 1G; alter database add standby logfile thread 1 group 34 ‘/oracle/app/oracle/oradata/storage/orcl/redo34s.log’ size 1G; alter database add standby logfile thread 1 group 35 ‘/oracle/app/oracle/oradata/storage/orcl/redo35s.log’ size 1G; alter database add standby logfile thread 2 group 41 ‘/oracle/app/oracle/oradata/storage/orcl/redo41s.log’ size 1G; alter database add standby logfile thread 2 group 42 ‘/oracle/app/oracle/oradata/storage/orcl/redo42s.log’ size 1G; alter database add standby logfile thread 2 group 43 ‘/oracle/app/oracle/oradata/storage/orcl/redo43s.log’ size 1G; alter database add standby logfile thread 2 group 44 ‘/oracle/app/oracle/oradata/storage/orcl/redo44s.log’ size 1G; alter database add standby logfile thread 2 group 45 ‘/oracle/app/oracle/oradata/storage/orcl/redo45s.log’ size 1G;
alter database open read 만 읽 기;비밀번호 가 asm 에 있어 징 그 러 워 srvctl config database - d orcl 비밀번호 가 어디 있 는 지 확인 해 봐 어디 있 는 지
SELECT * FROM V$DATAGUARD_STATUS;
select process,status from v$managed_standby;
select process,status,client_process,thread#,sequence# from v$managed_standby;
6.1
sql>alter database recover managed standby database disconnect from session;
6.2
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE disconnect from session;
7) :
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
alter database clear logfile group 31;
alter database clear logfile group 32;
alter database clear logfile group 33;
alter database clear logfile group 34;
alter database clear logfile group 24;
alter database clear logfile group 21;
alter database clear logfile group 22;
alter database clear logfile group 23;
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
activemq 5.5 의 입문 은 설치, 시작, 데이터베이스 지속 화 를 포함한다Apache ActiveMQ 5.5.0 은 주로 유지보수 버 전 으로 130 개가 넘 는 문 제 를 복 구 했 으 며 대부분 bug 와 개선 이 었 다. Improved performance for offline d...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.