Set Up SQL*Plus Issue

Folks,
Hello. My Operating System is Oracle Linux 5. Database is Oracle DB 11gR1.
I have tried to set up SQL*Plus in the following way:
My directory: /home/myOracle/OracleDB_Home/bin
SYSTEM_PASS=SYSTEM/SYSTEM
export SYSTEM_PASS
./sqlplus SYSTEM/SYSTEM
But this message comes up:
Error 6 initializing SQL*Plus
Message file sql<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle Software directory.
Where is message file sql<lang>.msb ? What is Oracle Software directory ?
Can any folk help to solve this issue ?

Duplicate post
Re: Set Up SQL*Plus Issue

Similar Messages

  • Is there some time setting in sql*plus or Oracle9i

    Hi guys,
    I just run the following simple query in sql*plus in oracle 9i:
    select * from pers ;
    The table is around 190k rows. But it always stops running after 28-30minutes. No error message displayed and the whole sql*plus just hang on there.... The only thing I can do is to restart the sql*plus.
    I got this problem when I run some other query, so I use this simple query just to test if it will stop after running 30m. Now it does. I'm thinking there is some setting in sql*plus or ORACL9i I need to do. Could someone help me to solve this problem?
    Thanks in advance,

    Hi,
    you can check out this information in the user_resource_limits table.
    select * from user_resource_limits;
    COMPOSITE_LIMIT UNLIMITED
    SESSIONS_PER_USER UNLIMITED
    CPU_PER_SESSION UNLIMITED
    CPU_PER_CALL UNLIMITED
    LOGICAL_READS_PER_SESSION UNLIMITED
    LOGICAL_READS_PER_CALL UNLIMITED
    IDLE_TIME UNLIMITED
    CONNECT_TIME UNLIMITED
    PRIVATE_SGA UNLIMITED
    Thanks.

  • SQL *PLUS issue

    I have an unusual problem in SQL PLUS. When the SQL statement is a DML things go fine - no problem, BUT when the SQL statement is a DDL (like creating a database object )the process hangs. Things get more interesting ... if I open another SQL PLUS session and check out, I find that the DDL has done its task. But the first SQL session (where I issued the DDL) is still hanging. If anyone has any idea please do let me know. Any help would be very useful
    Thanks
    Mustafa

    The dot is used as like concatenation operator in sqlplus. If you need to add characters to the end of the variabel, you use a dot. If you need to add .chars then you need two dots.
    With a dot
    SQL> SELECT 'Say &something.not' FROM dual;
    Enter value for something: something
    old   1: SELECT 'Say &something.not' FROM dual
    new   1: SELECT 'Say somethingnot' FROM dual
    'SAYSOMETHINGNOT
    Say somethingnotand without
    SQL> SELECT 'Say &somethingnot' FROM dual;
    Enter value for somethingnot: something
    old   1: SELECT 'Say &somethingnot' FROM dual
    new   1: SELECT 'Say something' FROM dual
    'SAYSOMETHING
    Say somethingTTFN
    John

  • Detecting clientside NLS_LANG setting in SQL*Plus script

    Our company has developed an application that uses an Oracle database as it backend. Companies can buy our application and run it against their own Oracle installation.
    A new version of our application often requires an update to the Oracle database schema.
    Together with new application files we send our customers an update.sql script they must run against their database using SQL*Plus.
    This update script may contain international characters like é for example:
    UPDATE SHOPS SET DESCRIPTION = 'Café'
    WHERE SHOP_ID=1We save the SQL-script file in windows-1252 encoding so the character é is encoded as 0xE9 in the script file.
    When the DBA running the upgrade script has set NLS_LANG=.WE8MSWIN1252 this works perfectly.
    When the DBA has set his NLS_LANG=US7ASCII the é gets replaced by an upside-down question mark. Other NLS_LANG settings can also be troublesome.
    To prevent this we give very clear installation instructions. However, nobody reads them. This leads to two questions:
    A) Is there a way to prevent this problem so I do not depend on the NLS_LANG setting by the DBA running the upgrade script?
    B) Otherwise: is there a way to test for the NLS_LANG setting inside the script and abort if it is not WE8MSWIN1252?
    Info:
    Database is 10.2.0.3/10.2.0.4 and sometimes 10.2.0.5, always database character set WE8MSWIN1252.
    Client software: I do not know what each DBA uses but it will be mostly 10g client software
    Client OS: Some DBA's will be running the script from Windows, others from some Unix variety. I cannot control that.

    I agree with Sergiusz. You're much better off if you can remove character set dependencies from your scripts by using commands like this.
    UPDATE SHOPS SET DESCRIPTION =  unistr( 'Caf\00E9' )
    WHERE SHOP_ID=1 ;If that's not possible however you can try this approach to determine the session's character set.
    SQL> column USERENV_LANGUAGE format a30
    SQL> column oracle_charset   format a20
    SQL> r
      1  select
      2    userenv_language
      3  , substr
      4    ( userenv_language
      5    , instr( userenv_language, '.' ) + 1
      6    ) as oracle_charset
      7  from
      8  ( select sys_context( 'USERENV', 'LANGUAGE' ) as userenv_language
      9    from dual
    10* )
    USERENV_LANGUAGE               ORACLE_CHARSET
    AMERICAN_AMERICA.AL32UTF8      AL32UTF8 --
    Joe

  • Set up SQL*plus client

    Hi Friends,
    I download oracle10g release 2 and create a test database. I can connect to database by server side SQL*plus.
    However, I install oracle client 10.2.01.0 in other mechine. I could not connect server.
    TNS as
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    #SQLNET.AUTHENTICATION_SERVICES = (NTS)
    #NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    DS02 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = jimmy.mycompany>COM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME =orcl)
    how to fix it?
    I am new person in DBA.
    Thanks
    JIm

    On your server side do
    lsnrctl status
    what's the result?

  • Can network setting cause sql*plus logon failure?

    During install of verizon service the techs had to alter some network setting to allow the cable connection to work. Afterwards I was unable to connect to oracle database using pl*sql, getting instead an ORA 12514 error.
    Is it possible the altered network settings caused this problem? I am running oracle 10g on XP windows.

    1. you're not using pl*sql to connect. you're using SQLPLUS to connect.
    2. ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor
    so, verizon changed something, perhaps the "windows\system32\drivers\etc\hosts" file, so that now your TNSNAMES.ORA has the wrong info. check tnsnames.ora, and see if it's using machine name, IP, or "localhost", then give the new, correct info.

  • SQL Plus Log on Issues

    Not entirely sure if I've posted in the correct area..
    I've recently installed the Oracle 11g. Installation process seemed fine but I'm unable to access any components of the software (eg. SQL Plus)
    When I try to enter my UN and PW, I keep getting the ORA-01017: INVALID USERNAME/PASSWORD: LOGON DENIED.
    If I'm not mistaken, isn't this meant to be the default username and password set during the installation process? (un in this case was orcl, and I set my own password supposedly)
    I've installed it on my home computer so, I'm not aware of any dba or what not ;S
    OS: Windows 7 Ultimate
    Please let me know of any more information you require. Thanks!
    On a side note, I also cannot access the SQL Developer- says it cannot find the path to java.exe. I have installed the JDK 7 and written the path down but still does not work. Help with this is also appreciated but, the SQL Plus issue is predominant ;x
    Edited by: 992341 on Mar 6, 2013 8:13 PM

    992341 wrote:
    Not entirely sure if I've posted in the correct area..
    I've recently installed the Oracle 11g. Installation process seemed fine but I'm unable to access any components of the software (eg. SQL Plus)
    When I try to enter my UN and PW, I keep getting the ORA-01017: INVALID USERNAME/PASSWORD: LOGON DENIED.
    Believe this & EVERY Oracle error code & message.
    BTW - With V11 passwords are CaseSenSitive; "FUBAR" is different from "fubar", etc.
    I am curious regarding to which USERNAME are you trying to login as?
    If I'm not mistaken, isn't this meant to be the default username and password set during the installation process? (un in this case was orcl, and I set my own password supposedly)
    I've installed it on my home computer so, I'm not aware of any dba or what not ;S
    OS: Windows 7 Ultimate
    Please let me know of any more information you require. Thanks!
    On a side note, I also cannot access the SQL Developer- says it cannot find the path to java.exe. I have installed the JDK 7 and written the path down but still does not work. Help with this is also appreciated but, the SQL Plus issue is predominant ;x
    Edited by: 992341 on Mar 6, 2013 8:13 PMHow do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • SQL*plus not displaying the result of XMLELEMENT

    HI,
    I am using SQL*Plus: Release 10.1.0.4.2
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    When I run the following query in SQL*PLUS, I get nothing displayed. However when I run the same query connecting to the same database using SQL Developer then I get the result
    SQL> select XMLELEMENT("form_id",form_id)
    2 FROM collections;
    XMLELEMENT("FORM_ID",FORM_ID)
    In SQL developer
    <form_id>101</form_id>
    I set long and longchuncksize to 32K , and I change linesize, pages, but nothing helped
    Is there any configuration that I have to do, so that SQL*plus display the result of “ select XMLELEMENT("form_id",form_id) query.
    Appreciate you help, thanks

    From a fresh start ;) :
    SQL*Plus: Release 10.1.0.4.2 - Production on Fri Feb 26 15:29:04 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select xmlelement("value", a.object_name )
      2  from   all_objects a
      3  where  rownum <= 5;
    XMLELEMENT("VALUE",A.OBJECT_NAME)
    SQL> select xmlelement("value", (select b.object_name
      2                              from   all_objects b
      3                              where b.object_name = a.object_name
      4                              )
      5                   )
      6  from   all_objects a
      7  where  rownum <= 5;
    XMLELEMENT("VALUE",(SELECTB.OBJECT_NAMEFROMALL_OBJECTSBWHEREB.OBJECT_NAME=A.OBJE
    <value>ICOL$</value>
    <value>I_USER1</value>
    <value>CON$</value>
    <value>UNDO$</value>
    <value>C_COBJ#</value>
    SQL> show all
    appinfo is OFF and set to "SQL*Plus"
    arraysize 15
    autocommit OFF
    autoprint OFF
    autorecovery OFF
    autotrace OFF
    blockterminator "." (hex 2e)
    btitle OFF and is the first few characters of the next SELECT statement
    cmdsep OFF
    colsep " "
    compatibility version NATIVE
    concat "." (hex 2e)
    copycommit 0
    COPYTYPECHECK is ON
    define "&" (hex 26)
    describe DEPTH 1 LINENUM OFF INDENT ON
    echo OFF
    editfile "afiedt.buf"
    embedded OFF
    escape OFF
    FEEDBACK ON for 6 or more rows
    flagger OFF
    flush ON
    heading ON
    headsep "|" (hex 7c)
    instance "local"
    linesize 80
    lno 9
    loboffset 1
    logsource ""
    long 80
    longchunksize 80
    markup HTML OFF HEAD "<style type='text/css'> body {font:10pt Arial,Helvetica,sans-serif; color:blac
    newpage 1
    null ""
    numformat ""
    numwidth 10
    pagesize 14
    PAUSE is OFF
    pno 1
    recsep WRAP
    recsepchar " " (hex 20)
    release 1002000300
    repfooter OFF and is NULL
    repheader OFF and is NULL
    serveroutput OFF
    shiftinout INVISIBLE
    showmode OFF
    spool OFF
    sqlblanklines OFF
    sqlcase MIXED
    sqlcode 0
    sqlcontinue "> "
    sqlnumber ON
    sqlpluscompatibility 10.1.0
    sqlprefix "#" (hex 23)
    sqlprompt "SQL> "
    sqlterminator ";" (hex 3b)
    suffix "sql"
    tab ON
    termout ON
    timing OFF
    trimout ON
    trimspool OFF
    ttitle OFF and is the first few characters of the next SELECT statement
    underline "-" (hex 2d)
    USER is "HR"
    verify ON
    wrap : lines will be wrapped
    SQL>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Settings of the SQL*Plus interface

    Hi,
    in 10g R2
    how to modify settings of the SQL*Plus interface ?
    SQL> show all
    appinfo is OFF and set to "SQL*Plus"
    arraysize 15
    autocommit OFF
    ..............Thanks.

    user522961 wrote:
    Hi,
    in 10g R2
    how to modify settings of the SQL*Plus interface ?
    SQL> show all
    appinfo is OFF and set to "SQL*Plus"
    arraysize 15
    autocommit OFF
    ..............Thanks.http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/toc.htm
    HTH
    Aman....

  • Sql*plus variable

    Hello,
    When we set some sql*plus variable, where does it set on server or client machine?
    Thanks.

    The variable command sets it as a bind variable on the server side.
    ~ Madrid.

  • SQL*Plus column command not working with Script Runner

    SQL Developer EA 2.1
    When running a script (interactive or from a file), the COLUMN commands are ignored. The documentation (User's Guide 1.7.1) says that COLUMN is supported, but the headings set in the column command are not changed. As a test, the SET FEEDBACK OFF command is processed.
    SET FEEDBACK OFF
    COLUMN ename HEADING 'Name'
    COLUMN job HEADING 'Job'
    COLUMN deptno HEADING 'Dept'
    SELECT ename as ename, JOB, DEPTNO
    FROM EMPLOYEES;
    The documentation for Script Runner (User's Guide 1.7.2) says that a much more limited set of SQL*Plus commands are available.
    Is this intended behavior? If so, the documentation should reflect that the COLUMN command is ignored.

    Hi,
    Doc bug logged:
    Bug 9015160 - OTNEA1: USER GUIDE COLUMN SUPPORTS 'COLUMN...NEWVAL' ONLY
    The user guide says column is supported, but
    Column supports the following new_value use only
    i.e. moving a value from a selected column to a substitution variable:
    column aval new_v a
    select 1 aval from dual;
    select '&a' || ' is 1' from dual;
    Output:
    AVAL
    1
    1 rows selected
    '1'||'IS1'
    1 is 1
    1 rows selected
    -Turloch

  • Access database issue in SQL Plus

    Hi Friends,
    I download a oracle 10g to install sql Plus without create database. (I download client and does not find SQL Plus)
    I can ping database server from client PC and also set up a TNS.
    However I got a error ORA 12504 --TNS:listener was not start.
    I can access database by sql plua from server side. I do not think we need to put a listener file in client PC under admin path.
    my database set as RAC module and system as window 2003
    how to fix this issue?
    Thanks,
    JIm

    OK, just to be clear, you have a single client machine where you have installed something with the 10g label. Are you saying that you installed the Oracle database bits, but did not create a database? Rather than doing a client-only install? Is there a single Oracle home on the client machine?
    And then you have a RAC database running on multiple Windows 2003 servers, right? Is there a listener running for this RAC database? Can you connect to it from other client machines?
    Are you certain that the service name you specified in the client machine's tnsnames.ora file matches the service the listener is listening for?
    Justin

  • ASM Auto Start vs SQL*Plus Contention Issue

    We are trying to install the single server instance of ASM with the Grid Infrastructure and DB 11gR2. We have specified auto start on the oracleasm configuration.
    OS = Linux 5.
    After a reboot. the ASM processes show up when I run "ps -ef|grep asm". When I log into SQL*Plus it says it's connected to an idle instance. However, when I issue the startup command it responds with "ORA-15149: another ASM instance found running on the host".
    My ORACLE_SID = +ASM and my ORACLE_HOME is set to the directory where grid is installed. These are the values that I specified during the Universal Installer session.
    Can someone help me make sense of this?
    Thanks,
    Gregory

    Thanks for your replies.
    It turns out that the problem had to do with how I specified the grid ORACLE_HOME. I still don't understand why it should make a difference, but...
    I am in the habit of typing a few characters of a directory or file name and hitting tab to have the system fill in the rest of the name. As the system finishes a name it appends a slash. So, I would end up with something like
    export ORACLE_HOME=/LIB_ORACLE/11.2.0/grid/That trailing slash was screwing things up. If I entered all of that without the trailing slash, my sqlplus connected just fine.
    Thanks again,
    Gregory

  • Preference equivalents for relevant SQL*Plus set commands?

    I know that the SQL*Plus set command is not supported in Raptor (as per http://www.oracle.com/technology/products/database/project_raptor/sql_worksheet_commands.html), but there are a number of set options that are relevant.
    For example, set define (for which "set define off" is covered in Ampersand in scripts We have a number of existing SQL scripts where we have set the define character to something apart from & to avoid issues where this is a required value in the code.
    Setting server output size is another option - as per set serveroutput on size unlimited .
    Is there any proactive plan to provide preferences equivalent to the set options that are relevant (to either SQL scripts or the various output tabs)? Or is the exclusion of the SQL*Plus set command only for the current version and it will be included later? From the discussion on the forums so far, it seems as though you are looking at each set option as it is raised, rather than being proactive about it.
    Even if Raptor does provide preferences, it would still be useful for the equivalent set commands to work. Lets say that we do get a preference for the define character - 99% of the time, scripts want this to be & - however there are some where the script wants it to be $ (or whatever). With a preference, I need to know what the script wants and change the preference before running the script and then change it back afterwards.

    Hi Turloch,
    When is this script executed ?
    In 3.1EA2 I created a sql script where a variable is defined and set this script as you suggested.
    Script:
    define varname=abc
    When I open a connection, a worksheet is automatically opened. I run this statements:
    select '&varname' from dual;
    define varname=xyz
    select '&varname' from dual;
    Running the first select statement results in a popup window for entering a value for the substitution variable, while I was expecting the value abc as the result of the query.
    See also this blog where the login script is explained.
    But in my SQL Developer 3.1EA2 64-bit on Windows 7 it doesn't work like that.
    Is this a bug?
    Dennis

  • SET NULL not working in SQL*Plus

    DB Version: 10.2.0.4
    Question1.
    Won't SET NULL work with PL/SQL block?
    Question2.
    Why is <<>> appearing in several lines (one character per line) as shown below? Sorry about the "jive-quote" thing below, got that after i added code tags.
    SQL > show lines
    linesize 80
    SQL > show pages
    pagesize 14
    SQL > set null <<>>
    SQL > select null from dual;
    N
    <
    <
    >
    >
    SQL > set serveroutput on
    SQL > declare
      2  v_Val VARCHAR2(100) :='COCOJUMBO';
      3  BEGIN
      4  SELECT null INTO v_val from dual ;
      5  DBMS_output.put_line(v_val);
      6  EXCEPTION
      7  WHEN NO_DATA_FOUND THEN
      8  dbms_output.put_line('Exception:'||SQLERRM);
      9  END;
    10  /
    PL/SQL procedure successfully completed.
    SQL >

    user872043 wrote:
    DB Version: 10.2.0.4
    Question1.
    Won't SET NULL work with PL/SQL block?No. SET NULL is a SQL*Plus command, not a PL/SQL command.
    Question2.
    Why is <<>> appearing in several lines (one character per line) as shown below? Sorry about the "jive-quote" thing below, got that after i added code tags.That's due to default formatting. For example:
    SQL> SET NULL <<>>
    SQL> SELECT NULL FROM DUAL;
    N
    <
    <
    >
    >
    SQL> COLUMN col FORMAT A4
    SQL> SELECT NULL col FROM DUAL;
    COL
    <<>>

Maybe you are looking for