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

oracle ÐÔÄÜÖ¸±ê


Ö¸±êÃû³Æ Ö¸±êÃèÊö Ö¸±ê·¶Î§ Ö¸±êµ¥Î»
1£®¹ØÓÚʵÀýЧÂÊ£¨Instance Efficiency Percentages£©µÄÐÔÄÜÖ¸±ê
»º³åÇøδµÈ´ýÂÊ
(Buffer Nowait %) Ö¸ÔÚ»º³åÇøÖлñÈ¡BufferµÄδµÈ´ý±ÈÂÊ¡£ ¸ÃÖ¸±êµÄÖµÓ¦½Ó½ü100%£¬Èç¹û¸ÃÖµ½ÏµÍ£¬Ôò¿ÉÄÜÒªÔö´óbuffer cache¡£ %
Redo»º³åÇøδµÈ´ýÂÊ
(Redo NoWait %) Ö¸ÔÚRedo»º³åÇø»ñÈ¡BufferµÄδµÈ´ý±ÈÂÊ¡£ ¸ÃÖ¸±êµÄÖµÓ¦½Ó½ü100%£¬Èç¹û¸ÃÖµ½ÏµÍ£¬ÔòÓÐ2ÖÖ¿ÉÄܵÄÇé¿ö£º
1£© online redo logûÓÐ×ã¹»µÄ¿Õ¼ä£»
2£©logÇл»ËٶȽÏÂý¡£ %
»º³åÇøÃüÖÐÂÊ
(Buffer Hit %) Ö¸Êý¾Ý¿éÔÚÊý¾Ý»º³åÇøÖеÄÃüÖÐÂÊ¡£ ¸ÃÖ¸±êµÄֵͨ³£Ó¦ÔÚ90%ÒÔÉÏ£¬·ñÔò£¬ÐèÒªµ÷Õû¡£Èç¹û³ÖÐøСÓÚ90%£¬¿ÉÄÜÒª¼Ó´ódb_cache_size¡£µ«ÓÐʱ£¬»º´æÃüÖÐÂʵͲ¢²»Òâζ×ÅcacheÉèÖÃСÁË£¬¿ÉÄÜÊÇDZÔÚµÄÈ«±íɨÃè½µµÍÁË»º´æÃüÖÐÂÊ¡£ %
ÄÚ´æÅÅÐòÂÊ
(In-memory Sort %) Ö¸ÅÅÐò²Ù×÷ÔÚÄÚ´æÖнøÐеıÈÂÊ¡£µ±²éѯÐèÒªÅÅÐòµÄʱºò£¬Êý¾Ý¿â»á»°Ê×ÏÈÑ¡ÔñÔÚÄÚ´æÖнøÐÐÅÅÐò£¬µ±ÄÚ´æ´óС²»×ãµÄʱºò£¬½«Ê¹ÓÃÁÙʱ±í¿Õ¼ä½øÐдÅÅÌÅÅÐò£¬µ«´ÅÅÌÅÅÐòЧÂʺÍÄÚ´æÅÅÐòЧÂÊÏà²îºÃ¼¸¸öÊýÁ¿¼¶¡£ ¸ÃÖ¸±êµÄÖµÓ¦½Ó½ü100%£¬Èç¹ûÖ¸±êµÄÖµ½ÏµÍ£¬Ôò±íʾ³öÏÖÁË´óÁ¿ÅÅÐòʱµÄ´ÅÅÌI/O²Ù×÷£¬¿É¿¼ÂǼӴósort_area_size²ÎÊýµÄÖµ¡£ %
¹²ÏíÇøÃüÖÐÂÊ
(Library Hit %) ¸ÃÖ¸±êÖ÷Òª´ú±ísqlÔÚ¹²ÏíÇøµÄÃüÖÐÂÊ¡£ ¸ÃÖ¸±êµÄֵͨ³£Ó¦ÔÚ95%ÒÔÉÏ£¬·ñÔòÐèÒª¿¼ÂǼӴó¹²Ïí³Ø£¨ÐÞ¸Äshared_pool_size²ÎÊýÖµ£©£¬°ó¶¨±äÁ¿£¬ÐÞ¸Äcursor_sharingµÈ²ÎÊý¡£ %
Èí½âÎöµÄ°Ù·Ö±È
(Soft Parse %) ¸ÃÖ¸±êÊÇÖ¸Oracle¶ÔsqlµÄ½âÎö¹ý³ÌÖУ¬Èí½âÎöËùÕ¼µÄ°Ù·Ö±È¡£Èí½âÎö£¨soft parse£©ÊÇÖ¸µ±Oracle½Óµ½ClientÌá½»µÄSqlºó»áÊ×ÏÈÔÚ¹²Ïí³Ø£¨Shared Pool£©ÀïÃæÈ¥²éÕÒÊÇ·ñÓÐ֮ǰÒѾ­½âÎöºÃµÄÓë¸Õ½Óµ½µÄÕâÒ»¸öSqlÍêÈ«ÏàͬµÄSql¡£µ±·¢ÏÖÓÐÏàͬµÄSql¾ÍÖ±½ÓÓÃ֮ǰ½âÎöºÃµÄ½á¹û£¬Õâ¾Í½ÚÔ¼Á˽âÎöʱ¼äÒÔ¼°½âÎöʱºòÏûºÄµÄCPU×ÊÔ´¡£ ¸ÃÖ¸±êµÄֵͨ³£Ó¦ÔÚ95%ÒÔÉÏ£¬Èç¹ûµÍÓÚ80%£¬ÄÇô¾Í¿ÉÄÜsql»ù±¾Ã»±»ÖØÓã¬sqlûÓа󶨱äÁ¿£¬ÐèÒª¿¼Âǰ󶨱äÁ¿¡£ %
ãÅÃüÖÐÂÊ
(Latch Hit %) Ö¸»ñµÃLatchµÄ´ÎÊýÓëÇëÇóLatchµÄ´ÎÊýµÄ±ÈÂÊ¡£
¸ÃÖ¸±êµÄÖµÓ¦½Ó½ü100%£¬Èç¹ûµÍÓÚ99%£¬¿ÉÒÔ¿¼ÂDzÉÈ¡Ò»¶¨µÄ·½·¨À´½µµÍ¶ÔLatchµÄÕùÓᣠ%
SQLÓï¾äÖ´ÐÐÓë
½âÎöµÄ±ÈÂÊ
(Execute to Parse %) Ö¸SQLÓï¾äÖ´ÐÐÓë½âÎöµÄ±ÈÂÊ¡£SQLÓï¾äÒ»´Î½âÎöºóÖ´ÐеĴÎÊýÔ½¶à£¬¸Ã±ÈÂÊÔ½¸ß£¬ËµÃ÷SQLÓï¾äµÄÖØÓÃÐԺܺá£
¸ÃÖ¸±êµÄÖµÓ¦¾¡¿ÉÄܵ½¸ß£¬Èç¹û¹ýµÍ£¬¿ÉÒÔ¿¼ÂÇÉèÖÃ
session_cached_cursors²ÎÊý¡£ %
¹²Ïí³ØÄÚ´


Ïà¹ØÎĵµ£º

Oracle Logminer

LogminerÊÇoracle´Ó8i¿ªÊ¼ÌṩµÄÓÃÓÚ·ÖÎöÖØ×öÈÕÖ¾ÐÅÏ¢µÄ¹¤¾ß£¬Ëü°üÀ¨DBMS_LOGMNRºÍDBMS_LOGMNR_DÁ½¸öpackage£¬ºó±ßµÄDÊÇ×ÖµäµÄÒâ˼¡£Ëü¼ÈÄÜ·ÖÎöredo log file£¬Ò²ÄÜ·ÖÎö¹éµµºóµÄarchive log file¡£ÔÚ·ÖÎöÈÕÖ¾µÄ¹ý³ÌÖÐÐèҪʹÓÃÊý¾Ý×ֵ䣬һ°ãÏÈÉú³ÉÊý¾Ý×ÖµäÎļþºóʹÓã¬10gÒÔºóµÄ°æ±¾»¹¿ÉÒÔʹÓÃÔÚÏßÊý¾Ý×ֵ䡣
Logminer¿ÉÒÔ ......

OracleÊý¾Ý¿âÃÜÂëÎļþµÄ´´½¨£º

¡¡¡¡ÔÚʹÓÃOracle Instance Manager´´½¨Ò»Êý¾Ý¿âʵÀýµÄʱºî£¬ÔÚORACLE_HOME\DATABASEĿ¼Ï»¹×Ô¶¯´´½¨ÁËÒ»¸öÓëÖ®¶ÔÓ¦µÄÃÜÂëÎļþ£¬ÎļþÃûΪPWDSID.ORA£¬ÆäÖÐSID´ú±íÏàÓ¦µÄOracleÊý¾Ý¿âϵͳ±êʶ·û¡£´ËÃÜÂëÎļþÊǽøÐгõʼÊý¾Ý¿â¹ÜÀí¹¤×÷µÄ»ù´¡¡£ÔÚ´ËÖ®ºó£¬¹ÜÀíÔ±Ò²¿ÉÒÔ¸ù¾ÝÐèÒª£¬Ê¹Óù¤¾ßORAPWD.EXEÊÖ¹¤´´½¨ÃÜÂëÎļþ£¬ÃüÁî¸ñʽ ......

OracleÊý¾Ý¿âÃÜÂëÎļþÖÐÔö¼Ó¡¢É¾³ýÓû§£º

µ±³õʼ»¯²ÎÊýREMOTE_LOGIN_PASSWORDFILEÉèÖÃΪEXCLUSIVEʱ£¬ÏµÍ³ÔÊÐí³ýINTERNAL/SYSÒÔÍâµÄÆäËûÓû§ÒÔ¹ÜÀíÔ±Éí·Ý´ÓÔ¶¶Ë»ò±¾»úµÇ¼µ½OracleÊý¾Ý¿âϵͳ£¬Ö´ÐÐÊý¾Ý¿â¹ÜÀí¹¤×÷;ÕâЩÓû§Ãû±ØÐë´æÔÚÓÚÃÜÂëÎļþÖУ¬ÏµÍ³²ÅÄÜʶ±ðËûÃÇ¡£ÓÉÓÚ²»¹ÜÊÇÔÚ´´½¨Êý¾Ý¿âʵÀýʱ×Ô¶¯´´½¨µÄÃÜÂëÎļþ£¬»¹ÊÇʹÓù¤¾ßORAPWD.EXEÊÖ¹¤´´½¨µÄÃÜÂëÎļþ£¬¶ ......

Java²Ù×÷OracleÊý¾Ý¿â£¨½¨±í£¬²åÊý¾Ý£¬É¾³ý£©

ÓÃjpa²»Äܽ¨±í£¬sqlÓï¾äÊǶԵģ¬²»¹ý¾ÍÊDz»Äܽ¨£¬Í¬ÑùµÄsql£¬ÔÚÏÂÃæµÄjdbcÖоͿÉÒÔ£¬¿ÉÄÜÊÇ¿ò¼ÜµÄÏÞÖÆ£¬Ï£Íû¸ßÈËÖ¸µã
import java.net.URL;
import java.sql.*;
public class Create {
public Create() {
}
public static void main(String[] args){
String url = "jdbc:oracle:thin:@10.0.1.3:1521:SDCDB" ......

oracleÀï³£ÓÃÃüÁî

µÚÒ»Õ£ºÈÕÖ¾¹ÜÀí
1.forcing log switches
sql> alter system switch logfile;
2.forcing checkpoints
sql> alter system checkpoint;
3.adding online redo log groups
sql> alter database add logfile [group 4]
sql> ('/disk3/log4a.rdo','/disk4/log4b.rdo') size 1m;
4.adding online re ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ