Oracle¿Í»§¶Ë°²×°ºóODBCÎÞ·¨Ê¹ÓÃ
°²×°11gµÄ06,´ò²¹¶¡Éýµ½07£¬´ÓODBCÀïÃæ¿´£¬ÓÐ
Oracle in OraOdac11g_home1 11.01.00.07
´Ó×¢²á±í¿´HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ÏÂÃæµÄDriverºÍSetup¶¼ÊÇÎҵݲװ·¾¶
"D:\\app\\Administrator\\product\\11.1.0\\client_1\\SQORA32.DLL"
½¨ODBCÊý¾ÝÔ´µÄʱºòÄÜ¿´µ½126µÄ´íÎó£º
The setup routines for the Oracle in instantclient11_1 ODBC driver could not be loaded due to system error code 126.
Ó¦ÓóÌÐòÁ¬½ÓÊý¾Ý¿âµÄʱºòÊÇ1114µÄ´íÎó£º
Error Cannot Load Resource File sqresus.dll
ERROR[IM003] Specified driver could not be loaded due to system error 1114 (Oracle in OraOdac11g_home1).
ÎÊÌâÊÇÎÒ3¸öÔÂÇ°¾ÍÊÇÓÃͬÑùµÄ°ü°²×°µÄ£¬µ±Ê±Ê²Ã´ÎÊÌⶼûÓС£Õâ´ÎÊÇÁ½Ì¨»úÆ÷ÈÃITµÄÈËÐÂ×°ÁËÁ½Ì¨Ó¢ÎĵÄXP+SP2¡£È»ºóÁ½Ì¨¶¼ÓÐÕâÑùµÄÎÊÌâ¡£ºóÀ´´ÓÍøÉÏÏÂÁËÒ»¸ö×îеÄODBCÇý¶¯£¬¿´°üÀïÃæµÄDLLÎļþµÄÈÕÆںͳߴ磬ºÍÎÒ»úÆ÷ÉϵĶ¼ÊÇÒ»ÑùµÄ¡£ºóÀ´»¹ÊÇ×°ÁËÒ»´Î£¬È»ºóODBC¶àÁËÒ»¸öÃûΪOracle in instantclient11_1µÄÏ°æ±¾Ò»Ñù»¹ÊÇ11.01.00.07£¬°²×°ºóÖØÆô£¬ÎÊÌâÕվɡ£
ÄÄλÓöµ½¹ýÀàËƵÄÎÊÌ⣿ÏÈлÁË¡£
´ó¼Ò°ï°ï濴һϰÉ
{{
Ïà¹ØÎÊ´ð£º
<?php
getenv("ORACLE_HOME");
$conn=ocilogon("test","test","test_db");
if($conn)
echo success;
&nb ......
±ÈÈçÎÒÓÐtestA¡¢testB¡¢testCÈý¸ö±í
ÎÒÏÖÔÚÐèҪдһ¸öÅú´¦Àí»òÕ߽ű¾¸ø±ðÈË ×÷ÓþÍÊÇÖ´ÐÐÕâ¶ÎÓï¾ä¿ÉÒÔÇå³ýÕâÈý¸ö±íÀïÃæµÄÊý¾Ý ¾ÍÊÇÒ»¸ö³õʼ»¯µÄÒâ˼
ÄÄλ¸ßÈË°ïÖúÏ°¡ Ò»¸öÊý¾Ý¿âС°×ÔÚ´ËÇó¾ÈÀ²
SQL code:
......
1.OracleÖÐÃèÊöµÄ¿Í»§¶ËÓ¦Óõ½µ×Ö¸µÄʲô?
2.OracleתÂëʱ,Èç¹û¿Í»§¶ËΪ×Ó¼¯(UASCII)·þÎñ¶ËΪ³¬¼¯(AL32UTF8).
ÄÇÑϸñµÄ½²ÊÇ×Ó¼¯×ª³¬¼¯, ¿ÉÒÔתµÄͨ.
²éѯµÄʱºò³¬¼¯×ª×Ó¼¯ÄDz»¾Í³öÎÊÌâÁËô?
Äĸö»Ø¸öÌ ......
ÔÚoracleÖÐÓÃjdbcÀ´Á¬½ÓÊý¾Ý¿â£¬ÎªÊ²Ã´ResultsetÀïÃæǶÌ×ResultSet,µ½Ñ»·µÄµÚ¶þ´Î¾Í±¨¿ÕÖ¸Õ룬ÄÄλ֪µÀÊÇÔõô»ØÊÂÂð£¿
´úÂ룺Java code:
while(prors.next()){
System.out.println(prors.getRow ......