SQL plus pop up message dialog

Dear all,
Did anyone come across any experience like that:
When I execute a SQL statment that may need return a several thousands line in SQLPlus,
If I used SQLPlus version 3.3.4.00 (Oracle 7), a pop up message dialog will come up like
"Query is Executing ..." and a "Cancel" button is available in dialog box also.
However, If I used SQLPlus version 8.0.5 (Oracle 8 or laster), this pop up won't show up anymore.
The pop up is useful if I need to break the process and I just want to know if anything is required to configured on latest SQLPlus to activate this!
Thanks and Regards
Kenneth

The removal of the cancel dialog was an unfortunate side effect
of an internal rewrite of SQL*Plus code in 8.0. The fundamental
problem still persists into 9i and it is not until 9i release 2
(being touted on www.oracle.com) that the iSQL*Plus web interface
(though not the SQL*Plus GUI on Windows) has a cancel button.
This was spoken about on the OTN iSQL*Pus discussion forum a
while back.
-- CJ

Similar Messages

  • Pop up message / dialog box

    Hi,
    I need your help to create a message box. In my app I am doing some data validation (Function returning Error Text). It generates messages but upon load of the page, I would like to have popup message box stating that there records which failed the validation. There will be 1 button (OK) in the message box.
    Thanks in advance.
    Arjay

    Hello Arjay,
    Following another thread on the forum (Detecting validation errors during accept processing I think I have fairly simple solution to your request.
    You should define a hidden item that will serve us as a flag, with default value set to 'False'.
    You should define a HTML region, condition by the flag being 'True'. This region should contain similar code to the following:
    <script language="JavaScript" type="text/javascript">
    <!—Hide
    alert('Validation Error on page');
    // End Hide -->
    </script>You should define a before validation process, that will set the flag to 'True', and another process, after computation and validation, that will set it to 'False'.
    The logic is simple. By default, the flag will be set to 'False' so the region with the popup message will not be rendered. Then, prior to validation, you are setting the flag to 'True'. If validation errors were detected, the after validation process will not be fired, and the region with the popup message will be rendered, as the flag is 'True'. If no validation errors were detected, the after validation process will set the flag back to 'False'.
    Hope this helps,
    Arie.

  • Error 57 initializing SQL*Plus

    i am not able to start sql plus. It gives me the below mentioned error message. I did not have any problem when i worked a month back but now when i am going to start again, it gives me this error. In between, the only change i brought into my PC is the installation of Kaspersky Antivirus and doing the full scan?
    Error 57 initializing SQL*Plus
    Error loading message shared library
    thanks

    hick wrote:
    i am not able to start sql plus. It gives me the below mentioned error message. I did not have any problem when i worked a month back but now when i am going to start again, it gives me this error. In between, the only change i brought into my PC is the installation of Kaspersky Antivirus and doing the full scan?
    Error 57 initializing SQL*Plus
    Error loading message shared library
    thanksThis error is raised during the early startup processing for sqlplus and is, by nature, rather generic. Since it is raised during initialization, it's quite possible that not all libraries that might be needed for additional details (such as localized error messages) are loaded.
    As the only thing you mention has changed is installation of Kaspersky, that suggests it is blocking a required library from being loaded. This error can also be raised when there is insufficient memory available (which would also prevent loading of required libraries, etc).
    Here's a simple test you can do to illustrate this (obviously not on a production system, etc!):
    $ cd \Oracle\11.2\database\BIN
    $ dir /s /b oraclient11.dll
    C:\Oracle\11.2\database\BIN\oraclient11.dll
    $ rem temporarily rename the Oracle RDBMS Client Library for testing
    $ ren oraclient11.dll oraclient11.dll.save
    $ rem this will raise error 57 since a required library could not be loaded during initialization
    $ sqlplus.exe /nolog
    Error 57 initializing SQL*Plus
    Error loading message shared library
    $ rem be sure to change back!
    $ ren oraclient11.dll.save oraclient11.dllRegards,
    Mark

  • SQL Plus error

    I'm working with Ubuntu 10.04 Server.
    I just installed Oracle XE 11g (11.2.0 specifically)
    All I did was download the .rpm file and converted it to a deb (using alien) and then ran the deb (using dpkg). Everything seems to be installed fine however when I try to run sqlplus I get the following message:
    Error 6 initializing SQL*Plus
    SP2-0667: Message file sp1(lang).msb file not found
    SP2-0750: You may need to set your ORACLE_HOME to your Oracle software directory
    However the oracle_env.sh states that ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe which is the correct path (at least I think it is). So does anyone know what the issue is?
    Thanks

    I've checked all of the log files in the log directory and there doesn't seem to have been any errors in them.That's good. So we can assume most things worked as intended.
    Path looks wrong... But no idea how it got to be wrong or how to fix it.It does. Did you execute the following from Step 9)
    echo "" >>./.profile
    echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >>./.profileThis should set up your environment as needed. In the guide, this had been done for the "oracle" user only. If you use a different account, you'll have to either source or include that environment script as well.
    Please also check whether it has been created correctly by running
    cat /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.shThe output should read
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
    export ORACLE_SID=XE
    export NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`
    export PATH=$ORACLE_HOME/bin:$PATHThough possibly not mandatory, you could add
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/libto that script. This will set the library path to include the oracle libraries, such as client libraries.
    LANG-settings are okay, by the way.
    -Udo
    Edited by: Udo on 26.03.2012 16:02

  • Sql plus -s in shell script

    Hi Folks
    I have this code in my shell script but am getting the below error please check
    sqlplus -s scott@xyz/tiger @1.sql > 1.log
    and oracle home is
    /oracle/app/oracle/product/11.2.0/dbhome_1
    error thrown is
    Error 6 initializing SQL*Plus
    SP2-0667: Message file sp1<lang>.msb not found
    SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
    i have checked i have sp1us.msb please help me on this

    newbie wrote:
    Sir i have given my oracle home.
    how to check whether it is set properly o not?No, you have stated what you believe ORACLE_HOME should be. But you have NOT proven that it was correctly set in the session that threw the error, and the error itself is almost certain proof that it was NOT set correctly. And your assertion that the referenced file does indeed exist (again, your assertion, not proof) lends more weight to the evidence that ORACLE_HOME is not properly set.
    Issue the following commands, then copy and paste the entire session (full command, full output) to your next posting
    env |grep ORA|sort
    echo $PATH
    sqlplus -s scott@xyz/tiger @1.sql > 1.log

  • SQL*PLUS WINDOW DOESNT GIVE AN ERROR MESSAGE.

    HI,
    i FOUND OUT THAT IF I HAD AN ERROR IN MY SQL SCRIPT, THE WINDOW WILL DISAPPEAR AND LOST EVERYTHING THAT I HAVE DONE. IT DOESNT GIVE ME AN ERROR MESSAGE. IM HERE IN CHAP05, BUILDING A RELATIONAL SCHEMA OF ORACLE DATABASE 10G EXPRESS EDITION FOR LINUX. WHAT PARAMETER AM I MISSING IN MY SYSTEM? PLS. HELP ME. THANKS.
    LEN

    Hi,
    Most likely you have to adjust WHENEVER SQLERROR and (or) WHENEVER OSERROR settings.
    Consider an example below:
    C:\> sqlplus /NOLOG
    SQL*Plus: Release 9.2.0.6.0 - Production on Wed Nov 1 02:55:29 2006
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    SQL> conn max
    Enter password:
    Connected.
    SQL>
    SQL> whenever sqlerror continue
    SQL>
    SQL> exec raise_application_error(-20000, 'Error')
    BEGIN raise_application_error(-20000, 'Error'); END;
    ERROR at line 1:
    ORA-20000: Error
    ORA-06512: at line 1
    SQL> whenever sqlerror exit
    SQL>
    SQL> exec raise_application_error(-20000, 'Error')
    BEGIN raise_application_error(-20000, 'Error'); END;
    ERROR at line 1:
    ORA-20000: Error
    ORA-06512: at line 1
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    C:\>As you can see, with WHENEVER SQLERROR set to EXIT, SQL*Plus session terminates as it encounters any program error.
    Similarly, for OSERROR setting:
    C:\> sqlplus /NOLOG
    SQL*Plus: Release 9.2.0.6.0 - Production on Wed Nov 1 02:57:08 2006
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    SQL> conn max
    Enter password:
    Connected.
    SQL>
    SQL> start C:\non_existent_file
    SP2-0310: unable to open file "C:\non_existent_file.sql"
    SQL>
    SQL> whenever oserror exit
    SQL>
    SQL> start C:\non_existent_file
    O/S Message: No such file or directory
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    C:\>Hope this helps.

  • Redirecting error message on SQL Plus

    When using SQL Plus, is there a way to send error messages to my c:\ drive vs. the server?

    Hi grama16,
    From what I've noticed, that error message shows up sometimes for ink or printhead issues. Please follow as many steps as you can in the guide below, it should help fix the issue for your printer
    'Ink System Failure' or a '0x ...' Error Message Displays on the Control Panel
    *** If my reply was helpful, please click on the "Kudos Thumbs-Up" on the right, as a way to say "Thanks!".
    If this reply also fixed your issue - please click the "Accept as Solution" button, so that others can find the same answer. ***

  • Messages on entry to SQL*Plus

    (Long shot...)
    Is it possible to display a message to the user upon entry to SQL*Plus? Effectively appending to the information that Oracle provides by way of versions etc.
    Thanks
    Jason.

    Jason:
    You can run any sql right after user SQLPLUS console by inserting the sql into glogin.sql which is located in $ORACLE_HOME/sqlplus/admin directory.
    Jack

  • 8iLite,SQL*PLUS Won't start, ORA-12203

    I d/l'd 8iLite and I am running on WIN95. In the log on dialog box for SQL*PLUS, I typed username = scott and password = tiger and got the error message: ORC-12203:TNS: unable to connect to destination. (This indicates that the username and password are acceptable.)
    Earlier, I was in Oracle Navigator and tried to set myself up as a new user. From the file menu, I selected Createdb.exe and I go the error message: C:\orawin95\BIN\Createdb.exe has a bad format. I also selected crdb35.exe from the file menu and got the error mesage: c:\orawin95\BIN\crdb35.exe has a bad format.
    In each case, I clicked OK to close the dialog box and attempted to enter the new user properties anyway; in each case I got the error message ORA-12203:TNS:unable to connect to destination.
    I am wondering whether the root cause of the problem is that Createdb.exe and crdb35.exe are corrupted, and is so, what to do about it. My main goal is to get SQL*PLUS running on the sample (POLITE) database.
    ANY help would be greatly appreciated. If someone would email me good copies of Createdb.exe and crdb35.exe, I'll try that.
    Thanks, Gary

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Gary Premo ([email protected]):
    I d/l'd 8iLite and I am running on WIN95. In the log on dialog box for SQL*PLUS, I typed username = scott and password = tiger and got the error message: ORC-12203:TNS: unable to connect to destination. (This indicates that the username and password are acceptable.)
    Earlier, I was in Oracle Navigator and tried to set myself up as a new user. From the file menu, I selected Createdb.exe and I go the error message: C:\orawin95\BIN\Createdb.exe has a bad format. I also selected crdb35.exe from the file menu and got the error mesage: c:\orawin95\BIN\crdb35.exe has a bad format.
    In each case, I clicked OK to close the dialog box and attempted to enter the new user properties anyway; in each case I got the error message ORA-12203:TNS:unable to connect to destination.
    I am wondering whether the root cause of the problem is that Createdb.exe and crdb35.exe are corrupted, and is so, what to do about it. My main goal is to get SQL*PLUS running on the sample (POLITE) database.
    ANY help would be greatly appreciated. If someone would email me good copies of Createdb.exe and crdb35.exe, I'll try that.
    Thanks, Gary<HR></BLOCKQUOTE>
    null

  • IF statement in SQL*Plus - how to do it

    Hi,
    In SQL*Plus script, I would like to keep conditional checking (IF statement) and proceed. For example, whatever is done in PL/SQL block below, want to do the same in SQL*Plus script, I know partly it can be done using VARIABLE keyword, conditional checking can be done using DECODE in SELECT statement, but I want to carry out a more complex requirement, hence I want to use IF statement somehow in SQL*Plus.
    Another question, how to do spooling in PL/SQL script, it can be done using UTL_FILE, any other option is there to achieve this.
    declare
    v_ind_count int;
    begin
    select count(1) into v_ind_count from user_indexes where index_name = 'index_object_name';
    IF v_ind_count > 0
    THEN
    dbms_output.put_line('index found');
    ELSE
    dbms_output.put_line('index does not exist');
    END IF;
    end;
    /

    Hello,
    SQL*PLUS has no scripting language. It can only execute SQL and PL/SQL scripts. There are some commands like SPOOL or SET but no commands for conditional statements. You should describe your requirements, maybe we can find a way.
    Or you can search the forum, maybe your question has already been answered
    [Google for SQL*PLUS + condition|https://www.google.de/search?q=site%3Aforums.oracle.com+"SQL*PLUS"+condition]
    # {message:id=4189517}
    # {message:id=4105290}
    how to do spooling in PL/SQL scriptFrom within PL/SQL you can use dbms_output, the spool has to be started by the calling SQL script when it is executed in SQL*PLUS. Or you can use utl_file, but then you can only write to a server directory, not into a client file. To give an advice we need more information about what you want to do.
    Regards
    Marcus

  • Apex 4.0 - Can see view data in SQL*Plus but no data in Object Browser

    Hi There,
    I have just started using Apex 4.o and migrated some apps. I have an issue with a report, but see the same issue with Object browser, which is easier to describe.
    I have a view:
    create or replace view V_PLJ_USERDEF_CODES (
             CODE_SET_ID,
             CODE_SET_CODE,
             CODE_SET_DESC,
             CODE_ID,
             CODE_SYS_CODE,
             CODE_VALUE,
             CODE_DESC,
             DISPLAY_SEQ,
             DISPLAY_FLAG,
             LANGUAGE_CODE) as
      select CS.CODE_SET_ID,
             CS.CODE_SET_CODE,
             CS.CODE_SET_DESC,
             C.CODE_ID,
             C.CODE_SYS_CODE,
             C.CODE_VALUE,
             C.CODE_DESC,
             C.DISPLAY_SEQ,
             C.DISPLAY_FLAG,
             C.LANGUAGE_CODE
        from PLJ_CODES C,
             PLJ_CODE_SETS CS
       where C.CODE_SET_ID         = CS.CODE_SET_ID
         and CS.CODE_SET_TYPE_CODE = SYS_CONTEXT('PLJUMPSTART','C_USERDEF_CODE_SET');This returns data in SQL*Plus, but no data in Object Browser OR report region based on this view.
    Workspace parses in the same schema as tested in SQL*Plus.
    If, in report, I swap out view, and use underlying table - no problem.
    Any ideas -
    thanks
    P

    Hi all,
    Thanks for getting back so promptly.
    It just seems weird to me, as tables are just fine, but not views.
    In the underlying schema:
    SQL> sho user
    USER is "ICSREPORTING"
    SQL> select count(*) from plj_codes;
      COUNT(*)
           107
    SQL> select count(*) from v_plj_userdef_codes;
      COUNT(*)
            29And in the APEX schema
    SQL> sho user
    USER is "APEX_040000"
    SQL> select count(*) from icsreporting.plj_codes;
    select count(*) from icsreporting.plj_codes
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> select count(*) from icsreporting.v_plj_userdef_codes;
    select count(*) from icsreporting.v_plj_userdef_codes
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL>However, in SQL browser, I can see the data in PLJ_CODES but in V_PLJ_USERDEF_CODES, just the message "This view has no data". Indeed, it is like this for all views.
    I even explicitly granted access to APEX_040000 but no good.
    In fact, I would like to know more about how Apex gets access to do DML against the underlying parsing schema(s).
    This is a little frustrating though. It worked just fine in lots of apps in version 2.1 to 3.2
    Am I missing something
    paul
    p.s I knew there would be a question about the context, but I had already checked that. :)
    Edited by: PJ on Nov 19, 2010 4:09 AM

  • Oracle:JDBC Call returns no results, SQL*Plus returns 1 record, Please help

    Any help would be greatly appreciated.
    Running 9.2.0.5.0, and using latest 9.2 JDBC 1.4_g drivers in thin mode.
    Execute the following query from SQL*Plus and it returns one row, from JDBC using a PreparedStatement, I get no results. Here's the query, table def, record, etc.:
    Query:
    SELECT
    ID_WEB_FRM,ID_WEB_SIT,CDE_LVL_1_FUNC,
    CDE_LVL_2_FUNC,NUM_WEB_FUNC_PG,NUM_WEB_PG_ID
    FROM
    WEB_FRM
    WHERE
    ID_WEB_FRM = ' '
    OR
    (ID_WEB_SIT = 'test' AND CDE_LVL_1_FUNC = ' '
    AND CDE_LVL_2_FUNC = 'u2T' AND NUM_WEB_FUNC_PG = 1
    AND NUM_WEB_PG_ID = 0)
    Record returned from SQL*Plus:
    ID_WEB_FRM ID_WEB_SIT CDE CDE NUM_WEB_FUNC_PG NUM_WEB_PG_ID
    NfRRmc5XZu test u2T 1 0
    Both in the data returned and the query, there are no blanks, but they are a single space instead (hard to see in message here).
    Java code:
    int count = 1;
    findDBNameStatement.setString(count++," ");
    findDBNameStatement.setString(count++,form.getSiteID());
    findDBNameStatement.setString(count++," ");
    findDBNameStatement.setString(count++, form.getFunctionID());
    findDBNameStatement.setInt(count++,form.getPageNumber());
    findDBNameStatement.setInt(count++,form.getSectionNumber());
    ResultSet resultSet = findDBNameStatement.executeQuery();
    ResultSetMetaData metaData = resultSet.getMetaData();
    resultSet.next() returns false
    DB table:
    CREATE TABLE web_frm (
    ID_WEB_FRM varchar2(10) NOT NULL,
    ID_WEB_SIT varchar2(20) NOT NULL,
    NAM_WEB_FRM varchar2(40),
    TXT_EMAIL_SUBJ varchar2(50),
    CDE_LVL_1_FUNC char(3),
    CDE_LVL_2_FUNC char(3) NOT NULL,
    NUM_WEB_FUNC_PG int NOT NULL,
    NUM_WEB_PG_ID smallint NOT NULL,
    DTE_WEB_FRM_EFF date NOT NULL,
    DTE_WEB_FRM_TRM date,
    CDE_VLDT_RUL char(3),
    DTE_LAST_EXPRT date,
    TXT_CNFRMN_MSG varchar2(4000),
    IND_UPDT_ALWD char(1) NOT NULL,
    TXT_RECAP_HDR varchar2(4000),
    TXT_RECAP_FTR varchar2(4000),
    CDE_WEB_OBJ char(3),
    NUM_MAX_FRM_WIDTH number(4,0),
    IND_RECAP_PG char(1) NOT NULL,
    IND_CNFRM_PG char(1) NOT NULL,
    IND_DSPL_CNFRM_NUM char(1) NOT NULL,
    CNT_SUBM_MAX int,
    TXT_CHCE_ADD_MSG varchar2(255),
    TXT_CHCE_MOD_MSG varchar2(255),
    TXT_WEB_HDR varchar2(4000),
    TXT_WEB_FTR varchar2(4000),
    TXT_WAIT_LIST_MSG varchar2(255),
    FORMOBJECTHEIGHT int NOT NULL,
    FORMOBJECTWIDTH int NOT NULL
    ALTER TABLE web_frm ADD ( CONSTRAINT PK_web_frm PRIMARY KEY (ID_WEB_FRM));
    ALTER TABLE web_frm ADD ( CONSTRAINT UK_web_frm UNIQUE (ID_WEB_SIT,CDE_LVL_1_FUNC,CDE_LVL_2_FUNC,NUM_WEB_FUNC_PG,NUM_WEB_PG_ID)) ;
    Thanks,
    Matt

    That's not quite right. From the javadocs:
    next
    public boolean next()
    throws SQLException
    Moves the cursor down one row from its current position. A ResultSet cursor is initially positioned before the first row; the first call to the method next makes the first row the current row; the second call makes the second row the current row, and so on.
    If an input stream is open for the current row, a call to the method next will implicitly close it. A ResultSet object's warning chain is cleared when a new row is read.
    Returns:
    true if the new current row is valid; false if there are no more rows
    Throws:
    SQLException - if a database access error occurs

  • JDBC Call returns no results, SQL*Plus returns 1 record, Please help!

    Any help would be greatly appreciated.
    Running 9.2.0.5.0, and using latest 9.2 JDBC 1.4_g drivers in thin mode.
    Execute the following query from SQL*Plus and it returns one row, from JDBC using a PreparedStatement, I get no results. Here's the query, table def, record, etc.:
    Query:
    SELECT
    ID_WEB_FRM,ID_WEB_SIT,CDE_LVL_1_FUNC,
    CDE_LVL_2_FUNC,NUM_WEB_FUNC_PG,NUM_WEB_PG_ID
    FROM
    WEB_FRM
    WHERE
    ID_WEB_FRM = ' '
    OR
    (ID_WEB_SIT = 'test' AND CDE_LVL_1_FUNC = ' '
    AND CDE_LVL_2_FUNC = 'u2T' AND NUM_WEB_FUNC_PG = 1
    AND NUM_WEB_PG_ID = 0)
    Record returned from SQL*Plus:
    ID_WEB_FRM ID_WEB_SIT CDE CDE NUM_WEB_FUNC_PG NUM_WEB_PG_ID
    NfRRmc5XZu test u2T 1 0
    Both in the data returned and the query, there are no blanks, but they are a single space instead (hard to see in message here).
    Java code:
    int count = 1;
    findDBNameStatement.setString(count++," ");
    findDBNameStatement.setString(count++,form.getSiteID());
    findDBNameStatement.setString(count++," ");
    findDBNameStatement.setString(count++, form.getFunctionID());
    findDBNameStatement.setInt(count++,form.getPageNumber());
    findDBNameStatement.setInt(count++,form.getSectionNumber());
    ResultSet resultSet = findDBNameStatement.executeQuery();
    ResultSetMetaData metaData = resultSet.getMetaData();
    resultSet.next() returns false
    DB table:
    CREATE TABLE web_frm (
    ID_WEB_FRM varchar2(10) NOT NULL,
    ID_WEB_SIT varchar2(20) NOT NULL,
    NAM_WEB_FRM varchar2(40),
    TXT_EMAIL_SUBJ varchar2(50),
    CDE_LVL_1_FUNC char(3),
    CDE_LVL_2_FUNC char(3) NOT NULL,
    NUM_WEB_FUNC_PG int NOT NULL,
    NUM_WEB_PG_ID smallint NOT NULL,
    DTE_WEB_FRM_EFF date NOT NULL,
    DTE_WEB_FRM_TRM date,
    CDE_VLDT_RUL char(3),
    DTE_LAST_EXPRT date,
    TXT_CNFRMN_MSG varchar2(4000),
    IND_UPDT_ALWD char(1) NOT NULL,
    TXT_RECAP_HDR varchar2(4000),
    TXT_RECAP_FTR varchar2(4000),
    CDE_WEB_OBJ char(3),
    NUM_MAX_FRM_WIDTH number(4,0),
    IND_RECAP_PG char(1) NOT NULL,
    IND_CNFRM_PG char(1) NOT NULL,
    IND_DSPL_CNFRM_NUM char(1) NOT NULL,
    CNT_SUBM_MAX int,
    TXT_CHCE_ADD_MSG varchar2(255),
    TXT_CHCE_MOD_MSG varchar2(255),
    TXT_WEB_HDR varchar2(4000),
    TXT_WEB_FTR varchar2(4000),
    TXT_WAIT_LIST_MSG varchar2(255),
    FORMOBJECTHEIGHT int NOT NULL,
    FORMOBJECTWIDTH int NOT NULL
    ALTER TABLE web_frm ADD ( CONSTRAINT PK_web_frm PRIMARY KEY (ID_WEB_FRM));
    ALTER TABLE web_frm ADD ( CONSTRAINT UK_web_frm UNIQUE (ID_WEB_SIT,CDE_LVL_1_FUNC,CDE_LVL_2_FUNC,NUM_WEB_FUNC_PG,NUM_WEB_PG_ID)) ;
    Thanks,
    Matt

    I have verified the parameters and such, and if I run as a Statement instead of a PreparedStatement, the query works fine. After some more troubleshooting, I narrowed the problem down, but not sure of the fix.
    If I eliminate teh extra parameters and simplify things to:
    SELECT ID_WEB_FRM FROM WEB_FRM WHERE ID_WEB_SIT = 'test' AND CDE_LVL_2_FUNC = 'u2T' AND NUM_WEB_FUNC_PG = 1 AND NUM_WEB_PG_ID = 0
    The code works. But if I add the additional WHERE clause of CDE_LVL_1_FUNC = ' ' (has single space), it returns no data (record in the DB has single space in this new column. Query that does not work:
    SELECT ID_WEB_FRM FROM WEB_FRM WHERE ID_WEB_SIT = 'test' AND CDE_LVL_1_FUNC = ' ' AND CDE_LVL_2_FUNC = 'u2T' AND NUM_WEB_FUNC_PG = 1 AND NUM_WEB_PG_ID = 0
    It appears the JDBC Driver is trimming the parameter when it is a space when set through a PreparedStatement.setString(2," ")

  • Locked out of SQL*PLUS!! HELP!

    i have just started using sql*plus to access my 10g database as it was all installed on my computer by someone else for me.... and the helpfully didnt tell me the user name and password they had used
    so when i got my laptop back and discovered that i couldnt log in as scott/tiger or anything else... started messing around and managed to get a dialoge box asking me to enter a password for SYSMAN so i did so and everything was fine,,,,,
    Until i restarted my computer now it says that SYSMAN is locked just like it says for all the other standard logins!! now ive had a read around and people keep saying just grant the privelages to the scott/tiger account..... how can i do that if i cant log in as anything???
    please help oh super smart guru peoples :)
    thanks in advance
    RMMO (PL/SQL / SQL*PLUS NOOBMASTER!)

    thanks for that... sadly it didnt work... the database is local to my laptop.... but when i entered that command into cmd... another command prompt opens up for a split second then closes back down... there isnt enough time to see anything displayed in it... but i assume that it tells me that either the account is locked like all the other accounts or it says that its not a valid username/password... or somthing to that effect....
    again thankyou for the time you put into helping.... and sadly again any other ideas or possible solutions would be GREATLY appreciated!
    RMMO
    (undercover noob)

  • Execute procedure with out parameter in sql*plus

    HI All,
    I am executing an stored proc with OUT parameter from sql*plus.
    Getting this error message:
    SQL> execute sp1_cr_ln_num('01',0,3);
    BEGIN sp1_cr_ln_num('01',0,3); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to
    'sp1_cr_ln_num'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Whereas it works fine using Toad. 4th parameter is for output.
    Thanks.

    then you can see the value either using print :var or execute dbms_output.put_line(:var)

Maybe you are looking for