2.2 KiB
2.2 KiB
- 타겟ID
select *
from DBA_SOURCE
where text like '%FUN_CHECK_ACDM_DEP_START%'
select 'ALTER TABLE '||owner||'.'||Table_name||' RENAME COLUMN '||column_name||' TO '||replace(column_name,'TRGT_ID', 'SCHDUL_ID')||';'
from ALL_TAB_COLUMNS
where owner like 'U%'
and column_name like '%TRGT_ID%'
select *
from DBA_IDX_COLUMNS
where index_owner like 'U%'
and column_name like '%TRGT_ID%'
ALTER TABLE UDT.V_DATA_BLOCK_AC_TEST RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UIC.SACP_CNTRL_DRCT_YYYYMM RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UIC.SACP_FLT_APRON_MVMN_HIST RENAME COLUMN ARR_TRGT_ID TO ARR_SCHDUL_ID;
ALTER TABLE UIC.SACP_FLT_APRON_MVMN_HIST RENAME COLUMN DEP_TRGT_ID TO DEP_SCHDUL_ID;
ALTER TABLE UIC.SACP_FLT_ARR_HIST RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UIC.SACP_FLT_DEICING_HIST RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UIC.SACP_FLT_DEP_HIST RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UIC.SACP_FLT_SCHDUL RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UIC.SACP_IDNTFC_MAPNG RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UIC.SACP_SITTN_DETAIL_YYYYMM RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UTRACK.SACP_ASDE_TRACK RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UTRACK.SACP_ASDE_TRACK_LAST RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UTRACK.SACP_ASDE_TRACK_YYYYMMDD RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UTRACK.SACP_CCTV_TRACK_LAST RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UTRACK.SACP_CCTV_TRACK_YYYYMMDD RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UTRACK.SACP_FUSION_TRACK RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UTRACK.SACP_FUSION_TRACK_BBOX RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UTRACK.SACP_RADAR_TRACK RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UTRACK.SACP_RADAR_TRACK_LAST RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UTRACK.SACP_RADAR_TRACK_YYYYMMDD RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UTRACK.SACP_TRACK_FUSION RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UTRACK.SACP_TRACK_FUSION_BBOX RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UTRACK.SACP_TRACK_LAST RENAME COLUMN TRGT_ID TO SCHDUL_ID;
ALTER TABLE UTRACK.SACP_TRACK_YYYYMMDD RENAME COLUMN TRGT_ID TO SCHDUL_ID;