Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

SQL2005ºÍ(Excel |access)Ö®¼äµÄÊý¾Ýµ¼Èëµ¼³ö


Sql´úÂë
--²ÉÓÃSQLÓï¾äʵÏÖsql2005ºÍExcel Êý¾ÝÖ®¼äµÄÊý¾Ýµ¼Èëµ¼³ö£¬ÔÚÍøÉÏÕÒÀ´Ò»--Ï£¬ÊµÏÖ·½·¨ÊÇÕâÑùµÄ£º    
  
  
--Excel---->SQL2005  µ¼È룺    
  
  
select * into useinfo from O ......

JAVAÁ¬½ÓACCESS£¬SQL Server,MySQL,Oracle

import java.sql.*;
/*
* JAVAÁ¬½ÓACCESS£¬SQL Server,MySQL,OracleÊý¾Ý¿â
*
* */
public class JDBC {
  
public static void main(String[] args)throws Exception {
  
   Connection conn=null;
  
       //====Á¬½ÓACCESSÊý¾Ý¿â ......

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

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

sqlµ¼³öÊý¾Ý¿âʱ±¨ "µÇ½ xxx ʧ°Ü",ÎÞ·¨Íê³É

sqlµ¼³öÊý¾Ý¿âʱ±¨ "µÇ½ xxx ʧ°Ü",ÎÞ·¨Íê³É
µ¼³öÊý¾Ý¿âʱʧ°Ü,µã»÷ÏëÏëÐÅϢʱÏÔʾ:
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]µÇ½ xxx ʧ°Ü
ÒòÊý¾Ý¿âÊÇÖ±½ÓÒûÓÃËûÈ˵Ä,Ìí¼Ó¶ø³É,Òò´Ë²»È·¶¨ xxx µ½µ×ÊÇʲô,Ö»ºÃ½«Ïà¹ØÏîÒÀ´Îɾ³ý
½«Í¬Ãû xxx ±íɾ³ý,ɾ³ýÏà¹ØÊÓͼ,ÖØÊÔ,²»ÐÐ.
ɾ³ýÈ«²¿ÊÓͼ,²»ÐÐ.
żȻ ......

sqlÓï¾äÓÅ»¯

²Ù×÷·ûÓÅ»¯
IN ²Ù×÷·û
ÓÃINд³öÀ´µÄSQLµÄÓŵãÊDZȽÏÈÝÒ×д¼°ÇåÎúÒ×¶®£¬Õâ±È½ÏÊʺÏÏÖ´úÈí¼þ¿ª·¢µÄ·ç¸ñ¡£
µ«ÊÇÓÃINµÄSQLÐÔÄÜ×ÜÊDZȽϵ͵ģº
    Êý¾Ý¿âÊÔͼ½«Æäת»»³É¶à¸ö±íµÄÁ¬½Ó£¬Èç¹ûת»»²»³É¹¦ÔòÏÈÖ´ÐÐINÀïÃæµÄ×Ó²éѯ£¬ÔÙ²éѯÍâ²ãµÄ±í¼Ç¼£¬Èç¹ûת»»³É¹¦ÔòÖ±½Ó²ÉÓöà¸ö±íµÄÁ¬½Ó·½Ê½²éѯ¡£Óɴ˿ɼû ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ