当前位置:Gxlcms > 数据库问题 > redhat6.5安装oracle 11g

redhat6.5安装oracle 11g

时间:2021-07-01 10:21:17 帮助过:21人阅读

包,上传到linux

  如不能安装,则root用户下使用rpm  –ivh  xxx.rpm  --nodeps –force 来进行安装(其中加上--nodeps -- force 代表强制安装,是在直接使用rpm –ivh  xxx.rpm安装不成功的情况下用的)安装过程略。如 rpm -ivh libaio-0.3.105-2.i386.rpm --nodeps –-force。

  rpm  -ivh  compat-libstdc++-33-3.2.3-61.i386.rpm --nodeps --force   rpm  -ivh  gcc-c++-4.4.7-3.el6.x86_64.rpm  --nodeps -force   rpm  -ivh  gettext-0.18.3.2-1.fc21.x86_64.rpm  --nodeps --force   rpm  -ivh  glibc-2.3.4-2.54.i686.rpm  --nodeps --force   rpm  -ivh  glibc-2.18-4.4.1.x86_64.rpm  --nodeps --force   rpm  -ivh  libaio-0.3.105-2.i386.rpm  --nodeps --force   rpm  -ivh  libaio-devel-0.3.107-10.el6.i686.rpm  --nodeps --force   rpm  -ivh  libaio-devel-0.3.107-10.el6.x86_64.rpm  --nodeps --force   rpm  -ivh  libgcc-3.4.6-3.i386.rpm  --nodeps --force   rpm  -ivh  libstdc++-3.4.6-11.i386.rpm  --nodeps --force   rpm  -ivh  pdksh-5.2.14-36.el5.i386.rpm  --nodeps --force   rpm  -ivh  redhat-lsb-4.0-3.el6.x86_64.rpm  --nodeps --force   rpm  -ivh  unixODBC-2.2.11-7.1.i386.rpm  --nodeps --force   rpm  -ivh  unixODBC-2.2.14-12.el6_3.x86_64.rpm  --nodeps --force   rpm  -ivh  unixODBC-devel-2.2.11-7.1.i386.rpm  --nodeps --force    rpm  -ivh  unixODBC-devel-2.2.14-12.el6_3.x86_64.rpm  --nodeps –force   root用户下执行以上语句,安装成功提示:   [root@localhost Downloads]# rpm  -ivh  unixODBC-2.2.11-7.1.i386.rpm  --nodeps --force   warning: unixODBC-2.2.11-7.1.i386.rpm: Header V3 DSA/SHA1 Signature, key ID 37017186: NOKEY   Preparing...                ########################################### [100%]      1:unixODBC               ########################################### [100%]   技术分享

  技术分享

  技术分享

  技术分享

  技术分享

  

  安装完成后,系统会提示你需要用root权限执行2个shell脚本。按照其提示的路径,找到其所在的位置,如:我的就在/home/oracle/app/oracle/product/11.2.0/dbhome_1/root.sh

  和 /home/oracle/app/oraInventory/orainstRoot.sh  新开启一个终端,输入命令:

su root

cd  /home/oracle/app/oracle/product/11.2.0/dbhome_1

sh  root.sh

cd /home/oracle/oraInventory

sh  orainstRoot.sh

 

[oracle@localhost ~]$ su root

Password:

[root@localhost oracle]# cd  /home/oracle/app/oracle/product/11.2.0/dbhome_1

[root@localhost dbhome_1]# sh  root.sh

Running Oracle 11g root.sh script...

 

The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME=  /home/oracle/app/oracle/product/11.2.0/dbhome_1

 

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: n

The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: n

The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: n

 

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.

Finished product-specific root actions.

[root@localhost dbhome_1]# cd /home/oracle/oraInventory

[root@localhost oraInventory]# sh  orainstRoot.sh

Changing permissions of /home/oracle/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

 

Changing groupname of /home/oracle/oraInventory to dba.

The execution of the script is complete.

  技术分享

  技术分享

 

redhat6.5安装oracle 11g

标签:space   root权限   gre   chm   redhat6.5   很多   需要   ast   lte   

人气教程排行