오라클 재기동하는 경우
오라클은 자동 실행되지 않기에 서버 다운했다면 반드시 재기동 필요.
오라클 리스너?
오라클 리스너는 네트워크를 이용하여 클라이언트에서 오라클 서버로 연결하기 위한 오라클 네트워크 관리자이다.
즉, 클라이언트의 데이터베이스 접근에 대한 요청을 받아들일 수 있도록 리스너를 가동하고 있어야함.
오라클 리스너 명령어
lsnrctl help
lsnrctl status
lsnrctl start
lsnrctl stop
lsnrctl reload
lsnrctl -> 관리 모드 실행확인
오라클 리스너 및 인스턴스 재실행 방법
▶필자는 오라클 인스턴스는 실행하였으나, 리스너가 종료 되어있어서 연결이 되지 않았다.
[root@192-168-0-42 ~] # su - oracle
oracle@~]sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Wed Apr 3 09:28:02 2024
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> connect /as sysdba
Connected to an idle instance.
SQL> startup
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.
Total System Global Area 1603411968 bytes
Fixed Size 2213776 bytes
Variable Size 1006635120 bytes
Database Buffers 587202560 bytes
Redo Buffers 7360512 bytes
Database mounted.
Database opened.
oracle@~] lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 03-APR-2024 09:34:08
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /home/oracle/app/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /home/oracle/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /home/oracle/app/diag/tnslsnr/192-168-0-42/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.42)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.42)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 03-APR-2024 09:34:08
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /home/oracle/app/diag/tnslsnr/192-168-0-42/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.42)(PORT=1521)))
Services Summary...
Service "서비스명" has 1 instance(s).
Instance "서비스명", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[ 웹개발 ] callback과 async await 의 차이 (0) | 2024.05.12 |
---|---|
[ Git ] 깃 저장소에 올릴 파일을 제외하는법 (.gitignore) (0) | 2024.05.11 |
[ 웹개발 기타 ] SSL 적용 (0) | 2024.03.15 |
[ 웹개발 기타 ] FAKE SMTP (0) | 2024.03.15 |
[ 웹개발 기타 ] BFcache (0) | 2024.03.15 |