Tip: 看不到本站引用 Flickr 的图片? 下载 Firefox Access Flickr 插件 | AD: 订阅 DBA notes -- ![]()
2008-09-01 Mon
今天配置一个Oracle 10g DataGuard的环境,遇到一个如下错误:
Tue Sep 2 08:21:26 2008
Errors in file /home/oracle/admin/ora10g/udump/ora10g_ora_32028.trc:
ORA-16026: parameter LOG_ARCHIVE_DEST_1 contains an invalid attribute value
ORA-16026是因为主库没有设置参数log_archive_config参数,正确设置这个参数可以解决这个问题。
这个参数的设置格式类似:
*.log_archive_config='dg_config=(primary,standby)'
也可以在命令行设置:
SQL> alter system set LOG_ARCHIVE_CONFIG='DG_CONFIG=(primary,standby)';System altered.
SQL> show parameter log_archive_config
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_config string DG_CONFIG=(primary,standby)
这里的 DG_CONFIG=(primary,standby) 包含的是主库与备库的db_unique_name.
其实我犯的还不是这个错误:
SQL> show parameter db_uniNAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_unique_name string priamry
是因为一不留神,PRIMARY被我拼写错误,小的错误也犯不得,在小的地方,同样需要警惕。
-The End-
相关文章|Related Articles
- ORA-07445 数据库也会旧病复发
- ORA-00704 与 bootstrap 错误
- Duplicate standby 与 RMAN-05501 错误
- duplicate standby 与 RMAN-05507 错误
- Oracle10gR2的ORA-06512 OLAP错误
评论数量(0)|Add Comments
本文网址:http://www.eygle.com/archives/2008/09/dataguard_ora_16026.html
Shared by Fenng
可能还有很多问题。请多指教!
支付宝 WAP 平台 ( wap.alipay.com ) 经过工程师们一个多月的艰苦开发与测试,于 8 月 15 日正式发布上线。支付宝 WAP 平台基于会员服务化、开放平台实现,在用户、账户和交易管理上实现了与互联网平台的贯通。
通过 WAP 平台,支付宝会员能够使用如下服务:
- 用手机即可登录支付宝账户,方便的进行账户管理(查询、卡通充值、明细等操作)、交易管理(查询、确认付款、交易明细);
- 支付宝 WAP 平台为淘宝 WAP 提供新的交易接口并实现信任登录,所有支付宝用户均可以在淘宝 WAP 创建交易并付款,随时随地完成购物流程;
- 为外部手机电子商务平台提供交易接口,支付宝签约商户可以通过 WAP 接口实现基于手机的在线收费。
功能示例参考图(左边为账户管理,右为交易管理):

还等什么? 不妨现在就用手机登录一下 支付宝 WAP,体验一下支付宝带给您的移动便捷性。
支付宝 WAP 平台 ( wap.alipay.com ) 经过工程师们一个多月的艰苦开发与测试,于 8 月 15 日正式发布上线。支付宝 WAP 平台基于会员服务化、开放平台实现,在用户、账户和交易管理上实现了与互联网平台的贯通。
通过 WAP 平台,支付宝会员能够使用如下服务:
- 用手机即可登录支付宝账户,方便的进行账户管理(查询、卡通充值、明细等操作)、交易管理(查询、确认付款、交易明细);
- 支付宝 WAP 平台为淘宝 WAP 提供新的交易接口并实现信任登录,所有支付宝用户均可以在淘宝 WAP 创建交易并付款,随时随地完成购物流程;
- 为外部手机电子商务平台提供交易接口,支付宝签约商户可以通过 WAP 接口实现基于手机的在线收费。
功能示例参考图(左边为账户管理,右为交易管理):

还等什么? 不妨现在就用手机登录一下 支付宝 WAP,体验一下支付宝带给您的移动便捷性。
We've seen an amazing response to the release of Movable Type Pro and Movable Type 4.2. As with any project of this scope, we have discovered a few small but significant issues, which are addressed by our release of the Movable Type 4.21 update last week.
Full details of the 4.21 update are available on movabletype.org, the community site that's a companion to this official product site. The issues resolved between 4.2 and 4.21 are particularly important for customers using Custom Fields or extensive template mappings.
Below you'll find the Movable Type Update Advisor. If you are using a version of MT prior to 4.2, this guide makes it easy to plan your move to Movable Type 4.2.
Move from MT 4.1 or earlier to Version 4.21
- Release Type: Feature Release, with significant new features, improved performance, and enhanced security.
- Mandatory? Strongly Recommended for all MT users on all versions, especially those concerned about performance.
- Performance Implications: Expect significant performance increase. This release provides publishing improvements of 2x to 3x on unmodified templates, and search speeds can improve up to 100x. Administrators can further enhance performance with a few simple optimizations.
- Plugins Affected: None that we are aware of — all MT4.x plugins should work in MT 4.21. Some plugins should be updated to newer versions to take advantage of features in this release.
- Templates Affected: No changes in your templates are required. Taking advantage of some new features in MT 4.2 and MT Pro can require optional template modifications.
- System Requirements: This release has no new or additional system requirements. Many configurations will find decreased system requirements, especially around memory usage.
- Licensing considerations: Smooth sailing. MT 4.21 is a free update for users of any version of MT 4.0. MT Pro is a free update for all paying users of MT 4.x and is a free download for bloggers.
- Upgrade Fatigue: No planned updates are scheduled until the next feature release of MT4. This will only change if significant security issues are found which require a 4.2x release.
Downloads are available in your account for current customers or through the download page.
Want to know more?
To learn more, read our announcement post about Movable Type Pro and version 4.2, or check out "It raises the bar", our roundup of the critical reaction to MT Pro's launch.
To find out more about the specific fixes between 4.2 and 4.21, view the version 4.21 update announcement. And consult the Movable Type documentation for information about the new release, including what's new in Movable Type 4.2.
If you use Firefox, you’re in for a treat. If not, please download it and resume reading about Ubiquity and how you can use it to query the Oracle database documentation library and do other neat stuff using simple commands.
Jake was struggling to define it, but basically, Ubiquity is a Firefox extension, a powerful one. Here is a short video that gives you an introduction to what it can do.
Cool, isn’t it? Go ahead, install Ubiquity 0.1.1 and give it a whirl.
OK, now that you have Ubiquity enabled in your Firefox browser, visit the following page:
http://awads.net/firefox/ubiquity/commands/ubiquity.html
When you are on that page, you will get a message offering you the choice of subscribing to my Ubiquity commands which are also listed on the page.

Currently, I have only one command: oradoc. It is similar to Don’s command but it has the added feature of displaying the search results in Ubiquity’s preview area.
Currently the preview is for Oracle database 11g and 10g documentation libraries. This was possible because John provided an RSS feed for DB 11g search results. I used Dapper to create the DB 10g search results feed.
I use and parse the feeds in the command code to generate the preview using jQuery’s AJAX and XML Goodness.
By the way, you can use Ubiquity’s “search” command to search with your Oracle Search Plugins, or other search plugins, installed in your browser’s search bar.
Here is a short screencast that demonstrates how to use the oradoc Ubiquity command and shows you other neat Ubiquity features: Click here to see the screencast.
---
Related Articles at Eddie Awad's Blog:
- Search Oracle Documentation Google Style
- Oracle Firefox search plugin
- Oracle Global Documentation Search Not So Global
- Oracle Bookmarklets, Search Plugins and New Features Updated
- Oracle docs virtual book Firefox plugin

An anonymous tipster wrote to us this morning to tell us that Cuil, the ill-fated “Google Killer,” has unleashed its Twiceler indexing bot on websites across the globe and in the process, has brought many sites down.
“I don’t know what spawned it, but when Cuil attempts to index a site, it does so by completely hammering it with traffic,” the tipster wrote. “So much, that it completely brings the site down. We’re 24 hours into this “index” of the site, and I’ve had to restrict traffic to the site down to 2 packets per second, while discarding the rest, or otherwise it makes the site unusable.”
The Admin Zone forums are abuzz over Cuil’s overzealous method for indexing. Countless posters on the site have said that their websites have been brought down because of the Twiceler robot and one user said it “leeched enormous amounts of bandwidth — nearly 2GB this month until it was blocked. It visited nearly 70,000 times!”
Website owners are also saying that the way Cuil indexes sites isn’t scientific in any way and is actually quite “amateurish.” According to those who experienced the Twiceler onslaught, the bot seems to “randomly hit a site and continue to guess and generate pseudo-random URLs in an attempt to find pages that aren’t accessible by links. And by doing this, they completely bring a site down to where it’s not functional.”
Upset site owners contacted Cuil to see why Twiceler was hitting sites so often. James Akers, Cuil’s Operational Engineer responded to the issue by saying that “Twiceler is an experimental crawler that we are developing for our new search engine. It is important to us that it obey robots.txt, and that it not crawl sites that do not wish to be crawled. If you wish I will glad to add your site to our list of sites to exclude, but I need you to tell the site name to block as email return addresses frequently from the domains that wish to be blocked.”
Akers also claims that Cuil has seen a “number of crawlers” that pretend to be Twiceler, and site owners should consult the company’s IP addresses page to determine if it’s really Cuil causing all the trouble.
Cuil has yet to respond to a request for comment, but it doesn’t look like the pelting of sites by the company’s Twiceler bot is an isolated incident. And if it’s true that Twiceler is trying to find pages on sites that don’t even exist to simply increase the index size, Cuil should work quickly to modify the bot before it receives even more negative publicity.
Crunch Network: CrunchGear drool over the sexiest new gadgets and hardware.
但真实情况并非如此。实际上,从05年开始,我的主要工作就转到了互联网和软件的产品管理上,相继担任的都是公司产品经理、总监。只是出于惯性或工作的需要,一直保持着对互联网新技术的关注与追踪。不过随着工作角色的转变,我的Blog并没有发生明显变化,Movable Type中文化包照常更新,对互联网的观察与分析还是老样子,不过由于工作原因变得越来越少。这一切,给人造成了一个假象:我还是以前那个从事技术开发和平台支撑的我,虽然我从未单纯的专注于这样的工作。
这就是互联网!不管你使用的是昵称还是实名,他都可以为你造就一个与众不同的人格。互联网中的每个ID都是鲜活有生命的,这个ID要成为什么样的人,全由你的双手去创造,并进而影响你的本体。
所以,不要纠缠于真实与虚拟了,不管你有多少马甲,他/她都是你人格中的一部分。神仙的化身能力,在互联网中得以实现。不过要当心化身过多,造成人格分裂,嘿嘿。
2008年9月1日晚随想
呃,别会错意,我的意思不是说 MySQL 开始 filesort 就会不稳定,而是说他的排序算法不是 stable 的。
某表中有两个字段,一个是 log_time, DATETIME 类型, 一个是 user_id , BIGINT 类型。 SQL 是 SELECT XXX FROM xx_table WHERE user_id = 111 ORDER BY log_time DESC 。
一开始表上的索引建错了,建成了 user_id,log_time 的联合索引,于是上面的 SQL 用上这个索引以后,就做了 filesort , 这时候发现所有 log_time 相同的列顺序是乱的,有的按照插入顺序,有的不是。而当重新建立 log_time,user_id 的索引之后,结果中 log_time 相同的就都是按照插入顺序来排序的了。
这个发现有啥用?似乎也没啥太大用处倒是。如果为了严格保持插入顺序,那么设计时候就应该用精度更高的 log_time 。不过如果对插入顺序的要求不是非常严格的要求,那么正确建立索引直接利用它的特性也还算省事。
周末去了一趟香港,450D到手。
现在去香港还真是方便,从我家打车到西部通道20分钟不到,过关之后大巴40分钟到九龙塘。算上过关的时间,也就一个小时多点。10:30左右跟香港的同事在九龙塘地铁会合,直奔目的地旺角。
因为这事准备的充分,所以基本没浪费什么时间,同行的同事也早就准备好了攻略,先去几个比较大的店铺询价,百老汇和丰泽的价钱基本相同,港币6200左右,折成人民币跟深圳价钱一样。后去西洋菜街的久城大厦,结果碰壁,11点了都没开张,香港的夜生活比较丰富,所以店铺开张也一般较晚。路过电梯间的时候发现几个招聘广告,洗碗工/勤杂工等 月薪6500-7000,^_^
午饭之后,经过一番比较,发现久诚大厦9楼的恒康数码价钱最厚道,套机港币5880,另外送4G SD卡,相机包,电池一块,贴膜,三脚架。折成RMB也就5200多点,性价比比较高,当即入手。Canon这两个型号(450D & 40D)在香港和澳门地区的保修值的一提,一般国内的店都是全国联保1年,这两款机器在港澳地区购买,全国联保两年,而且还有一个附加意外条例,大致是说发生跌落,水浸,雷击盗窃之类的意外事件,第一年只需花600港币(40D是800港币)即可重新购置一台,第二年只需要花市价的一半即可购置一台。比较人性化哈。店铺老板在我买的过程中,反复强烈给我推荐Nikon的D60,看来也是不折不扣的Nikon的粉丝。后来我抵制住了便宜1000块的诱惑,还是入手了450,不知道日后会不会后悔
去香港购物的话,付款有三种方法:1. 直接拿现金,RMB在香港很受欢迎 2. 用刷卡,我咨询过银行,如果你走Master或visa线路的话,是要收大概1.5%的手续费,如果走银联的话,不用手续费,不过店家给的汇率可能没那么高。
PS: 发文的时候,发现Ningoo老兄这两天也新入手450D ![]()
今天遇到一个问题,同事来说归档目录已经全部删除了,但是归档目录的大小还是100%,且执行shutdown immediate挂死。
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 262144 181520 80040 69% /
/dev/vg00/lvol1 314736 84360 198896 30% /stand
/dev/vg00/lvol8 4718592 1056280 3633752 23% /var
/dev/vg00/lvol7 2654208 1435160 1209576 54% /usr
/dev/vg00/lvol4 1540096 1028512 508264 67% /tmp
/dev/vg00/lvol9 10485760 4948670 5365096 48% /oracle
/dev/vg00/lvol6 94208000 7317328 86211936 8% /opt
/dev/vg00/lvol5 163840 2480 160104 2% /home
/dev/vg00/lv_arch 51216384 51112984 102632 100% /arch
$ cd /arch
$ ll
total 0
drwxr-xr-x 2 oracle dba 96 Dec 18 2007 lost+found
$
同时alertlog中也在不断的报错:
ORA-00312: online log 2 thread 1: '/dev/vg_audit01/rredo_128m_02'
ORA-00312: online log 2 thread 1: '/dev/vg_audit01/rredo_128m_12'
ORA-00312: online log 2 thread 1: '/dev/vg_audit01/rredo_128m_22'
Mon Sep 1 10:28:55 2008
引起该问题的主要原因,就是在/arch目录下,使用了rm *命令来删除归档,但是当前正好有归档进程(arch)正在写出,rm后文件系统的句柄无法释放,因此空间也没有释放。
此时我们用shutdown immediate命令无法关闭数据库,这是因为,在现在的状态下,arch已经被撑爆,所有组的redolog均为非inactive状态,shutdown immediate需要做checkpoint,checkpoint会将dirty buffer中的东西写入到db buffer,lgwr的触发条件之一就是dbwr进程写db file,此时,lgwr发现所有的redolog都是非inactive状态,都不能写,继续寻求arch切出,以期待能写redolog。而此时arch目录爆满,因此就报上述的错了。
我们用shutdown abort关闭数据库后,空间就释放了。
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 262144 181520 80040 69% /
/dev/vg00/lvol1 314736 84360 198896 30% /stand
/dev/vg00/lvol8 4718592 1072672 3617488 23% /var
/dev/vg00/lvol7 2654208 1435160 1209576 54% /usr
/dev/vg00/lvol4 1540096 1028512 508264 67% /tmp
/dev/vg00/lvol9 10485760 4945978 5367702 48% /oracle
/dev/vg00/lvol6 94208000 7317328 86211936 8% /opt
/dev/vg00/lvol5 163840 2480 160104 2% /home
/dev/vg00/lv_arch 51216384 107384 50709848 0% /arch
我们在删除归档的时候,一定不能全部删除,一定要留最后一个归档,以防万一。最安全的方法,当然是在rman中用delete input删除了。
This week I’ve worked with the customer doing certain work during maintenance window which involved a lot of data copying around between MySQL boxes. We had prepared well and had measured how fast we could copy the data between servers of these kind connected to the same network, and we did the same thing before. Using simple tar+netcat based copy we can get 80-90MB/sec on 1GigE assuming RAID is powerful enough. This applies to large Innodb tables with not overly fragmented tablespace, or it is easy to become IO bound rather than network bound.
As I mentioned you can get even better with using fast parallel compression like LZO or QuickLZ but there was no need in this case.
So estimates were great but once we had started the real copy process we saw the copy speed about 20MB/sec instead of projected 80MB/sec. The IO and CPU usage both on source and target servers was low so it must have been network. Though there was no other traffic between the servers.
The mystery could be easily resolved while looking at network topology. Some database servers were connected to Switch A others to Switch B which had only 1Gbit connection in between.
During the maintenance window multiple tasks concerning different servers made this connection to be the bottleneck.
What does this tell us ? Even if you’re the DBA you better to understand network topology to understand what kind of performance availability and failure scenarios you should expect. If your network is too complicated it is at least worth to know the numbers.
It does not only apply to network but to any resource indeed. For example what if you have the catastrophic event and now would like to restore all 50 servers from backup… in parallel. Will you backup system will be able to restore these in parallel efficiently ? Will there be enough network bandwidth to pipe them through. These and similar questions are what you should be asking yourself.
Entry posted by peter | 3 comments
2008-08-31 Sun
2008-08-30 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---Please enjoy the pain which is unable to avoid!
Uploads from Fenng(dbanotes)
Chanel [K]
xzh2000的博客
Oracle Security Blog
ERN空间
Eddie Awad's Blog
MySQL Performance Blog
The Tom Kyte Blog
Delicious/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
Oracle & Unix
Inside the Oracle Optimizer - Removing the black magic
Ricky's Blog on Testing and RAC
DBA@Taobao
存储部落
Think in 88
Alibaba DBA Team
Oracle Team @SNC
淘宝数据仓库团队
OracleBlog.cn
中国雅虎_站长天下_www.dbaleading.com_原创文章




