12.07.05
用FlashBack query恢复误删数据
用法示例:
(1) 找出删除前的数据:
SELECT ename, sal FROM emp AS OF TIMESTAMP (SYSTIMESTAMP – INTERVAL ‘6’ MINUTE)WHERE ename = ‘ALLEN’; Read the rest of this entry »
用法示例:
(1) 找出删除前的数据:
SELECT ename, sal FROM emp AS OF TIMESTAMP (SYSTIMESTAMP – INTERVAL ‘6’ MINUTE)IBM 360+EXP 300双机安装手记
郭 岳(GYTYL)Oracle817通用连接方式连接sql server2000
本人文档,如需转载,请注明出处!
本来不准备写这个blog的,但是今天在群上看到一个兄弟database link链接失败,想想可能有用,就丢上来了。
0:前言
透明网关(Transparent Gateways) 透明网关使用Oracle提供的特定网关程序来设置代理,例如连接SQL Server则必须要有SQL Transparent Gateway for SQL Server。星期五是公司的圣诞晚会. 本来以为要开车去, 就喝不了酒了. 好在后来单位里的一个MM告诉我可以要taxi sheet, 赶紧去要了两张.
晚上等老婆回家, 再换衣服, 已经5点多了才叫taxi. 路上自然又是堵车, 到晚会地点时已经快7点了. 晚会是6点开始, 按以往的规矩是6点到7点随意喝. 我想这下完了, 还是没酒喝. 没想到今年改成了发酒券, 没有时间限制了.
吃饭是没啥意思. 老外的东西, 人多了就吃不到好的. 没想到吃完了, 我还有一个惊喜: 我居然中奖了! 这在我的记忆中可没发生过几回, 是不是我也该考虑买点6/49了?
想起gytyl最近也中奖, 明年看来是个好年头.
昨天下午,杭州风大雨大
正陪同学在西湖边晃
某个地方的项目兄弟告诉我
Sybase数据库连接不上去了
这个我就有点晕了
那里可是IBM的小机加上阵列
作了HA的,怎么会连接不上列
等到兄弟过去看了
发现ping都ping不到主机了
这下有点麻烦了
对于彩票
我一直都在买,
不过每期也就是10块钱,
不象别人那样还要选号,研究
每次都是机选
也正因为这样
所以从来没有中过奖
想不到
这次同学过来
居然中了5块钱的奖
不知道是不是好预兆,哈哈
说不定
下次就是5000000了
期待哟.
这几天看了几篇关于rebuild index的文章, 才发现大部分情况下是没有必要rebuild的. 好在我还没有勤快到设了job定期做rebuild, 要不然也成了被tom骂的一类人了.
参见:
http://asktom.oracle.com/pls/ask/f?p=4950:8:2029594428707830766::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:2913600659112
http://www.actoug.org.au/Downloads/oracle_index_internals.pdf
Enqueues are another type of locking mechanism used in Oracle.
An enqueue is a more sophisticated mechanism which permits several concurrent
processes to have varying degree of sharing of “known” resources. Any object
which can be concurrently used, can be protected with enqueues. A good example
is of locks on tables. We allow varying levels of sharing on tables e.g.
two processes can lock a table in share mode or in share update mode etc.
One difference is that the enqueue is obtained using an OS specific
locking mechanism. An enqueue allows the user to store a value in the lock,
i.e the mode in which we are requesting it. The OS lock manager keeps track
of the resources locked. If a process cannot be granted the lock because it
is incompatible with the mode requested and the lock is requested with wait,
the OS puts the requesting process on a wait queue which is serviced in FIFO.
Another difference between latches and enqueues is that
in latches there is no ordered queue of waiters like in enqueues. Latch
waiters may either use timers to wakeup and retry or spin (only in
multiprocessors). Since all waiters are concurrently retrying (depending on
the scheduler), anyone might get the latch and conceivably the first one to
try might be the last one to get.
x$ksqst(8i)
1、查看锁类型(以TX为例):
select chr(bitand(p1,-16777216)/16777215)||
chr(bitand(p1,16711680)/65535) “Lock”
from dual;
昨天,准确的说,应该是前天吧
bachelor告诉我,一个大学同学要过来杭州出差
这样的机会,现在不多了
见面当然是少不了的
OutLine使用-1
本人文档,如需转载,请注明出处!
最近开发人员老是和我说,现场数据库和测试数据库的执行计划不一样
测试数据库的执行计划还和开发数据库不一样
这事情,老板很生气,认为我们这数据库咋就不一样了列
要说公司的测试服务器也蛮多的,IBM和HP的都有列
所以就研究了下