생계/Oracle2017. 9. 8. 23:23

 

autotrace 옵션들


1) set autotrace on 
  -> 실제 수행 + 결과 + 실행계획 + 실행통계

2) set autotrace on explain
  -> 실제 수행 + 결과 + 실행계획
 
3) set autotrace on statistics
  -> 실제 수행 + 결과                 + 실행통계
 
4) set autotrace trace explain
  ->                          실행계획
 
5) set autotrace traceonly 
  -> 실제 수행          + 실행계획 + 실행통계

반응형

'생계 > Oracle' 카테고리의 다른 글

oracle 12c silent mode 설치  (0) 2017.12.13
스키마모드 datapump 테스트  (0) 2017.12.06
오라클 datafile resize  (0) 2017.11.06
오라클 스크립트 생성 SQL  (0) 2017.09.13
ORACLE 파티션테이블  (0) 2017.09.10
Posted by 돌고래트레이너
생계/OERR2017. 9. 7. 13:55

 

 

    impdp 할때 ora error

 

      실제 파일이 존재함에도 발생.

 

      구글링으로 parallel 구문 없애고 다시 실행하니 됨.

 

 

   ** 추가

     paralle 실패한 이유 : RAC 환경에서  디렉토리 접근권한이 node1 에만 있다면 parallel 안먹힘.

 

 

     impdp 시에 index 가 있으면 undo 사용량이 많아진다. index 를 unusuable 시키면 impdp 가 에러난다.

     (alter index ... unusable 은 sqlplus 에서만 되네... 희안하네..)

     -> index drop 후 재생성

 

 

    - expdp parallel :

 

    expdp id/pwd directory=dba_dir tables=A.B:partition dumpfile=dudump%U.dmp parallel=4 logfile=expdplog CONTENT=DATA_ONLY

 

    

 

  • For Data Pump Export, the PARALLEL parameter value should be less than or equal to the number of output dump files.
  • For Data Pump Import, the PARALLEL parameter value should not be much larger than the number of files in the dump file set.
 

 

반응형
Posted by 돌고래트레이너