Services in Oracle Database 10g
Services in Oracle Database 10g
基于RAC环境中使用的应用程序,有时候希望某个特定的应用程序仅仅运行在RAC的子节点,或者说为某些应用程序分配一个首要节点。对此,Oracle 10g可以使用services来实现。
一、集群配置
在使用services之前,需要首先检查集群的配置是否正确。
下面的命令输出了数据库ORCL运行于三个不同的节点。
- srvctl config database -d ORCL
- server01 ORCL1 /u01/app/oracle/product/10.1.0/db_1
- server02 ORCL2 /u01/app/oracle/product/10.1.0/db_1
- server03 ORCL3 /u01/app/oracle/product/10.1.0/db_1
这些配置通常在数据库创建期间完成。也可以通过下面的命令来完成。
- srvctl add database -d ORCL -o /u01/app/oracle/product/10.1.0/db_1 #添加数据库ORCL的$ORACLE_HOME到crs
- srvctl add instance -d ORCL -i ORCL1 -n server01 #为数据库ORCL添加相应的instance到crs
- srvctl add instance -d ORCL -i ORCL2 -n server02
- srvctl add instance -d ORCL -i ORCL3 -n server03
|
评论暂时关闭