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

set autotrace in SQL*Plus

set autotrace off  
set autotrace on  
set autotrace traceonly  
 
set autotrace on explain  
set autotrace on statistics  
set autotrace on explain statistics  
 
set autotrace traceonly explain  
set autotrace traceonly statistics  
set autotrace traceonly explain statistics  
 
set autotrace off explain  
set autotrace off statistics  
set autotrace off explain statistics 
set autotrace off
set autotrace on
set autotrace traceonly
set autotrace on explain
set autotrace on statistics
set autotrace on explain statistics
set autotrace traceonly explain
set autotrace traceonly statistics
set autotrace traceonly explain statistics
set autotrace off explain
set autotrace off statistics
set autotrace off explain statistics
 
ÉèÖÃautotraceÔÊÐíÏÔʾDMLÓï¾äµÄһЩͳ¼ÆÐÅÏ¢ºÍ/»ò²éѯ¼Æ»®¡£
set autotrace on: ΪÓï¾äÏÔʾͳ¼ÆÐÅÏ¢ºÍÖ´Ðмƻ®¡£
set autotrace on explain: Ö»ÏÔʾִÐмƻ®¡£
set autotrace on statistics: Ö»ÏÔʾͳ¼ÆÐÅÏ¢¡£
set autotrace traceonly: ÏÔʾִÐмƻ®ºÍͳ¼ÆÐÅÏ¢£¬µ«ÊÇ´òÓ¡²éѯ½á¹û¡£
set autotrace off: ¹Ø±Õautotrace
Èç¹ûÓÃstatisticsÑ¡Ïî´ò¿ªautotrace£¬ÄÇô½«ÏÔʾÏÂÃæµÄͳ¼ÆÐÅÏ¢£º
recursive calls
db block gets
consistent gets
physical reads
redo size
bytes sent via SQL*Net to client
bytes received via SQL*Net from client
SQL*Net roundtrips to/from client
sorts (memory)
sorts (disk)
ǰÖÃÌõ¼þ
autotraceµÄÖ´Ðмƻ®ÌØÐÔÐèÒª´´½¨Ò»¸öplan_table±í£¬¿ÉÒÔÓýű¾
$ORACLE_HOME/rdbms/admin/utlxplan.sql ´´½¨
ͳ¼ÆÌØÐÔÐèÒªÓû§¾ßÓÐv_$sesstat, v_$statname ºÍ v_$session±íÉϵIJéѯȨÏÞ¡£
Oracle°²×°Ê±¸½´øµÄ$ORACLE_HOME/sqlplus/admin/plustrce.sql »á°²×°plustrace½ÇÉ«£¬plustrace½ÇÉ«±»ÊÚÓèÁËÕâЩ²éѯȨÏÞ¡£Èç¹ûplustrace½ÇÉ«±»ÊÚÓèÓû§£¬ÄÇôËû¾Í¿ÉÒÔ¾ßÓдò¿ªautotraceµÄȨÏÞ¡£»òÕßÄãÒ²¿ÉÒÔ°Ñplustrace½ÇÉ«ÊÚÓèpublic¡£
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/zjliu1984/archive/2009/07/01/43129


Ïà¹ØÎĵµ£º

SQL SERVER ÓëACCESS¡¢EXCELµÄÊý¾Ýת»»

ÊìϤSQL SERVER 2000µÄÊý¾Ý¿â¹ÜÀíÔ±¶¼ÖªµÀ£¬ÆäDTS¿ÉÒÔ½øÐÐÊý¾ÝµÄµ¼Èëµ¼³ö£¬Æäʵ£¬ÎÒÃÇÒ²¿ÉÒÔʹÓÃTransact-SQLÓï¾ä½øÐе¼Èëµ¼³ö²Ù×÷¡£ÔÚTransact-SQLÓï¾äÖУ¬ÎÒÃÇÖ÷ҪʹÓÃOpenDataSourceº¯Êý¡¢OPENROWSET º¯Êý£¬¹ØÓÚº¯ÊýµÄÏêϸ˵Ã÷£¬Çë²Î¿¼SQLÁª»ú°ïÖú¡£ÀûÓÃÏÂÊö·½·¨£¬¿ÉÒÔÊ®·ÖÈÝÒ×µØÊµÏÖSQL SERVER¡¢ACCESS¡¢EXCELÊý¾Ýת»»£ ......

ʹÓÃSQLServerÄ£°åÀ´Ð´¹æ·¶µÄSQLÓï¾ä

Èç¹ûÄã¾­³£Óöµ½ÏÂÃæµÄÎÊÌ⣬Äã¾ÍÒª¿¼ÂÇʹÓÃSQL ServerµÄÄ£°åÀ´Ð´¹æ·¶µÄSQLÓï¾äÁË£º
SQL³õѧÕß¡£
¾­³£Íü¼Ç³£ÓõÄDML»òÊÇDDL SQL Óï¾ä¡£
ÔÚ¶àÈË¿ª·¢Î¬»¤µÄSQLÖУ¬Ã¿¸öÈ˶¼ÓÐ×Ô¼ºµÄSQLϰ¹ß£¬Ã»ÓÐÒ»Ì×ͳһµÄ¹æ·¶¡£
ÔÚSQL Server Management StudioÖУ¬ÒѾ­¸ø´ó¼ÒÌṩÁ˺ܶೣÓõÄÏÖ³ÉSQL¹æ·¶Ä£°å¡£
SQL Server Management ......

ͨ¹ýMsSqlDump¹¤¾ßÉú³Ésql½Å±¾²¢µ¼Èë

µ¼Èë·½·¨£ºÍ¨¹ýMsSqlDump¹¤¾ßÉú³Ésql½Å±¾²¢µ¼Èë
µ¼ÈëMSSQLÊý¾Ý¿âµÄµÚÈýÖÖ·½·¨£¬ÊÇͨ¹ýµÚÈý·½MsSqlDump¹¤¾ßÉú³Ésql²¢µ¼Èë¡£
ÊÊÓ÷¶Î§£ºÃ»Óд´½¨Êý¾Ý¿âµÄsql½Å±¾£¬µ«ÊÇÓÐÕýÔÚÔËÐеÄÊý¾Ý¿â
ÕâÖÖ±¸·Ý·½·¨£¬ÐèÒª½èÖúµÚÈý·½¹¤¾ß£ºMsSqlDump ¡£
Ê×ÏÈÔÚ±¾µØ¿ª·¢»·¾³ÉÏ£¬´ò¿ªMSSQLÆóÒµ¹ÜÀíÆ÷£¬ÕÒµ½ÕýÔÚÔËÐеÄÊý¾Ý¿â¡£ÀýÈçÒª¶Ô±¾ ......

aspµ÷ÓÃsql server´æ´¢¹ý³Ì

ASPµ÷Óô洢¹ý³ÌµÄ·½·¨£º    
 
----  ¡¡¡¡µ÷Óô洢¹ý³ÌµÄ·½·¨ÐèҪʹÓÃADOµÄCommand¶ÔÏó¡£Command¶ÔÏóÊǶÔÒ»¸öÊý¾ÝÔ´ÔËÐÐÌØ¶¨ÃüÁîµÄ¶¨Ò壨ÀýÈ磬һ¸öSQL²éѯ»òÒ»¸öSQL´æ´¢¹ý³Ì£©¡£ÏÂÃæÒÔMS  SQL  SERVER6.5Ϊºǫ́Êý¾Ý¿â£¬½éÉÜASPµ÷Óô洢¹ý³ÌµÄ·½·¨¡£    
 
----  ¡ ......

ZZ saµÇ½ʧ°Ü SQL Server´íÎó18456µÄ½â¾ö·½·¨

×òÌìÎÒµÄSQL£¨Microsoft SQL Server 2005 £©µÇ¼²»ÉÏÈ¥ÁË£¬Ô­À´ÊdzöÏÖÁ˼¸¸öСÎÊÌ⣬ÏÖÔڼǼһÏÂÎҵĽâ¾öÕ⼸¸öÇé¿öµÄ°ì·¨¡££¨½â¾ö·½·¨ÓкܶàÖÖ£¬ÕâЩֻÊÇÎҵĽâ¾ö·½·¨£¬½ö¹©²Î¿¼£©
²éÕÒÎÊÌâµÄ¹ý³Ì£º£¨×¢£ºÓÃwindowsÕ˺ݹÊÇ¿ÉÒԵǼµÄ£©
µÚÒ»²½£º Æô¶¯ËùÓÐÓëSQLÓйصķþÎñ£¬ÎÊÌâÒÀ¾É£»
µÚ¶þ²½£º ²é¿´windows·À»ðǽ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ