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

¹ØÓÚORACLE Éó¼ÆµÄһЩÊÓͼºÍ½Å±¾

Éó¼ÆÊÓͼ
STMT_AUDIT_OPTION_MAP    -- Éó¼ÆÑ¡ÏîÀàÐÍ´úÂë
AUDIT_ACTIONS    -- action´úÂë
ALL_DEF_AUDIT_OPTS    -- ¶ÔÏó´´½¨Ê±Ä¬ÈϵĶÔÏóÉó¼ÆÑ¡Ïî
DBA_STMT_AUDIT_OPTS    -- µ±Ç°Êý¾Ý¿âϵͳÉó¼ÆÑ¡Ïî
DBA_PRIV_AUDIT_OPTS    -- ȨÏÞÉó¼ÆÑ¡Ïî
DBA_OBJ_AUDIT_OPTS   
USER_OBJ_AUDIT_OPTS    -- ¶ÔÏóÉó¼ÆÑ¡Ïî
DBA_AUDIT_TRAIL   
USER_AUDIT_TRAIL    -- Éó¼Æ¼Ç¼
DBA_AUDIT_OBJECT   
USER_AUDIT_OBJECT    -- Éó¼Æ¶ÔÏóÁбí
DBA_AUDIT_SESSION   
USER_AUDIT_SESSION    -- sessionÉó¼Æ
DBA_AUDIT_STATEMENT   
USER_AUDIT_STATEMENT    -- Óï¾äÉó¼Æ
DBA_AUDIT_EXISTS    -- ʹÓÃBY AUDIT NOT EXISTSÑ¡ÏîµÄÉó¼Æ
DBA_AUDIT_POLICIES    -- Éó¼ÆPOLICIES
DBA_COMMON_AUDIT_TRAIL    -- ±ê×¼Éó¼Æ+¾«Ï¸Éó¼Æ
һЩ½Å±¾
ÏÂÃæÕâ¸ö½Å±¾¿ÉÒÔÕÒ³öϵͳ¿ªÁËÄÄЩ ϵͳÉó¼Æ¹¦ÄÜ(·Çobject Éó¼Æ)
select nvl(user_name,'SYSTEM WIDE AUDITING')"User_Name",proxy_name "Proxy_Name",audit_option "Audit_Option",
success "Success?",failure "Failure?" from DBA_STMT_AUDIT_OPTS;
Àý×Ó£º
SQL> select nvl(user_name,'SYSTEM WIDE AUDITING')"User_Name",proxy_name "Proxy_Name",audit_option "Audit_Option",
  2  success "Success?",failure "Failure?" from DBA_STMT_AUDIT_OPTS;
User_Name                      Proxy_Name                     Audit_Option                             Success?   Failure?
------------------------------ ------------------------------ ---------------------------------------- ---------- -----


Ïà¹ØÎĵµ£º

Oracle´æ´¢¹ý³ÌÓ﷨ѧϰ

´æ´¢¹ý³Ì´´½¨Óï·¨£º
 
£¨1£©ÎÞ²Î
create or replace procedure ´æ´¢¹ý³ÌÃû
as
±äÁ¿1 ÀàÐÍ£¨Öµ·¶Î§£©;
±äÁ¿2 ÀàÐÍ£¨Öµ·¶Î§£©;
Begin
       ........................
Exception
       ........................
End;
 
£¨2£©´ø ......

OracleºÍSQL Server¡¢DB2Êý¾Ý¿â±È½Ï

¿ª·ÅÐÔ:
SQL Server   
    Ö»ÄÜÔÚwindows ÉÏÔËÐУ¬Ã»ÓÐË¿ºÁµÄ¿ª·ÅÐÔ£¬²Ù×÷ϵͳµÄϵͳµÄÎȶ¨¶ÔÊý¾Ý¿âÊÇÊ®·ÖÖØÒªµÄ¡£Windows9XϵÁвúÆ·ÊÇÆ«ÖØÓÚ×ÀÃæÓ¦Óã¬NT serverÖ»ÊʺÏÖÐСÐÍÆóÒµ¡£¶øÇÒwindowsƽ̨µÄ¿É¿¿ÐÔ£¬°²È«ÐÔºÍÉìËõÐÔÊǷdz£ÓÐÏ޵ġ£Ëü²»ÏóunixÄÇÑù¾Ã¾­¿¼Ñ飬ÓÈÆäÊÇÔÚ´¦Àí´óÊý¾ÝÁ¿ ......

oracleÌØÊ⺯ÊýÓ÷¨

<< 1 >>
decode()º¯數ʹÓü¼ÇÉ
·Èí¼þ»·¾³£º
1¡¢Windows NT4.0+ORACLE 8.0.4
2¡¢ORACLE°²×°Â·¾¶Îª£ºC:\ORANT
·º¬Òå½âÊÍ£º
decode(Ìõ¼þ,Öµ1,·­ÒëÖµ1,Öµ2,·­ÒëÖµ2,...Öµn,·­ÒëÖµn,ȱʡֵ)
¸Ãº¯ÊýµÄº¬ÒåÈçÏ£º
IF Ìõ¼þ=Öµ1 THEN
¡¡¡¡¡¡¡¡RETURN(·­ÒëÖµ1)
ELSIF Ìõ¼þ=Öµ2 THEN
¡¡¡ ......

oracle ÎïÀí½á¹¹¹¹Êö

Êý¾ÝÎļþ
¡¡¡¡Ã¿Ò»¸öOracleÊý¾Ý¿â¶¼ÓÐÒ»¸ö»ò¶à¸öÎïÀíµÄÊý¾ÝÎļþ,Êý¾Ý¿âÐÅÏ¢(½á¹¹,Êý¾Ý)¶¼±£´æÔÚÕâЩÊý¾ÝÎļþÖÐ,²¢ÇÒÕâЩÎļþÒ²Ö»Oracle²ÅÄܹ»½âÊÍÓë¹ÜÀíÕâЩ´æ´¢.OracleÊý¾ÝÎļþ¾ßÓÐÒÔÏÂһЩÌØÐÔ:
¡¡¡¡1.Ò»¸öÊý¾ÝÎļþ½ö½ö¹ØÁªÒ»¸öÊý¾Ý¿â,Êý¾ÝÎļþÓëÊý¾Ý¿âÖ®¼ä¶ÔÓ¦¹ØϵÊÇÒ»¶ÔÒ»¹Øϵ,µ±È»·´¹ýÊý¾Ý¿âÓëÊý¾ÝÎļþÊÇÒ»¶Ô¶à¹Øϵ. ......

¡¾×ª¡¿ OracleÐÔÄÜÓÅ»¯¼¼ÇÉ

OracleÐÔÄÜÓÅ»¯¼¼ÇÉ
http://tech.it168.com/db/o/2006-06-15/200606151715426.shtml
1.Ñ¡ÓÃÊʺϵÄORACLEÓÅ»¯Æ÷
    ORACLEµÄÓÅ»¯Æ÷¹²ÓÐ3ÖÖ:
    1.RULE(»ùÓÚ¹æÔò) 2.COST(»ùÓڳɱ¾) 3.CHOOSE(Ñ¡ÔñÐÔ)
    ÉèÖÃȱʡµÄÓÅ»¯Æ÷,¿ÉÒÔͨ¹ý¶Ôinit.oraÎļþÖÐOPTIMIZER_MODE²ÎÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ