• Ubuntu 12.04.2 安装 Oracle11gR2


    #step 1:

    groupadd -g 2000 dba
    useradd -g 2000 -m -s /bin/bash -u 2000 grid
    useradd -g 2000 -m -s /bin/bash -u 3000 oracle

    mkdir -p /u01/app/grid
    mkdir -p /u01/app/oracle

    chown grid:dba /u01/app/grid
    chown oracle:dba /u01/app/oracle
    chown root:dba /u01
    chown root:dba /u01/app

    chmod g+rwx /u01
    chmod g+rwx /u01/app


    #step 2:

    apt-get install binutils
    apt-get install build-essential
    apt-get install sysstat
    apt-get install libaio1 libaio-dev
    apt-get install rpm
    #apt-get install libcap2
    apt-get install ssh

    # must install libstdc++5 , gcc-4.4, by mannual !!!!!!!
    dpkg -i ???
    dpkg -i ???


    #step 3:

    ln -sf /bin/bash /bin/sh
    ln -sf /usr/bin/basename /bin/basename
    ln -sf /usr/bin/awk /bin/awk
    ln -sf /usr/bin/env /bin/env
    ln -sf /usr/bin/rpm /bin/rpm

    ln -sf /usr/bin/gcc-4.4 /usr/bin/gcc

    ln -s /usr/lib/i386-linux-gnu/libstdc++.so.5 /usr/lib/libstdc++.so.5
    ln -s /usr/lib/i386-linux-gnu/libpthread_nonshared.a /usr/lib/libpthread_nonshared.a
    ln -s /usr/lib/i386-linux-gnu/libc_nonshared.a /usr/lib/libc_nonshared.a
    ln -s /lib/i386-linux-gnu/libgcc_s.so.1 /lib/libgcc_s.so.1

    ln -s /lib/i386-linux-gnu/libcap.so.2 /lib/libcap.so.1

    #step 99 : the last-step; when run then root.sh

    # this step is not important
    cat /etc/lsb-release >>/tmp/.linux_release
    chmod a+rw /tmp/.linux_release

    # important !!!!!!!
    dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
    chmod a+rw /var/tmp/.oracle/npohasd


    #########################################################################################
    INFO: /usr/bin/ld: warning: -z lazyload ignored.
    /usr/bin/ld: warning: -z nolazyload ignored.
    /usr/bin/ld: /u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib//libnmectl.a(nmectlt.o): undefined reference to symbol 'B_DestroyKeyObject'
    /usr/bin/ld: note: 'B_DestroyKeyObject' is defined in DSO /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so so try adding it to the linker command line
    /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so: could not read symbols: Invalid operation
    collect2: ld returned 1 exi
    INFO: t status
    make[1]: *** [/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/emdctl] Error 1
    make: *** [emdctl] Error 2

    INFO: make[1]: Leaving directory `/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib'

    INFO: End output from spawned process.
    INFO: ----------------------------------
    INFO: Exception thrown from action: make
    Exception Name: MakefileException
    Exception String: Error in invoking target 'agent nmhs' of makefile '/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk'. See '/u01/app/oraInventory/logs/installActions2013-07-03_04-45-12PM.log' for details.
    Exception Severity: 1


    #########################################################################################
    在Ubuntu下面会出现很多mk错误,

    这个类似问题我遇到过:

    vim 打开/opt/oracle/server/sysman/lib/env_emagent.mk 在文件中加入一行:EXPDLIBS=-lnnz11

     

    #########################################################################################
    Once the file exists, do:
    vi $ORACLE_HOME/sysman/lib/ins_emagent.mk
    Search for the line
    $(MK_EMAGENT_NMECTL)
    Change it to:
    $(MK_EMAGENT_NMECTL) -lnnz11

     

  • 相关阅读:
    Tomcat/ WebSphere/WebLogic的作用和特点
    Servlet 执行时一般实现哪几个方法?
    synchronized 和 java.util.concurrent.locks.Lock 的异同 ?
    Request 对象的主要方法
    char 型变量中能不能存贮一个中文汉字?为什么?
    描述一下 JVM 加载 class 文 件的原理机制?
    单例设计模式
    Thread和Runnable
    Math.round方法、String实例化
    思路清晰的秘诀:结构化思维(自上而下)
  • 原文地址:https://www.cnblogs.com/jinzhenshui/p/3170429.html
Copyright © 2020-2023  润新知