IBM Support

Onload utility produces an error when loading a database that is has been fragmented to utilize more than one page size.

Troubleshooting


Problem

After successfully using the onunload utility to unload a database that has been fragmented across dbspaces that use non-consistent page sizes, you receive the following error: "pagesize of the target dbspace does not match with the pagesize of the partition on tape. ISAM error: Tape might contain a corrupt page (or) if you are executing onload command specify the correct DBspace name using the -d argument."

Cause

There are two possible causes of this error:

1) You have specified a dbspace when running the onload command, for example if you run:



    'onload -t <pathToSource> -s <tapesize> -d <dbspace> <database>'
Assuming the specified dbspace is the correct page size for one of the database fragments, you will still receive the above error as the dbspace page size does not match all the database fragments.

2) You have not yet created all the necessary dbspaces to hold the database you are attempting to load

Resolving The Problem

To resolve this issue, you must first create a dbspace to for each page size existing in the database that is being loaded.


For example, if the database contains data pages that exist in a 2k dbspace, but contains indexes that are stored in an 8k dbspace, you will need to create a 2k dbspace and an 8k dbspace on the target instance before running the onload utility.


You must also ensure that no dbspace is specified in the onload command, for example, if you run:



    'onload -t <pathToSource> -s <tapesize> <database>'

As long as all the proper dbspaces exist, the data should load without error.

[{"Product":{"code":"SSGU8G","label":"Informix Servers"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"11.5;11.7;12.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
29 September 2018

UID

swg21684463