SQL*Plus Not Responding

I have a query in 8i that sums the pages entered into a database by month as follows:
SELECT DISTINCT c.study
, DECODE(r.pass_one_by, NULL, SUBSTR(s.entered_by, 5), SUBSTR(r.pass_one_by, 5)) p1_by
,SUM(DECODE(TO_CHAR(TRUNC(r.pass_one_ts),'MON'),'JAN',1,NULL,DECODE(TO_CHAR(TRUNC(s.received_dci_entry_ts),'MON'),'JAN',1),0)) JAN
,SUM(DECODE(TO_CHAR(TRUNC(r.pass_one_ts),'MON'),'FEB',1,NULL,DECODE(TO_CHAR(TRUNC(s.received_dci_entry_ts),'MON'),'FEB',1),0)) FEB
--- etc
FROM received_dcms r, received_dcis s, clinical_studies c
WHERE r.clinical_study_id = s.clinical_study_id
AND s.clinical_study_id = c.clinical_study_id
AND r.document_number = s.document_number
---other obvious joins
I need the received_dcis table to capture information for blank pages, but this table is heavily used (updated) and the report hangs when it's included. In fact, the Windows Task Manager say that SQL*Plus is "Not Responding". Is there any way around this?
Thanks,
Dane

Hi!
Quite possible SQL*Plus is working fine, but the problem is with the query itself. When running the report check v$session, v$sql & v$sess_io views. If v$sess_io reports changing consistent_gets & physical_reads, then your query is reading data. Check explain plan, run tkprof, etc. and make sure that query is properly tuned and used best execution plan possible.
Regards,
Andrew Velitchko
BrainBench MVP for Developer/2000
http://www.brainbench.com

Similar Messages

  • SQL*Plus Not responding when calling edit command

    When I write a Query in SQL Plus 9.2.0.1.0, Installed in Windows XP SP2, and running EDIT command, notepad opens and then SQL Plus and Notepad both hangs. By killing notepad.exe process I can continue working in SQL Plus.
    I tried changing the default editor to ultra edit, wordpad, etc. But It seems to be a SQL Plus error, with all editors I set up, Editor Hangs.
    The same things happende me installing the Oracle 9i client in another machine.
    Need help with this, thanks!!

    Sounds strange - and does not sound like a SQL*Plus problem. SQL*Plus uses the CreateProcess() Win32 API call to create the editor process. Then it waits for this process' process handle to cease to exist before it continues. SQL*Plus does not "hang" - it simply waits for the spawned process to terminate before it continues.
    It is not possible for one process to "hang" another process it created via the CreateProcess() call. It will need to interact with that spawned process in other ways to make it hang. Caveat: unless the spawned process does not "like" the parameters passed to it via the CreateProcess() call...
    The only parameter passed is the filename (usually afiedt.buf) by SQL*Plus - and that should not cause the editor to hang.
    Unless there is a specific Oracle bug you're running in, this problem sounds more like a Windows issue. After using the ED command in SQL*Plus, can you manually view and edit the afiedt.buf file it created?

  • SQL*PLUS not work in JDeveloper 10.1.3

    The Log message is :
    Invoking SQL*Plus...
    F:\oracle\ora92\bin\sqlplus.exe SCOTT@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=W2G)))
    java.io.IOException: CreateProcess: START.EXE F:\oracle\ora92\bin\sqlplus.exe SCOTT@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=W2G))) error=2
    I need a help ! thanks .

    Hi,
    This is a known issue (bug 4774715) on Windows 2003 and is due to the fact that START does not exist on that OS. It is currently fixed in the next release but I will open a bug and see if we can get the fix backported to a 10.1.3 patchset for you.
    Regards,
    Lisa
    JDev QA

  • Username password works in SQL Plus not in SQL Developer

    I have SQL Dev 1.2.1. It works fine with some databases, but with two databases with logons managed by Oracle Enterprise User it does not work. I receive an Ora 01017 error invalid username password. The user name and password work fine from SQL Plus and from a third party tool. I have a local developer client environment installed, so am using TNS. SQL Developer was installed before the client environment. I was not trying to access this database before the client environment install. I was using the basic connection before the client install. Neither basic or TNS connection works for this particular database.
    Any ideas?

    We have changed the password and it still does not work. There are no special characters in the password.
    I am tempted to think the problem is the jdbc driver versions. The logon for Enterprise user controlled databases stopped working after I installed the thick client Oracle developer. I have tried to find the threads with information on disabling the thick client jdbc but have not found them. I also have tried to enter a URL for the thin client without success. One of our DBAs is saying that the 11g clients are broken and he is in communication with Oracle about it. He says 10g works but 11g does not.
    Any further help would be appreciated.
    Gerry

  • SQL Plus not work with domain user

    Hey guys,
    have a problem with sql plus in our network. when i started it with the admin it works. but when i started it with a user account, fill in the username, the password and the host and click on the ok button, the window closes and nothing happen. no error no new window, the window simply closes.
    what to do?
    regards

    Hi,
    There might be different reasons behind this.
    Check whether user is created in database or not.
    There might be possibility that, user is in different database.
    SELECT * FROM V$DATABASE; --This will help you to findout database name.
    SELECT * FROM DBA_USERS WHERE USERNAME = 'HR';  --HR is user present on database. If your user is present in database then user might not have connect privilege.
    GRANT CONNECT , RESOURCE TO HR; --HR is user. To execute this command, login as sys You can also try to login with command prompt.
    sqlplus user/password@host

  • SQL* Plus not compatible with Suse Linux 10

    hi! i am using suse linux 10 and since i lost my sys/ system password i need to restore it using " / as sysdba " to login, but the problem is when i tried to install the sql* plus it says that "it does not support my platform", is there another way i can reset back my system password with out sql* plus? or can anyone guide me in the installation of sql* plus instant client? thanks a lot! :-)

    i'm sorry for the confusion. i tried to install sql* plus but running the script to install it gave me an error that "it does not support my platform, it only supports red hat, suse 9.... etc." my os is suse linux 10 (oss) and am using oracle xe... so meaning i just wanted to install sql* plus to have a command-line utility to use " / as sysdba " to reset my sys/ system password. because i can't remember my sys/ system password that's why i can't get in to http://localhost:8080/apex site to change my oracle db. thanks for the reply!

  • SQL*plus not executing query

    Hello,
    I am new to sqlplus and I am trying to get some queries running off of an ARCH linux box that I have.
    The install went ok and I can get sqlplus running and connect to my oracle DB. However when I enter something as easy as "select * from REASON" hit enter, all i get is a "2" on the next line
    (screenshot http://imgur.com/KvTyD.jpg)
    Is this a config issue on my sqlplus or am i Just not qualified. Any help is appreciated. thanks

    >
    I am new to sqlplus and I am trying to get some queries running off of an ARCH linux box that I have.
    The install went ok and I can get sqlplus running and connect to my oracle DB. However when I enter something as easy as "select * from REASON" hit enter, all i get is a "2" on the next line
    (screenshot http://imgur.com/KvTyD.jpg)
    Is this a config issue on my sqlplus or am i Just not qualified. Any help is appreciated. thanks
    >
    SQL*Plus is expecting input from you; you terminate the statement by putting a forward slash or semi-colon just after your statement.
    select * from REASON
    /OR
    select * from REASON;Regards,
    Phiri

  • SQL Plus not working in Oracle 8i personal edition

    I just installed Oracle 8i personal edition, went through all the steps. When I start SQL* Plus, I give it the SCOTT/TIGER combo, but when it tries to start up the database, it asks for another password, which I can't figurew out.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by John Meyer ([email protected]):
    I just installed Oracle 8i personal edition, went through all the steps. When I start SQL* Plus, I give it the SCOTT/TIGER combo, but when it tries to start up the database, it asks for another password, which I can't figurew out.<HR></BLOCKQUOTE>
    Fixed the problem yesterday.
    null

  • 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}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Sql  plus not accepting user id and password as scott, tiger resp

    Hi, this is mihir shah
    I have just installed oracle9i
    And I have a problem in opening the sql plus. It asks for user id and pass but when entered scott, tiger it always gives a tns error.
    Could you tell me how to make a database & how to log on & how to make a new user id and password

    It seem that you have problem with network connectivity to you database.
    Check the listener status and the configuration of the files: tnsnames.ora & listener.ora
    In all cases you must specified the error.
    Bye, Aron

  • 11g: can connet using SQL*PLUS, not with TOAD

    Hi
    I run into a problem with TOAD. I can't connect with my 11g database using TOAD. I don't get any messages it just gives me a little waiticon for a split second and then nothing happens. I can however connect to my 10g database using TOAD. Using SQL*Plus I can connect to both.
    I use TOAD 8.6. Do I need a newer version maybe??...

    I can connect like:
    hr/pw@xe
    or
    hr/pw@O11R1
    or directly, no problem. I can connect from SQLplus to both databases any way I want

  • SQL*plus not showing proper value.

    Hi All,
    In one of the database, while quering in sql developer data is showing data as "PüSS", but when trying sqlplus (client and server), its showing as "Puss", but the actual value is "PüSS". Oracle verion 10.2.0.4 and Linux.
    SQL> select sys_context('userenv','language') from dual;
    SYS_CONTEXT('USERENV','LANGUAGE')
    AMERICAN_AMERICA.WE8ISO8859P1
    In server .profile and oraenv there is no nls_lang, same for sql developer. Please help to get the correct data in sqlplus, because i need to manupulate few records in jobs.
    Thanks,
    Prasanna.

    it must be something I'm doing wrong, above, I was running under windows 7 pointing at the version above.
    I just tried it under an Enterprise Linux pointing at
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production          
    PL/SQL Release 11.2.0.2.0 - Production                                          
    CORE     11.2.0.2.0     Production                                                        
    TNS for Linux: Version 11.2.0.2.0 - Production                                  
    NLSRTL Version 11.2.0.2.0 - Production                                           and I get exactly the same script output and no compiler window....
    actually...... if I go into a procedure window from the schema browser and compile it there, then I get the correct warning messages..... the problem is I mostly develop from .sql files extracted from source control rather than directly from the schema browser, I just want the sql worksheet to be able to show me the same compiler log window.....

  • InstallCCRSQL can only be run in a database ORACLE_HOME, SQL*Plus not found

    Hi
    I tired using the in-built OCM feature available in WLS 10.3.3 (C:\Fusion11g\utils\ccr)
    I ran the bin\setupCCR.exe and gave the relevant details like CSI, country code and email id
    It was successful saying "Oracle Configuration Manager successfully started."
    then i tired - ccr\admin\scripts\installCCRSQL collectconfig -s xe
    But i am getting the
    InstallCCRSQL can only be run in a database ORACLE_HOME, SQLPlus not found.*
    ORACLE_HOME here set to ORACLE_HOME=C:\oraclexe\app\oracle\product\10.2.0
    Q1 - Can any one help me on this where i am going wrong..
    Q2 - when i tired to collect the configuration via - ccr\bin\emCCR.bat collect , i am getting the "Collection and upload done." message, but i dont find the ocmconfig.jar under ccr/state/upload folder. ???
    Thanks, Sesha

    I am facing the similar issue. Please can someone reply on this thread?

  • Listener running but SQL*Plus not connecting

    Hi -
    I've just installed 8.0.5 on RedHat 5.1 but I seem to be having
    connection problems.
    After some fiddling I seem to have the listener running on 1521
    quite happily but when I try to run svrmgrl or sqlplus I get the
    error 'ORA-12571: TNS:packet writer failure'.
    The excellent 'Oracle8 A Beginners Guide' says that this is a
    Net8 error but as far as I can tell, Net8 is running on TCP/IP as
    you might expect, but 'as far as I can tell' isn't very far at
    all really. I'm just digging through the Administrators Guide
    documentation but as far as I can see, everything's fine.
    Any ideas?
    Simon
    null

    This is a known problem for Oracle on Linux. Try setting write
    permissions for the unix domain sockets in
    /var/tmp/.oracle/
    Simon Greenwood (guest) wrote:
    : Hi -
    : I've just installed 8.0.5 on RedHat 5.1 but I seem to be having
    : connection problems.
    : After some fiddling I seem to have the listener running on 1521
    : quite happily but when I try to run svrmgrl or sqlplus I get
    the
    : error 'ORA-12571: TNS:packet writer failure'.
    : The excellent 'Oracle8 A Beginners Guide' says that this is a
    : Net8 error but as far as I can tell, Net8 is running on TCP/IP
    as
    : you might expect, but 'as far as I can tell' isn't very far at
    : all really. I'm just digging through the Administrators Guide
    : documentation but as far as I can see, everything's fine.
    : Any ideas?
    : Simon
    Get Technical!
    http://technet.oracle.com
    null

  • Restricting the user to operate DML's from SQL PLUS Environment

    how to Restrict the user to operate DML statements from SQL PLUS Environment.

    Once you restrict SCOTT user to not be able to do an INSERT command, the SQL*Plus returns an error for user SCOTT when he tries to execute an INSERT statement.
    Note however, that this is enforced by SQL*Plus, not the database!
    Look into the use of product_user_profile from Oracle documentation for more information.
    SQL> insert into product_user_profile values('SQL*Plus', 'SCOTT', 'INSERT', NULL, NULL, 'DISABLED', NULL, NULL) ;
    1 row created.
    SQL> commit ;
    Commit complete.
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.3.0 - Production
    SQL>
    SQL> connect scott
    Enter password:
    Connected.
    SQL>
    SQL> insert into emp select * from emp ;
    SP2-0544: invalid command: insert
    SQL>
    SQL>

Maybe you are looking for

  • Ink status pop-up indicators stopped appearing

    HP 7525 was purchased new and installed Jaunuary 2015.  It is connected to a Dell 8300 Desk Top running Windows 7, Service Pk #1, Home Premium, 64-bit.  The printer connection is hardwired via a USB connection.  On initial install all features of int

  • Call dll in labview

    "Hi All, I have to get data from USB camera, I have following functions in DLL. DLLINOUT HANDLE WINAPI CC_Open( LPCSTR CameraName , ULONG CameraNumber , CC_CAPTURE_MODE CaptureMode ) ; and DLLINOUT BOOL WINAPI CC_CaptureSingle( HANDLE Cam , PVOID Buf

  • Navigation (Back/Forward) buttons not working in Firefox

    I'm tring to put together a Browser Based help guide, and for the most part it's working as intended... except for the navigation buttons within the help guide themselves. By that I mean... Those guys. The way I would assume they work is that they pr

  • Connecting I-pad to p1102w printer wirelessly

    How do I download the installation instructions on my I-pad.?

  • How can I add ring tones to my iPhone?

    How can I add ring tones to my iPhone? I just got an iPhone 5c and I am clueless about these things.