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

oracle grant connect,resource to user°üÀ¨µÄȨÏÞ

http://hi.baidu.com/aku88168/blog/item/fa727454ec008553564e00e8.html
CONNECT½ÇÉ«£º    --ÊÇÊÚÓè×îÖÕÓû§µÄµäÐÍȨÀû£¬×î»ù±¾µÄ   
    
   ALTER    SESSION    --Ð޸ĻỰ   
   CREATE    CLUSTER    --½¨Á¢¾Û´Ø   
   CREATE    DATABASE    LINK    --½¨Á¢Êý¾Ý¿âÁ´½Ó   
   CREATE    SEQUENCE    --½¨Á¢ÐòÁР  
   CREATE    SESSION    --½¨Á¢»á»°   
   CREATE    SYNONYM    --½¨Á¢Í¬Òå´Ê   
   CREATE    VIEW    --½¨Á¢ÊÓͼ   
    
    
   RESOURCE½ÇÉ«£º    --ÊÇÊÚÓ迪·¢ÈËÔ±µÄ   
    
   CREATE    CLUSTER    --½¨Á¢¾Û´Ø   
   CREATE    PROCEDURE    --½¨Á¢¹ý³Ì   
   CREATE    SEQUENCE    --½¨Á¢ÐòÁР  
   CREATE    TABLE    --½¨±í   
   CREATE    TRIGGER    --½¨Á¢´¥·¢Æ÷   
   CREATE    TYPE    --½¨Á¢ÀàÐÍ
µ«ÊÇʵ¼Ê²éÕÒ oracle 10 2.0.1.0 ϵͳʱ£¬·¢ÏÖÁ½¸ö½ÇÉ«µÄȨÏÞÈçÏÂ:
ÓÃsysµÇ½µ½oracleÖУ¬Ö´ÐÐÒÔÏÂÁ½ÌõÓï¾ä:
         select * from role_sys_privs WHERE ROLE LIKE 'CONNECT';  --²éѯconnect½ÇÉ«µÄȨÏÞ
         select * from role_sys_privs WHERE ROLE LIKE 'RESOURCE';  --²éѯ RESOURCE½ÇÉ«µÄȨÏÞ
CONNECT½ÇÉ«£º    --ÊÇÊÚÓè×îÖÕÓû§µÄµäÐÍȨÀû£¬×î»ù±¾µÄ &n


Ïà¹ØÎĵµ£º

¼Ç¼һЩsqlÓï¾äoracleµÄ

 select d.code,d.name, sum(w.weight) weight,round(avg(w.price),2) price,sum(w.money) money
from weight_info w left outer join t_dict d on w.productcode=d.code left outer  join t_balancecode b on w.balancecode=b.balancecode where 1=1 and w.operdate>TO_TIMESTAMP('2009-11-2 04:12:32.0', ' ......

תÔØoracle rollupºÍcubeº¯ÊýʹÓÃÐĵÃ

 ×ª×Ô£ºhttp://blog.csdn.net/wangdongzjk/archive/2005/11/18/532424.aspx
ʹØCUBE ROLLUP GROUPING SETS£¨1£©
Ô­ÎÄÒý×Ô£º
¾ÛºÏÊÇÊý¾Ý²Ö¿âµÄ»ù´¡¡£ÎªÁËÌá¸ß¾ÛºÏµÄÐÔÄÜ¡£OracleÌṩÁËGroup By Ìõ¿îµÄÀ©Õ¹¡£
1£® CUBE, ROLLUPÀ©Õ¹
2£® 3¸ögroupingº¯Êý
 ......

½ÌÄã°²×°oracle£¡

 Oracle ×°Åä¹£¸Å
Òª²é¿´¿ÉÓà RAM ºÍ»¥»»¿Õ¼ä´óС£¬ÔË×÷ÒÔ´ÎÏÂÁ
grep MemTotal /proc/meminfo
grep SwapTotal /proc/meminfo
±ÈÈ磺
# grep MemTotal /proc/meminfo
MemTotal:512236 kB
# grep SwapTotal /proc/meminfo
SwapTotal:1574360 kB
½ÓÏÂÀ´£¬´´ÔìÓÃÀ´×°ÅäºÍά»¤ Oracle Ê®g Èí¼þµÄ Linux ×éºÍÓû ......

¹ØÓÚoracleËÀËø

 Èç¹û½ö½öÊÇlock£¬ÒÔÏÂÓï¾ä¿ÉÒÔ·¢ÏÖËùÓÐÓû§Ëø  :
SELECT s.username,
       decode(l.type, 'TM', 'TABLE LOCK', 'TX', 'ROW LOCK', NULL) LOCK_LEVEL,
       o.owner,
       o.object_name,
 &n ......

oracleµ¥Ðк¯Êý

µ¥Ðк¯Êý:
º¯ÊýÀà±ð:
    µ¥ÐÐ:·µ»Øµ¥¸ö½á¹û:substr,length
    ¶àÐÐ:·µ»Ø¶à¸ö½á¹û,any,all
µ¥ÐеķÖÀà:
    ×Ö·ûÀ࣬ÈÕÆÚÀ࣬Êý×ÖÀ࣬ת»»À࣬ͨÓÃÀà
1.×Ö·ûÀà
ת»»´óСд:
lower:ת»»ÎªÐ¡Ð´
Select ENAME,LOWER(ENAME) from EMP
upper:ת»»Îª´óд
Select upper( ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ