Oracle8i interMedia Text Migration
Release 2 (8.1.6)

A77061-01

Library

Product

Contents

Index

Prev Up Next

Indexing, 4 of 14


Creating Preferences

In 8.1, the syntax for the CTX_DDL.CREATE_PREFERENCE and CTX_DDL.SET_ATTRIBUTE procedures have changed. In addition, the order in which you call these procedures has changed.

In 8.1, you create the preferences then set the attributes, which is the opposite order of what you do in pre-8.1.

See Also:

For a complete list of preference objects and their associated attributes, and the syntax for the CTX_DDL.CREATE_PREFERENCE and CTX_DDL.SET_ATTRIBUTE procedures, see the Oracle8i interMedia Text Reference

Example: Specifying File Data Storage

The following example creates a custom data storage preference called mypref that tells the system that the files to be indexed are stored in the operating system. The example then uses CTX_DDL.SET_ATTRIBUTE to set the PATH attribute of to the directory /docs.

begin
ctx_ddl.create_preference('mypref', 'FILE_DATASTORE');
ctx_ddl.set_attribute('mypref', 'PATH', '/docs'); 
end;

See Also:

For more information about data storage, see Oracle8i interMedia Text Reference


Prev Up Next
Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index