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

oracle Êý¾Ýͳ¼ÆÖеÄÃû´ÎÅÅÐòºÍ½ØÈ¡

exname stuname source
Íõº£ Êýѧ 86
ٮٮ Êýѧ 95
·¼¶ù Êýѧ 93
¹ø¯ Êýѧ 95
ÖÜѧ¾ü Êýѧ 93
Íõº£ ÓïÎÄ 86
ٮٮ ÓïÎÄ 95
·¼¶ù ÓïÎÄ 93
°´Ñ§¿ÆºÍ·ÖÊýÅÅÃû¡£ÅÅÃûÓÐ2ÖÖ·½Ê½,Ò»ÖÖÊÇÅÅÃûÖظ´Ôò²»ÏÔʾÏÂÒ»Ãû Ò»ÖÖÖظ´Ò²¼ÌÐøÏÔʾ¡£
ÅÅÃûÒ»£º
select t.exmename,
t.stuname ,
rank() over(partition by t.exmename order by t.soure desc)
from test_techer t;
½á¹û£º
»¯Ñ§ ٮٮ 1
Êýѧ ٮٮ 1
Êýѧ ¹ø¯ 1
Êýѧ ·¼¶ù 3
Êýѧ ÖÜѧ¾ü 3
Êýѧ Íõº£ 5
ÎïÀí ·¼¶ù 1
ÓïÎÄ Ù®Ù® 1
ÓïÎÄ ¹ø¯ 1
ÓïÎÄ ·¼¶ù 3
ÓïÎÄ ÖÜѧ¾ü 3
ÓïÎÄ Íõº£ 5
rank() ·ÖÎöº¯Êý×Ô¶¯½øÐÐÅÅÃû¡£°´exmename ·Ö×éÅÅÃû,ÅÅÃûµÄÖ÷ÒªÒÀ¾ÝÊÇsoure µÄÅÅÐò¡£
ÓÉÓÚÓÐÖظ´µÚÒ»Ãû,ËùÒÔµÚ2ÃûûÓÐÖ±½ÓÌøµ½µÚÈýÃû ¡£
ÅÅÃû·½·¨¶þ£º
select t.exmename,
t.stuname ,
dense_rank() over(partition by t.exmename order by t.soure desc)
from test_techer t;
dense_rank()ÄÜÏÔʾÖظ´Ãû´Î,²¢ÇÒ¼ÌÐøÏÔʾÏÂÒ»¸öÃû´Î¡£
Ç°NÃûÈ¡·¨£º
select a.exmename, a.stuname, a.taxis
from (select t.exmename,
t.stuname,
rank() over(partition by t.exmename order by t.soure desc) taxis
from test_techer t) a
where a.taxis = 1;
ʹÓÃ×Ó³ÌÐòÀ´¿ØÖÆNÃûÈ¡·¨£¨Ä¿Ç°Ã»ÕÒµ½ÆäËû·½·¨...Ï£Íû´ó¼ÒÄܽéÉÜÆäËû¸üÊʺϵķ½·¨£©¡£


Ïà¹ØÎĵµ£º

LINUXÏÂOracle¿â±¸·Ý½Å±¾

vi /opt/back.sh(oracleÓû§)
#!/bin/ksh
tim=`date +%Y%m%d`
unset USERNAME
#export DISPLAY=0.0.0.0:0.0
#export ORACLE_BASE=/home/oraprod3
#export ORACLE_HOME=/prod/oracle/prod3db/9.2.0
#export ORACLE_SID=PROD3_db
#export LD_LIBRARY_PATH=/prod/oracle/prod3db/9.2.0/lib
#export ORACLE_TERM=vt100 ......

Oracle ListenerµÄTNS 12502´íÎó

ÿ¸ô¼¸ÃëÖÓlistenerÈÕÖ¾ÖоͳöÏÖÒ»´Î¸Ã´íÎóµÄ¼Ç¼£¬¼´Ê¹ÊÇÔÚûÓÐÈËʹÓõÄÇé¿öÏÂÒ²ÊÇÈç´Ë£¬²»¹ý²¢Ã»Óз¢ÏÖ¿Í»§¶Ë»úÆ÷²»ÄÜÕý³£Á¬½ÓÊý¾Ý¿âµÄÇé¿ö¡£
   Oracle¹ØÓÚTNS-12502´íÎóµÄ½âÊÍ:
Error: ORA-12502 / TNS-12502
Text: TNS:listener received no CONNECT_DATA from client
Cause: No CONNECT_DATA was ......

oracleµÄescapeתÒå×Ö·û

¶¨Ò壺escape¹Ø¼ü×Ö¾­³£ÓÃÓÚʹijЩÌØÊâ×Ö·û£¬ÈçͨÅä·û£º'%','_'תÒåΪËüÃÇÔ­
À´µÄ×Ö·ûµÄÒâÒ壬±»¶¨ÒåµÄתÒå×Ö·ûͨ³£Ê¹ÓÃ'\',µ«ÊÇÒ²¿ÉÒÔʹÓÃÆäËûµÄ·ûºÅ¡£
ʵÀý£º
SQL> select * from t11 where name like '%_%';
NAME
----------
aa_a
aaa
SQL> select * from t11 where name like '%\_%' escape '\';
NAME
......

Oracle Hang Analysis

Author: rainnyzhong
Date:2010-1-15
 
1£®  Ö¢×´ÃèÊö£º
FALB12´ÓEXCEL IMPORT DATAµ½DB£¬Ô¤¼ÆÊÂÎñ»áÔËÐÐ1¸ö¶àСʱ£¬ÔÚ¿ªÊ¼²Ù×÷ºó40·ÖÖÓ×óÓÒ£¬ORACLE¹ÒËÀ£¬ÈκÎÓû§¶¼²»¿ÉÒÔÔٵǽÁË¡£
2£®  ·ÖÎö
£¨1£©        ÏÂÃæÊǹÒËÀʱOSµÄ×ÊÔ´×´¿ö£º
09:37:54  up 73 ......

Oracle ·ÖÎöº¯Êý·Ö×éÀÛ¼Ó£¡

Óû§ºÅÂë µÇ½ʱ¼ä
1300000000 2010-01-01
1300000001 2010-01-01
1300000002 2010-01-02
1300000001 2010-01-02
1300000003 2010-01-03
1300000002 2010-01-03
1300000004 2010-01-04
1300000003 2010-01-04
1300000004 2010-01-02
1300000006 2011-01-04
1300000001 2011-01-04
 ÌÞ³ýÖظ´µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ