11gR2 RAC convert ONENODE
一、添加services
[oracle@ora11grac1 ~]$ srvctl add service -d woo -s onenode -r "woo1,woo2" [oracle@ora11grac1 ~]$ srvctl config service -d woo Service name: onenode Service is enabled Server pool: woo_onenode Cardinality: 2 Disconnect: false Service role: PRIMARY Management policy: AUTOMATIC DTP transaction: false AQ HA notifications: false Failover type: NONE Failover method: NONE TAF failover retries: 0 TAF failover delay: 0 Connection Load Balancing Goal: LONG Runtime Load Balancing Goal: NONE TAF policy specification: NONE Edition: Preferred instances: woo1,woo2 Available instances: [oracle@ora11grac1 ~]$ srvctl start service -d woo -s onenode
二、查看当前数据库状态:
[oracle@ora11grac1 ~]$ srvctl config database -d woo Database unique name: woo Database name: woo Oracle home: /DBSoft/oracle/product/11.2.0/dbhome_1 Oracle user: oracle Spfile: +DATA001/woo/spfilewoo.ora Domain: Start options: open Stop options: immediate Database role: PRIMARY Management policy: AUTOMATIC Server pools: woo Database instances: woo1,woo2 Disk Groups: DATA001,ARC_001 Mount point paths: Services: onenode Type: RAC Database is administrator managed [oracle@ora11grac1 ~]$ srvctl status database -d woo Instance woo1 is running on node ora11grac1 Instance woo2 is running on node ora11grac2
三、停掉并移除一个实例:
[grid@ora11grac1 ~]$ srvctl stop instance -d woo -i woo2 [grid@ora11grac1 ~]$ srvctl remove instance -d woo -i woo2 Remove instance from the database woo? (y/[n]) y
四、开始转换为ONENODE:
[oracle@ora11grac1 ~]$ srvctl convert database -d woo -c raconenode -w 30 -i woo
五、检查数据库角色:
[oracle@ora11grac1 ~]$ srvctl config database -d woo Database unique name: woo Database name: woo Oracle home: /DBSoft/oracle/product/11.2.0/dbhome_1 Oracle user: oracle Spfile: +DATA001/woo/spfilewoo.ora Domain: Start options: open Stop options: immediate Database role: PRIMARY Management policy: AUTOMATIC Server pools: woo Database instances: Disk Groups: DATA001,ARC_001 Mount point paths: Services: onenode Type: RACOneNode Online relocation timeout: 30 Instance name prefix: woo Candidate servers: ora11grac1 Database is administrator managed
