야간에 쓰는 사람이 없으시면
병렬처리도 고민해보세요.
일단 CTAS가 추천됩니다.
http://wiki.gurubee.net/pages/viewpage.action?pageId=4949376
(Sorry but I cannot type Korean here.) Correct. the Table has to be set to "nologging" in order not to generate redo/archive log.
I confused with CTAS.
CTAS also generates logs so put nologging option when CTAS as below:
create table [테이블]_Night nologging as select * from [테이블]
Please also check the force_logging option in your database: select force_logging from v$database;
If the force_logging is enabled, the nologging option won't work.
답변들 감사드립니다 !!
아직 이리저리 궁리중입니다만..
NOLOGGING 옵션을 준 후 Append 힌트를 사용해 본 결과, 시간 단축 효과를 거의 보지 못했습니다.
변경분만 업데이트 하려고 확인해봤더니
한번에 몇백만건의 레코드가 비정기적으로 Update 되는 상황이라, 변경된 레코드를 select하는 시간만 30분 가까이 걸리는듯 합니다 ㅠ
병렬처리의 경우는 degree를 Auto 혹은 2~16 정도로 바꿔서 몇번 테스트 해봤는데, 어떤 경우에서는 parallel 힌트 없이 때려박는 것보다 더 오래걸리네요.. 이 부분은 조금 더 공부해보고 다시 테스트해보려고 합니다 ㅠㅠ
Create table as select 까지 한번 시도해보고.. 그래도 안되면 방법을 조금 더 찾아봐야겠습니다.
(v$ 관련 테이블은 권한이 없어서 볼 수가 없네요 ㅠㅠ)