강좌
클라우드/리눅스에 관한 강좌입니다.
데이터베이스 분류

시동/종료를 새로운 방식으로..

작성자 정보

  • 웹관리자 작성
  • 작성일

컨텐츠 정보

본문

시동/종료를 새로운 방식으로..



8i부터는 server manager(svrmgrl)보다는 sqlplus를 통한 작업을 하라고 권장하고 있다.
특히, 9i부터는 server manager가 없어졌고, sqlplus를 통해서만 작업해야 한다.
따라서, 9i에서도 아래와 동일한 방식으로 작업이 가능하다.

여기에서는 이전버전과의 호환성을 위해 존재하는 방식을 보이고, 이를 대체하는 방식을 보일 것이다.
사실 알게모르게 이전버전방식으로 사용하는 사람이 대다수인 것으로 알고 있다.
8i,9i부터는 이 방식으로 사용하게 되므로, 이번 기회에 방식을 바꿔보도록 하자.


[이전 방식]
dba그룹의 oracle계정으로 접속하여 svrmgrl를 통해 오라클을 시동시킨다.
굳이 oracle계정이 아니더라도, dba그룹에 속한 계정이라면 동일하게 수행시킬 수 있다.
[kang@linux kang]$ su - oracle
Password:
[oracle@linux oracle]$ svrmgrl

Oracle Server Manager Release 3.1.7.0.0 - Production

Copyright (c) 1997, 1999, Oracle Corporation.  All Rights Reserved.

Oracle8i Enterprise Edition Release 8.1.7.0.1 - Production
With the Partitioning option
JServer Release 8.1.7.0.1 - Production

connect internal은 이전호환성을 위해서 존재한다
대신, connect system/manager as sysoper 와 같이 사용하라.
SVRMGR> connect internal  
Connected.
SVRMGR> startup
ORACLE instance started.
Total System Global Area                         30064800 bytes
Fixed Size                                          73888 bytes
Variable Size                                    13041664 bytes
Database Buffers                                 16777216 bytes
Redo Buffers                                       172032 bytes
Database mounted.
Database opened.
SVRMGR> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SVRMGR> quit
Server Manager complete.
[oracle@linux oracle]$



[새로운 방식]
SQL*PLUS실행시 nolog옵션으로 실행한다.
[kang@linux kang]$ sqlplus /nolog

SQL*Plus: Release 8.1.7.0.0 - Production on Sat Apr 19 15:50:16 2003

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

system은 sysoper을 위한 용도로 사용하고, sys는 sysdba를 위한 용도로 사용하도록 하자.
SQL> connect system/manager as sysoper
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Database mounted.
Database opened.
SQL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> quit
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.0.1 - Production
With the Partitioning option
JServer Release 8.1.7.0.1 - Production
[kang@linux kang]$


This article comes from dbakorea.pe.kr (Leave this line as is)

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,039 명
  • 현재 강좌수 :  35,848 개
  • 현재 접속자 :  86 명