Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : Oracle

²âÊÔÁ½ÖÖoracleÊý¾Ý¿âµ¼³ö·½Ê½µÄʱ¼äЧÂÊ

×òÌì×öÁËÒ»¸öÊý¾Ý¿âµ¼³öµÄʵÑ飬Ö÷ÒªÓÃÀ´²âÊÔexpÃüÁîµÄЧÂÊ
´´½¨Ò»¸öÎļþ CalExpTime.bat£¬ÄÚÈÝÈçÏ£º
echo %time% >time.log
exp user/psw file=exp1.dmp
echo %time% >>time.log
echo %time% >>time.log
exp user/psw file=exp2.dmp direct=y
echo %time% >>time.log
Ë«»÷ÔËÐиÃÅú´¦ÀíÎļþ¡£
×îºóÉú³ÉµÄtime.logÎļþÄÚÈÝÈçÏ£º
22:24:12.82
23:12:12.20
23:12:12.23
23:34:12.12
¿É¼û
µÚÒ»·Ýµ¼³öÃüÁîexp user/psw file=exp1.dmp
ºÄʱΪ£º£¨23:12:12.20-22:24:12.82£©=Ô¼48minute
µÚÒ»·Ýµ¼³öÃüÁîexp user/psw file=exp2.dmp direct=y
ºÄʱΪ£º£¨23:34:12.12-23:12:12.23£©=Ô¼22minute
µçÄÔÅäÖãºCUP P7350 Ë«ºË2.0GHZ£»
               ÄÚ´æ 2G
               OS   Windows XP SP3
Êý¾ÝÎļþ´óС£ºexp1.dmp:8725M
                     exp2.dmp 8775M
ÓÉ ......

oracle logical standby ÈÕ³£¹ÜÀí³£ÓõÄһЩÓï¾ä

// Ö´ÐÐÌø¹ý£¬Ìø¹ýµÄ½á¹ûÔÚ
execute dbms_logstdby.skip(stmt => 'DML',schema_name => '%', object_name => '%');
stmtµÄÈ¡Öµ¿ÉÒÔÊÇ£º
http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10802/d_lsbydb.htm#997290
// Ìø¹ýµÄÄÚÈݼÇÔØÔÚÏÂÃæ
select * from dba_logstdby_skip
// ֹͣapply alter database stop logical standby apply;
alter database abort logical standby apply;
// Ö´ÐÐapply
alter database start logical standby apply;
// ʵʱapply
alter database start logical standby apply immediate;
// Ìø¹ý´íÎó£¬ÔÚdba_logstdby_skip±íÖУ¬ERRORÁÐΪY
execute dbms_logstdby.skip_error('NON_SCHEMA_DDL'); // Ö´ÐÐapply£¬Ìø¹ýʧ°ÜµÄÊÂÎñ alter database start logical standby apply skip failed transaction;
// ÉèÖòÎÊý£¬ÊÇ·ñ¼Ç¼Ìø¹ý´íÎó
exec dbms_logstdby.apply_set('RECORD_SKIP_ERRORS','FALSE');
// ÉèÖòÎÊý£¬ÊÇ·ñ¼Ç¼Ìø¹ýDDL
exec dbms_logstdby.apply_set('RECORD_SKIP_DDL','FALSE'); // ÔÚ±¸¿âÉϹصôdataguard£¬±¸¿â¿Éд
al ......

OracleÊý¾ÝÎļþµÄÌØÐÔ

ÎÒÃÇ´ó¼Ò¶¼ÖªµÀÿ¸öOracleÊý¾Ý¿â¶¼»áÓÐÒ»¸ö»òÊǶà¸öÎïÀíµÄOracleÊý¾ÝÎļþ,Êý¾Ý¿âÐÅÏ¢(½á¹¹,Êý¾Ý)µÄÖ÷Òª×÷ÓÃÊÇÀ´±£´æÔÚÕâЩÏà¹ØµÄÊý¾ÝÎļþ,¶øÇÒÖ»ÓÐÕâЩÏà¹ØµÄÎļþOracle²ÅÄܹ»½âÊÍÓë¹ÜÀíÕâЩ´æ´¢.OracleÊý¾ÝÎļþ¾ßÓÐÒÔÏÂһЩÌØÐÔ:
1.Ò»¸öÊý¾ÝÎļþ½ö½ö¹ØÁªÒ»¸öÊý¾Ý¿â,OracleÊý¾ÝÎļþÓëÊý¾Ý¿âÖ®¼ä¶ÔÓ¦¹ØϵÊÇÒ»¶ÔÒ»¹Øϵ,µ±È»·´¹ýÊý¾Ý¿âÓëÊý¾ÝÎļþÊÇÒ»¶Ô¶à¹Øϵ.
2.Êý¾ÝÎļþ¿ÉÒÔ×Ô¶¯À©Õ¹,µ±Êý¾Ý´æ´¢ÐèÒª¸ü¶à´æ´¢¿Õ¼äʱºò,¾ÍÊÇ´æ´¢Êý¾ÝµÄÊý¾ÝËæ´æ´¢Êý¾ÝÁ¿Ôö´ó,Êý¾ÝÎļþÒ²¿ÉÒÔ×Ô¶¯Ôö³¤,ÒÔÂú×ãÊý¾Ý´æ´¢ÐèÒª.
3.Ò»¸ö»ò¶à¸öÊý¾ÝÎļþ×é³ÉÒ»¸öÂß¼­µ¥Ôª,³Æ֮Ϊ±í¿Õ¼ä.OracleÊý¾ÝÎļþÓë±í¿Õ¼äÖ®¼ä¶ÔÓ¦¹ØϵҲÊÇÒ»¶ÔÒ»¹Øϵ,µ±È»·´¹ý±í¿Õ¼äÓëÊý¾ÝÎļþ¶ÔÓ¦¹ØϵÊÇÒ»¶Ô¶àµÄ¹Øϵ.
´æ´¢ÔÚÊý¾ÝÎļþÖеÄÊÇ¿ÉÒÔ¶Á,µ±È»ÕâЩÊý¾ÝÊDZ£´æÔÚOracleÊý¾Ý¿âʵÀýÖÐÌض¨µÄÄÚ´æÇøÓòÖÐ,Èç¹ûÒ»¸öÓû§Òª¶ÁÈ¡Êý¾Ý¿âÖÐÒ»¸ö±í,Õâ¸öÓû§ÊDz»ÄÜÖ±½Ó¶ÁÈ¡ÎïÀí´ÅÅÌÉϵÄÊý¾ÝÎļþµÄ¡£
Ê×ÏÈOracle½ÓÊÜÕâ¸öÇëÇóºó,´ÓÔ쵱λÖÃ(ÎïÀí´ÅÅÌ)É϶ÁÈ¡ÏàÓ¦µÄÊý¾Ýµ½ÄÚ´æÖÐ,Õâ¸öʱºòÓû§²Å¿ÉÒÔ¿´¼ûÊý¾Ý.OracleÈí¼þÊǽâÊÍOracle´æ´¢Óë¹ÜÀíÊý¾ÝµÄ.Èç¹ûÕâ¸öʱºòÎÒÃÇÐÞ¸ÄÊý¾Ý,ÕâЩÊý¾ÝÊDz»»áÁ¢¼´Ð´µ½´ÅÅÌÖеÄ.Òªµ½Ìض¨Ê±ºò²Å»áд´ÅÅÌ.Ƶ·±Á¢¼ ......

OracleÊý¾ÝÎļþµÄÌØÐÔ

ÎÒÃÇ´ó¼Ò¶¼ÖªµÀÿ¸öOracleÊý¾Ý¿â¶¼»áÓÐÒ»¸ö»òÊǶà¸öÎïÀíµÄOracleÊý¾ÝÎļþ,Êý¾Ý¿âÐÅÏ¢(½á¹¹,Êý¾Ý)µÄÖ÷Òª×÷ÓÃÊÇÀ´±£´æÔÚÕâЩÏà¹ØµÄÊý¾ÝÎļþ,¶øÇÒÖ»ÓÐÕâЩÏà¹ØµÄÎļþOracle²ÅÄܹ»½âÊÍÓë¹ÜÀíÕâЩ´æ´¢.OracleÊý¾ÝÎļþ¾ßÓÐÒÔÏÂһЩÌØÐÔ:
1.Ò»¸öÊý¾ÝÎļþ½ö½ö¹ØÁªÒ»¸öÊý¾Ý¿â,OracleÊý¾ÝÎļþÓëÊý¾Ý¿âÖ®¼ä¶ÔÓ¦¹ØϵÊÇÒ»¶ÔÒ»¹Øϵ,µ±È»·´¹ýÊý¾Ý¿âÓëÊý¾ÝÎļþÊÇÒ»¶Ô¶à¹Øϵ.
2.Êý¾ÝÎļþ¿ÉÒÔ×Ô¶¯À©Õ¹,µ±Êý¾Ý´æ´¢ÐèÒª¸ü¶à´æ´¢¿Õ¼äʱºò,¾ÍÊÇ´æ´¢Êý¾ÝµÄÊý¾ÝËæ´æ´¢Êý¾ÝÁ¿Ôö´ó,Êý¾ÝÎļþÒ²¿ÉÒÔ×Ô¶¯Ôö³¤,ÒÔÂú×ãÊý¾Ý´æ´¢ÐèÒª.
3.Ò»¸ö»ò¶à¸öÊý¾ÝÎļþ×é³ÉÒ»¸öÂß¼­µ¥Ôª,³Æ֮Ϊ±í¿Õ¼ä.OracleÊý¾ÝÎļþÓë±í¿Õ¼äÖ®¼ä¶ÔÓ¦¹ØϵҲÊÇÒ»¶ÔÒ»¹Øϵ,µ±È»·´¹ý±í¿Õ¼äÓëÊý¾ÝÎļþ¶ÔÓ¦¹ØϵÊÇÒ»¶Ô¶àµÄ¹Øϵ.
´æ´¢ÔÚÊý¾ÝÎļþÖеÄÊÇ¿ÉÒÔ¶Á,µ±È»ÕâЩÊý¾ÝÊDZ£´æÔÚOracleÊý¾Ý¿âʵÀýÖÐÌض¨µÄÄÚ´æÇøÓòÖÐ,Èç¹ûÒ»¸öÓû§Òª¶ÁÈ¡Êý¾Ý¿âÖÐÒ»¸ö±í,Õâ¸öÓû§ÊDz»ÄÜÖ±½Ó¶ÁÈ¡ÎïÀí´ÅÅÌÉϵÄÊý¾ÝÎļþµÄ¡£
Ê×ÏÈOracle½ÓÊÜÕâ¸öÇëÇóºó,´ÓÔ쵱λÖÃ(ÎïÀí´ÅÅÌ)É϶ÁÈ¡ÏàÓ¦µÄÊý¾Ýµ½ÄÚ´æÖÐ,Õâ¸öʱºòÓû§²Å¿ÉÒÔ¿´¼ûÊý¾Ý.OracleÈí¼þÊǽâÊÍOracle´æ´¢Óë¹ÜÀíÊý¾ÝµÄ.Èç¹ûÕâ¸öʱºòÎÒÃÇÐÞ¸ÄÊý¾Ý,ÕâЩÊý¾ÝÊDz»»áÁ¢¼´Ð´µ½´ÅÅÌÖеÄ.Òªµ½Ìض¨Ê±ºò²Å»áд´ÅÅÌ.Ƶ·±Á¢¼ ......

Oracle log files

Oracle log files : An introduction
 
The Oracle server maintains the redo Oracle log files to minimize the loss of data in the Database in case of an uncontrolled shutdown.
Online redo Oracle log files are filled with redo records. A redo record, also called a redo entry, is made up of a group of change vectors, each of which is a description of a change made to a single block in the database.
For example, if you change a salary value in an employee table, you generate a redo record containing change vectors that describe changes to the data segment block for the table, the rollback segment data block, and the transaction table of the rollback segments.
The question here is how are the Oracle log files maintained, and what information do we have?
A couple of interesting Oracle views:
a)To view information on log files:
SELECT * from v$log;
b)To view information on log file history:
SELECT thread#, first_change#,
TO_CHAR(first_time,'MM-DD-YY HH12:MIPM'),
next_ch ......

Oracle ADDM ×Ô¶¯Õï¶Ï¼àÊÓ¹¤¾ß ½éÉÜ


Oracle AWR ½éÉÜ(AWR -- Automatic Workload Repository)
http://blog.csdn.net/tianlesoftware/archive/2009/10/17/4682300.aspx
Ò». ADDM¸ÅÊö
 ADDM(Automatic Database Diagnostic Monitor) ÊÇÖ²ÈëOracleÊý¾Ý¿âµÄÒ»¸ö×ÔÕï¶ÏÒýÇæ.ADDM Í¨¹ý¼ì²éºÍ·ÖÎöAWR»ñÈ¡µÄÊý¾ÝÀ´ÅжÏOracleÊý¾Ý¿âÖпÉÄܵÄÎÊÌâ.
     ÔÚOracle9i¼°Ö®Ç°£¬DBAÃÇÒѾ­ÓµÓÐÁ˺ܶàºÜºÃÓõÄÐÔÄÜ·ÖÎö¹¤¾ß£¬±ÈÈ磬tkprof¡¢sql_trace¡¢statspack¡¢set event 10046&10053µÈµÈ¡£ÕâЩ¹¤¾ßÄܹ»°ïÖúDBAºÜ¿ìµÄ¶¨Î»ÐÔÄÜÎÊÌâ¡£µ«ÕâЩ¹¤¾ß¶¼Ö»¸ø³öһЩͳ¼ÆÊý¾Ý£¬È»ºóÔÙÓÉDBAÃǸù¾Ý×Ô¼ºµÄ¾­Ñé½øÐÐÓÅ»¯¡£
     Oracle10gÖÐÍƳöÁËеÄÓÅ»¯Õï¶Ï¹¤¾ß£ºÊý¾Ý¿â×Ô¶¯Õï¶Ï¼àÊÓ¹¤¾ß£¨Automatic Database Diagnostic Monitor :ADDM£©ºÍSQLÓÅ»¯½¨Ò鹤¾ß£¨SQL Tuning Advisor: STA£©¡£ÕâÁ½¸ö¹¤¾ßµÄ½áºÏʹÓã¬ÄÜʹDBA½ÚÊ¡´óÁ¿ÓÅ»¯Ê±¼ä£¬Ò²´ó´ó¼õÉÙÁËϵͳ崻úµÄΣÏÕ¡£¼òµ¥µã˵£¬ADDM¾ÍÊÇÊÕ¼¯Ïà¹ØµÄͳ¼ÆÊý¾Ýµ½×Ô¶¯¹¤×÷Á¿ÖªÊ¶¿â(Automatic Workload  ......
×ܼǼÊý:3994; ×ÜÒ³Êý:666; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [8] [9] [10] [11] 12 [13] [14] [15] [16] [17]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ