Redhat linux oracle 10g installation instructions

Source: Internet
Author: User
1. Hardware requirements
1.1 memory at least 512 MB. Use the following command to check
Grep MemTotal/proc/meminfo
1.2 swap partition at least 1 GB
Grep SwapTotal/proc/meminfo
1.3/tmp directory idle zone at least 400 mb
Df-k/tmp 400 M
1.4 Hard Drive Free Zone at least 4 GB
Df-k
2. software requirements
2.1 Operating System, redhat ES/AS 2.1 (x86), redhat ES/AS 3 (x86)
My redhat AS 4.1. You can use the following command to check
Cat/etc/issue

2.2 The following software packages must be installed
Gnu gcc package is at least a gcc-3.2.3-2
Make-3.79 · binutils-2.11 · openmotif-2.2.2-16 · setarch-1.3-1 ·
Compat-db-4.0.14.5 · compat-gcc-7.3-2.96.122 · compat-gcc-c ++-7.3-2.96.122 ·
Compat-libstdc ++-7.3-2.96.122 · compat-libstdc ++-devel-7.3-2.96.122
You can use the following command to check:
Rpm-q package_name
Note that package_name does not contain any version number, for example, check make-3.79.
Rpm-q make
If the above software is not installed, install. Start xwindow, open the application/system settings/add and delete programs

2.3 firewall software
If you do not know how to configure it, disable it. Disable it:
Open application/system settings/Security Level

3. Create groups and users required to install oracle
The required users are oracle, the group is dba, And the oinstall
You can use the interface or command line
Groupadd osintall
Groupadd dba
Useradd-g oinstall-G dba oracle
Passwd oracle

4. Create a directory for installation and Installation
4.1 Oracle Base directory/u01/app/oracle
Mkdir-p/u01/app/oracle
Chown-R oracle: oinstall/u01/app/oracle
Chmod-R 755/u01/app/oracle
4.2 Oracle database file storage directory. This does not exist. It is generally set to/u02/oradata
Mkdir-p/u02/oradata
Chown-R oracle: oinstall/u02/oradata
Chmod-R 755/u02/oradata
5. Configure Kernel Parameters
5.1 use a text editor to create or edit the/etc/sysctl. conf file and add or modify the following lines:
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 value of the current Kernel Parameter
Sysctl-p
6. Check whether your/etc/host. conf contains the following entries.
127.0.0.1 localhost
If not, oracle listeners cannot be started.

7. To improve the performance of running software on linux, you must set the following shell limits for oracle users.
7.1 restrictions on the number of files opened and the number of processes
Add the following row to the file/etc/security/limits. conf.
* Soft nproc 2047
* Hard nproc 16384
* Soft nofile 1024
* Hard nofile 65536
* Refers to the restrictions on all users and groups. The Oracle official documentation requires this. I suggest replacing * with oracle,
It indicates that it is only for oracle users. Because if it is set to *, it may affect other services (for example, for my Sybase service)
7.2 Add the following row to the file/etc/pam. d/login. If it does not exist
Session required/lib/security/pam_limits.so
The official Oracle website said this, but some people have found that this will also cause an impact.
My operating system version is Redhat AS 4.1. It is no problem to remove this line.
7.3 modify the default shell start-up file according to the default shell of oracle users.
If it is Bourne, Bash, or Korn shell, modify the environment variable/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 a c shell, the change value of the environment variable file/etc/csh. login is as follows:
If ($ USER = "oracle") then
Limit maxproc 16384
Limit descriptors 65536
Endif

8. Set environment variables for oracle users. Note that the following command is required to log on as an oracle user.
● Bash shell, change. bash_profile, and add the following lines
ORACLE_BASE =/u01/app/oracle
ORACLE_SID = **********
Export ORACLE_BASE ORACLE_SID
● C shell, change the. login file, and add the following lines
Setenv ORACLE_BASE/u01/app/oracle
Setenv ORACLE_SID **********

9. confirm that the environment variables of ORACLE_HOME and TNS_ADMIN are not set by the user.
Do not set these values because of other errors during installation.
● Bash shell
Unset ORACLE_HOME
Unset TNS_ADMIN
● C shell
Unsetenv ORACLE_HOME
Unsetenv TNS_ADMIN

10. Prepare the installation media
10.1 generally, I want to download the package online. First, extract the package to ensure that the directory after decompression is owned by oracle: oinstall and has the execution permission.
10.2 If the disk is mounted, the operating system will automatically mount it.

11. log on to xwindow as an oracle user and run runInstaller under the installation directory.

12. During the installation process, specify the password of the database user, and warn you not to include the "@" symbol. I will go to my blog to explain in detail why.

13. At the final stage of installation, you must follow the instructions of oui to run the two script files as root users.

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.