文件更新系统
此系统用于检测数据库更新后自动更新文件 Connect comm/comm@dbserver; Drop table client_ip_address; create table client_ip_address ( CLIENT_NAME Varchar2(30), IP_ADDRESS Varchar2(16), UPDATE_TIME Date, UPDATE_CLASS Number(2), constraints pk_client_ip_addr primary key ( IP_ADDRESS ) using index pctfree 5 storage ( initial 2M next 1M minextents 1 maxextents unlimited pctincrease 0 ) tablespace tsp_comm ) pctfree 5 pctused 90 storage ( initial 5M next 10M minextents 1 maxextents unlimited pctincrease 0 ); grant select,insert,update,delete on client_ip_address to role_comm; Drop table client_updata_path; create table client_updata_path ( UPDATE_CLASS Number(8,0), FILE_PATH Varchar2(16), REMARK Varchar2(16), constraints pk_client_updata_path primary key ( UPDATE_CLASS, FILE_PATH ) using index pctfree 5 storage ( initial 2M next 1M minextents 1 maxextents unlimited pctincrease 0 ) tablespace tsp_comm ) pctfree 5 pctused 90 storage ( initial 5M next 10M minextents 1 maxextents unlimited pctincrease 0 ); grant select,insert,update,delete on client_updata_path to role_comm; Drop table sever_updata_path; create table sever_updata_path ( server_ip_address Varchar2(16), updata_path Varchar2(16), constraints pk_server_ip_addr primary key ( server_ip_address, updata_path ) using index pctfree 5 storage ( initial 2M next 1M minextents 1 maxextents unlimited pctincrease 0 ) tablespace tsp_comm ) pctfree 5 pctused 90 storage ( initial 5M next 10M minextents 1 maxextents unlimited pctincrease 0 ); grant select,insert,update,delete on sever_updata_path to role_comm; Drop table updata_file_dict; create table updata_file_dict ( updata_file_no Number(8,0), updata_file_name Varchar2(16), updata_class Number(8,0), constraints pk_updata_file primary key ( updata_file_no ) using index pctfree 5 storage ( initial 2M next 1M minextents 1 maxextents unlimited pctincrease 0 ) tablespace tsp_comm ) pctfree 5 pctused 90 storage ( initial 5M next 10M minextents 1 maxextents unlimited pctincrease 0 ); grant select,insert,update,delete on updata_file_dict to role_comm; Connect system/manager@dbserver; Drop public synonym client_ip_address; create public synonym client_ip_address for comm.client_ip_address; Drop public synonym client_updata_path; create public synonym client_updata_path for comm.client_updata_path; Drop public synonym sever_updata_path; create public synonym sever_updata_path for comm.sever_updata_path; Drop public synonym updata_file_dict; create public synonym updata_file_dict for comm.updata_file_dict;
- 1
- 粉丝: 0
- 资源: 1
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助