ORACLE¶àÓû§Ö®¼ä¹²Ïí´æ´¢¹ý³Ì
ÔÚÊý¾Ý¿âÖУ¬ÓÐÁ½¸öÓû§usera£¬userb£¬Èç¹ûÔÚbÖÐÓиö´æ´¢¹ý³Ì£¬ÐèÒªÓÃaµÄÓû§È¥µ÷Ó㬣¨±ÈÈçbÊÇȨÏ޺ܸߵÄÓû§£¬¶øaÖ»ÊÇÆÕͨÓû§£¬ÎªÁËÆÁ±Î¸øa×îСµÄȨÏÞÖ»ÄÜÈç´Ë£©¡£ÓÚÊÇ£¬ÎÒ¾ÍÓÃgrant execute on ´æ´¢¹ý³ÌÃû to usera¡£ÕâÑù£¬ÔÚaµÄÓû§ÏÂÃæ¾ÍÄÜ¿´µ½´æ´¢¹ý³ÌÁË£¬µ«ÊÇÎÒÖ´ÐÐÒԺ󣬻¹ÊDZ¨ora-1031£¬ËµÊÇûÓÐȨÏÞ£¬¾¹ýÓÚ¸ßÊÖ½»Á÷£¬ËµÊÇÐèÒª½«´æ´¢¹ý³ÌÖ®ÖÐÉæ¼°µÄ±íµÄ²éѯȨÏÞ¸³Öµ¸øa¡£ÓÚÊÇÎÒÔٴνøÐи³È¨£¬µ«ÊÇÎҵĴ洢¹ý³ÌÖÐµÄ±í¶¼ÊǶ¯Ì¬Éú³ÉµÄ£¬Ò»ÌìÒ»¸ö£¬¶øÓÖ²»Ïë¸øËûanyµÄȨÏÞ¡£±»±ÆÎÞÄΣ¬ÓÖڤ˼¿àÏ룬·¢ÏÖ´æ´¢¹ý³ÌÄܹ»Õý³£µÄ¼Ç¼ÈÕÖ¾£¬¾ÍÊDzÙ×÷ÈÕÖ¾±í¡£ÓÚÊǵóö½áÂÛ£ºÈç¹û¸øÁíÒ»¸öÓû§¸³È¨ÒԺ󣬵±ËüÖ´Ðд洢¹ý³Ìʱ£¬¾ÍÏ൱ÓÚ´æ´¢¹ý³ÌÔÚ×Ô¼ºµÄÓû§ÏÂÖ´ÐУ¬²»±ØÔÙ¸ø±í¸³È¨ÁË£¬°Ñ¸ßÊֵĽáÂÛÍÆ·ÁË¡£µ«ÊÇΪʲô»¹ÓÐ1031µÄȨÏÞÎÊÌâÄØ£¬¼ÌÐø¸ú×Ù£¡·¢ÏÖÓï¾äexecute immediateÓï¾äÖÐÓÐtruncateÓï¾ä£¬ÐèÒªÇå³ýa²»Óû§µÄ±í¡£¶øbÓû§Ã»ÓÐdrop any table»òÕßaÓû§±íµÄȨÏÞ£¡Õâ´ÎÊÇÕæÕýµÄÎÊÌ⣬ËùÔÚ£¬ÓÚÊǸ³È¨£¬ÎÊÌâOK¡£
½áÂÛ£º´æ´¢¹ý³Ì¸³È¨ÒÔºó£¬Ïà¹ØµÄÈκαíºÍ¹ý³Ì¶¼²»ÓÃÔٴθ³È¨¡£¾ÍÏñÓïÑÔ¶ÔÍâÌṩµÄ·½·¨Ò»Ñù£¡
execute immediate “truncate”Óï¾äÒ»¶¨ÒªÓÐɾ³ý±íµÄȨÏÞ£¡£¡
Ïà¹ØÎĵµ£º
windowÏÂÃüÁîÐÐÆô¶¯oracle·þÎñ
2008-11-12 22:30
Ò»¡¢¶ÀÁ¢Æô¶¯£º
Microsoft Windows 2000 [Version 5.00.2195]
(C) °æȨËùÓÐ 1985-2000 Microsoft Corp.
#########################################################
¼ì²é¼àÌýÆ÷״̬£º
#########################################################
E:">lsnrctl s ......
OracleÊý¾Ýµ¼Èëµ¼³öimp/exp¾ÍÏ൱ÓÚoracleÊý¾Ý»¹ÔÓ뱸·Ý¡£expÃüÁî¿ÉÒÔ°ÑÊý¾Ý´ÓÔ¶³ÌÊý¾Ý¿â·þÎñÆ÷µ¼³öµ½±¾µØµÄdmpÎļþ£¬impÃüÁî¿ÉÒÔ°ÑdmpÎļþ´Ó±¾µØµ¼Èëµ½Ô¶´¦µÄÊý¾Ý¿â·þÎñÆ÷ÖС£ ÀûÓÃÕâ¸ö¹¦ÄÜ¿ÉÒÔ¹¹½¨Á½¸öÏàͬµÄÊý¾Ý¿â£¬Ò»¸öÓÃÀ´²âÊÔ£¬Ò»¸öÓÃÀ´ÕýʽʹÓá£
Ö´Ðл·¾³£º¿ÉÒÔÔÚSQLPLUS.EXE»òÕßDOS£¨ÃüÁîÐУ©ÖÐÖ´Ð ......
¾³£ÔÚƽʱµÄ¿ª·¢ÖÐÒªÓõ½oracleµÄÈÕÆÚº¯Êý£¬Ã¿´Î¶¼ÒªÉÏÍøÈ¥²é£¬ÏÖÔÚÓеãʱ¼ä£¬×Ô¼ºÊÕ¼¯ÕûÀíÁËһϡ£ÌùÔÚÕâÀ·½±ã×Ô¼º£¬Ò²·½±ã´ó¼Ò¡£
----------------------------------------------------------------------------------------------------------------------------------
³£ÓÃÈÕÆÚÐͺ¯Êý
1¡£Sysdate µ±Ç°È ......