오라클 서버의 시작과 종료
♧♣♧♣♧♣♧♣♧♣♧ 시 작 ♣♧♣♧♣♧♣♧♣♧♣♧♣
C:\Documents and Settings>sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on 일 8월 27 23:40:41 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
사용자명 입력: scott/tiger
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
C:\Documents and Settings>sqlplus/nolog
SQL*Plus: Release 10.2.0.1.0 - Production on 일 8월 27 23:43:31 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn sys as sysdba
암호 입력:
휴지 인스턴스에 접속되었습니다.
SQL> startup
ORACLE 인스턴스가 시작되었습니다.
Total System Global Area 167772160 bytes
Fixed Size 1247900 bytes
Variable Size 83887460 bytes
Database Buffers 79691776 bytes
Redo Buffers 2945024 bytes
데이터베이스가 마운트되었습니다.
데이터베이스가 열렸습니다.
SQL> conn scott/tiger
연결되었습니다.
SQL>
♧♣♧♣♧♣♧♣♧♣♧ 종 료 ♣♧♣♧♣♧♣♧♣♧♣♧♣
SQL> conn sys / change_on_install as sysdba;(sys 계정으로 접근)
shutdown normal : (사용자 중심) 모든 사용자가 종료하고 나갈 때까지 기다리고 db종료
일반적으로 shutdown 명령어의 default는 normal이다
shutdown immediate(관리자 중심)
-----> rollback (다시 ---- -.- T.T) DBA 긴급하고 중요한 일
shutdown transactional
shutdown abort : 비상 수단 ---- > 오라클 쪽에서는 책임 안 짐 가급적 안 쓰는 것이 좋다
(서버에서는 쓰지 말자)
SQL> startup force ------------> 언제나 db를 사용할 수 있을 정도까지 올려준다
ORACLE 인스턴스가 시작되었습니다.
Ex)
SQL> shutdow abort
ORACLE 인스턴스가 종료되었습니다.
SQL> conn scott/tiger
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
경고: 이제는 ORACLE에 연결되어 있지 않습니다.
SQL> desc tab;
SP2-0640: 연결되지 않았습니다.
SP2-0641: "DESCRIBE"(이)가 서버로 연결하는데 필요합
SQL> conn sys / change_on_install as sysdba;
휴지 인스턴스에 접속되었습니다.
SQL> startup;
ORACLE 인스턴스가 시작되었습니다.
Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
데이터베이스가 마운트되었습니다.
데이터베이스가 열렸습니다.