Oracle 8.0.4.0.0 Installation on SCO UnixWare 7.0.0 Installation

 

The following work should be done as root :

Some work needed to be done for organizational purposes on the machine first. This consisted of the following :

The operating system needs to be patches with some service level supplements from SCO. They are obtainable thru the SCO web site at ftp.sco.com. Get the following patches :

To install these patches, use syntax like the following : pkgadd -d /usr/local/Install/os_patches/pft7002b/ptf7002b

Setup the kernel environment by changing the values listed in the following entries. Use the scoadmin facility to do this, by choosing system | tuner. For an understanding of what these variables mean, look at the NCR Unix book for "Command Line Reference Manual - Volume 3" in Rich’s office. Note that these values are for a single instance only. For multiple instance installs, such as East Orange was, you may need to adjust these values.

For the N/A types, use :

Reboot by typing :

 

These are some other steps that I perform when setting up a Unix box. Some will be realized much after the install, and some much quicker. These next few are certainly not mandatory, but make life easier in the long run.

We dont need to load the compiler because it is already there in this release.

Now for some setup pieced need to install oracle :

##### ##### Ulimit is measure in blocks, and this equates to 2gig which is ##### largest file size available in 32 bit. ##### #umask 022 #ulimit 4194303

##### ##### The following lines added by Paul A. Luzzi on 12-10-97 ##### Needed for oracle and oracle installer specifically. ##### ORACLE_HOME=/oracle ORACLE_BASE=/oracle ORACLE_DOC=/oracle/doc ORACLE_PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/lbin:/usr/local/bin ORACLE_SID=sco8 ORACLE_TERM=386u ORA_CSM_MODE=line LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib export ORACLE_HOME ORACLE_BASE ORACLE_DOC ORACLE_SID ORACLE_PATH ORACLE_TERM \ ORA_CSM_MODE LD_LIBRARY_PATH unset SRCHOME unset TWOTASK

 

 

The following work should be done as oracle :

exec ksh -o vi
xterm -sb -sl 10000 -fn 6x13 &
Choose custom install
OK to preamble.txt
OK to readme.first
Install new product - create DB objects
Change/make sure that ORACLE_BASE=/oracle
Change/make sure that ORACLE_HOME=/oracle
Accept defaults for all log files
Choose install from cd-rom
Accept SID name from our pre-set environment
Select America/English since we wont need all languages
	(Write down the location of the postinstall script - s/b /oracle/orainst/root.sh)

Products to install are :

    1. Net8 8.0.4.0.0
    2. TCP/IP Protocal Adapter 8.0.4.0.0
    3. Object Type Translator 8.0.4.0.0
    4. Oracle Advanced Networking Option 8.0.4.0.0
    5. Oracle Intelligent Agent 8.0.4.0.0
    6. Oracle Options 8.0.4.0.0
    7. Oracle Unix Installer 4.0.3.0.0
    8. Oracle8 Enterprise (RDBMS) 8.0.4.0.0
    9. PL/SQL 8.0.4.0.0
    10. SCO UnixWare Specific Documentation 8.0.4.0.0
    11. SQL*Plus 8.0.4.0.0

Totals are 20 Mb in 11 products.

Select Install from the button between the two windows. (This will actually launch some dependency checks and eventually the installer itself.

Accept preset default for DOC directory
Click on "OK" to accept the message about the ulimit.  That is "OK" because we already set it.
Select HTML for documentation format.
"dba" will be unix group name for dba’s.
select "oper" for OSOPER group
Click OK to relink executables.
Choose filesystem type for database (Very Important !!!!)
Yes to distribute the control files over 3 mount points if possible, but on single disk machines, choose no.
Mount Point will be /oracle
Character set is US7ASCII
Select system password of "******" and confirm
Select sys password of "******" and confirm
choose "YES" to change/set the internal password
Select "******" for internal password and confirm
choose 5 concurrent dba users
select "******" for tns password and confirm
select "NO" to configure MTS listener
select "YES" to create control files as named.
Select "OK" to options on size of files.
Select "YES" to accept defaults for tablespace sizes and locations.
Select "YES" to accept all of these choices
select "YES" to load SQL*Plus help facility
select "NO" to load SQL*Plus demo tables

That will begin the installation ! This should take you straight thru to completion. Any errors at all will require out of the ordinary troubleshooting and are therefore not covered in this manual.

At this point, the installation should basically be complete. You will need to take care of a few other post install steps. They follow.

The following work should be done as root (again) :

Unmount the cdrom by typing "umount /cdrom" if you get device busy, make sure you are not in that directory and try again.

Remove the Oracle 8 server cd and insert the Oracle 8 Online documentation cd.

Type : "/cdrom/mount.readme" to mount it, and just hit enter for the question asked.

The following work should be done as oracle (again) :

Make sure to be logged in as "oracle" at this point.

Start local installer by typing "orainst" from /usr1/oracle/orainst. This will launch the local version, and not the cdrom version.

Choose custom install

accept defaults until you get to "install doc only" and select it.

Accept defaults for all other values until you get to the point of choosing a home for documentation. We have already setup the $ORACLE_DOC variable, so the default should be fine for that.

For the install from device, choose "/cdrom

Select all products.

The following work should be done as root (again) :

run the root.sh scripts located in the /usr1/oracle/orainst directory.

Reboot the machine, by typing "cd / ; shutdown -g0 -y -i6"

Remove the /etc/oratab file (only after making sure it is not newer than /var/opt/oracle/oratab) by typing : "rm /etc/oratab"

Then create a link for the /etc/oratab to the /var/opt/oracle/oratab, so that they stay the same : "ln -s /var/opt/oracle/oratab /etc/oratab". Also make sure that they are set to "Y" to autostart.

Now go and add any users to the system that need to be dba users. They must be members of the "dba" group by default, on adding.

Setup /etc/rc0.d and /etc/rc2.d for shutdown and startup scripts of the database respectively. There are examples located on the yellow diskette.

Chmod 666 /dev/async

The following work should be done as oracle (again) :

Edit $ORACLE_HOME/dbs/initsco7.ora (Note that the choice for a "medium" sized database only works for single installed instance - multiple instances on the same machine, will initially have to be "small" instead of "medium") :

set "open_cursors" to 200
change all sections from small to medium (again - only for single instance install)

and set the compatible parameter.

The global names parameter should remain false for the database links to work properly.

below is a subsection of the file :

##### ##### Added by Paul A. Luzzi on 12-15-1997 ##### as per oracle's instructions on 5-3 of install book. ##### open_cursors = 200

# tuning parameters db_files = 80

db_file_multiblock_read_count = 8 # SMALL # db_file_multiblock_read_count = 16 # MEDIUM # db_file_multiblock_read_count = 32 # LARGE . . . . . . compatible = 8.0.0.0.0 global_names = FALSE

Now stop and restart the database to make sure that these changes dont cause any problems, before going any further. Use server manager in line mode to do this :

svrmgrl
SVRMGR> connect internal
Connected.
SRVMGR> shutdown immediate;
Statement processed.
SVRMGR> startup;
SVRMGR> Connected to an idle instance.
SVRMGR> ORACLE instance started.
Total System Global Area	457196 bytes
Fixed Size                       	54988 bytes
Variable Size                  	4218880 bytes
Database Buffers               	409600 bytes
Redo Buffers                     	73728 bytes
Database mounted.
Database opened.
SVRMGR>
Server Manager complete.

Once that looks ok, we will turn on archiving. To do this:

First, we need to add/change 3 new lines in the initsco7.ora file. The directory chosen in the log_archive_dest reflects the ORACLE_SID of the instance, so be sure to either change this for each instance in a multiple instance install, or make it an environment variable. (Need to have the directory created first) They are :

log_archive_start         = true      # if you want automatic archiving
log_archive_dest          = /oracle/dbs/arc/sco8/arc
log_archive_format        = _%S.arc

Now, stop the database

svrmgrl
SVRMGR> connect internal
Connected.
SRVMGR> shutdown immediate;
Statement processed.

Then restart the database in mount mode (Note that by not issuing a PFILE parameter, "init${ORACLE_SID}.ora" is assumed:

SVRMGR> startup mount
ORACLE instance started.
Total System Global Area  457196 bytes
Fixed Size                54988 bytes
Variable Size             4218880 bytes
Database Buffers          409600 bytes
Redo Buffers              73728 bytes
Database mounted.
SVRMGR> 

Now start the archive process :

SVRMGR> alter database archivelog;
Statement processed.

Now check to see if it is in fact running :

SVRMGR> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            /oracle/dbs/arc/sco8/arc
Oldest online log sequence     82
Next log sequence to archive   84
Current log sequence           84
SVRMGR>

 

Now open the database for use by all :

SVRMGR> alter database open;
Statement processed.

remote_login_passwordfile = exclusive

tcptlisrv 1530/tcp tnslsnr # Oracle 8.0 network listener

and make sure that the listener.ora and tnsnames.ora files, all reference the proper port number of 1530

lsnrctl start (for the database listener daemon - regular connections)

lsnrctl dbsnmp_start (for the Oracle Enterprise Manager listener daemon)

svrmgrl
SVRMGR> connect internal
Connected.
SRVMGR> alter tablespace edumet offline;
Statement processed.
SVRMGR> alter database datafile ‘/usr5/oradata/sco7/edumet_1.dbf’ autoextend on;
Statement processed.
SVRMGR> alter tablespace edumet online;

 

 

The following steps were performed for the install of the Office machine. The client sites will not need this stuff. So it is provided strictly for reading purposes.

As oracle :
  imp (to launch the oracle import utility)
  enter username/password of edumet/edumet  (note that the edumet user must have import_database role)
  filename is /tmp/edumet.exp (or whatever you ftp’d it as/to)
  Make sure to ignore errors durring creation, but accept defaults for all the rest
  when you get to "import whole file ?" - answer no, and use just user edumet.
ln -s /oracle/admin/sco8/pfile/initsco8.ora /oracle/db_mgmt/initsco7.ora
ln -s /oracle/admin/sco8/pfile/configsco8.ora /oracle/db_mgmt/configsco7.ora
ln -s /oracle/rdbms/log/alert_sco8.ora /oracle/db_mgmt/alert_sco7.ora

We are currently getting a message on the server’s console, and the clients sessions (when unix based) stating that "open of async device failed: Permission denied".