'su - oracle -c env ' on Linux

The problem I'm having is this: The oracle user can start ORACLE
using the $ORACLE_HOME/bin/dbstart command. But root running
/etc/rc.d/init.d/dbora can not. This is in spite of having the
same env vars set for both accounts. I've tracked it down to
this line:
su - $ORA_USER -c $ORA_HOME/bin/dbstart
which translates to: su - oracle -c $ORACLE_HOME/bin/dbstart
Running this from the shell in root, or from the dbora script, I
get the much noted error: "'libclntsh.so.1.0: Cannot open shared
object file: No such file or directory'". However I know that
the LD_LIBRARY_PATH has been set correctly! To investigate it
further, I tried running this command:
su - oracle -c env
And NONE of the env vars set in oracle's .profile appeared!!
Whereas if I run this command on Solaris, I get the proper vars!
Is this a Linux setting?? How do I get it to read the .profile
script?
Help!
null

Fixed my own problem by UPGRADING su! I installed the
GNU sh-utils 1.16 which includes su and the functionality
returned -- ie, root can now start Oracle!
Apparently RedHat 5.0 shipped this crummy version of su! Anyone
else noticed this?
Andrew Lienhard (guest) wrote:
: The problem I'm having is this: The oracle user can start
ORACLE
: using the $ORACLE_HOME/bin/dbstart command. But root running
: /etc/rc.d/init.d/dbora can not. This is in spite of having the
: same env vars set for both accounts. I've tracked it down to
: this line:
: su - $ORA_USER -c $ORA_HOME/bin/dbstart
: which translates to: su - oracle -c $ORACLE_HOME/bin/dbstart
: Running this from the shell in root, or from the dbora script,
I
: get the much noted error: "'libclntsh.so.1.0: Cannot open
shared
: object file: No such file or directory'". However I know that
: the LD_LIBRARY_PATH has been set correctly! To investigate it
: further, I tried running this command:
: su - oracle -c env
: And NONE of the env vars set in oracle's .profile appeared!!
: Whereas if I run this command on Solaris, I get the proper
vars!
: Is this a Linux setting?? How do I get it to read the .profile
: script?
: Help!
null

Similar Messages

  • Installaling Oracle R12 env in linux.

    Hi Everyone ,
    I am on a learning curve at EBS.
    I need to create the spec sheet for installing R12 environment in linux.
    So, I need the know, which linux version is ideal for EBS R12?
    I think R12.1.2 is the latest version of EBS.whether I can directly download the R12.1.2 or I go with installing R12.0 and then patch to upgrade.
    Dont mistake me if my questions dont make sense
    Thanks
    Jp

    Hi,
    So, I need the know, which linux version is ideal for EBS R12?Any certified version would be ideal. Get the list of certified Linux version from (My Oracle Support website > Certification).
    I think R12.1.2 is the latest version of EBS.whether I can directly download the R12.1.2 or I go with installing R12.0 and then patch to upgrade.It is a patch.
    E-Business Suite Release 12.1.2 Now Available
    http://blogs.oracle.com/stevenChan/2009/12/ebs_1212_available.html
    Thanks,
    Hussein

  • Unable to Install Oracle 9i on redhat linux 9

    Hi everybody,
    I had been trying to install Oracle 9i on redhat linux 9 since last month and I am not able to succeed in installing the same. In fact I do not get to see even the OUI screen . I give below the steps I followed.
    1) Setting of env varibles pertinent to oracle., say ORACLE_HOME,NLS_LANG etc.
    2) PATH=$PATH:/usr/local/jdk1.3.1/bin:.
    3) export LD_ASSUME_KERNEL=2.4.1
    I have a set of 3 CD's for installation. As soon as I load the first CD. the runInstaller would run for sometime and stop, while I do the installation in the graphic mode.
    When I try to install the same in the command line mode, I get to see something like the one below
    Initializing java jre from /tmp/OraInstall0/... please wait.. and then it would come back to the command prompt.
    I then invoke ps -ef | grep -i oracle to check if some process is running and I do get to see something. But ultimately nothing happens.
    Please help me with this.

    At Oracle Site we have a very good manual for 9i installation. Follow the manual step-by-step.
    Your problem seems as a java or permissions issue.
    good luck
    Eduardo

  • Installation of oracle 10g on RedHat Linux EE 3

    Hi,
    I am going to Install of oracle 10g on RedHat Linux EE 3, rigth now i am running oracle 9i on windows platform. I need following things:
    -I want to export all my data from oracle 9i on windows. For this what is the best way should i transport my tablespace and install oracle 10g on linux and import them after creating db or should i simply export and import it from there.
    -Is there any issues that i should look at before i transfer my database.
    -We are a Industrial Laboratory and use scientific notation in our database. Would this import export can takecare of all the things or should i set some character set setting before import/export.
    -Any thing else if you thing that i should take care.
    Thanks & Regard
    Rashid K.K

    You cannot use transportable tablespace. Platform independent transportable tablespace run only on newer versions (10g). You have to create the tablespaces on you linux machine and than exp/imp (full=y).
    Bye, Aron

  • Installation of Oracle 9i on Redhat Linux 7.3

    Hi.
    I'm trying to install oracle 9i on Redhat Linux an facing some problems. To start with I had no problem in installing and creating the database, The listener.ora and tsnname.ora files created are similar to what i have on windows 2000( Since i was not able to make oracle working on linux, i tried installing on windows, so as to check and create database for temporary work.), But when i go to the console and type the commands: sqlplus /nolog it says bash: sqlplus:command not found.
    2. When i try clicking sqlplus executable file in the bin directory, i get a message that 'Could'nt find the program'.
    3. Where can i find the bash_profile file.
    4.I'm able to run the database configuration assistant and create new databases without any error.
    I would appreciate if some one can help me out.Also are there any special commands, for this is my first experience on linux.
    Thanks
    Pranav

    If your shell is bash (which I guess it is) you need to set the environment variables either per user in a file called ~/.bash_profile (probably /home/oracle/.bash_profile) or globally by making a file /etc/profile.d/oracle.sh
    you can list .files with ls -la
    for now you can either type /opt/oracle/product/9.2.0/bin/sqlplus or type
    export PATH=${PATH}:/opt/oracle/product/9.2.0/bin
    to add oracle to the path in your current session

  • How to start Oracle Report Builder in Linux

    Hi all
    Can someone please help by telling how can i start Oracle Report Builder in Linux????
    Thank you and best regards to all

    Hello,
    there should be a script rwbuilder.sh
    in ORACLE_HOME/bin for 10.1.2.
    in ORACLE_INSTANCE/config/reports/bin for 11g
    Of course, you need to have a "X Display Server " up and running and the variable DISPLAY must be set to this "X Display Server "
    Example :
    export DISPLAY=123.456.789.12:0
    $ORACLE_HOME/bin/rwbuilder.sh
    Regards

  • Error While Installing ORACLE 10g in Redhat Linux 5.0

    Hi all,
    Anybody please guide me regarding the posted error.
    I'm trying to install ORACLE 10g in Redhat Linux 5.0 and finding error as "Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2009-10-15_09-20-56PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
    at sun.awt.DebugHelper.<clinit>(Unknown Source)
    at java.awt.Component.<clinit>(Unknown Source)
    I tired a lot to sort it out but unable to resolve.So please tell me the possible ways.
    I appreciate all types of clarifications...
    Thanks in Advance
    Sajeev George

    Sajeevcmc wrote:
    Hi,
    Thanks for the reply.
    Could you please tell me the rpm full name and where i can download the same?
    Thanks in Advance
    SAJEEV GEORGEYou need to have the following packages installed already before starting Oracle installation
    http://download.oracle.com/docs/cd/B19306_01/install.102/b15669/pre_install.htm#sthref80
    binutils-2.15.92.0.2-10.EL4
    compat-db-4.1.25-9
    control-center-2.8.0-12
    gcc-3.4.3-9.EL4
    gcc-c++-3.4.3-9.EL4
    glibc-2.3.4-2
    glibc-common-2.3.4-2
    gnome-libs-1.4.1.2.90-44.1
    libstdc++-3.4.3-9.EL4
    libstdc++-devel-3.4.3-9.EL4
    make-3.80-5
    pdksh-5.2.14-30
    sysstat-5.0.5-1
    xscreensaver-4.18-5.rhel4.2
    And from the following link, you can get the same list:
    http://www.puschitz.com/InstallingOracle10g.shtml (Go to Checking Software Packages (RPMs))
    And from my installation guide you can easily install Oracle on Linux by following step by step instruction
    [Step by Step Installing Oracle Database 10g Release 2 on Linux (CentOS) and AUTOMATE the installation using Linux Shell Script|http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Oracle 9.0.1 Linux Intel images on OTN corrupt

    The oracle 9.0.1 Linux Intel images I downloaded
    from Oracle technology network are corrupt. Disk1 and
    Disk2 images are bad for Linux Intel. A gunzip -df
    to decompress the image fails i.e
    gunzip -df Linux9i_Disk1.cpio.gz
    gunzip: Linux9i_Disk1.cpio.gz: unexpected end of file
    gunzip -df Linux9i_Disk2.cpio.gz
    gunzip: Linux9i_Disk2.cpio.gz: unexpected end of file
    The other alternative i.e a cpio extract on Disk2 is also suspect.
    cpio -imdv < Linux9i_Disk2.cpio.gz
    cpio: warning: skipped 40 bytes of junk
    cpio: premature end of file
    Disk3 for Oracle 901 Linux Intel on OTN is good.
    Disk1 and Disk2 images for Oracle 9.0.1 on Linux Intel
    may have to be updated on the Oracle technology network.
    Any other suggestions or tips are welcome.
    Thanks
    Mala Krishnamurthy
    Ascential Software

    did you check the filesize of your downloaded copy ?

  • Oracle 9.0.1 Linux Intel images corrupt

    The oracle 9.0.1 Linux Intel images I downloaded
    from Oracle technology network are corrupt. Disk1 and
    Disk2 images are bad for Linux Intel. A gunzip -df
    to decompress the image fails i.e
    gunzip -df Linux9i_Disk1.cpio.gz
    gunzip: Linux9i_Disk1.cpio.gz: unexpected end of file
    gunzip -df Linux9i_Disk2.cpio.gz
    gunzip: Linux9i_Disk2.cpio.gz: unexpected end of file
    The other alternative i.e a cpio extract on Disk2 is also suspect.
    cpio -imdv < Linux9i_Disk2.cpio.gz
    cpio: warning: skipped 40 bytes of junk
    cpio: premature end of file
    Disk1 and Disk2 images for Oracle 9.0.1 on Linux Intel
    may have to be updated on the Oracle technology network.
    Any other suggestions or tips are welcome.
    Thanks
    Mala Krishnamurthy
    Ascential Software

    did you check the filesize of your downloaded copy ?

  • Oracle 9.0.1 Linux Download Disk 1 Is NOT in gzip Format

    Hi,
    I tried to download twice Oracle 9.0.1 Linux on my Windows first, then tranfer to my Linux machine. All the other disks (gz files) are transfered and uncompressed into cpio files, expect Disk 1, Linux9i_Disk1.cpio.gz.
    I checked Linux9i_Disk1.cpio.gz first using WinZip on Windows, then gunzip on Linux. The problem is the same: Linux9i_Disk1.cpio.gz is not in gzip format.
    Since all the other Disks (.cpio.gz files) works fine, my suspicion is that Linux9i_Disk1.cpio.gz is corrupted on the server. Has anyone in Oracle really tested the download recently?
    Of cause next monday I will check direct download to my Linux machine at work.
    Thanks in advance!
    Dong Liu
    So that we may better diagnose DOWNLOAD problems, please provide the following information.
    - Server name
    - Filename
    - Date/Time
    - Browser + Version
    - O/S + Version
    - Error Msg

    Hi,
    I reported that Oracle 9.0.1 Linux Download Disk 1 does not work if I first download it to Windows. My colleague downloaded it to a Linux machine, and it can be unzipped.
    So only one disk file can only be directly downloaded to Linux.

  • Can you install Oracle 10g on REDHAT LINUX ENTERPRISE WS?

    According to oracle documentation, it says you can install oracle10g on Redhat enterprise version 3 or 4, but it doesn't specify whether its Red Hat Enterprise Linux AS or WS. Can you install oracle 10g on Rehat Linux Enterprise WS?

    Oracle Certificaction Matrices says only RedHat AS/ES is supported for database. AFAIK WS means workstation.
    Also this link is very clear: http://kbase.redhat.com/faq/FAQ_61_1135.shtm
    Besides the above sentences... If the WS installation is providing all required packages (listed in installtion prerequisites) I belive that Oracle DB could be installed on WS but as I (and the above link) said it is not officialy supported.

  • How to install Oracle client on UBUNTU LInux

    Hi,
    I want to install oracle client on ubuntu linux. Which version of oracle client works on it and is there any other tool which i can install instead of oracle client?
    Regards,
    RJiv.

    RJiv wrote:
    Hi,
    I want to install oracle client on ubuntu linux. Which version of oracle client works on it All recent Oracle version support different Linux flavours
    The problem is Oracle usually don't provide direct Oracle Client download except for Windows. You need to download the Server installation file and install the client piece. The download files are rather large.
    and is there any other tool which i can install instead of oracle client?It depends on what you plan to do with Oracle client and why you need it.
    On alternative is instance client, it has direct download for all supported platform.
    http://www.oracle.com/technology/software/tech/oci/instantclient/index.html

  • Error in Installing Oracle 9i on RedHat LINUX 8.0

    When I am trying to install Oracle 9i on RedHat LINUX 8.0 I am getting the Error message " CANNOT COPY INTO THE FILE aurora.zip". I just ignored this and i continued the Installation. But after some time (During installation in LINKING part) i am getting the error message ERROR IN INVOKING TARGET ctx_on OF MAKEFILE /u01/app/oracle/product/9.2.0/rdbms/lib/ins_rdbms.mk
    What shall i do for this?

    are u sure that u can load Oracle 9i on Linux 8.0? i am aware that the three Linux distributions certified for Oracle 10g are:
    Red Hat Enterprise Linux 2.1
    Red Hat Enterprise Linux 3
    Novell SUSE Linux Enterprise Server 8

  • Differences between Oracle 8i for a UNIX Platform and Oracle 8i for a Linux Platform

    Hello,
    J would like to know if there are some differences between Oracle 8i for a UNIX Platform and Oracle 8i for a Linux Platform.
    I know that there are some differences on Oracle 8i Parallel Server and i know that some products are not include like precompiler (Mod*Ada, Pro*FORTRAN) on a Linux Platform.
    Thank you.

    We have installed Oracle 8i on Solaris 8 and it had a great performance, of course that the hardware and licence invested here was costed my the office where i work. Personaly i'd installed linux reh hat 8 and oracle 8i, imagine that, it could be implemented by any individual that has the time to do so.
    By buyinng from a company that has a good background you could be sure that you will have support.
    Bottom line, if you have the $ to buy great hardware go for a unix platform. But if you don't a Red Hat Linux Server Licence with a 1 year sopport and Oracle data base is about 3500Dls.
    Visit www.red-hat.com
    Rewards... Bye

  • Can I run 32 bit version of Oracle 10g grid  on Linux x86-64?

    Since Oracle did not release 64 bit version of Oracle 10g grid for Linux X86-64. Can I run 32 bit version of Oracle 10g grid on Linux x86-64? If so did anyone tried this? and also any known issues?

    All I had to do was use the 32bit version of "/usr/bin/gcc" and "/usr/bin/g++" to run the installation
    That is:
    bin]# cp -p /usr/bin/gcc /usr/bin/gcc_old
    bin]# mv /usr/bin/gcc /usr/bin/gcc323
    mv: overwrite `/usr/bin/gcc323'? y
    bin]# ln -s /usr/bin/gcc296 /usr/bin/gcc
    bin]# cp -p /usr/bin/g++ /usr/bin/g++_old
    bin]# mv /usr/bin/g++ /usr/bin/g++323
    mv: overwrite `/usr/bin/g++323'? y
    bin]# ln -s /usr/bin/g++296 /usr/bin/g++
    AFTER INSTALLATION REMEMBER TO
    move back the 64bit files to their former state.
    bin]#rm /usr/bin/g++
    bin]#rm /usr/bin/gcc
    bin]#mv /usr/bin/gcc_old /usr/bin/gcc
    bin]#mv /usr/bin/g++_old /usr/bin/g++                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Roads don't appear in maps for Israel

    Hi, I just moved from the US to Israel and I noticed that the street names don't appear on the maps program in my iphone. The streets are perfect on google maps but don't appear on the iphone maps program. I can't use the directions feature. Why?

  • Count a distinct column value in an interactive report

    Hi, I'm struggling with this and would appreciate any pointers. I have built a view here: http://apex.oracle.com/pls/otn/f?p=11189:1 The report can have duplicate column values. I'm tying to find a way using the interactive report functionality (i.e.

  • Document properties - screen transparancy

    I have a problem with reading document properties because they appear in a transparant screen. Why and how to change.

  • Error installing 10g release 2 on Windows

    I am getting an error message of: 'OUI-10151:There was an error while loading library: w32RegQueries'. Some specifics in case this helps: -Installing Personal Edition (using database for school) -Windows XP Home Edition SP2 -1GB of RAM -previously ha

  • Photos are there, but where?

    I have 15 or 20 photos on my iPhone 4 that are linked to contacts on the phone.  After one of the iOS updates, the photos disappeared from the Camera Roll, but they still appear when I view the contacts.  That is, they are on the phone somewhere, but