SEM_APIS.ALTER_SEM_INDEX_ON_MODEL
Format
SEM_APIS.ALTER_SEM_INDEX_ON_MODEL(
model_name IN VARCHAR2,
index_code IN VARCHAR2,
command IN VARCHAR2,
tablespace_name IN VARCHAR2 DEFAULT NULL,
use_compression IN BOOLEAN DEFAULT NULL,
parallel IN NUMBER(38) DEFAULT NULL,
online IN BOOLEAN DEFAULT FALSE),
options IN VARCHAR2 DEFAULT NULL),
network_owner IN VARCHAR2 DEFAULT NULL,
network_name IN VARCHAR2 DEFAULT NULL);
Note: This subprogram will be deprecated in a future release. It is recommended that you use the SEM_APIS.ALTER_INDEX_ON_RDF_GRAPH subprogram instead.
Description
Alters a semantic network index on a model.
Parameters
model_name
Name of the model.
index_code
Index code string.
command
String value containing one of the following commands: REBUILD rebuilds the semantic network index on the model, or UNUSABLE marks as unusable the semantic network index on the model. The value for this parameter is not case-sensitive.
tablespace_name
Name of the destination tablespace for the rebuild operation.
use_compression
Specifies whether compression should be used when rebuilding the index.
parallel
Degree of parallelism to be associated with the operation. For more information about parallel execution, see Oracle AI Database VLDB and Partitioning Guide.
online
TRUE allows DML operations affecting the index during the rebuilding of the index; FALSE (the default) does not allow DML operations affecting the index during the rebuilding of the index.
options
(Not currently used.)
network_owner
Owner of the semantic network. (See Table: network_owner and network_name Parameters.)
network_name
Name of the semantic network. (See Table: network_owner and network_name Parameters.)
Usage Notes
For an explanation of semantic network indexes, see Using Semantic Network Indexes.
For information about semantic network types and options, see RDF Networks.
Examples
The following example rebuilds (and makes usable if it is unusable) the semantic network index on the model named family.
EXECUTE SEM_APIS.ALTER_SEM_INDEX_ON_MODEL('family', 'pscm', 'rebuild');