author:skate
time:2010/03/19
安裝oracle遇到的故障總結
os:centos4.7(64位)
db版本:oracle10.0.2.1(64位)
這次安裝oracle又遇到點小問題,每次都是遇到點小問題,這次主要是包依賴關系問題,記錄下。以備參考
linux在安裝完oracle需要的基本包后,然后運行./runInstaller,在這開始階段先后報錯,具體錯誤忘記了,不過大概內容是缺庫文件libstdc++.so.5和libXp.so.6
安裝這兩個庫文件
# yum install libXp.so.6
# yum install libstdc++.so.5
安裝這兩個庫文件后,可以繼續,到最后的安裝界面
安裝到link的時候,大概83%的地方,彈出窗口提示錯誤,如果忽略,可以繼續,反復嘗試,總共有三個錯誤。
make[1]: *** [/home1/oracle/product/10.2.0/db_1/sysman/lib/libnmemso.so] Error 1
make: *** [libnmemso] Error 2
Exception String: Error in invoking target 'agent emsubagent' of makefile '/home1/oracle/product/10.2.0/db_1/sysman/lib/ins_sysman.mk'.
See '/home1/oracle/oraInventory/logs/installActions2008-02-26_05-27-25PM.log' for details.
make: *** [ctxhx] Error 1
Exception String: Error in invoking target 'install' of makefile '/home1/oracle/product/10.2.0/db_1/ctx/lib/ins_ctx.mk'.
See '/home1/oracle/oraInventory/logs/installActions2008-02-26_05-27-25PM.log' for details.
make[1]: *** [/home1/oracle/product/10.2.0/db_1/rdbms/lib/extproc32] Error 1
INFO: make: *** [extproc32] Error 2
Exception String: Error in invoking target 'all_no_orcl ipc_g' of makefile '/home1/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk'.
See '/home1/oracle/oraInventory/logs/installActions2008-02-26_05-27-25PM.log' for details.
在忽略這三個錯誤,結束安裝后,運行DBCA安裝數據庫總是報錯,如下所示:
[oracle@db202 database]$ sh /home/oracle/oracle/product/10.2.0/db_1/bin/dbca
UnsatisfiedLinkError exception loading native library: njni10
Exception in thread "main" java.lang.UnsatisfiedLinkError: get
at oracle.net.common.NetGetEnv.get(Native Method)
at oracle.net.config.Config.getNetDir(Unknown Source)
at oracle.net.config.Config.initConfig(Unknown Source)
at oracle.net.config.Config.<init>(Unknown Source)
at oracle.sysman.assistants.util.NetworkUtils.<init>(NetworkUtils.java:2
22)
at oracle.sysman.assistants.util.step.StepContext.<init>(StepContext.jav
a:255)
at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:682)
at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:205)
at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHo
st.java:54)
at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:160)
at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:94)
at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:180)
在網上搜得時候,都說是缺少32位的包,包括metalink都是這樣解釋的,要裝:
glibc-32bit
glibc-devel-32bit
然后安裝32位包
[root@db202 ~]# yum install glibc-devel
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for glibc-devel to pack into transaction set.
glibc-devel-2.3.4-2.43.el 100% |=========================| 97 kB 00:02
---> Package glibc-devel.i386 0:2.3.4-2.43.el4_8.2 set to be updated
---> Downloading header for glibc-devel to pack into transaction set.
glibc-devel-2.3.4-2.43.el 100% |=========================| 97 kB 00:05
---> Package glibc-devel.x86_64 0:2.3.4-2.43.el4_8.2 set to be updated
--> Running transaction check
--> Processing Dependency: glibc = 2.3.4-2.43.el4_8.2 for package: glibc-devel
--> Processing Dependency: glibc-headers = 2.3.4-2.43.el4_8.2 for package: glibc-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for glibc-headers to pack into transaction set.
glibc-headers-2.3.4-2.43. 100% |=========================| 131 kB 00:04
---> Package glibc-headers.x86_64 0:2.3.4-2.43.el4_8.2 set to be updated
---> Downloading header for glibc to pack into transaction set.
glibc-2.3.4-2.43.el4_8.2. 100% |=========================| 127 kB 00:02
---> Package glibc.x86_64 0:2.3.4-2.43.el4_8.2 set to be updated
--> Running transaction check
--> Processing Dependency: glibc-common = 2.3.4-2.43.el4_8.2 for package: glibc
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for glibc-common to pack into transaction set.
glibc-common-2.3.4-2.43.e 100% |=========================| 649 kB 00:13
---> Package glibc-common.x86_64 0:2.3.4-2.43.el4_8.2 set to be updated
--> Running transaction check
--> Processing Dependency: glibc-common = 2.3.4-2.41 for package: glibc
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for glibc to pack into transaction set.
glibc-2.3.4-2.43.el4_8.2. 100% |=========================| 130 kB 00:04
---> Package glibc.i686 0:2.3.4-2.43.el4_8.2 set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
glibc-devel i386 2.3.4-2.43.el4_8.2 update 1.9 M
Updating:
glibc-devel x86_64 2.3.4-2.43.el4_8.2 update 2.4 M
Updating for dependencies:
glibc x86_64 2.3.4-2.43.el4_8.2 update 5.0 M
glibc i686 2.3.4-2.43.el4_8.2 update 6.0 M
glibc-common x86_64 2.3.4-2.43.el4_8.2 update 16 M
glibc-headers x86_64 2.3.4-2.43.el4_8.2 update 576 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 5 Package(s)
Remove 0 Package(s)
Total download size: 32 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): glibc-headers-2.3. 100% |=========================| 576 kB 01:37
(2/6): glibc-devel-2.3.4- 100% |=========================| 1.9 MB 03:15
(3/6): glibc-common-2.3.4 100% |=========================| 16 MB 14:52
(4/6): glibc-devel-2.3.4- 100% |=========================| 2.4 MB 02:22
(5/6): glibc-2.3.4-2.43.e 100% |=========================| 5.0 MB 04:35
(6/6): glibc-2.3.4-2.43.e 100% |=========================| 6.0 MB 05:12
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : glibc-common ####################### [ 1/11]
Updating : glibc ####################### [ 2/11]
Updating : glibc [ 3/11]warning: /etc/ld.so.conf created as /etc/ld.so.conf.rpmnew
Updating : glibc [ 3/11]warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
Updating : glibc ####################### [ 3/11]
Stopping sshd:[ OK ]
Starting sshd:[ OK ]
Updating : glibc-headers ####################### [ 4/11]
Installing: glibc-devel ####################### [ 5/11]
Updating : glibc-devel ####################### [ 6/11]
Cleanup : glibc-headers ####################### [ 7/11]
Cleanup : glibc-common ####################### [ 8/11]
Cleanup : glibc-devel ####################### [ 9/11]
Cleanup : glibc ####################### [10/11]
Cleanup : glibc ####################### [11/11]
Installed: glibc-devel.i386 0:2.3.4-2.43.el4_8.2
Updated: glibc-devel.x86_64 0:2.3.4-2.43.el4_8.2
Dependency Updated: glibc.x86_64 0:2.3.4-2.43.el4_8.2 glibc.i686 0:2.3.4-2.43.el4_8.2 glibc-common.x86_64 0:2.3.4-2.43.el4_8.2 glibc-headers.x86_64 0:2.3.4-2.43.el4_8.2
Complete!
安裝完之后,然后重新relink all,再運行DBCA和netca就都ok了
# $ORACLE_HOME/bin/relink all
總結:在安裝64位系統時, 不僅需要64位的安裝包,還需要32的安裝包
----end----