下面是 September, 2007的汇总

Oracle面试题目及解答

Sunday, September 30th, 2007

从网上转来的,可能面试DBA的时候会有帮助吧。

这里的回答并不是十分全面,这些问题可以通过多个角度来进行解释,也许你不必在面试过程中给出完全详尽的答案,只需要通过你的解答使面试考官了解你对oracle概念的熟悉程度。

1. 解释冷备份和热备份的不同点以及各自的优点

解答:热备份针对归档模式的数据库,在数据库仍旧处于工作状态时进行备份。而冷备份指在数据库关闭后,进行备份,适用于所有模式的数据库。热备份的优点在于当备份时,数据库仍旧可以被使用并且可以将数据库恢复到任意一个时间点。冷备份的优点在于它的备份和恢复操作相当简单,并且由于冷备份的数据库可以工作在非归档模式下,数据库性能会比归档模式稍好。(因为不必将archive log写入硬盘)

2. 你必须利用备份恢复数据库,但是你没有控制文件,该如何解决问题呢?

解答:重建控制文件,用带backup control file 子句的recover 命令恢复数据库。

3. 如何转换init.ora到spfile?

解答:使用create spfile from pfile 命令。
(more…)

如何活学活用sed和awk

Friday, September 28th, 2007

sed和awk都是功能非常强大的流编辑器,如果能活学活用,常常可以节省很多时间,收到事半功倍的效果。

这里引用的两篇文章都不长,而且例子非常丰富,希望能对你有所帮助。

先说说awk:

Awk is an powerful command language that allows the user to manipulate files containing columns of data and strings. Awk is extremely useful, both for general operation of Unix commands, and for data reduction (e.g. IRAF). You might also learn how to use the stream editor sed. Many applications of awk resemble those done on PC spreadsheets.

This file contains a number of examples of how to use awk. I have compiled this table gradually over a couple of years as I’ve learned to do new things. Everyone who reduces data with IRAF should learn the fundamentals of AWK Learning to do even simple things will save you a lot of time in the long run. It should take you less than an hour to read through this file and learn the basics.

There are two ways to run awk. A simple awk command can be run from a single command line. More complex awk scripts should be written to a command file. I present examples of both types of input below.
(more…)

小猪猪肚子好了

Tuesday, September 25th, 2007

前几天小猪猪拉肚子,本来就瘦小的身子,越发弱不禁风了

去医院,医生开了几种药,回来吃了,效果不是很明显,还是有些拉。

后来打电话回去,老妈告诉了我们一个小儿腹泻的秘方:用青的柿子(记得是青的)放锅里煮开,然后拿水给小孩洗脚,据说效果十分明显。

我们本打算第二天买几个青柿子做个实验,结果头天晚上,对门爷爷给了一记膏药,贴在肚脐眼上,第二天就傍晚就好了。

只好下次试了,如果你家宝宝不小心也腹泻,你也不妨试试。并把结果告诉我们,谢谢。

种瓜得瓜,种豆得豆

Sunday, September 23rd, 2007

我家阳台不大,也就三四个平米吧,而且形状不是十分规则

这就给我充分利用它带来了一定的难度,本来打算放几个藤椅,摆个茶几,中秋节晚上一家人围坐当中,品茶赏月,多好啊。–这是我梦想的阳台

现在的情况是随便被几盆知名不知名的花草植物等占领了。而且自从我们搬进来之后就一直没有间断过有偶尔的收获。

最早是一颗小西红柿,种子不知道哪里来的,后来开花结果,倒也是收获了10几颗据说味道不错的西红柿。
后来就是一株南瓜了,接了大概三四个鸡蛋大小的南瓜,不过枝叶倒是十分的繁茂。
再后来岳父大人中了几颗姜,结果也出不少的仔姜,被我们吃掉了。
老婆在上面中了一颗眼看就要发霉的红薯,现在红薯藤已经严严实实的快爬满整个阳台了。

最令人惊讶的是,老婆汇报这几天又发现一个不明外来物,我昨天瞄了一眼,你猜是什么

居然是一颗芝麻,芝麻开花节节高,而且已经开花结果了,长了三两个芝麻梭子。看来我们家下个月连油钱都省了,哈哈!

种子地址换了

Wednesday, September 19th, 2007

最近好像Feedburner坏了,看到很多人都搬家了,我也挪挪窝吧。

麻烦各位订阅的观众朋友修改一下地址:
新地址是:

http://feed.feedsky.com/rickyzhu 

谢谢。

测试知识问与答第六期

Sunday, September 16th, 2007

Q: What is the purpose of test strategy?

A: Reason number 1: The number one reason of writing a test strategy document is to “have” a signed, sealed, and delivered, FDA (or FAA) approved document, where the document includes a written testing methodology, test plan, and test cases.

Reason number 2: Having a test strategy does satisfy one important step in the software testing process.

Reason number 3: The test strategy document tells us how the software product will be tested.

Reason number 4: The creation of a test strategy document presents an opportunity to review the test plan with the project team.

Reason number 5: The test strategy document describes the roles, responsibilities, and the resources required for the test and schedule constraints.

Reason number 6: When we create a test strategy document, we have to put into writing any testing issues requiring resolution (and usually this means additional negotiation at the project management level).

Reason number 7: The test strategy is decided first, before lower level decisions are made on the test plan, test design, and other testing issues.

(more…)

第六次活动顺利结束

Sunday, September 16th, 2007

感谢大家的支持和关注!

广东测试联盟深圳分会第六次活动完满结束,这次参加人数再创新高,接近30人。
希望大家一如既往地关心和关注我们的测试沙龙,多谢。

稍后我会把这次活动的ppt和一些资料发给大家。


鉴于众多同行对这个课题感兴趣,已经把资料传到google docs,感兴趣的朋友可以直接直接下载ppt讲稿

三天一层楼VS三天一个亿

Monday, September 10th, 2007

两个看起来没有任何关系的话题,不过都是因为发生在深圳而已,就有了必然的联系。

最近几天深圳大街小巷议论最多的莫过于这个话题了,上周末华强北茂业推出了一个疯狂的活动-“500元现金兑换1200元购物券”,结果三天之内创造了一个奇迹,销售额过亿!这实在又是一个零售业的记录。看来深圳人的购买力不是一般意义的强。据说现场十分壮观,有图片为证。

联想起上个世纪90年代,深圳就曾经创造了三天一层楼的深圳速度。深圳是个创造神话和奇迹的地方。


Close
E-mail It