ubuntu 12.04 64 oracle 11g,Ubuntu 12.04.3 安装 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 2005 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 pdksh_5.2.14-26ubuntu1_i386.deb

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

ln -s /usr/lib/i386-linux-gnu/libc_nonshared.a       /usr/lib/libc_nonshared.a

ln -s /usr/lib/i386-linux-gnu/libpthread_nonshared.a /usr/lib/libpthread_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  # good !!!!!!!!!!!!!!!!!!!!!! 第 176 行 !!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值