linuxÏÂͨ¹ýoracle pipe´´½¨Îļþ!
ÏÖÔÚÓиöÕâÑùµÄÐèÇó,ÎÒµÄoracle¹ý³ÌÒª¶¯Ì¬´´½¨Îļþ(ÎļþÊÇÓÃÀ´µ¼³öÊý¾ÝÓõÄ),ÊÂÏÈÎÒ²»ÖªµÀ¸ÄÎļþÊÇ·ñÒѾ´æÔÚ.ËùÒÔÎÒÏëͨ¹ýpipe¹ÜµÀ¸ølinuxµÄÒ»¸ö½Å±¾·¢ËÍÏûÏ¢,¶ø¸Ã½Å±¾È¡µÃoracle ¹ÜµÀ·¢À´µÄÏûÏ¢(ÊÇÎļþµÄĿ¼) ,½«ÏûÏ¢ÖØ¶¨Ïòµ½ÁíÍâÒ»¸öÅжϸÃĿ¼ÊÇ·ñ´æÔڵĽű¾,Èç¹û²»´æÔÚÔò´´½¨Ëü.
ÓÃFIFO..
Èç¹ûÄãµÄlinux½Å±¾Ö´Ðнø³Ì¸úÄãµÄoracle½ø³Ì²»ÊÇÇ×Ôµ½ø³Ì£¬¾ÍÓÃÓÐÃû¹ÜµÀFIFO°É¡£²Ù×÷ºÜ¼òµ¥£¬ÀàËÆÎļþ²Ù×÷¡£
FIFO?Ó÷¨¿É·ñ¸øÎÒ½²½²
ÕâÀïÓÐÏêϸÓ÷¨£º
http://hi.baidu.com/glowzrf/blog/item/dcaf96fb28c941136d22eb9f.html
ÕÒ±¾½ø³Ì¼äͨÐŵÄÊé¶¼ÓнéÉÜ
ÍøÂç±»ÏÞÖÆÁË,Ö»ÄÜÉÏCSDN.
²é¿´ÎÄÕÂ
ÃüÃû¹ÜµÀFIFO——Linux±Ê¼Ç
2008-04-08 20:15
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
int main(){
int res=mkfifo("/tmp/my_fifo",0777); //int mkfifo(const char *filename,mode_t mode);
if(res==0) printf("FIFO created\n");
exit(EXIT_SUCCESS);
}
FIFOµÄ¶Áд¹æÔò£º£¨³ö×ÔLinux C±à³Ì£©
´ÓFIFOÖжÁÈ¡Êý¾Ý£º
1.Èç¹ûÓнø³Ìд´ò¿ªFIFO£¬ÇÒµ±Ç°FIFOÄÚûÓÐÊý¾Ý£¬Ôò¶ÔÓÚÉèÖÃÁË×èÈû±êÖ¾µÄ¶Á²Ù×÷À´Ëµ£¬½«Ò»Ö±×èÈû¡£¶ÔÓÚûÓÐÉèÖÃ×èÈû±êÖ¾µÄ¶Á²Ù×÷À´ËµÔò·µ»Ø-1£¬µ±Ç°errnoֵΪEAGAIN£¬ÌáÐÑÒÔºóÔÙÊÔ¡£
2.¶ÔÓÚÉèÖÃÁË×èÈû±êÖ¾µÄ¶Á²Ù×÷À´Ëµ£¬Ôì³É×èÈûµÄÔÒòÓÐÁ½ÖÖ£ºÒ»ÖÖÊǵ±Ç°FIFOÄÚÓÐÊý¾Ý£¬µ«ÓÐÆä
Ïà¹ØÎÊ´ð£º
¸ø¸öµØÖ·£¬»òÕß·¢µ½ÎÒÓÊÏäÒ²ÐÐ wrongagain98@163.com
×îºÃÊÇÊÓÆµµÄ£¬²»ÊÇÊÓÆµÆÕͨµÄÒ²ÐС£
Ö÷ÒªÊÇÁ½·½Ã棺
1.ÔõÑù±à¼¡¢±àÒëºÍµ÷ÊÔ³ÌÐò¡£Ï£ÍûÄÜÒ»²½²½½²Çå³þ£¬ÈçºÎ°²×°¡¢ÈçºÎÅäÖõȡ£²»Òª¾Íֻ˵¾ä¡°¾ÍÓ ......
ÔÚ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 ......
cvs¹Ù·½²»ÄÜÏÂÔØÁË£¬Ë¸øÎÒÒ»·Ý£¬×îºÃÓÐÅäÖÃ˵Ã÷µÄÎĵµ¡£¡£¡£Ð»Ð»ÁË
ûÓУ¬°ï¶¥Ò»Ï¡£
¹Ù·½²»ÄÜÏÂÔØ ±ðµÄµØ·½»¹ÓÐÏÂÔØµÄµØ·½ ÎÒ¸Õ²ÅËÑÁË
¸ÕÏÂÔØÁ˸ö¡£¡£¡£ÊDz»ÊDz»µ½4M°¡¡£¡£¡£cvs-1.12.13.1.tar.tar
linu ......
ÎÒÒª²éÕÒĿ¼/home/riverdream/ϵÄËùÓеģª.CPPÎļþ
int main(int argc, char *argv[])
{
char str[] = "/home/riverdream/";
DIR* pDir = NULL;
  ......