Database °æ (¾«»ªÇø)
·¢ÐÅÈË: starstar (ÎÒɾÎÒɾ£¬ÕûÀí°æÎñÖÐ), ÐÅÇø: Database
±ê Ìâ: »ùÓÚPBµÄClient/ServerÁ½²ã½á¹¹Ïò»ùÓÚWeb·Ö²¼Ê½Ó¦Óõ
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2001Äê04ÔÂ09ÈÕ20:24:48 ÐÇÆÚÒ»), Õ¾ÄÚÐżþ
×÷Õß½éÉÜÁËÄ¿Ç°ÆóÒµÓ¦ÓÃϵͳµÄÏÖ×´ÒÔ¼°·¢Õ¹Ç÷ÊÆ£¬Ö¸³ö´«Í³µÄClient/ServerÁ½²ã½á¹¹
Ïò»ùÓÚWebµÄ¶à²ã½á¹¹µÄ¹ý¶È½«ÊÇδÀ´ÆóÒµÓ¦Óõķ¢Õ¹Ç÷ÊÆ¡£»ùÓÚÕâÑùµÄÇ÷ÊÆ£¬½éÉÜÁËS
ybaseµÄWeb½â¾ö·½°¸¡£×îºóÒÔÒ»¸öʵ¼ÊµÄÀý×Ó½éÉÜÁËÈçºÎ´Ó´«Í³PBµÄClient/ServerÁ½²ã
½á¹¹Æ½»¬¹ý¶Èµ½WebÓ¦Óõķ½·¨¡£ÕâÖÖ·½·¨¶ÔÓÚ±£»¤´«Í³PB¿ª·¢µÄÈËÁ¦ºÍÖÇÁ¦×ÊÔ´ÊǷdz£
ÓÐÒâÒåµÄ£¬Ò²ÊÇÒ»ÖÖÇÐʵ¿ÉÐеÄWeb½â¾ö·½°¸¡£
Ò»¡¢ÆóÒµÓ¦ÓÃϵͳÏÖ×´¼°·¢Õ¹Ç÷ÊÆ
1¡¢Ó¦ÓÃÏÖ×´
Ä¿Ç°´ó¶àÊýÓ¦ÓÃÈí¼þϵͳ¶¼ÊÇClient/ServerÐÎʽµÄÁ½²ã½á¹¹£¬Ó¦Óð²×°²¢ÔËÐÐÔÚ¿Í»§¶Ë
µÄ¼ÆËã»úÖУ¬Í¨¹ý¾ÖÓòÍø»ò¹ãÓòÍøÁ¬½ÓÓëºǫ́Êý¾Ý¿â·þÎñÆ÷Á¬½Ó²¢¹²ÏíÊý¾Ý£¬²¢°ÑÔʼ
Êý¾Ý»ò´¦ÀíºóµÄÊý¾Ý´æ´¢ÔÚºǫ́Êý¾Ý¿âÖС£
2¡¢·¢Õ¹Ç÷ÊÆ
ÏÖÔÚµÄÈí¼þÓ¦ÓÃϵͳÕýÔÚÏò·Ö²¼Ê½µÄWebÓ¦Ó÷¢Õ¹£»ÄÚ²¿µÄºÍÍⲿµÄÓû§¶¼¿ÉÒÔ·ÃÎÊеÄ
ºÍÏÖÓеÄÓ¦ÓÃϵͳ£¬WebºÍClient/Server Ó¦Óö¼¿ÉÒÔ½øÐÐͬÑùµÄÒµÎñ´¦Àí£»²»Í¬µÄÓ¦ÓÃ
Ä£¿é¹²ÏíÂß¼×é¼þ£»Í¨¹ýÏÖÓÐÓ¦ÓÃϵͳÖеÄÂß¼¿ÉÒÔÀ©Õ¹³öеÄÓ¦ÓÃϵͳ¡£ÕâÒ²¾ÍÊÇÄ¿
Ç°Ó¦ÓÃϵͳµÄ·¢Õ¹·½Ïò¡£
(1) Web Ó¦ÓõÄÓÅÊÆ
¡¡ ¶Ô´«Í³Client/ServerÓ¦ÓÃϵͳºÍWebÓ¦ÓõĹ¹ÔìÓ¦ÓÃϵͳµÄ»ù±¾ÒªËؽøÐбȽϣ¬¾Í»á
·¢ÏÖÓ봫ͳ¿Í»§/·þÎñÆ÷Ó¦ÓÃÏà±È(±í1)£¬ Web Ó¦ÓÃÓкܶàÓŵ㡣
±í1 ¿Í»§/·þÎñÆ÷Ó¦ÓúÍWebÓ¦ÓöԱÈ
±È½ÏÄÚÈÝ
¿Í»§/ ·þÎñÆ÷Ó¦ÓÃ
Web Ó¦ÓÃ
ÍøÂçÐÒé
IPX/SPX
TCP/ IP
NetBEUI
TCP/IP
ÔËÐл·¾³
Windows'95
NT¡¢Mac
UNIX
Browser
¿Í»§¶ËÅäÖÃ
Database driver
Run-rime Application
£¨ÅÖ¿Í»§¶Ë£©
Zero
£¨ÊÝ¿Í»§¶Ë£©
¡¡¡¡Òò´Ë£¬»ùÓÚWeb ¼¼Êõ¹¹ÔìÓ¦ÓÃϵͳ£¬¿ÉÒÔÏÔÖø½µµÍϵͳά»¤ºÍÌá½»·ÑÓã¬Óû§»¹¿É
´Óͳһ½çÃæºÍ¼ò»¯²Ù×÷ÖÐÊÜÒæ¡£
£¨2£©Web Ó¦Ó÷¢Õ¹·½Ïò
ÓÉÓÚ´«Í³µÄWebÓ¦ÓÃÖÐʹÓõÄHTTPÐÒéÊÇÒ»ÖÖÎÞ³£Á¬½ÓµÄÐÒ飬ËùÒÔÎÞ·¨ÔÚä¯ÀÀÆ÷ÉÏ»ñµÃ
ʵʱµÄÊý¾Ý£¬Ò²¾ÍÎÞ·¨ÊµÊ±´¦ÀíÊý¾ÝºÍ¾«È·µØ¿ØÖÆÊÂÎñ£¬²¢ÇÒÎÞ·¨¹¹ÔìWebÉϵÄOLTP£¨ÔÚ
ÏßÊÂÎï´¦Àí£©Ó¦Óá£Òò´Ë£¬±ØÐëÔÚä¯ÀÀÆ÷µ½Ó¦Ó÷þÎñÆ÷Ö®¼äÌṩеÄͨѶÐÒé¡£
Õë¶ÔÕâÖÖÊг¡ÐèÇ󣬸÷´óÖ÷Á÷Êý¾Ý¿â³§ÉÌ£¬ÈçSybase¡¢Oracle£¬ÒÔ¼°ä¯ÀÀÆ÷ºÍWeb ·þÎñ
Æ÷ÌṩÉÌ£¬ÈçMicrosoft¡¢Netscape µÈ¶¼·×·×ÍƳöÒÔWeb ·þÎñÆ÷ºÍä¯ÀÀÆ÷µÄÀ©Õ¹¼¼ÊõΪ
»ù´¡£¬Êý¾Ý¿â³§ÉÌÌṩʵÏÖÊý¾Ý¿â·ÃÎʵÄÓ¦Ó÷þÎñÆ÷¡£ÕâÑù£¬Web Ó¦ÓþʹӴ«Í³¿Í»§»ú
£¯·þÎñÆ÷Á½²ãÌåϵ½á¹¹£¬À©Õ¹Îªä¯ÀÀÆ÷£¯Web ·þÎñÆ÷£«Ó¦Ó÷þÎñÆ÷£¯Êý¾Ý¿â·þÎñÆ÷µÄÈý
²ã»ò¶à²ãÌåϵ½á¹¹¡£
Web ƽ̨µÄÀ©Õ¹¿ÉÒÔ·ÖΪWeb ·þÎñÆ÷¶ËÀ©Õ¹ºÍä¯ÀÀÆ÷¶ËÀ©Õ¹Á½ÀࡣĿǰÖ÷ÒªµÄWeb·þÎñÆ÷
À©Õ¹¼¼ÊõÒ»°ã¶¼ÊÇͨ¹ýÌṩһ¸öÖ§³ÖCGI¡¢ISAPI»òNSAPI À©Õ¹±ê×¼µÄÓ¦Ó÷þÎñÆ÷À´ÊµÏÖ
¡£ÆäÖУ¬CGI£¨Common Gateway Interface£© ÊÇͨÓõÄWeb ·þÎñÆ÷À©Õ¹±ê×¼£¬¶øISAPI
ºÍNSAPI ÔòÊôÓÚ³§É̵¥¶À¶¨ÒåµÄÀ©Õ¹¹æ·¶£¬Ö»Îª¸÷×ÔÌض¨µÄWeb ·þÎñÆ÷Ìṩ¹¦ÄÜÀ©Õ¹¡£
Êý¾Ý¿â³§ÉÌÌṩµÄÓ¦Ó÷þÎñÆ÷Ò»°ã¶¼Ö§³ÖÕâЩÀ©Õ¹±ê×¼£¬ÒÔ±£Ö¤¿ª·ÅÐÔ¡£ÔÚÕâÒ»µãÉÏ£¬
SybaseµÄ²úÆ·ÓÈΪͻ³ö(ºóÃæ»á¶ÔÆä½øÐÐÏêϸ½éÉÜ)¡£
»ùÓÚÓ¦Ó÷þÎñÆ÷µÄÀ©Õ¹¼¼ÊõµÄ»ù±¾ÔÀíÈçÏ£ºÓ¦Ó÷þÎñÆ÷ͨ¹ý¶ÔWeb ·þÎñÆ÷µÄÀ©Õ¹£¬Ê¹
ä¯ÀÀÆ÷¿ÉÒÔͨ¹ýHTML»òÆäËüÀàËƵĽű¾ÓïÑÔ£¬µ÷ÓÃÓ¦Ó÷þÎñÆ÷ÌṩµÄ¹¦ÄÜ£¬´Ó¶øÀ©Õ¹ä¯
ÀÀÆ÷ºÍWeb ·þÎñµÄÓ¦ÓÃÁìÓò¡£µ±ä¯ÀÀÆ÷ÒýÈëÒ»¸ö´øÓÐÓ¦Ó÷þÎñÆ÷¹¦Äܵ÷ÓõÄURL ʱ£¬We
b ·þÎñÆ÷¾Íͨ¹ý±ê×¼µÄÀ©Õ¹¼¼Êõ£¬µ÷ÓÃÓ¦Ó÷þÎñÆ÷ÌṩµÄ¹¦ÄÜ£¬Íê³É½âÊͽű¾¡¢´«µÝ²Î
ÊýºÍ½á¹ûÐγɵȹ¤×÷£¬×îºóÓ¦Ó÷þÎñÆ÷µÄÖ´Ðнá¹ûÒÔHTMLµÄ¸ñʽ´«µÝµ½ä¯ÀÀÆ÷¡£
ʹÓÃλÓÚÓ¦Ó÷þÎñÆ÷»òWeb ·þÎñÆ÷ÉϵĶÔÏó£¬Í¨¹ýÕâЩ¶ÔÏóʵÏÖ¶Ôºǫ́Êý¾Ý¿âÁª»ú·ÃÎÊ
£¬´Ó¶ø¿ÉÒÔ¸üºÃµØ¿ØÖÆÿ¸öÊÂÎñ£¬µÃµ½¸ü¿ìµÄ·ÃÎÊËٶȣ¬²¢ÇÒ¿ÉÒÔʵÏÖ½«OLTPÓ¦Ó÷ÅÔÚ
Web ÉÏ¡£
¶þ¡¢SybaseµÄWeb½â¾ö·½°¸
Ëæ×ÅWeb ¼¼ÊõµÄ·ÉËÙ·¢Õ¹£¬Óû§¹¹Ôì»ùÓÚWeb Ó¦ÓõÄÐèÇóÒ²ÔÚѸËÙÔö³¤¡£Sybase×÷
Ϊҵ½çÁìÏȵÄÊý¾Ý¿â²úÆ·ÌṩÉÌ£¬½ô¸úInternet¼¼ÊõµÄ·¢Õ¹³±Á÷£¬²»¶ÏÍƳöеÄÓ¦Óòú
Æ·¡£ Sybase¹«Ë¾Ìá³öµÄe-Map²ßÂÔ£¬¼´¡°Sybase e-Mapto e-Business¡±£¬¾ÍÊÇÒ»Ì×ÍêÕû
µÄWeb½â¾ö·½°¸¡£ËüÃè»æ³öÈçºÎʹÓÃ×î¼ò±ãµÄ·½Ê½½¨Á¢µç×ÓÉÌÎñ£¨WebÓ¦Ó㩵Ĺý³Ì£¬¿É
ÒÔÒýµ¼Äã¿ìËÙ¡¢¸ßЧ²¢Çҷdz£ÈÝÒ׵ؽ«ÏÖÓÐÒµÎñת»»³Éµç×ÓÉÌÎñģʽ£¬¶ø²¢²»ÐèÒª¶ÔÏÖ
ÓÐÒµÎñÔËÐз½Ê½×öÌ«´ó¸Ä±ä¡£
Sybase e-Map for PowerBuilderÊÇSybase e-Map²ßÂÔµÄÒ»¸ö×é³É²¿·Ö£¬ÊÇ¿ª·¢ÈËÔ±°ÑÏÖ
ÓеÄPowerBuilderÓ¦ÓÿìËÙÒÆÖ²µ½WebÉϵĽݾ¶£¬ÆäÖаüº¬µÄ¼¼Êõ²»µ«¿ÉÒÔÖ§³ÖÄ¿Ç°µÄ
ÒµÎñÐèÒª£¬¶øÇÒÄܹ»ÊÊӦеĵç×ÓÉÌÎñÓ¦Óá£
Sybase¿ÉÒÔÂú×ãÖØÒªµÄÓ¦Ó÷þÎñÆ÷µÄ°²È«ÐÔ¡¢¿ÉÉìËõÐԺͿɿ¿ÐÔ¡£ºÜ¶à¹«Ë¾¶¼²ÉÓÃÁËSy
base µÄÓ¦Ó÷þÎñÆ÷Enterprise Application Server£¬ ¼ò ³ÆEAServer¡£ËüÔÚͬÀà²úÆ·
Öд¦ÓÚÁìÏȵĵØλ¡£
1¡¢EAServer Ö§³ÖËùÓеÄÖ÷Òª×é¼þÀàÐÍ
EAServer ¾ßÓм¯³É»¯µÄÒµÎñÂß¼Ìá½»ÄÜÁ¦£¬ Õâ¸ö¹¦ÄÜÊǽ«Client/ServerÓ¦ÓÃÀ©Õ¹µ½W
eb ÉϵĹؼüÒòËØ¡£ËüÄܹ»´¦ÀíËùÓÐÖ÷ÒªµÄ×齨ÀàÐÍ£¬ °üÀ¨PowerBuilder¡¢Java¡¢COM¡¢
CORBA ºÍC£«£«¡£ Òò´ËÖ»ÓÐ EAServer Äܹ»ÔÊÐíÄãͬʱʹÓÃVisual Basic Ó¦ÓÃÖеÄCOM
×é¼þºÍ PowerBuilder Ó¦ÓÃÖеÄNVO×é¼þ£¬Ò²Ö»ÓÐEAServer¿ÉÒÔÖ§³ÖÏÖÓеÄ×é¼þºÍÆäËû
ÈçC£«£«¡¢CORBA ºÍJava×é¼þÖ®¼äµÄ½»»¥¡£
2¡¢EAServer¿ÉÒÔÁ¬½ÓËùÓÐÖ÷ÒªµÄ¿Í»§ÀàÐÍ
Sybase EAServer ¹ÜÀíµÄÂß¼×é¼þ¿ÉÒÔ±»ºÜ¶àÀàÐ͵Ŀͻ§¶Ëµ÷Ó㬰üÀ¨PowerBuilder¡¢
Java¡¢COM¡¢CORBAºÍC£«£«£¬ÉõÖÁ»¹°üÀ¨HTML¡£
3¡¢ÑÓÐøPowerBuilderµÄͶ×Ê
Èç¹ûÄãʹÓÃPowerBuilder ¿ª·¢ÁËÏÖÔÚµÄϵͳ£¬ÄÇôSybase µÄe-Map for PowerBuilder
¾Í¾ßÓзdz£ÖØÒªµÄÒâÒå¡£
µÚÒ»£¬ËùÕÆÎÕµÄʹÓÃPowerBuilderµÄ¼¼ÊõÈÔÈ»¿ÉÒÔÓÃÓÚ¿ª·¢µç×ÓÉÌÎñÓ¦Óá£
µÚ¶þ£¬e-Map¿ÉÒÔ±£³ÖÆóÒµÖÐ PowerBuilder ¿ª·¢ÈËÔ±µÄ¼ÛÖµ¡£
×ÜÖ®£¬Sybase e-Mapfor PowerBuilder Ö¸³öÁËÒ»ÌõÇÐʵ¿ÉÐеÄͨÏòµç×ÓÉÌÎñµÄµÀ·£¬µ«
ÊÇÒªÕæÕýµØʵÏÖµç×ÓÉÌÎñÈÔÈ»Óкܶà·Ҫ×ߣ¬ÕâÒ²ÊÇe-Map²ßÂÔÖаüº¬ÁËÅàѵ¡¢ ¹ËÎÊ·þ
ÎñºÍ¼¼ÊõÖ§³ÖµÄÔÒò¡£ÏÂÃ潫¾ßÌå¾ÍPB³ÌÐòÔ±µÄWebÓ¦ÓÃ×÷Ò»Ïêϸ½éÉÜ¡£
Èý¡¢´«Í³PBÁ½²ã½á¹¹µÄWeb֮·
ÕâÀïÖ÷Òª½éÉÜ´«Í³µÄPowerBuilder³ÌÐòÔ±ÈçºÎƽÎȹý¶Èµ½»ùÓÚWebµÄÈý²ãÌåϵ½á¹¹£¬Ò²¾Í
ÊÇÀûÓÃEAServerÒÔ¼°ÆäËûÏà¹ØµÄSybase¹¤¾ß½¨Á¢ÆóÒµ½â¾ö·½°¸¡£¿ÉÒÔÀûÓÃPowerJÀ´½¨Á¢
·Ö²¼Ê½Ó¦Ó㬵«±¾ÎĽ«×ÅÖØÌÖÂÛÈçºÎÀûÓÃPowerBuilder7.0À´½¨Á¢·Ö²¼Ê½Ó¦Óá£Ëæ×ÅPow
erBuilder 7.0 µÄÍƳö£¬ÕâÒ»¹¤×÷±äµÄ·Ç³£¼òµ¥£¬SybaseÔÚPowerBuilderºÍEAServerµÄ
¼¯³ÉÎÊÌâ·½ÃæÏ൱³É¹¦¡£½«PowerBuilder ×é¼þºÍ»ùÓÚPowerbuilderËù»ýÀ۵ļ¼ÇÉתÒƵ½
Web»òÆäËû·Ö²¼Ê½»·¾³£¬ÊÇÒ»¼þ·Ç³£ÇáËɵÄÊÂÇé¡£ÏÂÃ潫×ÅÖØÌÖÂÛÕâ·½ÃæµÄÎÊÌâ¡£
ÔÚÌÖÂÛ֮ǰ£¬Ê×ÏÈ̸һÏÂEAServerºÍJaguar CTSÖ®¼äµÄÇø±ð¡£EAServer£¨Enterprise A
pplication Server ¡ª¡ªÆóÒµÓ¦Ó÷þÎñÆ÷£©ÊÇJaguar CTSºÍPowerDynamoÕûºÏºóµÄÐÂÃû³Æ
¡£ÕâÁ½¸ö²úÆ·Ï໥²¹³ä£¬Jaguar CTSÌṩ×é¼þÊÂÎñÖ§³Ö£¬PowerDynamoÔòÀûÓÃÆä¶ÔÊг¡ÉÏ
¸÷ÖÖÖ÷ÒªWeb·þÎñÆ÷µÄÀ©Õ¹ÄÜÁ¦Ìṩ¿ÉËõ·ÅµÄ¶¯Ì¬HTMLÖ§³Ö¡£ÔÚ±¾ÎÄÖУ¬EAServerÊÇÖ¸J
aguar CTSºÍPowerDynamo¼¯³ÉºóµÄ²úÆ·£¬µ«ÕâÀォ×ÅÖØÌÖÂÛJaguar CTS£¬¼´×é¼þÊÂÎï·þ
ÎñÆ÷¡£
ÏÂÃ潫ÒÔÒ»¸öʵ¼ÊÀý×ÓÀ´ÏêϸÌÖÂÛÈçºÎͨ¹ýʹÓÃJaguar CTSµÄJDBC/ODBC Bridg
e·ÃÎʵÚÈý·½Êý¾Ý¿âÖеÄÊý¾Ý£¨ÔÚ±¾ÎÄÖÐΪOracle 8£©¶ø½¨Á¢EAServerµÄPB NVO×é¼þµÄÈ«
¹ý³Ì,²¢ÇÒÌÖÂÛ×é¼þÍê³Éºó½¨Á¢JavaÓ¦Óõļ¸¸öÖ÷Òª»·½Ú£¬°üÀ¨Óë·þÎñÆ÷EAServerÁ¬½Ó£¬
Java×é¼þµÄʵÀý»¯£¬·½·¨µ÷Óõȵȡ£
Ê×ÏÈÅäÖÃEAServer£¬ÕâÊǷdz£ÖØÒªµÄ£¬Ö»ÓÐEAServer µÄÕýÈ·ÅäÖ㬲ÅÄÜΪӦÓÃÌṩ×é¼þ
·þÎñ£¬·ñÔò¼´Ê¹¿ª·¢³ö³É¹¦µÄPB×é¼þÒ²ÎÞ·¨ÔÚWeb¶Ëµ÷Óá£
1¡¢»·¾³±äÁ¿µÄÉèÖÃ
¶ÔÓÚ»·¾³±äÁ¿CLASSPATH£¬Ôö¼ÓÒÔÏÂÁ½¸öCLASSPATH£¨Éí·ÝΪSYSTEM£©£º
%JAGUAR%\html\classes; % JAGUAR%\java\classes
»·¾³±äÁ¿PATH£ºÔö¼ÓÒÔÏÂĿ¼£ºC:\ program files\sybase\shared\sun\jdk118\bin¡£
¼ÙÉèsybase°²×°ÔÚc:\program files\sybaseĿ¼Ï¡£
2¡¢ÅäÖüàÌýÆ÷£¨listener£©
ÅäÖüàÌýÆ÷µÄÄ¿µÄÊÇʹ³ý±¾»úÍâµÄÆäËû»úÆ÷¿ÉÒÔ·ÃÎÊEAServer£¬Õâ¶ÔÓÚС×鿪·¢·Ç³£ÖØ
Òª£¬µ±È»Èç¹ûÄã²»ÏëÆäËû»úÆ÷·ÃÎÊEAServer£¬Ôò¿ÉÒÔ¿ç¹ýÕâÒ»²½¡£¼àÌýÆ÷µÄȱʡÉèÖÃΪ
¡°localhost¡±¡£ÒªÏë¸Ä±äÕâһȱʡÉèÖã¬Ó¦´ÓJaguar CTS³ö·¢£¬ÆôÓÃJaguar Manager£¬
¼´´Ó²Ëµ¥ÖÐ×÷Ñ¡Ôñ¡°Tools ©¦Connect ©¦Jaguar Manager¡±¡£ÔÚJaguar ManagerÆô¶¯Ö®
ºó£¬²ÉÓÃĬÈÏÓû§½øÐеǼ£¬¼´User NameΪjagadmin£¬PasswordΪ¿Õ£¬Host Name¾ÍÊÇ
localhost¡£µÇ¼³É¹¦ºó£¬°´ÒÔÏ·¾¶ÕÒµ½¼àÌýµØÖ· ¡°Sybase Central \ Jaguar Mana
ger \ Servers \ Jaguar \ listeners¡±¡£Õâʱ£¬ÔÚÆÁÄ»µÄÓÒÃæ¿É¿´µ½Ò»¸ö¼àÌýµØÖ·±í
¡£¾¡¹ÜÎÒÃÇʵ¼ÊÉÏÖ»ÓÃÁ½¸öµØÖ·£¬µ«»¹ÊǶÔËùÓеĵØÖ·×÷ÏàÓ¦µÄ¸Ä±ä£ºÓÒ»÷ÿ¸ö¼àÌýµØ
Ö·²¢Ñ¡Ôñ¡°listener Properties¡±£¬È»ºóÔÚ¡±Host¡±ÓòÖÐËÍÈëÄãËùÔÚ»úÆ÷µÄIPµØÖ·»òT
CP/IPÃû£»Èç¹ûÄãʹÓõÄÊÇWinNT,Win98»ò Win95£¬ÔòÓ¦ÔÚ¸ÃÓòÖÐÌîÈëÄãÔÚÍøÂçÉèÖÃÖÐËù
ʹÓõļÆËã»úÃû¡£È»ºó£¬Jaguar CTS½«ÔÚ·þÎñÆ÷Æô¶¯Ê±²éÕÒÏàÓ¦µÄIPµØÖ·¡£Íê³ÉËùÓÐÕâ
Щ¹¤×÷Ö®ºó£¬Ó¦¹Ø±ÕJaguar Manager£¬È»ºóÔÙÖØÐÂÆô¶¯Jaguar CTS·þÎñÆ÷¡£
ÖÁ´Ë£¬EAServer·þÎñÆ÷ÒÑÅ䱸¾ÍÐ÷£¬¿ÉÒÔ½ÓÊÜ¿Í»§ÇëÇóÁË¡£ÏÂÒ»²½µÄÈÎÎñÊÇ×÷һЩ¼ì²é
£¬¿´¿´ÊÇ·ñÕýÈ·µØÅäÖÃÁË°²×°µÄÁ¬½Ó»º³åÇø¡£
3¡¢ÑéÖ¤/´´½¨Á¬½Ó»º³åÇø
Á¬½Ó»º³åÇøÊÇEAServerÓëÊý¾Ý¿âÖ®¼äµÄÍø¹Ø£¨gateway£©¡£ÕâÊÇһЩԤÏÈÅäÖõÄÊý¾Ý¿âÁ¬
½Ó£¬Í¨¹ý·ÃÎÊÕâЩÁ¬½Ó£¬Ê¹×é¼þÄܹ»¿ìËÙ¶øÓÐЧµØµÃµ½ËüÃÇËùÐèÒªµÄÊý¾Ý¡£ÕâЩ¸ßËÙ»º
³åÇø£¬ÊÇEAServer½èÒÔ¶ÔÊý¾Ý¿âÁ¬½ÓºÍ¶Ô¸÷¸ö×é¼þµÄÊý¾Ý¿âÊÂÎñ×÷¼¯ÖпØÖƵÄÖØÒªÊÖ¶Î
¡£
±¾ÎÄÒÔOracle 8Êý¾Ý¿âµÄÁ¬½ÓΪÀý£¬½øÐÐÅäÖÃÁ¬½Ó»º³åÇø¡£Ê×ÏȵǼµ½Jaguar Manager
£¬Êó±êÑ¡ÖÐConnection Caches£¬Ñ¡Ôñ²Ëµ¥File/New Connection Cache£¬³öÏÖÒ»¸ö¶Ô»°
¿ò£¬ÒªÇóÊäÈëеÄÁ¬½Ó»º³å³ØµÄÃû×Ö£¬ÕâÀïÊäÈëCache_test£¬µã»÷Create New Connect
ion Cache°´Å¦£¬³öÏָûº³å³ØµÄÅäÖÃÐÅÏ¢¡£ÔÚ±êǩΪGeneral µÄÒ³ÃæÖУ¬ÌîÈëDescrip
tion(ÃèÊöÐÅÏ¢)£¬ÒÔ¼°Server Name£¬user nameºÍpassword¡£ÆäÖÐServer NameΪÔڸûú
Æ÷ÉÏÅäÖõÄOracleÊý¾Ý¿âµÄTNSÃû×Ö£¬User nameΪÊý¾Ý¿âµÄÓû§Ãû£¬passwordΪÏàÓ¦µÄ
¿ÚÁî¡£Driver±êǩΪÏàÓ¦µÄÊý¾Ý¿âÇý¶¯³ÌÐò£¬ÓÉÓÚÎÒÃÇÔÚ´ËÅäÖõÄÊÇOracle 8Êý¾Ý¿â£¬
ËùÒÔÑ¡ÔñOCI 8.x£¬¸ÃÊý¾Ý¿âµÄÇý¶¯³ÌÐòΪoci.dll¡£×îºóÔÚCache±êÇ©Ò³Öн«Á½¸öÑ¡Ôñ¶¼
Ñ¡ÖУ¬ÕâÊÇÓëÊý¾Ý¿âµÄÁ¬½Ó·½Ê½Ñ¡Ôñ¡£ÖÁ´ËÊý¾Ý¿âÁ¬½Ó»º³åÒÑÅäÖÃÍê±Ï£¬×îºóµ¥»÷ ¡°p
ing¡±°´Å¦£¬ÒÔ¼ì²éÁ¬½ÓÊÇ·ñÕýÈ·¡£Èç¹ûÁ¬½Óʧ°Ü£¬Ó¦×ÅÖؼì²éDriversµÄÅäÖá£
ËÄ¡¢½¨Á¢·þÎñÆ÷×é¼þ
Ëæ×ÅEAServerµÄÅäÖþÍÐ÷ÒÔ¼°Á¬½Ó»º³åÇøµÄÕýÈ·ÉèÖã¬ÏÂÃæµÄ¹¤×÷¾ÍÊǽ¨Á¢·þÎñÆ÷×é¼þ
¡£·þÎñÆ÷×é¼þµÄ½¨Á¢ÓÐÐí¶àµÄ·½·¨£¬ÕâÀïÎÒÃÇÖ÷ÒªÌÖÂÛ£¬¶ÔÓÚPowerBuilder³ÌÐòÔ±µÄ×î
·½±ãºÍ×î¼òµ¥µÄ·þÎñÆ÷×é¼þ½¨Á¢·½·¨¡£ÕâÀï´ÓÁ㿪ʼ½¨Á¢Ò»¸öÄÜ·ÃÎÊOracle 8Êý¾Ý¿â²¢
½«Êý¾ÝËÍ´ï¸ø¿Í»§µÄJaguar×é¼þ¡£ÔÚPowerBuilder 7ÖУ¬×¨ÃÅÕë¶Ô×é¼þ·þÎñ£¬ÐÂÔö¼ÓÁË
Jaguar ×é¼þ¿ª·¢·½·¨¡£ÏÂÃ潫һһ½éÉÜPowerBuilder NVO¿ª·¢Jaguar×é¼þ¡£
Ê×ÏÈ£¬´ò¿ªPowerBuilder 7²¢Ñ¡Ôñ ¡°File ©¦New £ü Start Wizard¡±£¬ÔÚ´ËÏò
µ¼Ãæ°æÖÐÑ¡ÔñJaguar Component¡£È»ºóÔÚÏòµ¼ÌáʾÏ£¬ÒÀ´ÎÒªÇóÊäÈëApplication name
(Ó¦ÓÃÃû)£¬ÕâÀïÊäÈëtest£»Component name(×é¼þÃû)£¬Ä¬ÈÏΪn_test£»Jaguar ServerµÄ
һЩÐÅÏ¢£¬ÉèÖÃÕâЩÐÅÏ¢µÄÄ¿µÄÖ÷ÒªÊÇΪÁË×é¼þµÄÌá½»£¬Server name ÌîÈëÇ°ÃæÔÚ¼àÌý
Æ÷ÅäÖÃÖÐÅäÖõĻúÆ÷Ãû£¬PortĬÈÏΪ9000£¬µÇ½IDĬÈÏΪjagadmin£¬passwordΪ¿Õ£¨Õâ
ЩĬÈÏÉèÖÿÉÒÔÔÚJaguar managerÖиı䣩£»È»ºóÌáʾÊäÈëPackage name(°üÃû)£¬ºóÃæ
¾ùȡĬÈÏÉèÖã¬ÔÚSpecify the debugging and live editing optionÑ¡ÏîÖУ¬Ñ¡ÖÐSup
ports Remote Debugging ºÍSupports live editing£¬Ä¿µÄÊÇΪÁËÖ§³ÖÔ¶³ÌºÍÏÖ³¡µ÷ÊÔ
£»ÔÚSpecify Dynamic Library OptionsÖУ¬Ñ¡ÖÐincluding unreferenced objects in
consolidated PBD£¬Ö»ÓÐÑ¡ÖдËÏ²ÅÖ§³ÖSQLCA¶ÔÏ󣬷ñÔò²»Ö§³Ö´Ë¶ÔÏó¡£×îºó£¬µ¥
»÷Finish°´Å¦£¬¼´¿É´´½¨ËùÐèÒªµÄJaguar×é¼þÁË¡£
ÏÂÃæ´´½¨Ò»¸ö·Ç³£¼òµ¥µÄJaguar×é¼þÀý×Ó£¬Õâ¸öСÀý×ÓÍê³ÉµÄ¹¦ÄܾÍÊÇ´ÓOracl
eÊý¾Ý¿âÖÐÈ¡³öÒ»¸ö¿â±íµÄ¼Ç¼¼¯¡£Ê×Ïȶ¨Òåʼþ£¬Ò»°ãÔÚNVOµÄActivateʼþÖбàдÁ¬
½ÓÊý¾Ý¿âµÄ´úÂ룬ÔÚDeactivateÖбàд³·ÏûÁ¬½ÓµÄ´úÂë¡£ÓëOracle Êý¾Ý¿âµÄÁ¬½ÓÊÇͨ¹ý
Ç°ÃæÅäÖõÄÁ¬½Ó»º³å½øÐеġ£
Ê×ÏÈÉùÃ÷±äÁ¿
protected DataStore ids_ResultSet
ʼþActivate´úÂëÈçÏ£º
SQLCA.DBMS = "O84 ORACLE 8.0.4"
SQLCA.AutoCommit = False
SQLCA.DBParm = "PBCatalogOwner='test',CacheName='Cache_test'"
CONNECT USING SQLCA;
IF SQLCA.SQLCode < 0 THEN
messagebox("NbjcError","Error in Connect using SQLCA")
END IF
ÕâÀÊý¾Ý¿âµÄÓû§ÃûΪtest£¬Ç°ÃæÅäÖõÄÁ¬½Ó»º³åÃûΪCache_test¡£
ʼþDeactivate´úÂëÈçÏ£º
destroy ids_resultset
disconnect using sqlca;
±àдһ¸öº¯ÊýgetRecord()£¬ÔÚ×é¼þÖгÆΪ·½·¨£¬ÓÃÀ´È¡³öÊý¾Ý±íStudentµÄËùÓÐ
¼Ç¼¼¯£¬Êý¾Ý±íStudentΪһ¸öÆÕͨµÄOracle¿â±í¡£
resultset lrs_res //·µ»ØµÄ½á¹û¼¯
ids_ResultSet = CREATE datastore
ids_ResultSet.dataobject="Student"
ds_ResultSet.settransobject(SQLCA)
ids_ResultSet.retrieve( )
ids_ResultSet.GenerateResultSet(lrs_res)
return lrs_res
ÔÚ´ËÓ¦ÓÃÖж¨ÒåÒ»¸öGrid ÀàÐ͵ÄÊý¾Ý´°¿Ú¶ÔÏó£¬Êý¾ÝÔ´¼´ÎªÇ°Ãæ·´¸´Ìáµ½µÄ¿â
±íStudent¡£
ÔÚÍê³ÉÁ˶Ըú¯ÊýµÄ¶¨ÒåÖ®ºó£¬ÔÚpblÖÐÑ¡Ôñ¸Õ¸Õ´´½¨µÄpackage(°ü) p_test£¬
È»ºóÔڲ˵¥ÖÐÑ¡Ôñ¡°Run ©¦Build ¡± ¶øʵʩ¶ÔÀàµÄ±àÒë¡£Èç¹û±àÒëÖÐûÓгöÏÖ´íÎó£¬Ôò
¸Ã·þÎñÆ÷×é¼þ¼´¸æÍê³É£¬Í¬Ê±×Ô¶¯Ìá½»µ½ÔÚÏòµ¼´¦¶¨ÒåµÄJaguar·þÎñÆ÷×é¼þÖС£
Èç¹ûÎÒÃÇÑ¡ÔñÓÃJava·½·¨À´µ÷ÓøÃ×é¼þ£¬»¹ÐèÒªÉú³ÉºÍ±àÒë¸Ã×é¼þµÄ´æ¸ùÀàºÍ°ï
Öú£¨helper£©Àà¡£¾ßÌåµØ˵£¬Ó¦µ±ÒÀ´Ë½øÐÐÒÔϵIJÙ×÷²ÅÄÜÍê³É×é¼þµÄ°²×°£¬²ÅÄÜÔÚPo
wer DynamoÖÐÕýÈ·µ÷Ó᣽«×é¼þµÇ¼Çµ½EAServer·þÎñÆ÷ÖеŤ×÷ÊÇÓÉPowerBuilder×Ô¶¯
Íê³ÉµÄ¡£È»ºóÔÙÉú³ÉºÍ±àÒë¸Ã×é¼þµÄ´æ¸ùÀà¡£ÔÚÕâЩ¹¤×÷Íê³Éºó£¬ÄãµÄ×é¼þ¾Í¿É¹©Ê¹ÓÃ
ÁË¡£
Éú³ÉºÍ±àÒë×é¼þµÄ´æ¸ùÀàºÍ¿ò¼ÜÀàµÄ·½·¨ÊÇ£ºÊ×ÏÈ´ò¿ªJaguar CTS manager£¬È»
ºóµÇ½µ½Jaguar manager£¬Ä¬ÈÏÓû§ÃûºÍ¿ÚÁî·Ö±ðΪJagadminºÍ¿Õ¡£È»ºóÑ¡ÔñInstall
package£¬ÔÚÒÑ°²×°µÄ°üÖУ¬ÕÒµ½ÎÒÃÇÔÚPB7ÖÐн¨µÄ°üÃûp_test¡£ÓÒ¼üµ¥»÷£¬Ñ¡Ôñ¡°Ge
nerate Stub/Skeleton¡±£¬Ñ¡ÔñGenerate Stubs,Geneerate Java Stubs£¬µ¥»÷Generat
e£¬ÏµÍ³Ìáʾ³É¹¦ºóµ¥»÷OK¡£ÖÁ´Ë£¬JavaµÄ´æ¸ùºÍ°ïÖúÎļþ¶¼ÒÑÉú³É£¬Ä¬ÈÏĿ¼ÔÚEASer
ver·þÎñÆ÷µÄÀà·¾¶ÉÏ£¬Èç¹ûÐèÒªµ¥¶ÀÖ¸¶¨£¬±ØÐëÔÚCLASSPATHÖÐÖ¸¶¨ÐµÄÀà·¾¶¡£×îºó
Ò»²½ÊDZàÒëÕâЩÎļþ£¬Õâ¸ö¹ý³Ì²»ÄÜÔÚͼÐνçÃæÖÐÍê³É£¬ÒªÇ󿪷¢ÕßÑ¡Ôñ×Ô¼ºµÄ·½·¨À´
±àÒëÕâЩÎļþ¡£ÆäÖÐ×î¼òµ¥µÄ·½·¨¾ÍÊDzÉÓÃÃüÁîÐбàÒëÆ÷À´½øÐбàÒë¡£¾ßÌåµÄ±àÒëºÍ°²
×°¹ý³ÌÈçÏ£º
´ÓÃüÁîÐÐÌáʾ³ö·¢ÕÒµ½%JAGUAR%\html\classes\p_testĿ¼£¬È»ºóÖ´ÐÐÃüÁî
javac*.java
ÖÁ´Ë£¬ÒÑÍê³É¶Ôн¨×é¼þµÄ°²×°¹ý³Ì£¬¸Ã×é¼þËæʱ¿ÉÒÔ±»Ê¹ÓÃÁË¡£ËµÃ÷Ò»µã£¬Ö»Óе±³õ
ʼ°²×°¸Ã×é¼þÒÔ¼°µ±¸Ã×é¼þµÄÇ©Ãû£¨signature£©¸Ä±äʱ²ÅÐèÒªÖ´ÐÐÕâÒ»¹ý³Ì¡£×é¼þµÄÇ©
Ãû¹¹³É¶¨Òå×é¼þ½çÃ棨°üÀ¨·½·¨ÃûºÍ±äÁ¿£©µÄËùÓÐÒªËØ¡£Èç¹û¸Ä±äµÄÖ»ÊÇ×é¼þµÄÄÚ²¿Âß
¼£¬¾Í²»±ØÖØÐÂÉú³É´æ¸ùÀ࣬ÒòΪÕâЩÀàÖ»ÊÇÖ¸ÏòʵÏÖÀ๦ÄܵÄÖ¸Õ룬¶ø²¢·Ç°üº¬ÕâЩ
Âß¼±¾Éí¡£
ÔÚËùÐèµÄ×é¼þÍê³Éºó£¬ÏÂÒ»²½µÄÈÎÎñÊǽ¨Á¢Ò»¸ö¼òµ¥µÄWebÓ¦Óã¬ÊµÏÖÓëEAServer·þÎñÆ÷
µÄÁ¬½Ó£¬²¢ÀûÓÃ×é¼þn_testÖеÄÂß¼´ÓÊý¾Ý¿âOracleÖмìË÷Êý¾Ý¡£ÕâÒ²¾ÍÊÇÒ»¸öµäÐ͵Ä
Browser/Application Server/DatabaseµÄÈý²ãÓ¦ÓÃÁË¡£¹ØÓÚÈçºÎÔÚPowerDynamoµÄÒ³Ãæ
ÎļþÖе÷ÓÃ×é¼þµÄ·½·¨£¬ÕâÀï¾Í²»Ïêϸ̸£¬×ÜÖ®ÊDZȽϼòµ¥µÄ£¬Ö»Òª´´½¨Õâ¸ö×é¼þµÄʵ
Àý£¬È»ºó¾Í¿ÉÒÔ·ÃÎÊÕâ¸ö×é¼þµÄ·½·¨£¬Íê³ÉÂß¼¹¦Äܵĵ÷Óá£
Èç¹ûÄãµÄWebÓ¦ÓÃûÓÐÏÔʾÕýÈ·µÄÊý¾Ý£¬¿ÉÒԲ鿴EAServer·þÎñÆ÷ÈÕÖ¾Öеijö´íÐÅÏ¢À´ÅÐ
¶Ï´íÎó·¢ÉúÔÚʲôµØ·½¡£²é¿´EAServer·þÎñÆ÷ÈÕÖ¾ÓÐÁ½ÖÖ°ì·¨£º»òÕßÖ±½Ó´Ó%JAGUAR%\b
in\srv.log²é¿´£¬»òÕßͨ¹ýJaguar ManagerÔÚ¡±Sybase Central \ Jaguar Manager \
Servers \ Jaguar \ File Viewer¡± ²é¿´¡£ÔÚºóÒ»Öֲ鿴·½Ê½Ï£¬ÏÈ´ò¿ªFile Viewer
£¬ÔÙ´ÓÁбíÖÐÑ¡ÔñÃûΪ¡±srvlog¡±µÄÎļþ¡£Èç¹ûûÓеõ½ËùÐèÒªµÄÕýÈ·Êý¾Ý£¬Õâ¸öÎļþ
Ó¦µ±ÌáʾÏàÓ¦µÄ´íÎóÊÇʲô£¬¸ù¾Ý¸ÃÎļþÌáʾµÄÄÚÈÝ»òÕßÐÞ¸Ä×é¼þ»òÕßÐÞ¸ÄÅäÖá£
½áÂÛ
±¾ÎÄÌÖÂÛÁËÒ»¸öÍêÕûµÄ¹ý³ÌÀ´ËµÃ÷ÈçºÎÀûÓÃPowerBuilder7ºÍEAServer³É¹¦½¨Á¢Ò»¸ö¼òµ¥
WebÓ¦ÓõÄÀý×Ó¡£´ÓÕâ¸öÀý×ÓÒ²¿ÉÒÔ¿´³ö£¬¶ÔÓÚ´«Í³µÄPowerBuilder³ÌÐòÔ±£¬Ö»ÒªÀí½â·Ö
²¼Ê½Ó¦ÓõÄһЩ¸ÅÄîºÍWeb¿ª·¢µÄ·½°¸£¬¾Í¿ÉÒԷdz£Æ½»¬µÄÓÉ´«Í³µÄClient/Server¿ª·¢
¹ý¶Èµ½»ùÓÚWebµÄÈý²ã»ò¶à²ãÓ¦Óá£
--
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: ir.hit.edu.cn]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º208.234ºÁÃë