• Ubuntu 13.04 安装 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 libstdc++5_3.3.6-25ubuntu4_i386.deb

    dpkg -i gcc-4.4-base_4.4.7-2ubuntu2_i386.deb
    dpkg -i cpp-4.4_4.4.7-2ubuntu2_i386.deb
    dpkg -i gcc-4.4_4.4.7-2ubuntu2_i386.deb

    dpkg -i mksh


    #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.6 /usr/lib/libstdc++.so.6

    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
    echo ubuntu-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


    #解决

    vi $ORACLE_HOME/sysman/lib/ins_emagent.mk
    Search for the line
    $(MK_EMAGENT_NMECTL)
    Change it to:
    $(MK_EMAGENT_NMECTL) -lnnz11 # good !!!!!!!!!!!!!!!!!!!!!!

     

  • 相关阅读:
    python实战之爬取喜玛拉雅专辑信息
    python工具之exccel模板生成报表
    python模拟登录博客园(附:问题求教)
    maven 三个基本插件 clean dependency compiler
    oracle 安装注意
    mybatis generate 自动生成 entity dao 和 xml 文件
    mybatis 打印sql 语句
    mybatis 关联查询 association
    oracle 多级菜单查询 。start with connect by prior
    mybatis 控制台打印sql
  • 原文地址:https://www.cnblogs.com/jinzhenshui/p/3172503.html
Copyright © 2020-2023  润新知