oracle11g²éѯmysqlÊý¾Ý¿â - Oracle / ¿ª·¢
»·¾³£º
windows 2003 sp2¡¢oracle11g(32λ)¡¢mysql-5.1.41-winx64.msi£¨64룩
oracleºÍmysql¶¼ÊÇͬһ̨·þÎñÆ÷
ÐèÇ󣺽¨Á¢oracleÁ¬½Ó½øÐвéѯmysqlÊý¾Ý¿âÀïÃæµÄÊý¾Ý.
²Î¿¼×ÊÁÏ:http://blog.csdn.net/raise4u/archive/2010/04/13/5480497.aspx
·½±ãµÄ»°Çë¼ÓÎÒµÄQQ,·½±ãÖ±½Ó·¢ËÍ´íÎóÌáʾͼƬ,ÎÒµÄQQ:100992995
Çë¸ßÊÖÖ¸µã.
Ä¿Ç°ÅäÖãº
1¡¢ÔÚ·þÎñÆ÷ÉϽ¨Á¢ÁËmysql µÄ ODBC Êý¾ÝÔ´£¬ Óû§DSNºÍϵͳDSN¶¼½¨Á¢ÁËÃû×ÖΪmysqltestµÄÊý¾ÝÔ´¡£
2¡¢½øÈëD:\Server\oracle\product\11.1.0\db_1\tg4msql£¬½¨Á¢ÁËinitnetlearn.oraÎļþ£¬ÎļþÄÚÈÝÈçÏ£º
# This is a sample agent init file that contains the HS parameters that are
# needed for the Transparent Gateway for SQL Server
#
# HS init parameters
#
#¹Ø¼üµãŶ£¡
HS_FDS_CONNECT_INFO="SERVER=192.168.1.202;DATABASE=netlearn"
#ORACLEÎĵµÖÐÎÞÕâ¸ö¹Ø¼üµãŶ£¬²»ÓÃÓ¦¸ÃÒ²¿ÉÒԵģ¡
HS_DB_NAME=netlearn
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
3¡¢ÐÞ¸Ä
D:\Server\oracle\product\11.1.0\db_1\NETWORK\ADMINϵÄ###listener.oraÎļþ£º
ºóÃæÌí¼ÓÁË£º
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SERVICE_NAME = PLSExtProc)
(ORACLE_HOME = D:\Server\oracle\product\11.1.0\db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(SERVICE_NAME = mysqltest)
(ORACLE_HOME =
Ïà¹ØÎÊ´ð£º
´ó¼ÒºÃ,ÎÒÏÖÔÚ°Ñoracle·þÎñÆ÷ÉÏÃæµÄÔʼÎļþ,ÏÂÔص½±¾»úÁË.ÎÒÏëÔÚ±¾»ú·ÃÎÊÊý¾Ý¿âÔõôÉèÖð¡.ÊDz»ÊÇÀàËÆ¿ÉÒÔ½¨Á¢Ò»¸öʲôÐéÄâ·þÎñÆ÷À´ÊµÏÖ.Çë´ó¼Ò³ö³öÖ÷Òâ
ÒýÓÃ
´ó¼ÒºÃ,ÎÒÏÖÔÚ°Ñoracle·þÎñÆ÷ÉÏÃæ ......
ÓÃPL/SQL µÇ½ʱµ¯³ö±¨´í´°¿Ú£¬´íÎóÈçÏ£¡
ORA-01034:ORACLE not available
ORA-27101:shared memory realm does not exist
ÇëÎÊ£¬ÓÐûÓÐÈËÓöµ½ÕâÖÖÇé¿ö£¬Ôõô½â¾ö£¿Ð»Ð»£¡
1. Oracle sid ÕýÈ ......
String sqlCount="select count(*) from usertable where username='"+
userName+"'";Õâ¾ä»° ʲôÒâ˼°¡£¡
Õâ¾ä»°Êä³ö³öÀ´¾ÍÊÇ
select count(*) from usertable where username='ÄãµÄ±äÁ¿ ......
ллÌÆÈËÀÏ´óµÄÖ¸µã£¬Ð»Ð»¸÷λ¸ßÊÖµÄÖ¸µã£¡
°²×°10g Enterprise¡£ÉÏÍøÏÂÁËMLDNµÄOracleÊÓƵ£¬¸ú×ÅÊÓƵÉϵÄÅäÖÃ×ߣ¬°²×°³É¹¦ÁË£¬µ«ÊÇûÍêÕûµØÅäÖá£
µã»÷½øÈ룺Database Configuration Assistant
1. ´´½¨Êý¾Ý¿â£»
......
1.ÏÖÔÚϵͳÊÇ64λµÄserver2003£¨web·þÎñÆ÷IIS6.0£©×°µÄÊÇ10gµÄoracle¿Í»§¶Ë¡£
2.Êý¾Ý¿â·þÎñÆ÷ͬÑùÊÇ32λµÄserver2003µÄoracle10g¡£
3.web·þÎñÆ÷ÉÏÓÃsqlplus·ÃÎÊÊý¾Ý¿â-Õý³££»
vs2008ÄÚ²¿½¨Á¢Êý¾ÝÔ´£¬·ÃÎÊ ......