oracle数据库的静默安装

时间:2022-09-28 08:43:54

命令行安装

初始化配置

配置db_install.rsp文件

安装

./runInstaller -responseFile /home/oracle/database/response/db_install.rsp -silent -showProgress

Q&A

  • 问题:[FATAL] [INS-32037] The operating system group specified for central inventory (oraInventory) ownership is invalid.
    解决:
    设置具有写oraInventory权限的组
    UNIX_GROUP_NAME=oinstall
    INVENTORY_LOCATION=/home/oracle/oraInventory
  • 问题:[FATAL] [INS-35071] Global database name cannot be left blank.
    解决:ORACLE_HOSTNAME=oracle1
  • [FATAL] [INS-35071] Global database name cannot be left blank.
    解决如:oracle.install.db.config.starterdb.globalDBName=oracle.sunyard
    *问题: [FATAL] [INS-35175] No value given for the allocated memory of the database
    解决:oracle.install.db.config.starterdb.memoryLimit=512
    [FATAL] [INS-30501] Automatic Storage Management software is not configured on this system.
    配置Oracle存储方式
  • 问题:[FATAL] [INS-30004] The ADMIN password entered is invalid.
    解决:密码不能带@
  • [FATAL] [INS-35341] User is not a member of the following chosen OS groups
    解决:
    oracle.install.db.DBA_GROUP=dba
    oracle.install.db.OPER_GROUP=oinstall

  • 问题:sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory
    解决:设置如下配置文件

    # .bash_profile
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # for oracle i
    PATH=$PATH:$HOME/bin
    #oracle add
    export ORACLE_BASE=/home/oracle/app/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
    export ORACLE_SID=orcl

    export PATH=$ORACLE_HOME/bin:$PATH
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
  • 问题:ORA-xxxxx: Message xxx not found; no message file for product=RDBMS, facility=ORA
    解决:没有正确设置ORACLE_HOME路径,如app/oracle,需要设置为/home/oracle/app/oracle
  • 问题:sqlplus: error while loading shared libraries: /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied

    /etc/sysconfig/selinux 中改为SELINUX=disabled 
    chcon -t texrel_shlib_t $ORACLE_HOME/lib/*.so