欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

OracleRAC啟動歸檔時怎么設(shè)置CLUSTER_DATABASE參數(shù)

這篇文章主要講解了“Oracle RAC啟動歸檔時怎么設(shè)置CLUSTER_DATABASE參數(shù)”,文中的講解內(nèi)容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“Oracle RAC啟動歸檔時怎么設(shè)置CLUSTER_DATABASE參數(shù)”吧!

網(wǎng)站建設(shè)公司,為您提供網(wǎng)站建設(shè),網(wǎng)站制作,網(wǎng)頁設(shè)計及定制網(wǎng)站建設(shè)服務,專注于企業(yè)網(wǎng)站制作,高端網(wǎng)頁制作,對廣告推廣等多個行業(yè)擁有豐富的網(wǎng)站建設(shè)經(jīng)驗的網(wǎng)站建設(shè)公司。專業(yè)網(wǎng)站設(shè)計,網(wǎng)站優(yōu)化推廣哪家好,專業(yè)成都網(wǎng)站推廣優(yōu)化,H5建站,響應式網(wǎng)站。

結(jié)論:

數(shù)據(jù)庫版本Release 9.0.1 to 10.1,啟動歸檔模式需要設(shè)置CLUSTER_DATABASE參數(shù)。

數(shù)據(jù)庫版本10.2 and higher version,啟動歸檔模式不需要設(shè)置CLUSTER_DATABASE參數(shù)。

那么CLUSTER_DATABASE參數(shù)有什么作用呢?

cluster_database

當想要多個實例同時mount數(shù)據(jù)庫,CLUSTER_DATABASE參數(shù)必須是TRUE;

當CLUSTER_DATABASE參數(shù)為FALSE時,同時只能有一個實例能mount數(shù)據(jù)庫。

If Oracle Database allows multiple instances to mount the same database concurrently, then the CLUSTER_DATABASE initialization parameter setting can make the database available to multiple instances. Database behavior depends on the setting:
If CLUSTER_DATABASE is false (default) for the first instance that mounts a database, then only this instance can mount the database.
If CLUSTER_DATABASE is true for the first instance, then other instances can mount the database if their CLUSTER_DATABASE parameter settings are set to true. The number of instances that can mount the database is subject to a predetermined maximum specified when creating the database.

測試啟動11.2.0.4.0版本數(shù)據(jù)庫歸檔模式

查看歸檔模式

SQL> archive log list;
Database log mode       No Archive Mode
Automatic archival       Disabled
Archive destination       /u01/app/oracle/product/11.2.0/db_1/dbs/arch
Oldest online log sequence     26
Current log sequence       27

創(chuàng)建歸檔目錄

[grid@rac01 ~]$ asmcmd
ASMCMD> ls
ARCH/
DATA/
OCR/
ASMCMD> cd ARCH
ASMCMD> ls
ASMCMD> mkdir arch

修改歸檔目錄和歸檔格式

SQL> alter system set log_archive_format= 'cjcdb_%t_%s_%r.arc' scope=spfile sid='*';
SQL> alter system set log_archive_dest_1='location=+ARCH/arch' scope=spfile sid='*';

停止數(shù)據(jù)庫

[oracle@rac01 ~]$ srvctl stop database -d cjcdb
[oracle@rac01 ~]$ srvctl status database -d cjcdb
Instance cjcdb1 is not running on node rac01
Instance cjcdb2 is not running on node rac02

掛載數(shù)據(jù)庫

[oracle@rac01 ~]$ srvctl start database -d cjcdb -o mount
[oracle@rac01 ~]$ srvctl status database -d cjcdb -v
Instance cjcdb1 is running on node rac01. Instance status: Mounted (Closed).
Instance cjcdb2 is running on node rac02. Instance status: Mounted (Closed).

啟動歸檔模式

[oracle@rac01 ~]$ sqlplus / as sysdba
SQL> alter database archivelog;

重啟數(shù)據(jù)庫

[oracle@rac01 ~]$ srvctl stop database -d cjcdb
[oracle@rac01 ~]$ srvctl start database -d cjcdb

查看歸檔

[oracle@rac02 ~]$ sqlplus / as sysdba
SQL> archive log list;
Database log mode       Archive Mode
Automatic archival       Enabled
Archive destination       +ARC/arch
Oldest online log sequence     1
Next log sequence to archive   2
Current log sequence       2

參考:Doc ID 235158.1和Doc ID 1186764.1

10.1和之前版本啟動歸檔模式

How To Enable/Disable Archive Log Mode in Real Application Cluster Environment (Doc ID 235158.1)

APPLIES TO:
Oracle Database - Enterprise Edition - Version 9.0.1.0 to 10.1.0.5 [Release 9.0.1 to 10.1]
Information in this document applies to any platform.
1. Shut down all instances. 
2. Set the CLUSTER_DATABASE parameter to false on one instance in the parameter 
file. If using the server parameter file, make an entry for this:
     *.CLUSTER_DATABASE= False
For Modifying server parameter file (SPFILE):
Alter system set cluster_database=FALSE scope=spfile sid='*';
See Document 137483.1 How to Modify the Content of a SPFILE Parameter File 
3. Set the LOG_ARCHIVE_START parameter to true. 
4. Set the LOG_ARCHIVE_FORMAT and make sure the parameter containing the %t parameter includes the thread number in the archived logfile name.
5. Set the cluster database wide LOG_ARCHIVE_DEST_1 parameter in the parameter file as follows: 
LOG_ARCHIVE_DEST_1='LOCATION=$ORACLE_BASE/oradata/<db_name>/archive'
 
Note: You can multiplex the destination to up to ten locations, refer to:
Document 66433.1 Oracle8i - Multiple Archive Destinations and Remote Archival
 
To specify the archive log destinations on a per instance basis for a two-instance cluster database, for example, set the parameter as follows:
   <sid1>.LOG_ARCHIVE_DEST_1='LOCATION=$ORACLE_BASE/oradata/<db_name>/archive' 
   <sid2>.LOG_ARCHIVE_DEST_1='LOCATION=$ORACLE_BASE/oradata/<db_name>/archive'
 
6. Mount the database (in exclusive mode) for the instance on which you have set CLUSTER_DATABASE to false. 
7. Set the database in ARCHIVELOG mode :
     SQL> ALTER DATABASE ARCHIVELOG;
 
8. Shutdown the instance.
     SQL> SHUTDOWN IMMEDIATE;
9. Change the value of the CLUSTER_DATABASE parameter back to true.
10. Startup all instances.
To disable archive logging, follow the same steps but use the NOARCHIVELOG clause of the ALTER DATABASE statement.

10.2版本開始啟動歸檔模式 

How To Enable/Disable Archive Logging In RAC Environment for 10.2 and higher version (Doc ID 1186764.1)

APPLIES TO:
Oracle Database Cloud Service - Version N/A and later
Oracle Database - Enterprise Edition - Version 10.2.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Information in this document applies to any platform.
SOLUTION
1. The following steps need to be taken to enable archive logging in a RAC database environment:
-- shutdown immediate all database instances
$ srvctl stop database -d <db_unique_name>
-- startup database in mount mode
$ srvctl start database -d <db_unique_name> -o mount
-- enable archive logging
$ sqlplus / as sysdba
sql> alter database archivelog;
sql> exit;
-- stop database
$ srvctl stop database -d <db_unique_name>
-- restart all database instances
$ srvctl start database -d <db_unique_name>
-- verify archiving is enabled/disabled by means of:
sql> archive log list; 
You might need to set your log_archive_dest(_n) parameters to a shared location in each spfile, but the log_archive_start parameter does not need to be set anymore as of 10g (see Note 274302.1).
 
2. To disable archive logging, follow the same steps but use the NOARCHIVELOG clause of the ALTER DATABASE statement.

感謝各位的閱讀,以上就是“Oracle RAC啟動歸檔時怎么設(shè)置CLUSTER_DATABASE參數(shù)”的內(nèi)容了,經(jīng)過本文的學習后,相信大家對Oracle RAC啟動歸檔時怎么設(shè)置CLUSTER_DATABASE參數(shù)這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識點的文章,歡迎關(guān)注!

網(wǎng)站標題:OracleRAC啟動歸檔時怎么設(shè)置CLUSTER_DATABASE參數(shù)
URL標題:http://chinadenli.net/article16/gehhdg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站設(shè)計、外貿(mào)建站動態(tài)網(wǎng)站、小程序開發(fā)軟件開發(fā)、面包屑導航

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運營