Redhat 6.2 installation of the Oracle 11g client and Analysis of problems encountered, oracle11g

Source: Internet
Author: User

Redhat 6.2 installation of the Oracle 11g client and Analysis of problems encountered, oracle11g
Oracle 11.2.0.1.0 client (32 bit) was installed on Redhat6.2 (64 bit) yesterday. The following are some problems encountered during installation and the handling process records.
First, extract the installation package and generate a client directory. When runInstaller is run, an error is reported. The error is as follows:
[Oracle @ Ptyjkweb oracle] $ ls-ltotal 627612drwxr-xr-x. 6 oracle oinstall 4096 Aug 19 2009 client-rwxrwxr-x. 1 oracle oinstall 642016988 Jul 7 linux_11gR2_client.zipdrwxrwxr-x. 2 oracle oinstall 16384 Jul 7 lost + found [oracle @ Ptyjkweb oracle] $ cd client/[oracle @ Ptyjkweb client] $ ls-ltotal 28drwxr-xr-x. 8 oracle oinstall 4096 Aug 17 2009 docdrwxr-xr-x. 4 oracle oinstall 4096 Aug 14 2009 installdrwxrwxr-x. 2 oracle oinstall 4096 Aug 14 2009 response-rwxr-xr-x. 1 oracle oinstall 4356 Aug 14 2009 runInstallerdrwxr-xr-x. 14 oracle oinstall 4096 Aug 14 2009 stage-rw-r --. 1 oracle oinstall 3891 Aug 18 2009 welcome.html
[Oracle @ Ptyjkweb client] $./runInstaller Starting Oracle Universal Installer...
Checking Temp space: must be greater than 80 MB. actual 11574 MB PassedChecking swap space: must be greater than 150 MB. actual 8191 MB PassedChecking monitor: must be configured to display at least 256 colors. actual 16777216 PassedPreparing to launch Oracle Universal Installer from/tmp/OraInstall2015-07-07_02-55-47PM. please wait... [oracle @ Ptyjkweb client] $ Exception in thread "main" java. lang. unsatisfiedLinkError:/tmp/OraInstall2015-07-07_02-55-47PM/jdk/jre/lib/i386/xawt/libmawt. so: libXext. so.6: cannot open shared object file: No such file or directoryat java. lang. classLoader $ NativeLibrary. load (Native Method) at java. lang. classLoader. loadLibrary0 (ClassLoader. java: 1751) at java. lang. classLoader. loadLibrary (ClassLoader. java: 1647) at java. lang. runtime. load0 (Runtime. java: 769) at java. lang. system. load (System. java: 968) at java. lang. classLoader $ NativeLibrary. load (Native Method) at java. lang. classLoader. loadLibrary0 (ClassLoader. java: 1751) at java. lang. classLoader. loadLibrary (ClassLoader. java: 1668) at java. lang. runtime. loadLibrary0 (Runtime. java: 822) at java. lang. system. loadLibrary (System. java: 993) at sun. security. action. loadLibraryAction. run (LoadLibraryAction. java: 50) at java. security. accessController. doPrivileged (Native Method) at java. awt. toolkit. loadLibraries (Toolkit. java: 1509) at java. awt. toolkit. <clinit> (Toolkit. java: 1530) at com. jgoodies. looks. lookUtils. isLowResolution (Unknown Source) at com. jgoodies. looks. lookUtils. <clinit> (Unknown Source) at com. jgoodies. looks. plastic. plasticLookAndFeel. <clinit> (PlasticLookAndFeel. java: 122) at java. lang. class. forName0 (Native Method) at java. lang. class. forName (Class. java: 242) at javax. swing. swingUtilities. loadSystemClass (SwingUtilities. java: 1783) at javax. swing. UIManager. setLookAndFeel (UIManager. java: 480) at oracle. install. commons. util. application. startup (Application. java: 758) at oracle. install. commons. flow. flowApplication. startup (FlowApplication. java: 164) at oracle. install. commons. flow. flowApplication. startup (FlowApplication. java: 181) at oracle. install. commons. base. driver. common. installer. startup (Installer. java: 265) at oracle. install. ivw. client. driver. clientInstaller. startup (ClientInstaller. java: 85) at oracle. install. ivw. client. driver. clientInstaller. main (ClientInstaller. java: 95)
[Oracle @ Ptyjkweb client] $ cd/tmp/OraInstall2015-07-07_04-07-33PM/jdk/jre/lib/i386/xawt [oracle @ Ptyjkweb xawt] $ ls-ltotal 3276-rwxr-x ---. 1 oracle oinstall 3149094 May 6 2009 libmawt_g.so-rwxr-x ---. 1 oracle oinstall 200888 May 6 2009 libmawt. so [oracle @ Ptyjkweb xawt] $ rpm-qa | grep libXextlibXext-devel-1.1-3.el6.x86_64libXext-1.1-3.el6.x86_64
We can see that libmawt. so is available. Because the operating system is 64-bit, we have installed a 64-bit libXert package, but still cannot find libXext. so.6
[Root @ Ptyjkweb Packages] # rpm-ivh libXext-1.1-3.el6.i686 Preparing... ######################################## ### [100%] 1: libXext ####################################### #### [100%] [root @ Ptyjkweb Packages] # rpm-ivh libXext-devel-1.1-3.el6.i686 Preparing... ######################################## ### [100%] 1: libXext-devel ##################################### ###### [100%]
[Oracle @ Ptyjkweb ~] # Rpm-qa | grep libXextlibXext-devel-1.1-3.el6.i686libXext-devel-1.1-3.el6.x86_64libXext-1.1-3.el6.x86_64libXext-1.1-3.el6.i686
Finally, the 32-bit libXext package can be installed, and the graphic interface can be smoothly entered.
An OS Kernel setting error is reported in the graphical interface, which can be automatically repaired by running the runfixup. sh script as root, which can be ignored by the pdksh-5.2.14 package, and Swap Size can also be ignored.


[Root @ Ptyjkweb ~] #/Tmp/CVU_11.2.0.1.0_oracle/runfixup. shResponse file being used is:/tmp/CVU_11.2.0.1.0_oracle/fixup. responseEnable file being used is:/tmp/CVU_11.2.0.1.0_oracle/fixup. enableLog file location:/tmp/CVU_11.2.0.1.0_oracle/orarun. logSetting Kernel Parameters... kernel. sem = 250 32000 100. net. ipv4.ip _ local_port_range = 1024 65000net. core. rmem_default = 262144net. core. wmem_default = 262144net. core. rmem_max= 4194304
Then execute the orainstRoot. sh script as prompted to grant the directory permission
[Root @ Ptyjkweb ~] #/Oracle/oraInventory/orainstRoot. sh Changing permissions of/oracle/oraInventory. Adding read, write permissions for group. Removing read, write, execute permissions for world.
Changing groupname of/oracle/oraInventory to oinstall. The execution of the script is complete.
When adding environment variables, note that the InstantClient mode is installed before, so there is no bin directory or lib directory in ORACLE_HOME. Therefore, the PATH is $ ORACLE_HOME instead of $ ORACLE_HOME/bin, and LD_LIBRARY_PATH is $ ORACLE_HOME, instead of $ ORACLE_HOME/lib
[Oracle @ Ptyjkweb client_1] $ vi ~ /. Bash_profile
Export TMP =/tmpexport TMPDIR =/tmpexport ORACLE_BASE =/oracleexport ORACLE_HOME = $ ORACLE_BASE/client_1export PATH = $ ORACLE_HOME: $ PATH
Export TNS_ADMIN = $ ORACLE_HOMEexport LD_LIBRARY_PATH = $ ORACLE_HOME

[Oracle @ Ptyjkweb client_1] $ source ~ /. Bash_profile [oracle @ Ptyjkweb client_1] $ sqlplus/as sysdba
Sqlplus: error while loading shared libraries: libsqlplus. so: cannot open shared object file: No such file or directory
[Oracle @ Ptyjkweb ~] $ Cd $ ORACLE_HOME [oracle @ Ptyjkweb client_1] $ ls-ltotal 145060-rwxr-xr-x. 1 oracle oinstall 21865 Aug 13 2009 adrcidrwxr-xr-x. 3 oracle oinstall 4096 Jul 8 Export toollogsdrwxr-xr-x. 3 oracle oinstall 4096 Jul 8 install-rw-r --. 1 oracle oinstall 37 Jul 8 install. platformdrwxrwx ---. 13 oracle oinstall 4096 Jul 8 inventory-rw-r --. 1 oracle oinstall 40088477 Aug 13 2009 libclntsh. so.11.1-rw-r --. 1 oracle oinstall 11227 Jul 31 2009 libheteroxa11.so-rw-r --. 1 oracle oinstall 6986848 Aug 2 2009 libnnz11.so-rw-r --. 1 oracle oinstall 1879549 Aug 13 2009 libocci. so.11.1-rw-r --. 1 oracle oinstall 89377610 Aug 13 2009 libociei. so-rw-r --. 1 oracle oinstall 152304 Jul 31 2009 libocijdbc11.so-rw-r --. 1 oracle oinstall 1501651 Aug 1 2009 libsqlplusic. so-rw-r --. 1 oracle oinstall 1218075 Aug 1 2009 libsqlplus. so-rw-r --. 1 oracle oinstall 777979 Aug 13 2009 libsqora. so.11.1drwxr-xr-x. 2 oracle oinstall 4096 Jul 8 lightdrwxr-xr-x. 3 oracle oinstall 4096 Jul 8 odbc-rw-r --. 1 oracle oinstall 1996228 Jul 31 2009 ojdbc5.jar-rw-r --. 1 oracle oinstall 2111220 Jul 31 2009 ojdbc6.jar-rw-r --. 1 oracle oinstall 1656280 Aug 2 2009 orai18n. jar-rw-r --. 1 oracle oinstall 82983 Aug 2 2009 orai18n-mapping.jar-rw-r -----. 1 oracle oinstall 55 Jul 8 oraInst. loc-rwxr-xr-x. 1 oracle oinstall 6909 Aug 1 2009 sqlplus-rwxr-xr-x. 1 oracle oinstall 377507 Aug 13 2009 wrc-rw-r --. 1 oracle oinstall 37807 Aug 13 2009 xstreams. jar
If the libsqlplus. so file cannot be found, it is not because the package is missing, but because the LD_LIBRARY_PATH environment variable is not specified or the location is specified incorrectly (under $ ORALCE_HOME/lib)
[Oracle @ Ptyjkweb client_1] $ ldd sqlpluslinux-gate.so.1 => (0x00322000) libsqlplus. so => not foundlibclntsh. so.11.1 => not foundlibnnz11.so => not foundlibdl. so.2 =>/lib/libdl. so.2 (0x00bd3000) libm. so.6 =>/lib/libm. so.6 (0x00147000) libpthread. so.0 =>/lib/libpthread. so.0 (0x0021f000) libnsl. so.1 =>/lib/libnsl. so.1 (0x00110000) libc. so.6 =>/lib/libc. so.6 (0x00745000)/lib/ld-linux.so.2 (0x00476000) libaio. so.1 => not found
In this case, four library files are in the "not found" state. Once the LD_LIBRARY_PATH environment variable is correctly configured, the above three library files are linked normally, as shown below:
[Oracle @ Ptyjkweb client_1] $ sqlplus/as sysdbasqlplus: error while loading shared libraries: libaio. so.1: cannot open shared object file: No such file or directory
[Oracle @ Ptyjkweb logs] $ which sqlplus/oracle/client_1/sqlplus [oracle @ Ptyjkweb logs] $ cd/oracle/client_1/[oracle @ Ptyjkweb client_1] $ ldd sqlpluslinux-gate.so.1 => (0x00322000) libsqlplus. so =>/oracle/client_1/libsqlplus. so (0x003ac000) libclntsh. so.11.1 =>/oracle/client_1/libclntsh. so.11.1 (0xf5a23000) libnnz11.so =>/oracle/client_1/libnnz11.so (0x004f8000) libdl. so.2 =>/lib/libdl. so.2 (0x00bd3000) libm. so.6 =>/lib/libm. so.6 (0x00147000) libpthread. so.0 =>/lib/libpthread. so.0 (0x0021f000) libnsl. so.1 =>/lib/libnsl. so.1 (0x00110000) libc. so.6 =>/lib/libc. so.6 (0x00745000)/lib/ld-linux.so.2 (0x00476000) libaio. so.1 => not found
Currently, only the libio. so.1 library file cannot be properly linked, because the installation package is missing. Currently, only 64-bit packages are installed.
[Oracle @ Ptyjkweb client_1] $ rpm-qa -- queryformat "% {NAME }-% {VERSION}. % {RELEASE} (% {ARCH}) \ n" | grep libaiolibaio-0.3.107-10.el6.x86_64libaio-devel-0.3.107-10.el6.x86_64
I tried to directly change libaio from another 11g Library (64 bit. when you copy the so.1 file to the/oracle/client_1 directory and execute sqlplus, the following error is reported: sqlplus: error while loading shared libraries: libaio. so.1: wrong ELF class: ELFCLASS64

[Root @ Ptyjkweb Packages] # pwd/mnt/Server/Packages [root @ Ptyjkweb Packages] # ls-l | grep libaio-r --. 201 root 21664 Aug 17 2010 libaio-0.3.107-10.el6.i686.rpm-r -- r --. 149 root 21752 Aug 17 2010 libaio-0.3.107-10.el6.x86_64.rpm-r -- r --. 173 root 13580 Aug 17 2010 libaio-devel-0.3.107-10.el6.i686.rpm-r -- r --. 128 root 13516 Aug 17 2010 libaio-devel-0.3.107-10.el6.x86_64. Rpm [root @ Ptyjkweb Packages] # rpm-ivh libaio-0.3.107-10.el6.i686.rpm Preparing... ######################################## ### [100%] 1: libaio ####################################### #### [100%] [root @ Ptyjkweb Packages] # rpm-ivh libaio-devel-0.3.107-10.el6.i686.rpm Preparing... ######################################## ### [100%] 1: libaio-devel ##################################### ###### [1, 100%] [root @ Ptyjkweb Packages] # rpm-qa -- queryformat "% {NAME}-% {VERSION }. % {RELEASE} (% {ARCH}) \ n "| grep libaiolibaio-0.3.107.10.el6 (x86_64) libaio-devel-0.3.107.10.el6 (x86_64) libaio-0.3.107.10.el6 (i686) libaio-devel-0.3.107.10.el6 (i686) [oracle @ Ptyjkweb ~] $ Ldd 'which sqlplus 'linux-gate. so.1 => (0x00747000) libsqlplus. so =>/oracle/client_1/libsqlplus. so (0x002c0000) libclntsh. so.11.1 =>/oracle/client_1/libclntsh. so.11.1 (0xf5a31000) libnnz11.so =>/oracle/client_1/libnnz11.so (0x00c35000) libdl. so.2 =>/lib/libdl. so.2 (0x00f51000) libm. so.6 =>/lib/libm. so.6 (0x00110000) libpthread. so.0 =>/lib/libpthread. so.0 (0x0013a000) libnsl. so.1 =>/lib/libnsl. so.1 (0x00a62000) libc. so.6 =>/lib/libc. so.6 (0x00498000) libaio. so.1 =>/lib/libaio. so.1 (0x009b0000)/lib/ld-linux.so.2 (0x00476000) [oracle @ Ptyjkweb client_1] $ sqlplus/as sysdba
SQL * Plus: Release 11.2.0.1.0 Production on Wed Jul 8 13:53:30 2015
Copyright (c) 1982,200 9, Oracle. All rights reserved.
ERROR: ORA-12162: TNS: net service name is incorrectly specified

Enter user-name:
This is because tnsnames. ora has not been configured, and no error will be reported when you log in with/nolog.
[Oracle @ Ptyjkweb client_1] $ sqlplus/nolog
SQL * Plus: Release 11.2.0.1.0 Production on Wed Jul 8 13:56:19 2015
Copyright (c) 1982,200 9, Oracle. All rights reserved.
SQL>
So far, the Oracle 11g client has been successfully installed, and the whole process can be found that some problems are mainly caused by the lack of installation packages. Of course, improper environment variable configuration is also a part of the reasons.



Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.