Sqlplus里如何调用Shell脚本?待整理
来源:互联网 发布:最专业的网络推广价格 编辑:程序博客网 时间:2024/06/06 07:21
自己封装的一个shell脚本,关键是如何调用呢?求助!
#!/bin/sh function createOracleInstance(){ tableSpace=$1 tempTableSpace=${tableSpace}"_temp" dataTableSpace=${tableSpace}"_data" user=$2 pwd=$3 #临时表空间 create temporary tablespace ${tempTableSpace} tempfile '/u01/datas/${tempTableSpace}.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local; #创建数据表空间 create tablespace ${dataTableSpace} logging datafile '/u01/datas/${dataTableSpace}.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local; #创建用户 create user ${user} identified by "${pwd}" default tablespace ${dataTableSpace} temporary tablespace ${tempTableSpace} profile DEFAULT; grant connect to ${user}; grant dba to ${user}; grant exp_full_database to ${user}; grant imp_full_database to ${user}; grant resource to ${user}; grant unlimited tablespace to ${user}; echo "临时表空间名为${tempTableSpace},数据表空间为 ${dataTableSpace},用户名:${user},密码:${pwd}"}sqlplus / as sysdbacreateOracleInstance $1 $2 $3
因为有sqlplus / as sysdba等命令,后面调用语句被中断了,是不是有新窗口进入导致的,如果去掉sqlplus / as sysdba,手工执行该命令后进入sql命令行,又该如何调用Shell脚本呢?
阅读全文
0 0
- Sqlplus里如何调用Shell脚本?待整理
- 在shell脚本中调用sqlplus
- 在shell脚本中调用sqlplus
- Java调用远程Shell脚本(待验证)
- shell调用sqlplus
- Shell-sqlplus循环调用
- shell调用sqlplus例子
- shell中调用sqlplus
- shell脚本里相互调用的方法
- shell调用sqlplus各种实例
- shell调用sqlplus查询oracle
- shell调用各种sqlplus用法
- shell调用各种sqlplus用法
- shell调用sqlplus查询oracle
- 【如何使用shell 脚本调用java进程】
- java中如何调用Shell脚本文件
- java代码中调用执行shell脚本,sqlldr导数与使用sqlplus在shell调用执行存储过程
- linux里编写java程序定时调用shell脚本
- RecyclerView 梳理:点击&长按事件、分割线、拖曳排序、滑动删除
- 一段无聊的键盘触发模拟抽卡程序
- windows下mysql5.1忘记root密码解决方法[win7]
- synchronized与ReentrantLock的介绍、使用、适合场景及比较
- 用机器算法预测自杀倾向
- Sqlplus里如何调用Shell脚本?待整理
- mybatis中出现There is no getter for property named 'depIds' in 'class java.lang.String'的错误
- 如何在thinkphp使用xunsearch
- LS文法生成Hilbert-Peano曲线
- Jenkins部署:The username and password you provided are not correct (error 401)
- java基础巩固(1)
- PhotonServer游戏服务器端(一)
- 数据库错误代码大全
- Linux ssh免密码登录