参考链接:
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
回顾整理,未截图,仅此一张