Installation of Oracle 9.2.0.1 on Solaris 8
 

Prerequisite Check
Get The Oracle Software
Installation Preparation
Installing Oracle Software
Oracle Configuration and Usage for WAS/WEA
Installing WAS With Oracle Installation Instructions
Installing Oracle Database Application User Client
Installing Oracle Database Administrator Client
Installing Filesets Manually
Manual Setup Procedure
Creating And Using An Oracle Database
Miscellaneous Oracle Utilities and Commands
Other Oracle Installation Information
Installation of Windows Oracle Client
Oracle Automatic Install Script
Oracle Administrator Profile (.profile)
Installing Java 1.1.8 Manually
Error Conditions
 

Prerequisite Check
 

1) Assure you have enough memory (To confirm amount of memory on your box "prtconf" will display it).

2) Assure your patches are at least 05/06/02 or later.
 
 
 

Get The Oracle Software

The software can be installed from the WEA Test Dept "/WEA/inst.images" mounted disk, from CDs, downloaded from Oracle's web site, as well as resides on several internal IBM servers which can be mounted for your use.
 

From /WEA/inst.images

The software currently resides on the network mounted drive directory "/WEA/inst.images/Oracle/oracle.9201.sun" as 3 disks, "Disk1", "Disk2", and "Disk3". You must assure the WEA disk is mounted (if not, from the root directory as root, at the command prompt, type "mkdir   /WEA", and then "mount  wea2aix6:/WEA   /WEA".

(OR)

Installing Oracle From CD's

1) Install the Oracle CD1 in the CD drive and then mount the CD (i.e. "mkdir  /mntOracle && mount  -o  ro  -v  cdrfs /dev/cd0  /mntOracle"). Note, IT IS IMPORTANT that if you use this method you execute the installer from the root directory (i.e. "/mntOracle/runInstaller"), otherwise, when you are instructed to change disks, and you have executed a program that is still running from that disk, you will not be able to unmount the CD 1 to insert CD 2..
 

(OR)

Download Oracle From Oracle Site

1) Create and change to a directory to perform your installation from (i.e. /tmp/installOracle").

2) Connect to "www.oracle.com" (or "http://otn.oracle.com/software/products/oracle9i/content.html").

3) Create an account, then logon as the created account (the authore used "shayden@ipass.net" with the appropriate password), and then download the 9.2.0.1.0 version of Oracle to the directory you created in step 1. It is actually 4 files, "solaris64_9.2.0.1.0.Disk1.cpio.gz", "solaris64_9.2.0.1.0.Disk2.cpio.gz", and "solaris64_9.2.0.1.0.Disk3.cpio.gz".

4) Once you unzip the files with "gunzip", then use "cpio" to create the appropriate directories. The commands to perform this follow:

gunzip solaris64_9.2.0.1.0.Disk1.cpio.gz
gunzip solaris64_9.2.0.1.0.Disk2.cpio.gz
gunzip solaris64_9.2.0.1.0.Disk3.cpio.gz

cpio -idmv < solaris64_9.2.0.1.0.Disk1.cpio
cpio -idmv < solaris64_9.2.0.1.0.Disk2.cpio
cpio -idmv < solaris64_9.2.0.1.0.Disk3.cpio
 

(OR)

Get the Software From one of the IBM Internal Sites

Mount From wessun450

1) Create a directory "/mntOracle" to mount to (i.e "mkdir /mntOracle").

2) Mount from the /export/home5 directory on wessun450 to access Oracle software (i.e. "mount -o ro wessun450:/export/home5 /mntOracle"
 
 
 
 

Installation Preparation

These instructions assume you are connected to a network, have the "/WEA" disk mounted, and are using a WEA Test Dept Jumpstart OS image.

Although these instructions assume you are installing from the "/WEA" disk, you can also perform the installation from a mounted CD. They also assume you are at the console for the machine, or are using DSView (if not, you must execute the command "xhost +" at the console for this machine).  Whether installing from a network server or CD, there are two methods available for your installation of Oracle, a "Oracle Automatic Install", and a "Manual Setup Procedure".

1) For the "Oracle Automatic Install", there are Solaris commands contained in an Oracle Automatic Install Script (file "OracleRootWEASun" located at "/WEA/inst.images/Oracle/oracle.9201.sun"), which automatically perform the majority of the setup required by the root user (if using  the CD method, insert the CD before executing the Automatic Setup Script). Also, the script (as well as the Manual Setup Procedure) copies over a ".profile" file which contains the "SID" for your database. You must assure that after copying this file, the file is updated to the appropriate DISPLAY variable, and your SID (if you do not use the example SID in the following instructions). You can modify this script to reflect which  method you use for accessing the Oracle installation software (web, CD, or mounted network drive).

(OR)

1) If you wish to performs all of these steps manually, see the section Manual Setup Procedure.
 

Once the Automatic Setup Script has been run, or you perform the steps manually, you will then invoke the Oracle installation GUI. The section Installing Oracle Software describes the steps you follow to invoke and use the GUI.
 
 
 
 

Installing Oracle Software

THIS SECTION ASSUMES YOU HAVE PERFORMED ONE OF THE ABOVE STEPS (Oracle Automatic Install Script or Manual Setup Procedure). If you have not, and you continue, the author would like to laugh at you when the following does not work!

If any time during the installation the installer states you should execute anything as root, do so (i.e. if the "Oracle Universal Installer" window pops up informing you to execute the "orainstRoot.sh" script, follow the instructions and do so, then click "Retry").

1) Switch users to "oracle" (i.e. "su - oracle"), and from the AIX command line, if you have not modified your ".profile" to reflect the correct machine to output the Oracle installation GUI, export your DISPLAY variable, reflecting your machine (i.e. "export DISPLAY=weasun16.raleigh.ibm.com:0.0").

2) If installing from the "/WEA/inst.images" mounted disk, change directories to "/WEA/inst.images/Oracle/oracle.9201.sun/Disk1" and from the command line execute the script "./runInstaller". If installing from CD, from the root ("/") directory, run the script "runInstaller" (i.e. "/mntOracle/runInstaller"). If installing from the wessun450 server, change directories to "/mntOracle/oracle9201/sun/Disk1" and from the command line execute the script "runInstaller". If installing using the Oracle software you obtained from the web, from the directory your "Disk1" directory is in, run the script "runInstaller" (i.e. "/yourinstalldirectoryname/Disk1/runInstaller").

3) The "Oracle Universal Installer" GUI will appear displaying the "Welcome" panel, click "Next".

4) In the "Inventory Location" panel, for the "base directory", accept the default and click "OK" (the value is "/export/home/oracle/oraInventory").

5) In the "UNIX Group Name" panel, enter the value "oinstall", then click "Next".

6) When the "Oracle Universal Installer" window pops up informing you to execute the "/tmp/orainstRoot.sh" script, follow the instructions and do so, then click "Continue"). (go to /tmp directory and execute "./orainstRoot.sh". Output of this execution is "Creating Oracle Inventory ponter file (/var/opt/oracle/oraInst.loc) Changing groupname of /export/home/oracle/oraInventory to oinstall.)

7) In the "File Locations" panel, accept the defaults, and click "Next" (Source = "(yourinstalldisk)/stage/products.jar", and "Destination" "Name" is "Home1", and "Path" is "/export/home/oracle/ORA9201", (or whatever you specifed as your Oracle Home, which is currently set by the .profile which was copied from /WEA/inst.images/Oracle/oracle.9201.sun).

8) In the "Available Products" panel, select "Oracle9i Enterprise Edition 9.2.0.1.0", then click "Next".

9) In the "Installation Types", select "Enterprise Edition", then click "Next", and wait a minth (which states it takes 3.09 GB of space!).

10) In the "Database Configuration" panel, select "General Purpose", then click "Next".

11) In the "Database Identification" panel, in the 'Global Database Name" field, enter "ORA9201." followed by the fully qualified name of the host you are installing on (i.e. "ORA9201.weasun10.raleigh.ibm.com" (the "SID" field should reflect "ORA9201"), then click "Next". (see note above about the SID value in the Automatic Setup Script)

12) In the "Database File Location" panel, in the "Directory for Database Files" field, enter "/export/home/oracle/oradata", then click "Next".

13) In the "Database Character Set" panel, accept the default and click "Next" (the option "Use the default character set").

14) In the "Summary" panel, review your installation specifics (203 products (2.75GB), including "Starter Database") and click "Install". Wait a minth.

A summary log will be created in "/export/home/oracle/oraInventory/logs/installActions.log". If another Oracle product or upgrade is installed, this file will be copied to "/export/home/oracle/oraInventory/logs/installActions/YADAYADA.log" where "YADAYADA" represents a time stamp.

If using CDs, when prompted with the "Disk Location" pop-up, unmount CD 1, remove CD1 and insert CD2, mount it, and click "OK" in the popup.

15) When the popup "Setup Privileges" appears stating "A configuration script needs to be run as root before installation can proceed. Please leave this window up, go run /export/home/oracle/ORA9201/root.sh as root from another window, then come back here and click OK to continue". When you execute "root.sh", you will be queried to "Enter the full pathname of the local bin directory: [/usr/local/bin]:", accept the default and press Enter. Back in the Oracle installer GUI "Setup Privileges" popup, click "OK" ("/usr/local/bin" was then created by the installer).

The dialog from this step was:

#root.sh
Running Oracle9 root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /export/home/oracle/ORA9201

Enter the full pathname of the local bin directory: [/usr/local/bin]: (author pressed "Enter")
Creating /usr/local/bin directory...
    Copying dbhome to /usr/local/bin ...
    Copying oraenv to /usr/local/bin ..
    Copyng coraenv to /usr/local/bin ...

Creating /var/opt/oracle/oratab file...
Adding entry to /var/opt/oracle/oratab file ...
Entries will be added to the /var/opt/oracle/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.
#

16) The "Database Configuration Assistant" dialog box will appear reflecting progress of database creation and starting, then will request you enter password for "SYS" and "SYSTEM". For "SYS", enter "smanager", and for "SYSTEM", enter "mangler", then click "OK".

17) In the "End of Installation" panel, the display should reflect "The installation of Oracle9i Enterprise Edition was successful.".
 

 If you install additional components, the file "root.sh" will be overwritten. Change directories to "/export/home/oracle/ORA9201", and execute the command "cp root.sh root.sh.afterinstall".

At this point you can either exit the installer or choose to install the Application User Client or Database Administrator Client simply by clicking on the "Next Install" button in the "End of Installation" panel. The instructions for installing both clients are included in this web page. Note that as you have just completed the installation, and are using the CD installation method, you will need to reinsert CD1 to complete the client installs. If you wish to exit, click "Exit", and in the "Exit" "Do you really want to exit" pop-up, click "Yes". If you wish to install the install the Oracle Database Client, follow the instructions in "Installing Oracle Database Client" below.
 
 
 

Oracle Configuration and Usage for WAS/WEA

This section might be changed as the design matures for WEA installation on Solaris using Oracle database.

1) You must modify the file "/etc/profile" to include the following two lines:

    ORACLE_HOME=/export/home/oracle/ORA9201
    export ORACLE_HOME

2) Once this file has been modified you must log off and back on your machine to instantiate this environment variable

3) You must then create a set of accounts required for a full WEA installation.Switch user to the oracle account (i.e. "su - oracle").

The following users and priviliges can be created manually (see Creating WEA Users Automatically), or all can be added automajically by using the appropriate script (see Creating WEA Users Manually)
 

Creating WEA Users Automatically

1) Change directories to "/WEA/inst.images/Oracle/oracle.9201.sun". In that directory exists at file "WEAUsers.sql" which contains SQL commands for creating all users a Full WEA installation will require.

2) From the command prompt execute the command "sqlplus  system/mangler". (this results in the text "SQL*Plus: Release 9.2.0.1.0 - 64bit - Production on Wed July 10  16:54:10 2003   (c) Copyright 1982, 2002, Oracle Corporation. All rights reserved".

3) As you are already in the appropriate directory, simply type "@WEAUsers.sql", which will invoke the SQL script which adds all necessary users and associated priviledges. When this completes, you can confirm these users were added using the SQL command "select username from dba_users;". If your addition of users was successful, type "quit".

4) Test access to the new database with the EJSADMIN user ID by entering the following commands.

          $ sqlplus EJSADMIN/ejsadmin

          SQL> quit

5) Your users have been successfully created and tested. Proceed with WEA installation.
 
 

Content Of WEAUsers.sql

The following is the content of the file which you can use to automatically add all users necessary for a full install of WEA:

-- SQL script file to create users in the Oracle DB
-- Can be used by WEA to create, users for all WEA components
-- and grant appropriate privileges
-- From SQL*PLUS run this script as "@user.sql"
--
create user EJSADMIN identified by EJSADMIN;
grant connect,resource,dba to EJSADMIN;
create user EJB identified by EJB;
grant connect,resource,dba to EJB;
create user WPS identified by WPS;
grant connect,resource,dba to WPS;
create user WMS identified by WMS;
grant connect,resource,dba to WMS;
create user WEAADMIN identified by WEAADMIN;
grant connect,resource,dba to WEAADMIN;
create user PZNADMIN identified by PZNADMIN;
grant connect,resource,dba to PZNADMIN;
create user WPSPCO identified by WPSPCO;
grant connect,resource,dba to WPSPCO;
create user ESSADMIN identified by ESSADMIN;
grant connect,resource,dba to ESSADMIN;
create user INSUSER identified by INSUSER;
grant connect,resource,dba to INSUSER;
create user DMS identified by DMS;
grant connect,resource,dba to DMS;
create user ATLAS identified by ATLAS;
grant connect,resource,dba to ATLAS;
 
 
 

Creating WEA Users Manually

1) From the command prompt execute the command "sqlplus". (this results in the text "SQL*Plus: Release 9.2.0.1.0 - Production on Wed Jan 8
10:53:26 2003   (c) Copyright 2000 Oracle Corporation. All rights reserved".

2) When prompted by "Enter user-name", enter "SYSTEM", and for the "Enter password", enter "manager".

(OR)

(alternatively, from the Oracle user's command line type "sqlplus  SYSTEM/manager")

3) Execute the following commands, each followed by pressing the "Enter" key:

create user EJSADMIN identified by EJSADMIN;
grant connect,resource,dba to EJSADMIN;
create user EJB identified by EJB;
grant connect,resource,dba to EJB;
create user WPS identified by WPS;
grant connect,resource,dba to WPS;
create user WMS identified by WMS;
grant connect,resource,dba to WMS;
create user WEAADMIN identified by WEAADMIN;
grant connect,resource,dba to WEAADMIN;
create user PZNADMIN identified by PZNADMIN;
grant connect,resource,dba to PZNADMIN;
create user WPSPCO identified by WPSPCO;
grant connect,resource,dba to WPSPCO;
create user ESSADMIN identified by ESSADMIN;
grant connect,resource,dba to ESSADMIN;
create user INSUSER identified by INSUSER;
grant connect,resource,dba to INSUSER;
create user DMS identified by DMS;
grant connect,resource,dba to DMS;
create user ATLAS identified by ATLAS;
grant connect,resource,dba to ATLAS;
 

4) Exit from the sqlplus utility by typing "quit" and press "Enter".

5) Test access to the new database with the EJSADMIN user ID by entering the following commands.

          $ sqlplus EJSADMIN/ejsadmin

          SQL> quit

6) Your users have been successfully created and tested. Proceed with WEA installation.
 
 
 

Installing WAS With Oracle Installation Instructions

You must first create the appropriate users with associated priviledges before performing this installation. Follow the instructions in the section Oracle Configuration and Usage for WAS/WEA.

When installing WAS, if you are using Oracle, perform the following steps in the Database Options dialog:

1). In the Database Type field, select Oracle from the pull-down menu.

2)  Ensure that Remote DB is not selected. For this example, the database and WebSphere Application Server are installed on the same node.

3). In the Database Name (Database SID) field, type the name of the Oracle database you created. For example, ORA9201. machine_name.

4)  In the DB Home field, type the full pathname of the directory you created to contain the Oracle software and to be the home directory of the user named oracle, or specify the full path name of the directory by using the Browse button. This path should also be the value of the ORACLE_HOME environment variable.

5)  In the DB URL field, accept the default value jdbc:oracle:thin:@fully_qualified_domain_name : port_number : database_name, or specify a different URL for accessing the database.

6)  In the Server Name field, type the name of the machine on which the database is installed.

7)  In the Port Number field, type the port number used to access the database.

8)  In the Database User ID field, type the name of the database owner, EJSADMIN .

9)  In the Database Password field, type the current password for the database owner.

10) Click Next to continue.
 
 
 

Installing Oracle Database Application User Client

You will need to have followed the appropriate above previous instructions for setting up the Oracle environment for installation, i.e. Prerequisite Check, Installation Preparation, Get the Oracle Software, and steps 1-6 of Install Oracle Software for the following steps to succeed (Or, if you have already installed Oracle and are still in the GUI, from another AIX window, as root, unmount the CD 2, mount the CD1, and then click the "Next Install" button).

1) In the "File Locations" panel, accept the defaults, and click "Next" (Source = "(yourinstalldisk)/stage/products.jar", and Destination = "/export/home/oracle/ORA9201", (or whatever you specifed as your Oracle Home, which is currently set by the .profile you copied from "/WEA/inst.images/Oracle/oracle.9201.sun". You must also perform this with Oracle CD1 if using the CD method of installation).

2) In the "Available Products" panel, select "Oracle9i Client 9.2.0.1.0", then click "Next".

3) In the "Installation Types" panel, select "Application User", then click "Next".

4) In the "Summary" panel, click "Install".

5) In the "End of Installation" panel, click "Exit" (OR, choose to install other Oracle software)
 
 

Installing Oracle Database Administrator Client

You will need to have followed the appropriate above previous instructions for setting up the Oracle environment for installation, i.e. Prerequisite Check, Installation Preparation, Get the Oracle Software, and steps 1-6 of Install Oracle Software for the following steps to succeed. (Or, if you have already installed Oracle and are still in the GUI, from another AIX window, as root, unmount the CD 2, mount the CD1, and then click the "Next Install" button).

1) In the "File Locations" panel, accept the defaults, and click "Next" (Source = "(yourinstalldisk)/stage/products.jar", and Destination = "/export/home/oracle/ORA9201", (or whatever you specifed as your Oracle Home, which is currently set by the .profile you copied from "/WEA/inst.images/Oracle/oracle.9201.sun").

2) In the "Available Products" panel, select "Oracle9i Client 9.2.0.1.0", then click "Next".

3) In the "Installation Types" panel, select "Administrator", then click "Next".

4) In the "Summary" panel, click "Install". (note a message was displayed "Deinstalling Client".)

5) In the "End of Installation" panel, click "Exit" (OR, choose to install other Oracle software)
 
 
 
 

Creating And Using An Oracle Database

1) After performing the "Logon to Oracle as SYSTEM", execute the command "dbassist", which will invoke the Oracle Database Configuration Assistant.

2) In the Welcome panel, select the "Create a database" option, then click "Next".

3) In the "Select the type of database to create" panel, select "Typical" and click "Next".

4) Select "Copy Existing database files from the CD", then click "Next".
 
 

Option 1 - Copy Existing database files from the CD"

1) In the "An Oracle9i databases is uniquely identified by a Global Database Name...", "Global Database Name" field enter "slapit.raleigh.ibm.com" (which will automatically create the SID as "slapit"), then click "Finish".

2) An alert will be displayed reflecting "The datafiles will be copied from the CD to "/export/home/oracle/ORA9201/oradata/slapit.(STEVE?)" The Oracle Database Configuration Assistant wil begin creating the database. Do you want to proceed", click "Yes".

3) An additional alert will be displayed "An Oracle databse will be created for you. The database name will be slapit. The system identifier for the database will be slapit. The password for the SYS account will be change_on_install and the SYSTEM account will be manager" click "OK".

4) Final alert will be displayed in dialog box "Oracle Database Configuration Assistant Alert" containing:

Database creation completed.
Database Information:
    global database name:    slapit.wea2aix1.raleigh.ibm.com
    database system identifier (SID):  slapit
    SYS account password"  change_on_install
    SYSTEM account password:  manager

5) Click "OK" in the alert box.

6) From command prompt type "sqlplus system/manager@STEVEZ" and press "Enter".

7) Your database has been created and should be available for population of tables, etc.
 

Using an Oracle Database

1) When the database creation utility had completed, from the AIX command prompt, type "su  -  oracle".

2) From the Oracle prompt ("$"), executed the sqlplus command giving the appropriate id/password and SID (i.e. "sqlplus  system/manager@slapit").

(Note that "Ctrl" and Backspace key are the delete/rubout key.)

3) From the SQLPLUS command prompt, list data from your tables (i.e. "select * from scott.emp") which will display all rows in the SCOTT schema's "emp" table. (Note that whenever you use DBASSIST to create a database and select "Copy Existing database files from the CD", it automatically creates a "SCOTT" schema.

4) To describe the columns of an table, use the "describe" command (i.e. "describe scott.emp").

5) Do normal creation of tables, insert rows, etc.

6) To list the tables, use the command "select * from tab". This will list all tables, as well as your tables should be in the list.

7) To list only the tables for a particular user/owner (i.e. "SCOTT"), type the command "select TABLE_NAME from ALL_TABLES where OWNER='SCOTT'" (do not include the beginning and ending double quote (")).
 

(Schema   Table   Scott   emp)
 
 

Using The NetAssist Utility

1) From the Oracle command prompt ("$"), type "netasst".

2) In the Net8 Assistant GUI, scope down through "Net8 Configuration", "Local", "Service Naming", and select your "slapit" service. The right panel will display details of this service, (including Port Number).
 
 
 
 

Miscellaneous Oracle Utilities and Commands
 

Start/Stop the Database

   1.To start or stop the Oracle database:
          Log in as the user oracle by entering the following command:
          su - oracle
          If not set in the .profile, enter export ORACLE_SID=ORA9201
          To start the database, enter the following commands:

          $ svrmgrl

          SVRMGR> connect internal

          SVRMGR> startup SVRMGR

          SVRMGR> quit

          To stop the database, enter the following commands:

          $ svrmgrl
          SVRMGR> connect internal
          SVRMGR> shutdown
          SVRMGR> quit

Starting Database

Start the database by entering the following commands:
$ svrmgrl SVRMGR
> connect internal SVRMGR
> startup SVRMGR
> quit
 
 

(OR, Starting Database)

$ svrmgrl
SVRMGR> connect internal
Connected.
SVRMGR> startup
ORACLE instance started.
Total System Global Area               7275404 bytes
Fixed Size                                          73620 bytes
Variable Size                                55730176 bytes
Database Buffers                          16777216 bytes
Redo Buffers                                   172032 bytes
Database mounted.
Database opened.
SVRMGR> help     blah blah.....
SVRMGR> quit
 

(OR, a script which performs this contains:)

#!/bin/ksh
su - oracle -c '
echo "Enter sid name (like ispb): "
read sid
PMON=`ps -ef | egrep pmon_${sid}  | grep -v grep`
if [ "${PMON}" = "" ]
then
echo "starting Oracle"
    # database still running, shut it down first
    ORACLE_SID=$sid
    sqlplus /nolog <<!
connect internal
startup
!
else
echo "Oracle already running"
fi
'

Stopping Database

$ svrmgrl
SVRMGR> connect internal
Connected.
SVRMGR> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.

(OR, a script which performs this contains:)

#!/bin/ksh
su - oracle -c '
echo "Enter sid name (like ispb):"
read sid
PMON=`ps -ef | egrep pmon_${sid}  | grep -v grep`
if [ "${PMON}" != "" ]
then
echo "stopping Oracle"
    # database still running, so we can shut it down
    ORACLE_SID=$sid
    sqlplus /nolog <<!
connect internal
shutdown immediate
!
else
echo "Oracle not running"
fi
'
 
 
 
 
 

Starting and Stopping Listener

Starting and stopping the listener is done by the utility "lsnrctl". Usage follows (note the author occasionally had to go the the directory lsnrctl was in and execute it there first (/home/oracle/ORA9201/bin/lsnrctl):

1) Log in as the user oracle by entering the command "su - oracle"

2) If not set in the .profile, enter export ORACLE_SID=ORA9201

3) To stop/start the listener, enter the following commands:

$  lsnrctl
LSNRCTL for IBM/AIX RISC System/6000: Version 9.2.0.1.0 - Production on 17-JAN-2003 17:29:26
blah blah blah
LSNRCTL>  status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=wea2aix2.raleigh.ibm.com)(PORT=1521)))
-------------------------------------
Alias                            LISTENER
Version                        TNSLSNR for IBM/AIX blah
Start Date  blah blah

LSNRCTL> stop
LSNRCTL> start
LSNRCTL> quit

(OR, a script file which does it should contain:)

#!/bin/ksh
su - oracle -c "lsnrctl stop"

#!/bin/ksh
su - oracle -c "lsnrctl start"
 

(OR, a script file which restarts it should contain:)

#!/bin/ksh
su - oracle -c "lsnrctl reload"
 
 

Adding Oracle Automatic Startup To "inittab"
From command line type:

mkitab "oradb:2:wait:/bin/su oradb -c|/$ORACLE_HOMES/bin/dbstart"
 
 
 
 

Deleting the WebSphere Application Server Database

1) Ensure that you have run the xhost command and have exported your DISPLAY. See above for details.

2) Log in as the user oracle by entering the following command "su - oracle".

3) If not set in the .profile, enter "export ORACLE_SID=ORA9201".

4) Invoke the Database Assistant from the command prompt (i.e. enter "dbassist").

5) When prompted, select Delete a database.

6) When prompted, select ORA9201.
 
 
 
 

Recreating the WebSphere Application Server Database

1) Ensure that you have run the xhost command and have exported your DISPLAY. See above for details.

2) Log in as the user oracle by entering the command "su - oracle".

3) If not set in the .profile, enter "export ORACLE_SID=ORA9201".

4) Invoke the Database Assistant from the command prompt (i.e. enter "dbassist").

5) When prompted, select Create a database.

6) When prompted, select Typical Install.

7) When prompted, select "Copy existing database files from the CD". Ignore the text about needing the real CD.

8) For Global Database Name, enter "ORA9201.(fully qualified hostname) (i.e. " ORA9201.wea2aix2.raleigh.ibm.com").

9) For Oracle SID, enter "ORA9201"

   2.Configure the database (see above)
 
 
 
 

Setup Manager Information

   1.On the WebSphere Application Database configuration screen:
          Database Name: ORA9201 (STEVE?)
          Database Server Name: (local/remote hostname).raleigh.ibm.com
          Database Home: (value of $ORACLE_HOME
          Usually /home/oracle/OraHome1
          Database URL:
          jdbc:oracle:thin:@(local/remote hostname).raleigh.ibm.com:1521:ORA9201
          Database Port: 1521
          EJSADMIN Password: ejsadmin
 

Miscellaneous sqlplus Commands

ALTER USER USERNAME IDENTIFIED BY PASSWORD;                Change password for "USERNAME" to "PASSWORD"
 

Miscellaneous SQL Commands

show all                            Show Oracle environment settings
show user                         Displays the current user
 
 
 

To use sqlplus on the client machine, type:
su - oracle (or whatever your oracle username is)
sqlplus stage_user/oracle@alias   (alias is your database name, it could be something like WEA)
(i.e. "sqlplus system/manager@wea430")
List tables:  select table_name from user_tables;
Describe columns in table:   describe <table_name>;
Output to command line:  echo "SELECT trxn_status FROM tsmtransaction where username='X';" | sqlplus stage_user/oracle@WEA
(The column and table names mentioned throughout this section were actuals from a previous test)
Example: echo "select order_state, auth_status from cust_order where user_id in (select user_id from piauthuser where username='KMC3_IN');" | sqlplus stage_user/oracle@wea
List connections to database (like list applications on DB2):
sqlplus stage_master/oracle@wea
SQL> SELECT username, status FROM v$session;
 
 
 
 

Manual Setup Procedure

Before installing Oracle you must update your AIX operating system. Install filesets "bos.adt" (that includes "bos.adt.libm"), "bos.compat", and "X11.adt" on your system (Note that the normal NIM build only has part of these file sets installed, so you MUST complete all of this portion!) To install them follow the instructions in the section Installing Filesets Manually

1) Assure Xwindows will operate properly on your machine (i.e.from the AIX command prompt as root execute the command "xhost +" (with no quotes)).

2) Create directories "/export/home/oracle" and "/usr/bin/java" for Oracle installation (i.e "mkdir -p /export/home/oracle", "mkdir -p /opt/bin/java")/

4) Create Oracle "dba" and "oinstall" groups by typing the commands "mkgroup  -'A'  users='root'  adms='root'  dba", and "mkgroup  -'A'  users='root'  adms='root'  oinstall".

5) Create user "oracle", by typing the command "mkuser  -a  pgrp='oinstall' groups='dba'  home=/home/oracle  shell=/usr/bin/ksh   oracle".

6) Change the Oracle user password by executing the command "passwd  oracle". You will be queried for new password and confirmation, enter "oracle" for both.

7) Copy the file ".profile.wea" from /WEA/inst.images/Oracle/oracle.9201.sun" to the oracle users's home directory (i.e. "/export/home/oracle") as ".profile", and update your DISPLAY variable and your SID if necessary in the copied file.

8) As root, change the "/export/home/oracle" directory structure permissions ("chmod  -R  777  /export/home/oracle"), and change it's ownership (i.e. "chown  -R  oracle:dba  /export/home/oracle").

At this point you should have confirmed you have the prerequisite software, and have obtained the Oracle software using the technique you desire. As mentioned before, the software can be installed from CDs, downloaded from Oracle's web site, as well as resides on several internal IBM servers which can be mounted for your use.

If Installing Oracle From CD's

1) Change directories to the mounted disk and execute the command "rootpre.sh" (this should result in the display of output similar to Normal rootpre Output).

2) Continue at Installing Oracle Software
 

(OR)

If You Downloaded Oracle From Oracle Site

1) Change directories to the "Disk1" directory and execute the command "rootpre.sh" (this should result in the display of output similar to Normal rootpre Output).

2) Continue at Installing Oracle Software
 

(OR)

If You Got the Software From An IBM Internal Site

Mounted From wessun450

1) Change to the installation directory (i.e. "cd /mntOracle/oracle9201/aix/Disk1") and execute the command "rootpre.sh" (this should result in the display of output similar to Normal rootpre Output).

2) Continue at Installing Oracle Software
 

(OR)

Mounted From shayden

The software currently resides on the network mounted drive directory "/WEA/inst.images/Oracle" as 2 disks, "Disk1" and "Disk2".

1) Change directories to "/WEA/inst.images/Oracle/Disk1" and execute the command "rootpre.sh" (this should result in the display of output similar to Normal rootpre Output).

2) Continue at Installing Oracle Software
 
 
 
 

Other Oracle Installation Information

http://wespoint/wes/wes_tpsmoracle.html
http://shayden/instorawas.html
 
 
 

Installation of Windows Oracle Client

1) From Oracle web site "http://otn.oracle.com/software/products/Oracle9i/htdocs/winsoft.html" (or Steves folder "D:\Oracle Installation\OracleClient\OracleUnzipped\autorun" double click on "autorun.exe" (tried running "setup.exe" in the folder above it but it did not seem to anything). The Oracle9i Client GUI will appear.

2) Click "Install/Deinstall Products".

3) In the "Oracle Universal Installer", "Welcome" panel, click "Next".

4) In the "File Locations" panel, accept the default for the "Source" ("D:\Oracle Installation\OracleClient\OracleUnzipped\stage\products.jar"), and "Destination" ("Name" = "OraHome81" and "Path:" = "D:\oracle\ora81"), then click "Next".

5) In the "Installation Types" panel, select "Administrator (356MB)", then click "Next". Wait a minth.

6) In the "Net8 Configuration Assistant: Welcome" window, DO NOT select "Perform typical configuration", click "Next".

7) In the "Net8 Configuration Assistant: Directory Service Access", select "No,..." and click "Next".

8) In the "Net8 Configuration Assistant: Naming Methods Configuration" panel, accept the default "Selected Naming Methods" of "Local", and click "Next".

9) In the "Net8 Configuration Assistant: Net Service Name Configuration" panel, select "Oracle9i database or service", then click "Next".

10) In the "Net8 Configuration Assistant: Net Service Name Configuration, Service Name" panel, in the "Service Name:" field, enter "STEVEZ", then click "Next".

11) In the "Net8 Configuration Assistant: Net Service Name Configuration, Select Protocols" panel, select "TCP" and click "Next".

12) In the "Net8 Configuration Assistant: Net Service Name Configuration, TCP/IP Protocol" panel, for the "Host Name" field enter your Oracle database machine (i.e. "wea2aix2.raleigh.ibm.com", get this right or it wont work!), and for the "TCP/IP Port Number..." field, accept the default "Use the standard port number of 1521", then click "Next".

13) In the "Net8 Configuration Assistant: Net Service Name Configuration, Test" panel, select "Yes, perform a test", then click "Next". The "Details:" panel should reflect "Connecting....Test Successful", then click "Next".

14) In the "Net8 Configuration Assistant: Net Service Name Configuration, Net Service Name" panel, accept the "Net Service Name:" value (i.e. "STEVEZ"), then press "Next".

15) In the "Net8 Configuration Assistant: Net Service Name Configuration, Another Net ServiceName" panel, select "No", then click "Next".

16) In the "Net8 Configuration Assistant: Net Service Name Configuration Done" panel, click "Next".

17) In the "Net8 Configuration Assistant: Naming Configuration Done" panel, click "Next".

18) In the "Net8 Configuration Assistant: Done" panel, click "Finish".

19) Back in the "Oracle Universal Installer" pane "End of Installation" panel, click "Exit", and in the "Do you relly want to exit", click "Yes".
 
 

Starting and Using DBA Studio GUI

1) To execute the DBA Studio GUI for viewing the remote database, from the Windows "Start" menu item, select "Programs", "Oracle - OraHome81", "Database Administration", "DBA Studio",

2) In the "Oracle Enterprise Manager Logon", select "Launch DB Studio standalone", then click "OK". The "Oracle DBA Studio" GUI window should appear.

3) If/when queried for a Username and Password, enter the appropriate values (i.e. "SYSTEM" and "manager"), then click "OK".

4) In the Oracle DBA Studio GUI select the database you wish to explore (i.e. "STEVEZ"), and scope down to "Schema", "Table", and select the table you wish to explore (i.e. "SCOTT").

5) In the right side panel of the GUI, select a table you wish to explore, right mouse click and select "Table Data Editor". The "Table Editor" should appear reflecting the data in the associated table. You can manually change data by going to the appropriate data cell and modifying the value, or go to the last row (which should be empty), and inputting a new row of data into the cells.
 
 
 

Oracle Administrator Profile (.profile)

The following is the ".profile" for the Oracle user, which must reside in "/export/home/oracle" (if you have followed the above instructions and used the automatic or manual method of configuration).
 
 
 

PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/sbin:.

export PATH
set -o vi
#DISPLAY=weasun10.raleigh.ibm.com:0.0
#export DISPLAY

ORACLE_BASE=/export/home/oracle
export ORACLE_BASE

ORACLE_SID=ORA9201
export ORACLE_SID

ORACLE_HOME=$ORACLE_BASE/$ORACLE_SID
export ORACLE_HOME

PATH=$PATH:$ORACLE_HOME/bin
export PATH

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export LD_LIBRARY_PATH

ORA_CLIENT_LIB=shared
export ORA_CLIENT_LIB

echo 'The oracle 9.2.0.1.0 environment is set'

set -o vi
if [ -s "$MAIL" ]           # This is at Shell startup.  In normal
then echo "$MAILMSG"        # operation, the Shell checks
fi                          # periodically.
 
 
 
 
 

Oracle Automatic Install Script

The following is the script which automatically sets up your Solaris environment for an Oracle 8.17 installation for a subsequent WEA installation"

#-----------------------------------
# Oracle environment "root" user setup ONLY EXECUTE THIS ONCE!
#-----------------------------------
#

# Setup xhost to allow windowing to behave properly
xhost +
echo 'Windowing (xhost) has been set up'

mkdir -p /export/home/oracle
mkdir -p /opt/bin/java
echo 'Created directories /export/home/oracle, and /opt/bin/java'

# Create and configure Oracle group and user
groupadd dba
groupadd oinstall

echo 'The Oracle groups dba and oinstall have been created'
useradd -d /export/home/oracle -g oinstall -G dba -s /bin/ksh oracle
echo ' '
echo 'Adding oracle users, please change the oracle password, When queried for new "
echo 'and confirm password type in the string "oracle" (no quotes) at the prompt'
echo ' '
passwd oracle
echo 'The Oracle user oracle has been created and password set'

# Copy a  new .profile to /home/oracle and change it's file mode,
# change file mode for directories in "/home/oracle", and change
# owner of /export/home/oracle directory
cd /export/home/oracle
mv .profile .profile.orig
cp /WEA/inst.images/Oracle/oracle.9201.sun/.profile  .profile
chmod -R 777 /export/home/oracle
echo 'File mode has been changed for /home/oracle/.profile'
chown -R oracle:oinstall /export/home/oracle
echo 'Changed Owner of /export/home/oracle directory'
echo ' '
 

# Now have user follow setup instructions on web page
echo
echo
echo
echo 'From now on, follow instructions on web page and/or as specified by installation GUI'
echo