ORACLE»ØÊÕÕ¾
ÔÚÖ´ÐÐÒ»¸ö´æ´¢¹ý³Ì½¨±íʱ£¬³öÏÖÁËÕâ¸öORA-38301:ÎÞ·¨¶Ô»ØÊÕÕ¾ÖеĶÔÏóÖ´ÐÐDDL/DML´íÎó¡£·¢ÏÖÔÀ´ÕâÊÇ10GµÄÒ»¸öÐÂÌØÐÔ£¬»ØÊÕÕ¾¡£¶ÔÓÚdropµÄ±í²¢²»ÊÇÖ±½Óɾ³ýµôµÄ¡£¶øÊÇ·ÅÔÚ»ØÊÕÕ¾ÖÐÁË¡£RecycleBin¡£
¿ÉÊÇÔÚ»ØÊÕÕ¾ÖÐûÓв鵽Õâ¸ö±í¡£
select * from recyclebin;
ºÜÆæ¹Ö¡£
½øÐÐɾ³ý²Ù×÷¡£
½øÐÐɾ³ýºó£¬»¹ÊDz»ÄܶԸñíÖؽ¨£¬±¨´í¸Ã¶ÔÏóÒѾ´æÔÚ¡£
´Ó»ØÊÕÕ¾Öвéѯ¸Ã±í£¬±¨³ö¸ö
ORA-00600: ÄÚ²¿´íÎó´úÂë, ²ÎÊý: [ktsircinfo_num1
¹ÖÁË¡£ÍøÉϺܶàÈË˵ÊÇoracleÄÚ²¿×Ô¼ºµÄÎÊÌ⡣û°ì·¨£¬ÖØÆôÊý¾Ý¿âÊÔÒ»°ÑÁË¡£½á¹ûÖØÆôºó£¬ÄǸö±íÒѾ²»ÔÚÊý¾Ý¿âÖдæÔÚÁË¡£ÎÊÌâ½â¾öÁË¡£
¼Ç¼Ï»ù±¾µÄ»ØÊÕÕ¾²Ù×÷£º
ÒѾ·Åµ½»ØÊÕÕ¾ÀïµÄ±íÊDz»ÄÜÓÃdropÃüÁîɾ³ýµÄ(×¢Òâ¶ÔÏóÃû×ÖÉϵÄË«ÒýºÅ)
Èç¹ûÒªÇåµô¸Ã¶ÔÏó,ʹÓÃpurgeÃüÁ
SQL> PURGE table "BIN$V3f/oYUITrCEF2cotS5JaA==$0" ;
Èç¹ûÖ±½ÓÇå¿ÕËùÓеÄRecycle BinÖеĶÔÏó£º
Ïà¹ØÎĵµ£º
shutdown immediate
Ç¿Áв»½¨ÒéתΪ·Ç¹éµµÄ£Ê½
startup mount
alter database noarchivelog
alter database open
·Ç¹éµµ×ª¹éµµ
startup mount
alter database archivelog
alter database open
Ôڹ鵵ÈÕ־ģʽÏ£¬ÓпÉÄÜ»áÓöµ½¹éµµÈÕÖ¾´óС³¬¹ý×î´óÖµ¶ø³öÏÖÌÖÑáµÄORA-00257´íÎó£¬Ç°Ãæ˵ÁËÈçºÎ°Ñ¹éµµÈÕÖ¾¿Õ¼ä±ä´ó¡£¶ ......
ORACLEÀïËøÓÐÒÔϼ¸ÖÖģʽ:
0£ºnone
1£ºnull ¿Õ
e.g. 1¼¶ËøÓУºSelect£¬ÓÐʱ»áÔÚv$locked_object³öÏÖ¡£
2£ºRow-S Ðй²Ïí(RS)£º¹²Ïí±íËø£¬sub share
e.g. 2¼¶ËøÓУºSelect for update,Lock For Update,Lock Row Share
  ......
ÔÚJ2EEÓ¦ÓóÌÐò¿ª·¢ÖУ¬Ó¦ÓóÌÐòÓëÊý¾Ý¿âÁ¬½ÓµÄ½¨Á¢ÊÇÎÒÃǾ³£Óöµ½µÄÎÊÌâÖ®Ò»¡£ÔÚÕâÀïÎÒÖ÷Ҫ̸̸ÔÚ±¾µØÓ¦ÓóÌÐòÖÐͨ¹ýOCI·½Ê½¡¢thin·½Ê½ºÍJdbcOdbcÇÅ·½Ê½Á¬½ÓOracleÊý¾Ý¿â£¬ÔÚiPlanet Application Server 6.5ºÍSun Java System Application Server 7ÖжÔOracleÊý¾Ý¿âÁ¬½Ó³ØµÄÅäÖÃÒÔ¼°Ó¦ÓÃÖÐÈçºÎ´ÓÁ¬½Ó³ØÖлñµÃÁ¬½Ó
Ò»¡¢±¾µ ......
Ò»£®¼òµ¥SQL²éѯ£º
1£©:ͳ¼Æÿ¸ö²¿ÃÅÔ±¹¤µÄÊýÄ¿
select dept,count(*) from employee group by dept;
2£©:ͳ¼Æÿ¸ö²¿ÃÅÔ±¹¤µÄÊýÄ¿´óÓÚÒ»¸öµÄ¼Ç¼
select dept,count(*) from employee group by dept having count(*)>1;
3£©:ͳ¼Æ¹¤×ʳ¬¹ý1200µÄÔ±¹¤ËùÔÚ²¿ÃŵÄÃû³Æ
select e.first_name,salary,d.name
from s_emp ......