²é¿´oracleÖ´Ðмƻ®
³£Ó÷½·¨ÓÐÒÔϼ¸ÖÖ£º
Ò»¡¢Í¨¹ýPL/SQL Dev¹¤¾ß
1¡¢Ö±½ÓFile->New->Explain Plan Window£¬ÔÚ´°¿ÚÖÐÖ´ÐÐsql¿ÉÒԲ鿴¼Æ»®½á¹û¡£ÆäÖУ¬Cost±íʾcpuµÄÏûºÄ£¬µ¥Î»Îªn%£¬Cardinality±íʾִÐеÄÐÐÊý£¬µÈ¼ÛRows¡£
2¡¢ÏÈÖ´ÐÐ EXPLAIN PLAN FOR select * from tableA where paraA=1£¬ÔÙ select * from table(DBMS_XPLAN.DISPLAY)±ã¿ÉÒÔ¿´µ½oracleµÄÖ´Ðмƻ®ÁË£¬¿´µ½µÄ½á¹ûºÍ1ÖеÄÒ»Ñù£¬ËùÒÔʹÓù¤¾ßµÄʱºòÍƼöʹÓÃ1·½·¨¡£
×¢Ò⣺PL/SQL Dev¹¤¾ßµÄCommand windowÖв»Ö§³Öset autotrance onµÄÃüÁî¡£»¹ÓÐʹÓù¤¾ß·½·¨²é¿´¼Æ»®¿´µ½µÄÐÅÏ¢²»È«£¬ÓÐЩʱºòÎÒÃÇÐèÒªsqlplusµÄÖ§³Ö¡£
¶þ¡¢Í¨¹ýsqlplus
1¡¢Ò»°ãÇé¿ö¶¼ÊDZ¾»úÁ´½ÓÔ¶³Ì·þÎñÆ÷£¬ËùÒÔÃüÁîÈçÏ£º
sqlplus user/pwd@serviceName
´Ë´¦µÄserviceNameΪtnsnames.oraÖж¨ÒåµÄÃüÃû¿Õ¼ä¡£
2¡¢Ö´ÐÐset autotrace on£¬È»ºóÖ´ÐÐsqlÓï¾ä£¬»áÁгöÒÔÏÂÐÅÏ¢£º
¡£¡£¡££¨Ê¡ÂÔһЩÐÅÏ¢£©
ͳ¼ÆÐÅÏ¢
----------------------------------------------------------
1 recursive calls £¨¹éµ÷ÓôÎÊý£©
0 db block gets
2 consistent gets
0 physical reads £¨ÎïÀí¶Á——Ö´ÐÐSQLµÄ¹ý³ÌÖУ¬´ÓÓ²ÅÌÉ϶ÁÈ¡µÄÊý¾Ý¿é¸öÊý£©
0 redo size (ÖØ×öÊý——Ö´ÐÐSQLµÄ¹ý³ÌÖУ¬²úÉúµÄÖØ×öÈÕÖ¾µÄ´óС)
358 bytes sent via SQL*Net to client
366 bytes received via SQL*Net from client
1 SQL*Net roundtrips to/from client
0 sorts (memory)  
Ïà¹ØÎĵµ£º
½ñÌìÁ˽âÁËһϿªÔ´dspaceÈí¼þ£¬ÏÖ½«°²×°¹ý³Ì×ܽáÈçÏ£º
1¡¢»·¾³ÉèÖÃ
1.1 ÏÂÔØjdk1.6.x²¢°²×°,°²×°Ê±Ñ¡ÔñĬÈÏ°²×°Â·¾¶¼´¿É
Ò»°ãΪ C:\Program Files\Java\jdk1.6.0_10
ÉèÖÃJAVA_HOME,ÉèÖÃCLASSPATHºÍPATH
2¡¢×é¼þ×¼±¸
......
ºÃ¾Ã¾ÍÏë¿´oracleÁË£¬ÓÉÓÚ×Ô¼ºÌ«ÀÁ£¬×î½ü²Å¿ªÊ¼¡£Ï£ÍûÒÔºóÄÜÑø³ÉºÃÏ°¹ß¡£
Ò»¡¢oracle 10g ·þÎñÆ÷
1.Ò»¸öoracle 10g·þÎñÆ÷°üº¬Ò»¸öoracleÊý¾Ý¿âºÍÒ»¸öoracle·þÎñÆ÷ʵÀý¡£
2.ÿµ±Êý¾Ý¿âÆô¶¯Ê±ºò£¬ÏµÍ³È«¾ÖÇø£¨SGA£©±»·ÖÅ䣬²¢Æô¶¯ÁËoracleºǫ́½ø³Ì¡£SGAÊÇÓÃÓÚÊý¾Ý¿âÓû§¹²ÏíÊý¾Ý¿âÐÅÏ¢µÄÄÚ´æÇøÓ ......
-----------------------------------------------------------------------------------
DOS:
1. sqlplus
2.
Óû§Ãû:sqlplus ¡¢conn
ÃÜÂë:as sysdba ¡¢as sysdba
½âËø£º
3. ALTER USER DBSNMP ACCOUNT UNLOCK£»
½âËø£ºsystem
4. alter user system identified by manage ......
ÓÐÈçϱíTest
City People Make
¹ãÖÝ 1 A
¹ãÖÝ 2 B
¹ãÖÝ 3 C
ÉϺ£ 4 A
ÉϺ£ 5 ......