千家信息网

GridControl 11gR1 在Linux安装遇到的问题

发表于:2025-02-06 作者:千家信息网编辑
千家信息网最后更新 2025年02月06日,OS: Linux 5.3 问题1:安装GridControl时"Middleware Home Location"不能自动显示已安装的weblogic的目录,即使手工输入也报错"ORACLE_MID
千家信息网最后更新 2025年02月06日GridControl 11gR1 在Linux安装遇到的问题OS: Linux 5.3 问题1安装GridControl时"Middleware Home Location"不能自动显示已安装的weblogic的目录,即使手工输入也报错"ORACLE_MIDDLE_HOME_LOCATION是无效的目录" 解决:检查/etc/hosts中
127.0.0.1 localhost.localdomain localhost hostname --这里需要把hostname去掉 192.168.3.20 hostname 问题2:安装界面输入密码时,密码框无法输入 解决:在root用户下执行
yum remove scim reboot 问题3:dbca创建repository db后,安装Gridcontrol报repository已经存在dbconsole
解决:dbca创建DB时,不选择general purpose,而是使用custom,之后可以自行选择安装的组件,在组件中不要选择enterprise manager repository 问题4:Gridcontrol在OMS configuration (omsca)时报oms secure failed 解决:metalink上一直说这是因为weblogic没有安装10.3.2版本的问题,但本次安装使用的版本是正确的,还是遇到了这个问题。干脆重装,但安装时对
allow only secure agent to communicate with the oms allow only secure access to the console 都不勾选,安装成功。
不知道是不是确实解决了这个问题 问题5:Gridcontrol在以往版本中可以自行安装DB,所以启动时自动启动DB & OMS,但11g中必须单独安装DB,DB就不会自动启动。这样系统自动启动oms就会失败。 解决:参见[ID 735441.1] DB, OMS, Agent自动启动的脚本如下:
  • <>/install/unix/scripts/seedstup
  • <>/install/unix/scripts/omsstup
  • <>/install/unix/scripts/agentstup
    如果使用existing DB, seedstup需要手工创建,文件内容如下:
    #!/bin/sh
    #Script. to start and stop the Listener and Database during shutdown and restart of the machine

    function dbop
    {
    todo=$1
    case $todo in

    startup)
    $ORACLE_HOME/bin/lsnrctl start
    $ORACLE_HOME/bin/sqlplus '/as sysdba'<<- _START_DB
    startup;
    exit;
    _START_DB
    ;;

    shutdown)

    $ORACLE_HOME/bin/lsnrctl stop;
    $ORACLE_HOME/bin/sqlplus '/as sysdba'<<- _STOP_DB
    shutdown immediate;
    exit;
    _STOP_DB
    ;;

    *)
    echo $"Usage: $0 {start|stop}";
    exit 1;
    esac

    }

    export ORACLE_HOME=<>
    user=<>
    export ORACLE_SID=<>
    SU=/bin/su

    if [ $# -gt 1 ]; then
    dbop $2
    export -n ORACLE_HOME
    export -n ORACLE_SID
    exit
    fi

    case "$1" in
    start)
    $SU $user -c "$ORACLE_HOME/install/unix/scripts/seedstup $1 startup"
    ;;
    stop)
    $SU $user -c "$ORACLE_HOME/install/unix/scripts/seedstup $1 shutdown"
    ;;
    *)
    echo $"Usage: $0 {start|stop}";
    exit 1;
    esac

    export -n ORACLE_HOME
    export -n ORACLE_SID
  • 之后修改/etc/rc.d/init.d/gcstartup中加入DB启动的脚本
    if [ -f <>/install/unix/scripts/seedstup ]; then
    . /install/unix/scripts/seedstup
    fi

    问题6:启动linux时sendmail启动很慢

    解决:/etc/hosts中加入 IP hostname hostname.domain

    Domain从/etc/resolve.conf中查的。
    如果没有加hostname.domain,启动时会自动根据hostname和resole.conf中的domain拼成机器名,并直到timeout才退出

  • 0