-- ------------------------------------------------------------------------------------------------
-- [ 시스템관리 ] 이관데이터 테이블 생성
conn system/built123$@ndb;
-- ------------------------------------------------------------------------------------------------
-- 테이블 생성
drop table bsys.sys_migrate_data cascade constraints;
create table bsys.sys_migrate_data
(
migrate_data_name varchar2(200) not null
,corp_id number not null
,col_value_01 varchar2(300)
,col_value_02 varchar2(300)
,col_value_03 varchar2(300)
,col_value_04 varchar2(300)
,col_value_05 varchar2(300)
,col_value_06 varchar2(300)
,col_value_07 varchar2(300)
,col_value_08 varchar2(300)
,col_value_09 varchar2(300)
,col_value_10 varchar2(300)
,col_value_11 varchar2(300)
,col_value_12 varchar2(300)
,col_value_13 varchar2(300)
,col_value_14 varchar2(300)
,col_value_15 varchar2(300)
,col_value_16 varchar2(300)
,col_value_17 varchar2(300)
,col_value_18 varchar2(300)
,col_value_19 varchar2(300)
,col_value_20 varchar2(300)
,col_value_21 varchar2(300)
,col_value_22 varchar2(300)
,col_value_23 varchar2(300)
,col_value_24 varchar2(300)
,col_value_25 varchar2(300)
,col_value_26 varchar2(300)
,col_value_27 varchar2(300)
,col_value_28 varchar2(300)
,col_value_29 varchar2(300)
,col_value_30 varchar2(300)
,col_value_31 varchar2(300)
,col_value_32 varchar2(300)
,col_value_33 varchar2(300)
,col_value_34 varchar2(300)
,col_value_35 varchar2(300)
,col_value_36 varchar2(300)
,col_value_37 varchar2(300)
,col_value_38 varchar2(300)
,col_value_39 varchar2(300)
,col_value_40 varchar2(300)
,col_value_41 varchar2(300)
,col_value_42 varchar2(300)
,col_value_43 varchar2(300)
,col_value_44 varchar2(300)
,col_value_45 varchar2(300)
,col_value_46 varchar2(300)
,col_value_47 varchar2(300)
,col_value_48 varchar2(300)
,col_value_49 varchar2(300)
,col_value_50 varchar2(300)
,table_name varchar2(50)
,table_name_lang varchar2(50)
,process_status_cd varchar2(50) default 'U' not null
,process_timestamp timestamp
,process_detail varchar2(4000)
,create_date timestamp default systimestamp
,create_by varchar2(50) default '-1'
,update_date timestamp default systimestamp
,update_by varchar2(50) default '-1'
);
-- 테이블 설명
comment on table bsys.sys_migrate_data is '[시스템관리] 이관데이터';
comment on column bsys.sys_migrate_data.migrate_data_name is '이관데이터명';
comment on column bsys.sys_migrate_data.corp_id is '법인ID';
comment on column bsys.sys_migrate_data.col_value_01 is '컬럼값01';
comment on column bsys.sys_migrate_data.col_value_02 is '컬럼값02';
comment on column bsys.sys_migrate_data.col_value_03 is '컬럼값03';
comment on column bsys.sys_migrate_data.col_value_04 is '컬럼값04';
comment on column bsys.sys_migrate_data.col_value_05 is '컬럼값05';
comment on column bsys.sys_migrate_data.col_value_06 is '컬럼값06';
comment on column bsys.sys_migrate_data.col_value_07 is '컬럼값07';
comment on column bsys.sys_migrate_data.col_value_08 is '컬럼값08';
comment on column bsys.sys_migrate_data.col_value_09 is '컬럼값09';
comment on column bsys.sys_migrate_data.col_value_10 is '컬럼값10';
comment on column bsys.sys_migrate_data.col_value_11 is '컬럼값11';
comment on column bsys.sys_migrate_data.col_value_12 is '컬럼값12';
comment on column bsys.sys_migrate_data.col_value_13 is '컬럼값13';
comment on column bsys.sys_migrate_data.col_value_14 is '컬럼값14';
comment on column bsys.sys_migrate_data.col_value_15 is '컬럼값15';
comment on column bsys.sys_migrate_data.col_value_16 is '컬럼값16';
comment on column bsys.sys_migrate_data.col_value_17 is '컬럼값17';
comment on column bsys.sys_migrate_data.col_value_18 is '컬럼값18';
comment on column bsys.sys_migrate_data.col_value_19 is '컬럼값19';
comment on column bsys.sys_migrate_data.col_value_20 is '컬럼값20';
comment on column bsys.sys_migrate_data.col_value_21 is '컬럼값21';
comment on column bsys.sys_migrate_data.col_value_22 is '컬럼값22';
comment on column bsys.sys_migrate_data.col_value_23 is '컬럼값23';
comment on column bsys.sys_migrate_data.col_value_24 is '컬럼값24';
comment on column bsys.sys_migrate_data.col_value_25 is '컬럼값25';
comment on column bsys.sys_migrate_data.col_value_26 is '컬럼값26';
comment on column bsys.sys_migrate_data.col_value_27 is '컬럼값27';
comment on column bsys.sys_migrate_data.col_value_28 is '컬럼값28';
comment on column bsys.sys_migrate_data.col_value_29 is '컬럼값29';
comment on column bsys.sys_migrate_data.col_value_30 is '컬럼값30';
comment on column bsys.sys_migrate_data.col_value_31 is '컬럼값31';
comment on column bsys.sys_migrate_data.col_value_32 is '컬럼값32';
comment on column bsys.sys_migrate_data.col_value_33 is '컬럼값33';
comment on column bsys.sys_migrate_data.col_value_34 is '컬럼값34';
comment on column bsys.sys_migrate_data.col_value_35 is '컬럼값35';
comment on column bsys.sys_migrate_data.col_value_36 is '컬럼값36';
comment on column bsys.sys_migrate_data.col_value_37 is '컬럼값37';
comment on column bsys.sys_migrate_data.col_value_38 is '컬럼값38';
comment on column bsys.sys_migrate_data.col_value_39 is '컬럼값39';
comment on column bsys.sys_migrate_data.col_value_40 is '컬럼값40';
comment on column bsys.sys_migrate_data.col_value_41 is '컬럼값41';
comment on column bsys.sys_migrate_data.col_value_42 is '컬럼값42';
comment on column bsys.sys_migrate_data.col_value_43 is '컬럼값43';
comment on column bsys.sys_migrate_data.col_value_44 is '컬럼값44';
comment on column bsys.sys_migrate_data.col_value_45 is '컬럼값45';
comment on column bsys.sys_migrate_data.col_value_46 is '컬럼값46';
comment on column bsys.sys_migrate_data.col_value_47 is '컬럼값47';
comment on column bsys.sys_migrate_data.col_value_48 is '컬럼값48';
comment on column bsys.sys_migrate_data.col_value_49 is '컬럼값49';
comment on column bsys.sys_migrate_data.col_value_50 is '컬럼값50';
comment on column bsys.sys_migrate_data.table_name is '테이블명';
comment on column bsys.sys_migrate_data.table_name_lang is '테이블명(다국어)';
comment on column bsys.sys_migrate_data.process_status_cd is '처리상태코드';
comment on column bsys.sys_migrate_data.process_timestamp is '처리일시(초)';
comment on column bsys.sys_migrate_data.process_detail is '처리상세';
comment on column bsys.sys_migrate_data.create_date is '생성일시';
comment on column bsys.sys_migrate_data.create_by is '생성자';
comment on column bsys.sys_migrate_data.update_date is '수정일시';
comment on column bsys.sys_migrate_data.update_by is '수정자';
-- normal 인덱스
create index bsys.sys_migrate_data_ix01 on bsys.sys_migrate_data (migrate_data_name, corp_id, table_name) tablespace bdb_idx;
-- 권한부여
grant select, insert, update, delete on bsys.sys_migrate_data to bcom with grant option;
grant select, insert, update, delete on bsys.sys_migrate_data to bhrm with grant option;
-- 시노님 생성
conn bcom/1234@ndb;
create or replace synonym sys_migrate_data for bsys.sys_migrate_data;
conn bhrm/1234@ndb;
create or replace synonym sys_migrate_data for bsys.sys_migrate_data;
'오라클 > 테이블(시스템관리)' 카테고리의 다른 글
[ 프로파일 ] 테이블 생성을 아래와 같이 진행합니다. (1) | 2024.04.12 |
---|---|
[ 국가 ] 테이블 생성을 아래와 같이 진행합니다. (0) | 2024.04.12 |
[ 오브젝트 ] 테이블 생성을 아래와 같이 진행합니다. (0) | 2024.04.12 |
[ 로그 ] 테이블 생성을 아래와 같이 진행합니다. (0) | 2024.04.12 |
[ 환경정보 ] 테이블 생성을 아래와 같이 진행합니다. (0) | 2024.04.12 |