当前位置: 技术问答>linux和unix
crontab里面的脚本,向数据库插数据,插不起来,sqlplus 不执行。。谁知道什么原因啊。
来源: 互联网 发布时间:2016-07-16
本文导语: /crm1oraclt/app/product/10.2.0/bin/sqlplus yn01/086_yn01@yn @/crm1app/yangli/InstMoniTab_CRM_3.sql >> /crm1app/yangli/findout.log 2>&1 我在脚本里面加了打印日志。。 发现就是这句没有执行,, 手动执行都可以 手动执行...
/crm1oraclt/app/product/10.2.0/bin/sqlplus yn01/086_yn01@yn @/crm1app/yangli/InstMoniTab_CRM_3.sql >> /crm1app/yangli/findout.log 2>&1
我在脚本里面加了打印日志。。
发现就是这句没有执行,,
手动执行都可以
手动执行后的 findout.log 里面有
================开始test================
================Thu Nov 5 16:27:08 EAT 2009================
================test1================
================test3================
================test5================
================test9================
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Nov 5 16:27:09 2009
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
1 row created.
1 row created.
Commit complete.
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
================test结束================
crontab执行后是
================开始test================
================Thu Nov 5 16:20:00 EAT 2009================
================test1================
================test3================
================test5================
================test9================
================test结束================
我在脚本里面加了打印日志。。
发现就是这句没有执行,,
手动执行都可以
手动执行后的 findout.log 里面有
================开始test================
================Thu Nov 5 16:27:08 EAT 2009================
================test1================
================test3================
================test5================
================test9================
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Nov 5 16:27:09 2009
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
1 row created.
1 row created.
Commit complete.
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
================test结束================
crontab执行后是
================开始test================
================Thu Nov 5 16:20:00 EAT 2009================
================test1================
================test3================
================test5================
================test9================
================test结束================
|
/usr/lib/hpux64/dld.so: Unable to find library 'libsqlplus.so'意思是:/usr/lib/hpux64/dld.so依赖
libsqlplus.so,你先搜索一下你的电脑上有没有libsqlplus.so,没有就装一个。
libsqlplus.so,你先搜索一下你的电脑上有没有libsqlplus.so,没有就装一个。