手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

VM虚拟机下在Linux上安装Oracle 11G单实例数据库

[日期:2013-10-09] 来源:Linux社区  作者:Linux [字体:大 中 小]

7.使用OUI图形界面安装

[root@oel-01 ~]# init 5

 

Oracle软件的安装

去图形界面,使用oracle用户登陆,然后在桌面右键菜单中,打开一个命令行终端窗口

[oracle@oel-01 ~]$ cd /u01/database/

[oracle@oel-01 database]$ ls

doc install response rpm runInstaller sshsetup stage welcome.html

[oracle@oel-01 database]$ ./runInstaller

 

安装时的注意事项:

在安装时过程中,要查看ORACLE_BASE/HOME等是否正确。

在安装到检查安装环境时,会出现一些内核参数调整、缺少包(如果缺少包,按我这个说明上的环境及软件如果都安装的话是不会缺少包的)等提示。

根据提示框中 Fixable下有YES参数的,都是ORACLE可以自动修复的。

选择上方的FIX&CHECK AGAIN。

这时打开一个终端,注意要使用root用户.根据对话框提示,打开一个终端输入下面:

[root@oel-01 ~]# sh/tmp/CVU_11.2.0.1.0_oracle/runfixup.sh

Response file being used is :/tmp/CVU_11.2.0.1.0_oracle/fixup.response

Enable file being used is:/tmp/CVU_11.2.0.1.0_oracle/fixup.enable

Log file location:/tmp/CVU_11.2.0.1.0_oracle/orarun.log

Setting Kernel Parameters...

kernel.sem = 250 32000 100 128

fs.file-max = 6815744

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 262144

net.core.wmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_max = 1048576

fs.aio-max-nr = 1048576

uid=501(oracle) gid=1000(oinstall)groups=1000(oinstall),1031(dba),1021(asmdba)

[root@oel-01 ~]#

 

再点击对话框中OK选项。

此时重新检查,发现这些参数都自动修复了。

如果有未安装的包再进行安装并重新检查环境。

此时再进行检查,发现就SWAP SIZE未通过,这个可以直接选择IGNORE-ALL。

然后在下一步时检查一下配置是否正确,然后点击下一步进行安装。

#######################################################

安装到启动NETCA时会出错,不能启动,需要打一个补丁

其实我的打了补丁还是不行,安装完成后手动修改了下LISTNER.ORA文件

 

[INS-20802] Oracle Net ConfigurationAssistant failed

Cause-The plug-in failed in its performmethod

 

解决方案:

需打名为p8670579_112010_LINUX.zip的补丁。

出现此错误时,先不要关闭安装程序:

使用oracle用户上传和解压文件以及操作

unzip p8670579_112010_LINUX.zip

cd 8670579

/u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatchapply -invPtrLoc /u01/app/oracle/product/11.2.0/dbhome_1/oraInst.loc

其中/apps/oracle/product/11.2.0/db_1/为ORACLE_HOME,可使用$ORACLE_HOME代替

补丁打好后,点击安装程序的retry,继续安装即可。

 

查看系统中安装的补丁

[oracle@orasrv 8670579]$/u01/app/oracle/OPatch/opatch lsinventory

 

#########################################################

安装完成后根据提示运行以下两个脚本。

[root@oel-01 Server]# sh/u01/app/oraInventory/orainstRoot.sh

Changing permissions of/u01/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions forworld.

 

Changing groupname of /u01/app/oraInventoryto oinstall.

The execution of the script is complete.

[root@oel-01 Server]# sh/u01/app/oracle/product/11.2.0/dbhome_1/root.sh

Running Oracle 11g root.sh script...

 

The following environment variables are setas:

ORACLE_OWNER= oracle

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

 

Enter the full pathname of the local bindirectory: [/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/oratabfile as needed by

Database Configuration Assistant when adatabase is created

Finished running generic part of root.shscript.

Now product-specific root actions will beperformed.

Finished product-specific root actions.

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款