Please Ignore

Guys,
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Solaris: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
Problem: I wrote a procedure to parse a varchar2 field of a table.
It contains long strings. These strings are put into that column
by a java application. The procedure has an inline view which retrieve
records containing certain string pattern. The table has about
2 million records. After procedure gets the strings from the
inline view; for a particular pattern I found that inline view should
be containing 600k records; the Oracle regex function parses to put
the relevant parts into separate columns. At first, I thought, may be
inline view is the culprit. So, I created a staging table and ran my
procedure on it; I created a BTree index on the column. But, no results.
Then I thought DISTINCT keyword is the problem. Removed it, but still procedure
doesn't populate the tables. I am not sure what is going on. Even DBAs are
not sure. I told them to create an index on varchar2 column of original table. They have
created it but no improvement. Would someone please advice? I am new to sql tuning.
Is there any tutorial which explains with examples about sql tuning - I mean,
I am looking for something like
1. explain plan - What every field means?
2. dbms_prof - How to readthe output?
3. trace - how to use it? etc.
Thanks in advance!
CREATE OR REPLACE PROCEDURE prc_parse
IS
--  Purpose: Procedure to parse column of table
             to retrieve crit, points,
             comment, morecomment and
             overallcomment.
--  MODIFICATION HISTORY
--  Person          Date       Comments
TYPE src_crit IS TABLE OF subtable.column1%TYPE;
TYPE src_points IS TABLE OF subtable.column1%TYPE;
TYPE src_comment IS TABLE OF subtable.column1%TYPE;
TYPE src_morecomment IS TABLE OF subtable.column1%TYPE;
TYPE src_overall_comment IS TABLE OF subtable.column1%TYPE;
src_crit_array   src_crit;
src_points_array   src_points;
src_comment_array   src_comment;
src_morecomment_array   src_morecomment;
src_overall_comment_array   src_overall_comment;
CURSOR cur_latest
IS
SELECT   DISTINCT
         TRIM(REPLACE(REPLACE(SUBSTR(REGEXP_SUBSTR(string,'Crit:</strong>[^<]+', 1, level), 15),CHR(13),''),CHR(10),'')) crit,
         TRIM(REPLACE(REPLACE(SUBSTR(REGEXP_SUBSTR(string,'points [^\)]+', 1, level), 8),CHR(13),''),CHR(10),'')) points,
         TRIM(REPLACE(REPLACE(SUBSTR(REGEXP_SUBSTR(string,'\):[^<]+', 1, level), 3),CHR(13),''),CHR(10),'')) comment,
         TRIM(REPLACE(REPLACE(SUBSTR(REGEXP_SUBSTR(string,'blockquote>[^<]+', 1, level), 12),CHR(13),''),CHR(10),'')) morecomment,
         TRIM(REPLACE(REPLACE(SUBSTR(string, INSTR(string, '>', -1) + 1),CHR(13),''),CHR(10),'')) overallcomment
  FROM   (SELECT  column1 string
             FROM subtable
            WHERE column1 LIKE '<strong>Crit:</strong>%'
CONNECT BY LEVEL <= (LENGTH(string) - LENGTH(REPLACE(string, 'Crit:')))/5;
BEGIN
    OPEN cur_latest;
    LOOP
       FETCH cur_latest
       BULK COLLECT INTO   src_crit_array,
                           src_points_array,
                           src_comment_array,
                           src_morecomment_array,
                           src_overall_comment_array
                    LIMIT 100;
        FORALL i in 1 .. src_crit_array.COUNT
            INSERT INTO test_parse_table1 (
                                                    crit,
                                                    points,
                                                    comment,
                                                    morecomment
                                           VALUES (
                                                    src_crit_array(i),
                                                    src_points_array(i),
                                                    src_comment_array(i),
                                                    src_morecomment_array(i)
            FORALL i in 1 .. src_crit_array.COUNT         
            INSERT INTO test_parse_table2 (
                                                 overallcomment
                                       VALUES (
                                                 src_overallcomment_array(i)
       EXIT WHEN cur_latest%NOTFOUND;
          COMMIT;
    END LOOP;
   COMMIT;
EXCEPTION
  WHEN OTHERS THEN
    ROLLBACK;
    DBMS_OUTPUT.PUT_LINE('Error:'||sqlerrm);
    COMMIT;
END;
/Edited by: abyss on Sep 19, 2010 6:03 PM
Edited by: abyss on Oct 1, 2010 9:27 AM

Abyss,
You can do multiple inserts using the FORALL stmt, I dont see any thing wrong with that code bit.
I tried it with the below eg & it worked fine for me ...
create table TBL_TEST
  col1 NUMBER,
  col2 NUMBER,
  col3 CHAR(1)
create table tbl_test2
as
select t.col1, t.col2 from tbl_test t where 1=2;
create table tbl_test3
as
select t.* from tbl_test t where 1=2;
declare
type lt_prod_row is table of tbl_test.col1%type;
type lt_sup_row is table of tbl_test.col2%type;
type lt_pri_row is table of tbl_test.col3%type;
ltc1r lt_col1_row;
ltc2r lt_col2_row;
ltc3r lt_col3_row;
begin
select tbl.col1, tbl.col2, tbl.col3
bulk collect into ltc1r, ltc2r, ltc3r
from tbl_test tbl;
dbms_output.put_line(ltc1r.count);
forall i in 1..ltc1r.count
        insert into tbl_test3 values (ltc1r(i), ltc2r(i), ltc3r(i));
forall i in 1..ltc1r.count
        insert into tbl_test2 (col1, col2) values (ltc1r(i), ltc2r(i));
end;Which line of your code are you getting the error ?

Similar Messages

  • I noticed when I restart Firefox 4, it opens my previous tabs even I set the option "Open a blank page" and it opens blank page when I have "Show my windows and tabs from last time". Please ignore my question if you're already aware of this issue. Thanks.

    I noticed when I restart Firefox 4, it opens my previous tabs even I set the option "Open a blank page" and it opens blank page when I have "Show my windows and tabs from last time". Please ignore my question if you're already aware of this issue. Thanks.

    Your previous tabs will not re-open or be available to re-open when starting Firefox if:
    *your previous session was in Private Browsing mode; see --> http://support.mozilla.org/en-US/kb/Private+Browsing
    *you use Clear Recent History (''Firefox button > History > Clear Recent History'' or ''Tools > Clear Recent History''); see --> https://support.mozilla.org/en-US/kb/Clear%20Recent%20History#w_how-do-i-clear-my-history
    *you clear History automatically when closing Firefox; see --> https://support.mozilla.org/en-US/kb/Clear%20Recent%20History#w_how-do-i-make-firefox-clear-my-history-automatically
    NOTE: Your third-party Plugins (Add-ons > Plugins) are not in the "Application Basics" (Troubleshooting Information) in the "More system details" of your original post. Third-party Plugins are categorized separately in "Installed Plugins" under "More system details". You should review but not change the Plugins as detected automatically by the software on this forum when posting a question.
    If you problem still exists after checking the above, the problem could be caused by one or more of your Extensions or Plugins:
    *See --> [http://support.mozilla.org/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    *See --> [http://support.mozilla.org/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    *See --> [http://support.mozilla.org/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Duplicate post - please ignore - sorry! :-(

    Duplicate post - please ignore - sorry! :-(

    I hate sites like this. There's no way to get from one
    sublevel to another
    without going to the top level.
    I suggest you not use fly-out-type menus, but instead, have
    subordinate
    sectional navigation on each page within a given section. You
    can easily do
    this with a single template using Library items in an
    editable region for
    the sectional navigation, or better, using server-side
    includes.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Andrew_G" <[email protected]> wrote in
    message
    news:e3bcqe$1fc$[email protected]..
    > Hi
    >
    > I have eight categories to display in my site
    navigation.
    > Each category has at least one (some have two) levels of
    subcategories.
    > For example for one of the categories :-
    > Health > Level One.
    > Mens Health > Level Two cascading from this.
    > Prostate Trouble > Level three cascading from Mens
    Health.
    >
    > I only want users to see the level ones (Health in the
    example above) on
    > initial browsing of the site and then by clicking on
    these the associated
    > sub-categories (of that category only) will be
    displayed.
    > How can I organise my navigation using templates or
    libraries to allow
    > this?
    > With only one template it's all or nothing as far as I
    can workout and I
    > suppose what I want is the equivalent of 8 libraries (?)
    to correspond
    > with my
    > 8 navigation headings.
    > I hope this makes more sense to you Dreamweaver experts
    than it does to me
    > reading it back
    > Many thanks
    >
    >

  • Oracle Streaming not working, -- PLEASE IGNORE

    Hello All
    I am trying to setup streaming between two databases:
    Source database = Oracle 10g 10.1.0.5
    Destination = Oracel 10g 10.2.
    I did following steps:
    1- User 'strmadmin' created on both databases granted GRANT_ADMIN_PRIVILEGE,
    2- Both have JOB_QUEUE_PROCESSES > 2
    3- At both databased db_link with name 'sttream' pointing to each other databased has been setup and working fine.
    4- executed on both: EXEC DBMS_STREAMS_ADM.SET_UP_QUEUE();
    5- At source db, supplemental log added on the desired table.
    6- At source db, following rule executed:
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => 'dba_st.sayeed_streaming',
    streams_type => 'capture',
    streams_name => 'capture_stream',
    queue_name =>
    'strmadmin.streams_queue',
    include_dml => true,
    include_ddl => true,
    inclusion_rule => true);
    END;
    7- At source db, following propogation rule done:
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_PROPAGATION_RULES(
    table_name      => 'dwhstream.sayeed_streaming',
    streams_name      => 'st4_to_dwh',
    source_queue_name      => 'strmadmin.streams_queue',
    destination_queue_name      => 'strmadmin.streams_queue@dwh',
    include_dml      => true,
    include_ddl      => true,
    source_database      => 'dba_st',
    inclusion_rule      => true);
    END;
    8- At destination db, table created with same name and attributes.
    9- instantiation SCN at source db as:
    DECLARE
    source_scn NUMBER;
    BEGIN
    source_scn := DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER();
    DBMS_APPLY_ADM.SET_TABLE_INSTANTIATION_SCN@dwhstream(
    source_object_name      => 'dba_st.sayeed_streaming',
    source_database_name      => 'dba_st',
    instantiation_scn      => source_scn);
    END;
    10- At destination db:
         BEGIN
         DBMS_STREAMS_ADM.ADD_TABLE_RULES(
         table_name => 'dba_st.sayeed_streaming',
         streams_type => 'apply',
         streams_name => 'apply_stream',
         queue_name =>
         'strmadmin.streams_queue',
         include_dml => true,
         include_ddl => true,
         source_database => 'dba_st',
         inclusion_rule => true);
         END;
    11- At source db:
         BEGIN
         DBMS_CAPTURE_ADM.START_CAPTURE(
         capture_name =>
         'capture_stream');
         END;
    12- At destination DB:
    BEGIN
    DBMS_APPLY_ADM.START_APPLY(
    apply_name => 'apply_stream');
    END;
    So all this i did but when i change, insert or delet in source table, nothing comes at destination.
    Please guide me what steps i had missed or where to look errors step by step.
    Thanks in advance
    Sayeed
    Edited by: user9206270 on Mar 1, 2010 9:38 PM

    this is a duplicate post. Please change the subject to "Please ignore" Thank you.
    Your initial post was in the correct group and multiple posts is considered very bad form by most here that try to help.
    Again thank you for cleaning it up and removing this.

  • Please Ignore.  Solution found.

    After submission a registration Form I am designing compares
    the two email entries to make sure they're the same, and if not re-
    presents a similar form asking that the punter submits the
    information again, checking the email address carefully. You know
    the sort of thing.
    My question is "How can I get the re- presented form to
    retain the good information from the first completion?" I hate it
    myself when I have filled in a form, made a slight error, get it
    re-presented, and I have to start from scratch.
    I am using php in the comparison check, but be warned, I am
    in the foothills of understanding with php and such.
    Steve

    bhaskarfromhalesowen wrote:
    Message was edited by: bhaskar
    Found the solution already, therefore please ignore, not sure if it is possible to close the message.
    Mark as solved.

  • Please ignore this thread. i have chosen wrong forum..

    hi all
    i have two tables called 'details' and 'containers'.
    Two tables are related with company and reference.
    i have two repeating frames, one for 'details' and other one for 'containers' those frames contains the filelds from the respective tables.
    my requirement is i want to print one field from 'details' say(detail_no) to the the repeating frame of the 'containers' so for that i suppose to write the query to join these two tables(now seperate queries for two tables) or i can use the like to join them.
    which is the best option and why?
    Thanks..
    Edited by: user13329002 on Sep 19, 2010 1:10 AM

    Please do not start another thread.
    Change the subject here to "Please Ignore" and post your question as part of the existing thread.
    Thank you.

  • Query quote help-Please ignore this thread

    Dear all,
    Please ignore this thread.
    Thanks for understanding
    Kai
    Edited by: KaiS on Nov 12, 2009 9:33 AM

    try
    and A.subno =''' || subno || ''' ;' from usr_inf where rownum <300;
    those are two single quotes ('), not double quotes.

  • Re: test - please ignore.

    Malcolm N_ wrote:
    > On Fri, 18 Jan 2008 17:26:04 +0000, Dooza
    <[email protected]>
    > wrote:
    >
    >
    >> Seems like there really aren't that many people who
    know what NNTP is
    >> and how useful it is.
    >>
    >> Steve
    >
    >
    > Real shame - although it's one of the oldest formats on
    the web - news
    > servers are really one of the best and easiest to use.
    its a shame they got so abused, so much spam being posted in
    some that
    you can't see the proper posts over the noise. I used to
    frequent
    uk.music.rave and met some wonderful people there in the late
    90's, but
    now there is nothing but rubbish.
    Steve

    nogoodatcoding wrote:
    It's like that one-liner: "Tell people there is an all-powerful, omnipresent God and they'll believe you; tell them the paint's wet, they'll have to touch it to make sure".
    Even though the topic says 'Please Ignore', there are quite a few views :DYou can leverage that mentality to your advantage. Whenever I buy a new household item, rather than cart the old one off to the tip myself, at some inconvenience, I just leave it outside my house with a sign to the effect of "hands off" or "for sale", and someone does it for me

  • Bfile image problem---please ignore this thread

    Hi all,
    I am using Oracle 10.2.0.2.0 on x86_64 GNU/Linux .
    I am using a table with column bfile datatype. Bfile column links to oracle directory "frameroot" which contains image frames. when i check data of link (bfile) in oracle sql developer it shows the below :
    Name : 2009_pre
    Data Length : 55044
    File Exists : true
    Directory aliase : FRAMEROOT
    but when i click image option its is giving the below error :
    "Image could not be decoded from the binary stream".
    As i think sql developer should show the image of the bfile datatype.
    I am using oracle sql developer version 1.2.1
    Please suggest.
    Thanks
    Vipin
    Edited by: VipinK on Jun 8, 2010 10:07 PM

    Duplicate post. Please change the subject to "Please Ignore"
    Please never do this.
    thank you.
    PS: There is a SQL*Developer forum and that is the only place to post questions about SQL*Developer.

  • This is a test subject.  Please ignore.

    This is a test subject. Please ignore.

    Hi,
    I think this is what you're after:
    http://ss64.com/vb/arguments.html
    If not, can you please clarify your question?
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Please ignore wrong posting

    Sorry copy and past error :-(
    Message was edited by:
    wmpelor
    Message was edited by:
    wmpelor

    Chandra,
    You did not mention the Portal version. Some tips, without knowing Portal info, turn on session caching, connection pooling
    . Make sure that you have applied 3.0.9.8.3 and are using wwsbr_stats.
    Be great if you could provide more info on "slow login".
    Does the public home page show up quickly ?
    How about the login page ? Are all logins slow or only for certain users ?
    What is the activity on the middle tier and database ? Are you seeing heavy usage on the middle tier (i.e high
    CPU or memory usage), or on the database server, or both ?
    Did you use the Portal Diagnostic assistant against your Portal installation ? It gives you a good comparison
    between an ideal install and yours. This in itself will not solve the problem, but may highlight parameters
    that do not have optimal settings.
    If you can provide the above info., it will help in resolving the issue.
    Hi,
    I have the situation of slow login in portal. Could sone let me know what should be done to fix this.
    WWA_MODULE_LOV_BINDINGS_IDX1 and WWA_MODULE_BINDINGS_IDX1 are present.
    Please help me as this is a major performance issue for us.
    Thanks for the help in advance.
    Chandra.
    PS: I posted in the wrong forum by mistake.. please ignore the previous posting.

  • Test from MIS Group Please ignore

    This is a test please ignore....- Tim
              

    Maybe you should try the SQLDeveloper-Forum at SQL Developer
    C.

  • SQL LOADER and ORA-01861: Please ignore,,my mistake...its duplicate

    Hi,
    I've to load data through control_file(.ctl) into oracle table through sqlldr. Oracle 11g, win xp.
    as soon as I use - sqlldr dss/dss control=orders.ctl I get error or nothing.
    Text file that is generated after loading fails has the following error.
    Record 1: Rejected - Error on table ORDERS, column O_ORDERDATE.
    ORA-01861: literal does not match format string
    I have checked the format of data to be loaded into Orders table is like this : *1996-01-02.*
    I checked the format of data in my database by querying sysdate from dual i.e. 10-JAN-10
    I thought that changing its format might solve my problem so i tried this:
    SQL> alter session set nls_date_format='YYYY-MM-DD';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    2010-01-10but still i'm getting the same error. I've to load millions of data. how I can solve this issue.
    Please suggest.
    Thanks alot.
    Best Regads,
    Kam
    Edited by: kam555 on Jan 10, 2010 11:41 PM

    Please refrain from [posting duplicates|http://forums.oracle.com/forums/thread.jspa?threadID=1010735&tstart=0] and mark this post with IGNORE in the subject.

  • I can't open files in the Downloads menu (accidental duplicate, please ignore)

    <pre><i>Locking duplicate thread.
    Please continue here: [[/questions/977970]]
    </i></pre>
    Every time I download a file (either open or save), it never opens automatically, and I can't open it by clicking the entry in the Downloads menu/panel. I am able to "Open Containing Folder" and use the file normally from there, or go to the Library and double click the file, but it is annoying that files that I choose to open don't open.
    I am using Aurora, but the problem persists in the stable version of Firefox.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information. <br>
    '''Note''': ''This will cause you to lose any Extensions and some Preferences.''
    *Open websites will not be saved in Firefox versions lower than 25.
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back soon.

  • Duplicate post, please ignore

    Hi everybody,
    At first, don't mistake me if my english language is very medium, moliere's language is my native language.
    So I installed Oracle 11g R2 on Linux Platform, and I try to create a new connection via SQL Developer.
    I put login, pass I create while proceeding installation
    and database name on SID
    But I have a TNS error when
    Best regards,
    Transact
    Edited by: transact on 4 déc. 2010 13:48

    transact wrote:
    The administrator, can he delete this post? Because it's here 3 per.
    Thanks.
    TransactNo, but you can hit the "edit" button on the first message in the thread and change the subject to something like "Duplicate post, please igonre". These double and triple posts are not that uncommon around here and most people understand (and have done it themselves). It seems to be due to slow response from the server and people hitting "post" button again and again, thinking it didn't "take" the first time.

Maybe you are looking for

  • Running Windows on external hard drive

    Does anyone know if you can run bootcamp and then windows vista from an external hard drive. I have a 320 gig LaCie hard drive and the 17" iMac with the 2ghz Intel Core 2 Duo processor and 1 gig 667 mhz ddr2 sdram for memory.

  • Two iPad 2s (Black and White) side by side - diff wifi signal strength

    Why would two wifi-only iPad 2s sitting side by side, connected to the same router, have different signal strengths?  The 32gb black shifts between 1 or 2 bars and the 16gb white has 3 bars consistently.  Both have the same version of iOS (5). Thanks

  • Check cube data

    I have web query that i want to run. It's asking for certain variables eg : date. How can i check cube data to see what valid dates have been posted in the cube? so then I can put this in for the variable date ? thanks

  • Moving KM Content across Portals

    Hi, I need to move KM Content from one Portal to another Portal. As I understand Content Exchange can be used for auto copy at regular intervals & Global Offer can be used to bundle the content and upload on target portal Server. Is there any other w

  • QT 7.5.5 - 99% CPU usage

    have an Acer Aspire 3000. running Windows home XP, SP3. Mobile AMD Sempron 3000+ prcessor, 1.8 GHz, 448 RAM. When I run QT 7.5.5 *(not pro)* I get 99% CPU usage (thats just running in idle not playing anything). Interestingly, When I don't have Inter