2011年4月11日星期一

Windws 7上安装 Oracle 11g R1

Oracle 官方从11gR2才开始正式支持Windows 7, 不过当前官方还没有提供R2 for Windows的相关办法下载, 官方说明:

Goal

Is Microsoft Windows 7 certified to install/run Oracle Database Server/Client ?

Solution

Oracle Database releases "9iR2 (9.2.0.x), 10gR1 (10.1.0.x), 10gR2 (10.2.0.x) and 11gR1 (11.1.0.x)" are not Certified/Supported to install/run on Microsoft Windows 7.

"Microsoft Windows 7" certification will begin with "Oracle Database 11gR2 (11.2.0.x)". That means, Oracle Database 11gR2 will be the first Oracle Database product certified/supported to install/run on "Microsoft Windows 7".

Pasted from <https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=952302.1>

解决办法:

  1. 打开 database\stage\prereq\db\refhost.xml

将:

<!--Microsoft Windows Vista-->

<OPERATING_SYSTEM>

<VERSION VALUE="6.0"/>

</OPERATING_SYSTEM>

修改为:

<!--Microsoft Windows 7-->

<OPERATING_SYSTEM>

<VERSION VALUE="6.1"/>

</OPERATING_SYSTEM>

  1. 右击“setup.exe”后选择“以管理员身份运行(Run as administrator)”
  1. 安装前检查会出现如下警告:

一些建议的先决条件检查失败。在安装期间可能会出错。是否要继续?

选择“是”,继续安装。

  1. “仅安装软件”
  1. 配置监听、建库等操作要在“以管理员身份运行”的cmd窗口中进行。简要说明:

单机Win键后,在搜索框中输入cmd,会出现“cmd.exe”程序,在其上右击,选择“以管理员身份运行(Run as administrator)”, 然后进行Oracle相关操作

  1. 配置EM

配置EM前要先创建%ORACLE_SID%环境变量, 否则会出现如下错误:

Environment variable ORACLE_SID not defined. Please define it.

无法使用: emctl status dbconsole 进行配置

没有评论: