kods.net » sysstat,oracle 10g,glibc » Oracle 10g under Redhat linux installation instructions

Oracle 10g under Redhat linux installation instructions

Oracle 10g under Redhat linux installation instructions




Oracle 10g under Redhat linux installation instructions




1. Hardware requirements



1.1 memory of at least 512M, use the following command to check

grep MemTotal / proc / meminfo

Exchange of at least 1.2 Division 1G

grep SwapTotal / proc / meminfo

1.3 / tmp directory free at least 400M

df-k / tmp 400M

1.4 hard drive idle at least 4G

df-k

2. Software Requirements



2.1 operating system, redhat ES / AS 2.1 (x86), redhat ES / AS 3 (x86)

I have a redhat AS 4.1. Can use the following command to check

cat / etc / issue



2.2 need to install the following packages (in bold blue of the general system installed by default)



binutils-2.17.50.0.6-6.el5

compat-libstdc + + -33-3.2.3-61

compat-libstdc + + -296-2.96-138

compat-gcc-34-3.4.6-4

compat-gcc-34-c + + -3.4.6-4

compat-db-4.2.52-5.1

elfutils-libelf-0.125-3.el5

elfutils-libelf-devel-0.125-3.el5

glibc-2.5-24

glibc-common-2.5-24

glibc-devel-2.5-24

gcc-4.1.2-42.el5

gcc-c + +-4.1.2-42.el5

libaio-0.3.106-3.2

libaio-devel-0.3.106-3.2

libgcc-4.1.2-42.el5

libstdc + +-4.1.2-42.el5

libstdc + +-devel-4.1.2-42.el5

make-3.81-3.el5

openmotif-2.3.0-0.5.el5

sysstat-7.0.2-1.el5

setarch-2.0-1.1



Can use the following command to check:

rpm-q package_name

Package_name Note here that does not contain any version number, for example, to check make-3.79

rpm-q make

If the above software is not installed, please install.



Can be installed online:

yum list | grep package_name --- See software list

yum install package_name --- download and install



2.3 firewall software

If you do not know how to configure, disable. How to disable:

Open Applications / System Settings / Security Level



3. To create the necessary installation of oracle group and user



The needs of the user is oracle, group dba, osinstall

Approach can be used to add the interface can also be a way to use the command line

groupadd osinstall

groupadd dba

useradd-g osinstall-G dba oracle

passwd oracle



4. To create the installation directory to install the required



4.1 Oracle Base directory / u01/app/oracle

mkdir-p / u01/app/oracle

chown-R oracle: osinstall / u01/app/oracle

chmod-R 755 / u01/app/oracle

4.2 Oracle database file storage directory. This can not. General is set to / u02/oradata

mkdir-p / u02/oradata

chown-R oracle: osinstall / u02/oradata

chmod-R 755 / u02/oradata



5. Configure the kernel parameters



5.1 Using a text editor, create or edit / etc / sysctl.conf file, add or modify the following line

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

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

5.2 change the current value of kernel parameters

sysctl-p



6. Check your / etc / host.conf whether it contains the following entries



127.0.0.1 localhost

If not, oracle can not start the listener



7. In order to improve the software in the linux system performance, oracle user settings must be limited to the following shell.



7.1 open a file and processes a number of restrictions on the number of

By adding the following line to the file / etc / security / limits.conf

* Soft nproc 2047

* Hard nproc 16384

* Soft nofile 1024

* Hard nofile 65536

* Refers to all the restrictions on users and groups, Oracle official documentation is required, I recommend that the * replace oracle,

That the oracle user only. * If set, will be likely to impact on other services (such as the Sybase Service to me)

7.2 by adding the following line to the file / etc / pam.d / login, if it does not exist

session required / lib / security / pam_limits.so

Oracle says the official website, but it has been found that this influence.

Version of my operating system is Redhat AS 4.1, to remove this line is no problem.

7.3 In accordance with oracle user's default shell, the default shell start-up file changes as follows.

If the Bourne, Bash, or Korn shell, modify environment variables / etc / profile file as follows:

if [\ $ USER = "oracle"]; then

if [\ $ SHELL = "/ bin / ksh"]; then

ulimit-p 16384

ulimit-n 65536

else

ulimit-u 16384-n 65536

fi

fi



If it is c shell, the environment variable file / etc / csh.login value changes as follows:

if ($ USER == "oracle") then

limit maxproc 16384

limit descriptors 65536

endif



8. For the oracle user environment variable settings, note the following command as oracle user must be logged in as



Bash shell, change. Bash_profile, add the following line

   ORACLE_BASE = / u01/app/oracle

ORACLE_SID =**********

   export ORACLE_BASE ORACLE_SID

c shell, change. Login file, add the following line

setenv ORACLE_BASE / u01/app/oracle

setenv ORACLE_SID **********



9. Recognizing the ORACLE_HOME and TNS_ADMIN environment variables are not user settings



Do not because the installation process of other errors, and set these values

Bash shell

unset ORACLE_HOME

unset TNS_ADMIN

c shell

unsetenv ORACLE_HOME

unsetenv TNS_ADMIN



10. Ready to install media



10.1 general I think it is downloaded. First extract to ensure that, after extracting a directory, owned by oracle: oinstall, and has execute permission

10.2 If the CD-ROM, it is necessary to mount, the general operating system is automatically mount the.



11. In order to visit the oracle identity xwindow, under the installation directory to run runInstaller



12. The installation process, specify the database user's password, a warning we must not contain "@" symbol, in my blog, there are detailed explanation why.



13. The final stage of the installation must be in accordance with the instructions oui to root user ID to run the two script files.

FAQ (to install Oracle in Linux platform for the more common problems)

1. Can not start the installation interface


Run runInstaller message similar to the following:

xlib:connection to "localhost:0.0" refused by server 
xlib:client is not authorized to connect to server 
 
Exception in thread "main" java.lang.InternalError:
can't connect to x11 window server using "localhost:0.0" at ....... 

The solution: Set your DISPLAY environment parameters.

# export DISPLAY= your_IPaddress :0.0

Your_IPaddress you to change the IP. Or root of the implementation of a simple click # xhost + (to the attention of such a security risk will be)

2. The installation of the interface shows a lot of "mouth" look like garbled


Solution: See locale output

# locale
LANG=en_US.UTF-8
LC_CTYPE=zh_CN.GB18030
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Digg Technorati StumbleUpon Mixx del.icio.us Reddit BlinkList Furl YahooMyWeb

Tags: unset 10g, redhat linux 7.2 oracle 10g glibc, check_oracle _ dataguard nagios sysstat, oracle 10g, glibc, gcc, linux installation instructions, compat, 4g, system settings, applications system, oracle group, libaio, necessary installation, bold blue, openmotif, open applications, 512m, software list, hardware requirements, software requirements, security level

Permalink: http://www.kods.netwww.kods.net/oracle-10g-under-redhat-linux-installation-instructions/

Leave a reply