易截截图软件、单文件、免安装、纯绿色、仅160KB

oracle deterministic关键字

http://inthirties.com:90/viewthread.jsp?tid=1395
这个deterministic是不是很眼熟呀,
我们在online redefinition里见到过这个关键字,这个关键在在自定义的函数索引里也出现了。
先看看文档
DETERMINISTIC Clause
Specify DETERMINISTIC to indicate that the function returns the same
result value whenever it is called with the same values for its
arguments.
You must specify this keyword if you intend to call the function in
the expression of a function-based index or from the query of a
materialized view that is marked REFRESH FAST or ENABLE QUERY REWRITE.
When Oracle Database encounters a deterministic function in one of these
contexts, it attempts to use previously calculated results when
possible rather than reexecuting the function. If you subsequently
change the semantics of the function, you must manually rebuild all
dependent function-based indexes and materialized views.
Do not specify this clause to define a function that uses package
variables or that accesses the database in any way that might affect the
return result of the function. The results of doing so will not be
captured if Oracle Database chooses not to reexecute the function.
The following semantic rules govern the use of the DETERMINISTIC
clause:
*You can declare a top-level subprogram DETERMINISTIC.
*You can declare a package-level subprogram DETERMINISTIC in the
package specification but not in the package body.
*You cannot declare DETERMINISTIC a private subprogram (declared
inside another subprogram or inside a package body).
*A DETERMINISTIC subprogram can call another subprogram whether the
called program is declared DETERMINISTIC or not.
要实现自己的函数,加入函数索引,必须加入这个deterministic关键字,保证你这行的返回是一个确定数。
否则出现
30553, 00000, “The function is not deterministic”
// *Cause: The function on which the index is defined is not
deterministic
// *Action: If the function is deterministic, mark it
DETERMINIS


相关文档:

oracle启动分析

oracle启动方式与命令参数汇总
本文主要是对oracle的启动方式和相关的命令参数进行一个汇总,用以加深印象。
Oracle的启动方式:
startup nomount
startup mount
startup open (startup的默认选项)
其他常用的参数:read only ,read write ,force,restrict
这些参数可以一起使用,比如 startup 与 startup open read ......

Oracle 视图

Oracle 视图
    视图: 你可以通过创建表的视图来表现数据的逻辑子集或数据的组合.视图是基于表或者另一个
          视图的逻辑表,一个视图并不包含它自己的数据,它象一个窗口,通过该窗口可以查看或改变
         ......

Oracle 10g中跟EM有关的问题解决方法

Oracle 10g中的EM采用Web的形式来管理数据库及相关服务,但使用过程中会碰到一些跟EM有关的问题,根据同行的提示及笔者的实际经验,进行了一些归纳,希望对相关爱好者有所帮助:
(1)数据库控制台启动后,看到1)数据库实例无信息2)监听程序为状态为不可用3)到实例的代理连接状态为不可用。
问题分析:
此时服务刚启 ......

Oracle DBA 入门、进阶学习路线图

经常有DBA朋友们向我咨询,如果打算进入DBA这一行,应该怎样入门,或者可以通过怎样一个路线图来进行学习。
关于这个主题,其实网络上已经有了一些内容可以参考。但是既然这么多朋友问题,我就将之前写好的一点内容发表出来。
算是对大家的一个回答,如果能够有所借鉴那是最好的。
我的这份路线图,是按照我写作的两本书 ......

Legato备份oracle的文档整理

http://inthirties.com:90/viewthread.jsp?tid=1394
1 我们已经在备份服务器上建立了一个catalog库,具体的操作过程如下:
1)查询现在的数据库
# sqlplus /nolog.
SQL>connect / as sysdba;
Connected.
SQL>select * from v$tablespace;
TS# NAME INC
———- ————& ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号