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

OracleºÍMySQL¡¢PostgreSQLÌØÐÔ¶Ô±È

¡¡Ëæ×ÅÏÖ´úÊý¾Ý¿â¿ÉÓÃÌØÕ÷¼¯µÄѸËÙÔö¼Ó£¬ºÜÄÑÇø·ÖÊëºÃÊ뻵¡£ÀýÈçOracleÀï¾ÍÓÐÐí¶àÄã¿ÉÄÜ´ÓÀ´¶¼²»ÐèÒªµÄ¸ß¼¶Êý¾Ý²Ö¿âÌØÕ÷¡£´ËÍâÒ²¿ÉÄÜÓÐһЩÆäËü²»¿É»òȱµÄÌØÕ÷±ÈÈçACIDÊÂÎñÌØÐÔ¡£ÎÒÃÇÀ´¿´Ò»¿´Ö÷ÒªµÄһЩÌØÕ÷£¬±ÈÈç´æ´¢¹ý³Ì£¬ÊÓͼ£¬¿ìÕÕ£¬±íÊý¾ÝÀàÐͺÍÊÂÎñµÈµÈ¡£Í¬Ê±ÎÒÃÇ·ÖÎöÒ»ÏÂPostgresql£¬MySQLºÍOracleÕ⼸¸öÊý¾Ý¿â£¬È»ºóÕÒ³öÄĸöÄܹ»Âú×ãÄãµÄÐèÇó¡£
´æ´¢¹ý³Ì
¡¡¡¡Êý¾Ý¿âÀïµÄ´æ´¢Ó¦ÓóÌÐò¿Ï¶¨»áÓÐËüµÄÓµ»¤ÕߺͱáµÍÕß¡£ÔÚÕâ¸öÎÊÌâÉÏÎÒ»¹²»Çå³þ×Ô¼ºÊôÓÚÄÄÒ»À࣬ËùÒÔÎÒ¾¡Á¿¶ÔÕâÁ½¸ö·½Ã涼ÌÖÂÛ¡£µ±Ä㿪ʼÔÚÊý¾Ý¿âÀï·ÅÖÃÓ¦ÓóÌÐò´úÂëʱ£¬Äã¾Í´¦ÓÚÁ˳¹µ×²»¿ÉÒÆÖ²µÄ¾³µØ¡£Äã°ÑÓ¦ÓóÌÐòÒÆÖ²µ½ÁíÒ»¸öÊý¾Ý¿âʱ£¬ÄǶδúÂ뽫²»µÃ²»±»ÖØд¡£µ«ÊÇËü¶ÔÔ­À´Êý¾Ý¿âµÄ¸ß¶ÈרһÐÔÒâζ×ÅËü¿ÉÒÔÀûÓÃÄǸöÒýÇ棬ºÍÄǸöÒýÇæ½ô½ôÀ¦°óÔÚÒ»Æð¡£ÓÐʱºòÊý¾Ý¿âÀïµÄ´æ´¢´úÂëÒªÃ÷ÏÔ¿ìµÃ¶à¡£ÔÚ¶ÔÊý¾Ý×öÁËÐÞ¸ÄÖ®ºó£¬Äã²»µÃ²»¸üÐÂÒ»°ÙÍòÐеÄijЩÊý¾Ý¿é¡£
¡¡¡¡ÔÚ´æ´¢¹ý³ÌÀÊý¾ÝµÄ¶ÁÈë¡¢²Ù×ݺ͸üÐÂÊÇÒ»²½Íê³ÉµÄ¡£È»¶øÄãÒªÔÚÖмä²ãÓ¦ÓóÌÐòÖÐ×öͬÑùÊÂÇéµÄ»°£¬Äã¾Í²»µÃ²»Í¨¹ýÍøÂç·¢ËÍÊý¾Ý¼¯£¬Íê³ÉÊý¾Ý²Ù×Ý£¬È»ºó½«Ëü·¢ËÍ»ØÀ´¡£Õâ²»µ«Ê¹ÈÎÎñµÄËٶȱäÂý£¬¶øÇÒ¾ºÕùͬһÊý¾ÝµÄÆäËûÊÂÎñÓпÉÄܲ»µÃ²»µÈ´ý£¬ÒòΪËüÐèÒªµÄÊý¾ÝÕý´¦ÓÚ´«ËͺͲÙ×Ý״̬¡£´æ´¢´úÂëÒ²¿ÉÒÔÓÃÀ´ÃÜ·âÌض¨µÄÇëÇó£¬Õâ¶Ô¼ò»¯ÄãÕûÌåµÄÓ¦ÓóÌÐòÊǺÜÖØÒªµÄ¡£ÕâÈý¸öÊý¾Ý¿â¶¼Ö§³Ö´æ´¢¹ý³ÌºÍº¯Êý¡£Oracle»¹Ö§³Ö°ü£¬»òÕß˵ÊÇ´æ´¢¹ý³ÌµÄ¼¯ºÏÒÔ¼°¼¸ºõûÓÐÈËÓùýµÄ¸÷ÖÖÃæÏò¶ÔÏóÌØÕ÷µÄ¼¯ºÏ¡£»¹ÒªËµÃ÷Ò»µã£¬Ò»¸öÊý¾Ý¿âÒýÇæʵ¼ÊÉÏÊÇÔÚ´æ´¢´úÂëºÍǶÈëÔÚÀïÃæµÄSQL´úÂëÖ®¼ä¹ØÁª×ª»»¡£Oracle 9i°æ±¾ÒýÈëÁ˳ÉÅú°ó¶¨¼¼Êõ£¬ËùÒÔÄãÄܹ»¶ÔÐí¶àÐнøÐд¦Àí£¬²¢ÇÒÄܹ»Ò»´ÎÐÔ¸üÐÂËüÃÇ£¬¶ø²»Êǵ¥¸öÑ­»·µü´ú¡£Õâ¸öÌØÕ÷´ó·ù¶È¸ÄÉÆÁËÐÔÄÜ¡£
ÊÓͼ
¡¡¡¡ÊÓͼ»ù±¾ÉÏÊÇ´æ´¢²éѯ£¬ÕýÒòΪÈç´ËÖ´ÐÐÆðÀ´²Å²»»á¹ý¶È¸´ÔÓ¡£È»¶øµ±ÓÃÓÚ²éѯʱ£¬ËûÃDZØÈ»»áʹ²éѯ¸´ÔÓ»¯¡£ËùÒÔºÜÃ÷ÏÔ£¬Êý¾Ý¿âÔÚÊÓͼ¿ÉÓÃ֮ǰһ¶¨ÒªÖ§³Ö×Ó²éѯ¡£OracleºÜÔç¾ÍÒѾ­ÓÐÊÓͼÁË¡£´Ó5.0°æ±¾¿ªÊ¼£¬MySQLÒ²ÒѾ­Ö§³ÖÊÓͼ¡£¸úOracleÒ»Ñù£¬MySQLÒ²Ö§³ÖUPDATEABLEÊÓͼ£¬µ«ÊÇÓÐһЩÏÞÖÆ¡£PostgresÒ²Ö§³ÖÊÓͼºÍUPDATEABLEÊÓͼ¡£¸üÏêϸµÄ½âÊͼûComplex SQL²¿·Ö¡£
Îﻯͼ£¨¿ìÕÕ£©
¡¡¡¡²»ÓÃ˵£¬Oracle¶ÔËüÃÇÖ§³ÖµÃ·Ç³£ºÃ¡£×÷ΪһÖÖÐÂÊÂÎÎﻯͼ£¨ÎÒ¸üϲ»¶¿ìÕÕÕâ¸ö¿ÉÊÓ»¯µÄÊõÓÓеãÀëÌâÁË£©ÊÇÒ»¸öÖÜÆÚÐÔ¸üеĸ±±¾»òÕßÊDZíµÄ×Ó¼¯¡£¿ÉÒÔ°ÑÊÓͼ¿´×öÊDzéѯµÄÒ»¸ö¸±±¾¡£Ö±µ½ÏÂÒ»´ÎˢУ¬ÄǸö¸±±¾ÊǾ²Ì


Ïà¹ØÎĵµ£º

windows Æô¶¯ oracle Åú´¦Àí½Å±¾

 Oracle°²×°ºó£¬»á°Ñ4¸ö·þÎñÉèΪ×Ô¶¯Æô¶¯£¬·Ö±ðΪ£º
1. OracleOraHome90Agent
2. OracleOraHome90HTTPServer
3. OracleOraHome90TNSListener
4. OracleServiceORA
         ÆäÖеڶþ¸ö²»ÊDZØÐëµÄ£¬¿ÉÒÔÔÚ·þÎñÀï°ÑËü½ûÓá£ÆäËûÈý¸öÔÚOracleÔËÐÐʱ¶¼ÒªÆô¶¯¡£
   ......

Oracle RAC ¹éµµ Óë ·Ç¹éµµ Çл»


Oracle µÄÉú²ú¿â¶¼ÊÇÆô¶¯Ôڹ鵵ģʽÏ£¬RACϹ鵵·Ç¹éµµµÄÇл»ºÍµ¥ÊµÀýÒ²ÊÇÒ»ÑùµÄ£¬¶¼ÊÇÔÚMOUNTģʽÏÂÖ´ÐÐALTER DATABASE ARCHIVELOG/NOARCHIVELOG;ÃüÁî¡£ ²»Í¬µÄÊÇ£ºRAC»·¾³ÏÂËùÓÐʵÀý¶¼±ØÐë´¦ÓÚ·ÇOPEN״̬£¬È»ºóÔÚÈÎÒâÒ»¸ö´¦ÓÚMOUNT״̬µÄʵÀýÖ´ÐÐALTER DATABASEÃüÁ²Ù×÷³É¹¦ºó£¬ÔÙÕý³£Æô¶¯ ......

Oracle³£ÓÃÓï¾ä

--ÈçºÎÓÃgrade±íµÄ×ÊÁÏÈ¥¸üÐÂusertable±íµÄ×ÊÁÏ£¨ÓйØÁªµÄ×Ö¶Îuserid£©
 update usertable u set u.grade =
 (select g.grade from grade g where g.userid = u.userid);
 
--ÈçºÎʹ²éѯ½á¹û×Ö¶ÎÉú³ÉÐòºÅ
select rownum, t.* from sm_t_pad_new t
--ÈçºÎ¿ìËÙ×öÒ»¸öºÍÔ­±íÒ»ÑùµÄ±¸·Ý±í
 create ......

Oracle waits event:DB File Sequential Read

The DB File Sequential Read wait event generally indicates a single block read (an index read,
for example). A large number could indicate poor joining orders of tables or unselective indexing.
This number will certainly be large (normally) for a high-transaction, well-tuned system. You ......

php PDO Á´½Ó mysql ×î¼òµ¥ ʵÀý

define("DB_SERVER","127.0.0.1");
define("DB_PORT",3306);
define("DB_CATALOG","uab");
define("DB_USERID","root");
define("DB_PASSWORD","");
$dsn="mysql:host=".DB_SERVER.";port=".DB_PORT.";dbname=".DB_CATALOG;
self::$__PDO=new PDO($dsn, DB_USERID, DB_PASSWORD);
//support long connection
self:: ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ