UNIX和WINDOWS2000上的ORACLE的差異 PartIII

來源:互聯網
上載者:User
oracle|unix|window
UNIX 和 WINDOWS2000 上的 ORACLE 的差異 III

Ian Adam,  SAIC Ltd
David Stien,  SAIC Ltd
翻譯:Fenng www.ITPub.net
Part III

ORACLE 的安裝
ORACLE8i通過新的基於Java的ORACLE Universal Installer來安裝,在所有的平台上都有一樣的介面 [1 M Cyran, 1999]。上面這句話是對的,不過一些小的差異要註明。在Unix上需要X相容的顯示能力,或者是在客戶機的工作站上 有一個象Exceed這樣的應用。在Windows2000上安裝器可以直接運行。

在Unix中有許多手工設定的任務,在 Windows 2000是不需要的。尤其是你不必手工設定環境變數。 你不必產生一個管理資料庫的Unix dba 組,不必設定一個 UNIX 來為使用者運行 ORACLE Universal Installer或者是一個叫oracle的使用者來安裝或者升級ORACLE。 在 Unix 中ORACLE 可以重聯結而在Windows 2000則不能。

在Windows 2000中,使用者必須是管理員(administrator)組的成員才可以安裝資料庫。在ORACLE 8i 資料庫安裝後自動的建立ORA_DBA一個本機群組。這個組的成員自動接受SYSDBA的許可權。推薦在定製安裝的時候選擇安裝Administration Assistant for Windows,要注意每個伺服器只能安裝這個軟體的一個版本。

ORACLE 8.1.7 for Solaris是2CD的。切換到第二張CD不象手冊上說的那麼容易。察看[10
Metalink, 2001]可以得到具體內容。

Windows上的安裝指導可以看[3 Kennedy, 2000]。《ORACLE Universal Installer 概念指導》沒包括在ORACLE8i伺服器線上文檔中,不過在ORACLE Universal Installer 安裝的過程中自動的安裝在你的硬碟中了。

WINDOWS上的資料庫管理助手
WINDOWS上的ORACLE管理助手是個GUI工具,從WINDOWS內建的MMC(微軟管理主控台)中運行 。ORACLE 的 Windows管理助手把幾個常用的資料庫管理工作集合到了一個工具中。可以使你在Windows中簡單進行建立資料庫管理員、操作員、使用者和角色的工作。還可以用來管理 ORACLE資料庫服務和ORACLE資料庫的啟動與關閉的設定,編輯註冊表參數設定,並察看ORACLE進程資訊。

自動任務
在Unix上,象備份這樣的自動任務是通過cron運行Shell指令碼來做到的。在Windows2000上使用調度任務來定期運行批次檔。這個調度要比以前的Windows NT上的AT調度命令要更有彈性。它允許一個帶有使用者上下文(context)而不是系統使用者的任務運行,並且它允許對任務賦予許可權。批處理指令碼語言限制性很大,所以值得好好的弄一下PERL [9 O'Reilly, 2000]。在Windows 2000 中當手工運行熱備份的時候,ORACLE提供了一個命令叫做OCOPY,用來拷貝檔案到另一個磁碟位置,也可以備份到磁帶上面。標準的windows命令(如COPY)不拷貝一個開啟的檔案(資料庫的資料檔案都是開啟的)。

調整與診斷
在Windows 2000上面有很少的工具來調試作業系統,不過我們也要說點可以做的事情。
互動的前台應用程式在Windows2000的安裝過程中就指定了預設的優先順序。為了阻止前台應用程式佔用了額外的處理器時間,影響 ORACLE8i 資料庫, 去掉它的優先順序,這可以通過系統控制面版的進階選項來做到。

在Unix 中,共用記憶體和訊號量的設定通常需要通過/etc/system來更改。在Windows 2000上這樣做沒有必要,而且也不容易改動。

針對Windows的ORACLE效能監控器是Windows 2000效能監控器預載入的ORACLE8i資料庫效能元件。如果你沒看到這些東西,試著這個命令來改變效能監控器的設定:

operfcfg -u system -p manager -d atei

Windows NT 的ORACLE效能監控器允許你一次只監視一個資料庫執行個體。上述的命令可以在資料庫間切換。在 Windows 2000中,ORACLE 和對待通常的alert和trace檔案一樣把資訊寫到事件記錄中,這些資訊可以通過標準的事件檢視器讀取。在 Windows 2000中 dbverify (dbv)可以用來檢查聯機資料檔案,和Unix中的功能一樣。而在以前的Windows 中,dbv只對關閉的資料庫或是備份檔案起作用。

總結
對於一個熟悉Unix上的ORACLE DBA來說,這篇文章描述了ORACLE在Windows 2000上的的主要的差別。可以看到ORACLE已經作了很多的努力使這兩個平台上的ORACLE儘可能的相似,不過還沒有完全的去除差別。這篇文章還是值得一看的。
 
關於作者
David Stien and Ian Adam are both ORACLE8i Certified Database Administrators working for SAIC's Database Management Practice.  They are both based in Aberdeen, Scotland.  They are practising DBAs who provide ORACLE database support and development Services for customer databases on several different platforms. 
Ian is a Chartered Engineer and Microsoft Certified Database Administrator with over ten years experience of ORACLE products.  Ian can be reached by email at Ian.Adam@saic.com
David is a Chemistry Graduate with an MSc in Information Systems, Linux is his desktop operating system of choice.  David can be reached by email at David.Stien@saic.com


參考

[1]     Cyran M, "Getting to Know ORACLE8i , Release 2 (8.1.6)",
ORACLE Corporation December 1999, Part No. A76962-01
       
[2]     Kelly H III, Kennedy M, Rothenberg T, Slattery H,
         "ORACLE8i Administrator's Guide, Release 2 (8.1.6) for Windows NT"
         ORACLE Corporation 2000, Part No. A73008-01
       
[3]     Kennedy M, "ORACLE8i Installation Guide, Release 3 (8.1.7) for Windows NT"
         ORACLE Corporation November 2000, Part No. A85302-01
       
[4]     Leverenz L, Rehfield D, Baird C "ORACLE 8i Concepts Release 2 (8.1.6)"
         ORACLE Corporation December 1999, Part No. A76965-01
       
[5]     Metalink, "ORACLE Database Server product support Matrix for Windows 2000",
         ORACLE Corporation, http://metalink.oracle.com Note:77627.1
        
[6]     Metalink, "LKdbname - The MOUNT Lock File",
         ORACLE Corporation 2000, http://metalink.oracle.com Note:50594.1
       
[7]     Metalink, "WARNING: "dbstart" does not work with 8.1.6 Instances",
         ORACLE Corporation 2000, http://metalink.oracle.com Note:98418.1
       
[8]     Microsoft, "Windows 2000 Datacenter Server",
         Microsoft Corporation 2000
         Http://www.microsoft.com/windows2000/datacenter/default.asp
       
[9]     O'Reilly, "The Source for Perl", O'Reilly & Associates Inc 2000,
         http://www.perl.com/pub
       
[10]   Metalink, "ALERT: Cannot Mount Second CD During 8.1.7 Installation",
         ORACLE Corporation,
         http://metalink.oracle.com Note: 120801.1

 

 


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.