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

ORACLE ×óÓÒÁ´½Ó

Êý¾Ý±íµÄÁ¬½ÓÓÐ:
1¡¢ÄÚÁ¬½Ó(×ÔÈ»Á¬½Ó): Ö»ÓÐÁ½¸ö±íÏàÆ¥ÅäµÄÐвÅÄÜÔÚ½á¹û¼¯ÖгöÏÖ
2¡¢ÍâÁ¬½Ó: °üÀ¨
     £¨1£©×óÍâÁ¬½Ó(×ó±ßµÄ±í²»¼ÓÏÞÖÆ)
     £¨2£©ÓÒÍâÁ¬½Ó(ÓÒ±ßµÄ±í²»¼ÓÏÞÖÆ)
     £¨3£©È«ÍâÁ¬½Ó(×óÓÒÁ½±í¶¼²»¼ÓÏÞÖÆ)
3¡¢×ÔÁ¬½Ó(Á¬½Ó·¢ÉúÔÚÒ»ÕÅ»ù±íÄÚ)
select a.studentno, a.studentname, b.classname
      from students a, classes b
      where a.classid(+) = b.classid;
STUDENTNO STUDENTNAM CLASSNAME
---------- ---------- ------------------------------
            1 aa          Ò»Ä꼶һ°à
            2 bb          Ò»Ä꼶¶þ°à
                             Ò»Ä꼶Èý°à
ÒÔÉÏÓï¾äÊÇÓÒÁ¬½Ó£º
¼´"(+)"ËùÔÚλÖõÄÁíÒ»²àΪÁ¬½ÓµÄ·½Ïò£¬ÓÒÁ¬½Ó˵Ã÷µÈºÅÓÒ²àµÄËùÓмǼ¾ù»á±»ÏÔʾ£¬ÎÞÂÛÆäÔÚ×ó²àÊÇ·ñµÃµ½Æ¥Åä¡£Ò²¾ÍÊÇ˵ÉÏÀýÖУ¬ÎÞÂۻ᲻»á³öÏÖij¸ö°à¼¶Ã»ÓÐÒ»¸öѧÉúµÄÇé¿ö£¬Õâ¸ö°à¼¶µÄÃû×Ö¶¼»áÔÚ²éѯ½á¹¹ÖгöÏÖ¡£
 
¼´"(+)"±íʾËùÔÚµÄÁеÄÖµ£¬Èç¹ûûÓÐÆ¥ÅäµÄÖµ£¬Ôò¼ÓÈënullÖµ£¬²¢ÏÔʾ³öÀ´¡£.
 
//ͨ³£½«È«Á¿¼¯ºÏÓ벿·Ö¼¯ºÏÁ¬½Óʱ£¬ÔÚ²¿·Ö¼¯ºÏµÄÁкóÃæ´øÉÏ£¨+£©£¬ÒԴﵽûÓÐÆ¥Åäʱ£¬Ò²ÒªÏÔʾ³öÒ»¸önullµÄЧ¹û¡£
 
 
·´Ö®£º
select a.studentno, a.studentname, b.classname
       from students a, classes b
      where a.classid = b.classid(+);
 
STUDENTNO STUDENTNAM CLASSNAME
---------- ---------- ------------------------------
            1 aa          Ò»Ä꼶һ°à
            2 bb         


Ïà¹ØÎĵµ£º

ÈçºÎÊÖ¹¤´´½¨OracleÊý¾Ý¿â

ÈçºÎÊÖ¹¤´´½¨OracleÊý¾Ý¿â
http://www.cnhacker.com/Security/System/200808/t20080818_6325.html
½ñÌ죬ÎÒÔÚ²âÊÔ»úÆ÷ÉÏÀ´Á˸öÎó²Ù×÷rm * backup/*,°ÑÕýÔÚÔËÐеÄÊý¾Ý¿âÖеÄÊý¾ÝÎļþÈ«²¿É¾³ýÁË£¬ÕæÊÇÓôÃÆ!»¹ºÃÕâ¸öÊǸøÎÒÃÇÐÂÈËÃDzâÊÔÍæµÄ£¬Òª²»È»¾ÍËÀ¶¨ÁË!ÔÚ´ËÒ²×öÒ»¸öÌáÐÑ£¬ÉíΪDBA£¬ÒªÓÀÔ¶¼ÇסʲôÉ÷ÓûòÕß½ûֹʹÓÃrmÃüÁ ......

oracleÈÕÆÚº¯Êý¼¯½õ


Ò»¡¢ ³£ÓÃÈÕÆÚÊý¾Ý¸ñʽ
1.Y»òYY»òYYY ÄêµÄ×îºóһ룬Á½Î»»òÈýλ
SQL> Select to_char(sysdate,'Y') from dual;
TO_CHAR(SYSDATE,'Y')
--------------------
7
SQL> Select to_char(sysdate,'YY') from dual;
TO_CHAR(SYSDATE,'YY')
---------------------
07
SQL> Select to_char(sysdate,'YYY') from ......

Oracle³£ÓÃÓï¾ä

--ÈçºÎÓÃgrade±íµÄ×ÊÁÏÈ¥¸üÐÂusertable±íµÄ×ÊÁÏ£¨ÓйØÁªµÄ×Ö¶Îuserid£©
 update usertable u set u.grade =
 (select g.grade from grade g where g.userid = u.userid);
 
--ÈçºÎʹ²éѯ½á¹û×Ö¶ÎÉú³ÉÐòºÅ
select rownum, t.* from sm_t_pad_new t
--ÈçºÎ¿ìËÙ×öÒ»¸öºÍÔ­±íÒ»ÑùµÄ±¸·Ý±í
 create ......

Oracle waits event:DB File Sequential Read

The DB File Sequential Read wait event generally indicates a single block read (an index read,
for example). A large number could indicate poor joining orders of tables or unselective indexing.
This number will certainly be large (normally) for a high-transaction, well-tuned system. You ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ