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

sql serverºÍoracleµÄÇø±ð

1£®OracleΪ¿Í»§¶Ë¿ªÆô»á»°ÓÐÁ½ÖÖ·½Ê½£º¹²Ïí·þÎñºÍרÓ÷þÎñ¡£ÔÚרÓ÷þÎñÇé¿öÏ£¬¼àÌýÆ÷ΪÁ¬½ÓÇëÇó´´½¨Ð½ø³Ì£¨Unix»·¾³ÏÂÊÇProcess£¬WindowsÏÂÎÒÏëÓ¦¸ÃÊÇThread°É£©£»¹²Ïí·þÎñÇé¿öÏ£¬¼àÌýÆ÷½«¿Í»§ÇëÇ󽻸øDispatcher£¬ÓÉDispatcher°²ÅŶà¿Í»§µÄ×÷Òµ¡£SQL ServerÔÚĬÈÏÇé¿öÏÂ×Ô¶¯Îª¿Í»§¶ËÁ¬½Ó´´½¨Ị̈߳¬µ±Óзdz£¶àµÄ¿Í»§Á¬½Óʱ£¬SQL Server¿ÉÒÔʹÓÃÏ̳߳عÜÀí¶à»á»°£¬ÕâÀàËÆÓÚOracleµÄ¹²Ïí·þÎñ¡£ 
  2£®OracleµÄÄÚ´æ¹ÜÀí·ÖÈý¿é£ºSGA¡¢PGA¡¢UGA£»ÔÚMSDNÖв¢Ã»ÓÐÌá¼°ÔõÑù¿ØÖÆSQL ServerµÄÄÚ´æ·ÖÅ䣬ֻÊÇÌáµ½SQL ServerµÄÐéÄâµØÖ·¿Õ¼ä·Ö³É»º³å³ØÕ¼ÓÿռäºÍÆäÓà¿Õ¼ä£¬ÇÒSQL ServerÓж¯Ì¬ÄÚ´æ¹ÜÀí»úÖÆ¡£ 
  3. OracleµÄʵÀýÒ»´ÎÖ»ÄܹÜÀíÒ»¸öÊý¾Ý¿â£¬Êý¾Ý¿âÔÚ¼¯Èº»·¾³Ï¿ÉÓɶà¸öʵÀý¹ÜÀí¡£¶øSQL Serverµ¥¸öʵÀýÒ»´ÎÄܹÜÀí¶à¸öÊý¾Ý¿â¡£OracleÊý¾Ý¿â´æ´¢·½Ê½ÓÐOSÎļþ¡¢Âã·ÖÇø¡¢ASMµÈ£¬SQL ServerµÄÊý¾Ý¿â´æ´¢Ö»ÄÜÊÇϵͳÎļþ¡£ 
  4. OracleÊý¾Ý¿â°üº¬±í¿Õ¼ä£¬±í¿Õ¼ä¿ÉÒÔʹÓöà¸öÎļþ´æ´¢Êý¾Ý£¬±í¿Õ¼ä¾ÍÀàËÆÓÚSQL ServerÖеÄÎļþ×é¡£ÇøÊÇÎïÀíÁ¬ÐøÉÏÁ¬½ÓµÄ´æ´¢¿Õ¼ä£¬ÇøÖаüÀ¨×îСI/Oµ¥Î»——¿é£¨Oracle£©»òÒ³£¨SQL Server£©¡£µ«SQL ServerÒ³´óСÊÇ8KB£¬Çø°üº¬8¸öÒ³£»Oracle²»Í¬±í¿Õ¼ä¿ÉÒÔÓв»Í¬µÄ¿é´óС£¬ÇøµÄ´óСºÍ±£»¤¿éµÄÊýÁ¿Ò²²»¹Ì¶¨¡£SQL ServerµÄÒ³ÓÉÒ»¸öÊý¾Ý¿â¶ÔÏó¶ÀÕ¼£¬ÎïÀí´¢´æµÄÊý¾Ý¿â¶ÔÏóÖ»ÓÐË÷ÒýºÍ±íÁ½ÖÖ£»¶øOracleÖеĶÎÓÉÊý¾Ý¿â¶ÔÏó¶¨Ò壬ÇÒÆä´æ´¢µÄ¶ÔÏó¸´Ôӵö࣬Óбí¶Î¡¢Ë÷Òý¶Î¡¢»Ø¹ö¶Î¡¢ÁÙʱ¶ÎµÈµÈ£¬ËùÒÔÔÚÒ»¸ö¾Û´Ø¶ÎÖеĿé¿ÉÄܱ»¶à¸ö±íʹÓᣠ
  5. OracleʹÓÃFREELIST¹ÜÀí¿ÉÒԿ飬ͨ¹ýÉèÖÃPCTFREEºÍPCTUSED¿ØÖÆ¿ìÔÚºÎÖÖÌõ¼þÏ¿ÉÓã»SQL ServerʹÓÃGAM¡¢SGAN¼Ç¼¿ÉÓÃÒ³£¬Ê¹ÓÃPFS¸ú×ÙÒ³µÄʹÓÃ×´¿ö¡£ 
  6. SQL ServerµÄ±íÓÐÁ½ÖÖ·½Ê½×éÖ¯Êý¾ÝµÄÎïÀí´æ´¢£¬Ò»ÖÖÊÇÎÞÐòµÄ¶Ñ×éÖ¯£¬ÕâOracleÊÇÀàËƵģ»ÁíÒ»ÖÖÊÇÓɾ۴ØË÷Òý¾ö¶¨Êý¾ÝÅÅÐò·½Ê½£¬OracleÒ²¿ÉÓÐË÷Òý×éÖ¯·½Ê½£¬µ«²»Í¬ÓÚSQL Server£¬ËüÒÀ¼üÅÅÐòÊý¾Ý£¬²»Ôö¼ÓÒ»¸öË÷ÒýÓÃÓÚ¾Û´Ø£¬²»»áÓжîÍâµÄ¿ªÏú¡£´ËÍ⣬OracleµÄ¾Û´Ø±íÊǶà±í´æ´¢ÔÚÏàͬ¶ÎÉÏ£¬ÏñSQL ServerµÄ»ìºÏÇø¿ÉÒÔ°üº¬²»Í¬±íµÄÒ³£¬µ«OracleµÄ¾Û´Ø±íÊÇÒ»×麬ÓÐÏàͬÁеıí¿ÉÒÔ´¢´æÔÚÏàͬµÄ¿éÖУ¬¾Û´Ø±íµÄ¿ÉÒÔÓÐË÷Òý»òHash·½Ê½×éÖ¯Êý¾Ý 
&n


Ïà¹ØÎĵµ£º

OracleÖеÄÈÕÆÚÀàÐͼ°ÆäÏà¹ØµÄº¯Êý

Oracle
ÖеÄÈÕÆÚÀàÐͼ°ÆäÏà¹ØµÄº¯Êý
Oracle
ÌṩÁ˺ܶàµÄÄÚÖõÄÈÕÆÚÀàÐÍ£¬°üÀ¨Èçϼ¸ÖÖ£º
Date
Timestamp
Timestamp With Time Zone
Timestamp With Local Time Zone
Interval Year To Month
Interval Day To Second
DateÀàÐÍÓÃÓÚ´æ´¢ÈÕÆÚ£¬¾«È·µ½Ã룬¿ÉÄÜͨ¹ýÉèÖÃNLS_DATE_FORMAT»òÕßTO_CHAR·½·¨À´¸ñʽ»¯ÈÕÆÚµÄÊ ......

OracleÃâ·ÑµÄÊý¾Ý¿â¿ª·¢¹¤¾ß

    Ö®Ç°¿ª·¢OracleÒ»°ãÊÇʹÓÃPL/SQL Developer»òÕßÊÇTOAD£¬ÓÉÓÚÏÖÔÚ¹«Ë¾¶Ô°æȨÎÊÌâ¿´µÃ±È½ÏÖØ£¬ËùÒÔÎÒÒ²Ö»ÄܶÔÕâЩÊìϤµÄ¿ª·¢¹¤¾ß˵Éù°Ý°ÝÁË£¡ÔÚOracle¹Ù·½ÍøÕ¾Õ¾¿´µ½ÁËOracleÒѾ­ÓÐÁËÒ»¸öOracle SQL Developer£¬²¢ÇÒÊÇÃâ·ÑµÄ£¡
ÒÔÏÂÊÇOracle¹Ù·½¶ÔOracle SQL DeveloperµÄ½éÉÜ
 ³ÌÐò´úÂë
orac ......

OracleÖвéѯ±íµÄ´óСºÍ±í¿Õ¼äµÄ´óС

ÓÐÁ½ÖÖº¬ÒåµÄ±í´óС¡£Ò»ÖÖÊÇ·ÖÅä¸øÒ»¸ö±íµÄÎïÀí¿Õ¼äÊýÁ¿£¬¶ø²»¹Ü¿Õ¼äÊÇ·ñ±»Ê¹Ó᣿ÉÒÔÕâÑù²éѯ»ñµÃ×Ö½ÚÊý£º
select segment_name, bytes
from user_segments
where segment_type = 'TABLE';
»òÕß
   Select Segment_Name,Sum(bytes)/1024/1024 from User_Extents Group By Segment_Name
ÁíÒ»ÖÖ±íʵ¼ÊÊ¹Ó ......

sql ÃüÃûÎÊÌâ

ÕýÈ·µÄ£ºselect isnull(money,0) from (select  sum(money) as money,3 as b from zhangbenjilu where datepart(month,usedatetime)=3) as a
´íÎóµÄ£ºselect isnull(money,0) from (select  sum(money) as money,3  from zhangbenjilu where datepart(month,usedatetime)=3) ......

4.5 ÅäÖÃSQL Server 2005·þÎñÆ÷

·þÎñÓë·þÎñÆ÷ÊÇÁ½¸ö²»Í¬µÄ¸ÅÄ·þÎñÆ÷ÊÇÌṩ·þÎñµÄ¼ÆËã»ú£¬ÅäÖ÷þ
ÎñÆ÷Ö÷ÒªÊǶÔÄÚ´æ¡¢´¦ÀíÆ÷¡¢°²È«ÐԵȼ¸¸ö·½ÃæÅäÖá£ÓÉÓÚSQL Server 2005·þÎñÆ÷µÄÉèÖòÎÊý±È½Ï¶à£¬ÕâÀïѡһЩ±È½Ï³£ÓõĽéÉÜ¡£
ÅäÖÃSQL Server 2005·þÎñÆ÷µÄ°ì·¨£ºÆô¶¯¡¾SQL
Server Management
Studio¡¿£¬ÔÚ¡¾¶ÔÏó×ÊÔ´¹ÜÀíÆ÷¡¿´°¿ÚÀÓÒ»÷ÒªÅäÖõķþÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ