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

±±´óÇàÄñoracleѧϰ±Ê¼Ç6

Ëø
²éѯÆäËûÓû§µÄ±í <Óû§Ãû.±íÃû>
Ëø¶¨Ä£Ê½£º
Ðм¶Ëø
Ðб»ÅÅËûÐÔËø¶¨
ÔÚijÐеÄËø±»ÊÍ·Å֮ǰ£¬ÆäËûÓû§²»ÄÜÐ޸ĴËÐÐ
ʹÓÃcommit rollbackÃüÁîÊÍ·ÅËø
»ñÈ¡Ðм¶Ëø
ʹÓÃinsert¡¢updateÓï¾ä£¬×Ô¶¯ÉÏÐм¶Ëø
ʹÓÃselect...for update [of ÁÐÃû] Óï¾ä×Ô¶¯»ñÈ¡Ðм¶Ëø
ÔÚ±íµÄÒ»Ðлò¶àÐзÅÖÃÅÅËûËø£¬ÓÃÓÚ·ÀÖÎÆäËûÓû§¸üУ¬É¾³ý¸ÃÐУ¬µ«ÊÇ¿ÉÒÔÖ´ÐÐÖ®ÍâµÄÆäËû²Ù×÷¡£
for update wait 10; 10ÊǵȴýµÄÃëÊý£¬ ¿ÉÒÔÌáʾÆäËûµÈ´ýËøµÄÓû§£¬³¬¹ý10Ã뽫·µ»Ø¸øµÈ´ýÓû§´íÎóÐÅÏ¢£¨×ÊÔ´ÒÑÕ¼Óã©¡£
±í¼¶Ëø
Óï·¨£ºLock table<table_name> in <mode>;
ÈýÖÖģʽ£¨Óï·¨ÖдúÌæ <mode>£©£º
¹²Ïí£º share mode ÆäËûÓû§¿ÉÒÔ²éѯ,²»¿ÉÒÔÔöɾ¸Ä¡£
¶à¸öÓû§¿ÉÒÔ¶Ôͬһ¸ö±íÉϹ²ÏíËø¡£
¹²Ïí¸üУºshare update mode Ëø¶¨Òª±»¸üеÄÐУ¬
ÆäËûÓû§¿ÉÒÔÔöɾ¸Ä²éδ±»Ëø¶¨µÄÐУ¬select...for update¾ÍÇ¿ÖÆʹÓÃÁ˹²Ïí¸üÐÂËø¡£
ÔÊÐí¶à¸öÓû§Í¬Ê±Ëø¶¨±íÖв»Í¬µÄÐС£
ÅÅËû£º exclusive mode ½öÔÊÐíÆäËûÓû§²éѯÊý¾Ý
²»ÔÊÐíÔöɾ¸Ä
ÔÚͬһʱ¼äÔÊÐíÒÔΪÓû§ÔÚ±íÉÏ·ÅÖÃÅÅËûËø
ºó¸úno waitÁ¢¼´Ìáʾ×ÊÔ´Õýæ


Ïà¹ØÎĵµ£º

±±´óÇàÄñoracleѧϰ±Ê¼Ç1¡«2

    ÕâѧÆÚ×¼±¸»¨ÉÙÐíʱ¼äÑо¿Ò»ÏÂoracle£¬Ì¨Ê½»úµÄUbuntu²»Îȶ¨ÀÏ»µ£¬·ÅÆúÁËlinuxÉÏʹÓÃoracleµÄÏë·¨£¬ÔÚ×Ô¼º±Ê¼Ç±¾ÉÏ×°ÁËÒ»¸öoracle 10g express°æ±¾£¬Ñ§Ï°Ò»Ï¡£
    ±¾À´»¹ÏëÓÃÔƶËÐéÄ⻯һÏÂoracle£¬ÊµÑéʧ°Ü£¬ÀÏÀÏʵʵÈÃoracleÇÖÈëÎÒµÄϵͳ¡£¡£¡£囧
    °²×°Íê ......

oracle ѧϰ±Ê¼Ç

start d:\a.sql
@    d:\a.sql
edit [d:\a.sql]
spool d:\a.sql ½«ÆÁÉÏÄÚÈÝ Êä³öµ½Ö¸¶¨Îļþ
spool off
set linesize 320
set pagesize 100
set autoprint on
set serveroutput on
variable v1 refcursor 
exp imp ±¸·Ý »Ö
Ö»¶ÁÊÂÎñ
 set transaction read only
 Óô¦£¬ÉèÖà ......

oracleµ÷ÓÃjavaÀà±éÀú´ÅÅÌÎļþ

ÀûÓÃoracle×Ô´øµÄutl_file°ü¿ÉÒÔ·ÃÎÊ´ÅÅÌÎļþ£¬µ«ÓиöÏÞÖÆ--ÎÞ·¨·ÃÎÊÎļþ¼Ð£¿Ê²Ã´Òâ˼ÄØ£¿¾ÍÊÇ˵oracleÖ»ÄÜ·ÃÎÊÖ¸¶¨µÄÎļþ£¬¶ø²»ÄÜ·ÃÎÊÎļþ¼ÐϵÄδ֪Îļþ¡£ËùÒÔ£¬Èç¹ûҪͨ¹ýoracleÈ¥±éÀúijָ¶¨Â·¾¶ÏµÄËùÓÐÎļþ£¬sorry, impossible! µ«ÊÇ£¬ÓÐÒ»ÖÖÌæ´ú·½°¸¿ÉÒÔÖúÄãÒ»±ÛÖ®Á¦£¡
ÖÚËùÖÜÖªjavaÖ®FileÀàÖ¸ÏòµÄ¿ÉÒÔÊÇĿ¼Ҳ¿ÉÒÔÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ