Tip: 看不到本站引用 Flickr 的图片? 下载 Firefox Access Flickr 插件 | AD: 订阅 DBA notes -- ![]()
2008-06-10 Tue
我会吹泡泡,你会吗?
我100天了,干吗喊我起来,我还没睡醒列
我100天了,妈妈在干吗,给我拍照吗?我还没准备好,等我摆个好点的POSE不行呀.
我是个男孩子,如假包换
饿了,我爸爸把我的奶粉钱都花完了,只能自己吃手指了,看看能不能饱.
嘘,我睡着了,别吵,梦里好多漂亮MM呀.
当一轮膨胀结束破灭之后,才是新一轮充实的开始. 这跟经济本身的发展规律其实也很象,通货膨胀总是周期性的出现.


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.)
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.
这一年,几个月
我家的小咪已经长大
相关文章|Related Articles
评论数量(7)|Add Comments
本文网址:http://www.eygle.com/archives/2008/06/sun_in_home.html
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
2008-06-09 Mon
2008-06-08 Sun
2008-06-07 Sat
AnySQL.net
DBA notes
Oracle & Starcraft
eagle's home
Give you some color to see see!
AnySQL.net English
Oracle Scratchpad
Oracle Life
OracleDBA Blog---请享受无法回避的痛苦!
Uploads from dbanotes
Chanel [K]
xzh2000的博客
Oracle Security Blog
ERN空间
Eddie Awad's Blog
MySQL Performance Blog
The Tom Kyte Blog
del.icio.us/fenng/oracle
AIXpert
O'Reilly Databases
Red Hat Magazine
DBASupport
DB2 Magazine 中文版
developerWorks 中国 : 技术文章 , 教程 AIX
Pythian Group Blog » Log Buffer
车东[Blog^2]
blue_prince
玉面飞龙的BLOG
此生 今世
人生就是如此
Orange Tiger 木匠 的 移民生活
生活帮-LifeBang
Hey!! Sky!
dba on unix
Oracle Notes Wiki
Brotherxiao's Home
柔嘉维则@life.oracle.eng
Fenng's shared items in Google Reader
jametong's shared items in Google Reader
缥缈游侠-logzgh
Tanel Poder's blog: Core IT for geeks and pros
DBA Tools
ilonng
yangtingkun
NinGoo@Net
Oracle & Unix
Inside the Oracle Optimizer - Removing the black magic
Ricky's Test Blog
DBA@Taobao
存储部落
Think in 88
Alibaba DBA Team
Oracle Team @SNC
淘宝数据仓库团队
OracleBlog.cn









