0% found this document useful (0 votes)
21 views

How To Startup DB and Verification of The Services

Uploaded by

jagan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

How To Startup DB and Verification of The Services

Uploaded by

jagan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

[root@db001 ~]# oracleasm init

[root@db001 ~]# oracleasm configure -i


Configuring the Oracle ASM library driver.

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 [dba]:
Start Oracle ASM library driver on boot (y/n) [y]:
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
(reverse-i-search)`oarac': oracleasm listdis^C
[root@db001 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[root@db001 ~]# ls /dev/
autofs dri lp2 ptmx sde sdl1 sg8
tty13 tty27 tty40 tty54 ttyS1 vcs6
block fb0 lp3 pts sde1 sdm sg9
tty14 tty28 tty41 tty55 ttyS2 vcsa
bsg fd mapper random sdf sdm1 shm
tty15 tty29 tty42 tty56 ttyS3 vcsa1
btrfs-control full mcelog raw sdf1 sg0 snapshot
tty16 tty3 tty43 tty57 uhid vcsa2
bus fuse mem rtc sdg sg1 snd
tty17 tty30 tty44 tty58 uinput vcsa3
cdrom hpet memory_bandwidth rtc0 sdg1 sg10 sr0
tty18 tty31 tty45 tty59 urandom vcsa4
char hugepages mqueue sda sdh sg11 stderr
tty19 tty32 tty46 tty6 usbmon0 vcsa5
console hwrng net sda1 sdh1 sg12 stdin
tty2 tty33 tty47 tty60 usbmon1 vcsa6
core initctl network_latency sda2 sdi sg13 stdout
tty20 tty34 tty48 tty61 usbmon2 vfio
cpu input network_throughput sdb sdi1 sg2 tty
tty21 tty35 tty49 tty62 vcs vga_arbiter
cpu_dma_latency kmsg null sdb1 sdj sg3 tty0
tty22 tty36 tty5 tty63 vcs1 vg_root
cuse log nvram sdc sdj1 sg4 tty1
tty23 tty37 tty50 tty7 vcs2 vhci
disk loop-control oracleasm sdc1 sdk sg5 tty10
tty24 tty38 tty51 tty8 vcs3 vhost-net
dm-0 lp0 port sdd sdk1 sg6 tty11
tty25 tty39 tty52 tty9 vcs4 vhost-vsock
dm-1 lp1 ppp sdd1 sdl sg7 tty12
tty26 tty4 tty53 ttyS0 vcs5 zero
[root@db001 ~]# cd /etc/sysconfig/
[root@db001 sysconfig]# ll
total 208
-rw-r--r--. 1 root root 0 Aug 8 2019
64bit_strstr_via_64bit_strstr_sse2_unaligned
-rw-r--r--. 1 root root 145 Oct 17 14:57 anaconda
-rw-r--r--. 1 root root 403 Aug 24 2018 atd
-rw-r--r--. 1 root root 483 Oct 17 14:55 authconfig
drwxr-xr-x. 2 root root 43 Oct 17 14:41 cbq
-rw-r--r--. 1 root root 46 Jul 4 2019 chronyd
-rw-r--r-- 1 root root 25 Oct 17 15:02 clock
drwxr-xr-x. 2 root root 6 Jul 18 2019 console
-rw-r--r--. 1 root root 150 Aug 10 2019 cpupower
-rw-------. 1 root root 110 Jun 9 2019 crond
-rw-------. 1 root root 1390 Jan 27 2018 ebtables-config
-rw-r--r--. 1 root root 169 Jun 18 2019 fcoe
-rw-r--r--. 1 root root 73 Aug 9 2019 firewalld
lrwxrwxrwx. 1 root root 15 Oct 17 14:44 grub -> ../default/grub
-rw-r--r--. 1 root root 798 Jul 18 2019 init
-rw-------. 1 root root 2134 Jun 10 2019 ip6tables-config
-rw-------. 1 root root 2116 Jun 10 2019 iptables-config
-rw-r--r--. 1 root root 931 Nov 3 2018 irqbalance
-rw-r--r--. 1 root root 1733 Aug 8 2019 kdump
-rw-r--r--. 1 root root 184 Oct 17 14:55 kernel
-rw-r--r--. 1 root root 168 Aug 7 2019 ksm
-rw-r--r--. 1 root root 1136 Aug 7 2019 libvirtd
-rw-r--r--. 1 root root 200 Aug 25 2018 man-db
drwxr-xr-x. 2 root root 6 Jul 18 2019 modules
-rw-r--r--. 1 root root 634 Jul 18 2019 netconsole
-rw-r--r-- 1 root root 131 Oct 17 15:00 network
-rw-r--r-- 1 root root 22 Oct 17 14:59 network.orabackup
drwxr-xr-x. 2 root root 4096 Oct 17 15:00 network-scripts
-rw-r--r--. 1 root root 1679 Aug 7 2019 nfs
-rw-r--r-- 1 root root 45 Jul 4 2019 ntpd
-rw-r--r--. 1 root root 111 Jul 4 2019 ntpdate
lrwxrwxrwx 1 root root 24 Oct 17 14:58 oracleasm -> oracleasm-_dev_oracleasm
-rw-r--r--. 1 root root 1072 Oct 18 21:22 oracleasm-_dev_oracleasm
drwxr-xr-x. 2 root root 4096 Oct 17 14:59 oracle-database-preinstall-19c
-rw-r--r-- 1 root root 26 Oct 18 11:04 oracledrivers.conf
-rw-r--r--. 1 root root 911 Jun 9 2019 qemu-ga
-rw-r--r--. 1 root root 186 Aug 25 2018 radvd
-rw-r--r--. 1 root root 2915 Jul 17 2019 raid-check
-rw-r--r--. 1 root root 15 Aug 3 2017 rdisc
-rw-r--r--. 1 root root 905 Jul 18 2019 readonly-root
drwxr-xr-x. 4 root root 77 Oct 17 14:44 rhn
-rw-r--r--. 1 root root 73 Jun 18 2019 rpcbind
-rw-r--r--. 1 root root 395 Jun 11 2019 rpc-rquotad
-rw-r--r--. 1 root root 12 May 1 2019 rsyncd
-rw-r--r--. 1 root root 196 Jun 18 2019 rsyslog
-rw-r--r--. 1 root root 0 Apr 29 2014 run-parts
-rw-r--r--. 1 root root 428 Aug 7 2019 samba
-rw-r--r--. 1 root root 429 Feb 1 2018 saslauthd
lrwxrwxrwx. 1 root root 17 Oct 17 14:44 selinux -> ../selinux/config
-rw-r--r--. 1 root root 125 Jun 9 2019 smartmontools
-rw-r--r-- 1 root root 118 Oct 17 15:02 snmpd
-rw-r--r-- 1 root root 109 Oct 17 15:02 snmptrapd
-rw-r-----. 1 root root 506 Aug 7 2019 sshd
-rw-r--r--. 1 root root 138 Jan 27 2018 svnserve
-rw-r--r--. 1 root root 474 Jun 18 2019 sysstat
-rw-r--r--. 1 root root 6228 Jun 18 2019 sysstat.ioconf
-rw-r--r--. 1 root root 55 Aug 7 2019 virtlockd
-rw-r--r--. 1 root root 53 Aug 7 2019 virtlogd
-rw-r--r--. 1 root root 610 Oct 31 2018 wpa_supplicant
-rw-r--r-- 1 root root 2017 Oct 17 15:00 yum-autoupdate
[root@db001 sysconfig]# ls
64bit_strstr_via_64bit_strstr_sse2_unaligned firewalld netconsole
radvd selinux
anaconda grub network
raid-check smartmontools
atd init network.orabackup
rdisc snmpd
authconfig ip6tables-config network-scripts
readonly-root snmptrapd
cbq iptables-config nfs
rhn sshd
chronyd irqbalance ntpd
rpcbind svnserve
clock kdump ntpdate
rpc-rquotad sysstat
console kernel oracleasm
rsyncd sysstat.ioconf
cpupower ksm oracleasm-
_dev_oracleasm rsyslog virtlockd
crond libvirtd oracle-database-
preinstall-19c run-parts virtlogd
ebtables-config man-db oracledrivers.conf
samba wpa_supplicant
fcoe modules qemu-ga
saslauthd yum-autoupdate
[root@db001 sysconfig]# vim oracleasm
[root@db001 sysconfig]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "OCR_VOT_01"
Instantiating disk "OCR_VOT_02"
Instantiating disk "OCR_VOT_03"
Instantiating disk "DG_01"
Instantiating disk "DG_02"
Instantiating disk "DG_03"
Instantiating disk "REDO_MCNG_01"
Instantiating disk "REDO_MCNG_02"
Instantiating disk "REDO_MD_01"
Instantiating disk "REDO_MD_02"
Instantiating disk "FLASH_01"
Instantiating disk "FLASH_02"
[root@db001 sysconfig]# ls /dev/oracleasm/disks/
DG_01 DG_02 DG_03 FLASH_01 FLASH_02 OCR_VOT_01 OCR_VOT_02 OCR_VOT_03
REDO_MCNG_01 REDO_MCNG_02 REDO_MD_01 REDO_MD_02
[root@db001 sysconfig]# crsctl start crs
CRS-4013: This command is not supported in a single-node configuration.
CRS-4000: Command Start failed, or completed with errors.
[root@db001 sysconfig]# crsctl start has
CRS-4640: Oracle High Availability Services is already active
CRS-4000: Command Start failed, or completed with errors.
[root@db001 sysconfig]# ps -ef |grep d.bin
oracle 2439 1 0 21:19 ? 00:00:04 /u01/app/19.0.0/grid/bin/ohasd.bin
reboot
oracle 2937 1 0 21:19 ? 00:00:01
/u01/app/19.0.0/grid/bin/oraagent.bin
oracle 2965 1 0 21:19 ? 00:00:00 /u01/app/19.0.0/grid/bin/evmd.bin
oracle 2967 1 0 21:19 ? 00:00:00 /u01/app/19.0.0/grid/bin/tnslsnr
LISTENER -no_crs_notify -inherit
oracle 3026 2965 0 21:19 ? 00:00:00
/u01/app/19.0.0/grid/bin/evmlogger.bin -o
/u01/app/19.0.0/grid/log/[HOSTNAME]/evmd/evmlogger.info -l
/u01/app/19.0.0/grid/log/[HOSTNAME]/evmd/evmlogger.log
oracle 3042 1 0 21:19 ? 00:00:00 /u01/app/19.0.0/grid/bin/cssdagent
oracle 3081 1 0 21:19 ? 00:00:01 /u01/app/19.0.0/grid/bin/ocssd.bin
root 4254 2313 0 21:26 pts/0 00:00:00 grep --color=auto d.bin
[root@db001 sysconfig]# crsctl stop has -f
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources
on 'db001'
CRS-2673: Attempting to stop 'ora.evmd' on 'db001'
CRS-2673: Attempting to stop 'ora.asm' on 'db001'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'db001'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'db001' succeeded
CRS-2677: Stop of 'ora.evmd' on 'db001' succeeded
CRS-2677: Stop of 'ora.asm' on 'db001' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'db001'
CRS-2677: Stop of 'ora.cssd' on 'db001' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on
'db001' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[root@db001 sysconfig]# ps -ef |grep d.bin
root 4367 2313 0 21:27 pts/0 00:00:00 grep --color=auto d.bin
[root@db001 sysconfig]# crsctl start has
CRS-4123: Oracle High Availability Services has been started.
[root@db001 sysconfig]# ps -ef |grep d.bin
oracle 4442 1 4 21:28 ? 00:00:02 /u01/app/19.0.0/grid/bin/ohasd.bin
reboot
oracle 4619 1 0 21:28 ? 00:00:00 /u01/app/19.0.0/grid/bin/cssdagent
oracle 4624 1 0 21:28 ? 00:00:00
/u01/app/19.0.0/grid/bin/oraagent.bin
oracle 4656 1 0 21:28 ? 00:00:00 /u01/app/19.0.0/grid/bin/ocssd.bin
oracle 4673 1 0 21:28 ? 00:00:00 /u01/app/19.0.0/grid/bin/evmd.bin
oracle 4677 1 0 21:28 ? 00:00:00 /u01/app/19.0.0/grid/bin/tnslsnr
LISTENER -no_crs_notify -inherit
oracle 4756 4673 0 21:28 ? 00:00:00
/u01/app/19.0.0/grid/bin/evmlogger.bin -o
/u01/app/19.0.0/grid/log/[HOSTNAME]/evmd/evmlogger.info -l
/u01/app/19.0.0/grid/log/[HOSTNAME]/evmd/evmlogger.log
root 4915 2313 0 21:28 pts/0 00:00:00 grep --color=auto d.bin
[root@db001 sysconfig]# ls
64bit_strstr_via_64bit_strstr_sse2_unaligned firewalld netconsole
radvd selinux
anaconda grub network
raid-check smartmontools
atd init network.orabackup
rdisc snmpd
authconfig ip6tables-config network-scripts
readonly-root snmptrapd
cbq iptables-config nfs
rhn sshd
chronyd irqbalance ntpd
rpcbind svnserve
clock kdump ntpdate
rpc-rquotad sysstat
console kernel oracleasm
rsyncd sysstat.ioconf
cpupower ksm oracleasm-
_dev_oracleasm rsyslog virtlockd
crond libvirtd oracle-database-
preinstall-19c run-parts virtlogd
ebtables-config man-db oracledrivers.conf
samba wpa_supplicant
fcoe modules qemu-ga
saslauthd yum-autoupdate
[root@db001 sysconfig]# vim oracleasm
[root@db001 sysconfig]# pwd
/etc/sysconfig
[root@db001 sysconfig]#

-----------------------
Verify whether all the disks are online and in stable mode

1.Login as oracle user and execute this script "./crsstat.sh"

NAME TARGET STATE SERVER


STATE_DETAILS
------------------------- ---------- ----------
------------ --------------------------------------
Name Target State
Server State
ora.DATA01.dg ONLINE ONLINE db001
STABLE
ora.FLASH.dg ONLINE ONLINE db001
STABLE
ora.LISTENER.lsnr ONLINE ONLINE db001
STABLE
ora.REDOMCNGDB01.dg ONLINE ONLINE db001
STABLE
ora.REDOMCNGDB02.dg ONLINE ONLINE db001
STABLE
ora.REDOMDDB01.dg ONLINE ONLINE db001
STABLE
ora.REDOMDDB02.dg ONLINE ONLINE db001
STABLE
ora.VOT.dg ONLINE ONLINE db001
STABLE
ora.asm ONLINE ONLINE db001
Started,STABLE
ora.ons OFFLINE OFFLINE db001
STABLE
ora.cssd ONLINE ONLINE db001
STABLE
ora.diskmon OFFLINE OFFLINE STABLE
ora.evmd ONLINE ONLINE db001
STABLE
ora.mcngdb.beserv.svc ONLINE ONLINE db001
STABLE
ora.mcngdb.configserv.svc ONLINE ONLINE db001
STABLE
ora.mcngdb.db ONLINE ONLINE db001
Open,HOME=/u01/app/o
ora.mcngdb.feserv.svc ONLINE ONLINE db001
STABLE
ora.md.db ONLINE ONLINE db001
Open,HOME=/u01/app/o
ora.md.mdserv.svc ONLINE ONLINE db001
STABLE

You might also like