{{out of date|Installation: Packages and AUR reference too old, Dutch version is up-to-date}}

−

{{i18n_entry|简体中文|Oracle (简体中文)}}

+

[[nl:Oracle]]

−

{{i18n_links_end}}

+

[[zh-CN:Oracle]]

−

==Introduction==

+

This document will help you install Oracle Database 11gR1 on Arch Linux. If you only want to connect to Oracle databases running elsewhere, see the instructions for [[Oracle client|installing the Oracle client]].

−

This document will help you intall the Oracle Database 11gR1 on Arch Linux. By using the install method 2 you will be able to finalize the long installation process with only few steps.

+

+

By using the install method 2 you will be able to finalize the long installation process with only a few steps.

## The predefined path in {{Filename|/etc/rc.d/oracledb}} is "db", ie: /oracle/product/db. If you want to use a different path you'll have to change {{Filename|/etc/rc.d/oracledb}}, so that the startup script can locate ORACLE_HOME directory.

+

## The predefined path in {{ic|/etc/rc.d/oracledb}} is "db", ie: /oracle/product/db. If you want to use a different path you'll have to change {{ic|/etc/rc.d/oracledb}}, so that the startup script can locate ORACLE_HOME directory.

## After changing the defaults, click on "Next".

## After changing the defaults, click on "Next".

# Since Oracle database requires certain distro requirement, you'll have to manually check them and then click on "Next".

# Since Oracle database requires certain distro requirement, you'll have to manually check them and then click on "Next".

Install method 1 - manual

This section will guide you through installing Oracle onto a fresh installation of archlinux. This is a general approach that has been tested with kernel 2.6.28.ARCH x86_64 and Oracle 11g R1 64-bit. This should in principle work with other versions of Oracle.

The predefined path in /etc/rc.d/oracledb is "db", ie: /oracle/product/db. If you want to use a different path you'll have to change /etc/rc.d/oracledb, so that the startup script can locate ORACLE_HOME directory.

After changing the defaults, click on "Next".

Since Oracle database requires certain distro requirement, you'll have to manually check them and then click on "Next".

Optional: You can either change the default password now or later after the installation. If you change the ee.rsp.patch file, you need to update the md5sums in the PKGBUILD file. To obtain the md5sum, run (makepkg -g) or:

md5sum ee.rsp.patch

Create the Oracle database package by using makepkg:

makepkg -s

Step 3.
Install the package that makepkg has created by using pacman. You may get an error stating "/bin/ksh already exists", just remove that file and pacman will continue.

Arch i686:

pacman -U oracle-11gR1-1-i686.pkg.tar.gz

Arch x86_64:

pacman -U oracle-11gR1-1-x86_64.pkg.tar.gz

Pacman will now install the Oracle database by executing Oracle's own installation script(./runInstaller -silent -ignoreSysPrereqs).

The installation will take som time, please be patient. Do not exit terminal during database installation, especially when the installation script is executing configuration assistants:

The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root script to run
/home/oracle/oraInventory/orainstRoot.sh
/home/oracle/app/oracle/product/11.1.0/orarch/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
The installation of Oracle Database 11g was successful.
Please check '/home/oracle/oraInventory/logs/silentInstall2009-03-03_07-24-10PM.log'
for more details.

Step 4.
Run these scripts as root:

[ahc@archlinux ~]$ su
Password:

cd /home/oracle/oraInventory
./orainstRoot.sh

cd /home/oracle/app/oracle/product/11.1.0/orarch
./root.sh

Step 5.
The default user for the Oracle database is "oracle". Since the password is not set for the user oracle, you need to run passwd as root:

passwd oracle

Step 6.
Login as the user oracle.

su oracle

Create the file /home/oracle/.bashrc and add these lines to the .bashrc file:

Uncheck "Enable automatic maintenance tasks" if you wish to do it by yourself and click on "Next".

View your filesystem layout and click on "Next".

"Create Database" is checked by default. Click on "Finish" to create database.

Summary of following operations to be performed, click on "OK".

When database creation is complete, click on "Exit".

Scripted

This section walks you through doing a scripted initial database creation.

Note: The scripts assume they are the first database to be installed on this system. If this is not the case review the xdb-create.sh script and comment out the portions which deal with the *.ora files.

Download the following tar file with a set of scripted database installation scripts.