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

ORACLE¸´Ï°(¶þ)

Èý¡¢     PL/SQL³ÌÐòµ¥Ôª
1¡¢ÎÞÂÛÊǵ¥¶ÀµÄ¹ý³Ì/º¯Êý£¬»¹ÊÇ°üÖеĹý³Ì/º¯Êý£¬¶¼Í³³ÆΪ×Ó³ÌÐò¡£
2¡¢¹ý³Ì
 
1)       Òì³£´¦Àí²¿·ÖÊÇ¿ÉÑ¡µÄ¡£
2)       ¹ý³ÌÃûÓ¦¸ÃÓö¯´Ê£¬ÒòΪ¹ý³Ìͨ³£ÊÇÖ´ÐÐijÖÖ¶¯×÷¡£¹ý³Ì²¢²»Ò»¶¨¾ßÓвÎÊý¡£µ±´´½¨µÄ¹ý³ÌûÓвÎÊý£¬¾Í²»ÐèҪʹÓÃÔ²À¨ºÅ¡£µ±µ÷Óùý³Ìʱ£¬¿ÕÀ¨ºÅÊÇ¿ÉÑ¡µÄ¡£È磺PROCEDURE insert_temp IS
BEGIN
INSERT INTO temp(n) VALUES(0);
END insert_temp;
           Ôòµ÷ÓÃʱ£¬¿ÉÒÔ²ÉÓÃinsert_temp;»òÕßinsert_temp();
3)       ¾¡¹Ü½«¹ý³ÌÃû×·¼Óµ½END×Ó¾äºóÊÇ¿ÉÑ¡µÄ£¬µ«Ç¿ÁÒÍƼöÕâô×ö£»³£¼ûµÄ¹ý³ÌÑùʽÊÇIS¡¢BEGIN¡¢EXCEPTIONºÍEND¶ÔÆë¡£ÕâЩ¹Ø¼ü×Ö×÷ÓÃÓòÄÚµÄÈ«²¿´úÂ붼Ҫ½øÐÐËõ½ø¡£ÕâÑùÓÐÖúÓÚ³ÌÐòµÄ¿É¶ÁÐÔ¡£
 
3¡¢º¯Êý
 
1)       º¯Êý²»ÊǶ¯×÷Õߣ¬¶øÊÇ״̬µÄ¼ÆËãÖµ£¬ËùÒÔ¸ÃÓÃÃû´Ê¶Ôº¯Êý½øÐÐÃüÃû
2)       ²ÎÊýÊÇ¿ÉÑ¡µÄ£¬µ«ÊÇRETURNÓï¾äÊDZØÐëµÄ¡£Èç¹ûº¯Êý·µ»ØÖµÀàÐÍÓëij±äÁ¿ÀàÐÍÏàͬ£¬Ôò¸Ã±äÁ¿Ó뺯Êýµ÷ÓÃÖ®¼äÊÇ¿ÉÒÔ»¥»»µÄ¡£
4¡¢°ü
1)       ×î»ù±¾µÄ°ü¹æ·¶Óï·¨ÊÇ£º
CREATE PACKAGE package_name IS
Type definition for records, index_by tables,varrys, nested tables
Constants
Exceptions
Global variable declarations
PROCEDURE procedure_name_1(parameters & types);
PROCEDURE procedure_name_2(parameters & types);
FUNCTION function_name_1(parameters &types) RETURN type;
           END package_name;
2)       °ü¹æ·¶ÖпÉÒÔÉùÃ÷Êý¾ÝÀàÐÍ£¨È磬¼Ç¼ÀàÐÍ£©¡¢Êý¾ÝÉùÃ÷£¨È磬¼Ç¼£©ºÍÒì³£¡£ÔÚ°ü¹æ·¶ÖÐÉùÃ÷µÄËùÓÐÊý¾Ý¶ÔÏó¶¼ÊÇÈ«¾ÖµÄ¡£ËùÒÔÔÚ°ü¹æ·¶ÖÐÉùÃ÷µÄ±äÁ¿Ó¦µ±Ö»ÊÇÄÇЩ×÷ÓÃÓòÊÇÈ«¾ÖµÄ±äÁ¿¡£°üÌåÖеÄPROCEDUREÓï¾ä±ØÐëÓëÏàÓ¦°ü¹æ·¶ÖеÄPROCEDUREÓï¾äÏàÆ¥Å䣬°üÀ¨×Ó³ÌÐòÃû³Æ¡¢²ÎÊýÃû³Æ¡¢²ÎÊýģʽºÍ²ÎÊýÀàÐ͵ȡ£Í¬ÑùÊÊÓÃÓÚFUNCTION×Ó³ÌÐò¡£
5¡¢²ÎÊýÓëģʽ
IN(ĬÈÏ), IN OUT, OUT
IN±íÃ÷×Ó³ÌÐòÖ»Äܽ«¸Ã²ÎÊý×÷Ϊһ¸ö±äÁ¿À´Ê¹Óã¬ËüÊÇÖ»¶Á
IN OUT²ÎÊýÖ»ÄÜÊDZäÁ¿ÀàÐÍ£¬²»ÔÊÐíΪÎÄ×Ö»ò³


Ïà¹ØÎĵµ£º

oracleËø²éѯ³£Óýű¾

with
  lockinfo as (
   select distinct decode(sql_hash_value, 0, prev_hash_value, sql_hash_value) sql_hash_value, decode  (sql_hash_value, 0, prev_sql_addr, sql_address) sql_address, s.sid, l.id1 object_id, l.block
      from v$lock l, v$session s
&n ......

oracleÊý¾Ý¿âÈçºÎÇåÀíÁÙʱ±í¿Õ¼ä

     Õý³£À´Ëµ£¬ÔÚÍê³ÉSelectÓï¾ä¡¢create indexµÈһЩʹÓÃTEMP±í¿Õ¼äµÄÅÅÐò²Ù×÷ºó£¬OracleÊÇ»á×Ô¶¯ÊͷŵôÁÙʱ¶ÎaµÄ¡£µ«ÓÐЩÓкîÎÒÃÇÔò»áÓöµ½ÁÙʱ¶ÎûÓб»ÊÍ·Å£¬TEMP±í¿Õ¼ä¼¸ºõÂúµÄ×´¿ö£¬ÉõÖÁÊÇÎÒÃÇÖØÆôÁËÊý¾Ý¿âÈÔûÓнâ¾öÎÊÌâ¡£Õâ¸öÎÊÌâÔÚÂÛ̳ÖÐÒ²³£±»ÍøÓÑÎʵ½£¬ÏÂÃæÎÒ×ܽáһϣ¬¸ø³ö¼¸ÖÖ´¦Àí·½·¨¡£ ......

ORACLE EXP/IMP ²ÎÊýÏê½â

ORACLE EXP/IMP ²ÎÊýÏê½â2010-03-22 17:53OracleÊý¾Ý¿âʹÓÃIMP/EXP¹¤¾ß½øÐÐÊý¾Ýµ¼ÈëÓëµ¼³ö½éÉÜ£º
1.ʹÓÃÃüÁîÐУº
Êý¾Ýµ¼³ö£º
1.½«Êý¾Ý¿âTESTÍêÈ«µ¼³ö,Óû§ÃûsystemÃÜÂëmanagerµ¼³öµ½D:\Test_bak.dmpÖÐ
exp system/manager@ora10 file=d:\Test_bak.dmp full=y
ora10±íʾÊý¾Ý¿âÃû
2.½«Êý¾Ý¿âÖÐsystemÓû§ÓësysÓû§µÄ±íµ ......

Oracle UndoµÄѧϰ

Oracle UndoµÄѧϰ
 »Ø¹ö¶Î
¿É
ÒÔ˵ÊÇÓÃÀ´±£³ÖÊý¾Ý±ä»¯Ç°Ó³Ïó¶øÌṩһÖ¶ÁºÍ±£ÕÏÊÂÎñÍêÕûÐÔµÄÒ»¶Î´ÅÅÌ´æ´¢ÇøÓò¡£µ±Ò»¸öÊÂÎñ¿ªÊ¼µÄʱºò£¬»áÊ×ÏȰѱ仯ǰµÄÊý¾ÝºÍ±ä»¯ºóµÄÊý¾ÝÏÈдÈëÈÕÖ¾»º
³åÇø£¬È»ºó°Ñ±ä»¯Ç°µÄÊý¾ÝдÈë»Ø¹ö¶Î£¬×îºó²ÅÔÚÊý¾Ý»º³åÇøÖÐÐ޸ģ¨ÈÕÖ¾»º³åÇøÄÚÈÝÔÚÂú×ãÒ»¶¨µÄÌõ¼þºó¿ÉÄܱ»Ð´Èë´ÅÅÌ£¬µ«ÔÚÊ ......

ORACLEÊý¾Ý×Öµä¼ò½é


ORACLEÖеÄÊý¾Ý×ÖµäÊÇʲô£¿ÓÐʲôÌصãºÍ¹æÂÉ£¿
  Êý¾Ý×Öµä¼Ç¼ÁËÊý¾Ý¿âµÄϵͳÐÅÏ¢£¬ËüÊÇÖ»¶Á±íºÍϵͳÊÓͼµÄ¼¯ºÏ¡£
  Êý¾Ý×ÖµäµÄËùÓÐÕßÊÇSYSÓû§£¬Êý¾Ý×ֵ䶼±»´æ·ÅÔÚSYSTEM±í¿Õ¼ä£¬SYSÓû§µÄ·½°¸Ï¡£
  Êý¾Ý×ÖµäÖ»ÔÊÐíSELECT²Ù×÷£¬Æäά»¤ºÍÐÞ¸ÄÈÎÎñÓÉÊý¾Ý¿â×Ô¶¯Íê³É¡£
µ±Óû§Ö´ÐÐCREATE¡¢ALTER¡¢DROP ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ