Archive

Archive for September, 2010

/usr/lib/dld.sl: Can’t open shared library: /home/oracle/orahome/lib/libwtc8.sl

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.  
ORACLE_BASE=/u01/app/oracle
ORACLE_SID=oracle_sid
ORACLE_HOME=/u01/app/oracle/product/8.1.7.4
SHLIB_PATH=/usr/lib/X11R5:/usr/lib/Motif1.2:/u01/app/oracle/product/8.1.7.4/lib

In this case, the two binaries “lsnrctl” and “tnslsnr” did not have the attribute to use SHLIB_PATH enabled.
>chatr /u01/app/oracle/product/8.1.7.4/bin/tnslsnr
/u01/app/oracle/product/8.1.7.4/bin/tnslsnr:
         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/8.1.7.4/bin/tnslsnr

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

Advertisements
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