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

ORACLEÕï¶Ïʼþ


 
 
OracleΪRDBMSÌṩÁ˶àÖÖµÄÕï¶Ï¹¤¾ß£¬Õï¶Ïʼþ(Event)ÊÇÆäÖÐÒ»ÖÖ³£ÓᢺÃÓõķ½·¨£¬ËüʹDBA¿ÉÒÔ·½±ãµÄת´¢Êý¾Ý¿â¸÷Öֽṹ¼°¸ú×ÙÌض¨Ê¼þµÄ·¢Éú.
Ò»¡¢EventµÄͨ³£¸ñʽ¼°·ÖÀà
1¡¢  ͨ³£¸ñʽÈçÏ£º
EVENT="<ʼþÃû³Æ><¶¯×÷><¸ú×ÙÏîÄ¿><·¶Î§ÏÞ¶¨>"
2¡¢  Event·ÖÀà
Õï¶Ïʼþ´óÌåÉÏ¿ÉÒÔ·ÖΪËÄÀࣺ
a£®  ת´¢Ààʼþ£ºËüÃÇÖ÷ÒªÓÃÓÚת´¢OracleµÄһЩ½á¹¹£¬ÀýÈçת´¢Ò»Ï¿ØÖÆÎļþ¡¢Êý¾ÝÎļþÍ·µÈÄÚÈÝ¡£
b£®  ²¶×½Ààʼþ£ºËüÃÇÓÃÓÚ²¶×½Ò»Ð©ErrorʼþµÄ·¢Éú£¬ÀýÈ粶׽һÏÂORA-04031·¢ÉúʱһЩRdbmsÐÅÏ¢£¬ÒÔÅжÏÊÇBug»¹ÊÇÆäËüÔ­ÒòÒýÆðµÄÕâ·½ÃæµÄÎÊÌâ¡£
c£®  ¸Ä±äÖ´ÐÐ;¾¶Ààʼþ£ºËüÃÇÓÃÓÚ¸ÄÖ÷һЩOracleÄÚ²¿´úÂëµÄÖ´ÐÐ;¾¶£¬ÀýÈçÉèÖÃ10269½«»áʹSmon½ø³Ì²»È¥ºÏ²¢ÄÇЩFreeµÄ¿Õ¼ä¡£
d£®  ¸ú×ÙÀàʼþ£ºÕâÃÇÓÃÓÚ»ñȡһЩ¸ú×ÙÐÅÏ¢ÒÔÓÃÓÚSqlµ÷Óŵȷ½Ã棬×îµäÐ͵ıãÊÇ10046ÁË£¬½«»á¶ÔSql½øÐиú×Ù¡£
3¡¢ ˵Ã÷:
a£® Èç¹ûimmediate·ÅÔÚµÚÒ»¸ö˵Ã÷ÊÇÎÞÌõ¼þʼþ£¬¼´ÃüÁî·¢³ö¼´×ª´¢µ½¸ú×ÙÎļþ¡£
b£® trace nameλÓÚµÚ¶þ¡¢ÈýÏ³ýËüÃÇÍâµÄÆäËüÏÞ¶¨´ÊÊǹ©OracleÄÚ²¿¿ª·¢×éÓõġ£
c£®  levelͨ³£Î»ÓÚ1-10Ö®¼ä(10046ÓÐʱÓõ½12)£¬10Òâζ×Åת´¢Ê¼þËùÓеÄÐÅÏ¢¡£ÀýÈ統ת´¢¿ØÖÆÎļþʱ£¬level1±íʾת´¢¿ØÖÆÎļþÍ·£¬¶ølevel 10±íÃ÷ת´¢¿ØÖÆÎļþÈ«²¿ÄÚÈÝ¡£
d£® ת´¢ËùÉú³ÉµÄtraceÎļþÔÚuser_dump_dest³õʼ»¯²ÎÊýÖ¸¶¨µÄλÖá£
¶þ¡¢ËµÒ»ËµÉèÖõÄÎÊÌâÁË
¿ÉÒÔÔÚinit.oraÖÐÉèÖÃËùÐèµÄʼþ£¬Õ⽫¶ÔËùÓлỰÆÚ´ò¿ªµÄ»á»°½øÐиú×Ù£¬Ò²¿ÉÒÔÓÃalter session set event µÈ·½·¨ÉèÖÃʼþ¸ú×Ù£¬Õ⽫´ò¿ªÕýÔÚ½øÐлỰµÄʼþ¸ú×Ù¡£
1¡¢ ÔÚinit.oraÖÐÉèÖøú×ÙʼþµÄ·½·¨
a£® Óï·¨
EVENT=”event Óï·¨|,level n|£ºevent Óï·¨|,level n|…”
b£® ¾ÙÀý
event=”10231 trace name context forever,level 10’
c£®  ¿ÉÒÔÕâÑùÉèÖöà¸öʼþ£º
EVENT="\
10231 trace name context forever, level 10:\
10232 trace name context forever, level 10"
2¡¢ ͨ¹ýAlter session/system set eventsÕâÖÖ·½·¨
¾Ù¸öÀý×Ó´ó¼Ò¾ÍÃ÷°×ÁË
Example:
  Alter session set events ‘immediate trace name controlf level 10’;
  Alter session set events ‘immediate trace name blockdump level 112511416’; (*)
ÔÚoracle8x¼°Ö®Éϵİ汾ҲÓÐÕâÑùµÄÓï


Ïà¹ØÎĵµ£º

ÈçºÎжÔØORACLE(ÍêÈ«¾­µä°æ)

Èí¼þ»·¾³£º
1¡¢Windows 2000+ORACLE 8.1.7
2¡¢ORACLE°²×°Â·¾¶Îª£ºC:\ORACLE
ʵÏÖ·½·¨£º
1¡¢¿ªÊ¼£­£¾ÉèÖã­£¾¿ØÖÆÃæ°å£­£¾¹ÜÀí¹¤¾ß£­£¾·þÎñ Í£Ö¹ËùÓÐOracle·þÎñ¡£
2¡¢¿ªÊ¼£­£¾³ÌÐò£­£¾Oracle - OraHome81£­£¾Oracle Installation Products£­£¾ Universal Installer жװËùÓÐOracle²úÆ·£¬µ«Universal Installer±¾Éí ......

¡¾×ª¡¿oracle´óÊý¾ÝÁ¿µÄµ¼ÈëºÍµ¼³ö

ÔÚoracleÖÐÅúÁ¿Êý¾ÝµÄµ¼³öÊǽèÖúsqlplusµÄspoolÀ´ÊµÏֵġ£ÅúÁ¿Êý¾ÝµÄµ¼ÈëÊÇͨ¹ýsqlloadÀ´ÊµÏֵġ£
´óÁ¿Êý¾ÝµÄµ¼³ö²¿·ÖÈçÏ£º
/***************************
 *  sql½Å±¾²¿·Ö demo.sql begin
 **************************/
/**************************
 * @author meconsea
 * @date 20050 ......

oracleÍü¼Çsys/system/scottÓû§µÄÃÜÂëÔõô°ì

Ò»¡¢Íü¼Ç³ýSYS¡¢SYSTEMÓû§Ö®ÍâµÄÓû§µÄµÇ¼ÃÜÂë¡£
    ÓÃSYS (»òSYSTEM)Óû§µÇ¼¡£
   
    CONN SYS/PASS_WORD AS SYSDBA;
    ʹÓÃÈçÏÂÓï¾äÐÞ¸ÄÓû§µÄÃÜÂë¡£
    ALTER USER user_name IDENTIFIED BY newpass;
    ......

Oracle·ÖÇø¼¼Êõ

ORACLEµÄ·ÖÇø(Partitioning Option)ÊÇÒ»ÖÖ´¦Àí³¬´óÐͱíµÄ¼¼Êõ¡£·ÖÇøÊÇÒ»ÖÖ“·Ö¶øÖÎÖ®”µÄ¼¼Êõ£¬Í¨¹ý½«´ó±íºÍË÷Òý·Ö³É¿ÉÒÔ¹ÜÀíµÄС¿é£¬´Ó¶ø±ÜÃâÁ˶Ôÿ¸ö±í×÷Ϊһ¸ö´óµÄ¡¢µ¥¶ÀµÄ¶ÔÏó½øÐйÜÀí£¬Îª´óÁ¿Êý¾ÝÌṩÁË¿ÉÉìËõµÄÐÔÄÜ¡£·ÖÇøͨ¹ý½«²Ù×÷·ÖÅä¸ø¸üСµÄ´æ´¢µ¥Ôª£¬¼õÉÙÁËÐèÒª½øÐйÜÀí²Ù×÷µÄʱ¼ä£¬²¢Í¨¹ýÔöÇ¿µÄ²¢Ðд ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ