Win7(64位)下: Oracle32位Server + PL/SQL 安装

1、下载Oracle 11g  for Windows的版本 
下载地址:http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html 
其中包括两个压缩包:win32_11gR2_database_1of2.zip,win32_11gR2_database_2of2.zip 

将两个压缩包解压到同一个目录下,然后打开安装包,单击解压目录下的“setup.exe”文件:
Win7(64位)下: Oracle32位Server + PL/SQL 安装

2、将两个压缩包解压到同一个目录下,然后打开安装包,双击解压目录下的“setup.exe”文件:

Win7(64位)下: Oracle32位Server + PL/SQL 安装

3、电子邮件可以不填,下面这个复选框也不用勾选;下一步

Win7(64位)下: Oracle32位Server + PL/SQL 安装

4、弹出提示框,选 “是”

Win7(64位)下: Oracle32位Server + PL/SQL 安装

5、选择“创建和配置数据库”,下一步

Win7(64位)下: Oracle32位Server + PL/SQL 安装

6、如果是在个人电脑安装,选“桌面类”就可以,下一步

Win7(64位)下: Oracle32位Server + PL/SQL 安装

7、选择好目录,全局数据库名默认orcl就可以,然后配置自己容易记的口令,不用管口令规则;

Win7(64位)下: Oracle32位Server + PL/SQL 安装

8、如弹出提示框,选择“是”

Win7(64位)下: Oracle32位Server + PL/SQL 安装

9、完成,开始自动安装;

Win7(64位)下: Oracle32位Server + PL/SQL 安装

10、数据库安装完,会出现如下配置界面,点击“口令管理”

Win7(64位)下: Oracle32位Server + PL/SQL 安装

 

11、查看并修改以下用户: 
(1)普通用户:SCOTT,把【是否锁定账户?】对应的勾去掉,(密码随意设,如:123456) 
(2)普通管理员:SYSTEM(密码随意设,例如:manager) 
(3)超级管理员:SYS(密码随意设,例如:admin) 

Win7(64位)下: Oracle32位Server + PL/SQL 安装

12、若弹出如下提示,选“是”

Win7(64位)下: Oracle32位Server + PL/SQL 安装

13、确认

Win7(64位)下: Oracle32位Server + PL/SQL 安装

14、【关闭】完成安装。

Win7(64位)下: Oracle32位Server + PL/SQL 安装

二、PL/SQL Developer 安装

https://download.****.net/download/eqcjx/11025356

直接下载安装就可以;

注意:

1、PL/SQL到目前为止只有32位的程序,而大多数人使用64位的Windows操作系统,在64位的Windows上,多数情况下也是安装64位的ORACLE Client程序,这种组合,导致plsql无法识别到ORACLE_HOME目录,读取不到tnsnames.ora文件中的连接串;

2、PL/SQL 不要安装在默认的C:\Program Files (x86)目录下,否则会报错,原因是不能解析这个带()的路径。 

 

因此,我这里在64位系统上安装了32位的Oracle Server,然后直接安装PL/SQL就可以使用了。

 

=================================================
备注:

有同学安装了64位的Oracle11g Server,然后再安装一个32位的Oracle 11g Client,好像也可以使用,大家可以试试;

一、安装64位oracle11g

二、安装32位oracle11g客户端

三、安装pl/sql developer。在tools->perference->connection里面设置oracle home和oci library。

      如:oracle home : C:\app\Administrator\product\11.2.0

             oci library : C:\app\Administrator\product\11.2.0\client_1\bin\oci.dll