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

OracleÌåϵ½á¹¹£ºÄÚ´æ½á¹¹ºÍ½ø³Ì½á¹¹

OracleÌåϵ½á¹¹£ºÄÚ´æ½á¹¹ºÍ½ø³Ì½á¹¹
2009-11-24 21:48
¡¡£¨Ò»£©ÄÚ´æ½á¹¹ºÍ½ø³Ì½á¹¹ OracleÊý¾Ý¿âµÄ×ÜÌå½á¹¹ÈçÏÂͼ£º
1£ºOracleʵÀý£¨Instance£©        
   ÔÚÒ»¸ö·þÎñÆ÷ÖУ¬Ã¿Ò»¸öÔËÐеÄOracleÊý¾Ý¿â¶¼ÓëÒ»¸öÊý¾Ý¿âʵÀýÏàÁªÏµ£¬ÊµÀýÊÇÎÒÃÇ
·ÃÎÊÊý¾Ý¿âµÄÊֶΡ£
   ʵÀýÔÚ²Ù×÷ϵͳÖÐÓÃORACLE_SIDÀ´±êʶ£¬ÔÚOracleÖÐÓòÎÊýINSTANCE_NAMEÀ´±êʶ£¬
ËüÃÇÁ½¸öµÄÖµÊÇÏàͬµÄ¡£Êý¾Ý¿âÆô¶¯Ê±£¬ÏµÍ³Ê×ÏÈÔÚ·þÎñÆ÷ÄÚ´æÖзÖÅäϵͳȫ¾ÖÇø£¨SGA£©£¬
¹¹³ÉÁËOracleµÄÄÚ´æ½á¹¹£¬È»ºóÆô¶¯Èô¸É¸ö³£×¤ÄÚ´æµÄ²Ù×÷ϵͳ½ø³Ì£¬¼´×é³ÉÁËOracleµÄ
½ø³Ì½á¹¹£¬ÄÚ´æÇøÓòºÍºǫ́½ø³ÌºÏ³ÆΪһ¸öOracleʵÀý¡£
                 
   Êý¾Ý¿âÓëʵÀýÖ®¼äÊÇ1¶Ô1/nµÄ¹Øϵ£¬ÔڷDz¢ÐеÄÊý¾Ý¿âϵͳÖÐÿ¸öOracleÊý¾Ý¿âÓëÒ»¸ö
ʵÀýÏà¶ÔÓ¦£»ÔÚ²¢ÐеÄÊý¾Ý¿âϵͳÖУ¬Ò»¸öÊý¾Ý¿â»á¶ÔÓ¦¶à¸öʵÀý£¬Í¬Ò»Ê±¼äÓû§Ö»ÓëÒ»¸ö
ʵÀýÏàÁªÏµ£¬µ±Ä³Ò»¸öʵÀý³öÏÖ¹ÊÕÏʱ£¬ÆäËûʵÀý×Ô¶¯·þÎñ£¬±£Ö¤Êý¾Ý¿âÕý³£ÔËÐС£ÔÚÈκÎ
Çé¿öÏ£¬Ã¿¸öʵÀý¶¼Ö»¿ÉÒÔ¶ÔÓ¦Ò»¸öÊý¾Ý¿â¡£
2£ºOracle 10g¶¯Ì¬ÄÚ´æ¹ÜÀí
   ÄÚ´æÊÇÓ°ÏìÊý¾Ý¿âÐÔÄܵÄÖØÒªÒòËØ£¬Oracle8iʹÓþ²Ì¬ÄÚ´æ¹ÜÀí£¬Oracle 10gʹÓö¯Ì¬
ÄÚ´æ¹ÜÀí¡£Ëùν¾²Ì¬ÄÚ´æ¹ÜÀí£¬¾ÍÊÇÔÚÊý¾Ý¿âϵͳÖУ¬ÎÞÂÛÊÇ·ñÓÐÓû§Á¬½Ó£¬Ò²ÎÞÂÛ²¢·¢ÓÃ
Á¿´óС£¬Ö»ÒªÊý¾Ý¿â·þÎñÔÚÔËÐУ¬¾Í»á·ÖÅä¹Ì¶¨´óСµÄÄڴ棻¶¯Ì¬ÄÚ´æ¹ÜÀíÔÊÐíÔÚÊý¾Ý¿â·þ
ÎñÔËÐÐʱ¶ÔÄÚ´æµÄ´óС½øÐÐÐ޸ģ¬¶ÁÈ¡´óÊý¾Ý¿éʱʹÓôóÄڴ棬СÊý¾Ý¿éʱʹÓÃСÄڴ棬¶Á
È¡±ê×¼ÄÚ´æ¿éʱʹÓñê×¼ÄÚ´æÉèÖá£
   °´ÕÕϵͳ¶ÔÄÚ´æʹÓ÷½·¨µÄ²»Í¬£¬OracleÊý¾Ý¿âµÄÄÚ´æ¿ÉÒÔ·ÖΪÒÔϼ¸¸ö²¿·Ö£º
   •ÏµÍ³È«¾ÖÇø£ºSGA£¨System Global Area£©
   •³ÌÐòÈ«¾ÖÇø£ºPGA£¨Programe Global Area£©
   •ÅÅÐò³Ø£º£¨Sort Area£©
   •´ó³Ø£º£¨Large Pool£©
   •Java³Ø£º£¨Java Pool£©
2-1£ºÏµÍ³È«¾ÖÇøSGA£¨System Global Area£©
    SGAÊÇÒ»×éΪϵͳ·ÖÅäµÄ¹²ÏíµÄÄÚ´æ½á¹¹£¬¿ÉÒÔ°üº¬Ò»¸öÊý¾Ý¿âʵÀýµÄÊý¾Ý»ò¿ØÖÆÐÅ
   Ï¢¡£Èç¹û¶à¸öÓû§Á¬½Óµ½Í¬Ò»¸öÊý¾Ý¿âʵÀý£¬ÔÚʵÀýµÄSGAÖУ¬Êý¾Ý¿ÉÒÔ±»¶à¸öÓû§¹²Ïí¡£
   µ±Êý¾Ý¿âʵÀýÆô¶¯Ê±£¬SGAµÄÄÚ


Ïà¹ØÎĵµ£º

oracle·ÖÎöº¯Êýrow_number() over()ʹÓÃ

row_number() OVER (PARTITION BY COL1 ORDER BY COL2) ±íʾ¸ù¾ÝCOL1·Ö×飬ÔÚ·Ö×éÄÚ²¿¸ù¾Ý COL2ÅÅÐò£¬¶ø´Ëº¯Êý¼ÆËãµÄÖµ¾Í±íʾÿ×éÄÚ²¿ÅÅÐòºóµÄ˳Ðò±àºÅ£¨×éÄÚÁ¬ÐøµÄΨһµÄ).
  ÓërownumµÄÇø±ðÔÚÓÚ£ºÊ¹ÓÃrownum½øÐÐÅÅÐòµÄʱºòÊÇÏȶԽá¹û¼¯¼ÓÈëαÁÐrownumÈ»ºóÔÙ½øÐÐÅÅÐò£¬¶ø´Ëº¯ÊýÔÚ°üº¬ÅÅÐò´Ó¾äºóÊÇÏÈÅÅÐòÔÙ¼ÆËãÐкÅ ......

ORACLE ÐÐתÁÐ ÓùýµÚÒ»¸öЧ¹û²»ËãÌ«ºÃ£¡

Êý¾Ý¿â²éѯÖÐÄÑÃâ»áÓöµ½ÐÐÁÐת»»µÄÇé¿ö£¬ÕªÁÐһЩ½Ï¾«µäµÄ½â¾ö·½°¸
--####################################################################
Ò»¡¢²ÉÓÃSQL decodeºÍPL/SQLº¯ÊýʵÏÖ
--####################################################################
1¡¢¹Ì¶¨ÁÐÊýµÄÐÐÁÐת»»
Èç
student subject grade
------ ......

Javaµ÷ÓÃOracle´æ´¢¹ý³Ì


µÚÒ»ÖÖÇé¿ö£ºÎÞ·µ»ØÖµ.
      create or replace procedure test_a(param1 in varchar2,param2 in varchar2) as
       begin
            insert into test value(param1,param2);
  &nb ......

Oracle¼¼ÇÉ£ºÓÃv$session_longops¸ú×ÙDDLÓï¾ä

OracleÊý×Ö×Öµä°üº¬Ò»¸öÏÊΪÈËÖªµÄv$session_longopsÊÓͼ¡£v$session_longopsÊÓͼ¿ÉÒÔʹOracleר¼Ò¼õÉÙÔËÐÐʱ¼äºÜ³¤µÄDDLºÍDMLÓï¾äµÄÔËÐÐʱ¼ä¡£
¡¡¡¡
¡¡¡¡
¡¡¡¡
¡¡¡¡ÀýÈçÔÚÊý¾Ý²Ö¿â»·¾³ÖУ¬¼´Ê¹Ê¹Óò¢ÐÐË÷Òý´´½¨¼¼Êõ£¬¹¹½¨Ò»¸öºÜ¶àG×Ö½Ú´óµÄË÷ÒýÐèÒªºÄ·ÑºÜ¶à¸öСʱ¡£ÕâÀïÄã¾Í¿ÉÒÔ²éѯv$session_longopsÊÓͼ¿ìËÙÕÒ³öÒ»¸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ