设为首页 加入收藏

TOP

CentOS6.5下Oracle11G-R2安装、卸载(四)
2014-11-24 02:28:23 来源: 作者: 【 】 浏览:15
Tags:CentOS6.5 Oracle11G-R2 安装 卸载
好重启系统,确保所设置参数全部生效。
以oracle用户登录系统,需要图形界面支持,可以使用xhost、NoManchine等远程桌面工具,本文中使用NoMachine工具。(有需要,请自行下载安装)
1、 官网下载Oracle11GR2安装文件,上传至服务器
执行命令,解压文件,设置可执行权限:
[oracle@tsp-rls-dbserver soft]$ unzip linux.x64_11gR2.zip
[oracle@tsp-rls-dbserver soft]$ chmod 755 -R ./linux.x64_11gR2
2、 以oracle用户登录

3、 设置语言环境信息,运行Oracle安装向导
由于,oracle安装向导无法识别中文字体,终端临时设置语言环境变量,并运行runInstaller。
[oracle@tsp-rls-dbserver linux.x64_11gR2]$ export LANG=en_US
[oracle@tsp-rls-dbserver linux.x64_11gR2]$ export LC_ALL=en_US
[oracle@tsp-rls-dbserver linux.x64_11gR2]$ ./runInstaller

下述4-26的步骤截图省略,如有需要,请到资源中下载word版:

http://download.csdn.net/detail/attagain/7700437


4、 选择安装类型(创建数据库实例)

5、 安装程序类型(服务器类)

6、 安装实例选择(单数据库实例)

7、 安装类型(自定义安装)

8、 选择支持语言(支持中文)

9、 数据库类型(企业级数据库)

10、 数据库安装路径(环境变量设置信息)

11、 安装详细路径(默认)

12、 数据库实例类型(数据仓库)

13、 数据库实例服务名

14、 内存配置(默认40%)

15、 字符集设置(AL32UTF8)

16、 安全设置(默认)

17、 示例数据结构(默认)

18、 数据库控制管理(默认)

19、 数据库文件系统(独立数据分区:/data/oracle)

20、 数据库自动备份(默认)

21、 数据库管理用户密码(统一密码设置)

22、 管理、操作账户分组设置(默认)

23、 安装预检信息收集(需要全部通过,忽略选项,可能导致运行异常)

24、 安装装过程

25、 数据库配置汇总信息
管理URL:https://tsp-rls-dbserver:1158/em

26、 以root用户登录,运行配置脚本

27、 执行脚本orainstRoot过程(/home/oracle/oraInventory/orainstRoot.sh)
[root@tsp-rls-dbserver deps]# /home/oracle/oraInventory/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 oinstall.
The execution of the script is complete.

28、 执行脚本root过程(/home/oracle/app/product/11.2.0/dbhome_1/root.sh)
[root@tsp-rls-dbserver deps]# /home/oracle/app/product/11.2.0/dbhome_1/root.sh
Running Oracle 11g root.sh script...

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /home/oracle/app/product/11.2.0/dbhome_1

Enter the full pathname of the local bin directory: [/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/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.

29、 安装完成
管理URL:https://tsp-rls-dbserver:1158/em

30、 开放防火墙端口(1521、1158)
执行命令:
[root@tsp-rls-dbserver deps]# /sbin/iptables -I INPUT -p tcp --dport 1521 -j ACCEPT
[root@tsp-rls-dbserver deps]# /sbin/iptables -I INPUT -p tcp --dport 1158 -j ACCEPT
保存设置命令:
[root@tsp-rls-dbserver deps]# /etc/rc.d/init.d/iptables save
查看端口打开情况命令:
[root@tsp-rls-dbserver deps]# /etc/init.d/iptables status
重启防火墙服务
[root@tsp-rls-dbserver deps]# /etc/rc.d/init.d/iptables restart

31、 开机自动启动Oracle服务配置
A、 修改dbstart和dbshut脚本
[oracle@tsp-rls-dbserver ~]$ vi $ORACLE_HOME/bin/dbstart
[oracle@tsp-rls-dbserver ~]$ vi $ORACLE_HOME/bin/dbshut
找到文件中的ORACLE_HOME_LISTNER=$1,修改为:ORACLE_HOME_LISTNER=$ORACLE_HOME
B、 修改oratab文件
[oracle@tsp-rls-dbserver ~]$ vi /etc/oratab

将ORATSP:/home/oracle/app/product/11.2.0/dbhome_1:N
修改为:ORATSP:/home/oracle/app/product/11.2.0/dbhome_1:Y

C、 修改rc.local文件(root用户)
[root@tsp-rls-dbserver deps]# vi /etc/rc.d/rc.local
文件尾部添加如下信息:
su oracle -lc "/home/oracle/app/product/11.2.0/dbhome_1/bin/emctl start dbconsole"
su orac

首页 上一页 1 2 3 4 下一页 尾页 4/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇centos6.5x86_64安装oracle11.2.0.. 下一篇ORACLE10G在Centos6.4上安装

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: