skip book previous and next navigation links
go up to top of book: HP OpenVMS System Manager's Manual, Volume 1:... HP OpenVMS System Manager's Manual, Volume 1:...
go to beginning of chapter: Customizing the Operating System Customizing the Operating System
go to previous page: Customizing Startup Databases with SYSMAN Customizing Startup Databases with SYSMAN
go to next page: Customizing the Help Message DatabaseCustomizing the Help Message Database
end of book navigation links

Registering Images that Have System Version Dependencies  



Applications that run on the OpenVMS operating system sometimes depend on the internal interfaces of a previous version of the operating system. For example, an application might call system routines, reference system data cells, or system data structures. New versions of the operating system might include changes that can break applications depending on those interfaces.

Registering an image records information about the image in a file called the image registry. The image activator, INSTALL, and SYSGEN do not check the versions of images that are recorded in the image registry. Image registry allows you to continue to run application images (including main images, shared libraries, and device drivers) that depend on the internal interfaces of a previous version of the operating system.

The Image Registry facility allows you to register different versions of an image independently. It also allows you to deregister, analyze, and show images in the image registry.

Understanding System Version Dependency and the Image Registry  

Applications that depend on internal interfaces are bound to a particular version of the operating system when the application is linked. Version-dependent images reference both of the following version numbers:

When you attempt to run an image, the system checks to determine if the image requires a certain version of the operating system or of system components. If the version of the running system does not match the version requirements of the image, the image fails.

The system also checks version numbers when you attempt to install an image using the Install utility (INSTALL) or connect a device driver using the System Generation utility (SYSGEN).

When you upgrade your system to a new version of the operating system, an image might fail because the new version no longer matches the image's version requirements. However, an image might continue to be compatible with the new operating system version, even if it fails the version check.


NoteIn OpenVMS VAX Version 6.0, the major version number was not changed; only the version numbers for the following components were increased to reflect changes in these areas:
  • FILES_VOLUMES


  • MEMORY_MANAGEMENT


  • SECURITY
As a result, many version-dependent images built in VMS VAX Version 5.x systems (that is, images that do not reference FILES_VOLUMES, MEMORY_MANAGEMENT, or SECURITY) will run on OpenVMS Version 6.0 without registering the images. However, version-dependent images that do reference these components must be registered with the image registry, as explained in this section.

In OpenVMS VAX Version 6.1, no version numbers were changed. However, images built on VMS VAX Version 5.x systems needed to be registered if they referenced FILES_VOLUMES, MEMORY_MANAGEMENT, or SECURITY.


To continue running a compatible image, you can register the image using the Image Registry facility. You do not need to register images that are linked as part of the installation because they match the current operating system version. However, linking an image during installation does not ensure that system version dependencies do not exist. For information about changes in the current operating system version that might require you to recompile an image or change source code, see the release notes.
CautionYou must inspect and test an image carefully to avoid system crashes and data corruption. Registering an image does not necessarily make it work; registering only bypasses the version checks.

Using the Image Registry Facility   

To register an image in the image registry, run the command procedure SYS$UPDATE:REGISTER_PRIVILEGED_IMAGE.COM. Enter a command in the following format: $ @SYS$UPDATE:REGISTER_PRIVILEGED_IMAGE keyword filename

where:

keyword
Specifies one or more of the keywords described in REGISTER_PRIVILEGED_IMAGE.COM Keywords, separated by commas.
filename
Specifies the name and location of the image you want to register. The filename parameter accepts wildcard characters.

Table 3   REGISTER_PRIVILEGED_IMAGE.COM Keywords
Keyword Action
ANALYZE
Displays version-dependent image names and their subsystem dependencies.
REGISTER
Registers images on the local system.
DEREGISTER
Deletes images from the registry on the local system.
SHOW
Lists the registry content. To display the complete registry content, specify a wildcard (*) for the file name.
CONFIRM
Confirms that each specified image be added to or deleted from the registry (used only with REGISTER and DEREGISTER).
TRACE
Lists each image file for verification purposes (used only with REGISTER and DEREGISTER).
HELP
Describes the supported keywords and provides examples.

If the image does not have a version dependency, the following message is displayed:

REGISTER-I-SUMMARY n images examined, n have dependencies
In this message, n is the number of images examined and the number of images that have dependencies.

Example

The following example adds the V6USRAPP image to the registry:

$ @SYS$UPDATE:REGISTER_PRIVILEGED_IMAGE REGISTER SYS$LIBRARY:V6USRAPP
%REGISTER-I-ADDED added V6USRAPP to registry

go to previous page: Customizing Startup Databases with SYSMAN Customizing Startup Databases with SYSMAN
go to next page: Customizing the Help Message DatabaseCustomizing the Help Message Database