全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:927
推到 Plurk!
推到 Facebook!

clientdataset 存取 Unix 上的Oracle 效率比Windows 差十倍以上的問題

尚未結案
yirunner
一般會員


發表:11
回覆:8
積分:3
註冊:2002-09-17

發送簡訊給我
#1 引用回覆 回覆 發表時間:2005-11-17 12:11:00 IP:220.130.xxx.xxx 未訂閱
各位好:      我用Ado+clientdataset+dataprovider 寫了存取Oracle 的程式, 在Windows Xp 及 2003 server 上執行都很正常但是現在連結到Unix 上的Oracle 時效率就差了十倍以上, 搜尋網路的結果有提到兩個可能原因: 1. Unix 的共享內存(PGA) 要另外設定...    "在UNIX 上,必須oracle 設置共享內存段(可以是一.或者多.),因  oracle 在UNIX上是多進程;而在WINDOWS上oracle是單進程(多個線程),所以不用設置共享內存段。"    2. Unix 預設 force write 是false: "On Unix platforms, the default is to have force writes off. This means when InterBase tells the the UNIX operating system to write something to disk, UNIX puts it into its cache and writes it out to disk when it is ready.     What is the difference in performance? Inserting 13,000 records via a stored procedure into a table, with forced writes on it took 15 minutes, with forced writes off it took 45 seconds. " http://support.borland.com/entry.jspa?categoryID=154&externalID=2278 我的相關設定: 1. Oracle 版本: 8.1.7i 2. Delphi: D7 (無service pack1) 3. Oracle database 建立: code 指定為 UTF8 且不勾選Java 相關項 另外此Unix server 的Oracle 上原本已經有一套ERP系統(three tier: middle 掛在windows 2000 server 上)在運作了, 不曉得是否會讓上述兩種原因影響程度加劇到差異十倍以上 想請有經驗的各位幫忙指點 及是否有關於教調 Unix Oracle 的資源可提供小弟參考 謝謝各位
kgt
高階會員


發表:17
回覆:308
積分:165
註冊:2002-03-13

發送簡訊給我
#2 引用回覆 回覆 發表時間:2005-11-17 21:17:05 IP:61.219.xxx.xxx 未訂閱
您在執行時,請公司的DBA看一下當時您連上去ORACLE之SESSION的資源使用情形。 連結到Unix 上的Oracle 時-->您是如何連的呢?
系統時間:2024-06-28 7:42:57
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!