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

oracleÖÐblock

°´×ÊÁÏ˵V$BH²é¿´±íÀ´ÏÔʾÊý¾Ý¿âÀïÿ¸ö¶ÔÏóÀàÐ͵ÄÊý¾Ý»º³åÇøÀïÊý¾Ý¿éµÄÊýÁ¿.
È»ºó²éѯV$bh
select
   owner, object_name                 
  from
   dba_objects o,
   v$bh        bh
where
   o.object_id  = bh.objd
and
   o.owner =MOBILEADC
ÕâÒ»²éÕÒ³ö MOBILEADC Óû§´´½¨µÄ¶ÔÏó Êý¾Ý¿éµÄÏà¹ØÐÅÏ¢
 
Ò²¿ÉÒÔ²éѯ±íµÄÊý¾Ý¿ìµÄÐÅÏ¢
select
   owner, object_name                 
  from
   dba_objects o,
   v$bh        bh
where
   o.object_id  = bh.objd
and
   o.object_name =’NN_APPLICATION’;
 
 
v$BHÖÐÓиö״̬
The possible values of X$BH.STATUS are:
        0, FREE, no valid block image
        1, XCUR, a current mode block, exclusive to this instance
        2, SCUR, a current mode block, shared with other instances
        3, CR,   a consistent read (stale) block image
        4, READ, buffer is reserved for a block being read from disk
        5, MREC, a block in media recovery mode
        6, IREC, a block in instance (crash) recovery mode
 
¿ÉÒÔ²éѯ±í¿Õ¼äµÄ¿ì´óС
select tablespace_name,block_size from dba_tablespaces;
 
 
 
   ÔÚ°²×°Êý¾Ý¿âµÄʱºòÎÒÃǽ«db_block_sizeÕâ¸ödefault block sizeÉèÖóÉÁË8k£¬ÄÇôÔÚ°²×°ÒÔºóOracleÊDz»ÔÊÐíÎÒÃÇÐÞ¸ÄĬÈÏ¿é´óСµÄ¡£¶ÔÓÚÒ»¸ö8196×Ö½Ú´óСµÄÊý¾Ý¿éÒ»°ãblock overhead»áÕ¼¾ÝÆäÖÐ100¸ö×óÓÒµÄ×Ö½Ú£¬ÄÇôʣϵÄ8096×ֽڵĿռä¾ÍÓÃÀ´´æ´¢ÎÒÃǵÄÐÐÊý¾Ý¿â£¬Èç¹ûÎÒÃDzåÈë1¸ö×Ö½ÚµÄÐÐÊý¾Ý£¬ÄÇôÕâ¸ö¿éÊÇ·ñ»áÔÊÐíÎÒÃDzåÈë8096ÐÐÄØ£¿´ð°¸µ±È»ÊÇ·ñ¶¨µÄ¡£ÆäʵÅ


Ïà¹ØÎĵµ£º

oracle ±í¿Õ¼ä²Ù×÷

oracle±í¿Õ¼ä²Ù×÷Ïê½â
  1
  2
  3×÷Õߣº   À´Ô´£º    ¸üÐÂÈÕÆÚ£º2006-01-04 
  5
  6 
  7½¨Á¢±í¿Õ¼ä
  8
  9CREATE TABLESPACE data01
 10DATAFILE '/ora ......

jdbcÁ¬½ÓOracle

      ËäȻѧϰJavaºÜ¾ÃÁË£¬×Ô¼ºÒ²Á¬½Ó¹ýһЩÊý¾Ý¿â£¬±ÈÈçmysqlÖ®ÀàµÄ£¬Èç½ñÄØ£¬Ò²Ñ§Ï°ÁËÒ»¶Îʱ¼äµÄOracle£¬È»¶øÄØ£¬½ñÌìÊÇÎÒµÚÒ»´ÎÁ¬½ÓOracle£¬ºÙºÙ£¬Ó¦¸Ã»¹²»ËãÌ«³Ù°É¡£
    ½ñÌìÄØ£¬Óе㱿׾£¬´ó¼ÒĪЦ£¡
    ÎÒÕâÊÇÒ»¸ö²éѯÀý×Ó
    Ê×ÏÈ£¬Ô ......

¡¾oracle֪ʶÊÕ¼¯¡¿ÏµÍ³ÊÓͼºÍÓû§È¨ÏÞ

ORACLEÖÐÊý¾Ý×ÖµäÊÓͼ·ÖΪ3´óÀà,     ÓÃǰ׺Çø±ð£¬·Ö±ðΪ£ºUSER£¬ALL ºÍ DBA£¬Ðí¶àÊý¾Ý×ÖµäÊÓͼ°üº¬ÏàËƵÄÐÅÏ¢¡£
USER_*:ÓйØÓû§ËùÓµÓеĶÔÏóÐÅÏ¢£¬¼´Óû§×Ô¼º´´½¨µÄ¶ÔÏóÐÅÏ¢
ALL_*£ºÓйØÓû§¿ÉÒÔ·ÃÎʵĶÔÏóµÄÐÅÏ¢£¬¼´Óû§×Ô¼º´´½¨µÄ¶ÔÏóµÄÐÅÏ¢¼ÓÉÏÆäËûÓû§´´½¨µÄ¶ÔÏ󵫸ÃÓû§ÓÐȨ·ÃÎʵÄÐÅÏ¢
DBA_* ......

oracleʱ¼äÈÕÆÚº¯Êý

1¡¢×ª»»º¯Êý
Óëdate²Ù×÷¹Øϵ×î´óµÄ¾ÍÊÇÁ½¸öת»»º¯Êý£ºto_date(),to_char()
to_date() ×÷Óý«×Ö·ûÀàÐÍ°´Ò»¶¨¸ñʽת»¯ÎªÈÕÆÚÀàÐÍ£º
¾ßÌåÓ÷¨:to_date(''2004-11-27'',''yyyy-mm-dd''),Ç°ÕßΪ×Ö·û´®£¬ºóÕßΪת»»ÈÕÆÚ¸ñʽ£¬×¢Ò⣬ǰºóÁ½ÕßÒªÒÔÒ»¶ÔÓ¦¡£
Èç;to_date(''2004-11-27 13:34:43'', ''yyyy ......

ORACLE±êÇ©ÊÕ²Ø

@@servername:·µ»ØÔËÐÐSQL ServerÊý¾Ý¿â±¾µØ·þÎñÆ÷µÄÃû³Æ¡£
@@remserver:·µ»ØµÇ¼¼Ç¼ÖмÇÔصÄÔ¶³ÌSQL Server·þÎñÆ÷µÄÃû³Æ¡£
@@connections:·µ»Ø×ÔÉÏ´ÎÆô¶¯SQL ServerÒÔÀ´Á¬½Ó»òÊÔͼÁ¬½ÓµÄ´ÎÊý£¬ÓÃÆä¿ÉÈùÜÀíÈËÔ±·½±ãµØÁ˽â½ñÌìËùÓÐÊÔͼÁ¬½Ó·þÎñÆ÷µÄ´ÎÊý¡£
@@cursor_rows:·µ»Ø×îºóÁ¬½ÓÉϲ¢´ò¿ªµÄÓαêÖе±Ç°´æÔڵĺϸñ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ