[Oracle] UNIX与Windows 2000上Oracle的差异(III)

作者:Ian Adam & David Stien, SAIC Ltd
日期:19-Dec-2003 
出处:http://www.dbanotes.net
翻译:Fenng


ORACLE 的安装

ORACLE8i 通过新的基于 Java 的 ORACLE Universal Installer (OUI) 来安装,在所有的平台上都有一样的界面 [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 [email protected]

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 [email protected]


参考信息


[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 

更多信息


全文第一部分 - http://www.dbanotes.net/Oracle/Unix-Win2000-I.htm
全文第二部分 - http://www.dbanotes.net/Oracle/Unix-Win2000-II.htm



本文译者

Fenng,某美资公司DBA,业余时间混迹于各数据库相关的技术论坛且乐此不疲。 目前关注如何利用ORACLE数据库有效地构建企业应用。对Oracle tuning、troubleshooting有一点研究。
个人技术站点:http://www.dbanotes.net/ 。 可以通过电子邮件 [email protected] 联系到他。

原文出处

http://www.dbanotes.net/Oracle/Unix-Win2000-III.htm

回上页<-|->回首页

All Articles (by Fenng) are licensed under a Creative Commons License.
I would welcome any feedback. Please send questions, comments or corrections to [email protected]
Valid XHTML 4.01 / Valid CSS