Archive for September, 2010

/usr/lib/ Can’t open shared library: /home/oracle/orahome/lib/

September 23, 2010 Leave a comment

I recently had an error like the one seen on the title.  While this scenerio pertains to Oracle 8i, I do find how I was able to fix it useful.

My environment variables were correct and I was still getting the error above.  

In this case, the two binaries “lsnrctl” and “tnslsnr” did not have the attribute to use SHLIB_PATH enabled.
>chatr /u01/app/oracle/product/
         shared executable
         shared library dynamic path search:
             SHLIB_PATH     disabled  second

To make it check the SHLIB_PATH, we run:
 >chatr +s enable /u01/app/oracle/product/

Do the same for “lsnrctl” and retry the command “lsnrctl start” to start the listener.

Categories: HP-UX, Oracle

How to untar a file to a different destination directory HP-UX

September 22, 2010 Leave a comment

Let’s suppose you have a tar file and all the contents have absolute paths beginning with “/home/oracle” and you want to untar to “/u01”.  The command “pax” can accomplish task for you.

#cd /u01
#pax -v -r -s ‘,//*home//*,,’ -f  file.tar

The above command will substitute /home with blanks and remove the absolute path portion.  After running pax, you should have a new directory oracle under /u01.

Categories: HP-UX

Copying and pasting from VNC viewer

September 14, 2010 Leave a comment

In the past you would have had to use xcutsel, but now you can use the following to ensure cutting and pasting works as it should between your VNC viewer and your PC:
– logon to your VNC session
– open a terminal window (like Xterm)
– type ‘vncconfig &’ which should result in a small window with 3 options.
– enable all the options, minimize this window and just leave it.

Categories: Linux, Redhat, VNC