Vous êtes sur la page 1sur 7

DBREL1 /oracle/product/app/10R2/db/scripts > crs_stat -l

NAME=ora.DBREL.DBREL1.inst
TYPE=application
TARGET=ONLINE
STATE=OFFLINE
NAME=ora.DBREL.DBREL2.inst
TYPE=application
TARGET=ONLINE
STATE=OFFLINE
NAME=ora.DBREL.db
TYPE=application
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.cot-dbrel-001.ASM1.asm
TYPE=application
TARGET=ONLINE
STATE=OFFLINE
NAME=ora.cot-dbrel-001.LISTENER_COT-DBREL-001.lsnr
TYPE=application
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.cot-dbrel-001.gsd
TYPE=application
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.cot-dbrel-001.ons
TYPE=application
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.cot-dbrel-001.vip
TYPE=application
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.cot-dbrel-002.ASM2.asm
TYPE=application
TARGET=ONLINE
STATE=OFFLINE
NAME=ora.cot-dbrel-002.LISTENER_COT-DBREL-002.lsnr
TYPE=application
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.cot-dbrel-002.gsd
TYPE=application
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.cot-dbrel-002.ons
TYPE=application
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.cot-dbrel-002.vip
TYPE=application
TARGET=OFFLINE
STATE=OFFLINE
DBREL1 /oracle/product/app/10R2/db/scripts >

DBREL1 /oracle/product/app/10R2/db/scripts > crs_stat -t


Name Type Target State Host
------------------------------------------------------------
ora....L1.inst application ONLINE OFFLINE
ora....L2.inst application ONLINE OFFLINE
ora.DBREL.db application OFFLINE OFFLINE
ora....SM1.asm application ONLINE OFFLINE
ora....01.lsnr application OFFLINE OFFLINE
ora....001.gsd application OFFLINE OFFLINE
ora....001.ons application OFFLINE OFFLINE
ora....001.vip application OFFLINE OFFLINE
ora....SM2.asm application ONLINE OFFLINE
ora....02.lsnr application OFFLINE OFFLINE
ora....002.gsd application OFFLINE OFFLINE
ora....002.ons application OFFLINE OFFLINE
ora....002.vip application OFFLINE OFFLINE

**************************************
srvctl stop nodeapps -n cot-dbrel-001
srvctl stop listener -n cot-dbrel-001
srvctl stop instance -i DBREL1 -d DBREL
srvctl stop asm -n cot-dbrel-001
crs_stop state ora.DBREL.DBREL1.inst
crs_stop target ora.DBREL.DBREL1.inst
crs_stop state ora.DBREL.DBREL2.inst
crs_stop target ora.DBREL.DBREL2.inst
crs_stop state ora.cot-dbrel-001.ASM1.asm
crs_stop target ora.cot-dbrel-001.ASM1.asm
crs_stop target ora.cot-dbrel-002.ASM2.asm
crs_stop target ora.cot-dbrel-002.ASM2.asm
**************************************

srvctl getenv asm -t ora.cot-dbrel-001.ASM1.asm

srvctl getenv asm -n cot-dbrel-001

srvctl setenv asm {-t name=val[,name=val,...] | -T name=val}


DBREL1 /oracle/product/app/10R2/db/scripts > more stop_db.sh
srvctl stop nodeapps -n cot-dbrel-001
srvctl stop listener -n cot-dbrel-001
srvctl stop instance -i DBREL1 -d DBREL
srvctl stop asm -n cot-dbrel-001

DBREL1 /oracle/product/app/10R2/db/scripts > crs_stat -t


Name Type Target State Host
------------------------------------------------------------
ora....L1.inst application OFFLINE OFFLINE
ora....L2.inst application OFFLINE OFFLINE
ora.DBREL.db application OFFLINE OFFLINE
ora....SM1.asm application OFFLINE OFFLINE
ora....01.lsnr application OFFLINE OFFLINE
ora....001.gsd application OFFLINE OFFLINE
ora....001.ons application OFFLINE OFFLINE
ora....001.vip application OFFLINE OFFLINE
ora....SM2.asm application OFFLINE OFFLINE
ora....02.lsnr application OFFLINE OFFLINE
ora....002.gsd application OFFLINE OFFLINE
ora....002.ons application OFFLINE OFFLINE
ora....002.vip application OFFLINE OFFLINE
DBREL1 /oracle/product/app/10R2/db/scripts > ./start_db.sh
PRKP-1001 : Error starting instance DBREL1 on node cot-dbrel-001
cot-dbrel-001:ora.cot-dbrel-001.ASM1.asm:
cot-dbrel-001:ora.cot-dbrel-001.ASM1.asm:SQL*Plus: Release 10.2.0.4.0 - Producti
on on Tue Oct 19 14:49:27 2010
cot-dbrel-001:ora.cot-dbrel-001.ASM1.asm:
cot-dbrel-001:ora.cot-dbrel-001.ASM1.asm:Copyright (c) 1982, 2007, Oracle. All
Rights Reserved.
cot-dbrel-001:ora.cot-dbrel-001.ASM1.asm:
cot-dbrel-001:ora.cot-dbrel-001.ASM1.asm:Enter user-name: Connected to an idle i
nstance.
cot-dbrel-001:ora.cot-dbrel-001.ASM1.asm:
cot-dbrel-001:ora.cot-dbrel-001.ASM1.asm:SQL> ORA-01078: failure in processing s
ystem parameters
cot-dbrel-001:ora.cot-dbrel-001.ASM1.asm:LRM-00109: could not open parameter fil
e '/oracle/product/app/10R2/db/dbs/init+ASM1.ora'
cot-dbrel-001:ora.cot-dbrel-001.ASM1.asm:SQL> Disconnected
cot-dbrel-001:ora.cot-dbrel-001.ASM1.asm:
CRS-0215: Could not start resource 'ora.DBREL.DBREL1.inst'.
DBREL1 /oracle/product/app/10R2/db/scripts > crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....L1.inst application ONLINE OFFLINE
ora....L2.inst application OFFLINE OFFLINE
ora.DBREL.db application OFFLINE OFFLINE
ora....SM1.asm application ONLINE OFFLINE
ora....01.lsnr application ONLINE ONLINE cot-...-001
ora....001.gsd application ONLINE ONLINE cot-...-001
ora....001.ons application ONLINE ONLINE cot-...-001
ora....001.vip application ONLINE ONLINE cot-...-001
ora....SM2.asm application OFFLINE OFFLINE
ora....02.lsnr application OFFLINE OFFLINE
ora....002.gsd application OFFLINE OFFLINE
ora....002.ons application OFFLINE OFFLINE
ora....002.vip application OFFLINE OFFLINE
DBREL1 /oracle/product/app/10R2/db/scripts >

DBREL1 /oracle/product/app/10R2/db/scripts > more stop_db.sh


srvctl stop nodeapps -n cot-dbrel-001
srvctl stop listener -n cot-dbrel-001
srvctl stop instance -i DBREL1 -d DBREL
srvctl start asm -n cot-dbrel-001 -o /oracle/product/asm/dbs

srvctl start nodeapps -n cot-dbrel-001


srvctl start listener -n cot-dbrel-001
srvctl start asm -n cot-dbrel-001
srvctl start instance -i DBREL1 -d DBREL

vi start_teste.db

DBREL1 /oracle/product/app/10R2/db/scripts > more start_db.sh


srvctl start nodeapps -n cot-dbrel-001
srvctl start listener -n cot-dbrel-001
srvctl start asm -n cot-dbrel-001 -o /oracle/product/asm/dbs
srvctl start instance -i DBREL1 -d DBREL

crs_register ora.rcortest01.LISTENER_RCORTEST01_DB2.lsnr -dir /tmp -f

srvctl setenv database -d ProdDb -T TNS_ADMIN='/d01/app/oracle/product/10.2.0/as


m/network/admin'

crs_register ora.racnode2.vip -dir /u01/app/oracle/caps

crs_unregister ora.racnode2.vip

crs_register ora.racnode2.vip -dir /u01/app/oracle/caps

crs_unregister ora.cot-dbrel-001.ASM1.asm

srvctl modify asm -n SM1.asm -o /oracle/product/asm/dbs


srvctl modify asm -n cot-dbrel-001.ASM1 -o /oracle/product/asm/dbs
srvctl config asm -n adcracdbp4
+ASM1 /u00/app/oracle/product/11.1/asm
srvctl config asm -n adcracdbp4
+ASM1 /u00/app/oracle/product/11.1/asm

srvctl modify asm n adcracdbp4 o /u01/app/oracle/product/11.1/asm

srvctl config asm -n adcracdbp4


+ASM1 /u00/app/oracle/product/11.1/asm

/oracle/product/app/10R2/db/dbs/init+ASM1.ora
/oracle/product/asm/dbs/init+ASM1.ora

srvctl modify asm -d ora.cot-dbrel-001.ASM1.asm -a /oracle/product/asm/dbs/init+


ASM1.ora

srvctl modify database -d gg01 -p +DATA/gg01/spfilegg01.ora


srvctl modify database -d gg01 -p +DATA/gg01/spfilegg01.ora

Name Type Target State Host


------------------------------------------------------------
ora....L1.inst application OFFLINE OFFLINE
ora....L2.inst application OFFLINE OFFLINE
ora.DBREL.db application OFFLINE OFFLINE
ora....SM1.asm application OFFLINE OFFLINE
ora....01.lsnr application OFFLINE OFFLINE
ora....001.gsd application OFFLINE OFFLINE
ora....001.ons application OFFLINE OFFLINE
ora....001.vip application OFFLINE OFFLINE
ora....SM2.asm application OFFLINE OFFLINE
ora....02.lsnr application OFFLINE OFFLINE
ora....002.gsd application OFFLINE OFFLINE
ora....002.ons application OFFLINE OFFLINE
ora....002.vip application OFFLINE OFFLINE

srvctl modify asm -n cot-dbrel-001 -i +ASM1 -o /oracle/product/asm/ -p /oracle/p


roduct/asm/dbs/init+ASM1.ora

srvctl modify asm -n node_name -i asm_instance_name [-o Oracle_home] [-p spfile]

NAME=ora.cot-dbrel-001.ASM1.asm
TYPE=application
ACTION_SCRIPT=/oracle/product/app/10R2/db/bin/racgwrap
ACTIVE_PLACEMENT=0
AUTO_START=1
CHECK_INTERVAL=600
DESCRIPTION=CRS application for ASM instance
FAILOVER_DELAY=0
FAILURE_INTERVAL=0
FAILURE_THRESHOLD=0
HOSTING_MEMBERS=cot-dbrel-001
OPTIONAL_RESOURCES=
PLACEMENT=restricted
REQUIRED_RESOURCES=
RESTART_ATTEMPTS=5
SCRIPT_TIMEOUT=600
START_TIMEOUT=0
STOP_TIMEOUT=0
UPTIME_THRESHOLD=7d
USR_ORA_ALERT_NAME=
USR_ORA_CHECK_TIMEOUT=0
USR_ORA_CONNECT_STR=/ as sysdba
USR_ORA_DEBUG=0
USR_ORA_DISCONNECT=false
USR_ORA_FLAGS=
USR_ORA_IF=
USR_ORA_INST_NOT_SHUTDOWN=
USR_ORA_LANG=
USR_ORA_NETMASK=
USR_ORA_OPEN_MODE=mount
USR_ORA_OPI=false
USR_ORA_PFILE=
USR_ORA_PRECONNECT=none
USR_ORA_SRV=
USR_ORA_START_TIMEOUT=0
USR_ORA_STOP_MODE=immediate
USR_ORA_STOP_TIMEOUT=0
USR_ORA_VIP=

NAME=ora.cot-dbrel-002.ASM2.asm
TYPE=application
ACTION_SCRIPT=/oracle/product/app/10R2/db/bin/racgwrap
ACTIVE_PLACEMENT=0
AUTO_START=1
CHECK_INTERVAL=600
DESCRIPTION=CRS application for ASM instance
FAILOVER_DELAY=0
FAILURE_INTERVAL=0
FAILURE_THRESHOLD=0
HOSTING_MEMBERS=cot-dbrel-002
OPTIONAL_RESOURCES=
PLACEMENT=restricted
REQUIRED_RESOURCES=
RESTART_ATTEMPTS=5
SCRIPT_TIMEOUT=600
START_TIMEOUT=0
STOP_TIMEOUT=0
UPTIME_THRESHOLD=7d
USR_ORA_ALERT_NAME=
USR_ORA_CHECK_TIMEOUT=0
USR_ORA_CONNECT_STR=/ as sysdba
USR_ORA_DEBUG=0
USR_ORA_DISCONNECT=false
USR_ORA_FLAGS=
USR_ORA_IF=
USR_ORA_INST_NOT_SHUTDOWN=
USR_ORA_LANG=
USR_ORA_NETMASK=
USR_ORA_OPEN_MODE=mount
USR_ORA_OPI=false
USR_ORA_PFILE=
USR_ORA_PRECONNECT=none
USR_ORA_SRV=
USR_ORA_START_TIMEOUT=0
USR_ORA_STOP_MODE=immediate
USR_ORA_STOP_TIMEOUT=0
USR_ORA_VIP=

crs_register ora.cot-dbrel-001.ASM1.asm -update -a /oracle/product/asm/bin/racgw


rap

crs_register ora.cot-dbrel-002.ASM2.asm -update -a /oracle/product/asm/bin/racgw


rap

crs_register resource_name -update [-a action_script]

crs_register resource_name -update [-a action_script]

Vous aimerez peut-être aussi