참조 http://cafe.naver.com/ocmkorea/3220
==============================DBA session================================
SYS@orcl>create tablespace resum_test
2 datafile '/u01/app/oracle/oradata/orcl/resum_test01.dbf' size 1m;
Tablespace created.
create user u_resum identified by oracle
default tablespace resum_test
temporary tablespace temp
4 quota unlimited on resum_test;
User created.
SYS@orcl>grant connect, resource, resumable to u_resum;
Grant succeeded.
SYS@orcl>grant all on sh.sales to u_resum;
Grant succeeded.
SYS@orcl>create or replace trigger logon_set_resumable
2 after logon
3 on scott.schema
4 begin
5 execute immediate 'alter session enable resumable timeout 1200';
6 end;
7 /
Trigger created.
===========================user session========================
U_RESUM@orcl>create table resum_sales(
2 prod_id number,
3 cust_id number,
4 time_id date,
5 channel_id number,
6 promo_id number,
7 quantity_sold number(10,2),
8 amount_sold number(10,2));
Table created.
U_RESUM@orcl>alter session enable resumable;
Session altered.
U_RESUM@orcl>insert into resum_sales
2 select * from sh.sales;
-------------------------Alert Log-----------------------------
statement in resumable session 'User U_RESUM(95), Session 22, Instance 1' was suspended due to
ORA-01653: unable to extend table U_RESUM.RESUM_SALES by 8 in tablespace RESUM_TEST
-----------------------------DBA SESSION----------------------
SYS@orcl>select decode(message_level,5,'WARNING',1,'CRITICAL') alert_level,
2 reason from dba_outstanding_alerts
3 where reason like '%resumable%';
ALERT_LE
--------
REASON
------------------------------------------------------------------------------------------------------------------------------------------------------
WARNING
Operation on resumable session User U_RESUM(95), Session 22, Instance 1 session id 22 suspended because of errors in tablespace RESUM_TEST. Error mess
age is ORA-01653: unable to extend table U_RESUM.RESUM_SALES by 8 in tablespace RESUM_TEST
add datafile '/u01/app/oracle/oradata/orcl/resum_test02.dbf' size 5m
Fri Oct 16 12:25:51 2015
statement in resumable session 'User U_RESUM(95), Session 22, Instance 1' was resumed
statement in resumable session 'User U_RESUM(95), Session 22, Instance 1' was suspended due to
ORA-01653: unable to extend table U_RESUM.RESUM_SALES by 128 in tablespace RESUM_TEST
----------------------------------USER SESSION---------------------------------
U_RESUM@orcl>insert into resum_sales
2 select * from sh.sales;
918843 rows created.
작업이 완료된걸 확인할 수 있다.
-------------------------------DBA 문제 해결 방법----------------------------
2. extent 부족일 경우는
alter table XXX storage ( maxextents 100); 문제 해결될떄까지 추가시도
이 원인은 오직 딕셔너리 관리 방식 테이블 스페이스에서만 유효함
3. 사용자 Quota 부족시
alter user u_resum qouta nM on tablespace_name;
----------------------------------DBA SESSION------------------------------
select sid, event from v$session_wait;
내용중 해당 유저에 대한 이벤트로 다음 내용 추가됨
statement suspended wait error to be cleared
-------------------------------USER SESSION--------------------------
문제 해결 후 바로 정상 처리 완료
insert into resum_sales
select * from sh.sales;
alter session disable resumable;
-------------------------------DBA SESSION--------------------------
resumable 트랜잭션 강제 종료
execute dbms_resumable.abort(sid#); <- from dba_resumable or v$session 으로 조회
'스터디북' 카테고리의 다른 글
[10/16] 실습 = 4 TTS (0) | 2015.10.16 |
---|---|
[10/16] 정리 (0) | 2015.10.16 |
[10/16] 실습 - 2 Shrink Space (0) | 2015.10.16 |
[10/16] 실습 - 1 RowMigration&&chaining (0) | 2015.10.16 |
[10/15] 실습 - 1 list_advise_repair failure (0) | 2015.10.15 |