Install Oracle 10.1.0.3g for Linux in Fedora Core 7

Source: Internet
Author: User
Tags ftp site

Install Oracle 10.1.0.3g for Linux in Fedora Core 7

1. system resource requirements (these are all nonsense. Now all configurations can meet this requirement !! Haha)

1,At least1gPhysical memory,The hard disk space is large enough. (You can skip the following steps)

2. 1024-2048 requires 1.5 times of swap space

3. 2048-8192 requires 1 time of swap space

4. 8192-0.75 times the swap space

5. At least 400 mb/tmp temporary directory Space

6. Oracle software requires 1.5 GB to 3.5 GB disk space

7. The default database requires 1.2 GB

2. download the software package:

1、ship.db.lnx32.cpio.gz only this package is enough.

Download address of Oracle for Linux x86: (You must register an account or log on first before downloading)

Http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/linuxsoft.html

Decompress:

#gunzip ship.db.lnx32.cpio.gz  #cpio -idmv<ship.db.cpio

2, openmotif21-2.1.30-14.i386.rpm, this package due to copyright issues, from FC4 has not been integrated into the CD

Ftp://fr2.rpmfind.net/linux/fedora/core/4/i386/ OS /Fedora/RPMS/openmotif21-2.1.30-14.i386.rpm

3. Modify the hosts file

The hosts file is located in the/etc/directory. The format is as follows:

<Ip> <machine full name (machine name. Domain Name)> <machine name (abbreviation)>

127.0.0.1 localhost. localdomain localhost

10.122.53.200linux-serverlinux-Server

Iv. Set Kernel Parameters

Edit the/etc/sysctl. conf file, and put the following kernel parameters required for Oracle 10 Gb at the end of the file.

Kernel. Shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
# Semaphores: semmsl, semmns, semopm, semmni
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

Run the/sbin/sysctl-p command to make the preceding settings take effect.

5. Set shell restrictions for oracle users

Edit the/etc/security/limits. conf file and add the following statement at the end of the file:

* Soft nproc 2047

* Hard nproc 16384

* Soft nofile 1024

* Hard nofile 65536

6. Edit Security Options

1. Edit the/etc/PAM. d/login file and add

Session required/lib/security/pam_limits.so

2. edit/etc/SELinux/config,

Set SELinux to SELinux = disabled to disable SELinux.

I set the firewall to disabled. The time relationship has not been further tested. If you are interested, you can test it on your own.

VII. Detect and install the RPM package

# Download the Fedora Core 6 CD file from this ftp site if you do not have a CD file:

Ftp://fr2.rpmfind.net/linux/1/fedora/core/6/i386/ OS /Fedora/RPMS

Rpm-uvh setarch -*

Rpm-uvh -- force TCL -*

Rpm-uvh -- force libxau-devel-* libxp -*

Rpm-uvh compat-db -*

Rpm-uvh compat-libstdc ++-33 *

Rpm-uv h compat-libf2c-34 -*

Rpm-uv h compat-gcc-34 -*

Rpm-uvh libaio -*

Rpm-uvh compat-gcc-34-c ++ -*

Rpm-uvh compat-libstdc ++-296 *

Compat-libgcc-296 rpm-uvh *

# Install the openmotif21-2.1.30-14.i386.rpm that was just downloaded

Rpm-uvh openmotif21-2.1.30-14.i386.rpm

8. Add User Groups and users

Groupadd oinstall

Groupadd DBA

Groupadd rule

Useradd-G oinstall-g dba Oracle

Passwd Oracle

9. Create an Oracle Installation Folder

Mkdir-P/Oracle/product/10.2.0/db_1 create an Oracle Installation Folder

Chown-r oracle. oinstall/Oracle Change the owner and permissions of this folder

Chmod-r 775/Oracle

10. Modify the Linux release file

Edit the/etc/RedHat-release file and replace fedora release 7 (moonshine) with the following content:

Redhat-3

Why? Because oracle is the RedHat Linux Enterprise Edition and novel SuSE Linux by default, you can use a spoofing Oracle installer to continue the installation.

11. Configure Environment Variables

Log on with an oracle user and add the following content to the. bash_profile file (Oracle user root directory ~) Medium:

# Oracle settings

TMP =/tmp; export TMP

Tmpdir = $ TMP; export tmpdir

Oracle_base =/Oracle; export oracle_base

ORACLE_HOME = $ oracle_base/product/10.2.0/db_1; export ORACLE_HOME

Oracle_sid = orcl; export oracle_sid

Oracle_term = xterm; export oracle_term

Path =/usr/sbin: $ path; export path

Path = $ ORACLE_HOME/bin: $ path; export path

LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib; export LD_LIBRARY_PATH

Classpath = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib; export classpath

Export lc_all = en. Us

If [$ user = "oracle"]; then

If [$ shell = "/bin/KSh"]; then

Ulimit-P 16384

Ulimit-N 65536

Else

Ulimit-u 16384-N 65536

Fi

Fi

Because there is a problem with 10 Gb support for Chinese, use export lc_all = en. us to set the language to English.

Run the following command to make the environment variable take effect:

Source. bash_profile

12. modify all permissions for the Oracle Installation File and Its Directory

Here we assume it is/usr/Oracle-install, and then modify the folder ownership and permissions in the terminal. The specific method is as follows:

Chmod 777/usr/Oracle-install

Chown-r oracle. oinstall/usr/Oracle-install

Thirteen, X Windows Settings

Log On with the root user and run the following command:

Xhost +

Log on with an oracle user and run the following command:

Display = 127.0.0.1: 0.0; export display

14. Oracle DB

Run the following command in the DB installation path:

./Runinstaller

Note: We recommend that you select the advance install mode during installation. The Fedora Core is not authenticated by Oracle, and a typical configuration may be faulty.

1. Set the database home to. bash_profile.

2. Set the global name of the database to oracle_sid as required. Machine domain name.

3. Set the database character set and encoding method manually as needed.

4. During the installation process, you will be prompted to log on as the root user to execute some scripts. After the script is executed, press the "OK" button to continue the installation.

15th: configure the configuration after installation (Note: The following operations are performed under the Oracle user. I will not be embarrassed here if I want to perform operations under other Users)

The above are the basic installation points. After the installation is successful, configure the database as follows:

1. log on to and start database operations.

$ LSNRCTL start the listener

$ Sqlplus/nolog connect to the database

SQL * Plus: Release 10.2.0.1.0-production on Fri Jun 15 00:22:59 2007

Copyright (c) 1982,200 4, Oracle. All rights reserved.

SQL> connect/As sysdba Log On As A DBA

Connected.

SQL> shutdown immediate shut down the database

Database closed.

Database dismounted.

Oracle instance shut down.

SQL> startup; start the database

Oracle instance started.

Total system global area 268435456 bytes

Fixed size 778692 bytes

Variable Size 91233852 bytes

Database buffers 176160768 bytes

Redo buffers 262144 bytes

Database mounted.

Database opened.

2. About database deletion and re-installation:

Delete the Oracle installation directory and/etc/ora *. *.

# Rm-F/etc/ora *.*

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.