eygle.com   eygle.com
eygle.com  
 

« March 14, 2005 | Blog首页 | March 16, 2005 »



March 15, 2005

《Oracle数据库性能优化》书稿已经交付出版社

作者:eygle

出处:http://blog.eygle.com

今天把书稿交付给出版社,正式进入出版流程。
希望五·一之前这本书可以和大家见面。

审稿,编辑,真是把自己累得够呛,看来文档的规范化,格式化的确非常重要,前期工作做得好了,自然可以事半功倍,可是如果做得不好,后面的事情自然是累人。

感觉起来,人邮的态度要比冶金认真得多,希望这是一次愉快的合作。

~

Posted by eygle at 11:23 PM | Comments (4)


在Linux下使用Mutt发送邮件附件

作者:eygle

出处:http://blog.eygle.com

Muttmutt_button.gif是个功能强大的email 程序,引用一段别人的话:

"你也许听说过这句话?这不是危言耸听,我还没有遇到一个令我满意的 email 程序,直到我遇到 mutt。它不是图形界面的,但是它非常强大和方便。我曾经把它忽略,但是后来我发现其它 email 程序都有某种我不喜欢的怪毛病。最后我选择了 Mutt。"

我在这里只想介绍一下怎样使用Mutt在Linux/Unix下发送邮件:
以下是命令示范:

[root@jumper root]# mutt -s "this is a test mail" eygle@itpub.net -a a.c < /etc/hosts

其中:
s---主题
a---附件
最后追加的是邮件内容

这样就可以发送了。

如果想要了解更多关于Mutt的内容,可以访问http://www.mutt.org
或者这里有中文的介绍:
http://learn.tsinghua.edu.cn/homepage/2001315450/mutt_frame.html

~

Posted by eygle at 5:14 PM | Comments (0)


Oracle10g的UNDO_RETENTION自动化管理增强

作者:eygle

出处:http://blog.eygle.com

在AUM模式下,我们知道UNDO_RETENTION参数用以控制事务提交以后undo信息保留的时间。该参数以秒为单位,9iR1初始值为900秒,在Oracle9iR2增加为10800秒。但是这是一个NO Guaranteed的限制。
也就是说,如果有其他事务需要回滚空间,而空间出现不足时,这些信息仍然会被覆盖。
很多时候这是不希望看到的。

从Oracle10g开始,如果你设置UNDO_RETENTION为0,那么Oracle启用自动调整以满足最长运行查询的需要。当然如果空间不足,那么Oracle满足最大允许的长时间查询。而不再需要用户手工调整。

同时Oracle增加了Guarantee控制,也就是说,你可以指定UNDO表空间必须满足UNDO_RETENTION的限制。

SQL> alter tablespace undotbs1 retention guarantee;

Tablespace altered

SQL> alter tablespace undotbs1 retention noguarantee;

Tablespace altered

在DBA_TABLESPACES视图中增加了RETENTION字段用以描述该选项:

SQL> select tablespace_name,contents,retention from dba_tablespaces;

TABLESPACE_NAME                CONTENTS  RETENTION
------------------------------ --------- -----------
SYSTEM                         PERMANENT NOT APPLY
UNDOTBS1                       UNDO      NOGUARANTEE
SYSAUX                         PERMANENT NOT APPLY
TEMP                           TEMPORARY NOT APPLY
USERS                          PERMANENT NOT APPLY
EYGLE                          PERMANENT NOT APPLY
TEST                           PERMANENT NOT APPLY
ITPUB                          PERMANENT NOT APPLY
TRANS                          PERMANENT NOT APPLY
BIGTBS                         PERMANENT NOT APPLY
TEMP2                          TEMPORARY NOT APPLY
TEMP03                         TEMPORARY NOT APPLY
DFMBRC                         PERMANENT NOT APPLY
T2K                            PERMANENT NOT APPLY

14 rows selected

在Oracle官方文档上这样解释:
RETENTION Undo tablespace retention:
GUARANTEE - Tablespace is an undo tablespace with RETENTION specified as GUARANTEE

A RETENTION value of GUARANTEE indicates that unexpired undo in all undo segments in the undo tablespace should be retained even if it means that forward going operations that need to generate undo in those segments fail.

NOGUARANTEE - Tablespace is an undo tablespace with RETENTION specified as NOGUARANTEE

NOT APPLY - Tablespace is not an undo tablespace.

Posted by eygle at 9:56 AM | Comments (0)



CopyRight © 2004-2008 eygle.com, All rights reserved.