Oracle Rules Manager 和 Oracle Expression Filter 组件 说明

2024-04-04 02:08

本文主要是介绍Oracle Rules Manager 和 Oracle Expression Filter 组件 说明,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

 

一.Rules Manager 和 Expression Filter 组件说明

 

在说明之前,我们先用如下SQL查看一下DB中的组件:

SQL> col comp_id for a15

SQL> col version for a15

SQL> col comp_name for a30

SQL> select comp_id,comp_name,versionfrom dba_registry ;

 

COMP_ID         COMP_NAME                      VERSION

--------------------------------------------- ---------------

XDB             Oracle XML Database            11.2.0.3.0

AMD             OLAP Catalog                   11.2.0.3.0

EM              Oracle Enterprise Manager      11.2.0.3.0

SDO             Spatial                        11.2.0.3.0

ORDIM           Oracle Multimedia              11.2.0.3.0

CONTEXT         Oracle Text                    11.2.0.3.0

ODM             Oracle Data Mining             11.2.0.3.0

EXF             Oracle Expression Filter       11.2.0.3.0

RUL             Oracle Rules Manager           11.2.0.3.0

OWM             Oracle Workspace Manager       11.2.0.3.0

CATALOG         Oracle Database Catalog Views  11.2.0.3.0

 

COMP_ID         COMP_NAME                      VERSION

--------------------------------------------- ---------------

CATPROC         Oracle Database Packages and T11.2.0.3.0

                ypes

 

JAVAVM          JServer JAVA Virtual Machine   11.2.0.3.0

XML             Oracle XDK                     11.2.0.3.0

CATJAVA         Oracle Database Java Packages  11.2.0.3.0

XOQ             Oracle OLAP API                11.2.0.3.0

APS             OLAP Analytic Workspace        11.2.0.3.0

 

17 rows selected.

 

MOS:

Oracle 8i/9i/10g/11g 组件(Components) 说明

http://www.cndba.cn/Dave/article/1445

 

The 10i newfeature allows you to store conditional expressions as data in the database.The Expression Filter provides a mechanism that you use to place a constrainton a VARCHAR2 column to ensure that the values stored are valid SQL WHEREclause expressions. The mechanism also identifies the set of attributes thatcan be referenced in the conditional expressions. 

--Oracle 10g的一个新特性就是允许我们在数据库中用data的方式存储条件表达式。 Expression Filter 组件提供了机制,通过这个机制,我们可以在Varchar2类型的列上添加约束,来确保存储有效的SQL Where 条件表达式。这个机制也可以标记一个属性的集合,其可以用来在条件表达式中参考。

 

OracleExpression Filter, a feature of Oracle Database 10g, is a component of RulesManager that allows application developers to store, index, and evaluateconditional expressions (expressions) in one or more columns of a relationaltable. Expressions are a useful way to describe interests in expected data. 

--Expression Filter 是Rules Manager 的一个组件。其允许研发人员store,index 和 evaluate 条件表达式在相关表的一个或多个列上。

 

ExpressionFilter matches incoming data with expressions stored in a column to identifyrows of interest. It can also derive complex relationships by matching data inone table with expressions in a second table. Expression Filter simplifies SQLqueries; allows expressions to be inserted, updated, and deleted withoutchanging the application; and enables reuse of conditional expressions in rulesby separating them from the application and storing them in the database.Applications involving information distribution, demand analysis, and taskassignment can benefit from Expression Filter. 

--Expression Filter 使用存在列里的表达式来匹配输入的数据。 ExpressionFilter 简化了SQL 查询,允许表达式进行insert,update和delete 操作而不用改变应用程序。

 

The RulesManager and Expression Filter features are the same in the Standard andEnterprise Editions. Support for indexing expressions is available only in theEnterprise Edition because it requires bitmap index support. 

 

组件用户:

EXFSYS: 

Each is suppliedas a set of PL/SQL packages, a Java package, a set of dictionary tables, andcatalog views. All these objects are created in a dedicated schema namedEXFSYS. 

 

官网说明:

OracleExpression Filter Concepts 10gR2

 

 

二.组件重建

MOS:

Note 258618.1 - How To Install andUninstall Expression Filter Feature or EXFSYS schema

 

官网:

Installing Rules Managerand Expression Filter 11gR2

http://docs.oracle.com/cd/E11882_01/appdev.112/e14919/exprn_app_e.htm

 

 

2.1 Installing the EXFSYS schema: 

 

1. Login as SYSDBA 

2. @?/rdbms/admin/catexf.sql 

注意:

1. Installing Expression Filter does notautomatically install Rules Manager. 
    This component has to be installed separately using thecatrul.sql script

--安装Expression Filter 不会自动安装Rules Manager。所有RulesManager 需要使用catrul.sql 独立安装。


2. When reinstalling Expression Filter, you may have to run utlrp.sql torecompile some invalid objects.

       --在卸载Expression Filter 时,需要使用urlrp.sql 来编译一些无效对象。

 

During installation of OracleDatabase, a demonstration script is installed for both the Rules Manager and Expression Filter features. The scripts ruldemo.sql (Rules Manager demo) andexfdemo.sql (Expression Filter demo) are located in the$ORACLE_HOME/rdbms/demo/ directory. 

 

 

2.2 Uninstalling the EXFSYS schema: 


1. Login as SYSDBA 

2. @?/rdbms/admin/catnoexf.sql 

注意:

1. Uninstalling Expression Filter implicitly uninstalls Rules Manager.

       --卸载Expression Filter 组件时会自动卸载Rules Manager 组件。

 

2. The CATNOEXF.SQL script may not droppublic synonyms created by catexf.sql.
    However, with 11.2, it was verified no PUBLIC SYNONYMS fortable_owner = 'EXFSYS' were left.

       --catnoexf.sql 脚本不会删除由catexf.sql 产生的公共同义词。但是从Oracle 11gR2 开始,它会验证是否有public sysnonyms的存在。

 

The followingscript can be used to drop all PUBLIC SYNONYMS created for Rules Manager andExpression Filter when needed:

       --如下脚本可以删除所有EXFSYS 用户的PUBLIC SYNONYMS:

 

declare 
  cursor cur1 is select synonym_name from all_synonyms where owner ='PUBLIC' and table_owner = 'EXFSYS'; 
begin 
  for c1 in cur1 loop 
    EXECUTE IMMEDIATE 'drop public synonym ' ||dbms_assert.enquote_name(c1.synonym_name, false); 
  end loop; 
end; 
/

 

In someversions before 10.2, or if you do not have the dbms_assert package, thefollowing script can be used instead: 

--在Oracle 10gR2 之前,如果没有dbms_assert 包,那么可以使用如下的脚本来删除PUBLIC SYNONYMS:

 

declare
  cursor cur1 is select synonym_name from all_synonyms where owner ='PUBLIC' and table_owner = 'EXFSYS';
begin
  for c1 in cur1 loop
    EXECUTE IMMEDIATE 'drop public synonym"'||c1.synonym_name||'"';
  end loop;
end;

 

Thefollowing is a list of the public synonyms that may remain after justrunning CATNOEXF.SQL and these would be dropped by running one of the abovescripts:

--catanoexf.sql 不能删除的public synonyms列表如下:

EXF$INDEXOPER 
EXF$ATTRIBUTE 
EXF$ATTRIBUTE_LIST 
EXF$TABLE_ALIAS 
EXF$XPATH_TAG 
EXF$XPATH_TAGS 
EVALUATE 
DBMS_EXPFIL 
USER_EXPFIL_ATTRIBUTE_SETS 
ALL_EXPFIL_ATTRIBUTE_SETS 
USER_EXPFIL_ATTRIBUTES 
ALL_EXPFIL_ATTRIBUTES 
USER_EXPFIL_DEF_INDEX_PARAMS 
ALL_EXPFIL_DEF_INDEX_PARAMS 
USER_EXPFIL_INDEX_PARAMS 
ALL_EXPFIL_INDEX_PARAMS 
USER_EXPFIL_ASET_FUNCTIONS 
ALL_EXPFIL_ASET_FUNCTIONS 
USER_EXPFIL_INDEXES 
ALL_EXPFIL_INDEXES 
USER_EXPFIL_PREDTAB_ATTRIBUTES 
ALL_EXPFIL_PREDTAB_ATTRIBUTES 
USER_EXPFIL_EXPRESSION_SETS 
ALL_EXPFIL_EXPRESSION_SETS 
USER_EXPFIL_PRIVILEGES 
USER_EXPFIL_EXPRSET_STATS
ALL_EXPFIL_EXPRSET_STATS
RLM$EVENTIDS 
RLM$TABLE_ALIAS 
DBMS_RLMGR 
USER_RLMGR_EVENT_STRUCTS 
ALL_RLMGR_EVENT_STRUCTS 
USER_RLMGR_RULE_CLASSES 
ALL_RLMGR_RULE_CLASSES 
USER_RLMGR_RULE_CLASS_STATUS 
ALL_RLMGR_RULE_CLASS_STATUS 
USER_RLMGR_PRIVILEGES 
ADM_RLMGR_PRIVILEGES 
USER_RLMGR_COMPRCLS_PROPERTIES 
ALL_RLMGR_COMPRCLS_PROPERTIES 
USER_RLM4J_EVENT_STRUCTS
USER_RLM4J_RULE_CLASSES

 

 

 

 

 

 

-------------------------------------------------------------------------------------------------------

版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!

QQ:492913789

Email:ahdba@qq.com

Blog:  http://www.cndba.cn/dave

Weibo: http://weibo.com/tianlesoftware

Twitter: http://twitter.com/tianlesoftware

Facebook: http://www.facebook.com/tianlesoftware

Linkedin: http://cn.linkedin.com/in/tianlesoftware

 

 

-------加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请----

DBA1 群:62697716(满);   DBA2 群:62697977(满)  DBA3 群:62697850(满)  

DBA 超级群:63306533(满);  DBA4 群:83829929   DBA5群: 142216823

DBA6 群:158654907    DBA7 群:172855474   DBA总群:104207940

这篇关于Oracle Rules Manager 和 Oracle Expression Filter 组件 说明的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!


原文地址:
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.chinasem.cn/article/874548

相关文章

JAVA覆盖和重写的区别及说明

《JAVA覆盖和重写的区别及说明》非静态方法的覆盖即重写,具有多态性;静态方法无法被覆盖,但可被重写(仅通过类名调用),二者区别在于绑定时机与引用类型关联性... 目录Java覆盖和重写的区别经常听到两种话认真读完上面两份代码JAVA覆盖和重写的区别经常听到两种话1.覆盖=重写。2.静态方法可andro

zookeeper端口说明及介绍

《zookeeper端口说明及介绍》:本文主要介绍zookeeper端口说明,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、zookeeper有三个端口(可以修改)aVNMqvZ二、3个端口的作用三、部署时注意总China编程结一、zookeeper有三个端口(可以

Go语言中make和new的区别及说明

《Go语言中make和new的区别及说明》:本文主要介绍Go语言中make和new的区别及说明,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录1 概述2 new 函数2.1 功能2.2 语法2.3 初始化案例3 make 函数3.1 功能3.2 语法3.3 初始化

java中新生代和老生代的关系说明

《java中新生代和老生代的关系说明》:本文主要介绍java中新生代和老生代的关系说明,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、内存区域划分新生代老年代二、对象生命周期与晋升流程三、新生代与老年代的协作机制1. 跨代引用处理2. 动态年龄判定3. 空间分

MySQL之InnoDB存储引擎中的索引用法及说明

《MySQL之InnoDB存储引擎中的索引用法及说明》:本文主要介绍MySQL之InnoDB存储引擎中的索引用法及说明,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐... 目录1、背景2、准备3、正篇【1】存储用户记录的数据页【2】存储目录项记录的数据页【3】聚簇索引【4】二

mysql中的数据目录用法及说明

《mysql中的数据目录用法及说明》:本文主要介绍mysql中的数据目录用法及说明,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录1、背景2、版本3、数据目录4、总结1、背景安装mysql之后,在安装目录下会有一个data目录,我们创建的数据库、创建的表、插入的

深度解析Spring Boot拦截器Interceptor与过滤器Filter的区别与实战指南

《深度解析SpringBoot拦截器Interceptor与过滤器Filter的区别与实战指南》本文深度解析SpringBoot中拦截器与过滤器的区别,涵盖执行顺序、依赖关系、异常处理等核心差异,并... 目录Spring Boot拦截器(Interceptor)与过滤器(Filter)深度解析:区别、实现

Maven中的profiles使用及说明

《Maven中的profiles使用及说明》:本文主要介绍Maven中的profiles使用及说明,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录主要用途定义 Profiles示例:多环境配置激活 Profiles示例:资源过滤示例:依赖管理总结Maven 中的

Oracle 数据库数据操作如何精通 INSERT, UPDATE, DELETE

《Oracle数据库数据操作如何精通INSERT,UPDATE,DELETE》在Oracle数据库中,对表内数据进行增加、修改和删除操作是通过数据操作语言来完成的,下面给大家介绍Oracle数... 目录思维导图一、插入数据 (INSERT)1.1 插入单行数据,指定所有列的值语法:1.2 插入单行数据,指

Before和BeforeClass的区别及说明

《Before和BeforeClass的区别及说明》:本文主要介绍Before和BeforeClass的区别及说明,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录Before和BeforeClass的区别一个简单的例子当运行这个测试类时总结Before和Befor