I got a question but, it is too long to type here.

the question I have is how can I pop() strings off a Stack and test the first on with the next one and so on.
I am trying to write a recursive algorithm (push down automana) that recieves a Stack and tests each item in the stack with the next item in the stack. I need to be able to test up to 3 pops.
This is my code. Your expertness is greatly appreciated,
This is for a Grammer checking program.
thanks, steve
public void structureCheck(Stack s, int wordCount, boolean inOrder)throws EmptyStackException{
          Stack orderStack = new Stack();
          int parseCount =0;
               if(inOrder == false){     
                    for(int i=0; i<wordCount;i++){                                        
                         String temp = ""+s.pop();
                              if(temp.equals("n")){
                                   temp = "NP*";
                         orderStack.push(temp);
                         parseCount++;          
               structureCheck(orderStack,parseCount,true);               
               if(inOrder == true){
                    for(int i=0; i<wordCount; i++){
                         String temp = ""+s.pop();               
                         String temp2 = temp;
                              if(temp2.equals("adj") & temp.equals("NP*")){                                   
                                   temp = "";
                                   temp2 = "NP*";
                         String temp3 = temp2;
                         String temp4 = temp3;
                         orderStack.push(temp4);
                         parseCount++;               
               System.out.println("parseCount= "+parseCount+" inOrderStack= "+orderStack);
          createLayout(true);     
}

A stack is a just a Vector with a few extra methods like push(), pop(), and peek() so you can traverse it just like any other Vector if you want. This will preserve the stack and let you go in deeper than peek();
void look() {
Stack s = new Stack(10);
s.push(new MyClass());
// repeat as desired
for (Enumeration e = s.elements(); e.hasMoreElements(); )
MyClass m = (MyClass)(e.nextElement());
m.process();
// or if you are going to muck with elements you cannot use an Enumeration
void change(){
for (int i = 0; i < s.size(); i++)
for (;;)
MyClass m = (MyClass)(s.elementAt(i));
if (m.weDontLikeThisOne())
s.remove(m);
continue;
break;
to do what you want something like this
void compare() {
String thisone;
String nextone;
if (s.size() <= 1)
return;
thisone = (String)(s.elementAt(0));
for (int i = 1; i < s.size(); i++)
nextone = (String)(s.elementAt(i));
compare(thisone, nextone);
thisone = nextone;
}

Similar Messages

  • HT201611 how can i cancel a movie that i rented but is taking too long to download?

    How can I cancel a movie we ordered but is taking way too long to download?

    Netflix and similar services adapts to the connection. iTunes content is at a fixed rate and higher quality, a portion needs to load before playback begins. If it starts and then buffers throughout its because you don't have a stable network connection. ISP throttling can also be something to consider
    You can see your network status by getting a report istumbler, netstumbler oor similar. Look for signal strength, noise, nearby networks. Make sure router is up to date. You can also test on another network.
    Rentals are playing within 5 seconds, and without issue, on my system and for most

  • Keep gettng messages to update but it takes too long to load, why?

    Keeping getting messages to update FIREFOX. When the link is clicked it takes a very long time to load. Therefore, to date the updates have not happened.

    What is taking too long to load with respect to the page you linked?

  • Im sorry to ask this question but am new too the imac world. Should i BUY intigo AV as suggested by apple and my bank has offered me something called Rapport!!! Any advice very much appreciated thanks

    Im sorry to ask this questioon, but am new to apple. Should i as recommended by apple buy and install intigo av, and can anyone advise me on Rapport as offered by the bank free of charge.
    Can anyone tell me how to increase the font size of the menu bar at the top of the desktop screen without changing the display setting.
    Told you I was new

    Kevsmac...
    You do not want Rapport...
    Read a post from one of their representatives > Trusteer's Rapport Software: Apple Support Communities
    If you want to install a/v software, use either ClamXav or Sophos.
    Free Antivirus for Mac - Sophos Anti-Virus for Mac  Edition
    Apple - Downloads - Networking & Security - ClamXav
    Good article here >  Thomas' Corner : Mac Virus Guide

  • HT1933 I have reset my password. It now wants me to answer security questions, but will not allow me to type answers in...I want to buy music..

    I am wanting to buy music from my account..I have had to change my password,which I did. Now it wants me to answer security questions. When I pick the question,it will not allow to type in my answers...I can't even do the rescue message..this is SO frustrating

    Read the HT5312 page that you posted from, it has instructions for how to reset them i.e. if you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then steps 1 to 5 half-way down that page should give you a reset link.
    If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact iTunes Support / Apple in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 page that you posted from to add a rescue email address for potential future use

  • A BBM contact was still listed, but I am no longer in his/her contact?

    One of my BBM Contact was still listed, but when I was trying to chat with him/her I got error message, "You are no longer on John's contact".  
    As long as I know, if someone delete you from BBM contact he/she won't appear on your list as well.
    What are the possible scenarios of what had happened?
    Thank you in advanced.

    It could be one of many reasons.  Remove your battery while your phone is powered on then replace it.  Look once again to see if the contact is still there after that.
    I hope that helps you. 
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • Oracle - Query taking too long (Materialized view)

    Hi,
    I am extracting billing informaiton and storing in 3 different tables... in order to show total billing (80 to 90 columns, 1 million rows per month), I've used a materialized view... I do not have indexes on 3 billing tables - do have 3 indexes on Materialized view...
    at the moment it's taking too long to query the data (running a query via toad fails and shows "Out of Memory" error message; runing a query via APEX though is providing results but taking way too long)...
    Please advice how to make the query efficient...

    tparvaiz,
    Is it possible when building your materialized view to summarize and consolidate the data?
    Out of a million rows, what would your typical user do with that amount data if they could retrieve it readily? The answer to this question may indicate if and how to summarize the data within the materialized view.
    Jeff
    Edited by: jwellsnh on Mar 25, 2010 7:02 AM

  • Spam report thread too long by now?

    The present Spam report thread [4] was initiated over a year ago when the old thread was 190 messages long, because "...the previous thread ... has served its purpose but is getting too long to be read comfortably on mobile devices". Well, the present thread has well exceeded that mark, as it was 422 messages long at the time I started to write this message.
    Wouldn't it be time to let the present thread rest in peace by the same argument that led to the closing of the previous one? Not that I use mobile devices to visit these forums, but...

    The idea of closing Spam threads when they get too long and replace them by brand new ones is not mine. As I said in my opening message here, it was the official argument for closing the [3] Spam thread when it was 190 messages long. Well, the [4] Spam thread got 422 messages long and there was no official reaction, so I opened this thread to find if this was just an oversight.
    A few days later, the [4] Spam thread was archived (and therefore closed) for reasons that were never explained, and a replacement one was no opened, so I tentatively opened a new one, the present [5] version, explaining my reasons for doing so:
    http://forums.adobe.com/thread/837370?tstart=0
    Now the [5] Spam thread is 476 messages long (at the time of writing this), and it has not been closed, archived or replaced, so I don't think any participant should open a replacement one. This should be done officially by someone with the power to close the present version.
    On the other hand, if the reason given for closing the [3] version is no longer valid, and the length of Spam threads has no importance whatsoever, I think this should be clearly stated. As I access the forums through browsers, the length of the threads does not affect me in the least, and I have no idea if it affects participants accessing the forums by other means.

  • I don't know why it takes too long time to sample flat file.

    I don't know why it takes too long time to sample flat file.
    OWB Client 10.1
    While importing a flat file of fixed width ,
    in the screen "Flat File Sample Wizard" shows the text box number of rows with default value 200.
    I want to extend this value to 700,000.
    But, it takes too long time (over 5 hours) to sample it.
    Do you know why it is happend? or How can i fix this problem?
    Thanks in Advance.
    Regards,
    JWS.

    Hello,
    Actually flat file sampling process’ goal is to capture the structure of the file. That’s why initially the sample size is set to 200 lines.
    The question is why you are trying to perform sampling by 700000 rows? Are you expecting some change in structure beyond this mark?
    If so, and you want to capture the fact that your source file is multi – typed, your better prepare small file for sampling outside the OWB.
    Sergey

  • Client-error-request-value-too-long

    What is this error???? I am trying to add an Epson 1280 printer and I get this error. I have the most current driver and not sure why this isn't working.

    My flatmate had this "client-error-request-value-too-long" problem with her (powerpc) powerbook. Nearly everything I tried didn't work:
    1) Reinstalling drivers
    2) Permissions repair
    3) Resetting print system using Fixamac's Printer Setup Repair Utility
    4) Updating from 10.4.10 to 10.4.11
    5) Using the command line to try and recreate the directory: /var/spool/cups/tmp (which told me it already existed)
    6) Using Transmit (with show invisible files turned on) to browse to /var/spool/cups/ and try and recreate the tmp folder
    On the last point I couldn't change anything about the /var/spool/cups/ directory because the permissions were corrupted in some way. It keep telling me tmp already existed but I couldn't see it.
    In the end what did work was enabling and logging in as root, browsing to /var/spool/ using Transmit and deleting the cups folder and then recreating. It took a few tries to delete too, but in the end I managed to remove it.
    Of course I wouldn't actually recommend this. I'm no Unix geek so god knows what I might have broken in the process, so I'm going to reinstall her system with the Archive and Install options when I get a chance, which is what I'd recommend doing in the first place to anyone having this problem.

  • Patch taking too long!!

    Hi All,
    I am applying patch for s/w component FINBASIS on my production server but it is taking too long
    the problem here is not with this component only but with every patch that i had applied..
    it took 12-13 hrs to update SPAM...
    SAP: ECC6.0 SR3
    Oracle: 10.2.0.2.0
    Solaris 5.10
    H/W: T6300 Sun Blade
    sar output:
    root@FLGPPSAP01 # sar 2 5
    SunOS FLGPPSAP01 5.10 Generic_127111-03 sun4v    03/23/2009
    16:11:24    %usr    %sys    %wio   %idle
    16:11:26       3       0       0      97
    16:11:28       3       0       0      96
    16:11:30       3       0       0      97
    16:11:32       3       0       0      96
    16:11:34       3       0       0      97
    Average        3       0       0      96
    is there any way to increase the throuput ......
    Regards,
    Sohal...

    Hi Zaheer/Rahul,
    thanx for the prompt response ..
    but i have upgraded kernel patch and SPAM before applying patches....
    I had run SGEN when i installed the system 4 months back...
    My Kernel is 700
    Patch level : 185
    SPAM: 33
    and tp is connecting just fine...
    Regards,
    Sohal...
    Edited by: Harvinder Sohal on Mar 23, 2009 4:13 PM

  • Too long query

    Hello,
    I'm working on Oracle 11.2.0.3.
    I'm trying to execute this query
    SELECT distinct s, prefLabel,o
    FROM TABLE(SEM_MATCH('PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
    PREFIX orardf:<http://xmlns.oracle.com/rdf/>
    SELECT *
    WHERE
    ?s ?p ?o.
    ?s skos:prefLabel ?prefLabel .
    filter (lang(?prefLabel ) ="fr").
    filter (orardf:textContains(?prefLabel , "famille")).
    SEM_Models('modelinf'),
    SEM_Rulebases('SKOSCORE'),
    null,
    null,
    null,
    null ))
    but it takes too long time.
    I'm not sure that all the necessary index has been create on the database.
    Could you help me to optimize this query ?
    Thanks.
    Cyril.

    Hello,
    this is the execution plan of this query
    SELECT s, prefLabel
    FROM TABLE(SEM_MATCH('PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
    PREFIX orardf:<http://xmlns.oracle.com/rdf/>
    SELECT distinct ?s ?prefLabel
    WHERE
    ?s rdf:type skos:Concept.
    ?s skos:prefLabel ?prefLabel .
    filter (lang(?prefLabel ) ="fr").
    filter (orardf:textContains(?prefLabel , "famille")).
    SEM_Models('modelinf'),
    SEM_Rulebases('SKOSCORE'),
    null,
    null,
    null,
    null ))
    It takes 2.703 seconds for 12 rows
    Plan hash value: 1619577833
    | Id | Operation | Name | Pstart| Pstop |
    | 0 | SELECT STATEMENT | | | |
    | 1 | COLLECTION ITERATOR SUBQUERY FETCH | | | |
    | 2 | COUNT | | | |
    |* 3 | FILTER | | | |
    | 4 | NESTED LOOPS | | | |
    | 5 | NESTED LOOPS | | | |
    | 6 | VIEW | | | |
    | 7 | SORT GROUP BY | | | |
    | 8 | NESTED LOOPS | | | |
    | 9 | NESTED LOOPS | | | |
    | 10 | NESTED LOOPS | | | |
    | 11 | VIEW | | | |
    | 12 | UNION-ALL | | | |
    | 13 | PARTITION LIST SINGLE | | 3 | 3 |
    |* 14 | INDEX RANGE SCAN | RDF_LNK_PCS_IDX | 3 | 3 |
    | 15 | PARTITION LIST SINGLE | | 4 | 4 |
    |* 16 | INDEX RANGE SCAN | RDF_LNK_PCSGM_IDX | 4 | 4 |
    | 17 | VIEW | | | |
    | 18 | UNION-ALL PARTITION | | | |
    | 19 | PARTITION LIST SINGLE | | 3 | 3 |
    |* 20 | INDEX RANGE SCAN | RDF_LNK_PSC_IDX | 3 | 3 |
    | 21 | PARTITION LIST SINGLE | | 4 | 4 |
    |* 22 | INDEX RANGE SCAN | RDF_LNK_PSCGM_IDX | 4 | 4 |
    |* 23 | INDEX UNIQUE SCAN | C_PK_VID | | |
    |* 24 | TABLE ACCESS BY INDEX ROWID| RDF_VALUE$ | | |
    |* 25 | INDEX UNIQUE SCAN | C_PK_VID | | |
    | 26 | TABLE ACCESS BY INDEX ROWID | RDF_VALUE$ | | |
    |* 27 | TABLE ACCESS FULL | RDF_RI_SHAD_5$ | | |
    Predicate Information (identified by operation id):
    3 - filter( NOT EXISTS (SELECT 0 FROM "MDSYS"."RDF_RI_SHAD_5$"
    "RDF_RI_SHAD_5$" WHERE LNNVL("RDF_RI_SHAD_5$"."ID"<>1)))
    14 - access("P_VALUE_ID"=834132227519661324 AND
    "CANON_END_NODE_ID"=8129753520990573772 AND "START_NODE_ID">0 AND
    "START_NODE_ID" IS NOT NULL)
    16 - access("P_VALUE_ID"=834132227519661324 AND
    "CANON_END_NODE_ID"=8129753520990573772 AND "START_NODE_ID">0 AND
    "START_NODE_ID" IS NOT NULL)
    20 - access("P_VALUE_ID"=8569708817671647133 AND
    "START_NODE_ID"="from$_subquery$_007"."START_NODE_ID" AND
    "CANON_END_NODE_ID">0 AND "CANON_END_NODE_ID" IS NOT NULL)
    filter("START_NODE_ID">0)
    22 - access("P_VALUE_ID"=8569708817671647133 AND
    "START_NODE_ID"="from$_subquery$_007"."START_NODE_ID" AND
    "CANON_END_NODE_ID">0 AND "CANON_END_NODE_ID" IS NOT NULL)
    filter("START_NODE_ID">0)
    23 - access("V0"."VALUE_ID"="from$_subquery$_011"."CANON_END_NODE_ID")
    24 - filter("SEM_APIS"."GETV$LANGVAL"("V0"."VALUE_TYPE","V0"."VNAME_PRE
    FIX","V0"."VNAME_SUFFIX","V0"."LITERAL_TYPE","V0"."LANGUAGE_TYPE")='fr'
    AND "CTXSYS"."CONTAINS"("V0"."VNAME_PREFIX",'famille'||'')>0)
    25 - access("R"."S$RDFVID"="V0"."VALUE_ID")
    27 - filter(LNNVL("RDF_RI_SHAD_5$"."ID"<>1))
    Thanks.
    Cyril

  • What can I do if I don't remember my security cuestions? And it takes too long to receive the email

    Please if you can answer me I will be very thanks full

    Sorry my question is what can I do if I don't remember my security questions and it takes too long to receive the email

  • Update statement takes too long to run

    Hello,
    I am running this simple update statement, but it takes too long to run. It was running for 16 hours and then I cancelled it. It was not even finished. The destination table that I am updating has 2.6 million records, but I am only updating 206K records. If add ROWNUM <20 to the update statement works just fine and updates the right column with the right information. Do you have any ideas what could be wrong in my update statement? I am also using a DB link since CAP.ESS_LOOKUP table resides in different db from the destination table. We are running 11g Oracle Db.
    UPDATE DEV_OCS.DOCMETA IPM
    SET IPM.XIPM_APP_2_17 = (SELECT DISTINCT LKP.DOC_STATUS
    FROM [email protected] LKP
    WHERE LKP.DOC_NUM = IPM.XIPM_APP_2_1 AND
    IPM.XIPMSYS_APP_ID = 2
    WHERE
    IPM.XIPMSYS_APP_ID = 2;
    Thanks,
    Ilya

    matthew_morris wrote:
    In the first SQL, the SELECT against the remote table was a correlated subquery. the 'WHERE LKP.DOC_NUM = IPM.XIPM_APP_2_1 AND IPM.XIPMSYS_APP_ID = 2" means that the subquery had to run once for each row of DEV_OCS.DOCMETA being evaluated. This might have meant thousands of iterations, meaning a great deal of network traffic (not to mention each performing a DISTINCT operation). Queries where the data is split between two or more databases are much more expensive than queries using only tables in a single database.Sorry to disappoint you again, but with clause by itself doesn't prevent from "subquery had to run once for each row of DEV_OCS.DOCMETA being evaluated". For example:
    {code}
    SQL> set linesize 132
    SQL> explain plan for
    2 update emp e
    3 set deptno = (select t.deptno from dept@sol10 t where e.deptno = t.deptno)
    4 /
    Explained.
    SQL> @?\rdbms\admin\utlxpls
    PLAN_TABLE_OUTPUT
    Plan hash value: 3247731149
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Inst |IN-OUT|
    | 0 | UPDATE STATEMENT | | 14 | 42 | 17 (83)| 00:00:01 | | |
    | 1 | UPDATE | EMP | | | | | | |
    | 2 | TABLE ACCESS FULL| EMP | 14 | 42 | 3 (0)| 00:00:01 | | |
    | 3 | REMOTE | DEPT | 1 | 13 | 0 (0)| 00:00:01 | SOL10 | R->S |
    PLAN_TABLE_OUTPUT
    Remote SQL Information (identified by operation id):
    3 - SELECT "DEPTNO" FROM "DEPT" "T" WHERE "DEPTNO"=:1 (accessing 'SOL10' )
    16 rows selected.
    SQL> explain plan for
    2 update emp e
    3 set deptno = (with t as (select * from dept@sol10) select t.deptno from t where e.deptno = t.deptno)
    4 /
    Explained.
    SQL> @?\rdbms\admin\utlxpls
    PLAN_TABLE_OUTPUT
    Plan hash value: 3247731149
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Inst |IN-OUT|
    | 0 | UPDATE STATEMENT | | 14 | 42 | 17 (83)| 00:00:01 | | |
    | 1 | UPDATE | EMP | | | | | | |
    | 2 | TABLE ACCESS FULL| EMP | 14 | 42 | 3 (0)| 00:00:01 | | |
    | 3 | REMOTE | DEPT | 1 | 13 | 0 (0)| 00:00:01 | SOL10 | R->S |
    PLAN_TABLE_OUTPUT
    Remote SQL Information (identified by operation id):
    3 - SELECT "DEPTNO" FROM "DEPT" "DEPT" WHERE "DEPTNO"=:1 (accessing 'SOL10' )
    16 rows selected.
    SQL>
    {code}
    As you can see, WITH clause by itself guaranties nothing. We must force optimizer to materialize it:
    {code}
    SQL> explain plan for
    2 update emp e
    3 set deptno = (with t as (select /*+ materialize */ * from dept@sol10) select t.deptno from t where e.deptno = t.deptno
    4 /
    Explained.
    SQL> @?\rdbms\admin\utlxpls
    PLAN_TABLE_OUTPUT
    Plan hash value: 3568118945
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Inst |IN-OUT|
    | 0 | UPDATE STATEMENT | | 14 | 42 | 87 (17)| 00:00:02 | | |
    | 1 | UPDATE | EMP | | | | | | |
    | 2 | TABLE ACCESS FULL | EMP | 14 | 42 | 3 (0)| 00:00:01 | | |
    | 3 | TEMP TABLE TRANSFORMATION | | | | | | | |
    | 4 | LOAD AS SELECT | SYS_TEMP_0FD9D6603_1CEEEBC | | | | | | |
    | 5 | REMOTE | DEPT | 4 | 80 | 3 (0)| 00:00:01 | SOL10 | R->S |
    PLAN_TABLE_OUTPUT
    |* 6 | VIEW | | 4 | 52 | 2 (0)| 00:00:01 | | |
    | 7 | TABLE ACCESS FULL | SYS_TEMP_0FD9D6603_1CEEEBC | 4 | 80 | 2 (0)| 00:00:01 | | |
    Predicate Information (identified by operation id):
    6 - filter("T"."DEPTNO"=:B1)
    Remote SQL Information (identified by operation id):
    PLAN_TABLE_OUTPUT
    5 - SELECT "DEPTNO","DNAME","LOC" FROM "DEPT" "DEPT" (accessing 'SOL10' )
    25 rows selected.
    SQL>
    {code}
    I do know hint materialize is not documented, but I don't know any other way besides splitting statement in two to materialize it.
    SY.

  • Update statement taking too long to execute

    Hi All,
    I'm trying to run this update statement. But its taking too long to execute.
        UPDATE ops_forecast_extract b SET position_id = (SELECT a.row_id
            FROM s_postn a
            WHERE UPPER(a.desc_text) = UPPER(TRIM(B.POSITION_NAME)))
            WHERE position_level = 7
            AND b.am_id IS NULL;
            SELECT COUNT(*) FROM S_POSTN;
            214665
            SELECT COUNT(*) FROM ops_forecast_extract;
            49366
    SELECT count(*)
            FROM s_postn a, ops_forecast_extract b
            WHERE UPPER(a.desc_text) = UPPER(TRIM(B.POSITION_NAME));
    575What could be the reason for update statement to execute so long?
    Thanks

    polasa wrote:
    Hi All,
    I'm trying to run this update statement. But its taking too long to execute.
    What could be the reason for update statement to execute so long?You haven't said what "too long" means, but a simple reason could be that the scalar subquery on "s_postn" is using a full table scan for each execution. Potentially this subquery gets executed for each row of the "ops_forecast_extract" table that satisfies your filter predicates. "Potentially" because of the cunning "filter/subquery optimization" of the Oracle runtime engine that attempts to cache the results of already executed instances of the subquery. Since the in-memory hash table that holds these cached results is of limited size, the optimization algorithm depends on the sort order of the data and could suffer from hash collisions it's unpredictable how well this optimization works in your particular case.
    You might want to check the execution plan, it should tell you at least how Oracle is going to execute the scalar subquery (it doesn't tell you anything about this "filter/subquery optimization" feature).
    Generic instructions how to generate a useful explain plan output and how to post it here follow:
    Could you please post an properly formatted explain plan output using DBMS_XPLAN.DISPLAY including the "Predicate Information" section below the plan to provide more details regarding your statement. Please use the {noformat}[{noformat}code{noformat}]{noformat} tag before and {noformat}[{noformat}/code{noformat}]{noformat} tag after or the {noformat}{{noformat}code{noformat}}{noformat} tag before and after to enhance readability of the output provided:
    In SQL*Plus:
    SET LINESIZE 130
    EXPLAIN PLAN FOR <your statement>;
    SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);Note that the package DBMS_XPLAN.DISPLAY is only available from 9i on.
    In 9i and above, if the "Predicate Information" section is missing from the DBMS_XPLAN.DISPLAY output but you get instead the message "Plan table is old version" then you need to re-create your plan table using the server side script "$ORACLE_HOME/rdbms/admin/utlxplan.sql".
    In previous versions you could run the following in SQL*Plus (on the server) instead:
    @?/rdbms/admin/utlxplsA different approach in SQL*Plus:
    SET AUTOTRACE ON EXPLAIN
    <run your statement>;will also show the execution plan.
    In order to get a better understanding where your statement spends the time you might want to turn on SQL trace as described here:
    When your query takes too long ...
    and post the "tkprof" output here, too.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

Maybe you are looking for