Oracle8i interMedia Text Migration Release 8.1.5 A67845-01 |
|
Use this chapter as a guide to replacing ConText pre-8.1.5 objects with interMedia Text 8.1.5 objects. The following topics are covered:
Table 4-1 lists the objects that are used to create preferences for indexing that have changed or are obsolete from 2.x to 8.1.
You can migrate preferences defined with 2.x objects manually using the information in Table 4-1, or you can use the migration scripts.
See Also:
For more information on using the migration scripts, see "Using the Index Migration Scripts" in this chapter. For more information about creating preferences, see Chapter 5, "Indexing". |
Oracle8i interMedia Text 8.1.5 has some new indexing objects.
See Also:
For a complete list of the interMedia Text 8.1.5 indexing objects, see Oracle8i interMedia Text Reference. |
Oracle8i interMedia Text has renamed most system-defined preferences and added some new ones.
See Also:
For a complete list of the interMedia Text 8.1.5 system-defined preferences, see Oracle8i interMedia Text Reference. |
The migration script automates the transformation of system-defined preferences.
See Also:
For a complete list on the automated transformations, see "System-Defined Preference Transformations" in the next section. |
The migration scripts are the following:
The migrations scripts drminst and drmrun are obtained from your 8.1.5 installation. They are located in the $ORACLE_HOME/ctx/migrate directory.
You must copy these scripts into your production environment (pre-8.1). Run these scripts to generate migrate.sql.
The migrate.sql script attempts to recreate the pre-8.1.5 index as closely as possible. It does so by creating corresponding preferences and attributes and finally the index using interMedia Text 8.1.5 code.
You then copy migrate.sql to your test environment, edit it appropriately, and run the edited migrate.sql to transform your index.
The migration script attempts to replace all preferences defined with pre-8.1.5 objects with preferences defined with the renamed 8.1.5 objects.
For example, if you have a pre-8.1.5 policy that uses a preference named mydatapref set to the OSFILE object, the migration script creates an 8.1.5 preference called mydatapref and sets it to use the FILE_DATASTORE object. The 8.1.5 index is created with the mydatapref storage preference.
When an pre-8.1.5 object or attribute has been made obsolete in 8.1, the migration script issues a warning in the form of a REM statement and creates no corresponding preference. In such cases, you must edit the migration script to reflect the correct replacement preference, if any, for your system.
The migration script replaces pre-8.1.5 system-defined preferences with 8.1.5 system-defined preferences.
When a system-defined preference name has not changed from pre-8.1.5 to 8.1, the migration script uses the same preference name and attribute. For example, if your pre-8.1.5 policy used the DEFAULT_LEXER system-defined preference, your 8.1.5 index will be created with the DEFAULT_LEXER system-defined lexer preference.
When system-defined preference names or attributes have been renamed for 8.1, the migration script replaces the old name with the new name.
When an pre-8.1.5 system-defined preference or attribute has been made obsolete in 8.1, the migration script issues a warning in the form of a REM statement and creates no corresponding preference. In such cases, you must edit the migration script to reflect the correct replacement preference, if any, for your system.
The migration script replaces system-defined 2.Xpreferences with the new 8.1.5 preferences. The following table lists these replacements:
After attributes and preferences have been created, the migration script attempts to recreate the pre-8.1.5 indexes from the pre-8.1.5 policy information.
Policies do not exist in interMedia Text 8.1. In 8.1, you create a Text index as an extensible type of Oracle index. In addition, you can create only a single index per column.
Therefore, the migration script issues a warning as a REM statement if your pre-8.1.5 environment includes any of the following non-migratable structures: