User Profile

Collapse

Profile Sidebar

Collapse
ananthaisin
ananthaisin
Last Activity: Jul 7 '11, 11:02 AM
Joined: Aug 14 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ananthaisin
    started a topic Query taking too long to finish

    Query taking too long to finish

    Hi,

    I have two procs which is getting executed one below the other in a package

    package1.calc_c l_bal
    package1.calc_z one

    This is how the procs are defined

    Code:
    procedure pre_decre_calc_clbal is
    c number;
    lcnt number(5);
    lcnt1 number;
    l_msg varchar2(200);
    l_mob varchar2(15);
    type string_array is table of varchar2(100)index by binary_integer;
    ...
    See more | Go to post

  • ananthaisin
    started a topic Bulk collect not updating

    Bulk collect not updating

    Hi All,

    I have two tables 1) In_decrement_ba se_ch
    Code:
      MSC_ID        VARCHAR2(20 ),
      PLAN_ID    VARCHAR2(20 ),
      ACT_DATE   DATE,
      DUM        VARCHAR2(5 ),
      PADJ       NUMBER(10,2));
    
    2)
    CREATE TABLE TMP_ADJ
    (
      MSC_ID               NUMBER(20),
      NOMINALAMOUNT         NUMBER(20))
    
    I have to comepare MSC_ID and update the Nominalamount in table1 (PADJ)column
    ...
    See more | Go to post
    Last edited by debasisdas; May 27 '10, 09:56 AM. Reason: Formatted using code tags

  • I found it very useful .... coordination of oracle and xml is good.
    See more | Go to post

    Leave a comment:


  • Yeah got it guys....... The trick is to create the table with initial storage space specified.

    Ex .. Create table tmp storage(initial 50M)

    so when truncating oracle returns the table space to be 50M .This applies in 10G.
    Thanks for the support. :)
    See more | Go to post

    Leave a comment:


  • Hmm.. thanks for the reply....

    Actually the script is really fast and without giving Truncate command there is no other option to reduce the table size to default while creating it...

    This was working until 2 days before.I heard there is an option as "Recycle bin ON" which stops the table size from getting reduced....
    See more | Go to post

    Leave a comment:


  • Hi ,

    I am sorry for not pasting the complete code... here is the complete one...

    Code:
    SET SERVEROUTPUT ON;
    
    DECLARE
    
    i number;
    
    CURSOR NLD IS
    SELECT A.ROWID AS TMP_ROWID,A.* FROM CHN_BILLREFDUMP3_T1_FX A WHERE A.STAT=0 AND A.STRM=1;
    
    
    BEGIN
    
    i:= 0;
    
    FOR CC IN NLD LOOP
    
    DELETE FROM CHN_BED3A_T4_FX ;
    ...
    See more | Go to post

    Leave a comment:


  • How to reduce table size using delete or truncate statement in 10G

    How to reduce the table size for any table while using truncate or delete statements. In oracle 8i it was truncating the storage space but in 10g it is not ....

    I have given truncate statement in a procedure to drop the storage of a table used... when its record count exceeds 500.

    [code=oracle]
    BEGIN

    i:= 0;

    FOR CC IN NLD LOOP

    DELETE FROM CHN_BED5A_T4_FX ;

    COMMIT;
    ...
    See more | Go to post
    Last edited by amitpatel66; Dec 21 '09, 06:18 PM. Reason: Code Tags

  • ananthaisin
    started a topic Oracle query help urgent !!

    Oracle query help urgent !!

    Hi,

    This is the query i am trying to build

    I have attached the same in the file....


    while running its throwing an error ........

    NVL((SELECT USAGEMODE FROM KKTYPEMAST_AP B WHERE B.TYPE_ID_USG=A .TYPE_ID_USG AND
    B.JURISDICTION= A.JURISDICTION) ,(SELECT USAGEMODE FROM KKTYPEMAST_AP B WHERE B.T
    YPE_ID_USG=A.TY PE_ID_USG AND ROWNUM=1)),
    *
    ERROR at line 15:
    ...
    See more | Go to post

  • ananthaisin
    replied to SQL0284N error
    in DB2
    hi,

    I have no rights to change settings in IN_MY_NAME table space...and yes i am using Db2V9...

    Is there any other alternative because i am totally new to Db2
    See more | Go to post

    Leave a comment:


  • ananthaisin
    started a topic SQL0284N error
    in DB2

    SQL0284N error

    42838(-284)[IBM][CLI Driver][DB2/AIX64] SQL0284N The table was not created because the table space "IN_MYNAME" following the clause "IN" is a "LARGE" table space. SQLSTATE=42838
    (0.10 secs)

    This is the error which i am getting while trying to create a global temporary table.

    DECLARE GLOBAL TEMPORARY TABLE temp_lost_sales (
    pdt_ky integer not null,...
    See more | Go to post

  • ananthaisin
    started a topic Load syntax help!!!!
    in DB2

    Load syntax help!!!!

    Hi all,

    I am using this load statement to insert 70 lakh rows inside a table,But its throwing me an error...(in the Db2cmd prompt)

    db2 load from C:\123\<file_na me.txt> of del Modified by COLDELX09 Messages c:\123\error1.l og insert into <table_name>

    error SQL3025N A parameter specifying a filename or path is not valid.

    Can anyone help me in rectifying the same pls
    See more | Go to post

  • ananthaisin
    started a topic Date function help subtracting dates
    in DB2

    Date function help subtracting dates

    I am having the below oracle statement

    TO_DATE(to_char (last_day(add_m onths(sysdate-1,-1))+1,'dd-mon-YYYY'),'dd-mon-YYYY')-ACT_DATE

    to update a column...

    But in Db2 this does not work,i found a roundabout method or duno if its good..

    days(((current_ date - day(current_dat e) day)+1 day))-days(date(act_d ate))

    The column is to be updated with the no of days from the start of the...
    See more | Go to post

  • ananthaisin
    replied to Db2 loading from Tab delimited Txt file
    in DB2
    Ty guys really helped me out.....but the loading is so slow duno why....

    Coming up with more questions..:)
    See more | Go to post

    Leave a comment:


  • ananthaisin
    started a topic Db2 loading from Tab delimited Txt file
    in DB2

    Db2 loading from Tab delimited Txt file

    Hi all,

    I am pretty much new to DB2 platform and i have one query...

    I have to import data of about 7 million rows into a Db2 table.

    i am using the following import statement right now

    db2 "import from file_name of del insert into table_name"

    But i was told the default delimiter is Comman(,) ,the case here is i have a tab delimited Txt file.So can someone help me...
    See more | Go to post
No activity results to display
Show More
Working...