当前位置:首页 » 服务器技术
开发技术指南» 文章正文
    引言: 在论坛中经常遇到变异表的问题,我收藏了一片有关变异表问题的文章,
 

 

 ·ontape -r 恢复大总结    »显示摘要«
    摘要:以下是我做ontape -r 的总结,我只是将自己的经验共享出来(因为我看到论坛里虽然有这方面的帖子,但都不是很详细) 因为整个过程只是在我能接触的特有的环境中完成,所以如有错误之处欢迎大家指正。。。 主要分六个部分 1.恢复的前提 2.详细恢复过程 3.对恢复期间的监视 4.恢复成功整个过程的online.log 5.恢复过程中我曾遇到的问题 6.常用到的命令 一、恢复的前提(从多次恢复过程可以总结如下:) 我用ontape备份的数据恢复到另一台服务器上......
    摘要:2004.8.1 18:40 在金龙大酒店 比利时.布鲁塞尔 写 在巴黎逗留了2天 2004.7.30 埃菲尔铁塔 和卢浮宫 2004.7.31 凡尔塞宫 凯旋门 协和广场 香榭里舍大街 红磨坊表演 购物 在埃菲尔铁塔旁边,我看到了来自于全球不同国家,肤色,语言的游客,争先恐后地排队买票,在100多年前能建设如此雄伟的建筑确实不简单,后进入卢浮宫,是一位台湾的女讲解员解说的,每人发了耳机,实际上是接收讲解员声音的无线电装置,这样即使在人多的情况下,我们也能......


变异表的问题

在论坛中经常遇到变异表的问题,我收藏了一片有关变异表问题的文章,现在把他放在这里,希望能与大家分享!

   avoiding mutating tables 【相关文章:上传图片文件,生成缩略图,并写上版权信息

  【扩展阅读:比尔盖茨的11点忠告

【扩展信息:关于SQL SERVER的一些安全问题

ok, so you´ve just recieved the error:

ora-04091: table xxxx is mutating, trigger/function may not see it

and you want to get around that. this short article will describe and demonstrate the various methods of getting around the mutating table error.

if you are interested in why you are getting it and in what cases you will get it, please see the oracle server application developers guide (click here to read it right now -- this link is to technet.oracle.com.  you need a password to access this site but you can get one right away for free).

avoiding the mutating table error is fairly easy.  we must defer processing against the mutating or constrainng table until an after trigger.  we will consider two cases:

 

hitting the ora-4091 in an insert trigger or an update trigger where you only need access to the :new values

hitting the ora-4091 in a delete trigger or an update trigger where you need to access the :old values

case 1 - you only need to access the :new values

this case is the simplest.  what we will do is capture the rowids of the inserted or udpated rows.  we can then use these rowids in an after trigger to query up the affected rows.

it always takes 3 triggers to work around the mutating table error.  they are:

 

a before trigger to set the package state to a known, consistent state

an after, row level trigger to capture each rows changes

an after trigger to actually process the change.

as an example -- to show how to do this, we will attempt to answer the following question:

 

i have a table containing a key/status/effective date combination.  when status

changes, the values are propagated by trigger to a log table recording the


...   下一页
    摘要:对于名称空间,理解了oo思想的人应该是比较简单的了,特别是对学过c++的人来说更是 如此;但很多看了我前面文章的朋友,在和我的交流中,好像对名称空间都不怎么清楚, 下面我们就来说说怎么样在 xml schema和wsdl中使用名称空间. 先看看一段java代码: package com.hongsoft.test.pkg1; import com.hongsoft.test.pkg2.test1; import com.hongsoft.test.p......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE