Centos Oracle 常见错误处理

Centos Oracle 常见错误处理

  • [FATAL] [INS-32037]

错误描述:

The operating system group specified for central inventory (oraInventory) ownership is invalid.

处理方法:

root用户# vim /etc/oraInst.locinventory_loc=/mnt/sdb1/oraInventoryinst_group=oinstall

  • [INS-08109]

错误描述

“[INS-08109] Unexpected error occurred while validating inputs at state 'inventoryPage‘”

处理方法:

vim /mnt/sdb1/database/response/db_install.rsp

INVENTORY_LOCATION=/mnt/sdb1/oraInventory

  • 静默监听UnsatisfiedLinkError exception loading native library: njni11

错误描述:

netca /silent /responsefile /mnt/sdb1/database/response/netca.rspUnsatisfiedLinkError exception loading native library: njni11java.lang.UnsatisfiedLinkError: /mnt/sdb1/oracle/product/11.2.0/db_1/lib/libnjni11.so: /mnt/sdb1/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1: undefined symbol: nnfyboot

处理方法:

cd $ORACLE_HOME/inventory/Scripts/ext/lib/

cp libclntsh.so.11.1 $ORACLE_HOME/lib/

  • ORA-12547: TNS:lost contact

权限问题以及文件大小问题

处理方法:

chmod 6751 $ORACLE_HOME/bin/oracle

  • bash: ./runInstaller: No such file

cd /mnt/sdb1/database/database 然后执行

  • ORA-01157

cannot identify/lock data file 10 - see DBWR trace file ORA-01110: data file 1

  • ORA-00205: error in identifying control file, check alert log for more info

控制文件的错误,请检查警报日志中获得更多信息

处理方法:

从其它地方拷贝control01.ctl control02.ctl

/mnt/sdb1/oracle/oradata/orcl

/mnt/sdb1/oracle/flash_recovery_area/orcl

  • ORA-27123:

错误描述:

unable to attach to shared memory segme

解决方法:

vim /etc/sysctl.conf

kernel.shmmax

64 位 linux 系统:可取的最大值为物理内存值 -1byte ,建议值为多于物理内存的一半,一般取值大于 SGA_MAX_SIZE 即可,可以取物理内存 -1byte 。

内存为 12G 时,该值为 1210241024*1024-1 = 12884901887

内存为 16G 时,该值为 1610241024*1024-1 = 17179869183

内存为 32G 时,该值为 3210241024*1024-1 = 34359738367

内存为 64G 时,该值为 6410241024*1024-1 = 68719476735

内存为 128G 时,该值为 12810241024*1024-1 = 137438953471
kernel.shmall :

当内存为 12G 时, kernel.shmall = 3145728

当内存为 16G 时, kernel.shmall = 4194304

当内次为 32G 时, kernel.shmall = 8388608

当内存为 64G 时, kernel.shmall = 16777216

当内存为 128G 时, kernel.shmall = 33554432

生效

sysctl -p

  • ORA-27125:

dba组权限问题

id oracle
uid=1004(oracle) gid=1000(oinstall) groups=1000(oinstall),1001(dba)

vim /etc/sysctl.conf

vm.hugetlb_shm_group = 1001

posted @ 2021-03-16 16:16  墨客moke  阅读(1526)  评论(0编辑  收藏  举报