Oracle10g(二)-CentOS6 图形安装

Oracle10g(二)- CentOS6图形安装

一、约定

安装在Centos 6.10中通过。

二、启动图形界面,登录oracle账号

如果远程登录图形界面,需要安装vnc server (参见:https://blog.csdn.net/shijin741231/article/details/110800209.)

终端安装

startx 

登录oracle 用户(不建议使用root su oracle 方式,会产生各种问题)
在这里插入图片描述

三、在图形界面终端运行

  1. 运行./runInstaller
    在这里插入图片描述

  2. 选择高级安装
    在这里插入图片描述

  3. 添加中文
    在这里插入图片描述

  4. 安装目录
    在这里插入图片描述

  5. 检查约束
    在这里插入图片描述

  6. 创建数据库
    在这里插入图片描述

  7. 安装类型
    在这里插入图片描述

  8. 修改数据库字符集
    在这里插入图片描述

  9. 设置数据库管理
    在这里插入图片描述

  10. 选择存储类型
    在这里插入图片描述

  11. 不启用自动备份
    在这里插入图片描述

  12. 设置数据库密码
    在这里插入图片描述

  13. 安装摘要
    在这里插入图片描述

  14. 安装异常处理
    遇到异常优先考虑是否遗漏*.686的包,参见“Oracle10g(一)中安装先决条件检查”
    遇到异常安装patch-for-10g_install.tar补丁包

tar -xvf patch-for-10g-install.tar
cd path
./patch-for-10g-install.sh /data/database/oracle/product/10.2.0/dbhome_1/

在这里插入图片描述

  1. 安装异常处理
    在这里插入图片描述

  2. 安装异常处理
    在这里插入图片描述因为已经配置/etc/hosts中hostname,所以上述错误不一定出现

  3. 安装异常处理
    在这里插入图片描述因为提前配置了/etc/sysctl.conf中vm.hugetlb_shm_group,所以上述错误不一定出现

  4. 安装异常处理

重新安装oracle时,没有orainstRoot.sh文件 
重新安装RAC时,到excute configuration scripts时,只提示运行:/opt/ora10g/product/10.2.0/crs_1/root.sh这个文件,
不提示/opt/ora10g/oraInventory/orainstRoot.sh;这个文件,是为什么?

原因:
没删除/etc/oraInst.loc文件

在这里插入图片描述

// 执行 orainstRoot.sh
[root@linux7-100 patch]# cd /data/database/oracle/oraInventory
[root@linux7-100 oraInventory]# ls
Contents  ContentsXML  install.platform  logs  oraInstaller.properties  oraInst.loc  orainstRoot.sh  oui  sessionContext.ser
[root@linux7-100 oraInventory]# sh orainstRoot.sh 
Changing permissions of /data/database/oracle/oraInventory to 770.
Changing groupname of /data/database/oracle/oraInventory to oinstall.
The execution of the script is complete
// 执行 root.sh,因为是重装所以/usr/local/bin下已经有文件
[root@linux7-100 dbhome_1]# cd /data/database/oracle/product/10.2.0/dbhome_1
[root@linux7-100 dbhome_1]# ls root.sh
root.sh
[root@linux7-100 dbhome_1]# sh root.sh
Running Oracle10 root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /data/database/oracle/product/10.2.0/dbhome_1

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: y
   Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: y
   Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: y
   Copying coraenv to /usr/local/bin ...

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.
[root@linux7-100 dbhome_1]# 
  1. 安装完成
    在这里插入图片描述
  2. 安装测试
    在这里插入图片描述

====

[root@linux7-100 shijin]# ll
总用量 2296564
-rw-r--r-- 1 root root 1239269270 1119 23:15 linux.x64_11gR2_database_1of2.zip
-rw-r--r-- 1 root root 1111416131 1119 22:45 linux.x64_11gR2_database_2of2.zip
-rw-r--r-- 1 root root     665600 46 11:42 patch-for-10g-install.tar
drwxrwxr-x 8 1000 1000       4096 1125 10:04 rlwrap-0.43
-rw-r--r-- 1 root root     313139 1125 10:03 rlwrap-0.43.tar.gz
[root@linux7-100 shijin]# tar -xvf patch-for-10g-install.tar 
patch/
patch/libirc.a
patch/libnmadbg.a
patch/libnmcbuf.a
patch/libnmccol.a
patch/snmccolm.o
patch/patch-for-10g-install.sh
[root@linux7-100 shijin]# cd patch
[root@linux7-100 patch]# ll
总用量 652
-rw-r--r-- 1 oracle oinstall 380188 726 2019 libirc.a
-rw-r--r-- 1 oracle oinstall  36628 726 2019 libnmadbg.a
-rw-r--r-- 1 oracle oinstall 148152 726 2019 libnmcbuf.a
-rw-r--r-- 1 oracle oinstall  77056 726 2019 libnmccol.a
-rwxr-xr-x 1 oracle oinstall    372 726 2019 patch-for-10g-install.sh
-rw-r--r-- 1 oracle oinstall  12976 726 2019 snmccolm.o
[root@linux7-100 patch]# ./patch-for-10g-install.sh /data/database/oracle/product/10.2.0/dbhome_1/
/data/database/oracle/product/10.2.0/dbhome_1/
processing : libnmadbg.a
processing : libnmcbuf.a
processing : libnmccol.a
processing : snmccolm.o
processing : libirc.a
done!
[root@linux7-100 patch]# ll /data/database/oracle/product/10.2.0/dbhome_1/lib/libirc.a*
-rw-rw---- 1 oracle oinstall 380188 46 23:20 /data/database/oracle/product/10.2.0/dbhome_1/lib/libirc.a
-rw-r----- 1 root   root     380188 46 23:20 /data/database/oracle/product/10.2.0/dbhome_1/lib/libirc.a.bak
[root@linux7-100 patch]# ll /data/database/oracle/product/10.2.0/dbhome_1/sysman/lib/*.bak
-rw-r--r-- 1 root root  36628 4月   6 23:20 /data/database/oracle/product/10.2.0/dbhome_1/sysman/lib/libnmadbg.a.bak
-rw-r----- 1 root root 148152 4月   6 23:20 /data/database/oracle/product/10.2.0/dbhome_1/sysman/lib/libnmcbuf.a.bak
-rw-r----- 1 root root  77056 4月   6 23:20 /data/database/oracle/product/10.2.0/dbhome_1/sysman/lib/libnmccol.a.bak
-rw-r----- 1 root root  12976 4月   6 23:20 /data/database/oracle/product/10.2.0/dbhome_1/sysman/lib/snmccolm.o.bak
[root@linux7-100 patch]# 

在这里插入图片描述

[root@linux7-100 patch]# id oracle
uid=502(oracle) gid=502(oinstall)=502(oinstall),503(dba),504(oper)
[root@linux7-100 patch]# more /proc/sys/vm/hugetlb_shm_group
0
[root@linux7-100 patch]# echo 503 > /proc/sys/vm/hugetlb_shm_group
[root@linux7-100 patch]# more /proc/sys/vm/hugetlb_shm_group
503
[root@linux7-100 patch]# 

==可以在/etc/sysctl.conf中优先配置vm.hugetlb_shm_group=503 ==
在这里插入图片描述
在这里插入图片描述

cd /data/database/oracle/database
./runInstaller -ignoreSysPrereqs

异常现象:./runInstaller 弹出框很小或为一条竖线(CentOS7)
使用./runInstaller -jreLoc /etc/alternatives/jre_1.8.0方法,会报无法找到JAVA运行环境

解决办法“runInstaller -ignoreSysPrereqs” 方式运行,弹出框虽然也很小,但可以拖拽变大

图形安装Oracle10g

  1. 忽略警告,直接跳过,选择安装数据库软件
    在这里插入图片描述

  2. 选择安装数据库软件
    在这里插入图片描述

  3. 选择安装语言(待确认)
    在这里插入图片描述

  4. 指定安装路径
    在这里插入图片描述

  5. 验证检查
    在这里插入图片描述
    在这里插入图片描述

  6. 选择创建并配置数据库
    在这里插入图片描述

  7. 选择用途和字符集
    在这里插入图片描述
    在这里插入图片描述

  8. 选择 Server Class
    在这里插入图片描述在这里插入图片描述

  9. 不启用备份
    在这里插入图片描述

  10. 选择使用同样的密码
    在这里插入图片描述

  11. 开始安装
    在这里插入图片描述

[root@centos7-18 lib]# cd /data/database/oraInventory/
[root@centos7-18 oraInventory]# ll orainstRoot.sh 
-rwxrwx--- 1 oracle oinstall 1677 1221 19:51 orainstRoot.sh
[root@centos7-18 oraInventory]# ./orainstRoot.sh 
Changing permissions of /data/database/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /data/database/oraInventory to oinstall.
The execution of the script is complete.
[root@centos7-18 oraInventory]# 
[root@centos7-18 oraInventory]# cd /data/database/oracle/product/11.2.0/
[root@centos7-18 11.2.0]# ll root.sh
-rwxr-x--- 1 oracle oinstall 500 1221 19:51 root.sh
[root@centos7-18 11.2.0]# ./root.sh
Running Oracle 11g root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /data/database/oracle/product/11.2.0

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.

安装完成

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值