Search Results for 'oracle 실행 및 종료'

1 POSTS

  1. 2008.10.01 Oracle 실행 및 종료, lsnrctl 실행

Oracle 실행 및 종료, lsnrctl 실행

Posted 2008. 10. 1. 10:50


oracle 실행

oracle 은 3단계를 거쳐서 실행이 됩니다.

1.Instance Started
2.Database Mounted
3.Database Opened

[oracle@whitespace oracle]$ sqlplus /nolog

SQL*Plus: Release 9.2.0.1.0 - Production on Thu Feb 26 13:21:37 2004

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

SQL> connect /as sysdba
Connected to an idle instance.
SQL> startup nomount;
ORACLE instance started.

Total System Global Area 235999352 bytes
Fixed Size 450680 bytes
Variable Size 201326592 bytes
Database Buffers 33554432 bytes
Redo Buffers 667648 bytes
SQL> alter database mount;
alter database mount
SQL> alter database open;

Database altered.


시작과 관련된 option에는 여러가지가 있습니다. 이와 관련된것은 서적을 참고해 주세요.

oracle 종료

종료의 종류에는 3가지가 있습니다.

normal,immediate,abort

normal 은 기존에 oracle 사용자가 있을 경우 사용자가 모두 종료할때까지
기다립니다.
immdiate 는 기존의 사용자를 기다리지 않습니다. 기존의 사용한 모든 SQL은
rollback이 됩니다.
abort는 Database를 close하지도 않고 instance만 바로 종료합니다.
가장 빠르지만 가장 하지 말아야 할것중에 하나이지요.

SVRMGR> connect internal
Connected.
SVRMGR> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.

SVRMGR> connect internal
Connected.
SVRMGR> shutdown IMMEDIATE
Database closed.
Database dismounted.
ORACLE instance shut down.

SVRMGR> connect internal
Connected.
SVRMGR> shutdown abort
ORACLE instance shut down.

 


listener는 oracle database에 client 가 connection를 하기 위해 실행을 해 주어야 합니다.

가끔 서버 관리 하시는 분들은 listener를 실행을 하지 않아 프로그램쪽에서
conneciton 에러를 발생하여 담당자에게 전화가 오는 경우가 많이 있지요.

리스너 확인

[oracle@whitespace oracle]$ ps -ef | grep lsnrctl
oracle 4984 4607 0 22:12 pts/1 00:00:00 grep lsnrctl

[oracle@whitespace oracle]$ lsnrctl start

LSNRCTL for Linux: Version 8.0.5.0.0 - Production on 16-MAR-01 22:13:11

(c) Copyright 1997 Oracle Corporation. All rights reserved.

TNS-01106: Listener using listener name LISTENER has already been started
[oracle@whitespace oracle]$

option으로는 start | status | stop

'DataBase > Oralce' 카테고리의 다른 글

Linux x86에 Oracle Database 10g 설치하기  (0) 2008.10.01
오라클(OCP)10g 설치방법  (0) 2008.10.01
oracle 10g+linux as4설치방법  (0) 2008.10.01
lsnrctl  (0) 2008.10.01
오라클 RedHat Linux AS 4.4 x86 Oracle 9i 설치  (0) 2008.10.01
oracle sqlplus 명령 모음  (0) 2008.10.01
Oracle SYS, System 비번 잃어버렸을때  (0) 2008.10.01