MFGPRO_OracleDatabaseOnUNIXServer_IG_v09
MFGPRO_OracleDatabaseOnUNIXServer_IG_v09
ORACLE DATABASE
ON UNIX SERVER
78-0359B
MFG/PRO Version 9.0
Printed in the U.S.A.
September 2001
This document contains proprietary information that is protected by copyright. No part of this
document may be photocopied, reproduced, or translated without the prior written consent of
QAD Inc. The information contained in this document is subject to change without notice.
QAD Inc. provides this material as is and makes no warranty of any kind, expressed or
implied, including, but not limited to, the implied warranties of merchantability and fitness for a
particular purpose. QAD Inc. shall not be liable for errors contained herein or for incidental or
consequential damages (including lost profits) in connection with the furnishing, performance,
or use of this material whether based on warranty, contract, or other legal theory.
Some states do not allow the exclusion of implied warranties or the limitation or exclusion of
liability for incidental or consequential damages, so the above limitations and exclusion may
not be applicable.
QAD Inc.
6450 Via Real
Carpinteria, California 93013
Phone (805) 684-6614
Fax (805) 684-1890
Contents
ABOUT THIS GUIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
What is in This Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Installation Errata . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Release Bulletin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
QAD Web Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Other MFG/PRO Version 9.0 Documentation . . . . . . . . . . . . . . . . . . . . 3
Document Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
QAD’s Global Technical Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Converting an Existing Oracle Database . . . . . . . . . . . . . . . . . . . . . . . . . 4
Database Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Example Oracle Directory Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
User License Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
User Licensing System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
User Licensing Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Named and Concurrent User Licensing . . . . . . . . . . . . . . . . . . . . . . . . . 13
Online Help Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Preliminary Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Start Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Enter Schema Holder Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Enter SQL Script Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
2: Running SQL Scripts to Create the Oracle Database . . . . . . . . . . . . . . . . . . . 62
3: Copying the Schema Holder Under a New Name . . . . . . . . . . . . . . . . . . . . . 65
4: Configuring the Database Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
User Script Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
5: Loading MFG/PRO Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
6: Loading Service Pack Media . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
7: Starting MFG/PRO and Registering the License . . . . . . . . . . . . . . . . . . . . . . 74
License Registration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Exiting MFG/PRO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
8: Loading Online Help Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
9: Loading the Source Code Cross-Reference (Optional) . . . . . . . . . . . . . . . . . 77
GLOSSARY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
About This Guide
What is in This Guide 2
Document Conventions 3
Audience
These instructions are for the MFG/PRO system administrator who
manages the MFG/PRO database and is familiar with UNIX,®
PROGRESS,® Oracle,® Microsoft Windows,™ and networking.
Installation Errata
In addition to these instructions, you may receive a supplementary
errata sheet with changes and additional instructions. Check your
product package.
Release Bulletin
In conjunction with these instructions, see the MFG/PRO 9.0 Release
Bulletin for additional utilities required for the modules you use. These
utilities, which are related to a particular programming patch (ECO),
correct possible corruptions in your data.
Document Conventions
This guide uses the conventions listed in the following table.
If you see: It means:
monospaced text A command or file name.
italicized Italicized monospaced text indicates a variable name for a
monospaced text value you enter as part of an operating system command.
For example, YourCDROMDir.
indented A long command that you enter as one line (although it
command line appears in the text as two lines).
Installation Overview
This chapter covers the pre-installation requirements for a
MFG/PRO 9.0 system, including an installation summary, a multi-
language overview, and a description of MFG/PRO installation utilities.
Installation Summary 6
MFG/UTIL 9
Database Sets 11
Installation Summary
The basic MFG/PRO installation consists of the following major tasks. It
is assumed you want to set up Windows clients.
You do not need to build translated databases and compile against them
because the programs come precompiled.
Ì See Appendix A, In multi-language environments, the language codepage controls how
“Terminal Type PROGRESS stores and retrieves data. A codepage applies to one or more
and Codepages,”
on page 117 for languages; for example, codepage ibm850 applies to all western European
additional infor- languages. Because data storage and retrieval must use a single codepage,
mation.
the languages in a multi-language environment must be in the same
codepage family. The correct codepage for the MFG/PRO databases is
assigned during installation.
MFG/UTIL
MFG/UTIL is the installation and system management tool for
MFG/PRO. It is launched automatically during installation of both the
database server and Windows clients. After installation, use MFG/UTIL
to perform maintenance, such as compilation and editing start-up scripts
or Windows client icons. On Windows clients, you access MFG/UTIL
from its start-up icon.
Keyboard Commands
When using MFG/UTIL in a character user interface, the keyboard
commands are as follows.
Keyboard Entry Command Name Description
F1 Go Moves to next frame or run a program.
Log Files
You can refer to the following log files created by the installation utilities.
\
MFG/UTIL does not delete or purge any log files. If you want to delete
older log files, use the standard operating system commands.
INSTALLATION OVERVIEW 11
Database Sets
One of the functions of MFG/UTIL is to configure start-up parameters
using the concept of database sets. A database set defines the connection
parameters for a group of databases. In the case of MFG/PRO on Oracle,
the required databases are the PROGRESS schema holder database and
the Oracle database. Optionally, you can also include one or more custom
side databases.
You can set up different database sets for different purposes. For example,
you could have one database set that connects to a production database
and schema holder, and one that connects to a training database and
schema holder. In this case, both database sets could connect to the same
schema holder but different Oracle databases.
In the UNIX environment, MFG/UTIL uses the database set information
to create start-up scripts. In Windows, it creates start-up icons, a Windows
initialization file (for example, progress.svg), and a start-up parameter
file (for example, producti.pf). The parameter file contains the
required connection parameters for your databases.
You can control which type of help displays for each user through User
Interface Profile (36.20.4).
Do not confuse a similar maintenance program, Window Help
Maintenance (36.7.21), with the Windows hyperlink help. Window Help
Maintenance controls a look-up feature called scrolling windows and
does not affect the Windows hyperlink help.
CHAPTER 2
System Requirements
An Oracle installation requires planning for adequate system resources.
This chapter provides approximate guidelines as well as more detailed
formulas you can use to generate an accurate estimate of hardware
requirements for your installation.
Minimum Requirements 16
Hardware Sizing 18
CPU Sizing 24
Network Sizing 25
Network Fileserver 25
Minimum Requirements
General Requirements
• Compared with MFG/PRO on PROGRESS, MFG/PRO on Oracle
databases require more hardware resources—CPU capacity, memory,
and disk space—and more system performance tuning.
• The system administrator must be a certified Oracle database
administrator and must know how to manage PROGRESS client
processes.
• You must know what system configuration you will use in order to
build the correct DataServer components. For more information, refer
to the configuration descriptions in this chapter.
Database Server
• MFG/PRO: Version 9.0 server media.
• Oracle: Version 7.x or 8.1.x have slightly different requirements. You
should implement one or the other, but not a combination of the two.
Check whether the version you plan to use is compatible with the
PROGRESS DataServer. SQL*DBA or Server Manager,
SQL*PLUS, and PRO*C will be used. You may also need
networking components; see “Client/Server and Networking” below.
• PROGRESS: Version 8.3 or later UNIX DataServer and client
executable is required. Contact your PROGRESS or MFG/PRO sales
representative for the specific lettered release best suited to your
hardware. You may need networking components; see “Client/Server
and Networking” below. Also, at least one license of PROGRESS
4GL or ProVISION is required for complete system administration.
• Client/Server and Networking: You can set up the PROGRESS
DataServer for Oracle to be either remote from the PROGRESS client
executable or local to it. In a remote configuration, you need
PROGRESS networking. In a local configuration, you access Oracle
remotely.
• If you are using Oracle 7.x, you need SQL*Net V2.1 and the
appropriate protocol adapters.
• If you are using Oracle 8.1.x, you need SQL*Net/NET8 and the
appropriate protocol adapters.
SYSTEM REQUIREMENTS 17
Windows Clients
• PROGRESS: Version 8.3 or later software on each PC client or on a
file server that is accessible to each PC client. Contact your
PROGRESS or MFG/PRO sales representative for the specific 8.3
lettered release. Having PROGRESS on each PC will give you better
performance.
• PROGRESS Query Version 8.3.
• MFG/PRO: Version 9.0 Windows media.
• Network: You need a client/server environment and a working Ì For details, see
knowledge of PROGRESS networking. the PROGRESS
Networks Guide.
The network should be a WINSOCK-compliant 1.1 TCP/IP protocol
stack, such as MS TCP/IP or PC-TCP from FTP software. QAD
recommends a 10Mbit Ethernet or 16Mbit token ring network or
faster.
For Oracle 7.1.x, you need SQL*Net V2.1 or higher. For Oracle
8.1.x, you need SQL*Net/NET8 or higher. Both protocols require the
appropriate protocol adapters.
• PC Clients:
• 150MHz (or faster) Intel Pentium processor.
• RAM: 32MB for Windows 95 or 32MB for Windows NT
Workstation.
18 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
Hardware Sizing
Hardware sizing consists of determining memory requirements for the
server and the clients.
O/S Kernel
This is the amount of memory that the operating system requires. Most
operating systems require 32MB.
The P in this formula represents the total memory required for the
PROGRESS database server start-up parameters. The most common
server start-up parameters are -B, -L, -hash, and -spin. If the total of these
parameters is unknown, use 48MB. Larger, more fragmented databases
should use a -B start-up parameter larger than 30MB and a P value greater
than 48MB. For MFG/PRO in an Oracle implementation, the P value
should be 80MB or twice the number of users, whichever is greater.
Add together the user, O/S kernel, and production database memory
requirements. An additional 20 percent must then be added for operating
system input/output buffers to ensure you have enough memory. Round
up the resulting memory to the nearest multiple of 64MB. This is done
because hardware vendors usually sell machine memory in increments of
64MB. (If memory is sold in smaller increments, round up to the next
memory size increment.)
Example
An MFG/PRO site has 75 users, two production (or site) databases, and
an O/S kernel requiring 32MB. The PROGRESS start-up parameters total
48MB for each production database. The P value is 48MB for a
PROGRESS implementation and 80MB for an Oracle implementation
(greater of 80MB or 2 times the number of users).
Oracle Databases
Base DB
One of the most difficult estimates to make is the size of the database
before it is built. QAD’s experience has shown that many customers’
databases total 1GB per 50 users in the first production year.
This assumes that most MFG/PRO modules are being used except Field
Service or Service Support Management and that General Ledger
consolidations are done after each period closing.
Based on the guideline of 1GB per 50 users (500MB per 25 users) and the
rule of only populating 500MB on a drive, the following formula can be
used to determine the number of disk drives for the Base DB:
Number of Users / 25 = Number of Disk Drives (round up)
22 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
History
The archive log files should reside on their own disk drive. Use 1 for this
component of the formula.
Disk space is required for the base database, history and the archive log
files for the production databases. Once base database, history, and
archive log file requirements are added, the number of production
databases that will reside on a host or database server must multiply the
total.
RDBMS Factor
The total requirements for the base databases, history, and archive log
files for all production databases must then be multiplied by a factor for
the appropriate RDBMS product (PROGRESS or Oracle). For
PROGRESS, the RDBMS factor is 1. For Oracle the RDBMS factor is 3.
The RDBMS factor in the disk requirements formula accounts for the
differences in requirements between a PROGRESS and an Oracle
implementation.
OS (Operating System)
The operating system and related functions and utilities will require some
disk space. One drive is usually sufficient to hold the operating system;
use 1 for this factor in the formula. Some hardware vendors recommend
putting the operating system swap space on an additional drive. If this is
the case, use 2 for this factor in the formula.
SYSTEM REQUIREMENTS 23
User directories should be placed on their own drive. The user temporary
files usually require 2MB to 5MB per concurrent user. Use the following
formula for this portion of the disk requirements:
Number Users / 200 = Number of Disk Drives (round up)
Example
A MFG/PRO site has 75 users, one production database, and one year of
history.
Disks Usage
1x2GB Operating system and swap
1x2GB MFG/PRO, PROGRESS, and Oracle
1x2GB Users and TEMP
1x2GB SYSTEM
2x2GB ROLLBACK
8x2GB Tables and indexes
1x2GB Online redo logs
1x2GB Archived redo logs
32 GB Total
CPU Sizing
The central processing unit (CPU) size is split into server and client
requirements.
Network Sizing
LAN
The MFG/PRO for Windows software requires a TCP/IP WINSOCK 1.1-
compliant network to access the MFG/PRO production database(s) in a
client/server environment.
At a minimum, the network must be a 10Mbit Ethernet or 16Mbit Token
Ring. A 16-bit network interface card (NIC) may be used, but a 32-bit
NIC is preferred. It is recommended that no more than 16 MFG/PRO GUI
users are on the same single 10Mbit network segment.
WAN
It is recommended that standard MFG/PRO GUI client/server not be run
over a WAN. MFG/PRO GUI client/server can be run over a WAN using
Winframe from Citrix. The following bandwidth requirements can be
used for initial WAN sizing:
Viewer Bandwidth
Character 5kbs per user
WEB 12kbs per user
GUI (using Winframe) 20 to 30kbs per user
Network Fileserver
A network fileserver is typically required in a GUI client/server
environment.
26 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
Rollback Segments
The number of rollback segments determines how many concurrent
transactions can be run. If there are more transactions then they will have
to wait for freeing up of rollback segment entries, which can be re-used.
The recommended number of rollback segments varies for different
numbers of concurrent users.
SYSTEM REQUIREMENTS 27
Table 2.2
Number of Number of Rollback Segment
Concurrent Users Rollback Segments Rollback Segment Sizing Sizing
25 4
200 30 Initially 1M. Next 1M. Optimal 2M.
Percent increase 0. Minimum extents 2.
500 40
1000 60 Initially 5M. Next 5M. Optimal 10M.
Percent increase 0. Minimum extents 2.
Distributing I/O
Tablespace Sizing
To determine tablespace sizes, you must consider the number of users to
be supported and how much data they will generate in a year. The
example in table 2.4 shows initial tablespace sizing for a 500-user
database.
Except for the SYSTEM tablespace, the settings in the following table
apply to Oracle 7.x and 8.1.x environments. For Oracle 8.1.x, set the
tablespace to 60MB even though the autoextend option is active for it.
Review and modify any settings in the crdb2ORACLE_SID.sql file as
needed for your Oracle database environment. See “2: Running SQL
Scripts to Create the Oracle Database” on page 62.
Table 2.4
Tablespace Sizing Tablespace Size
for a 500-user
Database SYSTEM 50 MB
ROLLBACK (RBS) 220 MB
TOOLS 15 MB
TEMP 120 MB
LOG FILE SIZE 05 MB
USERS 01 MB
MFGHELP 03 MB
MFGHELP_IDX 03 MB
GUI 16 MB
GUI_IDX 16 MB
SYSTEM REQUIREMENTS 29
Tablespace Size
GLRPWRTR 02 MB
GLRPWRTR_IDX 08 MB
INTRASTAT 02 MB
INTRASTAT_IDX 02 MB
TRANSACTION 80 MB
TRANSACTION_IDX 90 MB
HISTORY 10 MB
HISTORY_IDX 14 MB
STATIC 30 MB
STATIC_IDX 90 MB
CONTROL 03 MB
CONTROL_IDX 12 MB
REFERENCE 03 MB
REFERENCE_IDX 03 MB
WORKFILE 03 MB
WORKFILE_IDX 03 MB
GLTDET 14 MB
GLTDET_IDX 23 MB
GLTRHIST 03 MB
GLTRHIST_IDX 06 MB
TRHIST 53 MB
TRHIST_IDX 52 MB
TRGLDET 20 MB
TRGLDET_IDX 31 MB
MRPDET 90 MB
MRPDET_IDX 190 MB
QADWKFL 19 MB
QADWKFL_IDX 11 MB
SOMSTR 03 MB
SOMSTR_IDX 06 MB
SODDET 13 MB
SODDET_IDX 10 MB
WOMSTR 08 MB
30 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
Tablespace Size
WOMSTR_IDX 11 MB
WODDET 35 MB
WODDET_IDX 40 MB
WRROUTE 19 MB
WRROUTE_IDX 06 MB
Oracle 7.x
• Oracle RDBMS, currently supported versions are 7.3.x and above.
• SQL*Net with the TCP/IP Protocol Adapter, currently supported
versions are 2.x and above.
• SQL*Plus.
• For a Windows client installation on an Oracle 7.1.x database, only
SQL*Net is required.
Oracle 8.1.x
• Oracle RDBMS, currently supported versions are 8.0.5 and above.
• SQL*Net/NET8 components appropriate for your Oracle server
version, including the TCP/IP Protocol Adapter.
SYSTEM REQUIREMENTS 31
• SQL*Plus.
• For a Windows client installation on an Oracle 8.1.x database, only
NET8 is required.
Note These version and release numbers may change without notice.
Always review the QAD, PROGRESS and Oracle Web sites for the most
up–to–date list of component versions supported.
32 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
CHAPTER 3
MFG/PRO-on-Oracle
Considerations
Prior to installing Oracle software to support MFG/PRO, there are
specific issues to resolve or plan for.
Choosing the MFG/PRO-on-Oracle Architecture 34
Client/Server Installs 37
• ORACLE_SID
This variable, which is frequently referred to as the Oracle System
Identifier, is the name of the database. It is unrelated to the
ORACLE_HOME directory and the Oracle release number.
QAD recommends using any name other than qad or qaddb. These
names are used by standard MFG/PRO programs—qad for the
PROGRESS schema holder and qaddb for the Oracle database
logical reference. On most operating systems, there is a restriction on
the length of the name, so it should be short.
Client/Server Installs
Many MFG/PRO-on-Oracle systems are large—100 users or more. In
these cases, Oracle is installed on a separate system used solely as a
database server. Communication between MFG/PRO—more specifically,
the PROGRESS DataServer and the Oracle 7.x database engine—is
provided by SQL*Net. Communication with the Oracle 8.1.x database is
provided by SQL*Net/NET8.
This section covers that configuration from an Oracle perspective. The
two systems required are the database server and the application server.
The Oracle setup for networking can easily be tested with Oracle’s
SQL*Plus. Before setting TWO_TASK for the MFG/PRO connection,
make sure remote connect works for SQL*Plus.
For a detailed description of SQL*Net and the formats of connect strings
and protocols, please refer to the Oracle SQL*Net documentation.
40 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
CHAPTER 4
Building PROGRESS
DataServer Components
This chapter provides DataServer installation tips that supplement the
installation instructions in the PROGRESS DataServer for Oracle
Guide, Chapter 3, “Building the DataServer.”
Database Server Build Overview 42
First you run the PROBUILD utility, which creates UNIX scripts that
contain the commands to link new PROGRESS executables. You then run
the scripts to actually create the DataServer executables.
The link scripts refer to the file buildenv for environment variables. If
you receive errors while running the link scripts, you can usually resolve
them by editing the buildenv file.
You must build the DataServer on at least the host machine (for running
batch processes). If you have chosen a UNIX client/server configuration,
you must also build the DataServer on the UNIX client machines.
Environment Settings
Before you run PROBUILD, follow these guidelines relating to the
environment settings:
• You must be logged in as the root user ID to run the link scripts.
• If DLC is not set, use the command below to set it:
DLC=YourProgressDir; export DLC
• If the UNIX PATH does not contain the $DLC/bin directory, use the
command below to set it:
PATH=$PATH:$DLC/bin;
• The TERM variable must be set to match an appropriate entry in the
PROTERMCAP file.
• Make sure to add the ORACLE_HOME environment variable in the
buildenv file. For example, if the Oracle home directory is
/d2/oracle7, type:
ORACLE_HOME=$/d2/oracle7 ; export ORACLE_HOME
• If you have a Sun Solaris system, add the LD_LIBRARY_PATH
environment variable in the buildenv file.
• Run PROBUILD from the directory
ProgressDir/probuild/eucapp (where ProgressDir is your
actual PROGRESS path).
• You must use the standard C compiler for the machine.
• The Oracle OCI must be installed.
44 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
Running PROBUILD
1 Change to ProgressDir/probuild/eucapp.
2 Type ./probuild.
3 In the Install Link Script Into prompt, specify where to create the link
scripts.
4 In the Product List, select PROGRESS Client.
5 In the Link Script and Executable prompt, specify your desired names
or accept the default.
6 In the Configurable Elements prompt, select Oracle DataServer and
TCP/IP network protocol.
Warning Even if you will not use TCP/IP at all, link errors occur on
several UNIX platforms if you do not include the TCP/IP option.
If you still receive unresolved external reference errors, use the following
steps to find the missing library.
1 Change to the $ORACLE_HOME/lib directory and use the ar
command (a UNIX command) to list the contents of all the libraries
in that directory. A short script to do this is:
for File in *.a
do
echo $File >>liblist.txt
ar -t $File >>liblist.txt
done
2 Use a text editor and look through the file liblist.txt for the
objects that are missing.
3 When you find a missing object, scan backward to find the library Tip
file. Check whether the object is in two libraries. With the vi text
editor, you can use
the command ?\.a
to search backward
for the most recent
library.
46 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
4 Add the library names to the ORALIB setting in the buildenv file
and run the link scripts again. If an object is in more than one library,
add only one of them; if the link script fails again, enter the other
library instead. However, if one of the two libraries already appears in
the buildenv file, add that library as a second entry (the link script
needs to refer to it twice). For example:
ORALIB="$ORACLE_HOME/lib/libocic.a \
In this example, the $ORACLE_HOME/lib/osntab.o \
libcore and libsqlnet $ORACLE_HOME/lib/libsqlnet.a \
libraries are repeated $ORACLE_HOME/lib/libora.a \
because they depend on $ORACLE_HOME/lib/libcv6.a \
each other. $ORACLE_HOME/lib/libcore.a \
$ORACLE_HOME/lib/libnlsrtl.a \
$ORACLE_HOME/lib/libsqlnet.a \
$ORACLE_HOME/lib/libcore.a"
5 If you cannot find which library contains the missing object, open a
man-page for the missing object (man MissingObjectName). The
missing object may be in a nonstandard system library. In this case,
you will find a man-page on it that should give you a sample
command line with a requisite -l parameter. The -l parameter will
be a library you must add to the ORALIB setting in the buildenv
file.
Database
Server Setup
This chapter explains how to load the MFG/PRO media, set up the
databases, and configure database sets for the start-up scripts.
Setup Overview 48
Setup Overview
The standard database setup creates a single database for an Oracle
instance. If you want additional MFG/PRO databases associated with the
instance—such as training and demonstration—see “Setting Up Multiple
Databases” on page 122.
Ì For details, see Note While setting up the database server, you can simultaneously load
Chapter 6, the Windows client media.
“Loading Client
Media,” on
page 81. The main database setup tasks are:
• Creating the Schema Holder and SQL Scripts
Launch the installation process that loads UNIX media and creates
the schema holder. The default schema holder name is oraempty.
The foreign database reference is qaddb, which you must change
later. The program also generates the SQL scripts that create the new
Oracle database.
• Running SQL Scripts
Run the SQL scripts to create the new Oracle database.
• Copying the Schema Holder Under a New Name
Make a copy of the default schema holder oraempty for use in
production. You must also change the foreign database reference from
the default, qaddb, to the actual Oracle database files and
tablespaces.
• Configuring Database Sets
Configure the parameters for the MFG/PRO start-up scripts.
• Loading MFG/PRO Data
Load the default MFG/PRO data including menu names, messages,
and codes. If you have an existing MFG/PRO system, you also load
that data.
DATABASE SERVER SETUP 49
Assumptions
The installation instructions assume you have:
• Backed up your existing MFG/PRO system, if any
• Installed Oracle and applicable networking, if any
• Installed and built the required version of the PROGRESS
DataServer
• Changed to the Korn shell
• Logged on as user mfg
50 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
4 Load the tape using one of the following commands or the equivalent
command for your version of UNIX.
On this type of
hardware... Enter this load command...
NCR Tower dd if=/dev/rtp conv=swab | cpio -iumvdBc
600 or Unisys
5000/50
HP 9000/800 tcio -i /dev/rct/YourTapeDevice |
Series, 1/4” cpio -iumvdBc
cartridge
All others cpio -iumvdBc < /dev/YourTapeDevice
Note All MFG/PRO tapes are written using a block size of 5120 bytes.
4 Create a directory called cfg under the home directory of user mfg.
This directory is mandatory because it is where important installation
and configuration information is stored. The directory needs to have
read, write, and execute permissions (rwx) for the owner group and
others.
a Log on as user mfg.
b To verify that the directory has been created successfully, type the
following command at the system prompt:
ls -ld $HOME/cfg
5 Now that the user and group have been created, here are some
optional but useful things that you can add to the user’s profile
(.profile).
Profile Setting Description
PROPATH=${PROPATH:- Sets a default PROPATH.
”YourPROPATH”}
DLC=${DLC:- Sets a default PROGRESS
”YourPROGRESSDirectory”} directory.
PATH=$PATH:$DLC/bin Adds the default PROGRESS
/bin subdirectory to the execution
path.
54 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
Preliminary Setup
1 Log on as user mfg under the group qad.
2 Use the standard terminal types while installing MFG/PRO. For
example, for a vt100, set your TERM variable to vt100 during the
installation. Once the MFG/PRO software has been installed, you can
use one of the language-dependent versions of vt100, such as vt100fr.
3 Verify that the ORACLE_HOME and DLC environment variables
point to the correct locations.
4 Set the ORACLE_SID environment variable to the desired SID of a
new or existing instance—limited to four characters.
Important Do not use any of the MFG/PRO schema names, qad, or
qaddb as the ORACLE_SID value. Do not use a number as the first
character of the ORACLE_SID value.
5 Determine the following information regarding the Oracle database
structure. MFG/UTIL will prompt you for this information and use it
to create SQL scripts, which create the Oracle database.
Note As you design your directory structure, also refer to Appendix A,
“Tablespaces in the Oracle Database,” and to Figure 1.1, “Oracle Disk
Structure Example,” on page 11.
MFG/UTIL prompts:
• ORACLE Instance Name (it is assumed this is a new instance)
• ORACLE Database Name (used in the CREATE DATABASE
command; it usually matches the instance name)
• ORACLE Home Directory
• ORACLE Instance Directory
• ORACLE Code-page (defaults based on your language code, but
you may want to verify the default)
• ORACLE NLS Language
• ORACLE NLS Territory
• Location of Control File 1
• Location of Control File 2
• Location of Bkgrd Dump Dir
DATABASE SERVER SETUP 55
Start Installation
1 Change to the drive containing the MFG/PRO media; for example:
cd MediaDir
Note The installation script first checks for available disk space. If there
is not enough space, the installation stops and you must obtain adequate
disk space and restart the installation.
8 Wait for the installation script to unload MFG/PRO. This process can
take several hours. You can leave it unattended while it is copying.
Note You may be prompted for the ORACLE_HOME directory if this
variable is not set. You may also be prompted to confirm the Oracle
version and installation directory.
DATABASE SERVER SETUP 57
3 In most cases, accept the defaults in this window and choose Perform
Tasks to continue. Note the following:
• Build Schema Holder with: You should have at least the
MFG/PRO, Help, GUI (graphical user interface), and
Configurator schemas chosen; GL Report Writer is not needed
because the MFG/PRO schema contains it by default.
• Compile: In Version 9.0, all programs are pre-compiled, so you
do not need to compile—the selection box should be blank.
• Oracle Database Creation: Leave this option selected to generate
the SQL scripts that create the Oracle database. However, you can
deselect this option if you only want to build a schema holder,
such as when you are updating an existing MFG/PRO system.
4 MFG/UTIL displays the Installation Log window as it creates the
schema holder and generates dump and load procedures. (The default
schema holder name is oraempty, the foreign database ID is
qaddb, and the database type is Oracle.)
Field Enter
Oracle Instance Name Enter a new instance and database name; typically,
Oracle Database Name you use the same name for both. These names are
used in the database creation scripts and MFG/PRO
start-up scripts.
Do not use any of the MFG/PRO schema names,
qad or qaddb. Do not use a number as the first
character.
Oracle Home Directory The home directory you specified earlier defaults;
change it if necessary.
Oracle Instance Directory Enter the primary instance directory containing key
files such as init.ora and key subdirectories, such as
./back, ./core, and ./user. This directory
name becomes the default for the next set of Oracle
file location prompts.
Oracle NLS Language These are the values used to build the Oracle
Oracle NLS Territory database for a given language. The defaults are based
Oracle CODE-PAGE on the language code you used to run the mfgtailor
script. Change the defaults if needed.
60 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
2 In the subsequent windows, you must give the directory paths and
sizes for various tablespaces in your ORACLE directory structure.
Use the following table and “Tablespaces in the Oracle Database” on
page 113 as reference. If needed, you can later change the sizes using
MFG/UTIL.
Tip Warning You may need to increase the default size of the MFGHELP
The source code tablespace and index. If you plan to load several languages, multiply the
cross-reference is
useful for default size per language. The default sizes are 40MB for MFGHELP and
programming. It 45MB for MFGHELP_IDX. Also, if you plan to load source code cross-
provides a map of
MFG/PRO program reference information, add 100MB for MFGHELP and 135MB for
relationships. MFGHELP_IDX.
Tablespace Description
RBS All rollback segments; expect it to grow and contract.
TEMP Temporary tablespace; use it at your discretion.
TOOLS DBA default tablespace; use it at your discretion
USERS User default tablespace; use it at your discretion.
MFGHELP and All help tables and indexes; expect this tablespace to be
MFGHELP_IDX static.
GUI and GUI_IDX All MFG/PRO GUI tables and indexes, including browse
and view records.
GLRPWRTR and Tables and indexes used with the General Ledger Report
GLRPWRTR_IDX Writer feature.
INTRASTAT and Tables and indexes used with the Intrastat feature.
INTRASTAT_IDX
TRANSACTION and All transaction tables and indexes, such as sales orders;
TRANSACTION_IDX expect large growth in number and size.
HISTORY and All history tables and indexes; expect large growth in
HISTORY_IDX number and size if you have auditing enabled.
STATIC and Tables and indexes with little growth in number or size.
STATIC_IDX
CONTROL and Control tables and indexes; generally one record per table
CONTROL_IDX with little growth in number or size.
REFERENCE and Reference tables and indexes such as generalized codes,
REFERENCE_IDX menus, and messages; expect little growth.
WORKFILE and Workfile tables and indexes; some grow and then contract,
WORKFILE_IDX while others grow continuously.
GLTDET and The General Ledger transactions table (glt_det) and index;
GLDET_IDX data is added to the end of the file.
DATABASE SERVER SETUP 61
Tablespace Description
GLTRHIST and The General Ledger transaction history table (gltr_hist)
GLHIST_IDX and index; data is added to the end of the file if you have
auditing enabled.
TRHIST and The Inventory transaction history table (tr_hist) and index;
TRHIST_IDX data is added to the end of the file if you have auditing
enabled.
TRGLDET and The Inventory Transaction General Ledger Cross-
TRGLDET_IDX Reference table (trgl_det) and index; data is added to the
end of the file.
MRPDET and The Material Requirements Planning table (mrp_det) and
MRPDET_IDX index.
QADWKFL and The QAD Workfile table (qad_wkfl) and index; expect
QADWKFL_IDX large growth in number and size.
COMPCONF All tables and indexes for the Component Configurator
module.
3 After you complete the last window, MFG/UTIL creates the schema
holder. If you chose the compile option in step 3 on page 58, the
MFG/PRO code is also compiled.
Note The compile process for the MFG/PRO code is time-
consuming.
4 Answer the following prompt. Typically, you should answer Yes to
remove the temporary files used during installation. However, you
can answer No if you are researching an installation problem and
want to examine these files.
Cleanup the /tmp/mfgpro stage directory? (y/n)
6 Before you proceed, review the log file mfgutil.log for any errors.
It is located in the MFG/PRO installation directory.
7 Verify that the following files have been created in the current
directory:
• oraempty.db (empty schema holder database)
• oraempty.bi (empty schema holder before image file)
62 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
The tablespace sizing that defaults in the SQL scripts is appropriate for
loading the MFG/PRO demonstration or training data. Note the
following:
• If you plan to load production data into Oracle from a source other
than MFG/PRO, you must modify the SQL scripts to ensure that the
Oracle database is properly set up. To help with this task, refer to
Appendix A, “Tablespaces in the Oracle Database,” on page 113.
DATABASE SERVER SETUP 63
5 By default, the SQL files create tablespaces sized for loading the
MFG/PRO demonstration or training data. If you plan to load data
from a different source, you should examine and edit the SQL scripts
so that the tablespaces are sized correctly.
Note Use MFG/UTIL to size Oracle tablespaces.
64 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
6 If you want to create the database files for an existing instance instead
of a new instance, you must edit crdb2ORACLE_SID.sql and
consolidate the QAD-supplied files config.ORACLE_SID and
initORACLE_SID.ora with your existing files.
Note The script is finished when the operating system prompt reappears.
10 Run the next SQL script to create tablespaces, rollback segments, and
the Oracle User ID.
svrmgrl < crdb2ORACLE_SID.sql
Note You can expect some error messages to appear on the screen. They
occur because the SQL script performs a drop command for each object
created, even if the object does not yet exist.
11 Examine the list files crdb1ORACLE_SID.lst and
crdb2ORACLE_SID.lst to check for unexpected errors.
DATABASE SERVER SETUP 65
12 Load the following MFG/PRO schemas into the newly created Oracle
tablespaces by using the following commands. Each script takes a
few minutes to run; the last script, oraempty.sql, takes the longest.
Command Description
sqlplus qad/qad < ogui.sql GUI objects
sqlplus qad/qad < ohpempty.sql Help database objects
sqlplus qad/qad < ocfempty.sql Configurator schema objects
sqlplus qad/qad < oraempty.sql Main MFG/PRO schema
objects
13 Examine the log files for the SQL scripts listed above to check for
unexpected errors. The log file names are the same as the SQL script
name, but with a .lst or .log extension.
If there is an error, you can safely rerun the SQL scripts ogui.sql,
ohpempty.sql, oraempty.sql, and ocfempty.sql.
14 Log off and log on again as user mfg under the group qad.
Prerequisites:
• Set the PROGRESS environment variables, such as DLC and the
UNIX PATH, to the correct setting.
• Log on as user mfg under the group qad.
1 Start MFG/UTIL.
./mfgutil
2 From within MFG/UTIL, press F3 and use the arrow keys to select
the DataServer menu, then the Oracle option, and then Create New
Schema Holder from Oraempty.
66 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
3 In the Original Database field, enter the existing schema holder name,
oraempty (it should default). Also type the path to oraempty if it is
not in your current directory. If needed, select <Db Files> to search
for the correct path.
4 In the New Database Name field, type a new schema holder name.
5 Accept the window and continue to the next.
6 In the Oracle Database Name field, type the actual Oracle database
name and choose OK.
Important Do not use any of the MFG/PRO schema names, qad, or
qaddb as the Oracle database name. Do not use a number as the first
character of the Oracle database name.
7 At the following prompt, press Enter to verify your entry.
Verify Oracle DB name: YourDBName
MFG/UTIL changes the foreign database reference in the schema
holder from qaddb (the default) to the actual Oracle database name.
8 While still in MFG/UTIL, continue with the next section, “4:
Configuring the Database Set” on page 66.
1 From within MFG/UTIL, select the Configure menu and choose Any
Database Set. The Database Set Configuration window appears.
Review the following notes to become familiar with this window.
DATABASE SERVER SETUP 67
Highlight the
database set to
be modified.
Do not choose
OK until you
have finished.
Databases
within the
database set
appear here.
2 If the Active flag in the Select a Database Set portion of the Database
Set Configuration window is set to Yes, MFG/UTIL will build a
server start-up icon for that database set. To change the setting of the
Active flag, select the database set, choose Edit Set, and modify the
Active field when the Database Sets window appears.
3 Highlight the Production database set. (The global parameters for this
set appear to the right. Normally, you do not need to change them, but
you can by choosing Edit Set.)
4 Configure the schema holder by selecting the schema holder
database from the Selected Set Overview list and choosing the Edit
Client button.
2 Select the desired database set or sets from the list by highlighting
each one and pressing Spacebar. Choose OK when finished.
3 Choose Yes at the following prompt:
1 Choose which type of system data you want to load from the
following list. Each type of data is kept in its own MFG/PRO sub-
directory.
To Load This Type of Data... ...You Will Use This Sub-directory
Minimal menu names, messages, and codes /InstallDir/mfg
only
Data from mfg, plus demonstration data /InstallDir/mfgdemo
Data from mfg, plus training data /InstallDir/mfgtrain
72 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
2 From within MFG/UTIL, select the Database menu and choose Load
Data from Directory. Refer to the following table and example
illustration as you complete the fields.
From this Directory Enter the directory path for the type of data you want
to load. For example, to load demonstration data,
type:
/InstallDir/mfgdemo
MFG/UTIL loads all .d files in the specified
directory with a corresponding table name in the
destination database.
From this Empty Database In both fields, enter the path and name of the schema
To this Database Name holder oraempty.db.
Field Enter
Local Host Connection For a local host connection (meaning the database
is on the same machine as your PROGRESS
session), select this option and complete the
following fields.
Single-User Connection This setting has no effect in the Oracle
environment.
Database Path Leave this field blank.
Additional (Startup) Type the following parameters in this order:
Parameters -ld qad
-RO
-db ORACLEDbName
-ld qaddb
-dt ORACLE
-U qad
-P qad
5 When the load is complete, choose Close from the Installation Log
window.
6 Exit from MFG/UTIL and then restart it.
7 Load gui data by repeating the previous steps. However, in the field
From this Directory, enter:
/InstallDir/gui
74 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
8 Load Configurator data using the same steps; however, in the field
From this Directory, enter:
/InstallDir/cfg
License Registration
Register your MFG/PRO license the first time you log on. These steps Ì For more
require that you have the license code sheet included with your release information on
licensing, see
media. “User License
Overview” on
1 At the MFG/PRO Sign On screen, press Return. page 12.
4 In the Add Product screen, type the code from the license code sheet
included with your release media in the License Code fields. Choose
Ok.
5 Choose Ok at the Registered Products screen.Your license code and
details display in the License Detail screen.
6 Choose Ok at the License Detail screen. You are returned to the
operating system. To begin a session, restart MFG/PRO and log in.
Note If you need to modify your license code, use License Registration
(36.16.10).
Exiting MFG/PRO
Exit MFG/PRO by pressing End (F4) at the Main Menu.
4 When the load is complete, choose Close from the Installation Log
window.
80 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
CHAPTER 6
Preliminary
Before you install the Windows client files from your CD-ROM, you
should:
• Know the directory name where you will store the MFG/PRO for
Windows files.
• Log on to your network with write permission for this directory.
7 After the files are copied, the following window appears; choose
Finish.
LOADING CLIENT MEDIA 85
8 If you have multiple languages, repeat the preceding steps for each
language. However, note the following differences.
• Specify a different installation directory; for example, mfgfrgui
(where fr is the French language code).
• Once the second language is loaded, open File Manager or Windows
Explorer and find the two-letter language code directory under the
new installation directory. For example, fr is for French.
• Copy the language code sub-directory into the first installation
directory. The language directories must be on the same directory
level.
Setup Prerequisites
• You have met the system requirements for Windows clients, outlined
in Chapter 2, “System Requirements,” on page 15.
• Your network is operating.
• You have loaded the Windows client programs. It is recommended
that you load them onto a file server.
• You have set up the gui (Graphical User Interface) tables in the
Oracle database and loaded the default system data related to the gui
tables.
• You have installed PROGRESS client software on each client PC or
accessible network drive. The required products are Query and
DataServer for Oracle.
• You have installed Oracle software, including SQL*Net and the
Oracle PRO*C library, on each PC or an accessible network drive.
• You have set up database aliases for the Oracle SID in the SQL*Net
configuration tool.
WINDOWS CLIENT SETUP 89
• You have verified that the oracle.ini file, which is in the Oracle
installation directory of each PC, contains the correct nls_lang value.
This setting format is: language_territory.characterset,
corresponding respectively to the server variables
NLS_LANGUAGE, NLS_TERRITORY, and Code Page.
• You have mapped network drives for any components installed on a
file server. Networked components may include MFG/PRO GUI,
PROGRESS, or Oracle media.
• The first client PC has write access to the file server installation
directory. Write access is needed to use the express setup feature.
Client Setup
1 Start on any PC connected to the network file server. Verify that your
display resolution is no greater than 800 x 600 dpi. If you are using a
higher resolution, follow the procedures for your video card to change
the resolution to 800 x 600dpi.
2 Start the setup.exe program using File Manager, Explorer, or the
Start button.
InstallDrive:\WinInstallDir\setup.exe
Highlight the
database set to
be modified.
Do not choose
OK until you
have finished.
Databases
within the
database set
appear here.
10 If the Active flag in the Select a Database Set portion of the Database
Set Configuration window is set to Yes, MFG/UTIL will build a start-
up icon for that database set. To change the setting of the Active flag,
double-click on the database set name. When the Database Sets
window displays, click on the Active field to select Yes or No.
11 Highlight the Oracle Production database set. The global parameters
for this set appear to the right. Normally, you do not need to change
them; but you can by choosing Edit Set.
WINDOWS CLIENT SETUP 93
Choose the
schema
holder
database
from here.
Field Enter
Connection Type Choose the Local connection. Do not choose Client/Server
unless you have PROGRESS Networking; however,
PROGRESS Networking is not recommended for use with
Windows clients on Oracle.
Path Specify the drive and directory containing the database.
Typically, the schema holder database is in your installation
directory on the file server, unless you copied the schema
holder to each client PC. For the Oracle database connection,
you should leave this field blank because the Windows clients
do not connect to it directly.
17 When you have entered information for all the database sets you are
installing, choose OK in the Database Set Configuration window.
The following prompt appears.
Ì See “Using 18 Choose Yes to save the current configuration to the file server. This
Express Setup for enables you to use the express setup on subsequent clients.
Client PCs” on
page 99 for more If you choose No, the installation ends without the current
information.
configuration being saved to the file server; however, it will be saved
to the client working directory of this PC.
The Installation Log Window appends messages indicating steps
completed by the installation program.
WINDOWS CLIENT SETUP 97
2 Choose OK or Exit.
WINDOWS CLIENT SETUP 99
If you answered Yes, the first client settings are stored on the file server so
that the other clients can copy them. If necessary, however, you can
change the settings on the file server to set up some client PCs differently.
1 Repeat steps 1 through 8, starting on page 89, for each subsequent
Windows client you want to set up. MFG/UTIL completes the rest of
the client setup automatically.
2 If you want to use different settings than the first Windows client, do
the following:
a Start MFG/UTIL from any client PC by clicking the MFG/UTIL
icon.
b Select the Configure menu and choose Any Database Set to open
the Database Set Configuration window.
c In the Database Set Configuration window, make your changes.
d Select the File menu and choose Save Default mfgutil.ini.
MFG/UTIL stores your changes in the client administration
directory on the file server, as well as on the current machine.
Subsequent clients you set up will use these same settings.
100 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
3 In the Target field, use the -ininame parameter to locate the client’s
initialization file; for example, PROGRESS.SVG.
4 Open the initialization file in a text editor.
5 Modify the PROPATH setting in the [Startup] section of this file.
CHAPTER 8
Multiple Language
Setup
This chapter explains the tasks needed to set up an additional language
for MFG/PRO. Repeat all the tasks in this chapter for each additional
language. For an overview of the multiple language environment, see
“Multiple Language Installation Overview” on page 8.
Multiple Language Assumptions 102
For example:
mv ./mfg/lng_mstr.d ./mfg/lng_mstr.old
• If you loaded custom browses, you must open and resave each of
them in Browse Maintenance (36.20.1) and then compile the resulting
source code.
1 Have all users logged off your existing MFG/PRO system.
2 Log on with an ID that is a member of the Oracle database
administration group (usually not root).
3 Make sure the Oracle instance is started and the database is mounted.
4 From the UNIX prompt, run the following command to truncate gui
data.
sqlplus qad/qad < guitrunc.sql
The script is finished when the operating system prompt reappears.
5 Set the PROGRESS environment variables, such as DLC and the
UNIX PATH.
6 In the new MFG/PRO 9.0 installation directory, start MFG/UTIL.
./mfgutil
7 From within MFG/UTIL, select the Database menu and choose Load
Data from Directory. Refer to the following table and example
illustration as you complete the fields.
Field Enter
From this Directory Enter the path to the Version 9.0 installation
directory and the gui sub-directory:
/InstallDir/gui
From this Empty Database In both fields, enter the path and name of the
To this Database Name schema holder oraempty.db.
2 Copy the following schema holder files to new names under your
language sub-directory.
cp oraempty.db LanguageDir/oraLanguageCode.db
cp oraempty.bi LanguageDir/oraLanguageCode.bi
6 Choose OK.
7 After a connection is made, complete the following field with the path
and name of the xdc_mstr table.
Update This Database File: InstallDir
/LanguageDir/xdc_mstr
Note Choose the button <Browse .db File> to search for this file.
Language Test
Installation Reference
This chapter provides optional instructions related to an MFG/PRO
installation.
Oracle Database Administration 114
Index Rebuilds: As with any Oracle database, periodic index rebuilds are
recommended because the index tends to become fragmented.
Application Security: MFG/PRO on Oracle still relies on the system
security available in PROGRESS.
Database Security: You can utilize any of the Oracle database security
features in addition to the MFG/PRO security. For example, if you use
other tools to access the Oracle database directly, you would probably
want to implement Oracle database security.
Upgrades: Before you upgrade Oracle or PROGRESS, check to see if it is
compatible with the other components. For example, if Oracle releases a
new version, the PROGRESS DataServer may not immediately support it.
About Protoora
Because some of the conventions used by protoora may not be
appropriate for your Oracle database, you cannot use the database it
creates. For example, the utility creates only one tablespace for all schema
objects and data. Also, some of the character columns will probably be
undersized because protoora uses the format value from the data
dictionary as the default size value. To correct these problems, you must
make various adjustments to the SQL script and rerun it to create a
corrected Oracle database.
Ì For details, see 1 Run protoora.
the PROGRESS
DataServer 2 The protoora utility sets up the Oracle database and a PROGRESS
Guide.
schema holder to match it. The first half of the utility examines your
side PROGRESS database and produces SQL scripts that in turn
create the Oracle database. (These database objects are incorrect and
you will replace them with corrected ones.)
The second half pulls across schema information from the Oracle
database to create the PROGRESS schema holder database.
3 In the SQL script created by protoora.p, modify the tablespace
sizes to match the number of records in your custom side database.
Use the standard Oracle tablespace sizing algorithm.
Note Labels for columns (also called fields) are stored in the
PROGRESS schema holder and not the Oracle database.
4 Use the modified SQL script as input into SQL*DBA to create
corrected Oracle database objects (tablespaces, tables, etc.).
sqldba < YourSQLScriptName
INSTALLATION REFERENCE 117
6 While connected to the new schema holder, open the Data Dictionary,
choose the Admin menu, and choose the Dump Data Definitions
option. The system creates a data definition file (.df extension).
7 Using a text editor, open the data definition file. For each ADD
TABLE command, make sure the FOREIGN-OWNER statement is
blank; for example:
FOREIGN-OWNER “ “
Note If you are adding sequences to the data definitions, you must define
a FOREIGN OWNER.
8 Append the new data definition statements to the main MFG/PRO
database definitions file.
9 Compile your custom program(s) against the updated MFG/PRO
schema.
10 Once the Oracle database is set up, dump the PROGRESS data into
data files (extension .d) and load them into the Oracle database.
Refer to PROGRESS DataServer Guide, Chapter 4, Section 5 for
details.
11 Make sure to test your custom software.
During Installation
Use the standard terminal types while installing MFG/PRO. For example,
for a vt100, set your TERM variable to vt100 during the installation. Once
the MFG/PRO software has been installed, you can use one of the
language-dependent versions of vt100, such as vt100fr, vt100ge, or
vt100du.
4 For the database server and Windows client file server, integrate the
programs from the add-on media with your existing production
system. Use one of the following methods.
• If you have not made any code modifications, you can copy the
language code directory (for example, us) from the add-on release
into your existing installation directory. This option overwrites your
existing programs, both source and compiled.
• If you have modified MFG/PRO code, copy only the new program
sub-directories from the add-on module into your existing installation
directory. All program directories appear under the two-letter
language code directory. For example, if you purchased Advanced
Repetitive and your language is English, the additional directory is:
TempInstallDir/us/er.
To determine the appropriate program directories, you can use the
following UNIX diff command (where AddOnDir is the directory for
the add-on media).
diff /InstallDir/LanguageDir /AddOnDir/LanguageDir
Special Compilation
Whenever you compile all of MFG/PRO, you must recompile the
following programs separately using the parameter -nojoinbysqldb.
Otherwise, they will generate a run time error: Bus Error (48). The
programs are:
• rescrp2a.p • rescrp2b.p
• rewarp2a.p • rewarp2b.p
Fig. A.1
ORACLE Instance MFG/PRO-on-
Oracle Multiple
Demonstration: Database Overview
MFG/PRO
Start-up PROGRESS ORACLE
Script Schema Holder Database
Training:
MFG/PRO
Start-up PROGRESS ORACLE
Script Schema Holder Database
*Note: For simplicity, the user and owner are the same in this example.
Schema Holder
Follow these general steps to create a schema holder that references your
new Oracle database owner.
Note These steps assume you have PROGRESS 4GL or ProVISION.
SQL Scripts
These steps explain how to add a database owner in an Oracle instance
already containing an MFG/PRO database owner.
1 Edit the MFG/PRO example SQL script crdbtmpl.sql (or a copy
of it) using the general steps that follow. The crdbtmpl.sql script
is located in the root InstallDir directory.
a Modify the size of every tablespace to allow for the additional
databases. By default, the SQL script is sized for a single
demonstration or training database. Therefore, to set up both the
INSTALLATION REFERENCE 125
5 Examine the log files for the SQL scripts listed above to check for
unexpected errors. The log file names are the same as the SQL script
name, but with a .log extension.
Start-Up Script
Your MFG/PRO start-up scripts must reference the Oracle database
owner or owners in the -U and -P parameter. Use a text editor or
MFG/UTIL to create the scripts.
For example, the following execution command includes the qadtrain
Oracle owner in the -U and -P parameter.
exec $DLC/bin/_progres \
/mfgpro/Training -RO -znotrim -trig triggers \
-db /data/ora/qad -dt ORACLE -U qadtrain \
-P qadtrain -c 100 -Dsrv qt_nolookahead \
-charset undefined -cpcoll basic -Bt 350 -D 100 \
-mmax 3000 -nb 200 -s 48 -p mf.p;
Oracle Upgrades
This chapter provides a conceptual overview of needs and possibilities
for upgrading Oracle to a newer release. The following topics are
covered in this chapter:
Overview of Oracle Upgrades 128
Downgrading 132
128 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
Under normal circumstances, you will not need to recreate your database
when upgrading Oracle. However, in rare cases the use of pre-production
software may make this necessary.
Version Release
A version release upgrade changes the first digit of the release. For
example, an upgrade from Oracle Version 7 to Oracle 8 is a version
release upgrade.
ORACLE UPGRADES 129
Feature Release
A feature release upgrade changes the second digit of the release. For
example, an upgrade from Oracle 7 release 7.2 to Oracle 7 release 7.3 is a
feature release upgrade.
QAD Considerations
QAD publishes a release matrix that lists a number of supported
combinations of MFG/PRO and the Oracle database for each operating
system. Under all circumstances you should comply closely with this
release matrix because combining releases not specifically tested and
certified may cause trouble. For example, QAD has certified 7.2.3 and
7.3.2, but not 7.2.4 and 7.3.1, so it is safe to upgrade Oracle from 7.2.3 to
7.3.2, but you should not upgrade from 7.2.3 to 7.2.4 or to 7.3.1.
As a general rule, you can safely do maintenance release upgrades of
supported versions. You can also do feature release upgrades if you
exercise caution. However, do not perform Oracle version release
upgrades unless specifically supported by QAD. When in doubt, always
contact your QAD support representative before doing an Oracle upgrade.
130 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
Upgrading Possibilities
Oracle upgrades are described in detail in the Oracle Server Migration
manual, which you should always use as a reference. All upgrades
generally involve two necessary steps:
1 Software upgrade, in which you either overwrite your existing
software with a new release or install a new release next to the
previous one.
2 Database upgrade, which can involve different steps such as running
a migration utility or special SQL scripts.
Backward Compatibility
The Oracle release mechanism lets you upgrade or downgrade if
necessary. If you are upgrading to solve specific problems or to obtain
specific performance benefits, and you are not using any new features,
Oracle is backward compatible with the previous release. Thus, you can
downgrade to your previous release should you require this. If you want
to enable new features of the new Oracle release, you must explicitly
specify this using the compatible parameter of the init<SID>.ora
file.
Patch Installation
Patches (changes to the fourth or fifth digit) normally involve the
following steps:
1 Database shutdown and backup.
2 Installation of the patch, typically using a script delivered with the
patch.
3 Start up the database.
ORACLE UPGRADES 131
Downgrading
For some upgrade scenarios, Oracle ensures backward compatibility so
that under certain conditions you can undo a software upgrade. This is
controlled using the compatible parameter in the init<SID>.ora file.
By default, backward compatibility is guaranteed as far back as possible,
and this implies that certain features of newer releases are not
immediately available. Once made available by means of the
compatible parameter, you can no longer perform a downgrade.
InstallDir (variable name). The directory Oracle Instance Directory. The primary
name where you are installing MFG/PRO. To instance directory containing key files such as
distinguish between the installation directory init.ora and key subdirectories, such as ./back,
of one version and another, this variable is ./core, and ./user.
sometimes set, for example, to ver74dir and
ORACLE_SID. The environment variable that
ver90dir. Note that the installation directory
defines the system ID for your new Oracle
should be different than the directory where
database. In most cases, it should be the same
you create your production databases.
as the actual Oracle database name.
Instance. A mechanism for accessing and
PRO*C. A C-language library that contains the
controlling an Oracle database. It is composed
standard Oracle Call Interface (OCI) and
of a shared memory area and a set of processes.
becomes part of the DataServer when you build
Instance Directory. See Oracle Instance it.
Directory.
Record. PROGRESS’s term for an entry in a
LanguageCode (variable name). Identifies table; Oracle’s term is row.
the language code(s) in a multi-language
Row. Oracle’s term for an entry in a table;
release.
PROGRESS’s term is record.
languageDir (variable name). A directory
Schema Holder. A special type of
containing language-specific files such as
PROGRESS database that has no data, only
programs and help. The directory is named
database definitions. Because PROGRESS
after the language code.
client sessions can access the schema holder in
Limited Release. A new release of MFG/PRO read-only mode, you do not need the
that is available only as a standard version, PROGRESS RDBMS license.
which has undergone beta testing.
SchemaHolderName (variable name).
Multi-Language Release. A release that The name of your production schema holder.
supports multiple languages, which may The default name is oraempty.
include US English. The US English version in
Schema Update (Major Update). CRCs and
a multi-language release is distinct from the
timestamps are affected by these major
standard release. When you install a multi-
changes: new files/fields/indexes, modified
language release, you must specify a language
indexes, changes of field type, changes of field
code for every language, including English.
order. All programs must be recompiled.
NewDirectory (variable name). The name of a
Schema Update (Minor Update). CRCs and
new directory
timestamps are unaffected by these minor
Oracle Database. For the purposes of this changes only: modifications of formats, labels,
manual, this term refers to a logical set of and validation expressions/messages. All
schema objects owned by a particular Oracle programs must be recompiled to see the effect
user. of minor changes.
OracleDBName (variable name). The name of SID. See ORACLE_SID.
your new, unique Oracle database.
GLOSSARY 135
SQL. Structured Query Language used by Update. Refers to the transition from one
Oracle. QAD provides SQL files to set up the lettered release to the next, such as MFG/PRO
Oracle database(s) and load the Oracle schema 8.6B to 8.6C. Updates involve program fixes
objects. and some minor schema changes. (Transitions
between numbered releases, which can involve
Tablespace. A segment of data in the Oracle
major schema changes, are called conversions.)
database.
YourTapeDevice (variable name). The tape
TerminalType (variable name). The terminal
drive from which you will load the MFG/PRO
type of the workstation or PC from which you
files. For example, it might be /dev/rmt/0.
are performing the installation steps.
YourCDDevice (variable name). CD from
which you will load the MFG/PRO files. For
example, it might be /dev/sr0.
136 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX
Index
A F
archive log files 22 file server load 82
B G
buildenv script 45 gui database for additional language 106
building DataServer 45
H
C hardware sizing 18
central processing unit (CPU) sizing 24 help data load 76
client monitors 24 help for additional language 106
client PC configuration 88 historical data disk requirements 22
client/server UNIX installation 49
compiling for DEC Alpha 109 I
concurrent users 13, 19 installation
configuring client PCs 88 overview 48
configuring the database set 66 summary 6
conventions 3
conversion L
summary 6 language
cross-reference data load 77 adding 101
license registration 75
D link scripts
database administration 114 troubleshooting 45
database set loading additional language 102
configuring 66 loading cross-reference data 77
Windows configuration 88 loading online help 76
database sets loading system data 71
overview 11 loading Windows media 82
DataServer log files, MFG/UTIL 10
building components 43
DEC Alpha compilation 109 M
disk drive requirements 21 memory requirements 18
disk spindles 24 MFG/PRO
document conventions 3 startup 74
MFG/UTIL
E log files 10
express setup 99 starting 51, 57
system administration 115
138 MFG/PRO INSTALLATION GUIDE — ORACLE ON UNIX