alter system suspend/resume
모든 I/O와 질의를 일시 중지시키고(suspend), 재개(resume)한다. 따라서, suspend모드일때는 select를 제외한 create, insert, delete, update등 변경이 필요한 질의는 먹히질 않는다. suspend의 경우, 오라클에서는 hot backup모드가 아니라면 사용하지 말라고 권고하고 있다.
SQL> conn system/xxxxxx Connected.
SQL> alter system suspend;
System altered.
SQL> conn kang/xxxxxx Connected
SQL> select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- 7369 SMITH CLERK 7902 17-DEC-80 800 20 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30 7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30 7566 JONES MANAGER 7839 02-APR-81 2975 20 7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30 7698 BLAKE MANAGER 7839 01-MAY-81 2850 30 7782 CLARK MANAGER 7839 09-JUN-81 2450 10 7839 KING PRESIDENT 17-NOV-81 5000 10 7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30 7900 JAMES CLERK 7698 03-DEC-81 950 30 7902 FORD ANALYST 7566 03-DEC-81 3000 20 7934 MILLER CLERK 7782 23-JAN-82 1300 10
12 rows selected.
SQL> create table a(a varchar(10)); create table a(a varchar(10)) * ERROR at line 1: ORA-00604: error occurred at recursive SQL level 1 ORA-01013: user requested cancel of current operation 진행 안되므로 Ctrl+C로 취소했다.
system이나 sys계정에서 alter system resume명령이 있을때까지는 어떠한 질의도 수행되지 않고, sqlplus로의 로그인도 불가능한다.
일단 위의 create table명령을 다시 수행하고 멈추어 있을때, svrmgrl로 로그인하여 alter system resume명령을 내리면 create table문장이 수행된다.
SQL> create table a(a varchar(10)); 이 부분에서 멈추어 있을때 다른 터미널에서 svrmgrl로 로그인하여 resume명령을 줌. Table created.
SQL>
create table이 suspend 되었을 순간 resume해 주었음 [oracle@ns 8.1.7]$ 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
SVRMGR> connect internal Connected. SVRMGR> alter system resume; Statement processed. SVRMGR>
| This article comes from dbakorea.pe.kr (Leave this line as is)
|