Sqlplus error in UNIX

Hello,
I am having a weird error invoking sqlplus in UNIX. It works fine when I invoke it with the account that I installed Oracle client. However, when I login using a different account, it gives me with the following error:
Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
when I do echo $ORACLE_HOME, it displays the oracle home.
I tried export ORACLE_HOME=/opt/bin/ssaps/oracle/client
When I run sqlplus, it still gives me the same error. what am I missing here?
thanks

BSK wrote:
Hello,
I am having a weird error invoking sqlplus in UNIX. It works fine when I invoke it with the account that I installed Oracle client. However, when I login using a different account, it gives me with the following error:
Error 6 initializing SQL*Plus
<font face="tahoma,verdana,sans-serif" size="1" color="#000">Message</font> file sp1<LANG>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
when I do echo $ORACLE_HOME, it displays the oracle home.
I tried export ORACLE_HOME=/opt/bin/ssaps/oracle/client
When I run sqlplus, it still gives me the same error. what am I missing here?
thanksIt will be better for helping you, You can give a more complete description of your needs.

Similar Messages

  • Sqlplus scripts on unix hanging

    First of all, I have no clue what iSql-plus is. My question is about sql-plus, but there's no dicussion forum for that. Anyways!
    I have some unix scripts that trigger pl-sql programs using the following command....
    sqlplus myName/myPasswd@myDb myscript.sql
    'myscript.sql' is a pl-sql script that contains an 'exit;' statement at the end to close the sqlplus session. the unix script then does some other things afterwards.
    Problem: if something goes funny somewhere on our server that causes sql-plus to be unable to connect to the database (eg listener problems, reboot, etc.), sqlplus simply prompts the std-out to try again. My 'exit;' command never runs, so the session hangs. This works when you're logging in as an interactive user, but as a batch script it causes things to totally hang. I need a way to trap the error so that i can handle it. I'd like a good sol'n - not something silly like running it in the background or putting a timer in the script.
    Anyone have any ideas? I can't see any command line paramaters that might do this.
    null

    iSQL*Plus is the web enabled interface to SQL*Plus. There is a simple 8.1.7 Beta version available for download from OTN. The first production version (which is much improved from the 8.1.7 Beta) will be available with Oracle9i on Windows.
    There are various tricks to checking that a database is running. You can use the operating system return code from SQL*Plus to check that a database is it.
    Create a script test.sql containing three EXIT commands:
    exit
    exit
    exit
    On UNIX in Bourne or K shell:
    $ sqlplus scott/tiger < test.sql > /dev/null 2>&1
    $ echo $?
    - CJ

  • Sqlplus: Error while loading shared libraries: libsqlplus.so:

    Hi
    The Error is as follows:
    sqlplus: Error while loading shared libraries: libsqlplus.so: cannot open shared object file: no such file or directory
    Installed R12 with RUP2.
    User Oracle already exists.
    I tried to create a user appsdev as follows:
    #adduser appsdev
    #passwd appsdev
    #cd /home
    #chmod 500 appsdev
    login as user appsdev/appsdev
    run the env file from $ORACLE_HOME
    $sqlplus
    sqlplus: Error while loading shared libraries: libsqlplus.so: cannot open shared object file: no such file or directory
    if run the env file and sqlplus from user ORACLE.i don't get the error.
    but from the appsdev user i get the error.
    what should i do to execute sqlplus successfully from appsdev user.
    regards,
    charan

    if run the env file and sqlplus from user ORACLE.i don't get the error.
    but from the appsdev user i get the error.Is the "appsdev" user the owner of the application tier? If so, source the env file under %APPL_TOP% and check then.
    Did you specify the dba group as the primary group for "appsdev" user?

  • Error sqlplus: error while loading shared libraries:

    Hi
    i installed centos 5.4 in my laptop, i installed 11g R1. it installed properly, but when i start
    sqlplus it gives me the folloing error.
    [oracle@localhost bin]$ sqlplus
    sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory
    [oracle@localhost bin]$
    Regards
    Saqib

    Saqib Alam wrote:
    Hi
    i installed centos 5.4 in my laptop, i installed 11g R1. it installed properly, but when i start
    sqlplus it gives me the folloing error.
    [oracle@localhost bin]$ sqlplus
    sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory
    [oracle@localhost bin]$
    Regards
    Saqibid
    echo $ORACLE_HOME
    ls -l $ORACLE_HOME/bin/ora*

  • SqlPlus error messages are daunting, aren't they?

    Hello guys,
    I am trying to understand the logic of SQLPLUS error messages. I read the User's Guide and Reference but I still don't understand how these line numbers are calculated!!
    I make an example. I am writing some stored procedures in a file merge_procedures.sql, that I am editing in my favourite text editor (Crimson editor). Beside, I have SQL Plus running in a dos windows in XP.
    The file defines 2 packages and various procedures and functions.
    CREATE OR REPLACE PACKAGE STRING_FNC
    AS
    END STRING_FNC;
    CREATE OR REPLACE PACKAGE BODY STRING_FNC
    AS
    END STRING_FNC;
    CREATE OR REPLACE PACKAGE moveSections
    AS
    end moveSections;
    When I run one of the procedures using EXEC procName(args) I get an error:
    SQL> EXEC moveSections.mergeUserSections('EMPTY_jbowerstest','A01','XC','G201','
    *01.G1','G101','01.G1.G1')*
    BEGIN moveSections.mergeUserSections('EMPTY_jbowerstest','A01','XC','G201','01.G
    *1','G101','01.G1.G1'); END;*
    ERROR at line 1:
    ORA-00001: unique constraint (DEV_XCSA.SYS_C008826) violated
    ORA-06512: at "DEV_XCSA.MOVESECTIONS", line 68
    ORA-06512: at "DEV_XCSA.MOVESECTIONS", line 88
    ORA-06512: at "DEV_XCSA.MOVESECTIONS", line 156
    ORA-06512: at line 1
    I don't understand how those line numbers are calculated. I mean, why does it claim there is an error at line 1? And how are the subsequent line numbers calculated? i am getting lost since I cannot find any error at the lines indicated.
    Please help me. Also references to documentation would be appreciated.
    Thanks
    TN

    Hi,
    Tremal Naik wrote:
    I am trying to understand the logic of SQLPLUS error messages. I read the User's Guide and Reference but I still don't understand how these line numbers are calculated!!
    SQL> EXEC moveSections.mergeUserSections('EMPTY_jbowerstest','A01','XC','G201','
    *01.G1','G101','01.G1.G1')*
    BEGIN moveSections.mergeUserSections('EMPTY_jbowerstest','A01','XC','G201','01.G
    *1','G101','01.G1.G1'); END;*
    ERROR at line 1:
    ORA-00001: unique constraint (DEV_XCSA.SYS_C008826) violated
    ORA-06512: at "DEV_XCSA.MOVESECTIONS", line 68
    ORA-06512: at "DEV_XCSA.MOVESECTIONS", line 88
    ORA-06512: at "DEV_XCSA.MOVESECTIONS", line 156
    ORA-06512: at line 1
    I don't understand how those line numbers are calculated. I mean, why does it claim there is an error at line 1? And how are the subsequent line numbers calculated? i am getting lost since I cannot find any error at the lines indicated.ORA-06512 errors are additional information about where the error occurred.
    Like Danny, I find it helpful to read messages like this from the top down.
    The stack above says that the real error, ORA-00001, occurred at line 68 of movesections.
    The procedure at line 68 was called from line 88 of movesections. The real error may have occured around this point; for example, if you passed a bad parameter at line 88, then the code around line 68 may be perfect.
    The procedure at line 88 was called form lline 156 of movesections. Again, the real error may be at line 156, or somewhere leading up to line 156.
    The procedure at line 156 was called from line 1 of some anonymous code, such as
    EXEC moveSections.mergeUserSections('EMPTY_jbowerstest','A01','XC','G201','01.G1','G101','01.G1.G1');

  • Sqlplus call in unix script

    Can someone point me to a site where I can get some documentation or good information on the proper way of making a sqlplus call in unix (korn) shell script? I want to know the proper format as well as the right parameters when calling sqlplus. I would like to be able to run a sql statement or call a pl/sql procedure. I've searched the internet and found some information. However, the information are mostly example-type info and not really a well-organized documentation. Would appreciate any help.

    This is the forum for the SQL Developer tool, you should ask questions like this in the SQL and PL/SQL forum or the Database - General forum.
    Having said that, calling sqlplus is just like calling any other command. You should read the SQL*Plus manual which details all the command line parameters and options.

  • Installation error in unix

    When i'm trying to install ODI -i got this error in unix machine
    Disk1/install/runInstaller: Exec format error. Wrong Architecture.
    does any one know wheat can be the problem ?
    Thanks
    Edited by: user13299498 on 00:27 11/08/2011

    try
    $ TERM=ansi
    $ export TERM
    $ ./orainst

  • Instant Client sqlplus: error while loading shared libraries: libsqlplus.so

    os : Linux ch5dlfp090 2.6.18-128.el5 #1 SMP Wed Dec 17 11:58:23 EST 2008 ppc64 ppc64 ppc64 GNU/Linux
    Oracle : Instant client
    [oracle@ch5dlfp090 instantclient_10_2]$ pwd
    /shared/instantclient/64bit/instantclient_10_2
    [oracle@ch5dlfp090 instantclient_10_2]$ ls -ltr
    total 108288
    -rwxrwxr-x 1 oracle dba 72658720 Dec 27  2008 libociei.so
    -rwxrwxr-x 1 oracle dba    41007 Dec 27  2008 genezi
    -rw-rw-r-- 1 oracle dba      237 Dec 27  2008 BASIC_README
    -r-xr-xr-x 1 oracle dba  3790338 Dec 27  2008 libnnz10.so
    -rwxrwxr-x 1 oracle dba 23543028 Dec 27  2008 libclntsh.so.10.1
    -r--r--r-- 1 oracle dba  1555682 Dec 27  2008 ojdbc14.jar
    -r-xr-xr-x 1 oracle dba   164432 Dec 27  2008 libocijdbc10.so
    -rwxrwxr-x 1 oracle dba  3014136 Dec 27  2008 libocci.so.10.1
    -r--r--r-- 1 oracle dba  1609607 Dec 27  2008 classes12.jar
    -r--r--r-- 1 oracle dba  1646178 Dec 27  2008 orai18n.jar
    -r-xr-xr-x 1 oracle dba    48473 Dec 27  2008 libheteroxa10.so
    -rw-rw-r-- 1 oracle dba      235 Dec 27  2008 JDBC_README
    -rw-rw-r-- 1 oracle dba      241 Dec 27  2008 SQLPLUS_README
    -r-xr-xr-x 1 oracle dba    15629 Dec 27  2008 sqlplus
    -r-xr-xr-x 1 oracle dba  1183998 Dec 27  2008 libsqlplus.so
    -r-xr-xr-x 1 oracle dba  1443102 Dec 27  2008 libsqlplusic.so
    -r--r--r-- 1 oracle dba     1525 Dec 27  2008 glogin.sql
    drwxrwxr-x 4 oracle dba    16384 Dec 27  2008 sdk
    [oracle@ch5dlfp090 instantclient_10_2]$
    Issue : When I tried to connect Sqlplus
    [oracle@ch5dlfp090 instantclient_10_2]$ sqlplus
    sqlplus: error while loading shared libraries: libsqlplus.so: wrong ELF class: ELFCLASS64
    When I connect with 32 bit instant client of Power Linux version I am able to connect
    When Hardware is 64 os 64 Bit Instnat client 64 bit not working
    what could be the reason ? How to resolve this ?

    Pl post in the Instant Client forum - Instant Client
    What does "which sqlplus" return ?
    This thread may be relevant - Instant client for Solaris AMD x64
    HTH
    Srini

  • Sqlplus error w/ 8i & Caldera 2.2

    With some difficulty I have been able to install Oracle 8i, but
    when I attempt to run sqlplus I get the following error:
    sqlplus: error in loading shared libraries:
    /u01/orabase/orahome/lib/libclntsh.so.8.0: undefined symbol:
    nauzaoss
    HELP!
    null

    Craig Parker (guest) wrote:
    : With some difficulty I have been able to install Oracle 8i, but
    : when I attempt to run sqlplus I get the following error:
    : sqlplus: error in loading shared libraries:
    : /u01/orabase/orahome/lib/libclntsh.so.8.0: undefined symbol:
    : nauzaoss
    : HELP!
    In the first, insert $ORACLE_HOME/lib into the
    file /etc/ld.so.conf.
    After this, run the ldconfig.
    </yhkang>
    null

  • Errors in unix.pin?

    Hello
    I am trying to install EE 8.0.5.1 and every time I get errors in
    unix.pin. Did anyone notice something similar?
    Thanks,
    Misa
    null

    I had a similar problem in older version of Designer.
    =
    After the .pll where copied into a UNIX directory, I compiled UNIX .plx. After setting the UNIX path for the libraries, the form still would NOT work.
    =
    The tech support person at Seeristic (maker of DesignAssist ) told me to check the case of the filenames. All the UNIX .pll and plx. filenames where "lower" case. Inside the source code, some of the libraries called other libraries. In one or two cases, the calls where coded with "upper" case text. The libraries worked fine on windows because there is no case sensitity to filenames.
    =
    I ran all the .pll through a text editor and changed all calls to lower case. Then I compiled window .plx in its directory and compiled UNIX .plx in its directory. The form worked in both UNIX and Windows.
    =
    If you are deploying on client server/server in both UNIXand Windows, I have developed techniques for having both environments look alike. As you may already know, the UNIX text items have "mote" around the outside for the cursor indicator. If the object library font fills the Windows text item, then the UNIX text is clipped by the "mote". I have developed platform specific object libaries that changes the font size at compile time. Now the forms look similar on both platforms.
    =
    Let me know if you what a copy of my technote.
    =
    Regards,
    Bill
    [email protected]

  • Sqlplus, error with some chars at begining of line

    I have a file test.sql with:
    DECLARE
        x varchar(4000);
    BEGIN
        x := 'my test
    # line error 1
    @ line error 2
    end of test';
        dbms_output.put_line(x);
    END;at sqlplus i run it like this
    SQL>@test.sql
    SP2-0734: unknown command beginning "line error..." - rest of line ignored.
    SP2-0310: unable to open file "line.sql"
      8  How can I make sqlplus ignore # and @?
    Add --@ or --# does not solve my problem, because its part of a text.

    >
    How can I make sqlplus ignore # and @?
    >
    It is the @ that is the problem.
    Put an escape character (default \) before the @ or set a new escape char.
    See SET ESCCHAR in the SQL*PLUS doc
    http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve040.htm#sthref2081
    >
    SET ESCCHAR {@ | ? | % | $ | OFF}
    Specifies a character to be escaped and not interpreted when used in a file name for
    the SPOOL, START, @, RUN and EDIT commands. These special characters are
    translated to the following:
    ■ @ in a filename will be translated to Oracle SID
    ■ ? is translated to Oracle Home in Unix
    ■ % is translated to Oracle Home in Windows
    ■ $ is translated to Oracle Home in certain platforms
    While it is not recommended that these characters are used in filenames, if you have
    legacy files that do use them, it might be useful to include a SET ESCCHAR command
    in your GLogin file to implement it across your site.
    If not escaped, the characters @, ?, % and $ have significance when interpreted and
    cause errors for the SPOOL, START, @, RUN and EDIT commands.
    SET ESCCHAR is set OFF by default.
    Example
    If you include the character ’$’ in your filename, then
    SET ESCCHAR $
    RUN MYFILE$
    behaves normally.

  • Mysterious sqlplus error (/tmp/sh$$.* file)

    I recently see this error frequently in our system. The log shows something like
    /tmp/sh28370.3: cannot open
    SQL Error Exiting...
    The /tmp/sh<PID>.* file seems to be the sqlplus generated file. I could some some similar files in the /tmp directory generated by other processes. And there is only sql statement inside. I guess sqlplus stores the sql statement to be executed in /tmp/sh<PID>.* files for some reason.
    This issue happens randomly but normally at a particular time range during a day. When it happens, many similar processes would fail. There was plenty of space under /tmp when it happens. So, I doubt it's a file system issue. Anyone experienced similar issue before and know how to resolve it?

    Are you calling sqlplus from a shell script? Most likely, you are. It is a unix shell bug. For example, [Bug 4698117 |http://bugs.opensolaris.org/bugdatabase/view_bug.do;jsessionid=6d6c73ec231bf090af3be664ecc6?bug_id=4698117]
    SY.

  • Visual Studio Error in UNIX FTP for AIX

    I am using a VS2010 Web Site Project to access files on our
    AIX server (Unix). (Pre-compiled website).
    Using Add > Existing Web Site, I have established an FTP session within my project which shows all of the Unix files and folders.
    We just found out that there were two folders on the AIX side with the same name, differing case:
     /MDM/Custom & /MDM/custom
    On the Unix side:
    To fix this, I edited the folders to move all of the stuff within /MDM/Custom into
    /MDM/custom, then I deleted /MDM/Custom entirely.
    So back to VS2010 on the Windows side:
    I deleted the website from the project and exited VS.  
    I deleted all the files in %TEMP% and restarted VS.
    I restarted VS and recreated the web site in the project using Add > Existing Web Site.
    The only folder showing is /MDM/Custom which has nothing in it.
    Refreshing the folders produces error 550. (No such file or directory). 
    How do I recover from this situation?  Where is VS storing the bogus folder name?
    P.S.: This is a pre-compiled web project
         ProjectSection(WebsiteProperties) = preProject
    ~ Shaun
    ~ Shaun

    Hello Shaun,
    Welcome to MSDN forum.
    Your issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because you are working with ASP.NET website, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SQLPlus error while trying to log in

    I have installed Oracle 9.2 RH9. When I run SQLPLUS and try to login I get the following error:
    ORA_07217: sltln: environment variable cannot be evaluated.
    What causes this error and how do you get around it?

    Leonard, apply this command and reply the results:
    [oracle@ozawa oracle]$ env
    HOSTNAME=ozawa
    TERM=xterm
    SHELL=/bin/bash
    HISTSIZE=1000
    NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
    SSH_CLIENT=192.168.0.176 3494 22
    ORACLE_OWNER=oracle
    SSH_TTY=/dev/pts/2
    USER=oracle
    LD_LIBRARY_PATH=/opt/ora9/product/9.2/lib:
    LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
    ORACLE_SID=LDEVCNS0
    ORACLE_BASE=/opt/ora9
    TNS_ADMIN=/opt/ora9/product/9.2/network/admin
    MAIL=/var/spool/mail/oracle
    PATH=/opt/ora9/product/9.2/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin
    INPUTRC=/etc/inputrc
    PWD=/home/oracle
    EDITOR=vi
    THREADS_FLAG=native
    LANG=en_US.UTF-8
    ORACLE_TERM=xterm
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    SHLVL=1
    HOME=/home/oracle
    LD_ASSUME_KERNEL=2.4.1
    dump=/var/opt/oracle/dump
    LOGNAME=oracle
    SSH_CONNECTION=192.168.0.176 3494 192.168.0.97 22
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    ORACLE_HOME=/opt/ora9/product/9.2
    G_BROKEN_FILENAMES=1
    _=/bin/env
    [oracle@ozawa oracle]$
    Joel Pérez

  • Re:SQLPLUS error

    I Installed 11.2.0.1 on one machine first, that time sqlplus and everything is working fine. I Installed 10.2.0.1 software on same machine and want to create 10gr2 database. when changing ORACLE_HOME and doing sqlplus getting below error. Any one of them faced this kind of problems.
    echo $ORACLE_HOME/u01/app/oracle/product/11.2/db_1
    export ORACLE_HOME=/u01/app/oracle/product/10.2/db_1
    sqlplus /nologSP2-1503: Unable to initialize Oracle call interface
    SP2-0152: ORACLE may not be functioning properly

    Please refer following thread
    SP2-1503 when starting sqlplus (privilege problem)

Maybe you are looking for

  • Can I create multiple hyperlinks to the same location at once?

    Hello all - I'm a first-time poster here hoping for some guidance creating links in a document.  The docs I'm working with are maps, made from .JPG images combined with a text index into a PDF file.  The index was created in MS Word, then saved as a

  • Icloud storage help

    I believe my I cloud storage is corrupted can you check it? whatever I backup comes back with unresponding apps or there may be a problem with my ipad's data that I do not understand now I have reset my ipad without using icloud now the apps work but

  • App not received even after making payment

    My Black berry I'd is -amarjitsatia I purchased one pro version of "JUnk call blocker professionl" wide order no 11391270 Dt-24 July 2012 I have still not received my order,inspite of my various mails to the vendor"S4BB Ltd" The app shown under my I'

  • Insert workflow for a particular Business requirement

    Hi, We have a requirement wherein we do not have SSHR and people are assigned to enter the absences of the employees. But still we need an approval from manager. As per my understanding, we will have to create a new workflow and the same should be ca

  • SIngle Edition / publication issue regarding FOlio orientation

    from french An error happened during the publication One of your articles does not match match the folio's orientation. Articles orientations must match the folio's orientation thing is, all my articles (10) are horizontal (single pages except on art