¹ØÓÚLINUXϱàÒëOTL³öÏÖµÄOCI.HÕÒ²»µ½µÄÎÊÌâ
³ÌÐòºÜ¼òµ¥¾ÍÊÇÒ»¸öÁ¬½Ó¿âµÄС³ÌÐò£¬±àÒëµÄʱºòÕÒ²»µ½OCI.H£¬Çó´óϺÃÇ¿´¿´
³ÌÐò
#include <iostream>
#include <stdio.h>
using namespace std;
#define OTL_ORA9I // Compile OTL 4.0/OCI9i
#include "otlv4.h" // include the OTL 4.0 header file
otl_connect db; // connect object
int main()
{
otl_connect::otl_initialize(); // initialize OCI environment
try
{
cout < <"Connect to database..." < <endl;
db.rlogon("asion/asion@cost219"); // connect to Oracle
cout < <"Á¬½Ó³É¹¦" < <endl;
}
catch(otl_exception& p)
{
// intercept OTL exceptions
cerr < <p.msg < <endl; // print out error message
cerr < <p.stm_text < <endl; // print out SQL
Ïà¹ØÎÊ´ð£º
C/C++ code:
char Time="2009-9-23";
FILE *fpOut=fopen("1.txt","w+");
if(fpOut==NULL)
return ;
fwr ......
ÔÚlinuxÉÏʹÓÃtomcat·þÎñÆ÷³öÏÖÁ˺ܶàclose_wait
ʹÓÃä¯ÀÀÆ÷·ÃÎʵÄʱºò³öÏÖÒ³ÃæÒ»Ö±ÔÚÇëÇ󣬺ÜÂý £¬»ù±¾ÉÏûÓлØÓ¦¡£
ÓÃnetstat -anp ²é¿´ Óкܶàclose_wait
Õâ¸öÊÇʲôÒýÆðµÄ°¢ £¬Ôõô½â¾ö£¿
......
ʹÓÃStruts2ÉÏ´«Îļþ£¬ÔÚlinuxϱ¨´í
2009-09-29 14:56:20,801 [org.apache.struts2.interceptor.FileUploadInterceptor]-[ERROR] Processing of multipart/form-data request failed. c:/temp/upload__1dcd07ee_12 ......
¸Õ¸Õ½Ó´¥linux²»¾Ã£¬ÏîÄ¿ÖÐÒªÓÃnand flash ÎÒÊÖÉϵÄ×ÊÁϺܶà¿ÉÊÇÈÃÎÒ¿´²»ÇåËûÃÇÖ®¼äµÄ¹Øϵ£¬ÎÒÕûÀíһϳÂÊö£º
cpu 2440
os linux 2.6.15
booterloader u-boot
nand flash sansung k9f1208 ......
ÎÒÓÃkdevelopн¨ÁËÒ»¸ö»ùÓÚ¼òµ¥µÄhelloworldµÄ¹¤³Ì£¬ÆäʵÎÒÊÇÏë¸úVCÄÇÑù´´½¨Ò»¸öDLLµÄ¹¤³Ì£¨Ï൱LINUXϵÄSO£©£¬²»¹ýÕâIDEºÃÏñûÓУ¬ÎÒÔÚÕâÀïÃæÓÐ10¸öÀ´À࣬ÕâЩÀàÖ®¼ä¿ÉÄÜ´æÔÚ½»²æÒýÓõĹØϵ£¬±¾ÉíÓÖÒýÓÃÁËÍⲿµÄÁ ......