![]() |
iPlanet BuyerXpert 4.5 Installation Guide |
Chapter 2 Installing Oracle Database
This chapter provides information about installing the Oracle 8.1.7 / 9i Database Server Standard or Enterprise Edition for Solaris 8 operating systems. You must install this software before installing BuyerXpert.
Detailed information regarding Oracle products can be found in the Oracle documentation set.
Note The following instructions are only guidelines for installing Oracle software. Your individual Oracle configuration may be different.
Hardware Requirements
Before installing Oracle, make sure that your hardware is sufficient. You should have the following on your system:
This allows you to perform a typical installation to create a simple database for prototyping. A real implementation requires more RAM and more disk space.
The following assumptions are made for this example of an Oracle installation:
Table 2-1    Assumptions for Example of an Oracle Installation
Note The following steps are for installing Oracle 8.1.7 / 9i Database Server Enterprise Edition only.
Start the installation process as root:
%su -
Create a directory for Oracle installation:
%mkdir -p /export/oracle8
Create a UNIX group that will be used by Oracle:
%groupadd dba
Create a UNIX user that will be the Oracle owner:
%useradd -g dba -d /export/oracle8 -s /bin/csh oracle
Change the ownership of the Oracle directory:
%chown oracle:dba /export/oracle8
Create a password for oracle user:
%passwd oracle
In any text editor, open the /etc/system file and append the following lines:
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=600
set shmsys:shminfo_shmseg=100
set semsys:seminfo_semmap=100
set semsys:seminfo_semmns=4096
set semsys:seminfo_semmnu=4096
set semsys:seminfo_semume=100
set semsys:seminfo_semmsl=100
set semsys:seminfo_semopm=100
set semsys:seminfo_semvmx=32767
* -------------
* Message Queue
* --------------
set msgsys:msginfo_msgmap=1024
set msgsys:msginfo_msgmax=8192
set msgsys:msginfo_msgmnb=65535
set msgsys:msginfo_msgmni=1024
set msgsys:msginfo_msgssz=2048
set msgsys:msginfo_msgtql=1024
set msgsys:msginfo_msgseg=4096
Add the following lines to your .cshrc file:
setenv ORACLE_BASE /export/oracle8
setenv ORACLE_HOME /export/oracle8
setenv ORACLE_SID BXpert
setenv PATH $ORACLE_HOME/bin:$PATH
setenv LD_LIBRARY_PATH/export/Oracle8/lib:$LD_LIBRARY_PATH
setenv TNS_ADMIN /export/oracle8/network/admin
setenv NLS_LANG AMERICAN_AMERICA.US7ASCII
Note If you want to use character set UTF8, then change:
Enter the following commands to boot the system:
%sync
%sync
%sync
%reboot
After the system is booted, change the user to Oracle:
%su oracle
%password: oracle
Make sure that you have sourced the .cshrc file.
%setenv DISPLAY <hostname>:0.0
From a different terminal window (that does not have Oracle as the user), type:
%xhost +
This allows the database installation to display on your screen.
From the Oracle CD, type:
./runInstaller
When the welcome screen displays, click Next.
Leave the Source field unchanged.
The Destination field shows the ORACLE_HOME value that you have set in your environment.
Click Next.
The UNIX Group Name screen displays.
Enter the name of the UNIX group you created earlier for Oracle (dba).
Choose Oracle8i Enterprise Edition 8.1.7.0.0.
Select the Typical install to get a basic set of Oracle software installed.
Enter the ORACLE_SID you are creating for both the Global Database Name and SID.
Enter the directory you have created earlier to install Oracle.
The Summary screen displays. ![]()
Review all the selections you have made to confirm that they are correct.
During installation, a Setup Privileges window displays.
![]()
The installation pauses at this point, waiting for you to run a script as root.
Follow the instructions and run the root.sh script as a root user.
After executing the script, click OK.
When Oracle installation has completed, a screen displays the database information.
Verify that information.
This is the end of Oracle Installation.
Click Exit.
During the installation, a default database instance is created. The instance is created in the name that you have provided in the Database Identification screen. You do not want to use this instance since it is not configured to BuyerXpert's specification.
You need to remove this instance by executing dbassist from <ORACLE_HOME>/bin directory and select delete a database.
Select the database instance (there should only be one instance since you just created the database server).
The database instance should now be deleted.
Create an Oracle Instance
The following procedures are to create an Oracle instance that is configured to BuyerXpert 4.5.
You now need to create an Oracle instance that is configured to the specification of BuyerXpert.
Execute dbassist from <ORACLE_HOME>/bin directory.
Select create a database.
The Select the type of database to create screen displays.
To configure to BuyerXpert's specification, you need to customize the creation of the database instance.
Select the custom option.
Select Online Transaction Processing (OLTP).
When the next screen displays, enter the approximate number of users to be concurrently (simultaneously) connected to the database at any given time.
Oracle Database Configuration Assistant uses this value and the information you provided about your database environment on the previous screen to set rollback information and various initialization file parameters.
For BuyerXpert, you need at least 20 users.
Click Next.
Since only a small amount of BuyerXpert uses this instance, select Dedicated Server Mode.
Click the following checkboxes:
Click Next.
Enter the database name.
If your NLS_LANG is set to UTF-8, then the character set is UTF-8.
If you want to change it, click Change Character Set...
Make sure that the environment NLS_LANG is set to the character set that you selected.
Click Next.
The Review the following control file parameter information screen displays.
Enter the location of the control files.
The recommended parameters are:
Click Next.
Enter the system tablespace information.
The recommended parameters are:
Size (MB): 300
Enter the location where you want to save the system01.dbf file.
Click Next (or click the Tools tab).
Enter the tools tablespace information.
The recommended parameters are:
Enter the location where you want to save the tools01.dbf file.
Click Next (or click the User tab).
Enter the user tablespace information.
The recommended parameters are:
Name: TS01
Enter the location where you want to save the ts01.dbf file.
Click Next (or click the Rollback tab).
Enter the rollback tablespace information.
The recommended parameters are:
NAME: RBS
Enter the location where you want to save rbs01.dbf file.
Click Next (or click the Index tab).
Enter the index tablespace information.
The recommended parameters are:
Name: TS02
Enter the location where you want to save the indx01.dbf file.
Click Next (or click the Temporary tab).
Enter the temporary tablespace information.
The recommended parameters are:
Name: TEMP
Enter the location where you want to save the temp01.dbf file.
Click Next (or click the interMedia tab).
Enter the interMedia tablespace information.
The recommended parameters are:
Name: DRSYS
Size (MB): 300
Auto Extend: OFF
Minimum Extent (KB): 128
%Increase 0
Initial (KB): 128
Next (KB): 128
Min: 1
Max: 500
Enter the location where you want to save the drsys01.dbf file.
The redo log file screen displays.
![]()
Enter the redo log file location.
The recommended file sizes are:
Click Next.
Enter the login parameter information.
The recommend parameters are:
Click Next.
Enter the System Global Area (SGA) information.
The recommended parameters are:
Shared Pool Size (Bytes): 115343336
Log Buffer Size (Bytes): 163840
Note
Click Next.
Review the directory paths and make any appropriate changes.
Select Create Database Now.
This process can take approximately 2-3 hours.
After completion of creating the database instance, stop the Oracle instance by entering the following (if using Oracle 8.1.7):
%svrmgrl
%SVRMGRL> connect internal
%SVRMGRL> shutdown immediate
%SVRMGRL> quit
Or, if using Oracle 9i, enter the following:
%sqlplus /nolog
%sqlplus> connect / as sysdba;
%sqlplus> shutdown immediate;
%sqlplus> quit
To make sure listener is running, enter the following:
%lsnrctl status
If listener is not running, start the listener by entering:
%lsnrctl start
In the init<ORACLE_SID>.ora file located in ORACLE_HOME/admin/XXX/pfile directory, make the following modifications:
#change open_cursors to 300
open_cursors = 300
#uncomment rollback_segments, where x can go up to 25
rollback_segments = ( RBS0, RBS1, RBS2, RBS3, RBS4, RBS5, RBS6, ...RBSx )
#modify or add optimizer_max_permutation and set it to 1000
optimizer_max_permutations = 1000
#Verify that remote login is commented
#remote_login_passwordfile=exclusive
#remove or comment out the line
#NLS_NUMERIC_CHARACTER = ",."
Restart the database instance by entering the following (if using Oracle 8.1.7):
%svrmgrl
%SVRMGRL> connect internal
%SVRMGRL> startup
%SVRMGRL> quit
Or, if using Oracle 9i, enter the following:
%sqlplus /nolog
%sqlplus> connect / as sysdba;
%sqlplus> startup
%sqlplus> quit
This concludes the Oracle installation.
Previous Contents Index Next
Copyright © 2002 Sun Microsystems, Inc. All rights reserved.
Last Updated June 10, 2002