Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   Other Syntax Segments > Purpose Options >

3Purpose Options for Access Methods

A registered access method is a set of attributes, including a name and options called purpose options that you can use to accomplish the following tasks:

You specify purpose options when you create an access method with the CREATE ACCESS_METHOD statement. To change the purpose options of an access method, use the ALTER ACCESS_METHOD statement.

Each task, value, or flag keyword corresponds to a column name in the sysams system catalog table. The keywords let you set the following attributes:

To enable a user-defined function or method as a purpose function, you must first register the C function or Java method that performs the appropriate tasks, using the CREATE FUNCTION statement, and then set the purpose keyword equal to the registered function or method name. This creates a new access method. An example on page Example adds a purpose method to an existing access method.

To enable a purpose flag, specify the name without a corresponding value.

To clear a purpose-option setting in the sysams table, use the DROP clause of the ALTER ACCESS_METHOD statement.

Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]