真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

一條命令搞定ADG

最近一直在搭建ORACLE 12C ADG ,其中包括單機(jī)到單機(jī)的ADG, RAC到RAC的ADG,還有RAC到單機(jī)的ADG,遇到不少小問題,在此做一下記錄。

成都創(chuàng)新互聯(lián)主要從事成都網(wǎng)站建設(shè)、成都做網(wǎng)站、網(wǎng)頁設(shè)計(jì)、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)南寧,10多年網(wǎng)站建設(shè)經(jīng)驗(yàn),價(jià)格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):18980820575

Oracle 12c R1 RAC 修改啟動(dòng)方式

$srvctl modify database -d orcldg -s nomount  orcldg為數(shù)據(jù)庫名

$srvctl modify database -d orcldg -s mount  

$srvctl modify database -d orcldg -s open  

 

置完DATAGUARD之后,默認(rèn)是mount,但是我們要求自動(dòng)啟動(dòng)成ADG模式,這里就需要做一個(gè)小小的改動(dòng)。

1.查看啟動(dòng)方式

$srvctl config database -d orcldg

Database unique name: orcldg

Database name:

Oracle home: /u01/app/oracle/product/12.1.0/dbhome_1

Oracle user: oracle

Spfile: +DATADG/orcldg/spfileorcldg.ora

Password file: +DATADG/orcldg/PASSWORD/pworcldg

Domain:

Start options: mount

Stop options: immediate

Database role: PHYSICAL_STANDBY

Management policy: AUTOMATIC

Disk Groups: DATADG

Services:

OSDBA group:

OSOPER group:

Database instance: orcldg

 2.修改啟動(dòng)方式

$srvctl modify database -db orcldg -startoption open

 

3.在此驗(yàn)證啟動(dòng)方式

$srvctl config database -d orcldg

Database unique name: orcldg

Database name:

Oracle home: /u01/app/oracle/product/12.1.0/dbhome_1

Oracle user: oracle

Spfile: +DATADG/orcldg/spfileorcldg.ora

Password file: +DATADG/orcldg/PASSWORD/pworcldg

Domain:

Start options: open

Stop options: immediate

Database role: PHYSICAL_STANDBY

Management policy: AUTOMATIC

Disk Groups: DATADG

Services:

OSDBA group:

OSOPER group:

Database instance: orcldg

 

4.啟動(dòng)數(shù)據(jù)庫,查看open_mode 已經(jīng)啟動(dòng)為ADG模式了

SQL> startup

ORACLE instance started.

 

Total System Global Area 1174405120 bytes

Fixed Size                  2923680 bytes

Variable Size             436208480 bytes

Database Buffers          721420288 bytes

Redo Buffers               13852672 bytes

Database mounted.

Database opened.

SQL> select open_mode from v$database;

 

OPEN_MODE

--------------------

READ ONLY WITH APPLY

 

SQL>


分享標(biāo)題:一條命令搞定ADG
本文鏈接:http://weahome.cn/article/psdeje.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部