Dear All,
In this post i am going to share few RAC database admin commands (ASM & Listener)
> Connect to RAC server and user below commands from User session level.
srvctl add asm -n
node_name -i asminstance -o ORACLE_HOME [-p spfile]
srvctl remove asm -n node_name [-i asminstance] [-f]
srvctl remove asm -n db6
srvctl start asm -n node_name [-i asminstance] [-o
start_options] [-c connect_str|-q]
srvctl start asm -n node_name [-i asminstance] [-o
open]
srvctl start asm -n node_name [-i asminstance] -o
nomount
srvctl start asm -n node_name [-i asminstance] -o
mount
srvctl start asm -n linux01
srvctl stop asm -n node_name [-i asminstance] [-o stop_options]
[-c connect_str|-q]
srvctl stop asm -n node_name [-i asminstance] [-o
normal]
srvctl stop asm -n node_name [-i asminstance] -o
transactional
srvctl stop asm -n node_name [-i asminstance] -o
immediate
srvctl stop asm -n node_name [-i asminstance]-o abort
srvctl stop asm -n racnode1
srvctl stop asm -n devnode1
-i +asm1
srvctl status asm -n node_name
srvctl status asm -n
racnode1
srvctl enable asm -n
node_name [-i asminstance]
srvctl enable asm -n lnx03
-i +asm3
srvctl disable asm -n node_name [-i asminstance]
srvctl disable asm -n lnx02 -i +asm2
srvctl config asm -n
node_name
srvctl config asm -n lnx08
srvctl modify asm -n
node_name -i asminstance [-o ORACLE_HOME] [-p spfile]
srvctl modify asm –n rac6
-i +asm6 –o /u01/app/oracle/product/11.1/asm
some command's syntax has been changed from next releases:
$ srvctl add asm [-l lsnr_name] [-p spfile] [-d asm_diskstring]
srvctl add asm
srvctl add asm -l LISTENERASM -p +dg_data/spfile.ora
srvctl remove asm [-f]
srvctl remove asm -f
srvctl start asm [-n node_name] [-o start_options]
srvctl start asm -n devnode1
srvctl stop asm [-n node_name] [-o stop_options] [-f]
srvctl stop asm -n devnode1 -f
srvctl status asm [-n node_name] [-a]
srvctl status asm -n devnode1 -a
srvctl enable asm [-n node_name]
srvctl enable asm -n devnode1
srvctl disable asm [-n node_name]
srvctl disable asm -n devnode1
srvctl config asm [-a]
srvctl config asm -a
srvctl modify asm [-l lsnr_name] [-p spfile] [-d asm_diskstring]
srvctl modify asm [-n node_name] [-l listener_name] [-d
asm_diskstring] [-p spfile_path_name]
srvctl modify asm -l lsnr1
srvctl getenv asm [-t name[, ...]]
srvctl getenv asm
srvctl setenv asm {-t "name=val [,...]" | -T
"name=value"}
srvctl setenv asm -t LANG=en
srvctl unsetenv asm -t "name[, ...]"
srvctl unsetenv asm -t CLASSPATH
Next Listener Admin commands:
srvctl add listener -n node_name -o ORACLE_HOME [-l listener_name]
srvctl remove listener -n node_name [-l listener_name] -- 11g R1 command
srvctl start listener -n node_name [-l listener_names]
srvctl start listener -n
node1
srvctl stop listener -n node_name [-l listener_names]
srvctl stop listener -n
node1
srvctl status listener
[-n node_name] [-l listener_names] -- 11g R1 command
srvctl status listener -n
node2
srvctl config listener -n
node_name
srvctl modify listener -n
node_name [-l listener_names] -o ORACLE_HOME
-- 11g
R1 command
srvctl modify listener -n
racdb4 -o /u01/app/oracle/product/11.1/asm -l "LISTENER_RACDB4"
some command's syntax has been changed from next releases:
srvctl add listener [-l
lsnr_name] [-s] [-p "[TCP:]port[,
...][/IPC:key][/NMP:pipe_name][/TCPS:s_port] [/SDP:port]"] [-k
network_number] [-o ORACLE_HOME]
srvctl add listener -l
LISTENERASM -p "TCP:1522" -o $ORACLE_HOME
srvctl add listener -l
listener112 -p 1341 -o /ora/ora112
srvctl remove listener [-l
lsnr_name|-a] [-f]
srvctl remove listener -l
lsnr01
srvctl stop listener [-n
node_name] [-l lsnr_name] [-f]
srvctl enable listener [-l
lsnr_name] [-n node_name]
srvctl enable listener -l
listener_dev -n node5
srvctl disable listener [-l
lsnr_name] [-n node_name]
srvctl disable listener -l
listener_dev -n node5
srvctl config listener [-l
lsnr_name] [-a]
srvctl config listener
srvctl modify listener [-l
listener_name] [-o oracle_home] [-u user_name] [-p
"[TCP:]port_list[/IPC:key][/NMP:pipe_name][/TCPS:s_port][/SDP:port]"]
[-k network_number]
srvctl modify listener -n
node1 -p "TCP:1521,1522"
srvctl getenv listener [-l
lsnr_name] [-t name[, ...]]
srvctl getenv listener
srvctl setenv listener [-l
lsnr_name] {-t "name=val [,...]" | -T "name=value"}
srvctl setenv listener -t
LANG=en
srvctl unsetenv listener
[-l lsnr_name] -t "name[, ...]"
srvctl unsetenv listener -t
"TNS_ADMIN"
Thanks,
Srini
No comments:
Post a Comment
No one has ever become poor by giving