Oracle Database Service Start/Stop

STOP Database Service
Navigate to database home path
e.g.
cd /home/oracle/app/oracle/product/12.2.0/dbhome_1/bin
./sqlplus "sys/Password as SYSDBA"

SQL> shutdown immediate;

STOP Database(DB) listener service
./lsnrctl stop

./lsnrctl status

ps -ef | grep java
Check there should not be any JAVA processes are running…



START Database Service
Once unix machine is started back in running mode…

START (In below sequence only)
cd /home/oracle/app/oracle/product/12.2.0/dbhome_1/bin

Check listener services are running or not!
./lsnrctl start

./lsnrctl status

Login to DB as sysdba
./sqlplus "sys/Password as SYSDBA"


SQL> startup;
ORACLE instance started.

Total System Global Area     6241124352 bytes
Fixed Size                              8634512 bytes
Variable Size                         1258295152 bytes
Database Buffers                   4966055936 bytes
Redo Buffers                         8138752 bytes
Database mounted.
Database opened.

SQL> alter session set container=ORCLPDB1;

SQL> show con_name;

SQL> startup;
Pluggable Database opened.

##Below steps only for Oracle 19c
SQL> alter session set container=ORCLPDB1; 
SQL> show con_name; 
SQL> startup; 
Pluggable Database opened. 

SQL> SELECT INSTANCE_NAME, STATUS, DATABASE_STATUS FROM V$INSTANCE; 

SQL> exit;

./lsnrctl status

./lsnrctl reload


[server bin]$ tnsping my.host.com

TNS Ping Utility for Linux: Version 12.2.0.1.0 - Production

Copyright (c) 1997, 2016, Oracle.  All rights reserved.

Used parameter files:
/home/oracle/app/oracle/product/12.2.0/dbhome_1/network/admin/sqlnet.ora

Used EZCONNECT adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=my.host.com)(PORT=1521)))
OK (0 msec)

Comments

Popular posts from this blog

PUTTY - The server's host key is not cached in the registry cache

OIM-12c Installation - FMW - SOA - IDM

SAML & OAuth 2.0