Technical posts/Oracle

Oracle read only mode / 오라클 read only 모드

ODB 2015. 4. 13. 08:19

그냥 간단하게 설명한다

oracle을 read only 모드로 오픈 할때는

startup mount
alter database open read only

oracle을 read write 모드로 오픈 할때는

startup 




SQL*Plus: Release 11.2.0.3.0 Production on 월 4월 13 08:12:18 2015


Copyright (c) 1982, 2011, Oracle.  All rights reserved.


사용자명 입력: /as sysdba


다음에 접속됨:

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options


SQL> shutdown immediate

데이터베이스가 닫혔습니다.

데이터베이스가 마운트 해제되었습니다.

ORACLE 인스턴스가 종료되었습니다.

SQL> startup mount

ORACLE 인스턴스가 시작되었습니다.


Total System Global Area 1570009088 bytes

Fixed Size                  2255544 bytes

Variable Size             973079880 bytes

Database Buffers          587202560 bytes

Redo Buffers                7471104 bytes

데이터베이스가 마운트되었습니다.

SQL> alter database open read only;


데이타베이스가 변경되었습니다.


SQL> select name, open_mode from v$database;


NAME               OPEN_MODE

------------------ ----------------------------------------

ORA11              READ ONLY


SQL> shutdown immediate

데이터베이스가 닫혔습니다.

데이터베이스가 마운트 해제되었습니다.

ORACLE 인스턴스가 종료되었습니다.

SQL> startup

ORACLE 인스턴스가 시작되었습니다.


Total System Global Area 1570009088 bytes

Fixed Size                  2255544 bytes

Variable Size             973079880 bytes

Database Buffers          587202560 bytes

Redo Buffers                7471104 bytes

데이터베이스가 마운트되었습니다.

데이터베이스가 열렸습니다.

SQL> select name, open_mode from v$database;


NAME               OPEN_MODE

------------------ ----------------------------------------

ORA11              READ WRITE


SQL>

 


"이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다."