[Contents] [Index] [Info] [Previous] [Next]

CHAPTER 1. Preparing for Installation

"Would you tell me, please, which way I ought to go from here?" "That depends a good deal on where you want to get to," said the Cat.

Lewis Carroll, Alice's Adventures in Wonderland

This chapter describes the steps you must perform before installing your Oracle products. The following topics are presented:

New Features

Oracle7 Alpha OpenVMS Version 7.3.3 provides the following new features:

Advanced Networking Option (ANO)

ANO is distributed as part of the Oracle7 Alpha OpenVMS 7.3.3 release.

Note: A separate license is required to use ANO.

In addition to the SecurID and Kerberos5 authentication adapters that were previously supported by ANO, the Identix (Biometric) authentication adapter is now also supported.

Additional Information: Refer to Chapter 7 in SQL*Net for OpenVMS Configuration and User's Guide, Version 2.3.3 (part number: A55207)

Bequeath Listener

A new mechanism for the bequeath adapter is implemented. This mechanism uses the new Bequeath Listener, which is a detached process that runs under a privilege account and serves as an interface between the client process and the server process.

Additional Information: Refer to Chapter 3 in SQL*Net for OpenVMS Configuration and User's Guide, Version 2.3.3 (part number: A55207)

Changes and Enhancements from Previous Versions of SQL*Net

The lists of changes and enhancements implemented in SQL*Net Version 2.3.3 are specified in Appendix A of the SQL*Net for OpenVMS Configuration and User's Guide, Version 2.3.3 (part number: A55207).

The enhancements are the following:

Additional Information: Refer to Appendix A in SQL*Net for OpenVMS Configuration and User's Guide, Version 2.3.3 (part number: A55207)

ConText Option

ConText Option is an Oracle server option that enables text queries to be performed through SQL and PL/SQL from most Oracle interfaces.

By installing ConText Option with an Oracle server, client tools such as SQL*Plus, Oracle Forms, and Pro*C are able to retrieve and manipulate text in an Oracle database. Most tools that can call an Oracle stored procedure can perform text queries and other text operations.

ConText Option manages textual data in conjunction with traditional datatypes in an Oracle database. When text is inserted, updated, or deleted, ConText Option automatically manages the change.

Additional Information: See Chapters 3 and 4 and Appendix A

Additional Information: Refer to documentation for ConText Option 2.0.4 for Oracle7 Version 7.3.3

Single Network Management Protocol (SNMP)

SNMP is supported by using Oracle Intelligent Agent (Agent) as an Oracle subagent.

Additional Information: Refer to Chapter 6 in SQL*Net for OpenVMS Configuration and User's Guide, Version 2.3.3 (part number: A55207)

Installation Prerequisites

This section lists the requirements needed for installation:

Note: Oracle software is not interchangeable between VAX OpenVMS and Alpha OpenVMS. In addition, note that object files, object libraries, and executables are larger on Alpha OpenVMS than they are on VAX OpenVMS.

Time Requirements

Installation time varies depending on the number of products being installed and the type of hardware being used. Typical installation times are 1 to 3 hours.

Hardware Requirements

The hardware required to run Oracle7 for Alpha OpenVMS, Version 7.3.3 is the following:

The following table shows additional hardware that is needed to run specific Oracle7 products:

Oracle7 Product Hardware Required
Oracle Server Manager (GUI interface) Bitmapped display running Motif
National Language Support (NLS) Native language fonts and keyboard

Disk Space Requirements

A client-only install requires approximately 221,000 disk blocks. A server install requires approximately 1,140,000 disk blocks (this includes a default 60 MB database).

Note: 1 OpenVMS disk block = 512 bytes.

Images

Eight shared images that are linked with client code are built and installed when you link the Oracle7 Server. The new shared images reduce the size of all Oracle executable images (including precompiled user programs) by removing direct references to SQL*Net and other common routines.

The image names are in the form of: UPISHR<imageid>.EXE, UPISHR<imageid>_64.EXE, SQLLIBSHR<imageid>.EXE, CORE<imageid>.EXE, CORE<imageid>_64.EXE, ORACLE<imageid>.EXE, ORACLE<imageid>_64.EXE, and SRV2.EXE, where <imageid> is the same as the identifier appended to the end of the Oracle shared image.

When the image names are installed, they have the logical names: UPISHR<imageid>, UPISHR<imageid>_64, SQLLIBSHR<imageid>, CORE<imageid>, CORE<imageid>_64, ORACLE<imageid>, ORACLE<imageid>_64, and SRV2, where <imageid> is the same as the identifier appended to the end of the Oracle shared image.

The command procedure INSORACLE.COM installs these images along with the shared RDBMS image; REMORACLE.COM removes them.

Software Requirements

This section describes the minimum software requirements.

Operating System

The required operating system is OpenVMS Version 7.1.

SQL*Net 2.3 Requirements

To use SQL*Net 2.3 with DECnet or TCP/IP on OpenVMS, you must have one of the following network protocol services installed:

Protocol Service Earliest Supported Version Latest Certified Version
DECnet Phase IV same version as your OS same version as your OS
DECnet-Plus 7.1 7.1
DEC TCP/IP Services (formerly UCX) 4.0 4.0
TGV MultiNet TCP/IP 4.0 4.0
TCPware for OpenVMS 5.1 5.1
Vendor-provided protocol services are usually upward-compatible, so that existing applications will continue to work without modification. Thus, later versions of DECnet and TCP/IP are upward compatible with SQL*Net, provided that the vendor-specified Application Programming Interface (API) does not change with new releases.

Note: Pathway 3.0 from Attachmate is supported with SQL*Net 2.3.3.

Testing Network Configuration

Before installing SQL*Net on your system, verify that your network protocol is functioning properly and that your communications hardware and software ARE installed correctly.

To Test DECnet:

Use the SET HOST command to connect to another node on the network:

$ SET HOST <nodename> 

where <nodename> is the name of the host system to which you are trying to connect. Log on by providing a valid username and password. If this command works, DECnet is working.

Additional Information: For more information, see the DECnet for OpenVMS Guide to Networking. If you are unable to initiate a remote session, contact your system administrator to ensure that the remote node is defined and that the network is functioning properly.

To Test TCP/IP:

If you use the TCP/IP protocol, run the TCP/IP system test to verify that the communications hardware and software are working correctly. You can use either the TELNET or PING TCP/IP procedure to do this.

TELNET connects to the target system, and PING tests the remote host to see if it is responding. The following syntax is used for the commands where <host_name> is the server (defined in the HOSTS file) whose connection you want to test.

$ TELNET <host_name> 
$ PING <host_name>  

For example, if you enter the following line from an OpenVMS server, you should receive a "Username" prompt for logging onto the host HQVMS.

$ TELNET HQVMS  

If you receive this prompt, the hardware and software are working. Use [CTRL-Z] to cancel the logon procedure and return to the DCL prompt. If you receive an error message, consult your vendor documentation or your vendor customer support service.

If you enter the following line, you should receive the message "HQVMS is alive," usually within 20 seconds.

$ PING HQVMS   

Note: TCP/IP can be installed without TELNET support. If TELNET does not work, consult your system administrator. TELNET does not need to be installed for Oracle products to work. Some TCP/IP vendors may not supply a PING command directly. For instance, if you are using Digital TCP/IP Services for OpenVMS, you would first have to define PING as:

$ PING :== UCX PING

before giving the $ PING HQVMS command previously specified.

SQL*Net VMS Mailbox Driver

The SQL*Net VMS Mailbox driver is included in NETCONFIG. You do not need a SQL*Net license to use the VMS Mailbox driver.

Programmatic Interface Support

The following DEC compilers were used to certify the programmatic interfaces:

Programmatic Interfaces Certification Version
Pro*Ada DEC Ada V3.0
Pro*C and SQL*Module for C DEC C Version 5.5
DEC C++ Version 5.3
Pro*Cobol DEC COBOL V2.0
Pro*Fortran DEC Fortran V6.1
Pro*Pascal DEC Pascal V5.1
Pro*PLI DEC PL/I V4.0

Product Dependencies

Some Oracle products depend on other Oracle products to work properly. Use the following tables to determine the product dependencies. This section has the following subsections:

Products That Require Other Products

In the following cases, you need to install the required product before or at the same time you install the product that requires it.

If you want to install then you need to install
Any Oracle product UTIL and NETCONFIG
Server Manager UTIL and NETCONFIG Motif 1.2-4 to use the GUI Version
Oracle7 Server UTIL, NETCONFIG, and Server Manager
Oracle recommends that you build the products at the same time in order to save time. You must also make sure to configure the product to include (or link against) the dependent product and vice versa.

Note: To install NLS, build all Oracle products first. Then install NLS. The product directories must exist before NLS message files can be copied into them.

Important Compatibility Issues

Warning: If you are upgrading to Oracle 7.3.3 from Oracle 7.1.5, ensure that you have no Oracle symbols and logicals defined prior to installing Version 7.3.3. DO NOT run any Version 7.1.5 ORAUSER_<dbname>.COM scripts as part of your login sequence. Failure to heed this warning will result in numerous problems, including undefined symbols and overwriting the Version 7.1.5 code tree.

Review the compatibility issues given in this section:

If you are upgrading one or more databases that were created under a version prior to Version 7.1.5, you must edit the ORA_DB_<dbname>.COM and ORAUSER_<dbname>.COM to change several logical name definitions. Starting with Version 7.1.5, several Oracle logical names were moved from the process logical name table to the job logical name table.

Change the following logical names by appending the /JOB qualifier to the appropriate DEFINE commands in the following command procedures:

In ORA_DB_<dbname>.COM:

ORA_DB

ORA_CONTROL1

ORA_CONTROL2

ORA_PARAMS

ORA_INITSQL

ORA_ARCHIVE

In ORAUSER_<dbname>.COM:

ORA_SID (two occurrences)

ORA_INSTANCE

ORA_DUMP

Configuration Restrictions and Lifting of a Restriction

This section lists restrictions and a lifted restriction for Alpha OpenVMS at this time.

Restrictions

The following areas have restrictions on Alpha OpenVMS:

Copying Oracle Executables

Moving executables from one OpenVMS machine to another is not recommended due to the usage of shared libraries and the difficulty of ensuring valid referencing. Therefore, the recommendation is to relink executables.

Posix

Oracle7 is not supported under the Posix shell on OpenVMS.

Lifted Restriction - Operating System Upgrades

The requirement for relinking on a nominal upgrade or patch is now unnecessary, because everything now stays in shared libraries.

SQL*Net Linking Options

Oracle7 Server Release 7.3 only supports two-task configurations.

SQL*Net Version 2.3 provides the following adapters:

Guidelines

Keep the following guidelines in mind when linking SQL*Net:

The following table shows the range of use for SQL*Net drivers in client/server and distributed database configurations. This table assumes that clients in a client/server configuration run the Oracle tool and that servers run the Oracle database. For distributed database examples, the clients and servers both run an Oracle tool and the Oracle database.

Client/Server Distributed DBMS
Client Tool RDBMS Server Client Server
SQL*Net DECnet Yes Yes Yes Yes
SQL*Net TCP/IP Yes Yes Yes Yes
SQL*Net OpenVMS Mailbox Limited* Limited* Limited* Limited*
*Only for communication between products on the same machine.

Installation Procedure Requirements

Be sure to be aware of the installation procedure requirements given in this section.

Oracle Server Database Administrator Account

Create an OpenVMS user account to administer the Oracle7 Server installation and maintenance or modify your existing Oracle7 user account to meet the account quotas and privileges specified in this guide.

Setting up an Oracle7 account is the same as setting up any other OpenVMS user account. The following are the steps to set up an Oracle7 account:

Note: The Oracle7 account's use of OpenVMS resources affects other user processes. Before setting up an Oracle7 account, you should thoroughly understand the reasons for changing system resources at your site.

Additional Information: See Digital's VMS Authorize Utility Manual for more information about running the AUTHORIZE utility.

Deciding Account Information

To add an account, you must supply the following information:

Although this guide refers to this account as the Oracle7 account, you can assign any name or number to the account with the UIC restrictions noted below.

The Oracle7 account will own the runtime libraries and executable images for every Oracle product. Therefore, the database administrator (DBA) should manage this account and install all Oracle products from it.

Oracle7 Account is NOT the SYS or SYSTEM Account

In the Oracle7 Server Administrator's Guide, the Oracle7 account is sometimes referred to as the DBA account. The Oracle7 account is not the same as the SYS or SYSTEM database usernames that are created for every database; it is an OpenVMS account name.

Oracle7 Account UIC Must Be Greater than MAXSYSGROUP

The UIC GROUP number of the Oracle7 account must be greater than the system parameter MAXSYSGROUP (which defaults to octal 10). GROUP numbers 1 through MAXSYSGROUP are reserved for use by the OpenVMS operating system itself. If the UIC GROUP number is not greater than the system parameter MAXSYSGROUP, the Oracle7 account cannot issue the following commands:

If your Oracle7 account has a UIC group number that is less than MAXSYSGROUP, you must create a new account with a UIC group number higher than MAXSYSGROUP before you install Oracle7.

Finding MAXSYSGROUP

The following command gives the value of MAXSYSGROUP:

$ WRITE SYS$OUTPUT F$GETSYI("MAXSYSGROUP")

Adding a Record in the User Authorization File (UAF)

Use the AUTHORIZE utility to create or modify records in the User Authorization File (UAF):

	$ SET DEFAULT SYS$SYSTEM
	$ RUN AUTHORIZE 

	UAF> ADD ORACLE7 /PASSWORD=ORACLE/UIC=[277,100]-
	  /DEVICE=<device>/DIRECTORY=[ORACLE7]/OWNER="ORACLE DBA"

In this example, the account name is ORACLE7. Note that the UIC GROUP number is 277. The UIC GROUP number must be larger than MAXSYSGROUP.

After adding the account, you must alter the account privileges and quotas. Although this can be done in any order, usually the account privileges are set before the account quotas.

See Also

For more information on using AUTHORIZE, see the chapter on "Managing User Accounts" in Digital's OpenVMS System Manager's Manual.

Setting Account Privileges

The following privileges are required as both authorized and default privileges for the Oracle7 database administrator account:

Note: An exception is explained in "Security Issues with Multiple Databases."

Note: Appendix B has additional information explaining the meanings of the privileges.

Use the AUTHORIZE utility to set the account privileges for the Oracle7 database administrator's account.

At the UAF prompt, use the MODIFY command to add the required default and authorized privileges as follows:

UAF> MODIFY ORACLE7 -
/PRIVILEGE=(CMKRNL,NETMBX,PFNMAP,PRMGBL,PRMMBX,SYSGBL, -
  SYSNAM,TMPMBX,IMPERSONATE,DETACH,LOG_IO,WORLD,SYSLCK) - 
/DEFPRIVILEGE=(CMKRNL,NETMBX,PFNMAP,PRMGBL,PRMMBX,SYSGBL -
  SYSNAM,TMPMBX,IMPERSONATE,DETACH,LOG_IO,WORLD,SYSLCK)

Setting Account Quotas

You use the AUTHORIZE utility to change account quotas to accommodate the requirements of your Oracle7 installation.

Modifying the Default Quotas

After adding a record with the default quotas, use the MODIFY command to alter the default values. The following example changes the Enqueue quota (ENQLM) from the default to 150:

UAF> MODIFY ORACLE7/ENQLM=150  

Process Quotas

The following table lists the Oracle7 account quotas, their minimum recommended values, and their equivalent OpenVMS quota names as displayed by the DCL commands SHOW PROCESS/QUOTA and SHOW WORKING_SET.

Note: These quotas depend on the number of logfiles, the number of databases, the number of network connections, and other variables on your system. You might need to customize them.

Account Quotas Minimum Value Quota Name
ASTLM 250 (the default) Asynchronous System Trap limit
BYTLM 150,000 Buffered I/O limit
ENQLM 2000 (the default) Enqueue quota
FILLM 100 Open file quota
JTQUOTA 8192 Job table quota
MAXDETACH 0 (the default) Max detached processes
MAXJOBS 0 (the default) Max active jobs
PGFLQUO 250,000 Paging file quota
WSEXTENT 8192 Working set extent
WSDEFAULT 2048 Working set limit
WSQUOTA 4096 Working set quota
Note: Appendix B has additional information explaining the meanings of the quotas and how to determine their values.

Process Rights for Database Administrators

The Oracle Server Database Administrator account must be granted one or more process rights identifiers. These identifiers provide the ability to issue the CONNECT INTERNAL command that is required to perform database administration functions. The following table displays the combinations of adding and granting rights identifiers to this account:

Adding... and Granting... Allows Control of...
ORA_DBA ORA_DBA Any database instance (provided it does not also have an ORA_<sid>_DBA identifier defined for it)
ORA_<sid>_DBA ORA_<sid>_DBA Database instance <sid> only
ORA_<sid>_DBA ORA_DBA All database instances except <sid>
For example, to grant the ORA_<sid>_DBA rights identifier to the Oracle7 account for an instance called TEST, issue the following command:

	UAF> ADD/IDENTIFIER ORA_TEST_DBA  

Then grant the rights identifier to the Oracle7 account as follows:

	UAF> GRANT/IDENTIFIER ORA_TEST_DBA ORACLE7  

If you add the ORA_TEST_DBA rights identifier, but grant only ORA_DBA to ORACLE7, the account would have insufficient privileges to administer the instance TEST.

The third line of the table shows that you can add and grant different identifiers, thereby restricting control of a particular instance while still granting control to other instances.

You can grant database maintenance privileges (for example, privileges to start up and shut down the database) to accounts in addition to the Oracle7 account. (However, as with the Oracle7 account, the user's UIC GROUP number must be greater than MAXSYSGROUP.) By granting the ORA_<sid>_DBA identifier, you can similarly restrict a user's privileges to an instance named <sid>.

Process Rights for SGA Protection

Versions of Alpha OpenVMS after Version 7.3.2.3.0 feature a change in the way the software runs and accesses the SGA. Previous to Version 7.3.2.3.2, the SGA was protected by allowing only processes running in supervisor mode to access it directly. The SGA is protected by an Access Control List to accommodate the kernel remaining in user mode.

Before bringing up a database later than 7.3.2.3.0, add a rights identifier to the User Authorization File (UAF). Have your system manager follow these directions.

At the UAF> prompt, type:

UAF > ADD/IDENTIFIER ORA_SGA

Warning: DO NOT GRANT THE RIGHTS IDENTIFIER TO ANY USER. Oracle takes care of assigning it when it starts the database.

Process Rights for Intelligent Agent

To install the Intelligent Agent, you must add the ORA_AGENT_ID identifier to your system before starting the install. Use the following:

UAF > ADD/IDENTIFIER ORA_AGENT_ID

All users that will submit jobs to the Intelligent Agent must have ORA_AGENT_ID. Use the following:

UAF > GRANT/IDENTIFIER ORA_AGENT_ID <user name>

Security Issues with Multiple Databases

If your site has several databases managed by different DBAs, you might not want to grant the CMKRNL privilege to every DBA's Oracle7 account. This privilege allows a DBA to activate any process rights identifiers and install shared images.

For security reasons, Oracle Corporation recommends that the OpenVMS system administrator handle these tasks. This person should be responsible for starting Oracle7 instances from a controlled account with a UIC group greater than MAXSYSGROUP. If this is not possible, at least one Oracle7 database administrator must have the CMKRNL privilege.

Completing Account Set Up

Exit the AUTHORIZE utility.

If the user account that you modified was logged on at the time, this user must log out and log back in before the changes take effect.

Verifying Privileges

Use the following command to verify that your account has the correct privileges and rights identifiers:

$ SHOW PROCESS/PRIVILEGE   

OpenVMS SYSGEN Parameters

Before installing the Oracle products, you need to set the required OpenVMS SYSGEN parameters. If you are using the Oracle server in parallel mode, you must set additional parameters. This section also describes how to use the OpenVMS AUTOGEN utility to set the OpenVMS SYSGEN parameters.

You can display the current values of SYSGEN parameters from the DCL command line. For example, to determine the current setting of GBLPAGES, issue the following command:

$ WRITE SYS$OUTPUT F$GETSYI("GBLPAGES")

Required OpenVMS SYSGEN Parameters

This section explains how to set OpenVMS SYSGEN parameters.

If you use Oracle7 in exclusive mode (the default), you only need to set the three parameters described in Step 2 in this section. If you use Oracle7 in parallel mode, you must also set the parameters described in the next section, "Parallel Mode Parameters".

For each installed Oracle7 shareable image, do the following:

Required OpenVMS Parameter Current Value
GBLPAGES
GBLSECTIONS
MAXBOBMEM

Parameter Minimum Value Needed by Oracle7
MIN_GBLPAGES <gblpages> + (22,000 * <code trees>) +
(2 * <total SGA size>)
MIN_GBLSECTIONS <gblsections> + (23 * <instances>)
MIN_MAXBOBMEM <gblpages> + (22,000 * <code trees>) +
(2 * <total SGA size>)
where:

<gblpages> Is the current value of the GBLPAGES parameter.
<gblsections> Is the current value of the GBLSECTIONS parameter.
<instances> Is the number of instances.
<code trees> Is the number of copies of the Oracle Server installed on your system.
<total SGA size> Is the total size (in kilobytes) of all SGAs of all instances on the node.
Caution: Both the buffer object memory space and the global pages space can become fragmented. For example, if you sequentially do the following, this startup may fail: (1) start an instance with a moderate size SGA; (2) start an instance with a small SGA; (3) delete the first instance; and then (4) attempt to start an instance with a large SGA. The SGA for the second instance started may fragment the global page table. Be sure to consider this issue when selecting the order of instance startup and the sizes of the MIN_GBLPAGES and MIN_MAXBOBMEM sysgen parameters. Increasing these values will increase the chances that a sufficient contiguous block will be available to start an instance.

If Oracle is unable to create the buffer object at startup, it will be unable to use OpenVMS Fast I/O. In this case, the instance will startup and the following message will appear in the Alert Log:

** Unable to create SGA Buffer Object - Fast I/O will not be used. non-fatal error = <OpenVMS error code> **

The following examples show how to calculate the number you need to add to GBLPAGES to get the value of MIN_GBLPAGES.

Example 1:

One Oracle code tree (single ORA_ROOT) supporting two single-instance databases with SGAs of 10 MB and 20 MB respectively:

(22,000 * <code trees>) + (2 * <SGA size>) =

(22,000 *  1) + [2 * (10,000 + 20,000)] = 82,000 contiguous pages

Example 2:

A development code tree supporting a single-instance default database with an SGA of 30 MB and a production code tree supporting two databases. The first production database has a single instance on this node with an 8 MB SGA. The second production database has two instances on this node, each having a 15 MB SGA:

(22,000 * <code trees>) + (2 * <SGA size>) =

(22,000 * 2) + [2 * (30,000 + 8,000 + 15,000 + 15,000)] = 
44,000 + (2 * 68,000) =
180,000 contiguous pages

Changing the Size of the SGA

If you alter the size of the SGA (by changing the INIT.ORA file), remember that every 1 KB of SGA space requires two free contiguous global pages. For example, if you have a 5 MB SGA, you need 10,000 free contiguous global pages for the SGA. Therefore, the installation needs 10,000 plus 22,000 = 32,000 contiguous global pages.

Additional Information:

For more information about the SGA, see the Oracle7 for OpenVMS Server and Tools Administrator's Guide.

Parallel Mode Parameters

If you plan to use Oracle7 in parallel mode, there are at least five SYSGEN parameters in addition to the required SYSGEN parameters: GBLPAGES, GBLSECTIONS, and MAXBOBMEM that you might need to increase. The parallel mode SYSGEN parameters must be sufficient to handle the additional locks you use in parallel mode. You must modify the SYSGEN parameters on each node.

The following sections describe how to calculate and how to estimate the SYSGEN parameters for running in parallel mode:

Calculating New Parameter Values

The formulas for modifying the OpenVMS SYSGEN parameters use the following variables:

<current_val> Current value of parameter
<total_instances> Number of instances in the cluster
<locks> Number of locks (described below in Step 1 of "Estimating SYSGEN Parameters and Locks")
<n> An integer (2 or greater)
On every node running in parallel mode, modify the OpenVMS SYSGEN parameters as follows:

SYSGEN Parameter How to Calculate
LOCKIDTBL <current_val> + ( <locks> * <total_instances> )
LOCKIDTBL_ MAX ( <n> * LOCKIDTBL ) + 1
LOCKDIRWT Depends on system type and lock manager activity.
NPAGEDYN <locks> * 384
NPAGEVIR <locks> * 384
To apply these formulas, supply the number of instances based on your configuration. To do this, you must calculate the number of locks and estimate the LOCKDIRWT parameter. The following section describes how to determine these values.

Estimating SYSGEN Parameters and Locks

The OpenVMS distributed lock manager uses system resources to allocate locks and to maintain consistent lock information for an OpenVMS Cluster system. Therefore, you cannot really determine the number of locks until you have set the SYSGEN parameters.

To do this, you must make an initial estimate of SYSGEN parameter values, start a database instance, and then check if the number of locks is sufficient. If the number is not sufficient, shut down the database and perform the procedure again with different SYSGEN parameters.

Summary

The following is a summary of the process:

Detailed Steps

The following section describes the details of this process.

Step 1

Set your SYSGEN parameters by estimating the number of locks your system will use. The number of locks depends on certain database parameters, specifically on those that begin with GC_ (henceforth referred to as GC_*).

Note: Database parameters and SYSGEN parameters refer to different things. Database parameters are those that are found in files such as INIT.ORA and INITPS.ORA.

The GC_* parameters directly affect OpenVMS distributed lock manager use. For most systems, buffer management locks (GC_DB_LOCKS) are the largest contributor to the lock manager locks and resources that Oracle7 uses in parallel mode.

Note: Make sure that you conserve and partition locks across files. Refer to the Oracle7 Parallel Server Concepts and Administration for more information about using locks across files.

The GC_* parameters, in turn, vary depending on the size of your system. You can check the INITPS.ORA file to see suggested values for these parameters for small, medium, and large SGAs. Large GC_* values accommodate most Oracle7 systems and should not be increased.

Step 2

Using the number of locks you estimated in Step 1, determine an estimated value for the SYSGEN parameters. Refer to the previous table for formulas. You also need to supply the total number of instances that your system will be running.

Step 3

The LOCKDIRWT SYSGEN parameter affects the number of lock manager directory entries maintained by a given node. This value depends on the type of system and the amount of lock manager activity on each node in the OpenVMS Cluster environment. Refer to Digital OpenVMS documentation for appropriate values of LOCKDIRWT, and consider its impact on Oracle7 (and any other applications that use the lock manager).

Step 4

To determine the number of locks your system is using, enter the following line:

$ MONITOR LOCK  

The number you want appears in the "Current value" field of the row entitled "Total locks."

To determine the number of locks used clusterwide, use the MONITOR DLOCK command. To get more information on locks, use the $GETLKI system service in your own program.

Step 5

When you are satisfied with your estimated SYSGEN parameters, start the database in parallel mode and repeat Step 4. This gives you a higher value for the number of locks. The difference between the two values tells you the approximate number of locks that Oracle7 by itself uses.

Step 6

Check whether your estimated SYSGEN parameters provide sufficient system resources to run Oracle7. That is, substitute the number of Oracle7 locks (from Step 5) back into the SYSGEN parameter formulas. If the new calculations produce much higher numbers, increase the SYSGEN parameters accordingly.

Using the Reserved Memory Registry

Through its interface within the SYSMAN utility, the Reserved Memory Registry allows an Alpha OpenVMS system to be configured with large amounts of memory set aside for use within memory-resident global sections. The AUTOGEN utility considers the preallocated reserved memory when it tunes the system.

The advantages to reserving memory for an SGA are as follows:

To reserve memory for an SGA, use the SYSMAN utility. The size qualifier is specified in megabytes. For example, to reserve memory for a 6 GB SGA for the SID named VLM1, use the following commands:

$ MCR SYSMAN
SYSMAN> RESERVED_MEMORY ADD ORA_VLM1_SGA/SIZE=6144/ALLOCATE/ZERO/PAGE
SYSMAN> EXIT

Note: 1 GB = 1024 MB

Then run AUTOGEN and reboot the system to allow AUTOGEN to adjust other system parameters for the reduced amount of memory available to the rest of the system.

Memory for multiple SGAs may be reserved. Any change to the name or size of a piece of reserved memory may require rebooting the system. During instance startup, Oracle compares the size of the reserved memory, if any, with the size of the SGA. If appropriate, one of the following messages will be included in the Alert log:

** Reserved memory size = <size> greater than created SGA size = <size>** ** Please reduce reserved memory size to avoid wasting memory. **

** Memory was not reserved for the SGA. SGA size = <size> ** ** There might be performance advantages to allocating memory for the SGA in the VMS reserved memory registry. **

If memory is reserved for an SGA but not enough memory is reserved, the instance startup will fail. In this case, the amount of reserved memory should be adjusted, AUTOGEN should be run, and the system should be rebooted. For example, to expand the SGA to 6.5 GB for the VLM1 instance, use the following commands:

$ MCR SYSMAN
SYSMAN> RESERVED_MEMORY REMOVE ORA_VLM1_SGA
SYSMAN> RESERVED_MEMORY ADD ORA_VLM1_SGA/SIZE=6656/ALLOCATE/ZERO/PAGE 
SYSMAN> EXIT

Then run AUTOGEN and reboot the system.

To avoid rebooting the system, SYSMAN can be used to free the memory reservation. Then you may start the instance. The risk is that the system may not have enough fluid pages to create the SGA. Also, the performance advantages of using reserved memory are not available.

Additional Information: See OpenVMS Alpha Guide to 64-Bit Addressing and VLM Features for more information about the reserved memory registry.

Using AUTOGEN

Because SYSGEN parameters affect the entire operating system, your system administrator is the only person who should modify them. Of course at some sites, the DBA and system administrator may be the same person. In this section, we assume we are addressing the system administrator.

For setting or modifying SYSGEN parameters, OpenVMS provides the AUTOGEN utility. You can also use SYSGEN, but this is an older utility whose use is discouraged, except perhaps for checking current values. You must have SYSPRV or BYPASS privilege to run these utilities.

AUTOGEN provides a permanent way of setting parameters, and it documents all changes. AUTOGEN also lets you recalculate any parameters that depend on other parameters you might have changed. Remember to record parameter values before changing them, and determine beforehand what results you expect from your changes. If the expected changes do not occur, restore the old values before trying again.

	$ @SYS$UPDATE:AUTOGEN GETDATA AGEN$FEEDBACK.DAT

	$ @SYS$UPDATE:AUTOGEN SAVPARAMS GETDATA 

	MIN_GBLSECTIONS=300 
	MIN_GBLPAGES=30000  

	$ @SYS$UPDATE:AUTOGEN GENPARAMS REBOOT  

Warning: The REBOOT parameter in this example will cause the system to automatically reboot when the SYSGEN is complete.

See Also

For more information about using the AUTOGEN utility, see Digital's System Management Utilities Reference.

Migrating an OpenVMS 7.1.5 Database to 7.3.3

This section gives the information you need when migrating an OpenVMS 7.1.5 database to 7.3.3.

Note: You should perform a cold backup of your database and all associated datafiles before doing this migration.

Preparing Your 7.1.5 Database for Advanced Replication and Spatial Data

If you plan to configure the 7.3.3 RDBMS to run with Advanced Replication (AR), the SYSTEM tablespace will need to have a minimum of 20 MB of free space.

If you plan to configure the 7.3.3 RDBMS to run with Spatial Data (SD), the SYSTEM tablespace will need to have a minimum of 10 MB of free space.

Note: If you plan to configure both Advanced Replication and Spatial Data, you will need a minimum of 30 MB of free space.

The default size of the SYSTEM tablespace for 7.1.5 was 10 MB, which is insufficient to support AR and/or SD. You will need to add a datafile to the SYSTEM tablespace that is large enough to accommodate the increased requirements of 7.3.3. Please refer to the Oracle7 Server Administrator's Guide for instructions on how to add datafiles to a tablespace.

You must insure that the 7.1.5 database has at least 20 MB of free working space in the SYSTEM tablespace. The tablespace changes must be made in 7.1.5 before attempting to upgrade to 7.3.3.

The following SQL query will assist you in determining if you need to add a datafile to increase the size of the SYSTEM tablespace:

SELECT tablespace_name, file_id,
	COUNT (*) "PIECES",
	MAX(blocks) "MAXIMUM",
	MIN(blocks) "MINIMUM",
	AVG(blocks) "AVERAGE,
	SUM(blocks) "TOTAL"
	FROM sys.dba_free_space
WHERE tablespace_name = 'SYSTEM'
GROUP BY tablespace_name, file_id;

TABLESPACE_NAME --------------- FILE_ID ------- PIECES ------ MAXIMUM ------- MINIMUM ------- AVERAGE ------- TOTAL -----
SYSTEM 1 row selected. 1 1 4891 4891 4891 4891
This SQL statement shows free space in ORACLE blocks. Therefore this database would require additional tablespace.

Please refer to the Oracle7 Server Administrator's Guide for instructions on how to manage tablespaces.

Modifying 7.3.3 Installation Files to Access 7.1.5 Databases

To assist your database migration, we are supplying a DCL script, MIGRATE715.COM, that will prompt for information about your 7.1.5 database.

Note: The following assumptions must be met for MIGRATE715.COM to be usable:

Note: If you are not using ORACLEINS to manage databases, you will need to perform the necessary modification to your database scripts to point to the 7.3.3 ORA_ROOT. Note that ORA_ROOT is now defined in the JOB logical name table, and not in the PROCESS logical name table, as it was defined in 7.1.5.

Please have the database name and the translation of the logical names ORA_ROOT, ORA_SID, and ORA_DB available.

The migration script, ORA_RDBMS:MIGRATE715.COM, must be run in the 7.3.3 code tree, with the 7.1.5 database shutdown. Before running this script, you must perform a complete cold backup against the database and all datafiles. Please refer to the Oracle7 Server Administrator's Guide for backup procedures.

The migration script will modify installation files in the 7.3.3 instance, and the ORA_DB directory of the database you are migrating. When this script finishes, your database will have its ORA_SID, database name, and location registered with the 7.3.3 instance. This involves updates to the following files:

ORA_RDBMS:ORA_RDBMS_SIDS.DAT
ORA_RDBMS:UPGRADE715.SQL
ORA_UTIL:DATABASE.TXT
ORA_UTIL:RDBMSDB_<ORA_SID>_<DATABASE_NAME>.FIG

The file, ORA_RDBMS:UPGRADE715.SQL, will be written while running the migration script. It will contain commands to install options selected during RDBMS configuration. If you change the RDBMS configuration, you must run appropriate SQL scripts to enable the option added. Please refer to the documentation regarding the installed option. For example, if AR was not configured at initial RDBMS build time and was added later, then you must run SVRMGR> @ORA_RDBMS:CATREP.SQL.

Update Data Dictionary

After running ORA_RDBMS:MIGRATE715.COM, the ORAUSER_<DBNAME>.COM script will be executed for your migrated database. At this point, you can start the server:

@ORA_DB:STARTUP_EXCLUSIVE_<DBNAME>.COM

After starting the server, you will need to complete the migration by running the ORA_RDBMS:UPGRADE715.COM. This script will execute the appropriate SQL scripts against the 7.1.5 database. When it succeeds, you will have migrated your 7.1.5 database successfully to 7.3.3.

Migrating to OpenVMS 7.3.3 from 7.3.2.2, 7.3.2.3.0, or 7.3.2.3.2

Warning: After you have installed 7.3.3, you MUST bring up Server Manager and run ORA_RDBMS:CATPROC.SQL IMMEDIATELY.


[Contents] [Index] [Info] [Previous] [Next]