1. 시작하기
[root@dbdb]# su -l oracle
[oracle@dbdb ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Apr 6 09:26:13 2021
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 5016387584 bytes
Fixed Size 2027640 bytes
Variable Size 956305288 bytes
Database Buffers 4043309056 bytes
Redo Buffers 14745600 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
[oracle@dbdb ~]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 06-APR-2021 09:26:37
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /opt/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /opt/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /opt/oracle/product/10.2.0/db_1/network/log/listener.ora
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=kdb2)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dbdb)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 06-APR-2021 09:26:37
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/10.2.0/db_1/network/admin/listener.ora
Listener Log File /opt/oracle/product/10.2.0/db_1/network/log/listener.ora
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbdb)(PORT=1521)))
Services Summary...
Service "dbdb" has 1 instance(s).
Instance "dbdb", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
2. 종료
[root@dbdb]# su -l oracle
[oracle@dbdb ~]$ lsnrctl stop
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 06-APR-2021 09:24:45
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dbdb)(PORT=1521)))
The command completed successfully
[oracle@dbdb ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Apr 6 09:25:05 2021
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect /as sysdba
Connected.
SQL> shutdown abort
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
'코딩 관련 > DB' 카테고리의 다른 글
[Postgre] ERROR: relation does not exist (0) | 2021.07.28 |
---|---|
[Oracle] Sysdate 계산 관련 (0) | 2021.04.23 |
[Oracle SQL] 날짜구하기, 어제 날짜 구하기, 전 날 구하기 등 (0) | 2021.01.29 |
[Oracle SQL Developer] 왼쪽 브라우저 창(접속 창) 없어졌을때.. (1) | 2021.01.29 |
[SQL][MyBatis] 서로 다른 테이블에 같은 시퀀스 번호 사용하기 (0) | 2020.09.16 |