oracle²é¿´±»ËøµÄ±íºÍ½âËø
²é¿´Ëø±í½ø³ÌSQLÓï¾ä1£º
select sess.sid,
sess.serial#,
lo.oracle_username,
lo.os_user_name,
ao.object_name,
lo.locked_mode
from v$locked_object lo,
dba_objects ao,
v$session sess
where ao.object_id = lo.object_id and lo.session_id = sess.sid;
²é¿´Ëø±í½ø³ÌSQLÓï¾ä2£º
select * from v$session t1, v$locked_object t2 where t1.sid = t2.SESSION_ID;
ɱµôËø±í½ø³Ì£º
ÈçÓÐ記錄則±íʾÓÐlock£¬記錄ÏÂSIDºÍserial# £¬將記錄µÄIDÌæ換ÏÂÃæµÄ738,1429£¬¼´¿É½â³ýLOCK
alter system kill session '738,1429';
OracleÓÐ×Ô¼ºµÄ½ø³Ì¹ÜÀí²ßÂÔ£¬ºÜ¶àÇé¿öÏÂɱ½ø³ÌÍùÍù²»Äܼ´Ê¹ÉúЧ£¬¿ÉÒÔ¼Óalter system kill ... immediately ÊÔÊÔ
Ïà¹ØÎĵµ£º
ÏêϸµØ²½Öè:
1¡¢´ò¿ªMicroSoft Excel 2000
2¡¢Îļþ(F)→н¨(N)→¹¤×÷²¾→
3¡¢ÊäÈëÊý¾Ýºó£¬´æÅÌΪtest.xls£¬
4¡¢Îļþ(F)→Áí´æÎª(A)→
±£´æÀàÐÍΪ£ºÖƱí·û·Ö¸ô£¬ÆðÃûΪtext.txt£¬±£´æµ½C:\ &nb ......
ÐÞ¸ÄÁÐÊôÐÔ
alter table tablename modify(name ,varchar2(10)) Áпí¶È²»µÃСÓÚÐÞ¸ÄǰµÄ¿í¶È
ÈÕÖ¾¹ÜÀí
ÊÓͼ v$logfile
alter database add logfile 'd:\orcl01.log' size 10m;//Ìí¼Ó×é
alter database add logfile member 'd:\orcl02.log' to group 4;//Ïò4×éÖÐÌí¼Ó³ÉÔ±
alter database drop logfile member 'd: ......
Ò»¡¢ ³£ÓÃÈÕÆÚÊý¾Ý¸ñʽ
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 ......
µÚÒ»¸öbug fix Óõ½ OracleµÄUpdateÓï¾ä
update Table1 set Web=-1 where ProgID=N‘123’
CodeReview ʱ
Do we need a COMMIT; in the Oracle version?
ÉÏÍø²éÁËÒ»ÏÂOracle COMMITÓ÷¨
COMMIT
Purpose
Use the COMMIT statement to end your current transaction and make permanent all changes ......
ÓÐʱÔÚ½øÐÐÏîÄ¿¿ª·¢¹ý³ÌÖУ¬ÓÉÓÚһЩÎó²Ù×÷»áµ¼ÖÂÊý¾Ý¿âµÄ±í¸øÎóɾ³ýµô£¬ÎªÁ˱ÜÃâÕâÒ»Çé¿öµÄ·¢Éú£¬ÈçºÎÑϸñ¿ØÖÆÄ³Óû§²»ÄܶÔ×Ô¼ºµÄ¿â½øÐÐDROPȨÏÞ£¬ÐèÒª½øÐÐÏà¹ØÉèÖã¬ÓÉÓÚĬÈÏconnectµÄȨÏÞÒ²ÊǾßÓÐdrop×Ô¼ºÓû§µÄ±í½á¹¹£¬Í¨¹ýproduct_user_profileÖ»ÄÜÏÞÖÆsql*plusµÄ²Ù×÷£¬¶ø²»ÄÜÏÞÖÆÆäËüµÚÈý·½oracleÁ¬½Ó¹¤¾ß£¬×îÓÐЧµÄ· ......