Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÔõÑù½«oracleÖÐµÄ±íµ¼Èësql server

1¡¢ÔÚÄ¿µÄSQL ServerÊý¾Ý¿â·þÎñÆ÷ÉÏ°²×°ORACLE ClientÈí¼þ»òÕßORACLE ODBC Driver.
ͨ¹ýoracle¿Í»§¶Ë£¬ÔÚnetmanagerÖн¨Á¢“·þÎñ£¨TNS server£©”£¬²¢²âÊÔÁ¬½ÓÉÏoracleÊý¾Ý¿âÕý³£
2¡¢ÔÚsqlserverµÄDTS(µ¼ÈëºÍµ¼³öÊý¾Ý¹¤¾ß)½øÐÐ
£¨1£©Ñ¡ÔñÊý¾ÝÔ´£º
Êý¾ÝÔ´£ºoracle in oracle9i
Ñ¡Ôñ£ºÓû§/ϵͳDSN:
µã»÷н¨DSN£ºÑ¡ÔñÊý¾ÝÔ´ÀàÐÍ£ºÏµÍ³Êý¾ÝÔ´£¬
ÏÂÒ»²½£ºÑ¡ÔñÇý¶¯³ÌÐò£ºoracle in oracle9i,ÏÂÒ»²½£¬Íê³É £¬
½øÈëoracle odbc driver configrationÒ³Ãæ
ÔÙÊäÈ룺datasorce name:GZDS
TNS server name:gz(ͨ¹ýnetmanager¶¨ÒåºÃTNS server)
user:(oracleµÇ¼Óû§)
ÌîдºÃÒԺ󣬽øÐÐ"TEST Connection"
¿ÉÒÔÁ¬Í¨£¬Ôòµã»÷“ok”£¬DSN½¨Á¢Íê³É
Êý¾ÝÔ´Ñ¡ÔñÍê³É£¬µã»÷“ÏÂÒ»²½”½øÈë“Ñ¡ÔñÄ¿µÄ”
£¨2£©Ñ¡ÔñÄ¿µÄ
Ä¿µÄ£ºÓÃÓÚSQL ServerµÄMicrosoft OLE DBÌṩ³ÌÐò
·þÎñÆ÷£º192.168.0.63
Ñ¡Ôñ£ºÊ¹ÓÃsqlserverÉí·ÝµÇ¼
Óû§Ãû£ºsa ÃÜÂ룺pass
²¢Ë¢Ð£¬Ñ¡ÔñºÃÊý¾Ý¿â£ºtest(Ä¿µÄÊý¾Ý¿â£¬ÌáÇ°½¨Á¢ºÃµÄ)²¢µã»÷“ÏÂÒ»²½”
a.´ÓÊý¾ÝÔ´¸´ÖƱíºÍÊý¾Ý£¨ÏÂÒ»²½£ºÑ¡ÔñÔ´±í¼°ÊÓͼ£©
b.ÓÃÒ»Ìõ²éѯÓï¾äÖ¸¶¨Òª´«ÊäµÄÊý¾Ý£¨½øÐÐsql±à¼­£©
£¨Í¨¹ýÒÔÉÏÑ¡ÔñºÃÒª¸´ÖƵÄÊý¾Ý±í»òÕßÏà¹ØÊÓͼ£©
ÔÙµã»÷ÏÂÒ»²½“±£´æ¡¢µ÷¶ÈºÍ¸´ÖÆ°ü”
£¨3£©“±£´æ¡¢µ÷¶ÈºÍ¸´ÖÆ°ü”
ʱ¼ä£ºÁ¢¼´ÔËÐÐ
ÔÙµã»÷ÏÂÒ»²½£º½øÐУº“ÕýÔÚÍê³ÉDTSµ¼Èëµ¼³ö”Ïòµ¼
£¨4£©Íê³É£º
µã»÷£º“Íê³É”°´Å¥£¬ÏµÍ³½øÈëÊý¾Ý¸´ÖÆ“ÕýÔÚÖ´Ðаü”µÄÒ³Ã棬
¿ÉÒÔ¿´µ½Êý¾ÝÕýÔÚ¸´ÔӵĽø¶ÈÌõ
×¢Ò⣺ÔÚORACLE±íºÍSQL Server±íÖ®¼ä'ת»»'ÄDz½ºÜÖØÒª£¬
¿ÉÒԸıäĬÈϵÄ×Ö¶ÎÊý¾ÝÀàÐÍ£¬Èçimage->text,decimal->int


Ïà¹ØÎĵµ£º

OracleÊý¾Ý¿âµÄÆÕͨǨÒÆ·½·¨

ÔÚÏàͬ²Ù×÷ϵͳ»·¾³Ï£¬Ïàͬ°æ±¾OracleÊý¾Ý¿âµÄǨÒƱȽϼòµ¥¡£
 
´óÖ²½Ö裺
1¡¢È·¶¨Ô´»úµÄ²Ù×÷ϵͳÀàÐͺͰ汾£¬Ô´»úÖ÷»úÃû£»Oracle°æ±¾£¬°²×°Ä¿Â¼£¬SID¡£
±¾ÀýÖУ¬Ô´»úΪ£º  Win2k Adv£¬ ywxt£¬Oracle v8.17,  d:\oracle, orcl
Ä¿±ê»úΪ£ºWin2003£¬ywxt£¬Oracle v8.17,  d:\oracle, orcl
  ......

¿ªÊ¼Ê¹ÓÃoracle ³ÂţѧIT

1£¬oracle tools£ºOUI¡¢DBCA¡¢OEM¡¢SQL*PLUS¡¢NETCA¡¢µÚÈý·½¹¤¾ß£¨toad¡¢PL\SQL developer£©
2£¬¿ÉʹÓÃresponsefile¿ìËÙȥͼÐΰ²×°oracle£¬ÔÚÔ´°²×°Îļþ/responseÀïÃæÓÐһЩģ°åÅäÖÃrpsÎļþ
3£¬Ô¤ÖÃÓû§ÊÇsysÓû§ÓësystemÓû§£ºsysÊÇoracleÊý¾Ý¿â
ÖÐȨÏÞ×î¸ßµÄÕʺţ¬¾ßÓÐcreate
databaseµÄȨÏÞ£¬¶øsystemûÓÐÕâ¸öȨÏÞ£ ......

oracle Êý¾Ý¿â±¸·Ý

È«Êý¾Ý¿â±¸·Ý½¨ÒéÓÃoracle×Ô´øµÄ expÃüÁî¡£
µ¼Ä³ÕűíµÄ»°£¬»òÕß±¸·Ýij¸öÓû§µÄÐÅÏ¢£¬¿ÉÒÔµ½
Tool-¡·export table µ¼±í
Tool-¡·export user object µ¼Óû§µÄÊý¾Ý¡£
-----------------------------------------------------------------------------------------
ÔÚoracleÖÐ,Ö´ÐÐsqlÎļþ,¿ÉÒÔдһ¸öÅú´¦ÀíÎļþ
sqlplus& ......

´óÐÍÊý¾Ý¿âÓÅ»¯Éè¼Ædz̸(ORACLE) £¨Ò»£©

  
   ¶ÔÓÚORACLEÊý¾Ý¿âµÄÊý¾Ý´æÈ¡£¬Ö÷ÒªÓÐËĸö²»Í¬µÄµ÷Õû¼¶±ð£¬µÚÒ»¼¶µ÷ÕûÊDzÙ×÷ϵͳ¼¶°üÀ¨Ó²¼þƽ̨,µÚ¶þ¼¶µ÷ÕûÊÇORACLE RDBMS¼¶µÄµ÷Õû,µÚÈý¼¶ÊÇÊý¾Ý¿âÉè¼Æ¼¶µÄµ÷Õû,×îºóÒ»¸öµ÷Õû¼¶ÊÇSQL¼¶¡£Í¨³£ÒÀ´ËËļ¶µ÷Õû¼¶±ð¶ÔÊý¾Ý¿â½øÐе÷Õû¡¢ÓÅ»¯£¬Êý¾Ý¿âµÄÕûÌåÐÔÄÜ»áµÃµ½ºÜ´óµÄ¸ÄÉÆ¡£ÏÂÃæ´Ó¼¸¸ö²»Í¬·½Ã ......

oracleµÄ´æ´¢¹ý³ÌºÍÓαê


OracleÖеĴ洢¹ý³ÌºÍÓαê:
select myFunc(²ÎÊý1,²ÎÊý2..) to dual; --¿ÉÒÔÖ´ÐÐһЩҵÎñÂß¼­
Ò»:OracleÖеĺ¯ÊýÓë´æ´¢¹ý³ÌµÄÇø±ð:
A:º¯Êý±ØÐëÓзµ»ØÖµ,¶ø¹ý³ÌûÓÐ.
B:º¯Êý¿ÉÒÔµ¥¶ÀÖ´ÐÐ.¶ø¹ý³Ì±ØÐëͨ¹ýexecuteÖ´ÐÐ.
C:º¯Êý¿ÉÒÔǶÈëµ½SQLÓï¾äÖÐÖ´ÐÐ.¶ø¹ý³Ì²»ÐÐ.
ÆäʵÎÒÃÇ¿ÉÒÔ½«±È½Ï¸´ÔӵIJéѯд³Éº¯Êý.È»ºóµ½´æ´¢¹ý³Ì ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ