Oracle10g R2 Database on SLES10 for i386 Step-by-Step 1
From CoolSolutionsWiki
This wiki page is a step by step procedure for installing Oracle10g R2 on SLES 10 for i386. This procedure is to be intended to serve as a quick path to a SLES10 system with Oracle10g R2 installed. Since this is a step by step procedure, some of the higher level considerations will not be covered. This procedure assumes the following goals:
- ASM will not be used.
- RAC will not be used.
- The Oracle software will be installed to a local reiserFS filesystem.
- A default database will be created as part of the installation process.
- The database datafiles will be located on a local resierFS filesystem.
- The system has less than 4GB or physical memory
The last assumption is important because on i386 systems with large amounts of memory, installing a typical database during the installation process may fail if Oracle tries to allocate too much memory for its data structures. Adjust the procedure as needed for the actual environment.
Contents |
Before beginning
Before beginning the installation it is important to verify that the system to be used has the following minimum requirements:
- At least 1 GB of memory
- Swap space equal to the amount of physical memory or 2GB (whichever is more)
- 400MB of space in the /tmp directory
- 3.5GB of space in the Oracle home directory (full install)
- 750MB of space for the database datafiles
In addition to the minimum hardware requirements, it is recommended that at least one network interface used to connect to the system have a static IP address.
OS Installation
The installation of SLES 10 can be done any number of ways so long as the following requirements are met:
- The partitioning scheme allows for 2GB of swap or swap equal to the amount of memory in the system.
- All of the required packages are installed (Please Refer Oracle Install Manual for complete list):
- binutils
- gcc
- gcc-c++
- glibc
- gnome-libs
- libstdc++
- libstdc++-devel
- libaio
- libaio-devel
- make
- pdksh
- sysstat
- openmotif
This procedure assumes that the orarun package is installed in addition to the packages listed above. This procedure assumes that installation will be done manually using the CD or DVD media.
Software Packages and Basic Installation Options
Basic Installation Options
To begin the process boot the target machine with the first CD or DVD and select Installation from the boot menu. After the installation program loads the Select Language screen will appear. Choose the appropriate language and click Next (this guide assumes English US).
The default package selection for SLES10 is not sufficient for an Oracle installation so additional packages will need to be selected. Click on the Software hyperlink.
Choosing Required software Packages
The Software Selection and System Tasks screen will appear. Select the C/C++ Compiler and Tools and Oracle Server Base patterns. Click on Details.
Beginning the Installation
The Installation Settings screen will reappear. At this point the installation program is ready to being installing the system. Review the selections and then click Accept.
System configuration
Hostname and Root Password
After the packages have finished installing, the Hostname and Domain Name screen will appear. It is recommended to give the system a fully qualified hostname and not allow DHCP to set the hostname of the system. Once the hostname and domain name have been entered click Next.
Network Configuration
The Network Configuration screen, click the enabled hyperlink to disable the firewall and then click on the Network Interfaces hyperlink.
If the system is not connected to the internet or the Novell Customer Center Configuration should be skipped, select the No, Skip this Test radio button and click Next.
User Configuration
After the Novell Customer Center Configuration is complete or the internet test is skipped, the Installation Settings screen will appear. Accept the defaults and click Next.
Completing Installation
The Writing the system configuration screen will appear and the system configuration will be written to disk.
At this point the OS installation is complete.
Pre-Oracle configuration steps
Note: Modifying /etc/SuSE-release is not recommended by Novell/SUSE. Please see Section #5 of http://ftp.novell.com/partners/oracle/docs/10gR2_sles10_install.pdf for better options.
Editing the /etc/SuSE-release file
Once the installation has complete, log into an X windows session as root. Open a terminal and using the preferred text editor edit the /etc/SuSE-release file. For example, using vi:
# vi /etc/SuSE-release
The original contents of the file should be:
SUSE Linux Enterprise Server 10 (i586) VERSION = 10
Replace the 10s with 9. The edited content should be:
SUSE Linux Enterprise Server 9 (i586) VERSION = 9
Save the file. 'Bold text'Note: This is only a temporary change, and may prevent certain YaST tools from operating properly. After the Oracle installation is complete this file should be reverted to it's original state.
Editing the /etc/host's file
Now edit the /etc/hosts file. Comment out or remove the line that maps the IP address 127.0.0.2 to the systems fully qualified hostname. On the example system:
ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts 127.0.0.2 demo.novell.com demo 192.168.1.5 demo.novell.com demo
Should become:
ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts # 127.0.0.2 demo.novell.com demo 192.168.1.5 demo.novell.com demo
Save the file.
Set the right kernel parameters
Run '/etc/init.d/oracle start' or 'rcoracle start'.
This does not do anything else upon you edit /etc/sysconfig/oracle. Please have a look at the orarun readme (/usr/share/doc/packages/orarun).
Log out of the root session.
Oracle installation
Download and extract the Oracle software
Log into a X windows session as the oracle user.
Download the Oracle Database 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Linux x86 zip file (you will need to agree to the license agreement and have a valid OTN logon) and move it to the system if necessary. Create a directory to stage the Oracle software.
> mkdir -p /opt/oracle/stage
Copy the zip file to the staging directory.
> mv 10201_database_linux32.zip /opt/oracle/stage
Change to the stageing directory and unzip the file.
> cd /opt/oracle/stage > unzip 10201_database_linux32.zip
Install Oracle
Change to the database directory under the directory where you extracted the Oracle software.
> cd database
Invoke the Oracle Universal Installer (OUI).
> ./runInstallerThe Select Installation Type screen will appear. Enter a password for the database users into the Database Password field and confirm the password in the Confirm Password field. Then click on the Next button.
Open a separate console and switch to the root user
> su -
Run the /opt/oracle/oraInventory/orainstRoot.sh script.
# /opt/oracle/oraInventory/orainstRoot.sh Changing permissions of /opt/oracle/oraInventory to 770. Changing groupname of /opt/oracle/oraInventory to oinstall. The execution of the script is complete
Run the /opt/oracle/10gr2/root.sh script. When prompted accept the default location for the local bin directory.
# /opt/oracle/10gr2/root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /opt/oracle/10gr2
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
At this point the installation is complete.
Post installation cleanup
After the installation is complete, the changes made to the /etc/SuSE-release file should be undone. The altered file:
SUSE Linux Enterprise Server 9 (i586) VERSION = 9
Should be reverted to:
SUSE Linux Enterprise Server 10 (i586) VERSION = 10
