(ת)oracleºÍdb2Çø±ð
ÏîÄ¿ÖÐÒ»Ö±¶¼ÊÇÓÃdb2£¬ËùÒÔ¶Ôdb2Ò²ËãÓиöÒ»Öª°ë½â£¬¶ø¶ÔoracleÔòÊÇÖªÖ®ÉõÉÙ£¬Ò»Ö±¿àÓÚûÓлú»áÀ´Á·ÊÖ¡£×î½üÏîÄ¿×éÔÚ×ödb2µ½oracleµÄǨÒÆ£¬ÖÕÓÚ´þ×Å»ú»áÁË¡£½ñÌì¼òµ¥ËµÐ©ÔÚʵ¼ÊÏîÄ¿Óöµ½µÃһЩÎÊÌ⣬ÒÔºóÔÙÂýÂý²¹³ä¡£Í¬Ê±Ò²Ï£ÍûÈÊÈË־ʿ¶à¶àÖ¸µã¡£
ÓÉÓÚÕâÁ½Ì춼ÊÇ×ö´æ´¢¹ý³ÌµÄǨÒÆ£¬ËùÒÔÕâÀïÖ÷Òª½²µ½µÄÊÇdb2ºÍoracleÁ½Õß´æ´¢¹ý³ÌÒÔ¼°Ò»Ð©ÏµÍ³º¯ÊýµÄÇø±ð¡£
1¡¢´´½¨PROCEDUREµÄ²ÎÊýµÄÇø±ð
1£©²ÎÊýÀàÐͺͲÎÊýÃû³ÆµÄλÖò»Í¬
db2£º CREATE PROCEDURE PRO1 (IN OrgID int)
oracle£ºCREATE PROCEDURE PRO1 (OrgID IN int)
2£©Í¬Ê±×÷ΪÊäÈëÊä³ö²ÎÊýµÄд·¨²»Í¬
db2£º CREATE PROCEDURE PRO1 (INOUT OrgID int) INOUTÁ¬×Åд
oracle£ºCREATE PROCEDURE PRO1 (OrgID IN OUT int) IN OUTÖмä¿Õ¸ñ¸ô¿ª£¬¶øÇÒ±ØÐëINÔÚOUT֮ǰ
3£©Ã»ÓÐÊäÈë»òÊä³ö²ÎÊýʱ
db2£º CREATE PROCEDURE PRO1 ()
oracle£ºCREATE PROCEDURE PRO1 ²»ÄÜÓпյÄÀ¨ºÅ
2¡¢±äÁ¿¶¨ÒåºÍBEGIN ENDÌåµÄλÖò»Í¬
db2ÖбäÁ¿¶¨ÒåÔÚBEGIN ENDÌåÄÚ£¬²¢ÇÒÿ¸ö±äÁ¿¶¼ÒªÓÃDECLAREÉùÃ÷£»´æ´¢¹ý³Ì½áÊøʱ£¬ENDºó¸úP1£¬²¢ÇÒ²»ÐèÒª·ÖºÅ
oracleÖбäÁ¿¶¨Òå±ØÐëÔÚBEGIN ENDÌåÍ⣬±äÁ¿¶¼²»ÐèÒªÓÃDECLAREÉùÃ÷(ÓÐÖÖ˵·¨ÊÇ£¬µÚÒ»¸ö±äÁ¿ÐèÒªDECLARE£¬ÆäËû±äÁ¿²»ÐèÒª)£»´æ´¢¹ý³Ì½áÊøÊ
Ïà¹ØÎĵµ£º
ѧϰOracle DBAÒ²°ë¸ö¶àѧÆÚÁË£¬½ñÌìÃÍÈ»²Å·¢ÏÖ£¬ÔÀ´ÎÒµÄÊ黹ÊǺÜеģ¬ÉϿβÙ×÷ʱºòÒ²Ö»ÊÇÖªµÀ´ó¸ÅÔõô×ö£¬µ«ÊÇÒªÕæµÄÈ«²¿×Ô¼º×ö£¬¶ø²»È¥·Ê黹ÊÇÓÐÒ»¶¨µÄÄѶȵģ¬ËùÒÔÄØ£¬½ñÌ쿪ʼ½«DBA´ÓÍ·¸´Ï°Ò»±é£¬Í¬Ê±ÔÙ²Ù×÷Ò»±é¡£
µÚÒ»Õ£¬Ñ§µÄÊÇOracleµÄÌåϵ½á¹¹£ ......
sys/change_on_install
system/manager
sysman/oem_temp
scott/tiger
aqadm /aqadm
Dbsnmp/dbsnmp
Óû§Ãû ¿ÚÁî µÇ¼Éí·Ý¼°ËµÃ÷
sys/change_on_install SYSDBA»òSYSOPER£¬µ«²»ÄÜÒÔNORMALµÇ¼£¬¿É×÷ΪĬÈϵÄϵͳ¹ÜÀíÔ±¡£
system/Manager SYSDBA»òNORMAL£¬µ«²»ÄÜÒÔSYSOPERµÇ¼£¬¿É×÷ΪĬÈϵÄϵͳ¹ÜÀíÔ±¡£
scott/Tig ......
--ORACLE ÐÐתÁÐ ²âÊÔͨ¹ý£¨9i£©
/***************************************************************************************************
ÒÔѧÉú³É¼¨ÎªÀý×Ó£¬±È½ÏÐÎÏóÒ׶®
***********************************************************************************************************/
--1¡¢ÐÐתÁÐ
......
(1)PfileÎļþ
Pfile£¨Parameter File£©ÎļþÊÇ»ùÓÚÎı¾¸ñʽµÄ²ÎÊýÎļþ£¬º¬ÓÐÊý¾Ý¿âµÄÅäÖòÎÊý¡£
Oracle 9iÔÚ°²×°Ê±ÎªÃ¿¸öÊý¾Ý¿â½¨Á¢ÁËÒ»¸öPfile£¬Ä¬ÈϵÄÃû³ÆΪ“init+Àý³ÌÃû.ora”£¬ÕâÊÇÒ»¸öÎı¾Îļþ£¬¿ÉÒÔÓÃÈκÎÎı¾±à¼¹¤¾ß´ò¿ª¡£
ϱíΪÊý¾Ý¿âµÄ³õʼ»¯²Î ......