Oracle安装过程报错整理

参考链接:

  1. 【体系结构】Oracle的kernel.shmmax和kernel.shmall设置
  2. Oracle 11g RAC 在 CentOS 5.5 的安装日志
  3. centos7安装Oracle12(完整版)

1.Could not execute auto check for display colors using command /usr/bin/xdpyinfo

oracle@corleone database]$ ./runInstaller 
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB. Actual 42451 MB Passed
Checking swap space: must be greater than 150 MB. Actual 4031 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使用界面
xhost +SI:localuser:oracle

2.SWAP内存不够

1. dd if=/dev/zero of=/home/swap bs=1024 count=2476662# 2476662根绝报错内容具体而定
2. mkswap /home/swap
3. vi  /etc/fstab  #在末尾添加home/swap swap swap defaults 0 0 \
4. swaopen -a
5. swaopen -p#使之生效

3.kernel.shmmax和kernel.设置不合理报错

kernel.shmall = 419430

shmall=是全部允许使用的共享内存大小,shmmax 是单个段允许使用的大小。这两个可以设置为内存的 90%。

例如 1.6G 内存,1.6X1024X1024X1024X90% = 419430
kernel.shmmax = 1744830463

shmax参数:Linux进程可以分配的单独共享内存段的最大值。一般设置为内存总大小的一半。这个值的设置应该大于SGA_MAX_TARGET或MEMORY_MAX_TARGET的值,因此对于安装Oracle数据库的系统,shmmax的值应该比内存的二分之一大一些。
该参数控制可以使用的共享内存的总页数。 Linux 共享内存页大小为 4KB, 共享内存段的大小都是共享内存页大小的整数倍。

我的内存最大大小是 1.6G ,那么需要共享内存页数是 1.6GB/4KB==1744830463 (页)

4.继续配置不合理报错, ora-00845 memory_target not supported on this system

 131  history
[root@localhost u02]# df -h | grep shm
tmpfs                    487M     0  487M   0% /dev/shm
1. vi  /etc/fstab #最后一行添加 tmpfs /dev/shm tmpfs defaults,size=1G 0 0
2. mount -o remount,size=1G /dev/shm

5. 不是报错,误以为

root@localhost wangjie]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.

6. Oracle监听配置错误,copying database files, ora-01034:oracle not avaliable

1. vi u01/app/oracle/product/12.1.0/dbhome_1/network/admin/samples/tnsnames.ora
# 将文件中的host={(hostname)} 全部改为 host=0.0.0.0

回顾整理,未截图,仅此一张

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值