Cursor within cursor insert problem.

Hello,
Am trying to pass a parameter from one cursor to another and making an insert in the 2nd cursor but its not inserting.
declare
v_txt_1 varchar2(10);
v_txt_2 varchar2(10);
cursor C1 is
select txt1,txt2 from test1where country='INI';
cursor C2(p_txt_1 varchar2,p_txt_2 varchar2) is
select txt1,txt2 from test2
where old_cat_1=p_txt_1
and old_cat_2=p_txt_2;
begin
for c1rec in c1 loop
v_cat_1 := 'AA';
v_cat_2 := 'BB';
v_cat_3 := 'CC';
for c2rec in c2(c1rec.cat_1,c1rec.cat_2,c1rec.cat_3) loop
insert into chnl_ini_test (new_cat_1,new_cat_2,new_cat_3,remarks) values (v_cat_1,v_cat_2,v_cat_3,'CATEGORY not found');
end loop;
end loop;
end;
END;
the block gets executed but the insert is not happening. am not getting any error. if I place the insert below the first for loop then the insertion is happening.
Any suggestions plz.

Looking at the example code, it seems that the values to be INSERTED are not taken from the cursor.
Instead we just want to insert the same values multiple times based on the no. of rows returned from the cursor c2 and c1.
If that is the case :
* Query for both cursor c1 and c2 can be Merged.
* Count the no. of rows returned.
* Use FORALL to insert all the records in one shot.
DECLARE
    v_txt_1 VARCHAR2(10);
    v_txt_2 VARCHAR2(10);
    w_count PLS_INTEGER;
BEGIN
    SELECT
        COUNT(*)
    INTO
        w_count
    FROM
            SELECT
                t2.txt1,
                t1.txt2
            FROM
                test2 t2,
                test1 t1
            WHERE
                country  ='INI'
            AND old_cat_1=t1.txt1
            AND old_cat_2=t2.txt2
    v_cat_1  := 'AA';
    v_cat_2  := 'BB';
    v_cat_3  := 'CC';
    FORALL i IN 1 .. w_count
        INSERT
        INTO
            chnl_ini_test
                new_cat_1,
                new_cat_2,
                new_cat_3,
                remarks
            VALUES
                v_cat_1,
                v_cat_2,
                v_cat_3,
                'CATEGORY not found'
END;

Similar Messages

  • Getting ORA-01000 : maximum open cursors exceeded  problem

    I am getting ORA-01000 : maximum open cursors exceeded problem in my piece of java code when the
    load is high .Open cursors is set to 1000 still getting the same problem .
    Basically i have to select some rows from a table which i am doing in A() function and process it and insert into
    another table which i do it in another function B() there is a update statement also in this fun.
    There is a particular business logic for which i need to call B() from the A() function
    which happens to be in the select result set like below
    A()
    query ="Select * from temp";
    while(rs.next)
    B();
    All the result sets are properly being closed that too in finally block.
    I dont see any other problem with code .Still I am gettin this cursor problem.
    Is some thing wrong with the design like calling a
    insert from a result set while loop or the update statement

    The code below is deleting fine. Check your $id is valid. I wonder if ADOdb has some quirks with binding and variable creation/destruction, similar to #1 in http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html#bindvars
    <?php
    See ADOdb Tutorial for Oracle: http://phplens.com/lens/adodb/docs-oracle.htm
    drop table mytab;
    create table mytab (city varchar2(20), country_id varchar2(20));
    insert into mytab values ('SF', 'US');
    insert into mytab values ('Sydney', 'AU');
    insert into mytab values ('London', 'UK');
    commit;
    require_once("/home/cjones/public_html/php/adodb5/adodb.inc.php");
    $db = ADONewConnection("oci8");
    $db->Connect("//localhost/XE", "hr", "hrpwd");
    echo "Before:\n";
    $rs = $db->Execute("select city from mytab");
    while ($arr = $rs->FetchRow()) {
        echo $arr['CITY'] . "\n";
    $s = $db->Prepare("delete from mytab where country_id = :ci");
    $db->Parameter($s, $ci, 'ci');
    foreach (array('US', 'AU') as $ci) {
         $db->Execute($s);
    echo "After:\n";
    $rs = $db->Execute("select city from mytab");
    while ($arr = $rs->FetchRow()) {
        echo $arr['CITY'] . "\n";
    ?>There's another sample in the ADOdb OCI8 driver:
              Usage:
                   $stmt = $DB->Prepare("insert into table (col0, col1, col2) values (:0, :1, :2)");
                   $DB->Bind($stmt, $p1);
                   $DB->Bind($stmt, $p2);
                   $DB->Bind($stmt, $p3);
                   for ($i = 0; $i < $max; $i++) {     
                        $p1 = ?; $p2 = ?; $p3 = ?;
                        $DB->Execute($stmt);
                   }For queries I know this works. I haven't seen any examples that prepare once.
    $rs = $db->Execute("select city from mytab where country_id = :ci", array('ci' => 'UK'));
    while ($arr = $rs->FetchRow()) {
        echo $arr['CITY'] . "<br>\n";
    }

  • I have purchased Mountain Lion to correct the gray cursor square problem, and I cannot get Mountain lion to download

    I purchased Mountain Lion from 10.7.5 on my Imac to correct the gray cursor square problem, now Mountain Lion will not fully download. Any recommendations?

    Upgrading to a newer OS X does not often correct pre existing problems. MIght be a disk space issue, or the startup disk needs repairing.
    Make sure there's enough free space on the startup disk.
    Control click the MacintoshHD icon on your Desktop then click Get Info.
    In the Get Info pane you will see:  Capacity & Available
    Make sure there's at least 15% available disk space.
    For the gray cursor issuee, startup your Mac in Safe Mode
    A Safe Mode boot takes longer then a normal boot so be patient. Once you are in Safe Mode, click Restart from the Apple menu.
    If that didn't help the cursor issue, launch Disk Utility located in HD > Applications > Utilities
    Select the startup disk on the left then select the First Aid tab.
    Click:  Verify Disk
    If Disk Utility reports errors, since v10.7 Lion is the currently installed OS, restart your Mac while holding down the Command + R keys so you can access OS X: About OS X Recovery.
    From there you can access the built in utilities to repair the startup disk.
    message edited by:  cs

  • Another weird Icebook cursor-freeze problem

    I recently asked about a full cursor-lockup problem here:
    http://discussions.apple.com/thread.jspa?threadID=440688
    Problems started after updating this machine to OS 10.3.9.
    Anyway, I've been able to improve matters to when the cursor freezes, I can
    unlock it by unplugging the phone line to the (internal) modem. Only locks up when I'm online (dialup). Weird, huh? And down to nuisance level, though I'd still like to cure it.
    Details: 2002 Icebook G3/600 running OS 10.3.9
    Ran fsck, repaired permissions, cleaned & reseated RAM (tests
    OK with Memtest)
    Any other ideas?
    TIA & Cheers -- Pete Tillman
    "There is no known substitute for scrith."
    --Dr. John Stockton, rass
    Icebook   Mac OS X (10.3.9)   384 MB RAM

    I've had that problem since I purchased my MacBook about 2 years ago. I've even flatten and installed new OSs over this time, no change. The behavior I have is the cursor sticking after just about any input which requires the computer to do some processing (ie: copying and pasting text, performing edits a photo, renaming a folder, etc...). It's very distracting when you're working hard on a document or drawing and constantly waiting for the cursor to unstick. Believe it or not, I've actually gotten used to it. Good news is, I'm buying a MacBook Pro soon, and giving this computer to my wife. I'll freak if the new Pros do it too. No......!
    --Robb

  • Update/Insert Problem with Oracle Warehouse Builder

    Hello,
    i have update/insert problem with owb.
    Situation: I have a source-table called s_account and a target table called w_account_d. In the target table are already data which was filled trough the source table inserts. Now anyone make changes on data on the target table. This changes should now give further on the source table with an update operation. But exactly here is the problem i can´t map back the data to source because that will create a loop.
    My idea was to set a trigger but i can´t find this component in owb or is anywhere hidden?
    Also i have already seen properties as CDC or conditonal loading in the property inspector of the table, but i have no idea how it works.
    Give it other possibilities to modeling this case? or can anyone me explain how i can implement this eventually with CDC?
    I look forward for your replies :)

    Hi
    thanks for your answer. I follow your suggestion and have set the constraints of both tables into the database directly.Nevertheless it doesn´t work to begin. In the next step i found by right click on a table the listpoint "configure" - I goes to "unique key" --> creation method and set here follow options: Constraint State = ENABLE, Constraint Validation = Validate. That error message that appears before by the deployment disappears yet. Now i start the job to test if the insert/update process works right. Finally it seems to work - but not really.
    My Testscenario
    1. Load the data from source table about the staging area to data warehouse table: Check - it works!
    2. Change one data record in source table
    3. Load the source table with changed data record once again to staging area: Check - it works!
    4. Load new staging area table with the changed data record to data warehouse table: Check it works! BUT, BUT i can not recognize if it is insert or update operation, then under the design window by jobs execution windows is reported "rows selected 98", Rows inserted" is empty and "rows updated" is empty. So i think works not correct, then my opinion if it works correct it should show be "rows updated" 1.
    What can yet now still be wrong or forgotten? Any ideas?
    *By the way think not 98 rows there is not important if you make an update or insert which performance. It is an example table the right tables have million of records.*
    I look forward for your answers :)

  • CRUD insert problems.

    Hello all,
    I was wondering about DB operations in JSF pages, so I took a look over the Single Page CRUD example. What hitted me was there is a need for a two step insertion, first by issuing a select in search for the biggest ID of the primary key, and after that the insertion of the element with that obtained biggest ID + 1. I see at least 2 problems with this approach:
    1. Concurrency issues.What happends if 2 users are issuing at the same time an insert operation over the same table? There is the possiblity of getting the same ID to insert, and the first one could insert, but the second one would fail even if it's request is logically corect (validated & converted). I see three solutions over the insert problem:
    a. lock on the database (if it's possible).
    b. using a synchronized block in the application bean to get the ID and insert.
    c. using DB specific constructs (e.g. MySQL's AUTO_INCREMENT)
    2. Overhead issues. Why doing in two steps an operation that should be just an insert? Previous a. an b. approaches do not solve our overhead problem, because we still have two steps in insertion; we only synchronize them.
    I was wondering which is the best practice for production quality web applications. Personally because I've picked MySQL as DB I've used AUTO_INCREMENT, but the immediate huge and obvious drawback is dumping DataProvider's capability of changing the storage medium at a glance.

    I'm not sure if I entirely understood your questions here.
    - Concurrency problem.
    database bound Data provider underneath uses CachedRowset, which uses SyncProvider to take care of concurrency problem. If the default RIOptimisticProvider is not enough, it possible to register other more sophisticated SyncProvider.
    You can read about it here.
    http://java.sun.com/j2se/1.5.0/docs/api/javax/sql/rowset/CachedRowSet.html
    - Overhead issue
    I believe, it is possible to let the DB auto increment the primary key field, and left it out in the insertion from data provider.
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • How can I select to send an from another email account within the inserted gmail account?

    How can I select to send an from another email account within the inserted gmail account?

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    The MAS should use any credits first and then apply the remainder to a listed bank card.

  • Multiple record insert problem in Oracle Procedure that uses a cursor

    Dear X-pert guies,
    I have a oracle procedure that use a cursor, I repeatedly make query on 1st table using cursor value and insert that queried value(of 1st table) to 2nd table
    y_summary. y_summary has composite  primary key :PK_Y_SUM (BILL_DATE, TRUNK_MGR, IDD_FLAG, PK_FLAG, PREFIX).*
    when i run the procedure explicit2('201001'); the it gives me the error:::: begin explicit2('201001'); end;_
    ORA-00001: unique constraint (PRM.PK_Y_SUM) violated_
    ORA-06512: at "PRM.EXPLICIT2", line 413_
    ORA-06512: at line 1_
    but when i remove the composite primary key from y_summary table then, the procedure runs ok and make so many duplicate entries in y_summary.
    but i want the single record  to be inserted for single time in y_summary ,so You guies are honorly requested to make the required help .
    the structure of y_summary Table and Procdure code is given below.
    Table:
    -- Create table
    create table Y_SUMMARY
    BILL_DATE VARCHAR2(10) not null,
    TRUNK_MGR VARCHAR2(20) not null,
    IDD_FLAG VARCHAR2(10) not null,
    PK_FLAG NUMBER(2) not null,
    OUTCALLS NUMBER(20,2),
    OUTDUR NUMBER(20,2),
    PREFIX VARCHAR2(10) not null
    tablespace TBS_PRM_D01
    pctfree 10
    pctused 40
    initrans 1
    maxtrans 255
    storage
    initial 64K
    minextents 1
    maxextents unlimited
    -- Create/Recreate primary, unique and foreign key constraints
    alter table Y_SUMMARY
    add constraint PK_Y_SUM primary key (BILL_DATE, TRUNK_MGR, IDD_FLAG, PK_FLAG, PREFIX)
    using index
    tablespace TBS_PRM_D01
    pctfree 10
    initrans 2
    maxtrans 255
    storage
    initial 64K
    minextents 1
    maxextents unlimited
    Procedure:
    create or replace procedure explicit2( month_val in varchar2) is
    cursor explicit_cur is select dest_code from y_table where dest_code like '44%' order by dest_code desc;
    dummy varchar2(100);
    lv_length Number(9);
    sqlstr varchar2(2500);
    rec_count1 number;
    rec_count2 number;
    rec_count3 number;
    begin
    open explicit_cur;
    LOOP
    fetch explicit_cur into dummy;
    EXIT WHEN explicit_cur%NOTFOUND;
    rec_count1 :=0;
    rec_count2 :=0;
    rec_count3 :=0;
    lv_length := length(dummy);
    sqlstr := 'select count(*) from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr into rec_count1;
    sqlstr := 'select count(*) from y_table_data1 t where t.fee_dur_1_2 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'',
    ''ITAX1B'',''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr into rec_count2;
    sqlstr := 'select count(*) from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'',
    ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''012'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr into rec_count3;
    if(rec_count1>0) then
    sqlstr := 'insert into y_summary(BILL_DATE ,PREFIX, TRUNK_MGR,OUTCALLS , OUTDUR , IDD_FLAG , PK_FLAG )
    select '|| month_val||' ,substr(t.orig_called_num,1,'||lv_length||'),t.trunkout_operator ,count(*) , round(sum(ceil(t.duration / 15) * 15) / 60, 0),''00'',''1'' from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||''''|| ' group by t.trunkout_operator,substr(t.orig_called_num,1,'||lv_length||')';
    execute immediate sqlstr;
    commit;
    sqlstr :='DELETE from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr;
    commit;
    end if ;
    if(rec_count2>0) then
    sqlstr :='insert into y_summary(BILL_DATE ,PREFIX, TRUNK_MGR,OUTCALLS , OUTDUR , IDD_FLAG , PK_FLAG )
    select '|| month_val||' ,substr(t.orig_called_num,1,'||lv_length||'),t.trunkout_operator ,count(*) , round(sum(ceil(t.duration / 15) * 15) / 60, 0),''00'',''0'' from y_table_data1 t where t.fee_dur_1_2 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' group by t.trunkout_operator,substr(t.orig_called_num,1,'||lv_length||')';
    execute immediate sqlstr;
    commit;
    sqlstr :='DELETE from y_table_data1 t where t.fee_dur_1_2 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr;
    commit;
    end if;
    if(rec_count3>0) then
    sqlstr :='insert into y_summary(BILL_DATE ,PREFIX, TRUNK_MGR,OUTCALLS , OUTDUR , IDD_FLAG , PK_FLAG )
    select '|| month_val||',substr(t.orig_called_num,1,'||lv_length||'),t.trunkout_operator ,count(*) , round(sum(ceil(t.duration / 15) * 15) / 60, 0),''012'',''0'' from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''012'' group by t.trunkout_operator,substr(t.orig_called_num,1,'||lv_length||')';
    execute immediate sqlstr;
    commit;
    sqlstr :='DELETE from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''012'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr;
    commit;
    end if;
    end loop;
    close explicit_cur;
    end explicit2;
    Edited by: user10951541 on 25.4.2010 12.08

    Dear concern
    Really sorry not to make format listing because i am amature to this blog.
    my anwser to your way .
    1. I have Tested my SQL statements manually in SQL*Plus. this runs ok
    2. "Cursor loops, such as the one you have coded here, have been obsolete in Oracle since version 8i 12+ years ago.
    Look up BULK COLLECT and FORALL in the docs and use them instead."
    I am trying to make use of the BULK COLLECT and FORALL statement in proper location.
    3. "Your procedure never performs a commit so no work actually takes place" i need to get the anwser why........................?
    4. "On what basis was the decision made to use the default PCTFREE and PCTUSED values of 10 and 40?"
    is there any problem if default is used..? if any suggestion........pls
    5." You did not format your listing using the CODE tags as explained in the FAQ making your listing unreadable ... so I've not read it.
    Please read the FAQ and use the proper way to post code so we can understand it. Then perhaps we can help you further. " really sorry not to make understandable to you..? but i will try from next post..
    I really will try to be synced..
    My aim is to make query to Table A using the cursor value like( '4422','442','4411','441','44') and get some data in accordance of these values.Then i put the data into another Table B. same time i need to delete the record from Table A containing the prefix value in accordance for example- i compute value for '4422' from Table A and put the computed value to Table B .Then i delete the record from Table A where prefix is '4422' .so that computed value for the next prefix '442' should contain the computed value for 442[0-1] and 442[3-9] .Same way it will be happened for ('4411','441','44'....bla...bla).
    Thanks in advance..

  • Why is the cursor inserting within other sentences

    Every single time I go to type my cusor inserts itself wherever it want to on a previous sentence.
    I did have this problem once before and I thought I uninstalled the touchpads driver but that is not working this time.  But it was someone in here who helped me I remember that.
    Specs
    there that was easier...  I hope someine helps me because it is driving me up a wall
    thank You
    Lainie blum
    Lainie and her little dog Ty

    Your hand/fingers may be touching the trackpad.
    As well, check this tech note to see if anything else applies to your situation:
    http://support.apple.com/kb/ht3211

  • Maximum Open Cursors Exceeded problem in XSQL

    Hi,
    We are processing an XSQL page by calling XSQLRequest.process() programatically within our application. Within the XSQL page there are several queries which involve multiple nested CURSOR expressions... when the query returns enough rows we are running into the error "ORA-00604: error occurred at recursive SQL level 1 ORA-01000: maximum open cursors exceeded".
    When searching this forum I have seen many (old) postings regarding this error and a bug in the XDK... seems like it was some time ago, but while we set about improving the structure of our XSQL page (or increasing the max open cursor init parameter currently at 500 or both) can anyone confirm that this bug no longer exists?
    Also, any general suggestions on working around this limit rather than increasing it? We have considered splitting up our queries into smaller queries (and merging the results via XSLT) and closing cursors during the session explicitly by issuing commits within the XSQL page... but any better ideas?
    Thanks,
    Bob

    I have found this max open cursors problem to be related to Statement object not being closed. This presents a problem for the use of PreparedStatements, because they are only useful if you can keep them open and resuse them. However, in doing so, each iteration through the PreparedStatement creates another open cursor in the databse rather than reusing the previous one. A work around I discovered by reading about REF CURSORS and I use in JDBC is as follows:
    Assuming a previously prepared PreparedStatement pstmt and a ResultSet rset-
    while (rset.next()) {
    rset.close();
    // This line closes the cursor in the database
    // but does not require you to re-prepare the
    // PreparedStatement. Don't ask me why--ask the
    // Oracle API guys.
    rset.getStatement().close();
    // make ready for GC
    rset = null;

  • Maximum open cursors exceeded problem

    hi,
    I am connecting to Oracle 8i (8.1.6 ) using JDBC2.0. I have a
    block of code which does the following:
    Open connection to database, create a Statement object say stat
    and a Prepared Statement object say pStat
    pStat.execute()
    while(condition)
    stat.executeUpdate(string);
    pStat.close();
    stat.close()
    Close connection
    Multiple execution of the block gives ORA-01000 error. I use
    select user_name, count(*) num from sys.v_$open_cursor group by
    user_name;
    to check for open cursors and find that no open cursors result
    from block. The maximum # of open cursors is set to 100.
    Please help!
    Regards,
    Pratibha

    If that were true, then connection pooling would never work. I
    think the problem is:
    while(condition){
    stat.executeUpdate(string);
    Oracle is creating a new process (cursor) for each call to
    executeUpdate, which is never being released throught the whole
    looping process. What would be better is:
    while(condition){
    stat = conn.createStatement();
    int result = stat.executeUpdate(string);
    stat.close();
    conn.commit();
    You have to destroy the connection, not just close it.
    rgds, APC

  • Netscape cursor/text problem after Software Updates

    A friend of mine recently ran Software Update (3) updates and ended up with a reasonably serious issue with Netscape which he uses for e-mail. Here's his description...
    "I did a routine Apple update the other day:
    Mac OS X Update (Power PC) 10.4.6
    QuickTime 7.1.1
    J2SE 5.) Release 4 4.0
    Since restarting after that update, the screen display of text in my
    Netscape email program has been damaged. Trying it a second time with
    the update combo did not help.
    The main complaint is that I cannot see the current or previous
    characters being typed, nor the cursor itself, nor the end of the line
    after an automatic return. Ends of lines are replicated for some reason,
    cluttering up the typing window.
    A couple of indications of how screwed up it looks: notice the font
    gibberish below the text, every touch of the return key yields an
    apostrophe, and then there's the other clutter that appears below and
    around the signature.
    When I do spellcheck, some (but not all) of the stuff disappears.
    The spellcheck itself doesn't catch many errors anymore. .
    All the best,
    ph"
    Here's a screenshot of the issue...
    http://homepage.mac.com/wellesgoodrich/grrrr.jpg
    Does anyone have any guesses what might be wrong? I had him run the 10.4.6 Combo Updater as occasionally the combo fixes issues with Software Update versions. It made no difference. Unfortunately, even though I've preached having an external backup prior to any system upgrade, he has not yet done so. His computer is the 17" Flat Panel iMac 800 mhz.
    Thanks!
    G4 1.5GHZ, Rev.A iMac, Mac IIsi, Mac Plus   Mac OS X (10.4.6)  

    Did your friend check his hard drive for any directory problems with Disk First Aid repair via Disk Utility when booted from the Tiger install disc before installing the 10.4.6 Update and other updates and were all running applications quit before the install - namely Netscape?
    As a first step, I suggest Resolving Disk, Permission, and Cache Corruption for system troubleshooting procedures and when doing so, follow all steps/instructions in the order provided including using a system and user cache cleaning utility.

  • Cursor moving problem

    Hi guys!
    I face a problem with my flash movie and I will like to ask
    for help. My movie consists of a map (jpg) and numerous buttons
    (with the shape of umbrellas) . I have created the movie in
    thefollowing way: when you place the cursor over the button an
    image of a beach appears in the upper right side of the screen.
    When you press the button you navigate in the dedicated web page.
    If you move the cursor away from the button (without pressing it)
    you stop seeing the image. My problem is the following: if I move
    the cursor very fast in the screen sometimes the movie appears to
    stuck and the image remains in the upper right side of the screen
    even when I have remove the cursor from the button. I am thinking a
    possible overlap between the in-buttons movie clips but i am not
    sure.
    Any suggestions? Also this is the first time i use a forum.
    Where can i see the answer. Will you send it by mail or i have to
    check on the site?
    Thanx in adnvance for your attention.
    Best regards,
    YannisKm

    Hello,
    I think this is a duplicate thread - careful about those   Here's the other:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=180084
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • 23" HD display with cursor refresh problem

    I don't know if this is a screen issue, but I chose this spot in the forum to begin:
    Since starting (and then restarting) my G5 quad core with 23" HD display today, I find the cursor slow to respond and sticky, leaving a trail of box shaped artifacts behind in graphics intensive applications. The problem is serious enough to make work impossible in these situations.
    Please help me diagnose/fix.
    Thanks!

    You can check the s/n here.
    The graphiccard should work but it might be important to have the card's full manufacturer description.

  • Ie cursor flickering problem

    I am Facing a problem in Internet Explorer. The problem is that the  input box cursor flickering is horrible in ie only(the input is done in html and its embedded next to the flash). That is because of a swf file  embedded next to it. I got it fixed when i remove the WMODE="Transparent"  from the flash embedding code. But in my case the WMODE="Transparent" is  important to fix a button above the flash which loads a Modalbox.I guess the problem is due to the animation which is looping in a flash.when the animation stops,the cursor starts blinking normally.if any one have gone through this issue.. please help me out.
    thanks
    sankar

    Start
    Internet Explorer (No add-ons) in add ons mode and check. : 
    -- > Start | (All) Programs | Accessories | System Tools | Internet Explorer (No add-ons).
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

Maybe you are looking for