perl 连数据库的问题
perl 连数据库的问题:
普通用户下,执行程序就会报错,程序里就是一个数据库连接。
但在ROOT用户下就没有问题。 也没有所谓的设置问题。
请大虾们帮们看看。
/home/run/perl #perl testzjl.pl
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LC__FASTMSG = "true",
LC_CTYPE = "zh_CN.ENU",
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
install_driver(Oracle) failed: Can't load '/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: Could not load module /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBD/Oracle/Oracle.so.
Dependent module /oracle/products/10.2/db/lib/libclntsh.a(shr.o) could not be loaded.
The module has an invalid magic number.
Could not load module /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBD/Oracle/Oracle.so.
Dependent module /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBD/Oracle/Oracle.so could not be loaded. at /usr/opt/perl5/lib/5.8.2/aix-thread-multi/DynaLoader.pm line 229.
at (eval 3) line 3
Compilation failed in require at (eval 3) line 3.
Perhaps a required shared library or dll isn't installed where expected
at testzjl.pl line 18