Tip: 看不到本站引用 Flickr 的图片? 下载 Firefox Access Flickr 插件 | AD: 订阅 DBA notes -- ![]()
2008-06-28 Sat
做财帮子,一个直接的收获就是一些理财和金融的知识,上证指数陪着我们从3000点杀到6000点,又跌到现在的2748点,更可谓刺激非常。
今天和一个朋友聊起股市,他说他自己现在满仓,亏得不敢看。我自己在6000点的时候是2/3债券基金,1/3股票型基金,跌到3500点的时候,转换了一部分债券型到股票型,两个月前开始定投股票型基金,目前接近60%的股票型,40%的债券型。累计收益-18%,超过81%的财迷。
很多人都骂中国的股市不理性,可很少有人细究为什么会这样,更多的人乐于把责任推卸给政府、证监会、机构或者当年忽悠他们进场的人。要我说,的确有这样那样的原因,但是股市是股民组成,股市的不理性正是股民的不理性的反映,是我们的股民造就了我们的股市,不是别人。06/07年的股市暴涨让多少本来理性的人失去了理性,又让更多本来没什么理性可言的人冲进了市场,泡沫就是这样起来的。
也总有人在这个时候质疑为什么政府不救市。股市上涨的时候是没有人喜欢政府来干预市场经济的,去年调高印花税,不知道多少人骂呢。我并不是来开脱谁的责任,但如果已经有人通过一些手段来告诉你风险很高了,你没有听,还要他怎么救你呢?还有我也想不出该怎么救市,如果政府真有什么有效的干预手段让救股市到规规矩矩回到6000点,手段一出,招来的就是索罗斯们。如果这次学费白交了,下次只能还做受害者。
我选择这个时候开始定投,并不是说我认为现在是底了,我不是来抄底的,只是觉得现在比较低了,去年11月份之前,相信每个人都会想,如果2700点有一次进的机会该有多好,现在还有多少人把这看成机会呢?我选择定投而不是一下全赌进去,如果股市再跌,那么下个月我可以买到更便宜的基金,熊市时间越长,我能够收集的筹码越多,总有涨上去的那天。这就是定投的好处。
这些都是我和朋友谈的对现在市场的看法,我肯定不是什么专家,不过是经过这一年的一些所得。
本文链接 | 快来评论As of Service Pack 1 of HMC V7R3.3, there's a new access control that must be considered when creating new users. By default, remote access is not allowed, even if in general you've already allowed remote users.
The box to check if you want to allow remote access is found under User Properties in the task used to create or modify a user's account. When creating a user account, remember to click on User Properties at the bottom of the task menu. In the lower left corner of the menu that comes up next you'll find a check box that says Allow Remote Access via the Web. By default, it's unchecked, so be sure to change the value if this user will access the HMC over the web.
There are some other settings you can select on this same menu: session timeout minutes (default 0), verify timeout minutes (default 15), idle timeout minutes (default 0), and minimum time in minutes between password changes (default 0). You can also select an option to disable the account for inactivity in a certain number of days (default 0), or never disable for inactivity.
同事来说在$ORACLE_HOME/rdbms/log下有大量产生trace文件,trace的文件内容为:
Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
ORACLE_HOME = /oracle/app/oracle/product/9.2.0
System name: HP-UX
Node name: jx_db03
Release: B.11.11
Version: U
Machine: 9000/800
Instance name: jxadt
Redo thread mounted by this instance: 0 <none>
Oracle process number: 0
100
Ioctl ASYNC_CONFIG error, errno = 1
其实这个问题是由于开异步IO的时候,没有给系统的oracle用户MLOCK权限,当主机已经开启的异步IO的参数,但是没给MLOCK权限,就会报这个错。
我们在HPUX上开异步IO正确做法应该为:
1、Hp-ux使用Aio的补丁要求
a、Hp-ux 11.00的补丁要求为:
PHKL_22126: s700_800 VM,async,hyperfabric
b、HP-UX 11i的补丁要求为:
PHKL_25212 vm preemption point, mlock/async_io
PHKL_25506 asyncio driver patch
2. 创建aio字符设备
% /sbin/mknod /dev/async c 101 0x0
% chown oracle:dba /dev/async
% chmod 660 /dev/async
3. 用sam调整内核参数
-> Kernel Configuration
-> Drivers
-> 选择'asyncdsk'
-> Actions>Add Driver to Kernel. (此时pending state由out变为in状态)
-> Kernel Configuration
-> Configurable Parameters
-> max_async_ports
设置为初始化文件中的'processes'值+oracle后台进程数 (根据v$bgprocess,单实例后台进程数最多为78个)
4. 用sam设置aio_max_ops
-> Kernel Configuration
-> Configurable Parameters
-> aio_max_ops
-> 可设置为默认值2048
5. 设置oracle用户必须有MLOCK权限。
a. 设定dba组的MLOCK的权限
roolt#setprivgrp dba MLOCK
b. 避免重启后失效,需要设置:
vi /etc/privgroup 添加如下行:
dba MLOCK
如果没有设置MLOCK权限,在$ORACLE_HOME/rdbms/log/中有大量含Ioctl ASYNC_CONFIG error, errno = 1的trace文件。
6. 其他设置。在hpux中,大部分的进程会遵循一个共享时间表的策略,在业务的忙时,容易造成latch。所以,我们应该设置SCHED_NOAGE参数,使得进程不会具有执行的优先级。
a. root#setprivgrp dba RTSCHED RTPRIO
b. 同时为了重启后参数失效,在/etc/privgroup文件中添加:
dba RTSCHED RTPRIO
结合上面的MLOCK,/etc/privgroup文件中应该为:
dba RTSCHED RTPRIO MLOCK
c. 数据库中:alter system set hpux_sched_noage=178 scope=spfile;
参考文档:(metalink)Doc ID:139272.1和302801.1
这是经典的软件测试的两个概念,难怪有人说,软件测试的过程就是Verification和validation的过程。其中的verification我们就翻译为确认-对需求的确认。validation翻译为验证-验证最终的产品是我们期望的。下面看看wiki的定义吧。
Verification and Validation (software)
In software project management, software testing, and software engineering, Verification and Validation (V&V) is the process of checking that a software system meets specifications and that it fulfils its intended purpose. It is normally part of the software testing process of a project. In pharmaceutical industry, verification involves testing the suitability of well established procedures or (compendial) methods, whereas validation varies from Cross validation, Empirical validation, periodic partial validation, internal/external validation, competence validation by nature, and Cleaning validation, Process validation, Equipment validation, or Documentation validation by tasks.
Definitions
(more…)
2008-06-27 Fri
Hot off the presses, Summit slide decks:
Red Hat Enterprise Linux Kernel Performance Optimization [PDF] - John Shakshober and Larry Woodman
Why Computers Are Getting Slower (And What We Can Do About It) [PDF] - Rik Van Riel
The Virtualization Toolbox. Open Source Solutions for Managing Virtual Environments [PDF 1] [PDF 2] - Dan Berrange and Richard Jones
Func - the Fedora Universal Network Connector [PDF] - Michael DeHann and Adrian Likins
Dynamic Grid Computing with Red Hat Enterprise MRG & Amazon EC2 [PDF] - Bryan Che
Missed the show? Catch up with our videos or check out the full list of available slide decks. We’ll be adding more of our (and your) favorites as they come in.
Other voices:
- Barton George (from Sun): Sun and Red Hat talk
- Halamka becomes an open source believer (from Dana Blankenhorn for ZDNet Healthcare)
Author:NinGoo posted on NinGoo.net
MySQL的客户端命令行工具,有很多方便使用者的特性,某些方面甚至可以说比Oracle的sqlplus更加人性化。当然从整体来说,还是sqlplus更加方便些,这么说或许是我对sqlplus更加熟悉吧。这里记录下MySQL命令行几个比较常用的特性。
1.使用\G按行垂直显示结果
如果一行很长,需要这行显示的话,看起结果来就非常的难受。在SQL语句或者命令后使用\G而不是分号结尾,可以将每一行的值垂直输出。这个可能也是大家对于MySQL最熟悉的区别于其他数据库工具的一个特性了。
mysql> select * from db_archivelog\G
*************************** 1. row ***************************
id: 1
check_day: 2008-06-26
db_name: TBDB1
arc_size: 137
arc_num: 166
per_second: 1.6
avg_time: 8.7
2.使用pager设置显示方式
如果select出来的结果集超过几个屏幕,那么前面的结果一晃而过无法看到。使用pager可以设置调用os的more或者less等显示查询结果,和在os中使用more或者less查看大文件的效果一样。
使用more
mysql> pager more
PAGER set to ‘more’
mysql> \P more
PAGER set to ‘more’
使用less
mysql> pager less
PAGER set to ‘less’
mysql> \P less
PAGER set to ‘less’
还原成stdout
mysql> nopager
PAGER set to stdout
3.使用tee保存运行结果到文件
这个类似于sqlplus的spool功能,可以将命令行中的结果保存到外部文件中。如果指定已经存在的文件,则结果会附加到文件中。
mysql> tee output.txt
Logging to file ‘output.txt’
或者
mysql> \T output.txt
Logging to file ‘output.txt’
mysql> notee
Outfile disabled.
或者
mysql> \t
Outfile disabled.
4.执行OS命令
mysql> system uname
Linux
mysql> \! uname
Linux
5.执行SQL文件
mysql> source test.sql
+—————-+
| current_date() |
+—————-+
| 2008-06-28 |
+—————-+
1 row in set (0.00 sec)
或者
mysql> \. test.sql
+—————-+
| current_date() |
+—————-+
| 2008-06-28 |
+—————-+
1 row in set (0.00 sec)
其他还有一些功能,可以通过help或者?获得MySQL命令行支持的一些命令。
Related Articles
PermLink: http://www.ningoo.net/html/2008/mysql_cmdline_tips_g_pager_tee.html
2008-06-26 Thu
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
