2008-01 月份文章 顯示方式:簡文 | 列表

2008年01月30日

建立index有加online的差別

如沒有加 online 的話,這時的table的lock為mode4
如有加的話,這時的table的lock為mode2
最大的好處就是有加online的話,就可不影響對這個table的dml操作,但會需要雙倍建立index的空間


...繼續閱讀

Posted by my_work at 21:57回應(2)引用(0)DB

2008年01月22日

[轉]ORACLE內存管理 之一 ORACLE PGA SGA

轉自:http://sunmoonking.spaces.live.com/blog/cns!E3BD9CBED01777CA!509.entry
 
MEM主要由兩部分組成
SGA, System Global Area---可以被所以PROCESS訪問。
PGA, Process Global Area—單個PROCESS(thread)私有。
UGA會包括在其中之一里
UGA, User Global Area—SESSION私有,shared server的時候在SGA,dedicated server的時候在PGA ...繼續閱讀

Posted by my_work at 22:49回應(0)引用(0)DB

2008年01月16日

測試redo size

測試目地:得知 temp table跟一般 table 在做處理時產生的 redo size 的差別多少

oracle: 9.2.0.6.0
archivelog:開起
os: Red Hat Enterprise Linux AS release 4 (Nahant Update 1) ...繼續閱讀

Posted by my_work at 15:27回應(0)引用(0)DB

2008年01月15日

Oracle 10g FlashBack


主要內容如下:
  1. Configure and use flashback database
  2. Use the Flashback drop feature to recover dropped tables
  3. Use the Flashback Versions Query feature to retrieve row history information
  4. Use the Flashback transaction query fasture to audit or recover from transactions
  5. Use the Flashback table feature to recover tables to a point in time
  6. 官方網址 http://download-west.oracle.com/docs/cd/B13789_01/appdev.101/b10795/adfns_fl.htm#1011142
...繼續閱讀

Posted by my_work at 17:11回應(1)引用(0)DB

2008年01月12日

測試flashback發生了ORA-38760

在測驗10g的flashback時發生ORA-38760的解決方法

錯誤訊習:ORA-38774: 無法停用媒體復原 - 已啟用倒溯資料庫

處理流程:
SQL> select flashback_on from v$database;

FLASHBACK_ON
------------------------------------
YES

SQL> alter database flashback off;

已更改資料庫. ...繼續閱讀

Posted by my_work at 17:11回應(0)引用(0)DB

10g drop table 會引起DBWn嗎

小記一下
from metalink not<286363.1>

When a truncate/drop is issued,

1.the foreground first acquires the "RO" enqueue in exclusive mode,
2.then cross instance calls (or one call if it is a single object) are issued
(the "CI" enqueue is acquired for cross instance call)
3.The CKPT processes on each of instances requests the DBWR to write
the dirty buffers to the disk and invalidate all the clean buffers.
4. After DBWR finishes writing, the foreground process releases the RO
enqueue.


來源:
http://www.itpub.net/viewthread.php?tid=921802&extra=&page=2

Posted by my_work at 14:29回應(0)引用(0)DB

2008年01月10日

小記oracle時間格式說明

Converting timestamps between timezomes

Problem
=======
There are many reasons why you might want to convert a 'timestamp' from 1
timezone to another. For example you might have traditionaly stored all times
as GMT times, but you want to know what those timestamps are in Paris.
Because different timezones have different rules regarding the changing
of Daylight Saving Time (or no DST at all) this is not as trivial as it might
seem at first.
...繼續閱讀

Posted by my_work at 23:00回應(0)引用(0)DB

2008年01月9日

官方oracle 11g install RHCE 5

小記一下,方便以後查

http://www.oracle.com/technology/pub/articles/smiley-11gr1-install.html?rssid=rss_otn_articles

Posted by my_work at 21:15回應(0)引用(0)DB
 [1]