服务器池(和ASM中使用的OMF)通过策略管理(policy-managed)数据库的方式来使这些工作自动化。
管理员管理的数据库(administrator-managed)是指,全部需要由数据库管理员来管理。换句话说,就是Oracle 11.1以前的RAC数据库。
administrator-managed无法转为raconenode
[grid@rac-test01-db ~]$ srvctl add service -d snp -s racsrv -serverpool srvpool1
PRKO-3113 : Administrator-managed database snp can not support policy-managed service racsrv.
Administrator managed database --> Policy managed Database
1.Check the current configuration of all services and the database
srvctl config database -d db_unique_name
srvctl config service -d db_unique_name
Before converting the instance name shows as:
Eg:
$ ps -eaf|grep pmon|grep orcl
oracle 16450 1 0 Aug31 ? 00:00:02 ora_pmon_orcl1
[grid@rac-test01-db ~]$ srvctl config database -d snp
Database unique name: snp
Database name: snp
Oracle home: /data/prd/oracle/database/12.2.0.1/snp
Oracle user: oracle
Spfile: +DATA/SNP/PARAMETERFILE/spfile.268.983430003
Password file: +DATA/SNP/PASSWORD/pwdsnp.256.983429595
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools:
Disk Groups: DATA
Mount point paths:
Services:
Type: RAC
Start concurrency:
Stop concurrency:
OSDBA group: dba
OSOPER group: oper
Database instances: snp1,snp2
Configured nodes: rac-test01-db,rac-test02-db
CSS critical: no
CPU count: 0
Memory target: 0
Maximum memory: 0
Default network number for database services:
Database is administrator managed
[grid@rac-test01-db ~]$ srvctl config service -d snp
[grid@rac-test01-db ~]$
[root@rac-test01-db ~]# ps -eaf|grep pmon|grep snp
oracle 6544 1 0 09:20 ? 00:00:03 ora_pmon_snp1
2.Create a server pool for the policy-managed database (you must have GI Administrator privileges to do this), as follows:
srvctl add srvpool -g server_pool -l 0 -u n(In the preceding command,n is the number of servers you want in the server pool.)
3. Modify the database to be in the new server pool, as follows:
srvctl modify database -d db_unique_name -g server_pool
4. After restart, check the status of the database to confirm that it is now policy managed by repeating the commands in step 1.
After converting the instance name show as:
Eg:
$ ps -eaf|grep pmon|grep orcl
oracle 14462 1 0 11:14 ? 00:00:00 ora_pmon_orcl_1
Note: After convering the database to policy-managed,instance name will be db_unique_name_# (notice the additional underscore (_) before the number sign (#) character).
Converting Policy managed databases to administrtor managed Database
You cannot directly convert a policy-managed database to an administrator-managed database. Instead, you need to remove the policy-managed configuration and then register the same database as an administrator managed databases.
1. Remove the database and services
srvctl remove database -d
srvctl remove service -d
2. Register the same database as an administrator-managed databases
srvctl add database -d
srvctl add instance -d
srvctl add service -d