Srvctl stop
Hi All,
I have an interesting one here:
I created a 10.2.0.4 2 node RAC database on Win2003 R2 SP2 from a backup of our PROD system and the creation went fine.
If I issue a srvctl stop database -d SYNPROD_NY the database comes down fine ane everything else is up.
ora.SYNPROD_NY.SYNPROD1.inst 0/5 OFFLINE OFFLINE
ora.SYNPROD_NY.SYNPROD2.inst 0/5 OFFLINE OFFLINE
ora.SYNPROD_NY.db 0/0 OFFLINE OFFLINE
ora.scnypodbp001.ASM1.asm 0/5 ONLINE ONLINE on scnypodbp001
ora.scnypodbp001.LISTENER_SCNYPODBP001.lsnr 0/5 ONLINE ONLINE on scnypodbp001
ora.scnypodbp001.gsd 0/5 ONLINE ONLINE on scnypodbp001
ora.scnypodbp001.ons 0/3 ONLINE ONLINE on scnypodbp001
ora.scnypodbp001.vip 0/0 ONLINE ONLINE on scnypodbp001
ora.scnypodbp002.ASM2.asm 0/5 ONLINE ONLINE on scnypodbp002
ora.scnypodbp002.LISTENER_SCNYPODBP002.lsnr 0/5 ONLINE ONLINE on scnypodbp002
ora.scnypodbp002.gsd 0/5 ONLINE ONLINE on scnypodbp002
ora.scnypodbp002.ons 0/3 ONLINE ONLINE on scnypodbp002
ora.scnypodbp002.vip 0/0 ONLINE ONLINE on scnypodbp002
The problem is if I issue the srvctl start database -d SYNPROD_NY I get the:
PRKP-1001 : Error starting instance SYNPROD1 on node scnypodbp001
CRS-0215: Could not start resource 'ora.SYNPROD_NY.SYNPROD1.inst'.
PRKP-1001 : Error starting instance SYNPROD2 on node scnypodbp002
CRS-0215: Could not start resource 'ora.SYNPROD_NY.SYNPROD2.inst'.
I can start each instance on each node using SQLPLUS then a crs_stat will show everything is up.
Has anybody seen this before?
Many thanks
VicC
There can be many reasons it won't start. To find the actual errors look in %ORACLE_HOME%\log\<host>\racg - the logs in this directory should help you find the root. Specifically look at the logs for the database you are trying to start: ora.SYNPROD_NY.SYNPROD1.inst.log
Cheers!
Jay
http://www.grumpy-dba.com
Similar Messages
-
Srvctl stop asm command failed
Hi all
I have just installed oracle 11g r2 standalone server with ASM in my oracle linux 6 in virtual box.
srvctl start database -d command works fine.
but srvctl stop asm command did not work.
I have two user, one for oracle software owner is "oracle" and the other for grid infrastructure owner is "grid"
I put srvctl stop asm command on both users. and did not work.
when I use sqlplus by accessing with "sqlplus / as sysasm" and try to stop it, it works fine.
but not srvctl
here is additional information - asmlib configuration command history :
/etc/init.d/oracleasm configure
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
[root@localhost ~]# /etc/init.d/oracleasm enable
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
[root@localhost ~]# /etc/init.d/oracleasm start
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
[root@localhost ~]# /etc/init.d/oracleasm createdisk asm1 /dev/asm/asm1
Marking disk "asm1" as an ASM disk: [ OK ]
[root@localhost ~]# /etc/init.d/oracleasm createdisk asm2 /dev/asm/asm2
Marking disk "asm2" as an ASM disk: [ OK ]
[root@localhost ~]# /etc/init.d/oracleasm createdisk fra1 /dev/asm/fra1
Marking disk "fra1" as an ASM disk: [ OK ]
[root@localhost ~]# oracleasm listdisks
ASM1
ASM2
FRA1
p.s
since this is a standalone server, i can not input srvctl command with '-n' option.
"crsctl stop crs" does not work in single instance configuration.Diskgroup needs to be dismounted before bringing the asm resource down as they are separate resource . You have to use srvctl stop asm -f option to dismount diskgroups as well.
Using sqlplus when you issue shutdown , it will dismount the asm diskgroups and then bringdown the ASM instance.
you can check resource dependency for start or stop using crsctl stat res -p
for asm resource dependency crsctl stat res ora.asm -p -
Srvctl stop asm failed on 11gR2
Have you experienced this issue? when shutting down ASM using "srvctl stop asm -n linix101", we got this error.
PRCR-1014 : Failed to stop resource ora.asm
PRCR-1065 : Failed to stop resource ora.asm
CRS-2673: Attempting to stop 'ora.asm' on 'linux101'
ORA-15097: cannot SHUTDOWN ASM instance with connected client
CRS-2675: Stop of 'ora.asm' on 'linux101' failed
Thanks for any suggestion.
SamYou are using the correct command to stop the ASM instance which - "srvctl stop asm -n <node_name>.
The problem you are encountering is - there are active databases which are using the ASM
ORA-15097: cannot SHUTDOWN ASM instance with connected clientThere are two options -
1) Stop down the dependent databases before shutting down ASM
OR
2) Using "-f" option at the end, which is force the shutdown of ASM (not a recommended option though!).
HTH
thanks
Chandra -
Srvctl on 11.2.0.3 does not stop and start listeners
I recently installed the Grid software under the "grid" user on RH5. Clusterware and ASM run under GRID_HOME, the single instance database runs under ORACLE_HOME. I have created 2 listeners on non-default ports (manually using entried in listener.ora) and then added to srvctl (srvctl add listerner -l LISTENER_XPT -o /app/oracle/product/dhome_1 -p "TCP:1523" -- in ORACLE_HOME.
When stopping the listener using:
oracle@#####>srvctl stop listener -l LISTENER_XPT -- note starting with oracle user in ORACLE_HOME. Below is from "/app/grid/product/11.2.0/grid/log/server_name/agent/ohasd/oraagent_grid/oraagent_grid.log
2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check] (:CLSN00010:) TNS-00511: No listener
2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check] (:CLSN00010:) Linux Error: 111: Connection refused
2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check] (:CLSN00010:)Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1523)))
2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check]
**********FROM TAILING THE listener LOG ****************************
TNS-01190: The user is not authorized to execute the requested listener command
12-JUN-2012 12:44:12 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=v01orarac01w)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_XPT)(VERSION=186647296)) * status * 0
TNS-01195: Listener rejected registration of endpoint "(ADDRESS=(PROTOCOL=TCP)(HOST=10.5.87.5)(PORT=1523)(IP=FIRST))"
12-JUN-2012 12:50:02 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=v01orarac01w)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_XPT)(VERSION=186647296)) * status * 0
TNS-01190: The user is not authorized to execute the requested listener command
12-JUN-2012 15:12:58 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=v01orarac01w)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_ADMIN)(VERSION=186647296)) * status * 0
12-JUN-2012 15:12:58 * version * 0
12-JUN-2012 15:12:58 * service_register * LsnrAgt * 1195
TNS-01195: Listener rejected registration of endpoint "(ADDRESS=(PROTOCOL=TCP)(HOST=********)(PORT=1524)(IP=FIRST))"
12-JUN-2012 15:12:59 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=********)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_XPT)(VERSION=186647296)) * status * 0
12-JUN-2012 15:13:05 * (CONNECT_DATA=(SID=PRDRAC01)(CID=(PROGRAM=perl)(HOST=********)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=*******)(PORT=41398)) * establish * PRDRAC01 * 0
Why wouldnt the Oracle user not be able to start/stop a resource from ORACLE_HOME ? Any assistance would be helpfulI just removed the listener out of the ORACLE_HOME and added it using srvctl to the GRID_HOME. Now I am able to stop and start.
Still the question, why cant oracle user start an oracle_home managed resource. But the oracle user could start and stop using lsnrctl stop/start
Below if the results from ps (note I just started listener from GRID_HOME):
grid@PRODBLD:+ASM>ps -ef |grep lsnr
grid 9114 1 0 09:40 ? 00:00:00 /app/grid/product/11.2.0/grid/bin/tnslsnr LISTENER_ADMIN -inherit
grid 10348 1 0 Jun12 ? 00:00:00 /app/grid/product/11.2.0/grid/bin/tnslsnr LISTENER -inherit
grid 20234 21990 0 09:49 pts/2 00:00:00 grep lsnr
oracle 29926 1 0 Jun12 ? 00:00:00 /app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr LISTENER_XPT -inherit -
Not able to stop database using srvctl
When i stop database using srvctl from node1.. "srvctl stop database -d mosa" it does not stop. I tried "srvctl stop database -d mosa -o immediate" but to no luck. Could anybody help me on this issue.
OS = HP-UX
Database = Oracle 9i
Instance1 = mosa1
Instance2 = mosa2
node1 = hp1
node2 = hp2
DB Size = 50GB
I have opened another session to check srvctl status
$srvctl status database -d mosa
Instance mosa1 is not running on node hp_data1
Instance mosa2 is running on node hp_data2
NOTE:- BEfore i stop database, i had stopped listener.
Regards,
VikharThank you , issue is solved.
After i give below given command, i checked the status by
$srvctl status database -d dbname
$Instance mosa1 is not running in node1
$Instance mosa1 is running in node2
It means PROBLEM with instance2
I have got following error message in alert_log file
attempting to shut down the database and the database hangs at $srvctl stop database -d dbname. The alert log contains the following message:
SHUTDOWN: Waiting for active calls to complete
There are no other error messages in the alert log.
+Solution Description:
=====================
Caveat: This note is intended for Unix platforms primarily, but we should
address this issue on Windows platforms as well. On Windows, stopping the
service is a valid workaround for these errors.
Locate and kill any client connections to the database at the Unix level, as
follows:
1. Locate any client connections to the database using ps, and grep for any
processes belonging to this .
Example: ps -ef | grep V733
2. Look for processes that include a 'Local=No' designation.
Example: osupport 6235 1 0 Nov 24 0:01 oracleV733 (LOCAL=NO)
3. Kill the Unix process(es) with the 'Local=No' designation.
Example: Kill -9 6235
Explanation:
============
The database is waiting for pmon to clean up processes, but pmon is unable to
clean them. The client connections to the server are causing the shutdown
immediate or normal to hang. Killing them allows pmon to clean up and release
the associated Oracle processes and resources+
What resources are we talking about?
1) Any non committed transactions must be rolled back
2) Any temporary space (sort segments / lobs / session temporary tables) must be freed
3) The session itself and any associated memory consumed by the session.
4) Internal locks / enqueues must be cleaned up
Often Oracle (SMON or PMON depending on whether Shared Server is used) will wait for the OS to terminate the process(es) associated with the session. I the OS never returns, or fails to terminate them, then the instance shutdown will hang with this message (Shutdown Waiting for Active Calls to Complete) Other means exist to achieve a quick shutdown.
Thank you so much for your efforts.
Edited by: VIKHARAHMED on Feb 27, 2011 10:19 PM
Edited by: VIKHARAHMED on Feb 27, 2011 10:25 PM -
Srvctl start service/stop throwing error ORA-01031: insufficient privileges
Hi Gurus,
When i try to start/stop the service getting below error.Please help me troubleshoot it.
AIX-6.1
11.2.0.1
Plato1:/u01/app/11.2.0/grid/network/admin>srvctl start service -d maxcv
PRCR-1079 : Failed to start resource ora.maxcv.maxcv.svc
CRS-2680: Clean of 'ora.maxcvuat.svc' on 'Plato1' failed
CRS-5807: Agent failed to process the message
ORA-01031: insufficient privileges
ORA-01031: insufficient privileges
ORA-01031: insufficient privileges
ORA-01031: insufficient privileges
CRS-2680: Clean of 'ora.maxcvuat.svc' on 'Plato1' failed
ThanksSQL> execute dbms_service.start_service('maxcvuat');PL/SQL procedure successfully completed.
Output from alert.log
EMNC started with pid=32, OS id=1384660
2011-09-09 09:32:09.820000 -04:00
Starting background process CJQ0
CJQ0 started with pid=53, OS id=1429756
2011-09-09 09:37:00.698000 -04:00
Starting background process SMCO
SMCO started with pid=33, OS id=1687726
2011-09-09 09:52:59.212000 -04:00
ALTER SYSTEM SET service_names='maxcvuat' SCOPE=MEMORY SID='maxcv2';
~crsctl stat output:
plato2:/home/grid>crsctl stat res -t
NAME TARGET STATE SERVER STATE_DETAILS
Local Resources
ora.CRS.dg
OFFLINE OFFLINE plato1
OFFLINE OFFLINE plato2
ora.CRS_DATA.dg
ONLINE OFFLINE plato1
ONLINE ONLINE plato2
ora.CRS_DATA1.dg
ONLINE OFFLINE plato1
ONLINE ONLINE plato2
ora.CRS_VDISK.dg
OFFLINE OFFLINE plato1
ONLINE ONLINE plato2
ora.LISTENER.lsnr
ONLINE ONLINE plato1
ONLINE ONLINE plato2
ora.maxcv_DATA.dg
ONLINE INTERMEDIATE plato1
ONLINE ONLINE plato2
ora.maxcv_REC.dg
ONLINE INTERMEDIATE plato1
ONLINE ONLINE plato2
ora.asm
ONLINE OFFLINE plato1
ONLINE ONLINE plato2
ora.eons
ONLINE ONLINE plato1
ONLINE ONLINE plato2
ora.gsd
OFFLINE OFFLINE plato1
OFFLINE OFFLINE plato2
ora.net1.network
ONLINE ONLINE plato1
ONLINE ONLINE plato2
ora.ons
ONLINE ONLINE plato1
ONLINE ONLINE plato2
Cluster Resources
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE plato2
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE plato1
ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE plato1
ora.plato1.vip
1 ONLINE ONLINE plato1
ora.plato2.vip
1 ONLINE ONLINE plato2
ora.maxcv.db
1 ONLINE ONLINE plato2 Open
2 ONLINE ONLINE plato1 Open
ora.maxcv.maxcvuat.svc
1 OFFLINE UNKNOWN plato1
2 OFFLINE UNKNOWN plato1
ora.coscv.db
1 ONLINE ONLINE plato1 Open
2 ONLINE ONLINE plato2 Open
ora.coscv.coscvuat.svc
1 ONLINE UNKNOWN plato1
2 ONLINE UNKNOWN plato1
ora.oc4j
1 OFFLINE OFFLINE
ora.scan1.vip
1 ONLINE ONLINE plato2
ora.scan2.vip
1 ONLINE ONLINE plato1
ora.scan3.vip
1 ONLINE ONLINE plato1
plato2:/home/grid>Stopping of database:
plato2:/home/oracle>srvctl stop database -d maxcv
PRCD-1124 : Failed to stop database maxcv and its services
PRCR-1065 : Failed to stop resource (((((NAME STARTS_WITH ora.maxcv.) && (NAME ENDS_WITH .svc)) && (TYPE == ora.service.type)) && ((STATE != OFFLINE) || (TARGET != OFFLINE))) || (((NAME == ora.maxcv.db) && (TYPE == ora.database.type)) && (STATE != OFFLINE)))
CRS-2680: Clean of 'ora.maxcv.maxcvuat.svc' on 'plato1' failed
CRS-5807: Agent failed to process the message
ORA-01031: insufficient privileges
ORA-01031: insufficient privileges
ORA-01031: insufficient privileges
ORA-01031: insufficient privileges
CRS-2680: Clean of 'ora.maxcv.maxcvuat.svc' on 'plato1' failed
ORA-01031: insufficient privileges
ORA-01031: insufficient privileges
CRS-2675: Stop of 'ora.maxcv.db' on 'plato1' failed
CRS-2680: Clean of 'ora.maxcv.maxcvuat.svc' on 'plato1' failed
CRS-5807: Agent failed to process the message
ORA-01031: insufficient privileges
ORA-01031: insufficient privileges
ORA-01031: insufficient privileges
ORA-01031: insufficient privileges
CRS-2680: Clean of 'ora.maxcv.maxcvuat.svc' on 'plato1' failed
ORA-01031: insufficient privileges
ORA-01031: insufficient privileges
CRS-2675: Stop of 'ora.maxcv.db' on 'plato1' failed
plato2:/home/oracle>ps -ef |grep pmon
oracle 892946 1818664 0 09:30:35 pts/0 0:00 grep pmon
grid 1360080 1 0 Sep 06 - 1:23 asm_pmon_+ASM2
oracle 1376428 1 0 Sep 06 - 1:42 ora_pmon_coscv2
plato2:/home/oracle>Thanks -
Stop and start database for cold backup
Hi,
Database :Oracle 10g R1
OS : Red hat 3
I have a RAC database with 2 nodes.
I build this script to make a cold backup of the database. (I will put it in the cron tab).
My question is the SRVCTL will work in this scripts??
# ***** COLDBACKUP ORACLE DATABASE ON LINUX *****
DIRECTORY=/u02/backup/script/; export DIRECTORY
cd ${DIRECTORY}
# ***** SHUTDOWN THE DATABASE *******
export oracle_sid=RCDB
srvctl stop database -d RCDB
# *****cold backup for "RCDB" database on 13-FEB-07 ... *****
# ***** COPY FILES *****
# Redo logs
cp /u02/oradata/RCDB/redo01.log ${DIRECTORY}
cp /u02/oradata/RCDB/redo07.log ${DIRECTORY}
cp /u02/oradata/RCDB/redo03.log ${DIRECTORY}
cp /u02/oradata/RCDB/redo08.log ${DIRECTORY}
# Datafiles
#*********START UP DATABASE AND SERVICES********
srvctl start database -d RCDB
exit
Message was edited by:
ASkika
Message was edited by:
ASkikaI need to put a quick policy backup ... and cold
backup it's what I use and it works.And reduces the availability of your cluster.
The problem about RMAN is that we never use it. I
have to learn about it to make scripts to test....
and this will tack me 2 or 3 days...I'd assume that installing RAC didn't go overnight, so why underfund the crucial part of any database system, the backup?
There's even a step by step guide for backup on the Getting Started: DBAs page.
Samples (and changes) on the latest version of RMAN can be found for example in RMAN Enhancements.
Or take a look at this Oracle Magazine article:Faster Backup, Faster Recovery
Backup and Recovery Basics in the user documentation may also be a good starting point.
C. -
Not able to stop ASM on 11g R2
We are trying to bounce 11g R2 database and ASM with RAC, I was able to shutdown database using srvctl with out any issue,
[oracle@dev1 ~]$ srvctl status database -d dev
Instance dev1 is running on node dev1
Instance dev2 is running on node dev2
[oracle@dev1 ~]$ srvctl stop database -d dev
however when i am trying to stop ASM i could not able to stop using srvctl
[grid@dev1 ~]$ srvctl stop asm -n dev1 -i +ASM1
-i option has been deprecated and will be ignored.
PRCR-1014 : Failed to stop resource ora.asm
PRCR-1065 : Failed to stop resource ora.asm
CRS-2529: Unable to act on 'ora.asm' because that would require stopping or relocating 'ora.DEVDATA.dg', but the force option was not specified
any comments.
ThanksAlso please provide the output of the following:
srvctl status asmIn your 1st post you typed:
[oracle@dev1 ~]$ srvctl status database -d dev
Instance dev1 is running on node dev1
Instance dev2 is running on node dev2
[oracle@dev1 ~]$ srvctl stop database -d dev
however when i am trying to stop ASM i could not able to stop using srvctl
[grid@dev1 ~]$ srvctl stop asm -n dev1 -i +ASM1
-i option has been deprecated and will be ignored.
PRCR-1014 : Failed to stop resource ora.asm
PRCR-1065 : Failed to stop resource ora.asm
CRS-2529: Unable to act on 'ora.asm' because that would require stopping or relocating 'ora.DEVDATA.dg', but the force option was not specifiednotice this command "srvctl stop asm -n *dev1* -i +ASM1"
you used dev1 after the "-n" option but it looks like dev1 is your instance name and not your node name.
can you please try:
srvctl stop asm -n <hostname>Thanks
Edited by: user11150436 on Oct 25, 2010 12:09 PM
Sorry I see dev1 is your nodename as well -
Stopping RAC instances on shutdown (10g - RHEL3)
Any advise on the correct way to script instance stop in cluster nodes?
As soon as a node comes up, CRS automatically starts its instances. However, according to alert logs, they are not being cleanly stopped (if left as configured by the installation procedure):
Errors in file /opt/oracle/admin/oragis/bdump/oragi1_pmon_4778.trc:
ORA-00481: LMON process terminated with error
PMON: terminating instance due to error 481
Beginning crash recovery of 1 threads
In other words, on node shutdown, we need to issue
srvctl stop instance -d ... -i ...
What's the proper place to issue this command before the node shuts down?
Thanks,
IvanAny advise on the correct way to script instance stop in cluster nodes?
As soon as a node comes up, CRS automatically starts its instances. However, according to alert logs, they are not being cleanly stopped (if left as configured by the installation procedure):
Errors in file /opt/oracle/admin/oragis/bdump/oragi1_pmon_4778.trc:
ORA-00481: LMON process terminated with error
PMON: terminating instance due to error 481
Beginning crash recovery of 1 threads
In other words, on node shutdown, we need to issue
srvctl stop instance -d ... -i ...
What's the proper place to issue this command before the node shuts down?
Thanks,
Ivan -
How to stop and Start ASM in 11gR2
Hi,
Any one please let me know the complete process of how to stop and start the ASM instance in
11.2.0.1 oracle.
Thanks.
AliHi;
If you need to close ASM than you need to also close database
You need to close db:
srvctl stop database -d instance_name
or
set ORACLE_HOME and ORACLE_SID
sqlplus "/as sysdba"
shutdown immediate;
srvctl stop LISTENER
srvctl stop ASM -f
or see:
Stop asm instance in standalone database
Re: Stop asm instance in standalone database
Regard
Helios -
Hi. all.
I tried to stop a RAC database installed on 32-bit windows 2003 server.
I run the followings:
1. srvctl stop instance -d rac -i rac1
2. srvctl stop nodeapps -n nodename
Until now, everything is fine.
Howerver, when I was trying to stop clusterware by "crsctl stop crs",
cluster-related windows services is not going to down.
Here is the log, when I issued "crsctl stop crs".
C:\Documents and Settings\Administrator>crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
I can see the followings in service window.
OracleCRService is now successfully down.
OracleCSService is now going down, but not down.
OracleEVMService is now going up , but not up.
What happened? Is it useful to run "crsctl start/stop crs"
on 32-bit windows 2003 Server??
Thanks in advance. Have a good day.
Best Regards.
Message was edited by:
user507290
Message was edited by:
user507290I can see the followings in service window.
OracleCRService is now successfully down.
OracleCSService is now going down, but not down.
OracleEVMService is now going up , but not up.
Not sure above is right way to check status of CRS.
Try following to get clear picture
go to CRS_HOME/bin ( like cd c:\oracle\product\10.2.0\crs\bin) and run
crs_stat -v ( For detail )
crs_stat -t ( for Table format)
Cheer,
Virag -
Databases instances stuck in MOUNT MODE after srvctl start database -d
Hi,
I wonder if anyone can shed some light on why the following scenario is happening in our environment.
We have a 4 node site, configured with RAC on nodes 1 & 2 and dataguard shipping the logs to a standby physical cluster
database on nodes 3 & 4.
Our issue is this:
When the database instances on nodes 1 & 2 are stopped and restarted using this command sequence
srvctl stop database -d SOCPRODCAV
srvctl start database -d SOCPRODCAV
each database instance gets started up only as far as MOUNT mode.
The databases are not opened and i have to go in and do this manually for each instance.
The above command sequence used to successfully restart the database and leave it open for use so i'm wondering how the start
mode has been changed and if there is an area of configuration or view anyone can guide me to look at it.
I provide remote DBA support for this client's and it is possible that another onsite DBA may have changed something.
Any pointers gratefully received.
Regards,
GeorgeSee current configuration as follows
srvctl config database -d SOCPRODCAV -aThis should show you current startup/stop settings as follows
Start options: open
Stop options: immediate
Now you can change current settings if Start option is not "open"
srvctl modify database -d SOCPRODCAV -s OPENReference
http://docs.oracle.com/cd/E14072_01/server.112/e10595/restart005.htm#i1009665
Salman -
Stopping Oracle 11.2.1 RAC
I am using Oracle RAC 11.2.0.1 two node cluster on OEL 5 64-bit.
I have few questions about the stopping and starting of Oracle RAC 11.2, please see my steps and questions:
Steps to Stop Oracle RAC:
/u01/app/oracle/product/11.2.0/dbhome_1/bin/emctl stop agent
/u01/app/oracle/product/11.2.0/dbhome_1/bin/srvctl stop database –d TESTDB
Change Oracle home to grid home:
export ORACLE_HOME=/u01/app/11.2.0/grid
/u01/app/11.2.0/grid/bin/srvctl stop asm
The following needs to be run on each of the nodes:
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
/u01/app/oracle/product/11.2.0/dbhome_1/bin/srvctl stop nodeapps -n test1
Then as root
Shut down the Oracle Clusterware or CRS process by entering the following command on all nodes:
(In grid home)
/u01/app/11.2.0/grid/bin/crsctl stop crsSteps to Start:
As root:
/u01/app/11.2.0/grid/bin/crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
As oracle user from database home:
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
srvctl start nodeapps
Check services-
ps -ef | grep LISTENER ensure the listener and scan listeners are up.
ps -ef | grep <sid> ps -ef | grep asm
start agent on all nodes....
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
/u01/app/oracle/product/11.2.0/dbhome_1/bin/emctl start agent Are above steps right and complete? Am I mentioning the correct homes?
Thanks.Shut down the Oracle Clusterware or CRS process by entering the following command on all nodes:
(In grid home)
do the following(as root user):
cd $GRID_HOME/bin
./crsctl stop cluster -all
In 11gr2 you can stop all resouces as below
<CRS_HOME>/bin/crsctl stop has
or you can stop in the following sequence
stop or relocate service using srvctl
stop instnace using srvctl
stop asm using srvctl
stop nodeapps using srvctl
stop cluster resources as root - <CRS_HOME>/bin/crsctl stop has
To start
<CRS_HOME>/bin/crsctl start has - it should bring all resources automatically.
refer the forum thread:-
Thread: Steps to stop / start CRS & ASM in RAC 11gr2
Steps to stop / start CRS & ASM in RAC 11gr2
Edited by: raJEYsh on Apr 14, 2011 11:56 AM -
DB Version: 10.2.0.4 (2 node RAC)
Platform : Solaris 5.10
I was trying to shutdown an instance iin one of the nodes using srvctl. I got the following error
$ srvctl stop instance -d spike -i spike2 -o immediate
PRKO-2007 : Invalid instance name: spike2
##### ps -ef output confirmed that spike2 instance is up and running in the node #####
$ echo $ORACLE_HOME
/u01/app/oracle/product/10.2.0/db
$ echo $ORACLE_SID
spike2
$ which srvctl
/u01/app/oracle/product/10.2.0/db/bin/srvctlSo, i had shutdown the instance from sqlplus. But i was able to shutdown asm and nodeapps using srvctl utility. Any idea why srvctl didn't work with Instance shutdown ?Results of the 1st query
$ srvctl status database -d spike
PRKR-1001 : cluster database spike does not exist
PRKO-2005 : Application error: Failure in getting Cluster Database Configuration for: spike
$
$ ### Tried Upper Case ##########################
$
$ srvctl status database -d SPIKE
PRKR-1001 : cluster database spike does not exist
PRKO-2005 : Application error: Failure in getting Cluster Database Configuration for: spike
$
$ echo $ORACLE_SID
spike2
$
$
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Thu May 26 16:01:24 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Release 10.2.0.4.0 - Production
With the Real Application Clusters option
SQL> select instance_name from v$instance;
INSTANCE_NAME
spike2
SQL> select name from v$database;
NAME
SPIKE
Results for the 2nd query
$ which srvctl
/u01/app/oracle/product/10.2.0/db/bin/srvctl
$
$ egrep '^CHOME|^OHOME' /u01/app/oracle/product/10.2.0/db/bin/srvctl
CHOME=/u01/crs/oracle/product/10.2.0/crs
OHOME=/u01/app/oracle/product/10.2.0/db -
A good Primer on srvctl - Getting things to autostart?
Hello all,
Ok, I've finally gotten 11gR2 clusterware installed. I have ASM installed.
I've created some RAC database instances.
How...wondering how to get all things to autostart on boot...and how to auto shutdown on a clean shutdown of servers.
I know it has to be some sort of srvctl (from the CRS home directory), but trouble is...I'm not finding any clearn instructions on what to use and what order...examples would be a Godsend on this.
I'm guessing I use srvctl add instance at some point...maybe srvctl config database...etc?
I found how to start the scan and scan listener, but not sure how to make sure it comes back up autostart on a reboot.
Any suggestions or links...a good tutorial with examples would be great if anyone had a link or two.
Thanks in advance,
cayennHi Cayenn,
after you installed clusterware, clusterware will take care of your whole stack.
You actually don't have to do anything. If you shutdown a server and start it up again, clusterware will restart everything for you.
So there is no need to do a "clean" shutdown, and no need for a startup.
However if you want to stop it manually:
crsctl stop cluster -n <node>
You can also stop the local ohasd deamon via.
crsctl stop crs
But this is totally unnecessary.
If you want to disable autostart of the cluster then you need to disable it:
crsctl disable crs
crsctl enable crs
Then you have to start the stack with crsctl start crs.
All other things will get started as they wore before...
There is only one thing, which you might want to stop "immediate" and that is the database instance on a server.
srvctl stop instance ... -o immediate
However stopping a database instance has the drawback, that clusterware remembers the state that it was down and will not automatically start it up again.
So better just shutdown your server ;)
Sebastian
Maybe you are looking for
-
How to view the SQL statement generated during execution of the BW Query?
Dear Experts, I am trying to retrieve data in a SAP BW Query from a Non-SAP system. I think if I am able to see the complete SQL statement that was generated when I executed the BW Query, I may be able to use it to retrieve the data. Do you know how
-
How to make a choice in a dropdown box render what appears in anothe dropdox box?
I am currently creating a SP 2013 Site. I have 5 dropdown boxes, when the first one is clicked on (City) it then populates from a lookup table which city is choosen and then fills in the other dropdown boxes. How would I make that happen in SharePoin
-
SQL*Loader sqlldr removes zeros from character field
Hello, I am using SQL*Loader to load an Oracle table, and am having a problem. One of the fields is defined as VARCHAR2 and contains comments entered by a user. There may be numbers or dollar amounts included in this text. When I execute the sqlldr s
-
Hello All, I have a ALE requirement to transfer material. This I am doing in development client i.e. same server in different clients. After this is successful I have to do it with different servers. In SALE all the settings are complete. Remote logi
-
Migrating 11i java custom VO to 12.1.1
Hello, Can we migrate the custom 11i VO to R12 [12.1.1]? We have the jpx file with the substitutions and the custom VO, VORow and VORowImpl class files with us that worked for 11i. Can simply moving the xml and class files to the new R12 JAVA_TOP, jp