--備庫standby
主庫四個redolog 以前都是50m大小
sql>
alter database recover managed standby database cancel;
database altered.
sql> alter database add standby logfile group 11 ('+data/orcldg/onlinelog/standby_group_11.log') size 60m;
alter database add standby logfile group 12 ('+data/orcldg/onlinelog/standby_group_12.log') size 60m;
alter database add standby logfile group 13 ('+data/orcldg/onlinelog/standby_group_13.log') size 60m;
alter database add standby logfile group 14 ('+data/orcldg/onlinelog/standby_group_14.log') size 60m;
alter database add standby logfile group 15 ('+data/orcldg/onlinelog/standby_group_15.log') size 60m;
alter database add standby logfile group 16 ('+data/orcldg/onlinelog/standby_group_16.log') size 60m;
備庫standby刪除
alter database drop logfile group 5;
alter database drop logfile group 6;
alter database drop logfile group 7;
alter database drop logfile group 8;
alter database drop logfile group 9;
alter database drop logfile group 10;
主庫redo新增
alter database add logfile thread 1 group 11 ('+data/orcl/onlinelog/group_11.log') size 60m;
alter database add logfile thread 1 group 12 ('+data/orcl/onlinelog/group_12.log') size 60m;
alter database add logfile thread 2 group 13 ('+data/orcl/onlinelog/group_13.log') size 60m;
alter database add logfile thread 2 group 14 ('+data/orcl/onlinelog/group_14.log') size 60m;
主庫redo 刪除
alter database drop logfile group 1;
alter database drop logfile group 2;
alter database drop logfile group 3;
alter database drop logfile group 4;
備庫redo新增
剛開始刪除的時候可能報錯,執行以下命令:
alter system set standby_file_management='manual';
然後刪除
alter database add logfile group 5 ('+data/orcldg/onlinelog/group_05.log') size 60m;
alter database add logfile group 6 ('+data/orcldg/onlinelog/group_06.log') size 60m;
alter database add logfile thread 2 group 7 ('+data/orcldg/onlinelog/group_07.log') size 60m;
alter database add logfile thread 2 group 8 ('+data/orcldg/onlinelog/group_08.log') size 60m;
alter database clear logfile '+data/orcldg/onlinelog/group_2.272.862167353'
備庫redo刪除
alter database drop logfile group 1;
alter database drop logfile group 2;
alter database drop logfile group 3;
alter database drop logfile group 4;
--這種也是可以的
alter database add logfile member ('+data/orcldg/onlinelog/group_2.273.862167353') size 60m reuse;
create spfile from pfile='$oracle_home/dbs/pfile_for_standby.txt'
如果遇到錯誤可以檢視 log_file_name_convert 與 db_file_name_convert 是否有問題
alter system set log_file_name_convert='+data/orcl/onlinelog, +data/orcldg/onlinelog' scope=spfile;
alter system set db_file_name_convert='+data/orcl/datafile, +data/orcldg/datafile' scope=spfile;
--主庫standby 刪除
alter database drop logfile group 5;
alter database drop logfile group 6;
alter database drop logfile group 7;
alter database drop logfile group 8;
alter database drop logfile group 9;
alter database drop logfile group 10;
主庫standby 新增
alter database add standby logfile group 5 ('+data/orcl/onlinelog/standby_group_05.log') size 60m reuse;
alter database add standby logfile group 6 ('+data/orcl/onlinelog/standby_group_06.log') size 60m reuse;
alter database add standby logfile group 7 ('+data/orcl/onlinelog/standby_group_07.log') size 60m reuse;
alter database add standby logfile group 8 ('+data/orcl/onlinelog/standby_group_08.log') size 60m reuse;
alter database add standby logfile group 9 ('+data/orcl/onlinelog/standby_group_9.log') size 60m reuse;
alter database add standby logfile group 10 ('+data/orcl/onlinelog/standby_group_10.log') size 60m reuse;
然後在備庫執行
alter database recover managed standby database using current logfile disconnect;
alter system set standby_file_management='auto';
Solr壞境搭建
第一步 把solr 的壓縮包上傳到linux系統 第二步 解壓solr。第三步 安裝tomcat,解壓縮即可。第四步 把dist目錄下的solr.war部署到tomcat下。第五步 啟動tomcat解壓 第七步 建立乙個solrhome example solr目錄就是乙個solrhome。複製此目...
php壞境安裝Xdebug詳情步驟
xdebug是乙個開放源 的php程式偵錯程式 即乙個debug工具 可以用來跟蹤,除錯和分析php程式的執行狀況,可以說是程式設計師必備的乙個工具之一。好了,進入正題 non thread safe和不帶有non thread safe,主要是看你的php版本是否執行緒安全版本 如何檢視呢?列印 ...
ORACLE DG之引數詳解
1.db name 資料庫名字,需要保持同乙個data guard中所有資料庫db name相同。主庫和備庫相同 db name chicago db name chicago 2.db unique name db unique name unique service provider name ...