sqlplus如何执行command脚本。

打开sqlplus,file->open->command file

 


rem   文件名称: @BPEL_CALL_ERP_ALL.sql
rem   使用方法: @BPEL_CALL_ERP_ALL.sql
rem   注意事项: 1 使用前需要保证APP用户必须创建和授权,
                2 以具有dba权限的用户登录系统

prompt ============================================================
prompt 创建配置表
prompt ============================================================


@./EIP_ADMIN_CreateTable.sql;

prompt ============================================================
prompt 创建初始化数据
prompt ============================================================

prompt ====Create mip_config====
@./init_data/init_data_guizhou/init_mip_config.sql;

prompt ====Create mip_eip_flex_field_map====
@./init_data/init_data_guizhou/init_mip_eip_flex_field_map.sql;

prompt ====Create mip_erp_call_paramete====
@./init_data/init_data_guizhou/init_mip_erp_call_paramete.sql;

prompt ====Create mip_erp_flex_field_config====
@./init_data/init_data_guizhou/init_mip_erp_flex_field_config.sql;

prompt ====Create mip_srv_date_condition====
@./init_data/init_data_guizhou/init_mip_srv_date_condition.sql;

prompt ====Create mip_sys_user====
@./init_data/init_data_guizhou/init_mip_sys_user.sql;

prompt ====Create MIP_ROUTE_SRV_CONFIG====
@./init_data/init_data_guizhou/init_mip_route_srv_config.sql;

 

@./表示相对于打开的文件下面路径.

--init_mip_config.sql;

--MIP_CONFIG
DELETE FROM MIP_CONFIG;

INSERT INTO MIP_CONFIG (CONFIG_NAME, CONFIG_TYPE, CONFIG_VALUE)
VALUES ('AP_INV_SOURCE', 'VARCHAR2', 'AUTO INV');
 ...需要插入的数据的sql
COMMIT WORK;

 

 

--EIP_ADMIN_CreateTable.sql;

/*==============================================================*/
/* Database name:  MIP_ADMIN                                    */
/* DBMS name:      ORACLE Version 9i                            */
/* Created on:     2008-2-26 16:40:37                           */
/*==============================================================*/


@./tables/Full_Install/create_mip_config.sql;
@./tables/Full_Install/create_mip_eip_flex_field_map.sql;
@./tables/Full_Install/create_mip_erp_call_paramete.sql;
@./tables/Full_Install/create_mip_erp_flex_field_config.sql;
@./tables/Full_Install/create_mip_srv_date_condition.sql;
@./tables/Full_Install/create_mip_sys_user.sql;
@./tables/Full_Install/create_mip_route_srv_config.sql;
@./tables/Full_Install/create_MIP_CALLBACK_INFO.sql;

 

--create_mip_config.sql;

/*==============================================================*/
/* Table: MIP_CONFIG                                            */
/*==============================================================*/

 

drop table MIP_CONFIG cascade constraints
/

create table MIP_CONFIG  (
   CONFIG_NAME          VARCHAR2(60)                     not null,
   CONFIG_TYPE          VARCHAR2(8)                      not null,
   CONFIG_VALUE         VARCHAR2(2000)                   not null,
   constraint PK_MIP_CONFIG primary key (CONFIG_NAME)
)
/

 

直接按F8执行。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值