配置數據網絡
1. 配置監聽
[root@pdg ~]# su - grid
[grid@pdg ~]$ vim /oracle/19.0.0/grid/network/admin/listener.ora
LISTENER_DG =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.11)(PORT = 1525))
)
)
)
SID_LIST_LISTENER_DG =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME = /oracle/app/oracle/product/19.0.0/dbhome_1)
(SID_NAME = test)
(GLOBAL_DBNAME = test)
)
)
lsnrctl start LISTENER_DG
lsnrctl status LISTENER_DG
LISTENER_DG =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.21)(PORT = 1525))
)
)
)
SID_LIST_LISTENER_DG =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME = /oracle/app/oracle/product/19.0.0/dbhome_1)
(SID_NAME = test)
(GLOBAL_DBNAME = test)
)
)
lsnrctl start LISTENER_DG
lsnrctl status LISTENER_DG
[root@pdg ~]# su - oracle
[oracle@pdg ~]$ vim /oracle/app/oracle/product/19.0.0/dbhome_1/network/admin/tnsnames.ora
pdg =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.11)(PORT = 1525))
)
(CONNECT_DATA =
(SERVICE_NAME = test)
)
)
sdg =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.21)(PORT = 1525))
)
(CONNECT_DATA =
(SERVICE_NAME = test)
(UR=A)
)
)
[root@sdg ~]# su – oracle
[oracle@sdg ~]$ vim /oracle/app/oracle/product/19.0.0/dbhome_1/network/admin/tnsnames.ora
pdg =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.11)(PORT = 1525))
)
(CONNECT_DATA =
(SERVICE_NAME = test)
)
)
sdg =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.21)(PORT = 1525))
)
(CONNECT_DATA =
(SERVICE_NAME = test)
(UR=A)
)
)
tnsping pdg
tnsping sdg
注:配置數據網絡時提前配置好第二張網卡。
主庫配置
SQL> shutdown immediate;
SQL> startup mount;
SQL> alter system set log_archive_dest_1=location=+data/arch;
SQL> alter database archivelog;
SQL> alter database open;
SQL> select name,log_mode,force_logging from v$database;
NAME LOG_MODE FORCE_LOGGING
--------- ------------ ---------------------------------------
TEST ARCHIVELOG NO
SQL> alter database force logging;
Database altered.
SQL> select name,log_mode,force_logging from v$database;
NAME LOG_MODE FORCE_LOGGING
--------- ------------ ---------------------------------------
TEST ARCHIVELOG YES
alter database add standby logfile group 11 +data/test/onlinelog/stb01.log size 200M;
alter database add standby logfile group 12 +data/test/onlinelog/stb02.log size 200M;
alter database add standby logfile group 13 +data/test/onlinelog/stb03.log size 200M;
alter database add standby logfile group 14 +data/test/onlinelog/stb04.log size 200M;
SQL> select group#,bytes/1024/1024 from v$standby_log;
alter system set db_unique_name=test scope=spfile;
alter system set log_archive_config=dg_config=(test,sdg);
alter system set log_archive_dest_1=LOCATION=+data/arch valid_for=(all_logfiles,all_roles) db_unique_name=test;
alter system set log_archive_dest_2=service=sdg lgwr sync valid_for=(online_logfile,primary_role) db_unique_name=sdg;
alter system set log_archive_dest_state_1=enable;
alter system set log_archive_dest_state_2=enable;
alter system set fal_client=test;
alter system set fal_server=sdg;
alter system set standby_file_management=AUTO;
alter system set db_file_name_convert=+data/test/adg,+data/test/adgscope=spfile;
alter system set log_file_name_convert=+data/test/adg,+data/test/adgscope=spfile;
create pfile=/oracle/app/oracle/product/19.0.0/dbhome_1/dbs/pfile.ora
scp pfile.ora oracle@192.168.168.21: /oracle/app/oracle/product/19.0.0/dbhome_1/dbs/pfile.ora
scp orapwtest oracle@192.168.168.21: /oracle/app/oracle/product/19.0.0/dbhome_1/dbs/orapwtest
備庫操作
*.db_file_name_convert=+data/test,+data/test
*.db_name=test
*.db_unique_name=sdg
*.fal_client=sdg
*.fal_server=test
*.log_archive_config=dg_config=(sdg,test)
*.log_archive_dest_1=LOCATION=+data/arch valid_for=(all_logfiles,all_roles) db_unique_name=sdg
*.log_archive_dest_2=service=test lgwr sync valid_for=(online_logfile,primary_role) db_unique_name=test
*.log_archive_dest_state_1=enable
*.log_archive_dest_state_2=enable
*.log_file_name_convert=+data/test,+data/test
SQL> startup nomount pfile=/oracle/app/oracle/product/19.0.0/dbhome_1/dbs/pfile.ora;
ORACLE instance started.
Total System Global Area 2516581464 bytes
Fixed Size 8899672 bytes
Variable Size 536870912 bytes
Database Buffers 1962934272 bytes
Redo Buffers 7876608 bytes
[oracle@sdg dbs]$ rman target=sys/oracle@pdg auxiliary sys/oracle@sdg
duplicate target database for standby nofilenamecheck from active database;
啟動備庫
alter database recover managed standby database disconnect from session;
recover managed standby database cancel;
alter database open;
ALTER DATABASE recover managed standby database using current logfile disconnect;
SQL> select database_role,open_mode,switchover_status from v$database;
DATABASE_ROLE OPEN_MODE SWITCHOVER_STATUS
---------------- -------------------- --------------------
PHYSICAL STANDBY READ ONLY NOT ALLOWED
文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。
轉載請注明本文地址:http://specialneedsforspecialkids.com/yun/129603.html
摘要:序言在實際開發項目過程中如果說要用到緩存那么第一個想到的一定是但是為什么選大多數人都不會去了解也不會去思考只知道它能當緩存使用比數據庫快一點恰巧我也是這樣的一個人所以當我想寫一篇關于介紹的時候我竟然無從說起這也是對于以及主流內存數據庫不熟的 showImg(https://segmentfault.com/img/bVbi2tN?w=240&h=80); 序言 在實際開發項目過程中,...
摘要:作者使用實現了,并將其開源放在了上。在年的兩個問題上分別取得了第一名和第二名。的獲取方式是第層,形狀為,的獲取方式是第層,形狀為。每個卷積核可以看做是圖形的一種特征抽取。相關性的描述使用余弦相似性,而余弦相似性又正比于兩種特征的點積。 showImg(https://segmentfault.com/img/bVPmNA?w=1056&h=707); Neural Style是一個非常...
閱讀 1346·2023-01-11 13:20
閱讀 1684·2023-01-11 13:20
閱讀 1132·2023-01-11 13:20
閱讀 1858·2023-01-11 13:20
閱讀 4100·2023-01-11 13:20
閱讀 2704·2023-01-11 13:20
閱讀 1385·2023-01-11 13:20
閱讀 3597·2023-01-11 13:20