使用SRVCTL启动实例与使用sqlplus启动实例的区别

The difference between using srvctl vs using sqlplus for start/stop one or more database nodes [ID 753516.1]

 修改时间 29-JUL-2010     类型 HOWTO     状态 ARCHIVED 

In this Document
  Goal
  Solution
  References


Applies to:

Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 11.1.0.6 - Release: 10.1 to 11.1
Information in this document applies to any platform.

Goal

We have had some instances where it seemed that starting rac databases through sqlplus caused performance issues (high load on database server ).

Restarting the nodes using srvctl seemed to resolve the performance issue.

"Is there any difference between using srvctl vs using sqlplus for starting or stopping one or more database nodes."

Solution

There are some differences between the use of SQLPLUS and SRVCTL utilities.
- Both should result in the instance startup, but Oracle always recommend the use of the SRVCTL due to the fact that the SRVCTL does more, i.e. SRVCTL will perform. a dependency analysis and will inform. about cluster related problem if they exist, in a better way than the SQLPLUS which may just say that the instance is not starting. The SRVCTL command will try to start dependent resources (like the  vip/ons/listeners) in case they are not running.
- The SRVCTL utility always do some kind of pre-start of the instances such as updating the
OCR information instead of waiting for the check script. of the instance resource to detect this
instance startup and update the OCR.
- With SRVCTL, the root user OS setup is used since inherited from the crsd.bin that will start the instances as oracle user. With SQLPLUS, the oracle user OS setup is used. Having different user setups for root or oracle will make that the performance can be different (fragmented sga or not, another 'solaris' project setup, ...) Check Note 603051.1 , Note 369424.1 .

The common part however is that SRVCTL is using SQLPLUS to start/stop the instances.

The SRVCTL tool manages configuration information that is used by several other Oracle tools. 
For example, Enterprise Manager uses the configuration information that SRVCTL generates to discover
and monitor nodes in your cluster.

Note that the 'srvctl start database/instance' command will not start all enabled and non-running services that have the listed instances either as preferred or available instances in 10g.
Check Note 416178.1 - After Srvctl Start Database, Database Services Will Not Start Up Automatically 

For further details about the synthax of the SRVCTL command, please refer to the following documentation:

Oracle� Database Oracle Clusterware and Oracle Real Application Clusters Administration and
Deployment Guide
10g Release 2 (10.2)
Part Number B14197-01

大家要多多使用SRVCTL工具管理数据库实例!

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23135684/viewspace-712764/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23135684/viewspace-712764/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值