目录
1 报告内容概要
2 oracle database 11g r2安装过程详解
2.1 安装前的准备工作
2.1.1 拷贝安装文件
2.1.2 解压安装包的压缩文件
2.1.3 创建oracle相关用户和组
2.1.4 创建相关目录并赋予权限
2.1.5 设置oracle用户的环境变量
2.2 开始安装软件
2.2.1 启动安装程序的图形界面
2.2.2 安装过程
3 数据库的创建
3.1 创建数据库
3.2 创建监听
3.3 继续数据库创建过程
(全文点击小图看大图)
1 报告内容概要
本文介绍了在oracle linux 6环境中安装oracle database 11.2.0以及创建一个数据库的详细过程。
2 oracle database 11安装过程详解
2.1 安装前的准备工作
2.1.1 拷贝安装文件
由于安装的oracle database 11是在vmware workstation 10环境下的oracle linux 6中安装的,,所以事先通过securefxportable这个软件将oracle database 11安装包拷贝到oracle linux 6中/u01分区下software文件夹中;
2.1.2 解压安装包的压缩文件
压缩文件解压为“database”文件夹;
[root@enmoedu ~]# cd /u01/software
[root@enmoedu software]# ls
database p10404530_112030_linux_1of7.zip p10404530_112030_linux_2of7.zip
2.1.3 创建oracle相关用户和组
[root@enmoedu ~]# groupadd dba
[root@enmoedu ~]# groupadd oinstall
[root@enmoedu ~]# useradd -g oinstall -g dba -s /bin/bash oracle
[root@enmoedu ~]# passwd oracle
changing password for user oracle.
new unix password:
bad password: it is based on a dictionary word
retype new unix password:
passwd: all authentication tokens updated successfully.
2.1.4 创建相关目录并赋予权限
[root@enmoedu ~]# mkdir /soft
[root@enmoedu ~]# chown -r oracle:oinstall /soft
[root@enmoedu ~]# chmod -r 755 /soft
[root@enmoedu ~]# mkdir -p /u01/app/oracle
[root@enmoedu ~]# chown -r oracle:oinstall /u01
[root@enmoedu ~]# chmod -r 755 /u01
2.1.5 设置oracle用户的环境变量
[root@enmoedu ~]# su - oracle
[oracle@enmoedu ~]$ vi .bash_profile
将.bash_profile文件修改如下:
# .bash_profile
# get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# user specific environment and startup programs
path=$path:$home/bin
export path
export oracle_base=/u01/app/oracle
export oracle_home=$oracle_base/product/11.2.0/dbhome_1
export oracle_sid=enmoedu
export path=$path:$home/bin:$oracle_home/bin
export ld_library_path=$oracle_home/lib:/lib:/usr/lib
然后执行:[oracle@enmoedu ~]$ source .bash_profile
至此,安装前的准备工作已经完成。
2.2 开始安装软件
2.2.1 启动安装程序的图形界面
在oracle用户下,打开安装程序的图形界面:
[oracle@enmoedu ~]$ cd /u01/software/database
[oracle@enmoedu database]$ ls
doc readme.html rpm sshsetup welcome.html
install response runinstaller stage
[oracle@enmoedu database]$ ./runinstaller
此时会显示这个提示:
starting oracle universal installer...
checking temp space: must be greater than 120 mb. actual 4324 mb passed
checking swap space: must be greater than 150 mb. actual 5119 mb passed
checking monitor: must be configured to display at least 256 colors
>>> could not execute auto check for display colors using command /usr/bin/xdpyinfo. check if the display variable is set. failed
some requirement checks failed. you must fulfill these requirements before
continuing with the installation,
continue? (y/n) [n]
然后执行以下操作:
[oracle@enmoedu database]$ su - root
password:
[root@enmoedu ~]# xhost +
access control disabled, clients can connect from any host
继续之前安装:
[root@enmoedu ~]# su - oracle
[oracle@enmoedu ~]$ cd /u01/software/database
[oracle@enmoedu database]$ ./runinstaller
将“i wish to receive security updates via my oracle support”取消。
至此,安装文件的图形界面已经启动。
2.2.2 安装过程
(1)点击“yes”;
(2)取消软件更新;
(3)选择只安装软件;
(4)选择单实例数据库安装