当前位置:   article > 正文

oracleshell执行新医保数据转换后台_oracle 医保

oracle 医保

select LinxRUNCMD('/data05/sql/exec.sh /data05/sql/test.sql') cmd from dual;

 

exec.sh

  1. #!/usr/bin/bash
  2. source ~/.bash_profile
  3. echo $1
  4. date>$1.log
  5. /usr/bin/nohup /u01/app/oracle/product/12.1.0/db_1/bin/sqlplus hsa_lzjbsi/hsa_lzjbsi@192.168.217.192/ORCLPDB1 @$1 >>$1.log 2>&1 &
  6. cat $1.log

test.sql

  1. set serveroutput on
  2. declare
  3. prm_appcode number;
  4. prm_errmsg varchar2(1000);
  5. begin
  6. -- Call the procedure
  7. dbms_output.put_line(sysdate);
  8. end;
  9. /

linux

  1. create or replace and compile java source named "LinxUtilvivi" as
  2. import java.io.*;
  3. public class LinxUtilvivi extends Object
  4. {
  5. public static String getExceptionText(Exception e){
  6. String text = "" ;
  7. StringWriter sw = new StringWriter();
  8. PrintWriter pw = new PrintWriter(sw);
  9. e.printStackTrace(pw);
  10. text = sw.toString();
  11. return text;
  12. }
  13. public static Stri
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/152795?site
推荐阅读
相关标签
  

闽ICP备14008679号