Database °æ (¾«»ªÇø)
·¢ÐÅÈË: starstar (½ñÌì´òÀÏ»¢), ÐÅÇø: Database
±ê Ìâ: PowerBuilderÀûÓÃOracle ODBC DriverÁ¬½ÓOracleÊý¾Ý¿
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2001Äê07ÔÂ23ÈÕ02:15:17 ÐÇÆÚÒ»), Õ¾ÄÚÐżþ
PowerBuilder 5.x, 6.x and 7.x ÀûÓÃoracleÌṩµÄODBC drivers ¿ÉÒÔÁ¬½Óµ½oracle
7.x 8.x£¬
Oracle Client¶ËÈí¼þ°ü˵Ã÷:
ÔÚWin3.1ÖУ¬ÐèÒª16λPowerBuilderÒÔ¼°16λOracle clien¶ËÈí¼þ°ü£¬ÈçSQL*Net
v2.x¡£
ÔÚWin9X, Win NT/2000ÖÐ(32 bit)£¬Òª32λPowerBuilderÒÔ¼°32λOracle client¶ËÈí¼þ
°ü£¬ÈçSQL*Net v2.x¡¢ Net8¡£
¡¡ Èç¹ûÔÚÖ÷Ŀ¼ÏµÄ\binĿ¼ÏµÄÓÐORAnnWIN.DLL(nnÊÇOracle°æ±¾ºÅ)£¬ÔòÕâ¸öÈí¼þ
°üÒ»¸ö16λµÄ£¬Oracle client for NTºÍfor Win95Èí¼þ°üÊǽØÈ»²»Í¬µÄ²úÆ·£¬ÊDz»¿ÉÏà
»¥Ìæ´úµÄ¡£ÁíÍ⣬ÑéÖ¤Oracle²¿¼þµÄ°²×°°æ±¾£¬¿ÉÒÔÓÃOracle Installer (ORAINST.EX
EÔÚoracleÖ÷Ŀ¼ÖеÄBINĿ¼ÏÂ)£¬Ëü¿ÉÒÔʶ±ðÒÑ°²×°µÄSQL*NetºÍNet8µÄ°æ±¾ºÅ¡£
Powerbuilder°æ±¾ËµÃ÷:
¡¡¡¡PowerBuilder 5.x·Ö16λ¡¢32λÆóÒµ°æ 32λPB×¢²á²¾ÖеÄ·¾¶£ºHKEY_LOCAL_MACH
INE\Software\Microsoft\Windows\CurrentVersion\App Paths for PB050.exe£¬ÆäÖÐ×¢
²áÁË32PB DLLµÄ·¾¶.
¡¡¡¡PowerBuilder 6.x 7.xÊÇ32λµÄ
Oracle ÌṩµÄODBC Drivers:
SQL*Net 2.x:
16λÁ¬½Ó£º
¡¡¡¡16λOracle ODBC drivers½öÖ§³ÖWindows 3.1£¬²»ÄÜÓÃÓÚ32λϵͳ¡£
ϱíÏÔʾOracle ODBC driver,Ïà¹Ø driverÒÔ¼°SQL*Net°æ±¾£º
driver°æ±¾ Driver DLL SQL*Net°æ±¾ Ö§³Öoracle°æ±¾
1.11.0.5 SQORA7.DLL 2.0 7.0.x 7.0 or later
1.11.1.5 SQORA71.DLL 2.1 7.1.x 7.1 or later
1.14.1.0 SQORA72.DLL 2.2 7.2.x 7.2 or later
2.5.3.1.0 SQORA73.DLL 2.3 7.3.x 7.3 or above
32λÁ¬½Ó£º
ϱíÏÔʾOracle ODBC driver,Ïà¹Ø driverÒÔ¼°SQL*Net°æ±¾£º
driver°æ±¾ Driver DLL SQL*Net°æ±¾ Ö§³Öoracle°æ±¾
*1.13.5.0.04 SQO32_72.DLL 2.2 7.2.x 7.2 or later
2.5.3.1.0 SQO32_73.DLL 2.3 7.3.x 7.3 or above
*²»Ö§³ÖWINNT 4.x
Net8:
32λÁ¬½Ó£º
ϱíÏÔʾOracle ODBC driver,Ïà¹Ø driverÒÔ¼°Net8°æ±¾£º
driver°æ±¾ Driver DLL Net8°æ±¾ Ö§³Öoracle°æ±¾
*8.0.3.0.0 SQORA32.DLL 8.0.3.0.0 8.0.x 8.0 or later
*8.0.4.00 SQORA32.DLL 8.0.4.0.0 8.0.x 8.0 or later
8.0.5.00 SQORA32.DLL 8.0.5.0.0 8.0.x 8.0 or later
8.01.05 SQORA32.DLL 8.1.5.0.0 8.0.x 8.0 or later
¡¡¡¡*Èç¹û¿´µ½£ºCommon Connect Errors¡ª¡ª Catalog tables²»Äܽ¨Á¢ºÍ¶ÔÓû§ÎÞЧ£¬
½¨ÒéÄãÓÃ8.0.5.00ÒÔºó°æ±¾¡£
ÅäÖÃODBCÊý¾ÝÔ´£º
Äã¿ÉÒÔͨ¹ý¿ØÖÆÃæ°åÖÐODBC»òÔÚPBÖÐÓà ODBC Configuration¹¤¾ß½¨Á¢ÐµÄÊý¾ÝÔ´£¬
data sourceÖÐConnect String£ºservice nameÕâ¸öÖµ,ÔÚoracle°²×°Ä¿Â¼ÏÂtnsnames.o
raÖеÄDBQÏîÄ¿ÖС£¶ÔÓÚ¸öÈË°æµÄOracle£¬Á¬½ÓÊý¾Ý¿â¿ÉÈƹýSQL*Net£¬SQL*NetµÄÁ¬½Ó´®
ÊÇ£º2:<SID>
<SID> Êý¾Ý¿âÀý³ÌID£¬Ä¬ÈÏÈËSIDÊÇORCL¡£
ÑéÖ¤OracleÁ¬½Ó£º
PowerBuilderͨ¹ýͬһclient¶ËºÍSQL*Net, Net8ÍøÂç²ãÒÔ¼°SQL*Plus·ÃÎÊÄãµÄOrac
leÊý¾Ý¿â ÕâΨһµÄ²»Í¬ÊÇPB×ÔÓеÄÁ¬½ÓºÍÓÃOCI²ã£¨ Oracle Call Interface£©µÄODBC
Á¬½Ó£¬Òò´Ë£¬OCIÔÚ°²×°SQL*NetºÍNet8ʱ±ØÐë°²×°¡£ÓÃÕâ¸ö²ã£¬Äãͬʱ±ØÐë°²×°ÓëÖ®ÊÊ
Ó¦µÄ±ØÒªµÄÖ§³ÖÎļþ£¨RSF£©¡£
ͨ¹ýSQL*PLUSÁ¬½ÓÄãµÄÊý¾Ý¿âÑéÖ¤Oracle¿Í»§¶ËÈí¼þµÄ°²×°ÓëÅäÖÃÕýÈ·¡£Èç¹ûÔÚ¿Í»§
¶ËÔÚ°²×°ºÍÅäʱÓÐÎÊÌ⣬Ä㽫²»ÄÜÓÃPBÁ¬½Ó£¬Èç¹ûSQL*PLUS¿ÉÒÔÁ¬Í¨£¬È»ºó³¢ÊÔÓÃÄ㽨
Á¢µÄODBCÊý¾ÝÔ´Á¬½Ó¡£OracleÌṩÁËÒ»¸ö°éËæSQL*Net 2.3.xµÄODBCʵÓóÌÐòOracle OD
BC Test£¬Äã¿ÉÒÔʹÓøóÌÐò²âÊÔµÄÊý¾ÝÔ´¡£
PBÖеĽ»Ò×´¦Àí£¨Transcation)ÉèÖÃ˵Ã÷£º
DBMS:ODBC
UserId£º²»ÓÃ
DBPass£º²»ÓÃ
Database £º²»ÓÃ
ServerName:²»Ó㬴ËÖµÒѱ»PBÖеÄÒÑ×÷ºÃµÄÁ¬½ÓprofileÌæ´ú¡£a connection is made
.
LogID ²»ÓÃ
LogPass ²»ÓÃ
DBParm £ºÁ¬½Ó´®£¬°üÀ¨DSN (Data Source Name)£¬ÄãµÄlogin IDºÍpassword¡£
ÏÂÃæÊÇÒ»¸öÁ¬½Ó´®µÄÀý×Ó£º
ODBC data source£º "DS Oracle 73"
user£º "Scott"
password£º "tiger"
DBParm="ConnectString='DSN=DS Oracle 73;UID=SCOTT;PWD=TIGER'"¡£
¶ÔÓÚPB5.x, ÔÚÄãµÚÒ»´ÎÁ¬½ÓÖ®ºóDBQÕâ¸öÖµ½«±»²åÈ룬µ«ÔÚPB6.xµÄÁ¬½Ó´®²»ÄÜ×÷DBQµÄ
Öµ¡£
Ò»°ãÁ¬½Ó´í£º
¡¡ Ä㵱ǰµÄ°²×°DBMS ODBC²»Ö§³Ö£º
¡¡¡¡ÊÇ·ñÓУºODBC32.DLL (Windows 95)£¬ÏµÍ³°´ËÑË÷·¾¶ÕÒ²»µ½PBODB050.DLL (PB 5.
x) PBODB060.DLL (PB 6.x) PBODB070.DLL (PB 7.x)
IM002 - Êý¾ÝÔ´ÃûûÓз¢ÏÖºÍûÓÐÖ¸¶¨Ä¬ÈϵÄdriver
¡¡¡¡IM003 - Ö¸¶¨µÄdriver²»ÄÜ×°Èë
Õâ¸ö´íÒ»°ã·¢ÉúÔÚÊý¾ÝÔ´½¨Á¢ºó£¬driver±»Òƶ¯»òɾ³ý¡£Èç¹ûRSFûÓа²×°»òÕÒ²»µ½Ò²Í¬
ÑùÊÇÕâ¸ö´í¡£
¡¡¡¡ORA-12154:TNS:could not resolve service name £¨·þÎñÃû²»ÄܽâÎö£©£º
¡¡¡¡tnsnames.oraÔÚORACLE_HOME\NETWORK\ADMINĿ¼ÖÐûÓз¢ÏÖ¡£ÔÚ tnsnames.oraÖÐ
µÄserver Id²»¶Ô£¬ÔÚPB5.xDBQûÓз¢ÏÖ£¬Ò²Í¬Ñù³öÕâ¸ö´í¡£
¡¡¡¡Îļþ´í - Cannot find ODBC.DLL £º
¡¡¡¡ ODBC.DLL ¶ªÊ§»ò²»ÔÚËÑË÷·¾¶ÖУ¨16룩¡£
Catalog tables could not be created and are not available for use£º
¡¡¡¡ÓÃOracle 8.0.03 ODBC driverÔÚÁ¬½ÓÆÚ¼ä³öÏÖÕâ¸öÐÅÏ¢£¬´ÓOracle ODBC driver
v7.x µ½ Oracle ODBC driver v8.0.03 ÐÐΪÒѾ±äÁË£¬±íµÄÊôÖ÷Ϊ'SYS'ºÍ 'SYSTEM'£¬
8.0.03°æͨ¹ýODBC SQLTables() µ÷Óò»ÄÜ·µ»ØÈκÎÊý¾Ý,Õâ¸ö´íÊÇOracle8.0.03°æµÄBu
g ,´íÎóºÅÊÇ559182£¬²¢ÔÚ8.0.3.0.2°æÒѾµÃµ½ÐÞÕý¡£¶ÔÓÚÕâ¸ö´íÎó£¬Äã¿ÉÒÔºöÂÔËü£¬
»òÔÚPBÖв»ÓÃÀ©Õ¹ÊôÐÔ¡£
--
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: ftcl.hit.edu.cn]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º10.146ºÁÃë