Issu for running insert statement in oracle procedure.

Hi expert,
I ran a oracle procedure with a insert statement inside as:
insert into table1 select....
but I got error message related to this insert statement as "SQLERRM= ORA-08103: object no longer exists"
I ran this statement separately in toad, no error message, but no data result from this execute.
please tell how to fix this issue.
Many Thanks,
Edited by: 918440 on 27-Jun-2012 8:04 AM

Hi friend,
my insert statement is as follows:
        INSERT INTO HIROC_RU_FACT_S   
        select   
                pp.policy_fk,  
                pp.transaction_log_fk,  
                p.policy_no,  
                p.policy_type_code,   
                hiroc_rpt_user.hiroc_get_entity_name(pp.policy_fk,'POLHOLDER')  policy_holder,  
                pp.risk_fk,   
                r.risk_base_record_fk,   
                r.entity_fk,  
                hiroc_sel_entity_risk_name2 (pp.risk_fk,r.entity_fk)  risk_name,   
                substr(trim(nvl(r.county_code_used_to_rate,pth.issue_state_code)),1,2) rating_state_code,  
                hiroc_get_province_name(substr(trim(nvl(r.county_code_used_to_rate,pth.issue_state_code)),1,2), 'PROVINCE_CODE', 'L') rating_state_name,  
                hiroc_get_provicne_pol_prefix(substr(trim(nvl(r.county_code_used_to_rate,pth.issue_state_code)),1,2),p.policy_type_code) rating_prov_pol_prefix,   
                nvl(r.risk_cls_used_to_rate,pth.peer_groups_code) rating_peer_group_code,  
                hiroc_get_lookup_desc('PEER_GROUP',nvl(r.risk_cls_used_to_rate,pth.peer_groups_code),'L')  rating_peer_group_name,   
                pth.policy_term_history_pk,   
                pth.term_base_record_fk,   
                to_char(pth.effective_from_date,'yyyy') term_effective_year,   
                c.coverage_pk,   
                c.coverage_base_record_fk,   
                pc.coverage_code,   
                c.product_coverage_code,   
                pc.long_description,   
                pp.coverage_component_code,  
                c.effective_from_date,   
                c.effective_to_date,  
                cls.coverage_code coverage_class_code,   
                cls.coverage_long_desc coverage_class_long_desc,   
                decode(pp.coverage_component_code ,'GROSS',cls.exposure_unit,null) exposure_unit, --hiroc_get_expos_units_by_cov(c.coverage_pk,pc.coverage_code,c.effective_from_date,c.effective_to_date) exposure_unit,   
                decode(pp.coverage_component_code ,'GROSS',cls.number_of_patient_day,null) number_of_patient_day,   
                pth.effective_from_date  term_eff_from_date,   
                pth.effective_to_date term_eff_to_date,    
                pp.premium_amount premium_amount,    
                (case when (pc.coverage_code in ('CP','MC1','MC2','MC3','MC4','HR','F') or pc.coverage_code like 'ST%') and  
                              pp.coverage_component_code != 'RISKMGMT' then     
                        (nvl(pp.premium_amount,0))  
                    else  
                        0  
                end) primary_premium,   
                (hiroc_get_risk_units(hiroc_get_provicne_pol_prefix(substr(trim(nvl(r.county_code_used_to_rate,pth.issue_state_code)),1,2),p.policy_type_code)-- rating_prov_pol_prefix  
                                    ,nvl(r.risk_cls_used_to_rate,pth.peer_groups_code) -- rating_peer_group_code  
                                    ,cls.coverage_code --coverage_class_code  
                                    ,decode(pp.coverage_component_code ,'GROSS',cls.exposure_unit,null)  
                                    ,pp.premium_amount  
                                    ,(case when (pc.coverage_code in ('CP','MC1','MC2','MC3','MC4','HR','F') or pc.coverage_code like 'ST%') and  
                                                  pp.coverage_component_code != 'RISKMGMT' then     
                                            (nvl(pp.premium_amount,0))  
                                        else  
                                            0  
                                     end)  -- primary_premium  
                                    ,p.policy_type_code           
                                    ,trunc(pth.effective_to_date))) risk_units  
         from     proddw_mart.rmv_territory_makeup tm,  
                  proddw_mart.rmv_premium_class_makeup pcm,  
                  proddw_mart.rmv_product_coverage pc,  
                  proddw_mart.rmv_coverage c,  
                  proddw_mart.rmv_risk r,  
                  proddw_mart.rmv_policy_term_history pth,  
                  proddw_mart.rmv_policy p,  
                  proddw_mart.rmv_transaction_log tl,  
                  proddw_mart.rmv_policy_premium pp,  
                  (select  /* +rule */  
                           p.policy_no,  
                           p.policy_start_date,  
                           p.policy_end_date,   
                           r.risk_pk,  
                           r.risk_description,  
                           c.coverage_pk,  
                           c.parent_coverage_base_record_fk,  
                           pc.parent_product_covg_code,  
                           pc.coverage_code,  
                           pc.short_description coverage_short_desc,   
                           pc.long_description coverage_long_desc,  
                           c.exposure_unit,  
                           pc.exposure_basis_code,  
                           c.number_of_patient_day,  
                           p.policy_start_date policy_effective_date,  
                           p.policy_end_date policy_expiry_date,  
                           c.effective_from_date,  
                           c.effective_to_date,  
                           to_char(c.effective_from_date,'YYYY') class_eff_year  
                    from   proddw_mart.odwr_coverage_only      c  
                          ,proddw_mart.odwr_product_coverage   pc  
                          ,proddw_mart.odwr_risk               r  
                          ,proddw_mart.odwr_policy             p  
                    where  pc.code                 = c.product_coverage_code  
                      and  pc.parent_product_covg_code is not null                 -- coverage classes only  
                      and  r.risk_pk = c.risk_base_record_fk  
                      and  c.accounting_to_date = to_date('1/1/3000','mm/dd/yyyy') -- only open records  
                      and  c.base_record_b = 'N'  
                      and  p.base_record_b = 'N'  
                      and  p.policy_pk = r.policy_fk  
                      and  p.accounting_to_date = to_date('1/1/3000','mm/dd/yyyy')  -- only open records  
                   group by p.policy_no,  
                           p.policy_start_date,  
                           p.policy_end_date,   
                           r.risk_pk,  
                           r.risk_description,  
                           c.coverage_pk,  
                           c.parent_coverage_base_record_fk,  
                           pc.parent_product_covg_code,  
                           pc.coverage_code,  
                           pc.short_description, -- coverage_short_desc,   
                           pc.long_description, -- coverage_long_desc,  
                           c.exposure_unit,  
                           pc.exposure_basis_code,  
                           c.number_of_patient_day,  
                           p.policy_start_date, -- policy_effective_date,  
                           p.policy_end_date, -- policy_expiry_date,  
                           c.effective_from_date,  
                           c.effective_to_date,  
                           to_char(c.effective_from_date,'YYYY')-- class_eff_year  
                  ) cls  
            where    tm.risk_type_code = r.risk_type_code  
            and        tm.county_code = r.county_code_used_to_rate  
            and        tm.effective_from_date <= pp.rate_period_from_date  
            and        tm.effective_to_date   >  pp.rate_period_from_date  
            and        pcm.practice_state_code (+) = r.practice_state_code  
            and        pcm.risk_class_code (+) = r.risk_cls_used_to_rate  
            and        nvl(pcm.effective_from_date, pp.rate_period_from_date) <= pp.rate_period_from_date  
            and        nvl(pcm.effective_to_date, to_date('01/01/3000','mm/dd/yyyy')) > pp.rate_period_from_date  
            and        pc.code = c.product_coverage_code  
            and        c.base_record_b = 'N'  
            and        ( c.record_mode_code = 'OFFICIAL'  
                     and (c.closing_trans_log_fk is null or  
                          c.closing_trans_log_fk != tl.transaction_log_pk)  
                     or c.record_mode_code = 'TEMP'  
                     and c.transaction_log_fk = tl.transaction_log_pk )  
            and   c.parent_coverage_base_record_fk is null  
            and        c.effective_from_date  <  c.effective_to_date  
            and        c.effective_from_date  <= pp.rate_period_from_date  
            and        c.effective_to_date    >  pp.rate_period_from_date  
            and   c.accounting_from_date <= tl.accounting_date  
            and   c.accounting_to_date   >  tl.accounting_date  
            and        c.coverage_base_record_fk=pp.coverage_fk  
            and        r.base_record_b = 'N'  
            and        ( r.record_mode_code = 'OFFICIAL'  
                    and (r.closing_trans_log_fk is null or  
                         r.closing_trans_log_fk != tl.transaction_log_pk)  
                    or r.record_mode_code = 'TEMP'  
                    and r.transaction_log_fk = tl.transaction_log_pk )  
            and        r.effective_from_date  <  r.effective_to_date  
            and        r.effective_from_date  <= pp.rate_period_from_date  
            and        r.effective_to_date    >  pp.rate_period_from_date  
            and   r.accounting_from_date <= tl.accounting_date  
            and   r.accounting_to_date   >  tl.accounting_date  
            and         r.risk_base_record_fk = pp.risk_fk  
            and        pth.base_record_b = 'N'  
            and        ( pth.record_mode_code = 'OFFICIAL'  
                    and (pth.closing_trans_log_fk is null or  
                         pth.closing_trans_log_fk != tl.transaction_log_pk)  
                    or pth.record_mode_code = 'TEMP'  
                    and pth.transaction_log_fk = tl.transaction_log_pk )  
            and        pth.accounting_from_date <= tl.accounting_date  
            and        pth.accounting_to_date   >  tl.accounting_date  
            and        pth.term_base_record_fk = pp.policy_term_fk  
            and   p.policy_pk = pp.policy_fk  
            and        tl.transaction_log_pk  =  pp.transaction_log_fk  
            and   pp.active_premium_b = 'Y'  
            and        pp.rate_period_type_code in ('CS_PERIOD','SR_PERIOD')  
            and        pp.rate_period_to_date > pp.rate_period_from_date  
            and tl.accounting_date <= sysdate   
            and p.policy_cycle_code = 'POLICY'  
            and substr(p.policy_no,1,1) <> 'Q'  
            and tl.transaction_log_pk = (select max(pp.transaction_log_fk)  
                                           from proddw_mart.rmv_policy_premium pp,proddw_mart.rmv_transaction_log tl2  
                                          where pth.term_base_record_fk = pp.policy_term_fk  
                                            and pp.transaction_log_fk = tl2.transaction_log_pk  
                                            and tl2.accounting_date <= sysdate )    
             and p.policy_type_code in ('LIABCRIME','MIDWIFE')    
             and pth.accounting_to_date =  to_date('01/01/3000','mm/dd/yyyy') --<<<*******  eliminates duplicates  
             and p.policy_no = cls.policy_no  
        --     and r.risk_pk = cls.risk_pk  
             and c.coverage_base_record_fk = cls.parent_coverage_base_record_fk(+)  
             and  cls.effective_from_date < pth.effective_to_date -- from date less than period end date  
             and  cls.effective_to_date   > pth.effective_from_date -- to date greater than period start date  
             and  cls.policy_effective_date   < pth.effective_to_date -- from date less than period end date  
             and  cls.policy_expiry_date     > pth.effective_from_date -- to date greater than period start date  
       group by pp.policy_fk,  
                pp.transaction_log_fk,  
                p.policy_no,  
                p.policy_type_code,   
                pp.risk_fk,   
                r.risk_base_record_fk,   
                r.entity_fk,  
                substr(trim(nvl(r.county_code_used_to_rate,pth.issue_state_code)),1,2), -- rating_state_code,  
                r.county_code_used_to_rate,  
                pth.issue_state_code,  
                nvl(r.risk_cls_used_to_rate,pth.peer_groups_code) , --  rating_peer_group_code,  
                r.risk_cls_used_to_rate,  
                pth.peer_groups_code,  
                pth.policy_term_history_pk,   
                pth.term_base_record_fk,   
                to_char(pth.effective_from_date,'yyyy'), --term_effective_year,   
                c.coverage_pk,   
                c.coverage_base_record_fk,   
                pc.coverage_code,   
                c.product_coverage_code,   
                pc.long_description,   
                pp.coverage_component_code,  
                c.effective_from_date,   
                c.effective_to_date,  
                cls.coverage_code, -- coverage_class_code,   
                cls.coverage_long_desc, -- coverage_class_long_desc,   
                decode(pp.coverage_component_code ,'GROSS',cls.exposure_unit,null),-- exposure_unit,   
                decode(pp.coverage_component_code ,'GROSS',cls.number_of_patient_day,null), -- number_of_patient_day,   
                pth.effective_from_date, --term_eff_from_date,   
                pth.effective_to_date, --, --term_eff_to_date,    
                pp.premium_amount ;Edited by: BluShadow on 27-Jun-2012 16:12
added {noformat}{noformat} tags for readability.  PLEASE READ {message:id=9360002} AS PREVIOUSLY REQUESTED!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           &

Similar Messages

  • Unicode issue for the INSERT statement...

    Hi,
    In ECC 6.0, the following INSERT statment give short dumps:
    FIELD-SYMBOLS:
      <fs_tabname>   TYPE ANY."Dynamic table name
    DATA: t_bdi_entry  TYPE STANDARD TABLE OF bdi_entry,
    INSERT (<fs_tabname>) FROM TABLE t_bdi_entry.
    If any one know the reason, Please let me know.
    Thanks!
    Puneet.

    Hi,
    Please try this.
    FIELD-SYMBOLS:
    <fs_tabname> TYPE ANY.    "Dynamic table name
    DATA: t_bdi_entry TYPE STANDARD TABLE OF bdi_entry,
    INSERT <fs_tabname> INTO TABLE t_bdi_entry.
    Regards,
    Ferry Lianto

  • Issue for running complex insert statement

    Hello expert,
    I have a complex insert statement in store procedure. when I run this statement in toad, it takes only 1 minute. but when I monitor execution of this procedure, it takes about 2 hours. this insert statement is as " insert into table select......". can you tell me the possible reason for that ? by the way , index for these two running are always existing there.
    Many Thanks,

    Thanks for all you reply, I create another procedure using statements from issue procedure. it takes 3 minutes compared with 2 hours for this insert statement in the issue procedure. I find out a statement before this insert statement in the issue procedure as follows, I wonder if this is the reason for low performance:
    EXECUTE IMMEDIATE 'ALTER SESSION SET OPTIMIZER_MODE=RULE';
    at the end of the issue procedure, having another statement:
    EXECUTE IMMEDIATE 'ALTER SESSION SET OPTIMIZER_MODE=ALL_ROWS';
    please tell me if these statement will affect the performance. I know little about DBA, so I post it overhere without advanced investigation. Appreciate very much for your help.

  • Where to run SQL statements in Oracle Database 11gR1 ?

    Folks,
    Hello. I have just installed Oracle Database 11gR1 and login to Database Control page. There are 4 tabs on the top: Database, Setup, Preference, Help and Logout.
    I just create a table "table1" in "Database" tap. But I don't see anywhere to run SQL statement such as Select, Insert, Update.
    Can any folk tell me where to run SQL statements in Oracle Database 11gR1 ?
    Or
    Can any folk provide a User Manual for Oracle DB 11gR1 ?

    You can run from a terminal or install an SQL client and connect from there.
    http://www.articlesbase.com/databases-articles/how-to-install-oracle-11g-client-1793770.html
    Best Regards
    mseberg
    Assuming you have an oracle OS user on Linux you can try typing sqlplus at you OS command prompt. Generally you will have a .bash_profile with setting like this:
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    # Oracle Settings
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0
    #export DISPLAY=localhost:0.0
    export TZ=CST6CDT 
    export ORACLE_SID=ORCL
    export ORACLE_TERM=xterm
    #export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
    export NLS_LANG=AMERICAN;
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    export LD_LIBRARY_PATH
    # Set shell search paths
    PATH=/usr/sbin:$PATH; export PATH
    export PATH=$PATH:$ORACLE_HOME/bin
    # CLASSPATH:
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
    CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
    export EDITOR=vi
    set -o vi
    PS1='$PWD:$ORACLE_SID >'Edited by: mseberg on Jul 11, 2011 3:18 PM

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

  • Script for generating insert statements

    I have different tables with data and I would like to have the insert statements generated of the data in the tables. Does someone have a generic script to do the job?

    Hi trafoc,
      You can also check out SQL Developer which has function to output table ddl and/or
    data under Tools selection.  Link is "http://www.oracle.com/technology/software/products/sql/index.html"
    Below is a sample output :
    --   DATA FOR TABLE PEOPLE
    --   FILTER = none used
    REM INSERTING into PEOPLE
    Insert into PEOPLE (USERNAME,JOB,SALARY,DEPTNO) values ('SMITH','CLERK',800,20);
    Insert into PEOPLE (USERNAME,JOB,SALARY,DEPTNO) values ('ALLEN','SALESMAN',1600,30);
    Insert into PEOPLE (USERNAME,JOB,SALARY,DEPTNO) values ('WARD','SALESMAN',1250,30);
    Insert into PEOPLE (USERNAME,JOB,SALARY,DEPTNO) values ('JONES','MANAGER',2975,20);
    Insert into PEOPLE (USERNAME,JOB,SALARY,DEPTNO) values ('MARTIN','SALESMAN',1250,30);
    Insert into PEOPLE (USERNAME,JOB,SALARY,DEPTNO) values ('BLAKE','MANAGER',2850,30);
    Insert into PEOPLE (USERNAME,JOB,SALARY,DEPTNO) values ('CLARK','MANAGER',2450,10);
    Insert into PEOPLE (USERNAME,JOB,SALARY,DEPTNO) values ('KING','PRESIDENT',5000,10);
    Insert into PEOPLE (USERNAME,JOB,SALARY,DEPTNO) values ('TURNER','SALESMAN',1500,30);
    Insert into PEOPLE (USERNAME,JOB,SALARY,DEPTNO) values ('GRIZZLY','CLERK',1100,20);
    Insert into PEOPLE (USERNAME,JOB,SALARY,DEPTNO) values ('JAMES','CLERK',950,30);
    Insert into PEOPLE (USERNAME,JOB,SALARY,DEPTNO) values ('FORD','ANALYST',3000,20);
    Insert into PEOPLE (USERNAME,JOB,SALARY,DEPTNO) values ('MILLER','CLERK',1300,10);
    Insert into PEOPLE (USERNAME,JOB,SALARY,DEPTNO) values ('SCOTT','Clerk',9999,20);
    Insert into PEOPLE (USERNAME,JOB,SALARY,DEPTNO) values ('TEST_VPD','Clerk',1500,20);
    --   END DATA FOR TABLE PEOPLE
    HTH
    Zack

  • How to run exe file using oracles procedure (ASAP) ?

    i am finding difficulties in running an exe file using an oracle procedure.I need this for a pure .NET application

    I want the solution for both,An Oracle stored procedure cannot generally run an executable on the client machine. Stored procedures run on the server and have no access to your client machine. You could potentially do something convoluted like run a web server on the client with an ASP page that called the executable and have the stored procedure make a UTL_HTTP call to the ASP page, but that's generally not an option.
    If the executable is on the server and it's only available as an executable, you could write a Java stored procedure that called out to the command line and invoked the executable (assuming the operating system user running the Oracle database has permission to do so). If the Oracle database is on Windows and you've got 10.2, you may also be able to write a .Net stored procedure that would do the same sort of thing.
    If you can expose the functionality as a DLL, a more elegant solution would be to use an external procedure.
    Justin

  • Bulk Load question for an insert statement.

    I'm looking to put the following statement into a FORALL statement using BULK COLLLECT and I need some guidance.
    Am I going to be putting the SELECT statement into a cursor and then load the cursor values into a defined Nested Table type defined variable?
    INSERT INTO TEMP_ASSOC_CURRENT_WEEK_IDS
    SELECT aor.associate_office_record_id ,
    sched.get_assoc_sched_rotation_week(aor.associate_office_record_id, v_weekType.start_date) week_id
    FROM ASSOCIATE_OFFICE_RECORDS aor
    WHERE aor.OFFICE_ID = v_office_id
    AND (
    (aor.lt_assoc_stage_result_id in (4,8)
    AND v_officeWeekType.start_date >= trunc(aor.schedule_start_date)
    OR aor.lt_assoc_stage_result_id in (1, 2)
    ));

    I see people are reading this so for the insanely curious here's how I did it.
    Type AOR_REC is RECORD(
    associate_office_record_id dbms_sql.number_table,
    week_id dbms_sql.number_table); --RJS.***Setting up Type for use with Bulk Collect FORALL statements.
    v_a_rec AOR_REC; -- RJS. *** defining variable of defined Type to use with Bulk Collect FORALL statements.
    CURSOR cur_aor_ids -- RJS *** Cursor for BULK COLLECT.
    IS
    SELECT aor.associate_office_record_id associate_office_record_id,
    sched.get_assoc_sched_rotation_week(aor.associate_office_record_id, v_weekType.start_date) week_id
    FROM ASSOCIATE_OFFICE_RECORDS aor
    WHERE aor.OFFICE_ID = v_office_id
    AND (
    (aor.lt_assoc_stage_result_id in (4,8)
    AND v_officeWeekType.start_date >= trunc(aor.schedule_start_date)
    OR aor.lt_assoc_stage_result_id in (1, 2)
    FOR UPDATE NOWAIT;
    BEGIN
    BEGIN
    OPEN cur_aor_ids;
    LOOP
    FETCH cur_aor_ids BULK COLLECT into
    v_a_rec.associate_office_record_id, v_a_rec.week_id; --RJS. *** Bulk Load your cursor data into a buffer to do the Delete all at once.
    FORALL i IN 1..v_a_rec.associate_office_record_id.COUNT SAVE EXCEPTIONS
    INSERT INTO TEMP_ASSOC_CURRENT_WEEK_IDS
    (associate_office_record_id,week_id)
    VALUES
    (v_a_rec.associate_office_record_id(i), v_a_rec.week_id(i)); --RJS. *** Single FORALL BULK DELETE statement.
    EXIT WHEN cur_aor_ids%NOTFOUND;
    END LOOP;
    CLOSE cur_aor_ids;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('ERROR ENCOUNTERED IS SQLCODE = '|| SQLCODE ||' AND SQLERRM = ' || SQLERRM);
    dbms_output.put_line('Number of INSERT statements that
    failed: ' || SQL%BULK_EXCEPTIONS.COUNT);
    End;
    Easy right?

  • Executing multiple insert statement in oracle

    hellor every one,
    I have multiple insert statements which should be executed in a single execution and i placed the sample insert statement here. How can i execute these statement in a single execution. Please help me.
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',1,'04509','Abdomen pain');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',2,'04509','Abdominal bloating');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',3,'04509','Abdominal cramps');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',4,'04509','Abdominal pain');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',5,'04509','Abdominal sensitivity');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',6,'04509','Abnormal bleeding');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',7,'04509','Abnormal weight gain');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',8,'04509','Abnormal sensitivity to cold');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',9,'04509','Abnormal sensitivity to heat');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',10,'04509','Abnormal movements');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',11,'04509','Absence of menstrual periods');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',12,'04509','Absence of periods');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',13,'04509','Absent menstrual periods');\

    > but in what editor we should do this, either in the sql editor, or pl/sql
    Whatever editor you are comfortable with. I assume there is one.
    btw if there are a lot of INSERT statements in the script it might be worth adding the following to the top:
    ALTER SESSION SET CURSOR_SHARING = SIMILAR;

  • How to return the newly generated sequence id for an INSERT statement

    A record is to be inserted into a table with a sequence for the primary key. The newly inserted sequence value is to returned on successful insertion. Is it possible to do all this in a single statement (say executeUpdate or any other) using java.sql.* ?
    E.g.: - A student record is to be inserted into the STUDENT table. There is a sequence (by name Student_ID_SEQ) on the primary key Student_ID. Student_ID_SEQ.nextval will generate the new sequence id which will be provided as input to the SQL statement (say statement.executeUpdate) along with other student attribute values. On insertion the created sequence id should be returned. And all this should happen in a single statement (single call to database). Stored Procedures can accomplish this. But is this feasible without the use of Stored Procedures?
    Thanks.

    a better aproach is to generate the auto key on the
    database side, not on the application side.That's his problem - since the database is supplying the key for the new record his application which executed the SQL has no way to identify the record that was just added. I just create the key on the app server and accept the likelihood of overlap (which is extremely small).
    Here is a more technical explanation:
    Table Person
       ID,
       Name,
       Phone Number,
       Age
    }The field ID is an autonumber, and all other fields are not unique.
    Now, when this code executes:
    PreparedStatement pst = conn.prepareStatement("Insert Into Person (Name, Phone Number, Age) Values ?, ?, ?");
    pst.setString(1, "John");
    pst.setString(2, "405-444-5555");
    pst.setInt(3, 44);
    pst.executeUpdate();How can the app determine the ID of the person just added since no query is possible which is guaranteed to select just the record that was inserted?
    Since I am generally against Stored Procedures I would develop a way to insure that your keys were unique and generate them inside the app server.

  • Looking for an insert statement to insert into a table around 500 rows

    Hi  Gurus,
    Your help is greatly appreciated !!,
    I need to have a query to insert into the mer_spec_feature table with the following , Please sugesst apart from the Utl_file ,input thing
    as the data is differnt in the regions and am lokking if it workes out with a insert and select query .
    1)I have to create a  script for inserting records into  mer_spec_feature where  on appl_id ‘VXRR’
    having feature ID 786 and have to Exclude TIDs which already have the 786 feature added for this appl_id like in the eblwo select query .
    2)There are 509 such TIDs where it doesnt have the 786 feature with appl_id -'VXRR' in the mer_spec_feature table
    3)
    select distinct terminal_id,  appl_id, from  mer_spec_feature
    where appl_id = 'VXRR'
    minus
    select distinct terminal_id, appl_id from mer_spec_feature
    where appl_id = 'VXRR'
    and terminal_feature_id = 786
    desc mer_spec_feature :
    Terminal_id  --varachr2(9)
    appl_id    --varcahr2(10 )
    terminal_feature-id --number(8)
    TERMINAL_FEATURE_ID
    TERMINAL_APPL_ID
    TERMINAL_ID
    299
    405T330a
    1004665
    786
    VXRR
    1004665

    @Frank Kulash !!
    Thanks always for your replys .!!
    i have tried with the above sql , and am having issue with the pk constraint after inserting  232 rows.
    And a Tertminal_id  will have 100 feature_id's for one  appl_id.
    becoz it has pk constraint on  -- TERMINAL_FEATURE_ID, APPL_ID, TERMINAL_ID
    TERMINAL_FEATURE_ID
    APPL_ID
    TERMINAL_ID
    299
    405T330a
    1004665
    786
    VXRR
    1004665
    can you please sugeest any other option.

  • Rowcount for multiple insert statements

    Hi all,
    Is there a way I can get separate rowcount in multi table insert?
    My sql is written as below:
        INSERT ALL
          INTO TAB1 (COL1, COL2....)  VALUES          (VAL1, VAL2....)
          INTO TAB2 (COL1, COL2....)  VALUES          (VAL1, VAL2....)
            (SELECT * FROM TABLE);
    rowcount of tab1?
    rowcount of tab2?
    Thank you,
    Niroop

    Here is the work around to get the multi-table insert counts.
    SQL>
    SQL> select * from v$version;
    BANNER                                                                         
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production   
    PL/SQL Release 11.2.0.1.0 - Production                                         
    CORE    11.2.0.1.0    Production                                                     
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production                        
    NLSRTL Version 11.2.0.1.0 - Production                                         
    SQL>
    SQL> DROP PACKAGE utils_pkg;
    Package dropped.
    SQL> DROP TABLE src_tab;
    Table dropped.
    SQL> DROP TABLE tab1;
    Table dropped.
    SQL> DROP TABLE tab2;
    Table dropped.
    SQL>
    SQL> CREATE OR REPLACE
      2  PACKAGE utils_pkg
      3  IS
      4    v_tab1_rec_count pls_integer :=0;
      5    v_tab2_rec_count pls_integer :=0;
      6    FUNCTION fCounter(
      7        pTab_Name IN VARCHAR2)
      8      RETURN NUMBER;
      9    FUNCTION fGetInsCounts(
    10        pTab_Name IN VARCHAR2)
    11      RETURN NUMBER;
    12    FUNCTION fResetCounts
    13      RETURN NUMBER;
    14  END utils_pkg;
    15  /
    Package created.
    SQL> CREATE OR REPLACE
      2  PACKAGE body utils_pkg
      3  IS
      4  FUNCTION fcounter(
      5      pTab_Name IN VARCHAR2)
      6    RETURN NUMBER
      7  IS
      8  BEGIN
      9    IF pTab_Name        = 'TAB1' THEN
    10      v_tab1_rec_count := v_tab1_rec_count +1;
    11    ELSE
    12      v_tab2_rec_count := v_tab2_rec_count +1;
    13    END IF;
    14    RETURN 0;
    15  END fcounter;
    16  FUNCTION fGetInsCounts(
    17      pTab_Name IN VARCHAR2)
    18    RETURN NUMBER
    19  IS
    20  BEGIN
    21    IF pTab_Name = 'TAB1' THEN
    22      RETURN v_tab1_rec_count;
    23    ELSE
    24      RETURN v_tab2_rec_count;
    25    END IF;
    26  END fGetInsCounts;
    27  FUNCTION fResetCounts
    28    RETURN NUMBER
    29  IS
    30  BEGIN
    31    v_tab1_rec_count :=0;
    32    v_tab2_rec_count :=0;
    33    RETURN NULL;
    34  END fResetCounts;
    35  END utils_pkg;
    36  /
    Package body created.
    SQL> CREATE TABLE src_tab AS
      2  SELECT *
      3  FROM
      4    (SELECT 1 col1, 'TEST' col2, 'TAB2_DATA' col3 FROM dual
      5    UNION ALL
      6    SELECT 2, 'TESTING', 'NO_TAB2_DATA' FROM dual
      7    )temp;
    Table created.
    SQL>
    SQL> CREATE TABLE tab1 AS
      2  SELECT col1, col2 FROM src_tab WHERE 1=2;
    Table created.
    SQL>
    SQL> CREATE TABLE tab2 AS
      2  SELECT col3 FROM src_tab WHERE 1=2;
    Table created.
    SQL>
    SQL> SELECT utils_pkg.fGetInsCounts('TAB1') AS tab1_inserts,
      2    utils_pkg.fGetInsCounts('TAB2')      AS tab2_inserts,
      3    utils_pkg.fresetcounts    AS reset_done
      4  FROM dual;
    TAB1_INSERTS TAB2_INSERTS RESET_DONE                                           
               0            0                                                      
    SQL>
    SQL> INSERT ALL
      2  INTO tab1
      3    (
      4      col1,
      5      col2
      6    )
      7    VALUES
      8    (
      9      DECODE(utils_pkg.fcounter('TAB1'),0,col1),
    10      col2
    11    )
    12  INTO tab2
    13    (
    14      col3
    15    )
    16    VALUES
    17    (
    18      DECODE(utils_pkg.fcounter('TAB2'),0,col3)
    19    )
    20  SELECT col1, col2, col3 FROM src_tab;
    4 rows created.
    SQL>
    SQL>
    SQL> SELECT utils_pkg.fGetInsCounts('TAB1') AS tab1_inserts,
      2    utils_pkg.fGetInsCounts('TAB2')      AS tab2_inserts,
      3    utils_pkg.fresetcounts    AS reset_done
      4  FROM dual;
    TAB1_INSERTS TAB2_INSERTS RESET_DONE                                           
               2            2                                                      
    SQL>
    SQL> rollback;
    Rollback complete.
    SQL>
    SQL> INSERT  WHEN 1=1 THEN
      2  INTO tab1
      3    (
      4      col1,
      5      col2
      6    )
      7    VALUES
      8    (
      9      DECODE(utils_pkg.fcounter('TAB1'),0,col1),
    10      col2
    11    )
    12    WHEN col3 = 'TAB2_DATA' THEN
    13  INTO tab2
    14    (
    15      col3
    16    )
    17    VALUES
    18    (
    19      DECODE(utils_pkg.fcounter('TAB2'),0,col3)
    20    )
    21  SELECT col1, col2, col3 FROM src_tab;
    3 rows created.
    SQL>
    SQL>
    SQL> SELECT utils_pkg.fGetInsCounts('TAB1') AS tab1_inserts,
      2    utils_pkg.fGetInsCounts('TAB2')      AS tab2_inserts,
      3    utils_pkg.fresetcounts    AS reset_done
      4  FROM dual;
    TAB1_INSERTS TAB2_INSERTS RESET_DONE                                           
               2            1                                                      
    SQL>
    SQL> rollback;
    Rollback complete.
    Thanks,
    GPU

  • Issue with running a script in Oracle test manager

    Tool - Open Script 9.0.1 , OTM
    Hi All
    I am facing issue while executing a open script with Oracle Test Manager , I have a script which was made with open script 9.0.1 and which is running very fine with the Open Script UI ,
    problem occurs once I am trying to run this with OTM.Issue looks that playback was so fast in OTM so that script was not able to recognize some of the objects.
    Is there anyway so that I can control the speed of playback at any particular step when I am using OTM
    Thanks

    Hi Kumar,
    Regarding your query below is the suggestion:
    You have to configure the job server with the repository. While configuring the adapter, you have to configure the job server in management console also..
    Still if you are facing issue then please share Job Server logs available in BODS Job Server Folder and error screenshot to debug the issue.
    Thanks,
    Daya

  • Short  Dump in Standard program for the INSERT Statement

    Hi All,
    In the Transaction FPCJ, when I click on the Button Close Cash Desk, I ma getting a short Dump.
    The problem is in the Standard SAP program 'SAPLSUU1' and the include program is 'LSUU1F01'.
    The reason is the code is trying to insert duplicate entries into a Data base table. And SAP is suggesting for a SAp NOTE.
    The problem is when I am trying with the suggested dearch terms I get very large number of notes and I am unable
    to zero down any single note.
    If someone has worked on these or have any idea on the Note number, please share that with me.
    Thans in advance.
    Thanks & regards,
    Y Gautham

    Hi Nicole,
    Thanks a lot! It actually worked.
    Thanks & regards,
    Y Gautham

  • Configuring textpds.conf file for running Text Query in Oracle Reports 11g

    I'm trying to add a custom option in textpds situated in ORACLE_HOME\reports\conf folder by the given fileFormat:
    <fileFormat name = "ProductCSV" comment = "#" delimiter ="" type = "fixed">
    <columnInfo>
    <cloumn name = "S.No." type = "number" startpos = "1" width = "13"/>
    <column name = "Fruits" type = "string" startpos = "14" width ="10"/>
    </columnInfo>
    </fileFormat>
    before end tag of textPDS.
    but it is not getting reflected on my report wizard. I tried to remove all the existing fileFormats still no changes occur.
    Can anyone help me in my problem ?
    Note: I have restarted the reporting tool once the modification is done.

    For the more clarification, I have used JDBC Query as Data source type and Database connected via ODBC Driver in System DSN. The Driver selected from the drop-downs are jdbc-odbc.
    Kindly explain the mistake I m doing.

Maybe you are looking for