Install Oracle 10 under slackware 10

Source: Internet
Author: User

Oracle does not support Slackware Linux, but you will find this document useful for your learning.

First, create a Linux User Group

Groupadd oinstall
Groupadd dba

Create an Oracle user

Useradd-g oinstall-G dba oracle
Passwd oracle

Set shared memory
Add the following lines to the/etc/sysctl. conf file:

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

Create a directory required for Oracle Installation as a root user

Mkdir/u01/app/oracle
Mkdir/u01/app/oracle/product
Mkdir/u01/app/oracle/product/10.0.1.0.2
Chown-R oracle. oinstall/u01/app/oracle

Mkdir/home/oracle
Chown-R oracle. oinstall/home/oracle

Spoofing Oracle 10 Installer
Create the file/etc/redhat-release as the root user and add the following lines to the file:

Redhat-3

Download BinUtils of earlier versions

I downloaded it from the following URL to the binutils-2.10.1.tar.gz:
Http://mirrors.usc.edu/pub/gnu/binutils? C = M; O = D

Follow these steps to install it on the system:

# Tar-xzvf binutils-2.10.1.tar.gz
# Cd binutils-2.10.1
#./Configure
# Make
# Make install # This step must be executed as root

Next, run the following command as root.

# Cd/usr/bin
# Mv ld. new
# Cp/usr/local/bin/ld ./

In this way, ld 2.10 is used to replace ld 2.11 temporarily.

Note: I still encountered some Link errors during Oracle Installation. when they happen, I just chose to continue ).

Set shell quota for oracle users

Add the following lines to the/etc/security/limits. conf file:

* Soft nproc 2047
* Hard nproc 163844
* Soft nofile 1024
* Hard nofile 65536

Each line follows the following format:

* Soft Nproc 2047

Set Oracle environment variables

Create a file. profile in the/home/oracle directory as an oracle user and add the following content:

# Oracle Environment

Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_HOME =/u01/app/oracle/product/10.0.1.0.2
Export DISPLAY = localhost: 0.0
Export ORACLE_SID = test
Export ORACLE_TERM = xterm
# Export TNS_ADMIN = Set if sqlnet. ora, tnsnames. ora, etc. are not in $ ORACLE_HOME/network/admin
Export NLS_LANG = AMERICAN;
Export ORA_NLS33 = $ ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib
LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/usr/local/lib
Export LD_LIBRARY_PATH

# Set shell search paths

Export PATH = $ PATH: $ ORACLE_HOME/bin

# CLASSPATH:

CLASSPATH = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib
CLASSPATH = $ CLASSPATH: $ ORACLE_HOME/network/jlib


Export EDITOR = vi
Set-o vi
PS1 = '$ PWD: $ ORACLE_SID>'

If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi

Then restart the system.

System check
After the system restarts, you should use these commands as the root user to check the memory parameters:
You can use the cat tool to check the signal parameters in the current sem file.

# Cat/proc/sys/kernel/sem

Run the following command to check the value of the shmmax parameter:

# Cat/proc/sys/kernel/shmmax

After the restart, sysctl. conf sets this value to 2,147,483,648, but you can set this value to a maximum of 2.7 GB.
Run the following commands as an oracle user to ensure that the environment variables have been correctly set.

# Echo $ ORACLE_SID
# Echo # ORACLE_HOME

It is up to you to decide whether to use the Oracle patch 3006854 patch package.
I downloaded and run the For Red Hat version, but I am not sure whether it is useful For installation.
Install Oracle
You need to download the file from the http://otn.oracle.com before starting the installation
Ship.db.cpio.gz

Create an installation directory and decompress your Oracle Installation image.
I created the directory/u01/app/oracle/100102install and copied the image to it.

Run the following command:

Gunzip ship.db.cpio.gz

Run the following command to decompress the cpio image:

Cpio-idmv <ship. db. cpio

Run the oracle installer as an oracle user)
Go to the Disk1 directory and type./runInstaller to run the installer.
Questions to be answered during installation:

Inventory DirectoryInventory directory): Press enter to use the default value.

Privileged Operating System Groups authorized System user group): dba and dba

When I started ins_rdbms.mk, I encountered two or three Link errors. I chose to continue ).
I can configure and use everything well.


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.