关闭
第一个历程:
关闭实例:
[oracle@oracle61 ~]$ sqlplus "/as sysdba"
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
第二个历程:
关闭监听:
[oracle@oracle61 ~]$ lsnrctl stopLSNRCTL for Linux: Version 19.0.0.0.0 - Production on 14-NOV-2023 20:15:48Copyright (c) 1991, 2019, Oracle. All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle61)(PORT=1521)))
The command completed successfully
[oracle@oracle61 ~]$
启动
第一个历程:
[oracle@oracle61 ~]$ sqlplus "/as sysdba"
SQL> startup
SP2-0642: SQL*Plus internal error state 2133, context 3135:0:0
Unsafe to proceed
ORA-03135: connection lost contact
Process ID: 32000
Session ID: 265 Serial number: 21528
SQL>
第二个历程:
[oracle@oracle61 ~]$ lsnrctl startLSNRCTL for Linux: Version 19.0.0.0.0 - Production on 14-NOV-2023 20:22:24Copyright (c) 1991, 2019, Oracle. All rights reserved.Starting /opt/oracle/product/19c/dbhome_1/bin/tnslsnr: please wait...TNSLSNR for Linux: Version 19.0.0.0.0 - Production
System parameter file is /opt/oracle/product/19c/dbhome_1/network/admin/listener.ora
Log messages written to /opt/oracle/diag/tnslsnr/oracle61/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle61)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle61)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 14-NOV-2023 20:22:24
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/product/19c/dbhome_1/network/admin/listener.ora
Listener Log File /opt/oracle/diag/tnslsnr/oracle61/listener/alert/log.xml
Listening Endpoints Summary...(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle61)(PORT=1521)))(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully