重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5074|回复: 2
打印 上一主题 下一主题

SRVCTL command (in Oracle 11gR2)

[复制链接]
跳转到指定楼层
楼主
发表于 2013-1-24 21:10:42 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

Component Abbreviation Description
asm asm Oracle ASM instance
database db Database instance
diskgroup dg Oracle ASM disk group
filesystem filesystem Oracle ASM file system
home home Oracle home or Oracle Clusterware home
listener lsnr Oracle Net listener
service serv Database service
ons, eons ons, eons Oracle Notification Services (ONS)

Oracle entities (such as resources, resource types, and server pools) that have names beginning with ora are managed only by SRVCTL (and not by CRSCTL) unless you are directed to do so by Oracle Support. The cluster specific commands are generally managed by CRSCTL.

Syntax:

srvctl command object options

The available commands used with SRVCTL are:

Command Description
add Adds a component to the Oracle Restart configuration.
config Displays the Oracle Restart configuration for a component.
disable Disables management by Oracle Restart for a component.
enable Reenables management by Oracle Restart for a component.
getenv Displays environment variables in the Oracle Restart configuration for a database, Oracle ASM instance, or listener.
modify Modifies the Oracle Restart configuration for a component.
remove Removes a component from the Oracle Restart configuration.
setenv Sets environment variables in the Oracle Restart configuration for a database, Oracle ASM instance, or listener.
start Starts the specified component.
status Displays the running status of the specified component.
stop Stops the specified component.
unsetenv Unsets environment variables in the Oracle Restart configuration for a database, Oracle ASM instance, or listener.

For more information go to the Oracle DBA Guide

Here are a matrix of commands/ object combination:

Commands Objects Comment

srvctl add
srvctl modify
srvctl remove

instance

database
service
nodeapps

The OCR is modified.

srvctl relocate

service

You can reallocate a service from one named instance to another named instance.

srvctl start
srvctl stop

srvctl status

instance

database
service
asm

nodeapps

srvctl disable
srvctl enable

instance

database
service
asm

enable = when the server restart the resource must be restarted

disable = when the server restart the resource must NOT be restarted

(perhaps we are working for some maintenance tasks)

srvctl config

database
service
asm

nodeapps

Lists configuration information from the OCR (Oracle Cluster Registry).

srvctl getenv
srvctl setenv
srvctl unsetenv

instance

database
service
nodeapps

srvctl getenv = displays the environment variables stored in the OCR for target.

srvctl setenv = allows these variables to be set

srvctl unsetenv = llows these variables to be unset

The most SRVCTL commands are:

srvctl start database -d DBname
srvctl stop database -d DBname

If you don't know the DBname you might run select name from v$database;

srvctl start instance -d DBname -i INSTANCEname
srvctl stop instance -d DBname -i INSTANCEname

srvctl start instance -d DBname -i INSTANCEname
srvctl stop instance -d DBname -i INSTANCEname

srvctl status database -d DBname

srvctl status instance -d DBname -i INSTANCEname

srvctl status nodeapps -n NODEname

srvctl enable database -d DBname

srvctl disable database -d DBname

srvctl enable instance -d DBname -i INSTANCEname

srvctl disable instance -d DBname -i INSTANCEname

srvctl config database -d DBname -> to get some information about the database from OCR.

srvctl getenv nodeaps

ATTENTION:

The following commands are deprecated in Oracle Clusterware 11g release 2 (11.2):

crs_stat
crs_register
crs_unregister
crs_start
crs_stop
crs_getperm
crs_profile
crs_relocate
crs_setperm


crsctl check crsd
crsctl check cssd
crsctl check evmd
crsctl debug log
crsctl set css votedisk
crsctl start resources
crsctl stop resources

In-Oracle.com -> Oracle DBA -> Oracle RAC (Real Application Cluster)

-> SRVCTL command (in Oracle 11gR2)

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
发表于 2013-3-2 21:45:35 | 只看该作者

2013年河南选调生考试答案Q162.012.6261

gnscwv
2013年河南选调生考試答案q:162.012.6261高分通过
世界上的很多事情是说不清楚的,2013年河南省选调生考試答案‖q:162.012.6261‖在一家医学院学习的梅子居然和她的另外5位寝友到了同一所医院实习。2013年河南选调生考試答案‖q:162.012.6261‖因为她们学习的专业相同,她们都被安排在妇产科实习。在学校能够一起学习生活,2013年河南选调生考試答案q:162.012.6261‖实习又能够在一起,这让6姐妹非常欢喜。但没有多久,一个问题残酷地摆到2013年河南选调生考試答案‖q:162.012.6261‖6姐妹面前,这所医院最后只能留用其中一人。
  能够留在这所2013年河南选调生考試答案‖q:162.012.6261‖省内最高等级的医院是6姐妹的共同渴望,但她们不得不面对“有你无我,有我无你”2013年河南选调生考試答案‖q:162.012.6261‖的残酷竞争与淘汰。临近毕业的日子越来越近,6姐妹的较量也越来越激烈,但她们始终相互激励着,相互祝福着。院方为了2013年河南选调生考試答案‖q:162.012.6261‖确定哪一名被留用,举行了一次攷核,结果出来了,面对同样出色的6姐妹,院方一时也2013年河南选调生考試答案‖q:162.012.6261‖不知道该如何取舍。但现实是,院方只能够留用一人。
  6姐妹中,开始有人表示自己家在外省,更喜欢毕业后能够回到家乡;2013年河南选调生考試答案‖q:162.012.6261‖有的人干脆说家乡的小2013年河南选调生考試答案‖q:162.012.6261‖县城已经有医院同意接收她……美丽的谎言感动着一个又一个人。
  这天,6姐妹都突然接到一2013年河南选调生考試答案‖q:162.012.6261‖个相同的紧急通知,一名待产妇就要生产,医院需要立刻前往她家中救治。2013年河南选调生考試答案‖q:162.012.6261‖6姐妹急匆匆地上了急救车。一名副院长、一名主任医生、6名实习医生、2名护士同时去抢救一名待产妇,如此隆重的阵势让6姐妹都感觉到一种前所未有的紧张。2013年河南选调生考試答案‖q:162.012.6261‖有人悄悄地问院长,是什么样的人物,需要这2013年河南选调生考試答案‖q:162.012.6261‖样兴师动众?院长简单地解释道:“这名产妇的身分和情况都有些特殊,让你们都来,2013年河南选调生考試答案‖q:162.012.6261‖也是想让你们都不要错过这个机会,你们可都要认真观察学习。”车内一片沉寂。2013年河南选调生考試答案‖q:162.012.6261‖待产妇家很偏僻,急救车左拐右拐终于到达时,待产妇已经折腾得满头汗水。
回复 支持 反对

使用道具 举报

板凳
发表于 2013-3-23 13:31:20 | 只看该作者

吸污车 吸污车图片 吸污车价格

ogncvsop
吸污车
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-15 05:24 , Processed in 0.096641 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表