rhel6.5 oracle11g 安装

RHEL6.5下Oracle11g图形化安装教程
本文详细介绍了如何在RHEL6.5系统上通过图形化界面安装Oracle11g数据库,包括环境准备、软件包安装、用户组设置、系统配置调整、解压安装文件及运行图形化安装程序等步骤。

系统:rhel6.5 server6 oracle11g
主机名解析 ip地址
因安转oracle需要图形故安装图形化
[root@server6 ~]# yum groupinstall "X 窗口系统" "KDE 桌面" "桌面"
#根据自己系统是否是英文 yum grouplist 查看
[root@server6 ~]# yum install pdksh-5.2.14-37.el5_8.1.x86_64.rpm
#系统不带需自行下载
[root@server6 ~]# yum install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers kernel-headers ksh libaio liaio-devel libgcc libgomp libstdc++ libstdc++-devel make numactl-devel sysstat unixODBC unixODBC unixODBC-devel pdksh
[root@server6 ~]# vim /etc/sysctl.conf #初学保持默认即可
[root@server6 ~]# groupadd -g 500 oinstall
[root@server6 ~]# groupadd -g 501 dba
[root@server6 ~]# useradd -g oinstall -G dba oracle
[root@server6 ~]# echo "redhat" |passwd --stdin oracle
[root@server6 ~]# mkdir /opt/oracle
[root@server6 ~]# chown -R oracle:oinstall /opt/oracle/
[root@server6 ~]# chmod -R 755 /opt/oracle/
[root@server6 ~]# vim ~oracle/.bash_profile #注意是oracle用户变量
umask 022

export ORACLE_BASE=/opt/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2/db_1

export ORACLE_SID=orcl

export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib

[root@server6 ~]# source ~oracle/.bash_profile
[root@server6 ~]# vim /etc/security/limits.conf #末尾添加
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle hard stack 10240

[root@server6 ~]# vim /etc/profile #末尾添加
if [ $USER = "oracle" ]; then

if [ $SHELL = "/bin/ksh" ]; then

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

fi

[root@server6 /]# unzip linux.x64_11gR2_database_1of2.zip
[root@server6 /]# unzip linux.x64_11gR2_database_2of2.zip
[root@server6 /]# cd database/
[root@server6 database]# ls
doc install response rpm runInstaller sshsetup stage welcome.html
进oracle 用户图形化界面:
点击 runlnstaller 进行安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
点击ignore all忽略所有就行
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
安装完成后,系统会提示你需要用root权限执行2个shell脚本。按照其提示的路径,打开一个新的客户端找到其所在的位置执行就行,记住是用root用户来执行的:
rhel6.5  oracle11g 安装
1在oracle用户的图形界面oracle用户中,新开启一个终端,输入命令dbca:
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
配置监听及本地网络服务:

在oracle用户的图形界面oracle用户中,新开启一个终端,输入命令netca:

创建监听服务(这里指充当oracle服务器,让别的oracle客户端连接本oracle服务器)
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
点击Change Login输入某个管理员密码点击Canel:
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
rhel6.5  oracle11g 安装
[oracle@server6 ~]$ sqlplus system
SQL> SQLcreate table student(name varchar(20),age number(3));
SQL> insert into student values('Tom', 18);
SQL> select * from student;
SQL> desc student;
SQL> exit

转载于:https://blog.51cto.com/13810716/2315054

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值