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

.net³ÌÐòÔ¶³ÌÁ¬½ÓOracleÊý¾Ý¿â

.net Ô¶³ÌÁ¬½ÓOracleÊý¾Ý¿â¿´ÆðÀ´Í¦¼òµ¥µÄ£¬µ«Êµ¼Ê×öÆðÀ´»¹ÊÇÓöµ½²»ÉÙÎÊÌâ¡£°ÑÎÒ½ñÌìÕÛÌÚÕâ¸ö¶«Î÷µÄ¾­Ñé¸ø´ó¼Ò¹²Ïí°É¡£
¡¡¡¡·ÃÎÊ oracle Êý¾Ý¿âµÄ·½Ê½ºÜ¶à£¬ÎÒÓõÄÊÇ OleDbConnection£¬Õâ¸öûʲôºÃ˵µÄ£¬´úÂëÈçÏ£º
¡¡¡¡1. Á¬½Ó´úÂë
   ¡¡_OleDbConnection¡¡=¡¡new¡¡OleDbConnection(connectionString);
¡¡¡¡_OleDbConnection.Open();
¡¡¡¡2.Á¬½Ó×Ö·û´®
¡¡¡¡Ô¶³ÌÁ¬½ÓµÄÁ¬½Ó×Ö·û´®¿ÉÒÔÕâÑùд
¡¡provider=MSDAORA;host=192.168.1.1;data source=MyTest;user id=system;password=xxx
¡¡¡¡provider = MSDAORA; Ö¸Ã÷oledb µÄÌṩÕßÊÇoracleÊý¾Ý¿â
¡¡¡¡host ÊÇÔ¶³Ì oracle Êý¾Ý¿âËùÔÚ·þÎñÆ÷µÄIPµØÖ·£¬Èç¹û¶Ë¿Ú²»ÊÇĬÈ쵀 1521£¬»¹Òª¼ÓÉÏÒ»¸ö Port=xxxx;
¡¡¡¡data source ÊÇÒª·ÃÎ浀 oracle Êý¾Ý¿âµÄÃû×Ö
¡¡¡¡user id ºÍ password ¾Í²»ËµÁË¡£
¡¡¡¡ÒªÄܹ»³É¹¦ÔËÐÐÉÏÃæ´úÂ룬ÎÒÃDZØÐëÔÚ´úÂëÔËÐеĻúÆ÷ÉÏ°²×° oracle µÄ¿Í»§¶Ë£¬·ñÔò»á±¨
¡¡¡¡The Oracle(tm) client and networking components were not found Õâ¸ö´íÎó¡£
¡¡¡¡3. Ö÷»ú·À»ðǽÉèÖÃ
¡¡¡¡ÎÒµÄ Oracle °²×°ÔÚ Windows 2003 server ÉÏ£¬ÎªÁË°²È«Æð¼û£¬±ØÐëÉèÖ÷À»ðǽ
¡¡¡¡ÎÒÔÚ Windows 2003 Ͻ« 1521 ¶Ë¿Ú¿ª·Å£¬·¢ÏÖÎÞ·¨Á¬½ÓÊý¾Ý¿â£¬×¥°ü¿´ÁËһϣ¬oracle ¿Í»§¶ËÔÚÁ¬½ÓÁË 1521 ºóÓÖÈ¥Á¬½ÓÁËÒ»¸öËæ»úµÄ¶Ë¿Ú 1197
¡¡¡¡²éÁËÒ»ÏÂ×ÊÁÏ£¬oracle µÄ network listener Ö»ÆðÒ»¸öÖнé×÷Ó㬵±¿Í»§Á¬½ÓËüʱ£¬Ëü¸ù¾ÝÅäÖÃÑ°ÕÒµ½ÏàÓ¦µÄÊý¾Ý¿âʵÀý½ø³Ì£¬È»ºó·ÖÅäÒ»¸öеÄÊý¾Ý¿âÁ¬½Ó£¬Õâ¸öÁ¬½Ó¶Ë¿ÚÓÉnetwork listener´«µÝ¸ø¿Í»§»ú£¬´Ëºó¿Í»§»ú¾Í²»ÔÙºÍnetwork listener´ò½»µÀÁË£¬¶øÊÇºÍ oracle.exe Õâ¸ö½ø³Ì´ò½»µÀÁË¡£Õâ¸öеÄÁ¬½Ó¶Ë¿ÚÊDz»¿ÉÔ¤ÖªµÄ£¬Òò¶ø»á±»·À»ðǽ×èÖ¹¡£
¡¡¡¡Òª½â¾öÕâ¸öÎÊÌ⣬ÍøÉϲ鵽µÄ°ì·¨ÊDzÉÓù²ÏíÌ×½Ó×Ö£¬Õâ¸ö·½·¨Ó¦¸ÃÊÇÒ»¸ö±È½ÏͨÓõİ취£¬ÈçºÎ×öÏê¼û
¡¡¡¡ÔÚWindows server 2003ϵͳ·À»ðǽÉÏ¿ª·ÅOracle·þÎñ¶Ë¿Ú Á¬½Ó1521 TNS³¬Ê±
¡¡¡¡²»¹ýÎÒ͵Á˸öÀÁ£¬ÒòΪÎÒÖ»Óà windows µÄ·À»ðǽ£¬windows ·À»ðǽ¿ÉÒÔ¶Ôij¸ö½ø³Ì¿ª·ÅËùÓж˿ڡ£ËùÒÔÖ»Òª°´ÏÂÃæͼʾµÄ·½Ê½ÉèÖÃÒ»ÏÂwindows ·À»ðǽ£¬¾Í¿ÉÒÔ·ÃÎÊÁË¡£


Ïà¹ØÎĵµ£º

Oracle Ŀ¼·þÎñ

Create directoryÈÃÎÒÃÇ¿ÉÒÔÔÚOracleÊý¾Ý¿âÖÐÁé»îµÄ¶ÔÎļþ½øÐжÁд²Ù×÷£¬¼«´óµÄÌá¸ßÁËOracleµÄÒ×ÓÃÐԺͿÉÀ©Õ¹ÐÔ¡£
ÆäÓ﷨Ϊ:
CREATE [OR REPLACE] DIRECTORY directory
AS 'pathname
';
±¾°¸Àý¾ßÌå´´½¨ÈçÏÂ:
create or replace directory exp_dir as '/tmp';
Ŀ¼´´½¨ÒԺ󣬾ͿÉÒ԰ѶÁдȨÏÞÊÚÓèÌض¨Óà ......

oracle µÄÁ½¸öÌæ»»º¯Êý REPLACE TRANSLATE


replace¾ÍÊÇÒ»°ãÒâÒåÉϵÄ×Ö·û´®Ìæ»»£¬translateÖ»ÊÇÒ»¸ö×Ö·ûÌæ»»¶ÔÓ¦µÄÒ»¸ö×Ö·û£¬ÏÂÃæÓÐÊÖ²á˵Ã÷£¬»¹ÓÐÀý×Ó O(∩_∩)O¹þ¹þ~
REPLACE
Syntax
Purpose
REPLACE returns char with every occurrence of search_string replaced with replacement_string. If replacement_string is omitted or null, then all occu ......

oracle Ó¦ÓóÌÐòÐÔÄÜ·ÖÎö

²é¿´sessionµÈ´ýʼþ£º
        select sid,event from v$session_wait where event not like 'rdbms%' and event not like 'SQL*Net message%';
°´pid²é¿´ÕýÔÚÖ´ÐеijÌÐò£º
        select sid,program from v$session b where paddr in (selec ......

OracleÈÏÖ¤½éÉÜ

ORACLEÅàѵ(OCA)ÈÏÖ¤½éÉÜ 
Oracle10g Certified Associate (OCA) Oracle ÈÏ֤רԱ¡£
¿¼ÊԳɼ¨Í¨¹ýÄÜ»ñµÃOracle¹«Ë¾ÎªÄú°ä·¢µÄÈ«ÇòÈÏÖ¤µÄÓ¢ÎÄOCAÖ¤Êé¡£OCAÓÉOracle¹«Ë¾³öÌâ¡£
¸ÃÖ¤Êé¿É×÷Ϊ¸÷ÆóÊÂÒµµ¥Î»Êý¾Ý¿â¹ÜÀíÈËÔ±ÉϸڵÄÒÀ¾Ý¡£
Ä¿Ç°ÒѳÉΪ¸÷IT¹«Ë¾¼°Ïà¹ØÆóÒµÕùÏྺƸµÄÊý¾Ý¿â¹ÜÀíά»¤È˲ţ¬ÊÇÊý¾Ý¿âά»¤¹ÜÀíÈËÔ ......

Oracleɾ³ýÓû§±íµÄʵ¼Ê²Ù×÷Ó¦ÓÃ

ÒÔϵÄÎÄÕÂÖ÷Òª½²ÊöµÄÊÇOracleɾ³ýÓû§±íµÄʵ¼Ê²Ù×÷·½°¸£¬±¾ÎÄÖ÷ÒªÊÇÒÔÏà¹Øʵ¼ÊÓ¦ÓôúÂëµÄ·½Ê½À´Òý³öÆäʵ¼ÊµÄ²Ù×÷²½Ö裬ÒÔϾÍÊÇÎÄÕµľßÌåÄÚÈÝÃèÊö£¬ÍûÄãÔÚä¯ÀÀÖ®ºó»áÓÐËùÊÕ»ñ¡£
1.
select 'Drop table '||table_name||';' from all_tables where owner='Ҫɾ³ýµÄÓû§Ãû£¨×¢ÒâÒª´óд£©';

2.Oracleɾ³ýÓû§±í ÒÔÓ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ