Oracle Linux下安装手册

1. 安装Oracle数据库

1.1. 安装前准备

以root用户登录。 (1)上传并解压文件

将安装包p13390677_112040_Linux-x86-64_1of7.zip、

p13390677_112040_Linux-x86-64_2of7.zip、oracle-kernel-parameters.sh、shell-limits.sh复制或上传到/ database目录下。

进入database目录,解压Oracle 11g的安装包。 [root@tims5 ~]#cd /database

[root@tims5 database]# unzip p13390677_112040_Linux-x86-64_1of7.zip [root@tims5 database]# unzip p13390677_112040_Linux-x86-64_2of7.zip

(2)创建用户、用户组、分配权限、创建目录

这里面创建了一个oracle用户,后面需要用到这个用户。 [root@tims5 ~]# groupadd oinstall [root@tims5 ~]# groupadd dba

[root@tims5 ~]# useradd -m -g oinstall -G dba oracle [root@tims5 ~]# id oracle uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba) [root@tims5 ~]# passwd oracle Changing password for user oracle. New password: BAD PASSWORD: it is too simplistic/systematic BAD PASSWORD: is too simple Retype new password: passwd: all authentication tokens updated successfully. [root@tims5 ~]# mkdir /oracle

[root@tims5 ~]# chown -R oracle:oinstall /oracle [root@tims5 ~]# chmod -R 775 /oracle

[root@tims5 ~]# mkdir /oraInventory

[root@tims5 ~]# chown -R oracle:oinstall /oraInventory

[root@tims5 ~]# chown -R oracle /database [root@tims5 ~]# chmod -R 775 /database

(3)执行两个文件

[root@tims5 ~]# cd /database

[root@tims5 database]# chmod a+x oracle-kernel-parameters.sh [root@tims5 database]# ./oracle-kernel-parameters.sh [root@tims5 database]# chmod a+x shell-limits.sh

[root@tims5 database]# ./shell-limits.sh

1.2. 安装数据库

注销或重启,然后以oracle用户登录。(注意:使用su - oracle不可以。) [oracle@tims5 ~]$ cd /database/database [oracle@tims5 database]$ ./runInstaller Starting Oracle Universal Installer... Checking Temp space: must be greater than 120 MB. Actual 9542 MB Passed Checking swap space: must be greater than 150 MB. Actual 1983 MB Passed Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-04-28_04-46-46PM. Please wait ... 启动图形安装界面。

不要选中I wish to receive security updates via My Oracle Support,然后点击Next。

点击“Yes”。

选择Skip software updates,点击Next。

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4