오라클(oracle) 락(lock) 확인 및 제거(kill)
-- 락걸린 테이블 확인 SELECT do.object_name, do.owner, do.object_type, do.owner, vo.xidusn, vo.session_id, vo.locked_mode FROM v$locked_object vo , dba_objects do WHERE vo.object_id = do.object_id ; --해당테이블이 락에 걸렸는지.. SELECT A.SID, A.SERIAL#, B.TYPE, C.OBJECT_NAME FROM V$SESSION A, V$LOCK B, DBA_OBJECTS C WHERE A.SID=B.SID AND B.ID1=C.OBJECT_ID AND B.TYPE='TM' AND C.OBJECT_NAME IN ('테이블명'); /* 락발생 사용자와 ..
2021. 9. 6.
데이타펌프진행상태조회
select * from dba_datapump_jobs ; --진행상태조회 select sid, serial#, sofar, totalwork, to_char(start_time, 'HH24:MI:SS') startt, (sofar/totalwork)*100 "complete(%)" from v$session_longops where opname='META' and sofar != totalwork ; SQL> select sid, serial#, opname, 2 to_char(start_time, 'HH24:MI:SS') startt, 3 (sofar/totalwork)*100 "complete(%)" 4 from v$session_longops 5 where totalwork > 0 ; 위의 정보..
2021. 9. 3.
특정테이블만 datapump
--덤프 --데이터 익스포트 expdp sys/oracle dumpfile=data.dmp directory=dump logfile=data.log job_name=job_data network_link=ORA100 TABLES=TC_CMMN_D_CODE,TC_CMMN_M_CODE,TC_CMMN_QRANT_INSTT,TC_CMMN_RN_ADRES,TC_ENTRPS_UNITY,TN_CMMN_DBYHS_CL,TN_CMMN_DBYHS_CODE,TN_CMMN_ITM_PLNT_SE_CODE,TN_CMMN_LNM_RN_MTCHG,TN_CMMN_NATION_CODE,TN_CMMN_ITM_QUN_MAPNG,TN_CMMN_PRDLST,TN_CMMN_TRFCLSF,TN_CMMN_USER,TN_NPQ_REQST,TN_NPQ..
2021. 9. 3.
"이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다."