로그인
Sign in
=====================================================
tnslsnr 점검 및 stop
-----------------------------------------------------
tnslsnr process 점검
$ps -ef | grep tnslsnr | grep -v grep
oradbm1 27480     1 203  Apr 20  ?        4406:18 /oradbm1/app/oracle/product/817/bin/tnslsnr LISTENER -inherit
oradbm1 12296     1  0  Apr 28  ?        2254:00 /oradbm1/app/oracle/product/817/bin/tnslsnr LISTENER1 -inherit
$lsnrctl stop LISTENER
$lsnrctl stop LISTENER1
반드시 떠 있는 리스너 명칭을 미리 기억해 둘 것
리스너명은 대소문자 구분 안함
한 개일 경우엔 리스너명 생략 가능
ex) lsnrctl stop

======================================================
외부에서 oracle 을 사용중인 process kill(LOCAL=NO)
------------------------------------------------------
$kill `ps -ef | grep 'LOCAL=[nN][oO]' | grep -v grep | awk '{ print $2; }'`
프로세스 확인한다.
$ps -ef | grep 'LOCAL=[nN][oO]' | grep -v grep
process가 떠 있으면 다른 command 를 사용하여 전부 죽인다.


=====================================================
oracle 8x의 경우  =>svrmgrl 로 들어가서 시작,종료
----------------------------------------------------
oracle user로 들어가서
$svrmgrl
(c) Copyright 1999 oracle Corporation. All rights reserved.
Enter user-name: system
Enter password:
Connected to:
oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
With the Partitioning option
JServer Release 8.1.6.0.0 - Production

SQL> connect internal
Connected.

SQL> shutdown immediate;
Database closed.
Database dismounted.
oracle instance shut down.

shutdown이 되지 않을 경우
해당 session 끊고, 다른 session에서
SQL> shutdown abort;
를 실행한다.


SQL> startup
oracle instance started.
Total System Global Area 743436272 bytes
Fixed Size 69616 bytes
Variable Size 210477056 bytes
Database Buffers 532717568 bytes
Redo Buffers 172032 bytes
Database mounted.
Database opened.
SQL>
======================================================
oracle 9i의 경우 =>sqlplus 에서 시작, 종료
-----------------------------------------------

[oracle@djlug 9.2.0]$ sqlplus " /as sysdba"

SQL*Plus: Release 9.2.0.1.0 - Production on Thu Jul 31 16:57:27 2003
Copyright (c) 1982, 2002, oracle Corporation. All rights reserved.
Connected to:
oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> shutdown immediate;
Database closed.
Database dismounted.
oracle instance shut down.

shutdown이 되지 않을 경우
해당 session 끊고, 다른 session에서
SQL> shutdown abort;
를 실행한다.


SQL> startup
oracle instance started.
Total System Global Area 789648140 bytes
Fixed Size 451340 bytes
Variable Size 654311424 bytes
Database Buffers 134217728 bytes
Redo Buffers 667648 bytes
Database mounted.
Database opened.
SQL>

위에 보시면 Database opened. 상태 까지 올라와야 정상적입니다.

=====================================================
tnslsnr start
-----------------------------------------------------
oracle shutdown 전에 점검했던 tnslsnr 명칭 기억할 것
$lsnrctl start LISTENER
$lsnrctl start LISTENER1
tnslsnr process 점검
$ps -ef | grep tnslsnr | grep -v grep
oradbm1 27480     1 203  Apr 20  ?        4406:18 /oradbm1/app/oracle/product/817/bin/tnslsnr LISTENER -inherit
oradbm1 12296     1  0  Apr 28  ?        2254:00 /oradbm1/app/oracle/product/817/bin/tnslsnr LISTENER1 -inherit
한 개일 경우엔 리스너명 생략 가능
리스너명은 대소문자 구분 안함
ex) lsnrctl start


==================================================================
만약 shutdown 시 hang이 걸리거나 트랜젝션일 경우 강제로 종료 할때
프로세스를 죽이는 방법이 있습니다.
특히 이경우에는 조심하게 다뤄야 합니다. 다시 startup 할때 DB에 문제가 있을수 있습니다.

$ps -ef|grep ora_

해당 프로세스를 모두 kill하시면 됩니다.
ex) $kill -9 PID
$ps -ef|grep lsnr*

해당 리스너 프로세스를 kill 하시면 됩니다.
ex) $kill -9 PID
=====================================================================

윈도우 경우 ... 서비스 관리자에서 시작과 중지를 하시면 됩니다.
또다른 방법으로는
DOS창에서 command 명령으로 실행하는 방법이 있습니다.

>lsnrctl stop

>lsnrctl start

>oradim -startup -sid SID명

>oradim -stutdown -sid SID명


조회 수 :
930
추천 수 :
12 / 0
등록일 :
2008.10.30
14:55:06 (*.236.3.225)
엮인글 :
http://bestceok.com/xe/index.php?mid=unix_com&document_srl=2813&act=trackback&key=9f4
게시글 주소 :
http://bestceok.com/xe/index.php?mid=unix_com&document_srl=2813
List of Articles
번호 제목 글쓴이 날짜 조회 수
공지 자주 사용하는 명령어 제비게릴라 2019-06-27 179
152 hpacucli 사용법 하록 2010-04-08 3141
151 vsftpd home 접근제어... 하록 2010-04-02 470
150 파일 시스템이 read only 로 마운트 됐을때... 하록 2010-01-27 689
149 ping으로 서버 운영체제 알기... 하록 2009-12-17 498
148 q4 분석 방법 하록 2009-07-10 475
147 cannot restore segment prot after reloc: Permission denied 해결 방법 하록 2009-04-16 1486
146 xxxx.src.rpm 빌드하는 방법 하록 2009-04-09 488
145 ethtool 설정 옵션... [2] 하록 2009-03-19 1033
144 HP-UX 11.00 시스템에서 이전 패치 제거 하록 2009-03-18 874
143 HPUX 커널 설명... file 하록 2009-03-17 440
» Oracle 8i와 9i Startup 방법 하록 2008-10-30 930
141 ndd 설정값 확인 하록 2008-10-29 619
140 LVM Error 메세지 별 해결 방법 하록 2008-10-24 1387
139 vgexport와 vgimport 설명 하록 2008-10-22 1984
138 Netapp Disk Array 메세지 확인 법 하록 2008-10-15 615
137 리눅스 스왑 생성 하록 2008-10-09 561
136 System 온도가 OVERTEMP CRITICAL일때 root mail 등으로 경고 메세지를 받고자 합니다. 하록 2008-09-09 897
135 RP 7410의 overtemp range 하록 2008-09-09 890
134 HPUX 11i Version 정보... 하록 2008-08-20 2568
133 Port Scan Source... 하록 2008-08-01 609