2007-09-26 Wed
I wrote some OCI program and compiled them into 32 bit executable on 64 bit Solaris machine. So I need to set the proper Oracle library path to get it work. I wrote a shell script to set some environment variables first, and then call my utility.
#!/bin/sh
if [ "A${ORACLE_HOME}A" = "AA" ]; then
echo "ORACLE_HOME environment variable not setted."
exit
fi
if [ "A${LD_LIBRARY_PATH}A" = "AA" ];then
LD_LIBRARY_PATH=/lib:/usr/lib
fi
if [ -d ${ORACLE_HOME}/lib32 ]; then
LD_LIBRARY_PATH=${ORACLE_HOME}/lib32:${LD_LIBRARY_PATH}
else
LD_LIBRARY_PATH=${ORACLE_HOME}/lib:${LD_LIBRARY_PATH}
fi
ociuldr.bin "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
Later I added more and more command line options to my utility. Someday I found that my script did not work fine, some option values were not passed correctly to my utility. The reason was that only the first 9 options were passed to my utility. So I change the last line as following.
ociuldr.bin "$@"
Now the problem get resolved.
Related Posts
Leave New Comment(Current: 0)
Link: http://www.dbatools.net/experience/unix_shell_pass_params.html
昨晚到达成都,现在已经完成了我的演讲。
成都是第二次来到,想不到也是来去匆匆,下午,因为一个客户的关系,下午我将要赶往昆明。
回到那曾经离开了4年的地方。
.....
相关文章|Related Articles
评论数量(0)|Add Comments
本文网址:http://www.eygle.com/archives/2007/09/come_and_go.html
生活并不总是一成不变的,失去工作、结婚、生孩子、搬家、退休、失去亲人…我们总是面临各种各样的冲击。如何在适应变化,将其对生活的影响降到最低,下面是一些建议:
- 接受现实。不要总是想“怎么才能恢复正常生活?”,将它看作一次让你有崭新生活的机遇。
- 给自己一些安静适应的时间。在这种时候,不用为休假而感到内疚。
- 做一些有建设性的事情。
- 问问自己到底害怕什么?
- 试一些以前没有尝试过的事情。
- 锻炼锻炼身体。
- 卸掉一些义务和责任,给自己一些独处的时间。
- 整理整理凌乱的房间。
“八个让你走出痛苦艰难变化的方法”-来自”逃离格子间”
There was long played scalability issue with InnoDB auto-increment field. For details check Bug 16979. In short words the problem is in case of insert into table with auto-increment column the special AUTO_INC table level lock is obtained, instead of usual row-level locks. With many concurrent inserted threads this causes serious scalability problems, and in our consulting practice we had a lot of customers who was affected by InnoDB auto-inc. For several of them we even advised to replace auto-inc column by that or another solution.
Good news is the bug is fixed. Bad news is it is fixed only 5.1.22, which is not released yet.
I wonder if the fix is going to be ported to 5.0, as I mentioned it affected many production systems and not all of them are ready to upgrade to 5.1.
The interesting also is the fix introduces new system variable innodb_autoinc_lock_mode which determines behavior of InnoDB for tables with autoinc. I do not want to copy-paste MySQL documentation, the very good and informative description of the problem and solution is available here.
Entry posted by Vadim | No comment
这个题目有点大,不过,在数次往来广州,全身而退之后,这一次,终于是在广州栽了一个跟头。
话要从头说起。
24日从北京飞往广州,到广州的时候还下点小雨,打了一辆出租车直奔香格里拉大酒店。
大约用了一个小时,达到酒店,恩,确切的说,是差一点就到了酒店。
大约差50米的距离,司机的车熄火了,我看着他弄了好半天仍然无法启动,说,算了,我自己过去吧。
然后我付给他车费,大约是160块,我给了他200元,结果他还给我一张,说这个钱掉了一个角。
我接过来一看果然缺个角,于是又换了一张给他。
结果可想而知,他调包了我的100元。
事后分析,这个司机真是十分的狡猾。
首先,他的车坏在哪里,肯定是个计策,估计他怕到酒店门口不好骗我,或者害怕酒店的人记下他的车牌 。
然后,当我拿出他给我的出租车票时,我发现除了价格、时间外,他刚好把车牌号那一段撕掉了。
而我,又丝毫没有意识到这个骗局,根本没有记下他的车牌号。
于是,在我打了几个电话投诉之后,基本上知道,这个跟头是载下了。
终于,从一个侧面体验到了广州的欺骗。
100块买一个教训,其实便宜的很,以后出入广州,要千万小心谨慎了。
-The End-
相关文章|Related Articles
评论数量(14)|Add Comments
本文网址:http://www.eygle.com/archives/2007/09/be_cheat_at_guangzhou.html
2007-09-25 Tue
2007-09-24 Mon
2007-09-23 Sun
AnySQL.net
DBA notes
Oracle & Starcraft
eagle's home
给你点color see see
AnySQL.net English
Oracle Scratchpad
Oracle Life
OracleDBA Blog
Photos 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
车东[Blog^2]
blue_prince
玉面飞龙的BLOG
此生 今世
人生就是如此
Orange Tiger 木匠 的 移民生活
生活帮-LifeBang
Hey!! Sky!
dba on unix
Oracle Notes Wiki
Welcome to 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
DBA is thinking
NinGoo@Net




