Compile tora with oracle

After installing Oracle instant client, if you have them in /usr/local/lib/instantclient_10_2, this is the command line i use :

./configure –with-instant-client=/usr/local/lib/instantclient_10_2 –with-oracle-includes=/usr/local/lib/instantclient_10_2/sdk/include –with-oracle-libraries=/usr/local/lib/instantclient_10_2 –with-oci-version=10G

Let me know ny email if you want the deb for ubuntu linux.

Posted in Oracle | 5 Comments

sqlplus timeout when connnecting

If you are using a pam_ldap or pam_nis environement and it happend that sqlplus does not want to connect as user but it does as root, waiting for :

socket(PF_FILE, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) =
-1 ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/hosts", O_RDONLY)            = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=286, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE
|MAP_ANONYMOUS, -1, 0) = 0x45b78000
read(3, "127.0.0.1tlocalhost.localdomaint"..., 4096) = 286
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x45b78000, 4096)                = 0
getpid()                                = 26002
getuid32()                              = 1121
futex(0x41239198, FUTEX_WAIT, 2, NULL 

You just to have make sure to have nscd up and running. dunno what sqlplus does :(

Posted in Oracle | 5 Comments

My first webpage

Classic my first webpage is still on the web that was back in 98 and that was about Emacs :)

http://membres.lycos.fr/crblinux/html/xemacs.html

It is in french thought.

Posted in Emacs | Leave a comment

I am a user of the Bagdhad Musem Wiki

Ah i just discovered that the Bagdhad Musem have fetched my wikipedia page and i am on it now :

http://www.baghdadmuseum.org/ref/?title=User:Chmouel

I feel greatly honored (yeah whatever).

Posted in Misc | Leave a comment

Xterm like Control-L in Eshell

If you want to emulate Control-L in Eshell (the Emacs Shell) like in Xterm, you can use this :

(defun eshell-show-minimum-output ()
  (interactive)
  (goto-char (eshell-beginning-of-output))
  (set-window-start (selected-window)
		    (save-excursion
		      (goto-char (point-max))
		      (line-beginning-position)))
  (eshell-end-of-output))

And add a key bind to it in your custom hook :

  (local-set-key "\C-l" 'eshell-show-minimum-output)</p><p>

Posted in Emacs | Leave a comment

Error loading native library: libnjni9.so

If you like me when running oracle on x86_64 get that damn :

Error loading native library: libnjni9.so

when launching dbca and you have googled the thousands five hundred useless answer. Just add the path of the libs $ORACLE_HOME/lib and $ORACLE_HOME/lib32 to your /etc/ld.so.conf (or /etc/ld.so.conf.d/oracle.conf on RH derivative) and rerun ldconfig.

If this is during install just jump to a console after you add this line before it launching dbca and run a ldconfig -v as root.

Damn oracle….

Posted in Oracle | 1 Comment

How to get bright LS colors on Redhat with dark background

Something that i haven’t find via goole. By default on RedHat (and derivatives) if you get a dark background the colored ls will be seen really humm bold from a xterm (since i guess there default gnome-terminal has been configured to have a white background ).

The solution is to

cp /etc/DIR_COLORS /etc/DIR_COLORS.xterm

or to redefine your dircolors to get the /etc/DIR_COLORS files instead of /etc/DIR_COLORS.xterm in your shell init configuration.

Posted in RedHat | Leave a comment

Back in Sydney

It has been since 2 weeks I came back from my sister wedding. It has been a really good holiday as well under the sun. Spending a day in Dubai and 2 days in Bangkok was cool as well.

The come back is much harder thought. I did not feel the Jet but I think the change of the temperature made me weaker in my body. Hopefully sun is coming in Australia soon (still sunny theses day thought) and the beautiful days will be back.

On another good news, Noah and Marie are coming 15 of September and going to spend 1 month and half here.

Here you can watch the pictures of the wedding :

and some picture of that travel :

Posted in Travel | Leave a comment

Noah starting early on computers.

Noah concentrated on computer.

Posted in Life | Leave a comment

From Australia to Jerusalem via Jordan

I have finally arrived to Jerusalem after 30 hours of travel going via Jordan.
It has been a long and tirering Journey here is some highlight of it :

  • In the plane i meet a dude which i am playing soccer with every Sunday. It’s pretty amazing to make some meeting like that, how many chances there is that
    i meet this person in the same plane as me. The other funny thing is, that is going to be the same time as me in Dubai.
  • In Dubai i meet a french girl from the 16e arrondisement in Paris. Never seen a posh girl coming from this area of paris traveling by herself. Pretty nice person
    thought.
  • I was late for my plane in Dubai so i had the speaker calling me at the airport in loud with my names. And i was trying to don’t make myself remarked.
  • Watching Fashion TV on the plane with catwalk of arabic girls is pretty awesome, never seen arabic gilrs from that humm angle.
  • When arrived at Amman Airport i was thinking that having the names Chmouel and Reouven was going to be trouble. But in fact it was pretty straightforward.
  • Since i went straight to the south of Jordan i had to take the bus, firstable i lost myself trying to find the bus station. I finally arrived after walking all over the city
    with my backpack under the sun. Funny thing i had to wait under the sun for 3hours until the next bus was coming for Aqaba. After that i slept all over the
    bus ride.
  • Decided to go straight from Aqaba to the border. Nothing special here except that i spent some good 20minutes trying to figure out where i need to get
    my passport stamped.
    Walking between the Jordanian and Israeli border is weird its a huge alley with big electric fence all over.
  • Arrived to Eilat it was too late to take a bus to Jerusalem. So i went to the taba hostel, same hostel i stayed 2 years ago. Could not sleep because
    of the jetlag so i went having a beer with an American and Israel guys. There is a lot of teenagers around here, and they all dressing like going to a
    New York nightclub on a Saturday night. I find weird as well some young girls of 16/18 having a boob-job.
  • No sleeping at all that night and took the bus at 7 to Jerusalem, slept all over the bus ride.
  • Finally here with all my sisters brother and parents, it’s pretty cool to be with everybody since it has been a long since we did not see each others.
Posted in Travel | Leave a comment