You are on page 1of 26

To configure the system, follow these steps (written for Bourne, Korn, and bash shells): 1.

Open a terminal window and log in as the root user. We now create the two groups oinstall and dba:
/usr/sbin/groupadd oinstall /usr/sbin/groupadd dba /usr/sbin/groupadd oper

2.

3.

Create the operating system user oracle:


/usr/sbin/useradd -g oinstall -G dba oracle

4.

Enter the following command to set the password of the oracle user:
/usr/bin/passwd oracle

5.

With an editor of your choosing, open /home/oracle/.bash_profile. If you are using another shell, please add the entries to the appropriate file.
umask 022 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin LD_LIBRARY_PATH=/usr/lib:/usr/X11R6/lib ORACLE_BASE=/u01/app/oracle ORACLE_HOME=$ORACLE_BASE/product/10.1.0/db_1 ORACLE_SID=orcl PATH=$ORACLE_HOME/bin:$PATH export PATH LD_LIBRARY_PATH export ORACLE_BASE ORACLE_HOME ORACLE_SID

6.

Create the directory for the software installation and assign ownership to oracle:oinstall. In the example, you use /u01/app/oracle.
mkdir -p /u01/app/oracle chown -R oracle:oinstall /u01/app chmod -R 775 /u01/app

7.

Set required kernel parameters:

Parameter ---------------------------kernel.semmsl kernel.semmns kernel.semopm kernel.semmni kernel.shmall kernel.shmmax kernel.shmmni fs.file-max net.ipv4.ip_local_port_range

Value ----------------250 3200 100 128 2097152 2147483648 4096 65536 1024 65000

Open the /etc/sysctl.conf file in any text editor and add lines similar to the following:
kernel.sem = 250 32000 100 128 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000

With specified values for these parameters in the /etc/sysctl.conf file, the values persist when you reboot the system.

8.

The kernel changes made previously take effect with each reboot. Issue this command to set the kernel parameters:
/sbin/sysctl -p

9.

Log in as operating system user oracle. You must install the software from an X Window System workstation, an X terminal, or a PC or other system with X server software installed.

Installing Oracle Database 10g on Linux To install the Oracle software, you must use the GUI installer. Log in to the Linux box as user oracle and mount the Oracle Database 10g CD. Change directory to the CD and execute the script /mnt/cdrom/runInstaller from your home directory: /mnt/cdrom/runInstaller

1.

At the Welcome window, click Next. 2.

3.

You need to specify your Inventory directory. The location should be set to /u01/app/oracle/oraInventory. Accept the default Operating System group name, oinstall. Then click Next.

The following window appears. Leave this window open. 4.

You need to execute orainstRoot.sh as the root user. Open a terminal window and enter the following commands: 5. su <rootpassword> cd /u01/app/oracle/oraInventory ./orainstRoot.sh exit exit

Switch back to the Universal Installer window and click Continue. 6.

At the Specify File Locations window, change the path to /u01/app/oracle/product/10.1.0/db_1. Then click Next. 7.

Make sure the Installation Type Enterprise Edition is selected and click Next. 8.

9.

The installer now verifies that the system meets all the minimum requirements for installing and configuring the chosen product. Please correct any reported issues before continuing. When the check successfully completes, click Next.

You want to create a starter database. Make sure that Create a starter database and General Purpose are both selected. Then click Next. 10.

Enter orcl.oracle.com in the Global Database Name field, and select the Create database with example schemas check box. Then 11. click Next. If you plan to perform any of the multilingual lessons, you should select Unicode standard UTF-8 AL32UTF8 as the database character set.

The Select Database Management Option window enables you to choose between Database Control or Grid Control of your database. In 12. this example, you accept the default, which is Database Control. Click Next.

Specify the database file location as /u01/app/oracle/oradata and click Next. 13.

In the Specify Backup and Recovery Options window, you do not want to enable automated backups at this time. Accept the default and 14. click Next.

Enter and confirm a password for all accounts, and then click Next. 15.

Review the Summary window to verify what is to be installed. Then click Install. 16.

The progress window appears. 17.

The Configuration Assistants window appears. 18.

Your database is now being created. 19.

When the database is created, click OK. 20.

When the Setup Privileges window appears, open a new terminal window. 21.

You need to execute root.sh as the root user. From your terminal window, enter the following commands: 22. cd $ORACLE_BASE/product/10.1.0/db_1 su <rootpassword> ./root.sh exit exit

The End of Installation summary appears. The ports shown in the summary can be found in 23. $ORACLE_BASE/product/10.1.0/db_1/portlist.ini. Click OK.

Click Yes to exit. 24.

You might also like