1 确认信息
>srvctl config database -d bpxtest

2 关闭数据库
>srvctl stop database -d bpxtest
>srvctl status database -d bpxtest
Instance bpxtest1 is not running on node wqqone1
Instance bpxtest2 is not running on node wqqone2
3 删除一个实例
>srvctl remove instance -d bpxtest -i bpxtest1
Remove instance from the database bpxtest? (y/[n]) y
>srvctl status database -d bpxtest
>srvctl config database -d bpxtest

4 添加服务
>srvctl config service -d bpxtest
>srvctl add service -d bpxtest -s bpxtestsrv -r bpxtest2 -P BASIC -e SELECT -m BASIC -y AUTOMATIC
>srvctl config service -d bpxtest

5 启动服务
>srvctl start service -d bpxtest -s bpxtestsrv
>srvctl status database -d bpxtest
Instance bpxtest2 is running on node wqqone2
6 RAC -> RACOneNode
>srvctl convert database -d bpxtest -c RACONENODE -i bpxtest1
>srvctl status database -d bpxtest
Instance bpxtest2 is running on node wqqone2
Online relocation: INACTIVE
>srvctl config database -d bpxtest

7 在线迁移
>srvctl relocate database -d bpxtest -n wqqone1
>srvctl config database -d bpxtest

>srvctl status database -d bpxtest
Instance bpxtest1_1 is running on node wqqone1
Online relocation: INACTIVE
8 查看会话切换方式
select sid,failover_type,failover_method,failed_over from v$session where sid=(select sid from v$mystat where rownum=1);