Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Redhat6.4 64-bit installation Oracle 10.2.0.564-bit database

2025-03-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Experimental environment:

Operating system: Redhat 6.464 bit

Database: Oracle10.2.0.1 64-bit installation package + Oracle10.2.0.5 64-bit upgrade package

I. preparation of the environment before installation

1. Install Redhat6.4 operating system

I will not talk about the specific installation of the operating system here.

2. Preparation of installation media

Oracle10.2.0.1 installation package: 10201_database_linux_x86_64.cpio.gz

Oracle10.2.0.5 upgrade package: p8202632_10205_Linux-x86-64.zip

3. Software and hardware environment check

(1) memory and swap space check

[root@seiang10g~] # grepMemTotal / proc/meminfo

MemTotal: 2726460 kB

[root@seiang10g~] # grepSwapTotal / proc/meminfo

SwapTotal: 2736120 kB

[root@seiang10g~] # free-m

Total used free shared buffers cached

Mem: 2662 1753 909 0 19 1510

-/ + buffers/cache: 222 2440

Swap: 2671 0 2671

(2) disk space check

[root@seiang10g~] # df-h

Filesystem Size Used Avail Use% Mounted on

/ dev/mapper/vg_seiang10g-lv_root

47G 4.2G 40G 10% /

Tmpfs 1.4G 72K 1.4G 1% / dev/shm

/ dev/sda1 485m 37m 423m 9% / boot

/ dev/sr0 3.5G 3.5G 0100% / mnt/dvd

(3) CPU and system architecture check

[root@seiang10g~] # grep "model name" / proc/cpuinfo

Model name: Intel (R) Xeon (R) CPU X3430 @ 2.40GHz

[root@seiang10g~] # uname-a

Linuxseiang10g.comsys.com 2.6.32-358.el6.x86_64 # 1 SMP Tue Jan 29 11:47:41 EST 2013x86_64 x86'64 x 86'64 GNU/Linux

(4) check of packages that must be installed

[root@ seiang10gdatabase] # firefoxwelcome.html

The official documentation requirements are as follows:

It can be seen from the documentation that Oracle10g only supports Red Hat Enterprise Linux4.0, and there is no clear support for versions above Red Hat Enterprise Linux6.0. This is because Oracle has not officially tested Oracle10g in versions later than 4. Install the appropriate installation package as required.

[root@seiang10g~] # yum installbinutils* compat* control-center* gcc* glibc* gnome-libs* libstdc* make*sysstat* xscreensaver* unixODBC* lib*

4. Environmental preparation

(1) create groups and users

[root@seiang10g~] # groupaddoinstall

[root@seiang10g~] # groupadd dba

[root@seiang10g~] # useradd-goinstall-G dba oracle

[root@seiang10g~] # passwdoracle

Changing passwordfor user oracle.

New password:

BAD PASSWORD: itis based ona dictionary word

BAD PASSWORD: istoo simple

Retype newpassword:

Passwd: allauthentication tokens updated successfully

(2) create relevant directories

[root@seiang10g~] # mkdir-p/u01/app/oracle

[root@seiang10g~] # chown-Roracle:oinstall / u01/app/oracle

[root@seiang10g~] # chmod-R 775/u01/app/oracle

(3) configure Linux kernel parameters and environment restrictions

[root@seiang10g~] # vim/etc/sysctl.conf

Kernel.shmall = 4294967296

Kernel.shmall = 2097152

Kernel.shmmax = 2147483648

Kernel.shmmni = 4096

Kernel.sem = 25032000 100128

Fs.file-max = 65536

Net.ipv4.ip_local_port_range= 1024 65000

Net.core.rmem_default= 262144

Net.core.rmem_max= 262144

Net.core.wmem_default= 262144

Net.core.wmem_max= 262144

[root@seiang10g~] # vim/etc/security/limits.conf

Oracle soft nproc 2047

Oracle hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

[root@seiang10g~] # vi/etc/pam.d/login

Session required / lib/security/pam_limits.so

Session required pam_limits.so

(4) modify Oracle user environment variables

[oracle@seiang10g~] $vim.bash_profile

# .bash _ profile

# Get the aliasesand functions

If [- f ~ / .bashrc]; then

. ~ / .bashrc

Fi

# User specificenvironment and startup programs

PATH=$PATH:$HOME/bin

Export PATH

ExportORACLE_SID=seiang

ExportORACLE_BASE=/u01/app/oracle

ExportORACLE_HOME=$ORACLE_BASE/product/10.2/dbhome_1

ExportORACLE_OWNER=oracle

ExportPATH=$ORACLE_HOME/bin:$PATH

Umask 022

(5) disable SELinux and turn off the firewall

[root@seiang10g~] # vim/etc/selinux/config

# This filecontrols the state of SELinux on the system.

# SELINUX= cantake one of these three values:

# enforcing-SELinux security policy isenforced.

# permissive-SELinux prints warningsinstead of enforcing.

# disabled-No SELinux policy is loaded.

SELINUX=disabled

# SELINUXTYPE= cantake one of these two values:

# targeted-Targeted processes are protected

# mls-Multi Level Security protection.

SELINUXTYPE=targeted

[root@seiang10g~] # serviceiptables stop

Iptables: Flushingfirewall rules: [OK]

Iptables: Settingchains to policy ACCEPT: filter [OK]

Iptables:Unloading modules: [OK]

[root@seiang10g~] # serviceiptables status

Iptables: Firewallis not running.

[root@seiang10g~] # chkconfigiptables off

[root@seiang10g~] # chkconfigiptables-- list

Iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off

(6) modify / etc/hosts file

[root@seiang10g~] # vim/etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4localhost4.localdomain4

:: 1 localhost localhost.localdomainlocalhost6 localhost6.localdomain6

10.1.1.47 seiang10g.comsys.com seiang10g

Second, install Oracle software

1. Extract the installation package

[root@seiang10gsoftware] # gunzip10201_database_linux_x86_64.cpio.gz

[root@seiang10gsoftware] # cpio-idmv

< 10201_database_linux_x86_64.cpio [root@seiang10gsoftware]# unzipp8202632_10205_Linux-x86-64.zip 解压出来的目录为database和Disk1 [oracle@seiang10g~]$ cd/u01/software/database/ [oracle@seiang10gdatabase]$ ll total 36 drwxrwxr-x 9 9411042424 4096 Oct 20 2005 doc drwxr-xr-x 5 9411042424 4096 Oct 23 2005 install drwxr-xr-x 2 9411042424 4096 Oct 23 2005 response -rwxr-xr-x 1 9411042424 1326 Oct 23 2005 runInstaller drwxrwxr-x 9 9411042424 12288 Oct 23 2005 stage -rw-rw-r-- 1 9411042424 5416 Oct 20 2005 welcome.html 2、执行./runInstaller [oracle@seiang10g database]$ exportDISPLAY=10.1.1.123:0.0 报错信息1: [oracle@seiang10g database]$./runInstaller Starting OracleUniversal Installer... Checking installerrequirements... Checking operatingsystem version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5, redhat-6,UnitedLinux-1.0, asianux-1, asianux-2, asianux-3, enterprise-4, enterprise-5 orSuSE-11 Passed All installerrequirements met. Preparing tolaunch Oracle Universal Installer from /tmp/OraInstall2017-07-11_10-49-36AM.Please wait ...[oracle@seiang10g Disk1]$ Oracle Universal Installer, Version10.2.0.5.0 Production Copyright (C)1999, 2010, Oracle. All rights reserved. Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2017-07-11_10-49-36AM/jre/1.4.2/lib/i386/libawt.so:libXp.so.6: cannot open shared object file: No such file or directoryoccurred.. java.lang.UnsatisfiedLinkError:/tmp/OraInstall2017-07-11_10-49-36AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6:cannot open shared object file: No such file or directory atjava.lang.ClassLoader$NativeLibrary.load(Native Method) atjava.lang.ClassLoader.loadLibrary0(Unknown Source) atjava.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(UnknownSource) at java.lang.System.loadLibrary(UnknownSource) atsun.security.action.LoadLibraryAction.run(Unknown Source) atjava.security.AccessController.doPrivileged(Native Method) atsun.awt.NativeLibLoader.loadLibraries(Unknown Source) 错误原因: 一般是却少libXp的包 解决办法: [root@seiang10gPackages]# rpm-qa libXp* [root@seiang10gPackages]# yuminstall libXp* 报错信息2: [oracle@seiang10g database]$ ./runInstaller Starting OracleUniversal Installer... Checking installerrequirements... Checking operatingsystem version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5,redhat-6, UnitedLinux-1.0, asianux-1, asianux-2, asianux-3, enterprise-4,enterprise-5 or SuSE-11 Passed All installerrequirements met. Preparing tolaunch Oracle Universal Installer from /tmp/OraInstall2017-07-11_10-57-11AM.Please wait ...[oracle@seiang10g Disk1]$ Oracle Universal Installer, Version10.2.0.5.0 Production Copyright (C)1999, 2010, Oracle. All rights reserved. Exception java.lang.UnsatisfiedLinkError:/tmp/OraInstall2017-07-11_10-57-11AM/jre/1.4.2/lib/i386/libawt.so:libXtst.so.6: cannot open shared object file: No such file or directoryoccurred.. java.lang.UnsatisfiedLinkError:/tmp/OraInstall2017-07-11_10-57-11AM/jre/1.4.2/lib/i386/libawt.so:libXtst.so.6: cannot open shared object file: No such file or directory atjava.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(UnknownSource) atjava.lang.ClassLoader.loadLibrary(Unknown Source) atjava.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(UnknownSource) 错误原因: 一般是却少libXtst的包 解决办法: [root@seiang10gPackages]# rpm-qa libXtst* [root@seiang10gPackages]# yuminstall libXtst* 报错信息3: [oracle@seiang10g database]$./runInstaller Starting OracleUniversal Installer... Checking installerrequirements... Checking operatingsystem version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5,redhat-6, UnitedLinux-1.0, asianux-1, asianux-2, asianux-3, enterprise-4,enterprise-5 or SuSE-11 Passed All installerrequirements met. Preparing tolaunch Oracle Universal Installer from /tmp/OraInstall2017-07-11_11-00-09AM.Please wait ...[oracle@seiang10g Disk1]$ Oracle Universal Installer, Version10.2.0.5.0 Production Copyright (C)1999, 2010, Oracle. All rights reserved. Can't connect to X11 window server using'10.1.1.123:0.0' as the value of the DISPLAY variable. 10.1.1.123:0.0 10.1.1.123:0.0 OUI-10025:Unableto start an interactive install session because of the following error:Can'tconnect to X11 window server using '10.1.1.123:0.0' as the value of the DISPLAYvariable. The DISPLAY environment variable should be set to :, where the is usually '0.0'. OUI-10026:Dependingon the Unix Shell, you can use one of the following commands as examples to setthe DISPLAY environment variable: - For csh: % setenv DISPLAY192.168.1.128:0.0 - For sh, ksh andbash: $DISPLAY=192.168.1.128:0.0; export DISPLAY Use the followingcommand to see what shell is being used: echo $SHELL Use the followingcommand to view the current DISPLAY environment variable setting: echo $DISPLAY - Make sure thatclient users are authorized to connect to the X Server. OUI-10027:Toenable client users to access the X Server, open an xterm, dtterm or xconsoleas the user that started the session and type the following command: % xhost + To test that theDISPLAY environment variable is set correctly, run a X11 based program thatcomes with the native operating system such as 'xclock': % If you are notable to run xclock successfully, please refer to your PC-X Server or OS vendorfor further assistance. Typical path for'xclock': '/usr/X11R6/bin/xclock' 出现这个错误是由于当前用户不是oracle或者环境变量设置的不正确导致的,因为每次都是用oracle用户解压,安装,没有遇到这个问题,所以也没有仔细研究过这个错误。经过在网上查询相关的资料找到了出错的原因: 可以参考一下http://blog.sina.com.cn/s/blog_73582d750100ppto.html(链接内容如下:) cause: X-Windows emulation is not yet correctly configured or is being mis-used. solution: 1.Make sure that "DISPLAY" is set properly as either: :0.0 or :0.0 note:In this example, ip_address/hostnameis the host name or IP address ofthe system that you want to use to display Oracle Universal Installer (yourworkstation or PC). eg.[root@rac1 ~]# xhost + access control disabled, clients can connect from any host [root@rac1 ~]# su - oracle [oracle@rac1 ~]$ export DISPLAY=192.16.2.98:0.0 [oracle@rac1 ~]$ cd database/ [oracle@rac1 database]$ ./runInstaller Starting Oracle Universal Installer... Checking installer requirements... Checking operating system version: must be redhat-3, SuSE-9, redhat-4,UnitedLinux-1.0, asianux-1 or asianux-2 Passed All installer requirements met. Preparing to launch Oracle Universal Installer from/tmp/OraInstall2009-03-05_03-36-28PM. Please wait ...[oracle@rac1 database]$Oracle Universal Installer, Version 10.2.0.1.0 Production Copyright (C) 1999, 2005, Oracle. All rights reserved. 2. Oracle Customer Support has seeninstances where use of the UNIX/Linux "su" command, even "su - oracle" hascaused this "Can't connect to X11 window server" error. Therefore, please besure that you are LOGGED ON as the oracle account. Log directly into theinstall session. Do not use any variety of "su". use oracle log on , not "su - oracle" eg. [oracle@rac1 database]$ ./runInstaller 3.Oracle Customer Support has seeninstances where the incorrect "ulimit" setting for number of files (aka "-n",aka "nofiles") has caused this "Can't connect to X11 window server" error.Therefore, please be sure that your values for "nofiles" in the output of"ulimit -a" is at least 65536. 备注:前2个办法只需要满足其中一个就可以避免这个错误了:直接用oracle登陆,不能su- oracle or 设置display=ip_address_thatyou want to use to display Oracle Universal Installer:0.0 通过直接使用oracle用户登录解决了上面所产生的问题; 下面开始oracle10.2.0.1; [oracle@seiang10g database]$ ./runInstaller

The following error is reported at 83% of the installation

When the installation reaches 83%, the above error is reported as follows: after entering the continuous running state, Oracle terminates the operation in the link step, incorrectly reports that link failed, and then check the log information generated by the installation:

[root@seiang10g~] # tail-60/u01/app/oraInventory/logs/installActions2017-07-1111 04-01-22PM.log

INFO:mv ctxlc / u01/app/oracle/product/10.2.0/dbhome_1/bin/ctxlc

INFO:chmod 751 / u01/app/oracle/product/10.2.0/dbhome_1/bin/ctxlc

INFO:gcc-M32-o ctxhx-L/u01/app/oracle/product/10.2.0/dbhome_1/ctx//lib32/-L/u01/app/oracle/product/10.2.0/dbhome_1/lib32/-L/u01/app/oracle/product/10.2.0/dbhome_1/lib32/stubs/ / u01/app/oracle/product/10.2.0/dbhome_1/ctx/lib/ctxhx.o-L/u01/app/oracle/product / 10.2.0/dbhome_1/ctx/lib/-ldl-lm-lctxhx-Wl -rpath,/u01/app/oracle/product/10.2.0/dbhome_1/ctx/lib-lsnls10-lnls10-lcore10-lsnls10-lnls10-lcore10-lsnls10-lnls10-lxml10-lcore10-lunls10-lsnls10-lnls10-lcore10-lnls10 `cat / u01/app/oracle/

INFO:product/10.2.0/dbhome_1/lib/ sysliblist`

INFO:/usr/bin/ld: crt1.o: No such file: No such file or directory

Collect2:ld returned 1 exit status

INFO:make: * * [ctxhx] Error 1

INFO:End output from spawned process.

INFO:--

INFO:Exception thrown from action: make

ExceptionName: MakefileException

ExceptionString: Error in invoking target 'install' of makefile'/u01/app/oracle/product/10.2.0/dbhome_1/ctx/lib/ins_ctx.mk'.

See'/u01/app/oraInventory/logs/installActions2017-07-11cm 04-01-22PM. Log 'fordetails.

ExceptionSeverity: 1

Reason for reporting an error:

After the query, it was found that it was the problem of installing the dependency package, glibc-devel. In the 32bit environment, when we use rpm direct installation or yum installation, only the 32bit version can be installed. However, in the 64bit environment, you need to install both versions. In this process, you need to strictly comply with the requirements of the documentation for installing the package.

Solution:

[root@seiang10gPackages] # yuminstall glibc*

The error message above appears after Retry, and then check the relevant installation log:

INFO:make [1]: Leaving directory `/ u01 apprenticespact oracleUniverse product10.2.0 Universe dbhomeowners 1 Greater sysmanGrease lib'

INFO:make [1]: * * [/ u01/app/oracle/product/10.2.0/dbhome_1/sysman/lib/libnmemso.so] Error 1

Make:*** [libnmemso] Error 2

INFO:End output from spawned process.

INFO:--

INFO:Exception thrown from action: make

ExceptionName: MakefileException

ExceptionString: Error in invoking target 'agent nmo nmb' of makefile'/u01/app/oracle/product/10.2.0/dbhome_1/sysman/lib/ins_sysman.mk'.

See'/u01/app/oraInventory/logs/installActions2017-07-11cm 04-01-22PM. Log 'for details.

ExceptionSeverity: 1

Click continue

INFO:make [1]: Leaving directory `/ u01ActionPlacleUniverse product10.2.0Universe dbhomeowners 1andrdbmsUniple lib'

INFO:make [1]: * * [/ u01/app/oracle/product/10.2.0/dbhome_1/rdbms/lib/extproc32] Error 1

Make:*** [extproc32] Error 2

INFO:End output from spawned process.

INFO:--

INFO:Exception thrown from action: make

ExceptionName: MakefileException

ExceptionString: Error in invoking target 'all_no_orcl' of makefile'/u01/app/oracle/product/10.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk'.

See'/u01/app/oraInventory/logs/installActions2017-07-11cm 04-01-22PM. Log 'fordetails.

ExceptionSeverity: 1

Click continue

INFO:make [1]: Leaving directory `/ u01 apprenticespact oracleUniverse product10.2.0 Universe dbhomeowners 1 Greater sysmanGrease lib'

INFO:make [1]: * * [/ u01/app/oracle/product/10.2.0/dbhome_1/sysman/lib/nmccollector] Error 1

Make:*** [nmccollector] Error 2

INFO:End output from spawned process.

INFO:--

INFO:Exception thrown from action: make

ExceptionName: MakefileException

ExceptionString: Error in invoking target 'collector' of makefile'/u01/app/oracle/product/10.2.0/dbhome_1/sysman/lib/ins_emdb.mk'.

See'/u01/app/oraInventory/logs/installActions2017-07-11cm 04-01-22PM. Log 'fordetails.

ExceptionSeverity: 1

This question is more complex, the author inquired about a lot of information and did not have a definite response. Finally, a senior's solution was found on the Internet.

First click ignore to skip the steps, and then you can directly complete the execution of the runInstaller script. In the $ORACLE_HOME/bin directory, change the oracle file to oracle.bin.

Create the file oracle in the same directory as follows:

#! / bin/bash

Export DISABLE_HUGETLBFS=1

Exec $ORACLE_HOME/bin/oracle.bin $@

EOF

Use the chmoda+x oracle command to modify the permissions of the file after saving. After this policy modification, the subsequent dbca process of Oracle to create the database executes normally.

[root@seiang10g~] # / u01/app/oracle/oraInventory/orainstRoot.sh

Changingpermissions of / u01/app/oracle/oraInventory to 770.

Changinggroupname of / u01/app/oracle/oraInventory to oinstall.

Theexecution of the script is complete

[root@seiang10g~] # / u01/app/oracle/product/10.2.0/dbhome_1/root.sh

RunningOracle10 root.sh script...

Thefollowing environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= / u01/app/oracle/product/10.2.0/dbhome_1

Enterthe full pathname of the local bin directory: [/ usr/local/bin]:

Copying dbhome to / usr/local/bin...

Copying oraenv to / usr/local/bin...

Copying coraenv to / usr/local/bin...

Creating/etc/oratab file...

Entrieswill be added to the / etc/oratab file as needed by

DatabaseConfiguration Assistant when a database is created

Finishedrunning generic part of root.sh script.

Nowproduct-specific root actions will be performed.

Third, install Oracle10.2.0.5.0

The purpose of installing and upgrading Oracle10.2.0.5 is to keep the database running stably and avoid a lot of bug

If this problem occurs during an environmental check, it is as follows:

The specific error messages in the environmental inspection are as follows:

Checking forOracle Home incompatibilities...

Actual Result:NEW_HOME

Check complete.The overall result of this check is: Failed

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report