- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 linux执行sqlplus脚本实例sh
1.与spool一样,linux中调用sqlplus的时候sql语句前不能有tab字符,也不能有空白行。2.sh中定义变量为:变量名=赋值,sqlplus中引用时用:'${变量名}'示例如下:ORACLE_HOME=/app/product/11.2.0/dbORACLE_BASE=/app/oracleORACLE_SID=对应数据库名称year=$(/bin/date +%y%y)echo $yearstartdate="$year-01-01"enddate="$year-12
2020-10-15 15:54:01 1427
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人