-
为老虎队喝彩~~
Posted on February 14th, 2010 Add comments大年三十的春晚,就像曹操嘴里的鸡肋,嚼在嘴里没什么味道,吐了又觉得牙齿就变得不是牙齿,是寂寞…
至少今年的春晚,久违的小虎队又出现了。虽然严格意义上说,这三个在我小学时已经是高中生的帅哥倒可以被称为“老虎队”。但当他们登台唱歌,尤其是又唱起“蝴蝶飞呀”时,感觉自己仿佛刹那间失去了知觉:小学时蹲在音像店旁蹭听,课外活动时老师一句一句地教大家唱“贝壳爬上沙滩,看一看世界有多么大”……一切的一切,都一丝一丝地刺入大脑。
不知为什么?!难道我也变得多愁善感了…
305 views -
ORACLE databse can not start by missing tablespace file
Posted on February 13th, 2010 1 commentToday, as usual, trying to login to Oracle database do something, but when typing “sqlplus” and username/password, it showing:
12ERROR :ORA-01033: ORACLE initialization or shutdown in progressIt seems like Oracle database was not starting somehow. After connect the database as SYSDBA, type some command for trying to restart the datadase:
12345678910111213141516SQL> shutdown immediate;ORA-01109: database not openDatabase dismounted.ORACLE instance shut down.SQL> startupORACLE instance started.Total System Global Area 171966464 bytesFixed Size 787988 bytesVariable Size 145750508 bytesDatabase Buffers 25165824 bytesRedo Buffers 262144 bytesDatabase mounted.ORA-01157: cannot identify/lock data file 6 - see DBWR trace fileORA-01110: data file 6: '/home/XXX/XXX.dbf'Now finally realized what happened and how this happened. There is a tablespace file “XXX.dbf” missing. To solve this issue, connect database as SYSDBA, then:
123SQL> alter database datafile 'XXX.dbf' offline drop;SQL> shutdown immediate;SQL> startup;
584 views -
Create tablespace on NFS based LINUX + Oracle
Posted on February 8th, 2010 Add commentsWhen the first time to create tablespace on SQLplus, it shows:
“ORA-27040: file create error, unable to create file. Linux-x86_64 Error: 13: Permission denied”
So I just change my home directory to “777”, then getting the error
“ORA-27054: NFS file system where the file is created or resides is not mounted with correct options”
After check the “autofs” settings, I found the content of file “auto.home” has problem which is something wrong with NFS mount options. The solutions is change the original content
* -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid,tcp oracle.server.com:/users/&
to
* -rw,bg,hard,intr,rsize=32768,wsize=32768,suid,nfsver=3,tcp oracle.server.com:/users/&
918 views -
Google的手机:Nexus One
Posted on February 1st, 2010 Add comments尽管Steve Jobs在IPad发布会上忍不住大骂Google背信弃义,Google的Nexus One依然是众多人追捧的对象。与之iPhone相比,multitask是其最大亮点。Google为了让这一亮点突出,特意在Nexus One上使用1Ghz的CPU和512MB的内存。在看了测评后,发现Google的这一用心良苦果然在Nexus One的运行速度上得到了回报:
334 views -
SSH + X11 display after su to another user
Posted on January 26th, 2010 Add commentsSometimes we need to run the X11 application window via SSH. For example, I am user “A”, and SSH to host “example”. To be possible running X11 application window, we need to type the command:
#ssh -Y A@example
In addition to the SSH restriction, we need to run an X application as someone other than yourself. For example, the Virtualbox can be only run by user “B”. If the user “A” can sudo to become user “B” or “A” is the root, in order to allow user “B” access to user “A”’s display, B needs to import “A”’s
.Xauthority
cookie. We can usexauth
to accomplish this and it’s a quick one-liner beforesudo su - B
:A@example:~#xauth extract – :`echo $DISPLAY |awk -F: ‘{print $2}’` | sudo su – B -c “/usr/bin/xauth merge -”
A@example:~#sudo su – B
B@example:~#VirtualBox &
442 views






Recent Comments