创建数据表
先写好sql语句
/*
================================================================================
檔案代號:tc_lj_file
檔案名稱:test-假双档测试LJ
檔案目的:
上游檔案:
下游檔案:
檔案類型:B
多語系檔案:N
============.========================.==========================================
*/
create table tc_lj_file
(
tc_lj01 varchar2(8) NOT NULL,
tc_lj02 date DEFAULT sysdate NOT NULL,
tc_lj03 varchar2(30),
tc_lj04 number(5,2),
tc_lj05 varchar2(50),
tc_lj06 date,
tc_ljuser varchar2(10),
tc_ljgrup varchar2(10),
tc_ljmodu varchar2(10),
tc_ljdate date
);
create unique index tic_tc_lj_01 on tc_lj_file (tc_lj01,tc_lj02,tc_lj03);
alter table tc_lj_file add constraint tpc_lj_pk primary key (tc_lj01,tc_lj02,tc_lj03) enable validate;
grant select on tc_lj_file to tiptopgp;
grant update on tc_lj_file to tiptopgp;
grant delete on tc_lj_file to tiptopgp;
grant insert on tc_lj_file to tiptopgp;
grant index on tc_lj_file to public;
grant select on tc_lj_file to ods;
上传到coo/sch下
然后进入p_zta
点击汇入create的SQL档
选择模组COO
选择 建立表格和汇入档案与字段说明
选择基本资料档
选择<toptest:/u1/toptest/topcust/coo/sch>下的tc_lj_file.sch
选择数据库ds
去这个目录下编译数据库文件<toptest:/u1/toptest/tiptop/schema>
命令 r.s2 ds
至此,表创立成功