![]() |
|
Библиотека RTFM
This chapter contains the following topics: Using DBMS_ADVANCED_REWRITESecurity ModelNo privileges to access these procedures are granted to anyone by default. To gain access to these procedures, you must connect as You can control security on this package by granting the GRANT EXECUTE ON DBMS_ADVANCED_REWRITE TO er; You may want to write a separate cover package on top of this package for restricting the alert names used. Instead of granting the Summary of DBMS_ADVANCED_REWRITE SubprogramsTable 11-1 DBMS_ADVANCED_REWRITE Package SubprogramsALTER_REWRITE_EQUIVALENCE ProcedureThis procedure changes the mode of the rewrite equivalence declaration to the mode you specify. SyntaxDBMS_ADVANCED_REWRITE.ALTER_REWRITE_EQUIVALENCE ( name VARCHAR2, mode VARCHAR2); ParametersTable 11-2 ALTER_REWRITE_EQUIVALENCE Procedure ParametersDECLARE_REWRITE_EQUIVALENCE ProceduresThis procedure creates a declaration indicating that SyntaxDBMS_ADVANCED_REWRITE.DECLARE_REWRITE_EQUIVALENCE ( name VARCHAR2, source_stmt VARCHAR2, destination_stmt VARCHAR2, validate BOOLEAN := TRUE, mode VARCHAR2 := 'TEXT_MATCH'); DBMS_ADVANCED_REWRITE.DECLARE_REWRITE_EQUIVALENCE ( name VARCHAR2, source_stmt CLOB, destination_stmt CLOB, validate BOOLEAN := TRUE, mode VARCHAR2 := 'TEXT_MATCH'); ParametersTable 11-3 DECLARE_REWRITE_EQUIVALENCE Procedure ParametersUsage NotesQuery rewrite using equivalence declarations occurs simultaneously and in concert with query rewrite using materialized views. The same query rewrite engine is used for both. The query rewrite engine uses the same rewrite rules to rewrite queries using both equivalence declarations and materialized views. Because the rewrite equivalence represents a specific rewrite crafted by a sophisticated user, the query rewrite engine gives priority to rewrite equivalences over materialized views when it is possible to perform a rewrite with either a materialized view or a rewrite equivalence. For this same reason, the cost-based optimizer (specifically, cost-based rewrite) will not choose an unrewritten query plan over a query plan that is rewritten to use a rewrite equivalence even if the cost of the un-rewritten plan appears more favorable. Query rewrite matches properties of the incoming request query against the equivalence declaration's DROP_REWRITE_EQUIVALENCE ProcedureThis procedure drops the specified rewrite equivalence declaration. SyntaxDBMS_ADVANCED_REWRITE.DROP_REWRITE_EQUIVALENCE ( name VARCHAR2); ParametersTable 11-4 DROP_REWRITE_EQUIVALENCE Procedure ParametersVALIDATE_REWRITE_EQUIVALENCE ProcedureThis procedure validates the specified rewrite equivalence declaration using the same validation method as described with the SyntaxDBMS_ADVANCED_REWRITE.VALIDATE_REWRITE_EQUIVALENCE ( name VARCHAR2); ParametersTable 11-5 VALIDATE_REWRITE_EQUIVALENCE Procedure Parameters
|
Если необходимая Вам документация
отсутствует на нашем сайте, то вы можете заказать ее. Сообщите нам, и мы постараемся добавить ее как можно скорее. Сайт принадлежит группе Luksian group |