91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

搭建windows到linux的oracle 12c physical standby備庫

發布時間:2020-08-08 07:18:16 來源:ITPUB博客 閱讀:167 作者:jichengjie 欄目:關系型數據庫
primary上修改參數

ALTER SYSTEM SET LOG_ARCHIVE_CONFIG='DG_CONFIG=(orcl,orcldg)';
ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=orcldg NOAFFIRM ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=orcldg';
ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=ENABLE;
ALTER SYSTEM SET LOG_ARCHIVE_FORMAT='%t_%s_%r.arc' SCOPE=SPFILE;
ALTER SYSTEM SET LOG_ARCHIVE_MAX_PROCESSES=30;
ALTER SYSTEM SET REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE SCOPE=SPFILE;
ALTER SYSTEM SET FAL_SERVER=orcl;
ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT=AUTO;
alter system set db_file_name_convert='/u01/app/oracle/oradata/orcl','E:\APP\ADMINISTRATOR\ORADATA\ORCL' scope=spfile;
alter system set log_file_name_convert='/u01/app/oracle/oradata/orcl','E:\APP\ADMINISTRATOR\ORADATA\ORCL\' scope=spfile;

主庫上創建standby logfile group
SQL> alter database add standby logfile group 4 ('E:\APP\ADMINISTRATOR\ORADATA\O
RCL\REDO04.LOG') SIZE 50M;


數據庫已更改。


SQL> alter database add standby logfile group 5 ('E:\APP\ADMINISTRATOR\ORADATA\O
RCL\STBY_REDO05.LOG') SIZE 50M;


數據庫已更改。


SQL> alter database add standby logfile group 6 ('E:\APP\ADMINISTRATOR\ORADATA\O
RCL\STBY_REDO06.LOG') SIZE 50M;


數據庫已更改。


SQL> ALTER DATABASE DROP LOGFILE GROUP 4;


數據庫已更改。


SQL> alter database add standby logfile group 4 ('E:\APP\ADMINISTRATOR\ORADATA\O
RCL\STBY_REDO04.LOG') SIZE 50M;


在primary上創建控制文件,并拷貝至linux服務器的參數文件所對應的目錄

備庫pfile參數文件, 注意linux下的幾個目錄預先創建好:

orcl.__data_transfer_cache_size=0
orcl.__db_cache_size=872415232
orcl.__java_pool_size=234881024
orcl.__large_pool_size=1375731712
orcl.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=3758096384
orcl.__sga_target=6979321856
orcl.__shared_io_pool_size=234881024
orcl.__shared_pool_size=4160749568
orcl.__streams_pool_size=67108864
*.audit_file_dest='/u01/app/oracle/admin/orcl/adump'
*.audit_trail='db'
*.compatible='12.1.0.2'
*.control_files='/u01/app/oracle/oradata/orcl/control01.ctl','/u01/app/oracle/oradata/orcl/control02.ctl'
*.db_block_size=8192
*.db_create_file_dest='/u01/app/oracle/oradata/orcl'
*.db_domain=''
*.db_file_name_convert='/u01/app/oracle/oradata/orcl','E:\APP\ADMINISTRATOR\ORADATA\ORCL'
*.db_name='ORCL'
*.diagnostic_dest='/u01/app/oracle/'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=ORCLXDB)'
*.fal_server='ORCL'
*.log_archive_config='DG_CONFIG=(orcl,orcldg)'
*.log_archive_dest_state_2='ENABLE'
*.log_archive_format='%t_%s_%r.arc'
*.log_archive_max_processes=30
*.log_file_name_convert='/u01/app/oracle/oradata/orcl','E:\APP\ADMINISTRATOR\ORADATA\ORCL\'
*.memory_target=10G
*.open_cursors=300
*.processes=1500
*.remote_login_passwordfile='EXCLUSIVE'
*.standby_file_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.db_unique_name='orcldg'
*.fal_server='orcl'
*.log_archive_dest_1='LOCATION=/u01/app/oracle/archivelog/ valid_for=(all_logfiles,all_roles)'
*.log_archive_dest_2='SERVICE=orcl ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=orcl'

恢復腳本:

run
{
set newname for datafile 1 to '/u01/app/oracle/oradata/orcl/SYSTEM01.DBF';
set newname for datafile 3 to '/u01/app/oracle/oradata/orcl/SYSAUX01.DBF';
set newname for datafile 5 to '/u01/app/oracle/oradata/orcl/UNDOTBS01.DBF';
set newname for datafile 6 to '/u01/app/oracle/oradata/orcl/USERS01.DBF';
restore database;
switch datafile all;
recover database;
}


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

新竹市| 仁布县| 浪卡子县| 东辽县| 金山区| 台南县| 望奎县| 桐城市| 临漳县| 攀枝花市| 郧西县| 繁昌县| 大城县| 萍乡市| 贵阳市| 元氏县| 武夷山市| 邻水| 临洮县| 开化县| 泾阳县| 铁力市| 肇源县| 包头市| 苏尼特左旗| 沾化县| 上栗县| 克东县| 临漳县| 合江县| 滁州市| 新营市| 德保县| 长丰县| 莱芜市| 博客| 荆州市| 自贡市| 徐闻县| 清丰县| 浮梁县|