ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Install Oracle 10GR2 10.2.0.3 in RedHat Enterprise Linux 4 Update 5(4)

Install Oracle 10GR2 10.2.0.3 in RedHat Enterprise Linux 4 Update 5(4)

原创 Linux操作系统 作者:mcseman 时间:2019-01-26 20:54:04 0 删除 编辑

#==============================================================================
#开始安装 Oracle 10g R2

注意!Oracle 10gR2和10gR1的安装过程不太一样。目前网上很多的安装文档都是针对10gR1的,
包括Oracle OTN官方的一些文档。本文是针对10gR2的安装。因此可能和其它文档有不同之处。

 
Oracle Universal Installer Welcome 窗口出现。 选择Advanced Installation,选择Next 开始安装您的软件                     
 

在 UNIX 和 Linux 安装时,Specify Inventory directory and credentials 窗口出现。
  输入安装 Oracle 软件的完整目录或接受缺省值。 输入操作系统组名称,此组具有目录写权限。单击 Next。单击 OK。
  
  这个Inventory目录和里面的文件是做什么用的呢?它存放了在安装过程中的日志和的Oracle软件组件的情况。
  以后OUI需要利用这些文件进行其它安装,打补丁(Patch Set)和进行文件维护之用。所以千万不要删除或修改。


Select Installation Type 页面出现。 选择企业版。单击 Next。
 
 产品语言在缺省English的基础上加入简体中文。
 

Specify Home Details
  
  Name:OraDb10g_home1
  Path:/data/oracle/product/10.2.0/db_1
  
 
Product-Specific PreRequisite Checks
  
  Installer 将确认您的系统符合安装和配置所选产品的最低需求。 在继续前纠正并报告问题。如果一切通过,单击 Next。
  
  - Product-specific Prerequisite Checks:
                     Verify that all checks have been passed.
                     Make sure that the status of each Check is set to "Succeeded".
                     On RHEL AS 4 ignore the warnings for binutils, gcc, and openmotif and proceed.
                     If a check failed, see Oracle10g Installation Errors on Linux.
                     Note that the "Retry" button doesn't work after you fixed one of the failed checks.
                     Click Next
                    


Select Configuration Options 页面出现。
 
 因为安装完Oracle需要安装Oracle的Patch Set,因此选择Install Database Software Only。数据库以后使用DBCA创建。
 
 
Privileged OS Groups:保持缺省的
 
 OSDBA Group:oracle
 OSOPER Group:oracle
 

出现Summary窗口,选择Install。开始安装Oracle。
 

以root身份运行如下配置脚本
 
 注意:如果自动安装Oracle,自动安装脚本说也要运行'/data/oracle/product/10.2.0/db_1/root.sh'这个脚本,
 但是实际发现应该是已经运行过这个脚本了。
 
 但是必须运行'/data/oracle/oraInventory/orainstRoot.sh'这个脚本!否则无法安装Patch Set!
    
    
 WARNING:A new inventory has been created in this session. However, it has not yet been
registered as the central inventory of this system.To register the new inventory please
run the script. '/data/oracle/oraInventory/orainstRoot.sh' with root privileges.

If you do not register the inventory, you may not be able to update or patch the products you installed.

The following configuration scripts
/data/oracle/product/10.2.0/db_1/root.sh
need to be executed as root for configuring the system.
If you skip the execution of the configuration tools,
the configuration will not be complete and the product wont function properly.
In order to get the product to function properly,
you will be required to execute the scripts and the configuration tools after exiting the OUI.

 
 
 /data/oracle/oraInventory/orainstRoot.sh
 
 /data/oracle/product/10.2.0/db_1/root.sh
 
 
#/data/oracle/oraInventory/orainstRoot.sh

Changing permissions of /data/oracle/oraInventory to 770.
Changing groupname of /data/oracle/oraInventory to oracle.
The execution of the script. is complete


#/data/oracle/oracle/product/10.2.0/db_1/root.sh

Running Oracle10 root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /data/oracle/oracle/product/10.2.0/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created


Finished running generic part of root.sh script.
Now product-specific root actions will be performed.


运行完毕后选择OK!


出现End of Installation


并提示如下信息:

The following J2EE Applications have been deployed and are accessible at the URLs listed below.

iSQL*Plus URL:
http://RHEL-45:5560/isqlplus

iSQL*Plus DBA URL:
http://RHEL-45:5560/isqlplus/dba

选择Exit退出安装。

 

#==============================================================================
#安装完后,安装Oracle Patch Set 10.2.0.3

Oracle 10gR2目前最新的Patch Set为Patch Set 2,这个Patch Set需要在Oracle的MetaLink下载。
而MetaLink是需要用户名和密码的,只有购买了正式版的Oracle才能得到这个用户名和密码。

安装完Patch Set后Oracle版本号变为:10.2.0.3

 

进入安装目录运行:

./runInstaller -record -destinationFile ~oracle/recorded_10203_20070704.rsp


进入Welcome界面,选择Next


进入Specify Home Details


注意这里一定要选择已经安装好的Oracle的Name和Patch,而不是缺省的。

  Name:OraDb10g_home1
  Path:/data/oracle/product/10.2.0/db_1
  

进入Summary界面,选择Install。开始安装。


以root身份运行脚本:

/data/oracle/oracle/product/10.2.0/db_1/root.sh


注意,由于安装Oracle的时候已经运行过root.sh了。因此会提示是否覆盖原有文件,选择Yes覆盖即可。

# /data/oracle/oracle/product/10.2.0/db_1/root.sh
Running Oracle10 root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /data/oracle/oracle/product/10.2.0/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: y
   Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.


运行完毕后选OK推出。


选择Exit推出安装程序。


Patch Set安装完毕。


 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8295/viewspace-578169/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2002-03-19

  • 博文量
    503
  • 访问量
    365617