oracle 실행 oracle 은 3단계를 거쳐서 실행이 됩니다.
1.Instance Started
2.Database Mounted
3.Database Opened
[oracle@leehr ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Wed Jun 7 13:43:41 2017
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
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.
oracle 종료 종료의 종류에는 3가지
normal,immediate,abort
normal 은 기존에 oracle 사용자가 있을 경우 사용자가 모두 종료할때까지 기다립니다.
immdiate 는 기존의 사용자를 기다리지 않습니다. 기존의 사용한 모든 SQL은 rollback이 됩니다.
abort는 Database를 close하지도 않고 instance만 바로 종료합니다. 가장 빠르지만 가장 하지 말아야 할것중에 하나이지요.
SQL> connect internal
Connected.
SQL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> connect internal
Connected.
SQL> shutdown IMMEDIATE
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> connect internal
Connected.
SQL> shutdown abort
ORACLE instance shut down.
(내용 수정)
출처: http://youthgonewild.tistory.com/category/DB/Oracle [거칠은 젊음]
0 개의 댓글:
댓글 쓰기