123
 123

Tip: 看不到本站引用 Flickr 的图片? 下载 Firefox Access Flickr 插件 | AD: 订阅 DBA notes --

2008-06-10 Tue

19:23 可爱的儿子 (1329 Bytes) » OracleDBA Blog---请享受无法回避的痛苦!

我会吹泡泡,你会吗?


我100天了,干吗喊我起来,我还没睡醒列


我100天了,妈妈在干吗,给我拍照吗?我还没准备好,等我摆个好点的POSE不行呀.


我是个男孩子,如假包换


饿了,我爸爸把我的奶粉钱都花完了,只能自己吃手指了,看看能不能饱.


嘘,我睡着了,别吵,梦里好多漂亮MM呀.

19:07 pv 泡沫 (1523 Bytes) » 人生就是如此
当发展由快速扩展进入一个稳定期之后,要再取得突破是一场困难的. 但这时候又必须求变,于是对边角的修补和挖掘成为一个可行的变化. 但这种变化往往很可能带来相对负面的效应. 几乎大部分进入稳定期的网站最后都走到这条路上.因为竞争的充分和学习的快速,导致同质化严重大家最后都进入乏力的状态. 这似乎就是一个泡沫,在一堆泡沫之间,要让人关注,就得成为更大的泡沫. 否则将被淹没在泡沫中而逐渐失去被关注的机会. 其实很多人都明白这个问题(员工,投资人,公关,媒体),但无形的推手推动着泡沫的行程.
在互联网上,其实没哪个创业者是希望自己的东西成为一个泡沫,但无形的压力会驱动着这个方向,因为你不泡沫,就可能是生死的问题,而泡沫了,暂时面临的只是感受问题. 每个人都想着暂时用泡沫膨胀,将来再用内容来充实它.
当一轮膨胀结束破灭之后,才是新一轮充实的开始. 这跟经济本身的发展规律其实也很象,通货膨胀总是周期性的出现.
19:01 LOGMINER的MINE_VALUE功能 (645 Bytes) » yangtingkun
LOGMNR的一个很实用的小功能,简单记录一下。手工进行LOGMNR分析,大多数是为了寻找被意外修改的数据,或者寻找哪条SQL修改了哪些数据。一般这种情况,关注点都比较明确,甚至可以确定到字段的值,比如需要找到字段A从1变成0的所有修改。而这种情况使用LOGMNR提供的MINE_VALUE就再合适不过了。一个简单的例子:SQL> CREATE TABLE T (ID NUMBER, NAME VARCHAR2(30), FLAG NUMBER(1));表已创建。SQL> INSERT INTO T SELECT ROWNUM, OBJECT_NAME, 1 FROM DBA_OBJECTS;已创建50668行。SQL> COMMIT;提交完成。SQL> UPDATE T SET FLAG = CASE MO...
15:23 Red Hat Summit sessions preview: Rik van Riel, Fedora 9, and RPM with Spot (6646 Bytes) » Red Hat Magazine

Here’s a little sneak preview of some of the educational sessions at this year’s Summit. And who better to outline their talks than the speakers themselves? In this first installment, Rik van Riel talks about computing speed; Fedora developer (and Red Hat engineer) Bill Nottingham outlines his thoughts on the most recent Fedora release; and Tom Callaway sums up his plans to speak about the simplest ways to use RPM. Want more? Come see us at the Summit, and check out the full schedule.


Why Computers Are Getting Slower (And What We Can Do About It)
Rik van Riel
Wednesday, June 18, 10:15 a.m.

Common wisdom holds that everything about computers gets faster with time. Over the last 20 years, processors have gotten about a thousand times faster, a typical PC has two thousand times more memory, and hard disks are a hundred thousand times times larger.

However, it has become a common experience for people to buy a new faster computer–only to find out that it takes longer to boot up (or do other common system tasks) than it took on the older, supposedly slower computer.

This year at the Red Hat Summit, I will start by explaining some of the fundamental hardware and software reasons for the observed slowdowns. The most obvious reasons have to do with the fact that hardware designs are approaching the limits of what is possible within the laws of physics.

A less obvious reason is that the capacity of most components in a computer has increased far more than the speed at which the components operate. This has caused several operating system algorithms and system administration practices to become impractical on today’s hardware.

Besides showing how bad things can get, my Red Hat Summit presentation also will also discuss operating system improvements to alleviate the problem, as well as deployment and application development practices that can solve the rest of the problem.


Fedora 9 Overview and Demonstration
Bill Nottingham
Wednesday, June 18, 11:30 AM

One of the most often asked questions in the software world is:

“What’s coming in the next release?”

Red Hat® Enterprise Linux® is no different. Sure, you can wait for the beta release, and pore through the release notes and the package changelogs. You can corner a product manager at the right moment and get the scoop. But the best way to find out what’s coming up in future Red Hat Enterprise Linux releases? Look at Fedora.

Fedora–for those who don’t know–is a freely available and freely distributable Linux-based operating system that showcases the latest in free and open-source software. It’s developed by people across the globe as part of the Fedora project community, and it’s where Red Hat does their innovation.

In this talk, we’ll look at some of the features that are in Fedora 9 that preview the things to come in later releases of Red Hat Enterprise Linux. Just some of the things you can now do in Fedora 9 that you can’t do in Enterprise Linux 5:

As a IT executive:

  • You can run hardware accelerated virtualization, including your old Xen guests, all on the stock kernel

As a systems administrator:

  • You can delegate and restrict routine administrative tasks to your users on a task-by-task basis, while simultaneously reducing the amount of security conscious code that runs as root
  • You can set up your systems to easily have guest users, that run in a restricted mode where everything they do is reset upon their logout

As a road warrior:

  • You can now install to an encrypted filesystem, and use encrypted filesystems for your user data
  • Your laptop will use less power than it did before, extending your battery life
  • You can now configure your freshly-attached projector without worry of offending all those within earshot

As a user:

  • You can now lock your user session and easily let another user log in, without having to close anything you’re doing
  • You can transparently move audio streams at runtime from your built-in sound card to your USB headset, or mute your music player when you have an incoming SIP call

At the Red Hat Summit, we’ll discuss all of these and more, with demos. Stop by and see if I actually use Yanni for the audio demos.


How to Make Good RPM Packages
Tom “Spot” Callaway
Wednesday, June 18, 1:30 p.m.
RPM Packaging can help make your life easier, but good packages are the key to success. Using good packages means that you spend less time
installing, patching, and tracking software. In my session, I try to peel back the myths and the mystery that surrounds the process of making good, reliable, and maintainable RPM packages. I cover the basics and explain the different sections of an RPM spec, as well as providing some tips and tricks from the Fedora Packaging Guidelines. RPM is powerful, but it doesn’t have to be complicated.


Sound like a good time? Then you should join us at this year’s Red Hat Summit. Geeks. Execs. Educators. Everyone. There’s still time to register. (But I’d hurry if I were you.)

13:01 I don't know... (3510 Bytes) » The Tom Kyte Blog

I don't know if

a) I'm getting grumpier as I get older

b) people are losing the ability to phrase a question. 

It just seems to me that day by day, the quality of the questions goes down.  I don't remember people asking questions like this just 8 years ago.  I've been participating in forums since 1994.  "Back in the day", the questions were mostly thought out, with examples - with some background, with some thought.  In the last couple of years - this seems to be changing - universally.

Oh well, it is probably related to both bullet points... Anyway here is the QOD - question of the day.

Subject: query is not using particular partition and index despite use full table scan

Entire question:

SELECT count(*)
FROM
DIM_BANK RIGHT OUTER JOIN FACT_JRNL_ACTG ON (DIM_BANK.BANK_ID=FACT_JRNL_ACTG.BANK_ID)
LEFT OUTER JOIN DIM_BSA ON (FACT_JRNL_ACTG.BSA_ID=DIM_BSA.BSA_ID)
LEFT OUTER JOIN DIM_FY ON (FACT_JRNL_ACTG.FY_ID=DIM_FY.FY_ID)
LEFT OUTER JOIN DIM_APD ON (FACT_JRNL_ACTG.APD_ID=DIM_APD.APD_ID)
LEFT OUTER JOIN DIM_PSCD ON (FACT_JRNL_ACTG.PSCD_ID = DIM_PSCD.PSCD_ID)
WHERE
(
(DIM_BANK.BANK_ACCT_CD IN ('33')
OR '*' IN ('33'))
AND DIM_PSCD.PSCD_CLOS_CL_CD IN ('1', '4', '5')
AND CASE DIM_BSA.CASH_ACCT_FL WHEN 0 THEN 'No' WHEN 1 THEN 'Yes' END = 'Yes'
AND DIM_APD.PER != 0
AND DIM_APD.PER != 99
AND DIM_APD.FY < 2008
OR DIM_FY.FY = 2008
AND DIM_APD.PER <= 6
AND DIM_APD.PER != 0
AND CASE DIM_BSA.CASH_ACCT_FL WHEN 0 THEN 'No' WHEN 1 THEN 'Yes' END = 'Yes'
AND DIM_PSCD.PSCD_CLOS_CL_CD IN ('1', '4', '5')
AND (DIM_BANK.BANK_ACCT_CD IN ('33')
OR '*' IN ('33'))
);

 

That's it folks.  "My query isn't doing partition elimination (probably, I'm sort of GUESSING) and isn't using some index (on some column of some table)"

Before anyone says anything - this comes from the US.

Some wows from reading the query:

  • "(DIM_BANK.BANK_ACCT_CD IN ('33') OR '*' IN ('33')) - why would you do that?
  • "CASE DIM_BSA.CASH_ACCT_FL WHEN 0 THEN 'No' WHEN 1 THEN 'Yes' END = 'Yes'" - why would you do THAT?
  • "CASE DIM_BSA.CASH_ACCT_FL WHEN 0 THEN 'No' WHEN 1 THEN 'Yes' END = 'Yes'" - just in case you didn't believe us the first time
  • wow, more duplicated predicates...
  • outer joins to DIM_BSA, but we have that neat predicate using CASE - if we actually needed to outer join to DIM_BSA then all of the attributes would be NULL - the predicate would never be true - hence, we do not need or want to outer join to DIM_BSA
  • Same comment about DIM_FY, we outer join to DIM_FY, but if we make up a row - then DIM_FY's attributes will all be null and DIM_FY.FY = 2008 cannot be true (or false, it is unknown)
  • Ditto for DIM_APD
  • and of course DIM_PSCD
  • and just to make it 100% complete, the outer join to DIM_BANK - ditto. every single outer join in this query, should not be there.

I've responded with:

My car won't start.  Now we are even, we have shared the same level of detail regarding our respective problems.

07:53 Firefox (1 Bytes) » Oracle Scratchpad
07:38 Oracle Applications Reference Books (288 Bytes) » DBASupport
Aside from Oracle's own documentation covering Oracle Apps and a few books covering specific modules, the published books landscape regarding EBS is fairly barren. There are two notable generalist coverage books available that can help you get a good jump on learning Oracle Applications.
07:32 新浪博客系统升级 揭开众多明星博客造假内幕-搜狐IT (171 Bytes) » Fenng's shared items in Google Reader
新浪博客系统升级 揭开众多明星博客造假内幕
07:17 2008深圳车展 (3315 Bytes) » OracleBlog.cn

趁着粽子节的最后一天休假,去看了深圳2008车展。车展的整体规模还是比较大的,占据了会展中心的8个场馆,不过由于是车展的最后一天,又恰巧是中午吃饭时间,我看美女的愿望只达成了不到十分之一……T_T

07:03 我家的太阳 (2252 Bytes) » Oracle Life

©作者:eygle 发布在 eygle.com

这一年,几个月
我家的小咪已经长大

自己思考,自己端坐:

自己开心,自己笑笑:

我家的太阳,照耀着四方,全家的太阳,心里的宝珍:

我的宝贝啊,就要长大:

相关文章|Related Articles

评论数量(7)|Add Comments

本文网址:

06:56 iPhone,你等着我! (1505 Bytes) » Give you some color to see see!
iPhone在国内不是新鲜玩意,但是199美元的iPhone倒是非常吸引人。


淘宝上iPhone卖3500的时候我没买,现在一代的iPhone已经被JS囤货抬高到4200+了,3G版的7月11号全球正式出货,估计JS们在抉择,是减价抛售呢,还是赌一把看3G版的实际价格会到多少?

等到7月11号,等实际价格出来,我就把Paypal里面的250刀就提个现,管他手续费不手续费,搞一个美国的或者HK的。

唯一不爽的是,iPhone 3G版支持的是WCDMA/HSDPA,而不是传闻中国电信的CDMA2000,唉...

05:30 Mastering Oracle+Python, Part 1: Querying Best Practices (0 Bytes) » del.icio.us/fenng/oracle
02:48 Oracle10gR2 Logical Standby(五)逻辑备库的Switchover (4941 Bytes) » NinGoo@Net

Author:NinGoo posted on NinGoo.net

相对物理备库的切换,逻辑备库的切换稍微复杂点,但只要按照步骤,整个操作过程也可以在很短的时间内完成。这里记录下主库正常时的switchover操作过程:

1.切换前的检查
包括主备库参数设置,主备库的TNS设置,以及应用连接数据库的TNS等,确保主备库角色转换后整个系统运行不受影响。

2.主库准备切换

alter database prepare to switchover to logical standby;

命令执行成功后,主库的状态

select switchover_status from v$database;

SWITCHOVER_STATUS
——————–
PREPARING SWITCHOVER

3.备库准备切换

alter database prepare to switchover to primary;

命令执行成功后,备库的状态

select switchover_status from v$database;

SWITCHOVER_STATUS
——————–
PREPARING SWITCHOVER

4.主库开始切换
执行完第3步后,现在的备库需要生成logminer所需要的数据字典信息,然后传送到现在的主库,所以要执行逻辑备库切换,必须在备库也设置到主库的归档路径,并且主备库监听都需要保持开启。否则,切换的状态就会一直停留在PREPARING SWITCHOVER。

备库数据字典信息传递到主库后,主库的状态变成TO LOGICAL STANDBY,这时才能执行实际的切换。

select switchover_status from v$database;

SWITCHOVER_STATUS
——————–
TO LOGICAL STANDBY

alter database commit to switchover to logical standby;

注:在PREPARING SWITCHOVER状态时,可以通过执行以下命令取消切换操作:

alter database prepare to switchover cancel;

5.从库切换
上一步成功后,备库的状态应该变成了TO PRIMARY,则可以执行切换

select switchover_status from v$database;

SWITCHOVER_STATUS
——————–
TO PRIMARY

alter database commit to switchover to primary;

6.在新的备库启动日志应用进程

alter database start logical standby apply;

如果是实时应用,则

alter database start logical standby apply immediate;


Related Articles

Add Comments(0) | Follow NinGoo@Twitter

bookmark

00:30 在 AIX 上实现 Java: 下载、安装和配置 (345 Bytes) » developerWorks 中国 : 技术文章 , 教程 AIX
获取由位于德克萨斯州奥斯汀针对 AIX 和 Java 的 IBM Systems、UNIX 和 ISV 技术支持团队提供的为 IBM AIX 操作系统下载、安装和配置 Java 的简短、简单且完整的说明。如果您在与支持中心联系寻求问题解决之前采取本文中的步骤,则可以节省大量时间并免去许多麻烦。

2008-06-09 Mon

18:02 Estimating Undo Space needed for LVM Snapshot » MySQL Performance Blog
17:03 提高执行力的4条途径 » 生活帮-LifeBang
09:15 智能狂拼测试版 » Fenng's shared items in Google Reader
05:32 解开PPLive之结 » Fenng's shared items in Google Reader
05:19 我爱杭州,我爱阿里巴巴 » Fenng's shared items in Google Reader
04:08 一年过了一年 - 生日之日 » Oracle Life

2008-06-08 Sun

20:08 刚刚从广西桂林回来 » Fenng's shared items in Google Reader
17:39 xp安装了SP3以后无法更新的解决办法 » Fenng's shared items in Google Reader