亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2972 | 回復(fù): 4
打印 上一主題 下一主題

神奇,太神奇了,暈死了,請(qǐng)高手解答. [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2008-05-29 08:11 |只看該作者 |倒序?yàn)g覽
#!/usr/bin/perl -w


use CGI;
use DBI;


my $dbh = DBI->connect("dbi:Oracle:host=10.197.104.198;sid=HCPTEST","hcp","hcp");
my $sqr = $dbh->prepare("SELECT * FROM hr.jobs");
$sqr->execute();

$q=new CGI;
print   $q->header(-charset=>"gb2312"),
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q->start_html(),"<div>";
while(my @ref = $sqr->fetchrow_array()) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#my @refo=split(/ /,$refo);

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print "$ref[0]$ref[1]$ref[2]$ref[3]\n";
}
print   "</div>",$q->end_html,"\n";
$dbh->disconnect;



[root@es4 gprism]# ./o.cgi
Content-Type: text/html; charset=gb2312

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"><head><title>Untitled Document</title>
</head><body><div>AD_PRESPresident2000040000
AD_VPAdministration Vice President1500030000
AD_ASSTAdministration Assistant30006000
FI_MGRFinance Manager820016000
FI_ACCOUNTAccountant42009000
AC_MGRAccounting Manager820016000
AC_ACCOUNTPublic Accountant42009000
SA_MANSales Manager1000020000
SA_REPSales Representative600012000
PU_MANPurchasing Manager800015000
PU_CLERKPurchasing Clerk25005500
ST_MANStock Manager55008500
ST_CLERKStock Clerk20005000
SH_CLERKShipping Clerk25005500
IT_PROGProgrammer400010000
MK_MANMarketing Manager900015000
MK_REPMarketing Representative40009000
HR_REPHuman Resources Representative40009000
PR_REPPublic Relations Representative450010500
</div></body></html>




權(quán)限 755
但是ie訪問
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


--------------------------------------------------------------------------------

Apache/2.0.52 (Red Hat) Server at es4 Port 80

其他cgi運(yùn)行正常
高手幫看看是什么問題

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2008-05-29 08:26 |只看該作者
1、建議你不要用這種標(biāo)題發(fā)帖子
2、建議你再看看apache的errlog
3、建議你在各個(gè)可能出錯(cuò)的地方 or die "$!\n";

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2008-05-29 08:32 |只看該作者
[Thu May 29 08:33:54 2008] [error] [client 10.197.96.97] install_driver(Oracle) failed: Can't load

'/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle:

libocci.so.10.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.5/i386-linux-

thread-multi/DynaLoader.pm line 230.
[Thu May 29 08:33:54 2008] [error] [client 10.197.96.97]  at (eval 1) line 3
[Thu May 29 08:33:54 2008] [error] [client 10.197.96.97] Compilation failed in require at (eval 1) line 3.
[Thu May 29 08:33:54 2008] [error] [client 10.197.96.97] Perhaps a required shared library or dll isn't installed

where expected
[Thu May 29 08:33:54 2008] [error] [client 10.197.96.97]  at /var/www/html/gprism/o.cgi line 4
[Thu May 29 08:33:54 2008] [error] [client 10.197.96.97] Premature end of script headers: o.cgi

暈死,昨天花了半天時(shí)間搞定了instant client和DBD:racle,以為搞定了,難道還是有問題?
那為什么直接perl運(yùn)行能取出數(shù)值呢?

論壇徽章:
1
榮譽(yù)會(huì)員
日期:2011-11-23 16:44:17
4 [報(bào)告]
發(fā)表于 2008-05-29 09:25 |只看該作者
DBD::Oracle有問題..重裝吧..

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2008-05-29 10:26 |只看該作者
上了一個(gè)小時(shí)google
解決方法如下:

echo $ORACLE_HOME/lib >> /etc/ld.so.conf   
ldd /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/Oracle/Oracle.so--查看結(jié)果是否正常
httpd.conf:
        SetEnv LD_LIBRARY_PATH /home/oracle/oracle/product/10.2.0/oraclient/lib
        SetEnv ORACLE_HOME /home/oracle/oracle/product/10.2.0/oraclient
重啟apache
問題解決

[ 本帖最后由 dong_kof 于 2008-5-29 10:27 編輯 ]
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP