美文网首页
shell执行sql语句 | oracle

shell执行sql语句 | oracle

作者: AlicFeng | 来源:发表于2017-08-13 22:47 被阅读482次

需求
oracle存储过程使用配置的方式加载。
临时的解决方案就是使用shell加载sql文件的形式来解决。

  • 临时的解决方案

存储过程的创建脚本为procedure.sql

sqlplus username/pwd@dbsid<< EOF
@procedure.sql
disconnect
quit
EOF

相关文章

网友评论

      本文标题:shell执行sql语句 | oracle

      本文链接:https://www.haomeiwen.com/subject/wgqyrxtx.html