프린트 하기

내맘대로긍정이 알려주는

Oracle 23ai 신기능
무료 세미나 발표자료

다운로드 trending_flat
2024
10.12
14:00

OS환경 : Oracle Linux 7.6 (64bit)

 

DB 환경 : Oracle Database 19.10.0.0

 

방법 : 오라클 19c 테이블 생성 시 unrecoverable 옵션

가끔 구글링을 하다보면 unrecoverable 옵션을 사용해 ctas 테이블을 만들거나 하는 문서를 볼수 있음

이 기능을 써본적이 없어 알아본 결과 이 옵션은 nologging 옵션으로 대체되었고 현재는 지원 중지된 명령어임(과거 버전과의 호환성을 위해 사용은 가능한 상태)

참고로 오라클 8에서부터 nologging 기능이 나왔다고함

 

 

RECOVERABLE | UNRECOVERABLE
이러한 키워드는 더 이상 사용되지 않으며 각각 LOGGING 및 NOLOGGING으로 대체되었습니다.

RECOVERABLE 및 UNRECOVERABLE은 이전 버전과의 호환성을 위해 지원되지만 Oracle에서는 LOGGING 및 NOLOGGING 키워드를 사용할 것을 강력히 권장합니다.

[UN]RECOVERABLE에 대한 제한사항
이 조항에는 다음 제한 사항이 적용됩니다.
분할된 테이블이나 LOB 저장소 특성에 대해서는 RECOVERABLE을 지정할 수 없습니다.
파티션된 테이블이나 인덱스 구성 테이블에는 UNRECOVERABLE을 지정할 수 없습니다.
AS 하위 쿼리로만 UNRECOVERABLE을 지정할 수 있습니다.

 


원문

RECOVERABLE | UNRECOVERABLE
These keywords are deprecated and have been replaced with LOGGING and NOLOGGING, respectively. Although RECOVERABLE and UNRECOVERABLE are supported for backward compatibility, Oracle strongly recommends that you use the LOGGING and NOLOGGING keywords.

Restrictions on [UN]RECOVERABLE
This clause is subject to the following restrictions:
You cannot specify RECOVERABLE for partitioned tables or LOB storage characteristics.
You cannot specify UNRECOVERABLE for partitioned or index-organized tables.
You can specify UNRECOVERABLE only with AS subquery.

 

 

참조 : 

https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/CREATE-TABLE.html#GUID-F9CE0CC3-13AE-4744-A43C-EAC7A71AAAB6

https://forums.oracle.com/ords/apexds/post/unrecoverable-and-nologging-1111

https://docs.oracle.com/cd/A83908_02/NT816EE/DOC/server.816/a76965.pdf