Oracle Text Reference Release 9.0.1 Part Number A90121-01 |
|
CTX_DDL Package, 26 of 28
Sets a preference attribute. You use this procedure after you have created a preference with CTX_DDL.CREATE_PREFERENCE.
ctx_ddl.set_attribute(preference_name in varchar2, attribute_name in varchar2, attribute_value in varchar2);
Specify the name of the preference.
Specify the name of the attribute.
Specify the attribute value. You can specify boolean values as TRUE or FALSE, T or F, YES or NO, Y or N, ON or OFF, or 1 or 0.
The following example creates a data storage preference called filepref
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 to the directory /docs
.
begin ctx_ddl.create_preference('filepref', 'FILE_DATASTORE'); ctx_ddl.set_attribute('filepref', 'PATH', '/docs'); end;
See Also:
For more information about data storage, see "Datastore Types" in Chapter 2, "Indexing". For more examples of using SET_ATTRIBUTE, see CREATE_PREFERENCE. |
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|