查看: 2711|回复: 6

7 Interview Questions

[复制链接]
论坛徽章:
0
跳转到指定楼层
1#
发表于 2008-9-2 19:32 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
转贴:

很好的一篇文章,和大家分享。

Hiring a DBA?
7 Interview Questions
by Sean Hull

Migrating to Oracle Database 11g, An Internet.com IT Management eBook.
© 2007, Jupitermedia Corp.


There are nearly an infinite number and combination
of questions one can pose to a DBA candidate
in an interview. I prefer to lean towards
the conceptual, rather than the rote, as questions
of this kind emphasize your foundation
and thorough understanding. Besides, I've
never been one to remember facts and details I
can lookup in a reference. Therefore, with that
in mind, here are some brainteasers for you to
ponder over.

1. Why is a UNION ALL faster than a UNION?
The union operation, you will recall, brings two
sets of data together. It will not, however, produce
duplicate or redundant rows. To perform
this feat of magic, a SORT operation is done on
both tables. This is obviously computationally
intensive, and uses significant memory as well.
A UNION ALL conversely just dumps collection
of both sets together in random order, not worrying
about duplicates.

2. What are some advantages to using Oracle's
CREATE DATABASE statement to create a
new database manually?

• You can script the process to include it in a set
of install scripts you deliver with a product.
• You can put your create database script in
CVS for version control, so as you make changes
or adjustments to it, you can track them like you
do changes to software code.
• You can log the output and review it for
errors.
• You learn more about the process of database
creation, such as what options are available and
why.

3. What are three rules of thumb to create good
passwords? How would a DBA enforce those
rules in Oracle? What business challenges
might you encounter?

Typical password cracking software uses a dictionary
in the local language, as well as a list of
proper names, and combinations thereof to
attempt to guess unknown passwords. Since
computers can churn through tens of thousands
of attempts quickly, this can be a very effective
way to break into a database. A good password
therefore should not be a dictionary word; it
should not be a proper name, birthday, or other
obvious guessable information. It should also be
of sufficient length, such as eight to 10 characters,
including upper and lowercase, special
characters, and even alternate characters if possible.
Oracle has a facility called password security
profiles. When installed they can enforce complexity,
and length rules as well as other password
related security measures.
In the security arena, passwords can be made
better, and it is a fairly solvable problem. What
about in the real world? Often the biggest challenge
is in implementing a set of rules like this
in the enterprise. There will likely be a lot of
resistance to this, as it creates additional hassles
for users of the system who may not be
used to thinking about security seriously.
Educating business folks about the real risks,
by coming up with real stories of vulnerabilities
and break-ins you've encountered on the job, or
those discussed on the internet goes a long way
towards emphasizing what is at stake.


4. Describe the Oracle Wait Interface, how it
works, and what it provides. What are some
limitations? What do the
db_file_sequential_read and db_file_scattered_
read events indicate?

The Oracle Wait Interface refers to Oracle's data
dictionary for managing wait events. Selecting
from tables such as v$system_event and v$session_
event give you event totals through the life
of the database (or session). The former are
totals for the whole system, and latter on a per
session basis. The event db_file_sequential_read
refers to single block reads, and table accesses
by rowid. db_file_scattered_read conversely
refers to full table scans. It is so named because
the blocks are read, and scattered into the
buffer cache.


5. How do you return the top-N results of a
query in Oracle? Why doesn't the obvious
method work?

Most people think of using the ROWNUM
pseudocolumn with ORDER BY. Unfortunately
the ROWNUM is determined before the ORDER
BY so you don't get the results you want. The
answer is to use a subquery to do the ORDER
BY first. For example to return the top five
employees by salary:
SELECT * FROM (SELECT * FROM employees
ORDER BY salary) WHERE ROWNUM < 5;


6. Can Oracle's Data Guard be used on
Standard Edition, and if so how? How can you
test that the standby database is in sync?

Oracle's Data Guard technology is a layer of
software and automation built on top of the
standby database facility. In Oracle Standard
Edition it is possible to be a standby database,
and update it manually. Roughly, put your production
database in archivelog mode. Create a
hotbackup of the database and move it to the
standby machine. Then create a standby controlfile
on the production machine, and ship
that file, along with all the archived redolog
files to the standby server. Once you have all
these files assembled, place them in their proper
locations, recover the standby database, and
you're ready to roll. From this point on, you
must manually ship, and manually apply those
archived redologs to stay in sync with production.
To test your standby database, make a change to
a table on the production server, and commit
the change. Then manually switch a logfile so
those changes are archived. Manually ship the
newest archived redolog file, and manually
apply it on the standby database. Then open
your standby database in read-only mode, and
select from your changed table to verify those
changes are available. Once you're done, shutdown
your standby and startup again in standby
mode.

7. What is a database link? What is the difference
between a public and a private database
link? What is a fixed user database link?

A database link allows you to make a connection
with a remote database, Oracle or not, and
query tables from it, even incorporating those
accesses with joins to local tables.

A private database link only works for, and is
accessible to the user/schema that owns it. Any
user in the database can access a global one.
A fixed user link specifies that you will connect
to the remote db as one and only one user that
is defined in the link. Alternatively, a current
user database link will connect as the current
user you are logged in as.

As you prepare for your DBA Interview, or prepare
to give one, we hope these questions provide
some new ideas and directions for your
study. Keep in mind that there are a lot of directions
an interview can go. As a DBA, emphasize
what you know, even if it is not the direct
answer to the question, and as an interviewee,
allow the interview to go in creative directions.
In the end, what is important is potential or aptitude,
not specific memorized answers. So listen
for problem-solving ability, and thinking outside
the box, and you will surely find or be the candidate
for the job.
论坛徽章:
8
ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:442009日食纪念
日期:2009-07-22 09:30:002010新春纪念徽章
日期:2010-01-04 08:33:082010新春纪念徽章
日期:2010-03-01 11:19:072011新春纪念徽章
日期:2011-01-04 10:37:10ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15ITPUB 11周年纪念徽章
日期:2012-10-09 18:06:202013年新春福章
日期:2013-02-25 14:51:24
2#
发表于 2008-9-2 19:42 | 只看该作者
1 7 我在正式的interview里面遇到过。
2 3 句话就说完了,谁有耐心听这么长的答案啊。

使用道具 举报

回复
招聘 : 数据库管理员
论坛徽章:
8
会员2007贡献徽章
日期:2007-09-26 18:42:10ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44生肖徽章2007版:鼠
日期:2008-01-02 17:35:53奥运会纪念徽章:皮划艇激流回旋
日期:2008-06-26 14:29:27奥运会纪念徽章:射箭
日期:2008-07-18 13:01:38奥运会纪念徽章:羽毛球
日期:2008-10-24 14:08:29CTO参与奖
日期:2009-02-12 11:45:482013年新春福章
日期:2013-02-25 14:51:24
3#
发表于 2008-9-2 20:19 | 只看该作者
E问不好,中文的话,基本上都能答了。

多面试,对自己水平提高,查漏补缺有好处。

使用道具 举报

回复
论坛徽章:
31
数据库板块每日发贴之星
日期:2008-08-25 01:02:02数据库板块每日发贴之星
日期:2011-08-14 01:01:01茶鸡蛋
日期:2011-08-14 16:42:13ITPUB十周年纪念徽章
日期:2011-09-27 16:32:49ITPUB十周年纪念徽章
日期:2011-11-01 16:24:512012新春纪念徽章
日期:2012-01-04 11:54:26版主1段
日期:2012-05-15 15:24:11ITPUB 11周年纪念徽章
日期:2012-10-09 18:09:19现任管理团队成员
日期:2012-10-18 17:10:24马上有车
日期:2014-02-19 11:55:14
4#
发表于 2008-9-2 21:24 | 只看该作者
学习一下

使用道具 举报

回复
论坛徽章:
1
优秀写手
日期:2013-12-18 09:29:12
5#
发表于 2008-9-2 23:31 | 只看该作者
考得太细了,即使是一个很专业的DBA,在不查资料的情况下,也可能不能详细地回答

使用道具 举报

回复
论坛徽章:
27
会员2006贡献徽章
日期:2006-04-17 13:46:34奥运会纪念徽章:自行车
日期:2008-09-04 16:35:57数据库板块每日发贴之星
日期:2008-09-24 01:03:37生肖徽章2007版:鼠
日期:2008-11-14 12:38:47生肖徽章2007版:马
日期:2008-11-24 08:53:01生肖徽章2007版:羊
日期:2008-12-05 09:36:23生肖徽章2007版:龙
日期:2008-12-08 09:33:53八级虎吧徽章
日期:2008-12-08 16:10:58数据库板块每日发贴之星
日期:2008-12-09 01:01:05生肖徽章2007版:龙
日期:2009-03-16 17:39:22
6#
发表于 2008-9-3 12:54 | 只看该作者
都是些基础知识

使用道具 举报

回复
论坛徽章:
76
双子座
日期:2015-07-28 14:26:072012新春纪念徽章
日期:2012-02-13 15:09:52ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15鲜花蛋
日期:2011-08-26 02:02:24管理团队成员
日期:2011-05-07 01:45:082010广州亚运会纪念徽章:皮划艇
日期:2011-04-18 11:24:412011新春纪念徽章
日期:2011-02-18 11:43:342011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:15
7#
发表于 2008-9-3 13:09 | 只看该作者
基础知识

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表