=====================================================
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명
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명