Retrieving column datatype n its size.

Hi..,
I have a query regarding ODI.
I have a source table & one target table.
I want to write data from source table to target table...but there are two more columns in target where i like to write the datatype n size of respective rows from source table.
Is it possible thru ODI?
Hope for a reply.

Hi..,
I have a query regarding ODI.
I have a source table & one target table.
I want to write data from source table to target table...but there are two more columns in target where i like to write the datatype n size of respective rows from source table.
Is it possible thru ODI?
Hope for a reply.

Similar Messages

  • Column Datatype Change

    Hi,
    I created a table with some 10 columns earlier, now one of the column datatype needs to be changed to varchar2(2), which actually in the database it is number.
    The thing the table now contains 10 records. Its not allowing me to modify the column datatype, because it has rows in it. How to change the column datatype with data in the table. Pl reply ASAP.
    Thanks

    See the following example.
    Let's modify deptno column from number to varchar2 :
    SCOTT@demo102> desc emp2
    Name                                      Null?    Type
    EMPNO                                              NUMBER(4)
    ENAME                                              VARCHAR2(10)
    JOB                                                VARCHAR2(9)
    MGR                                                NUMBER(4)
    HIREDATE                                           DATE
    SAL                                                NUMBER(7,2)
    COMM                                               NUMBER(7,2)
    DEPTNO NUMBER(2)
    SCOTT@demo102> select count(*) from emp2;
      COUNT(*)
            14
    SCOTT@demo102> alter table emp2 modify deptno varchar2(2);
    alter table emp2 modify deptno varchar2(2)
    ERROR at line 1:
    ORA-01439: column to be modified must be empty to change datatype
    SCOTT@demo102> alter table emp2[b] add deptno2 varchar2(2);
    Table altered.
    SCOTT@demo102> update emp2 set deptno2=deptno;
    14 rows updated.
    SCOTT@demo102> commit;
    Commit complete.
    SCOTT@demo102> alter table emp2 drop column deptno
    SCOTT@demo102> /
    Table altered.
    SCOTT@demo102> alter table emp2 rename column deptno2 to deptno
    SCOTT@demo102> /
    Table altered.
    SCOTT@demo102> desc emp2
    Name                                      Null?    Type
    EMPNO                                              NUMBER(4)
    ENAME                                              VARCHAR2(10)
    JOB                                                VARCHAR2(9)
    MGR                                                NUMBER(4)
    HIREDATE                                           DATE
    SAL                                                NUMBER(7,2)
    COMM                                               NUMBER(7,2)
    DEPTNO VARCHAR2(2)
    SCOTT@demo102>
    Pl reply ASAP.Since this is saturday, and saturday is an unworked day in most of countries, and since this forum is based on volunteers, you cannot ask ASAP...
    Nicolas.

  • Table APQD its size is 64GB in Ecc 6.0

    Hi expert,
    we are using ECC 6.0 with oracle 10g.
    in my ecc 6.0 a table APQD its size is 64GB.
    how can i remove the data.if i remove the session in sm35 then its size will reduce??
    Regards,

    Hi,
    Please read following SAP note and related notes.
    Note 36781 - Table APQD is very large
    Hope this helps.
    Regards,
    Varun

  • Column Datatype modify

    Hi,
    How can i modify a column datatype varchar2(100) into blob in a table.
    Regards,
    Fame

    create table x (y varchar2(100));
    insert into x values ('A');
    commit;
    alter table x rename column y to z;
    alter table x add (y clob);
    update x set y = z;
    commit;
    alter table x drop column z;
    Table dropped.
    Table created.
    1 row created.
    Commit complete.
    Table altered.
    Table altered.
    1 row updated.
    Commit complete.
    Table altered.
    drop table x purge;
    create table x (y varchar2(10));
    insert into x values ('A');
    commit;
    alter table x rename column y to z;
    alter table x add (y blob);
    update x set y = utl_raw.cast_to_raw (z);
    commit;
    select * from x;
    update x set y = (z);
    commit;
    select * from x;
    alter table x drop column z;
    Table dropped.
    Table created.
    1 row created.
    Commit complete.
    Table altered.
    Table altered.
    1 row updated.
    Commit complete.
    Z          Y
    A          A
    1 row selected.
    1 row updated.
    Commit complete.
    Z          Y
    A          
    1 row selected.
    Table altered.

  • Image manipulation and keeping its size same

    Hi
    I am working on an iPad application which allow user to redact portion of an image. Currently i have added UIView to my imageView and draw brush path using UIBezierPath and save the image by taking snapshot of my Uiimageview. Everythings working fine except the image size, suppose my image is of 1.5 Mb then after saving an image it reduces to 0.5Mb.
    My requirement is that after saving image my image size should not reduce.
    if (UIGraphicsBeginImageContextWithOptions != NULL) {
                UIGraphicsBeginImageContextWithOptions(self.imageVw.bounds.size, NO , 0.0);
                [self.imageVw.layer renderInContext:UIGraphicsGetCurrentContext()];
                viewImage = UIGraphicsGetImageFromCurrentImageContext();
                UIGraphicsEndImageContext();
    This is what i am using to save an image.
    Is there any other way to manipulate image without losing its size. For example reading image pixels and writing and replacing new pixels to it?
    Looking for your answer.
    Thanks.

    Any help would be appreciated...

  • I have a large PDF that I cannot send via email because of its size, 76 MB. How do I shrink this file or convert it to another format so I can email this, less than 20MB? Thanks for your help

    I have a large PDF that I cannot send via email because of its size, 76 MB. How do I shrink this file or convert it to another format so I can email this, less than 20MB? Thanks for your help

    Open the file in Preview and select "Save as..." from the File menu. Select "Reduce File Size" from the Quartz Filter menu and save. The size probably won't be reduced enough, though. You may have to split the file into several parts and mail them separately. Or upload it to a web server and send the link.

  • All of a sudden, the "save" page occupies all of my screen and I can't find a way to reduce its size -- this never happened before -- very inconvenient

    When I click on "save" the resulting dialogue box fills the entire screen. I'm unable to reduce its size by using the mouse to pull in the borders of the dialogue box, and I can't find any other way to reduce it. This problem appeared spontaneously. It didn't start immediately after installing a new plug-in or a new Firefox release -- it just happened one day. I've used Firefox for years and never had this very inconvenient problem before.

    Is it the dialog that appears for Save Page As? Like other windows, it could be maximized/restored by double-clicking the title bar. Does that make any difference?
    If not, it might be necessary to rename or delete the localstore.rdf file, which stores window positions and related settings...

  • OBIEE - changing imported column datatypes

    Hi All,
    I am trying to join 2 tables in physical layer but the columns on which I am making join condition have different datatypes defined(one is datetime,another is timestamp).Hence, I am getting error incompatible datatypes can't be joined.
    I don't want to change the columns datatypes in ohysical layer bcz I am not sure if some other report using this rpd might be using the join conditions based on existing datatypes.Is there any alternative to this?
    Please suggest.
    Thanks,
    Neha

    Please try to use this function. it is good if we have sample data for both columns.Please provide if you have issues using following function
    Evaluate( 'to_date(%1,%2)',Evaluate( 'TO_CHAR(%1)' as char,20090101) , 'yyyymmdd')
    Thanks
    NK

  • Retrieve column names of a table!!

    Hi all,
    I want to retrieve column names of a table 'test' whose values are null
    For ex:
    select * from test
    will give the results as
    column_1 column_2 column_3 column_4
    111
    lets consider the case that the table has only one record.
    accordingly we have to get column_2 ,column_3 and column_4 as the result.
    i tried dynamic 'execute immediate' statement and tried to extract in one single execute immediate statement but i was not able to accomplish because of the multiple columns.
    is it possible without using a pl/sql function or procedure??

    Check this:
    SQL> INSERT INTO my_Test values('ABCD',NULL,NULL);
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> select * from my_Test;
    COL1       C COL3
    ABCD
    SQL> declare
      2  CURSOR C1 IS SELECT column_name FROM all_tab_cols WHERE table_name = 'MY_TEST';
      3  v_sql VARCHAR2(10000) := NULL;
      4  my_null_col_list VARCHAR2(32767) := NULL;
      5  my_cnt NUMBER := 0;
      6  BEGIN
      7  FOR I in C1 LOOP
      8  v_sql := 'SELECT COUNT(*) FROM my_test WHERE '||I.column_name ||' IS NULL';
      9  execute immediate v_sql INTO my_cnt;
    10  IF (my_cnt > 0) THEN
    11  my_null_col_list := my_null_Col_list||','||I.column_name;
    12  END IF;
    13  END LOOP;
    14  my_null_col_list := SUBSTR(my_null_col_list,2);
    15  dbms_output.put_line('Columns that have null values for table my_Test are:'||my_null_col_list);
    16  END;
    17  /
    Columns that have null values for table my_Test are:COL2,COL3
    PL/SQL procedure successfully completed.
    SQL> desc my_test;
    Name                                      Null?    Type
    COL1                                               VARCHAR2(10)
    COL2                                               VARCHAR2(1)
    COL3                                               VARCHAR2(10)
    SQL>

  • Suppress Overall result (both rows and columns side and its data)

    Hello all,
    I need to do some settings in BEx Query Designer, so that In BEx Analyzer, I don't see 'overall result' both on 'rows' and 'column' sides
    This is what I have done so far
    In 'rows' section, Properties of my KF (no. Products) then 'calculation' tab 'calculate result as'=Suppress result
    This way in BEx Analyzer I don't see the FIGURES/DATA for 'Result' and 'overall result' BUT 'result' and 'overall result' still exist both on rows and colum side even if there are not figures in them.
    Is there any property in BEx Designer so that I don't see 'overall result' at all
    Best regards
    Ahmad

    thanks for responding
    selecting a characteristic, properties, Display tab, Result lines: Always Suppress
    with this I don't see 'result'
    but 'overall result' result exist both on 'rows' and 'column' side alongwith its data.
    If I combine the above with this: selecting KF, properties, calucations, Calculate result as: Suppress result
    then
    I don't see the data in 'overall result' BUT 'overall result' still exist both on rows and column sides
    any setting so that 'overall result' completely vanishes
    Best regards
    Ahsan

  • I used Iphone sofeware edit one photo by cuting its size, however, when I connect with computer. The photo edited still was old photo, no any changed. I want to edit the photo, and cut the size of photo. What should I do now??

    I used Iphone sofeware edit one photo by cuting its size, however, when I connect with computer. The photo edited still was old photo, no any changed. I want to edit the photo, and cut the size of photo. What should I do now??

    I used Iphone sofeware edit one photo by cuting its size, however, when I connect with computer. The photo edited still was old photo, no any changed. I want to edit the photo, and cut the size of photo. What should I do now??

  • Error: unable to retrieve column information from the data source

    Hi,
    I am trying to set up a data flow task. The source is "SQL Command" which is
    a stored procedure. The proc has a few temp tables that it outputs the final
    resultset from. When I hit preview in the ole db source editor, I see the
    right output. When I select the "Columns" tab on the right, the "Available
    External Column List" is empty. Why don't the column names appear? What is
    the work around to get the column mappings to work b/w source and
    destination in this scenario.
    In DTS previously, you could "fool" the package by first compiling the
    stored procedure with hardcoded column names and dummy values, creating and
    saving the package and finally changing the procedure back to the actual
    output. As long as the columns remained the same, all would work.
    Thats not working for me in SSIS.
    Thanks in advance.
    Asim.

    I had a similar problem retrieving column information when calling a stored procedure which returned a table declared as a variable within the procedure. I used "Command SQL" as data access within the OLE DB Source Editor, and "exec <sproc_name> <param_list>" as text for the SQL command.
    After a few trials and errors, I noticed when I removed the IF statement that validated the parameter passed to the sproc it worked, i.e. SSIS could retrieve the column information, otherwise it wouldn't.  Is it because of the IF, the BEGIN/END, or the RETURN? I do not know as I did not test further, but by removing the entire instruction block pasted below, it worked. Hope that it helps.
        if @Reel_Ou_Budgete not in ('B', 'R')
        begin
            print 'Le paramètre de cette procédure stockée doit être B ou R.'
            return -1
        end

  • Why did rebuilding my Aperture library increase its size by 50 GB?

    After updating to 3.3, library conversion was no problem, but I rebuilt the library today and its size increased from 125 GB to 173 GB. This is large enough to be discomforting. All masters (orginals, I guess, now) are referenced.

    I have maintain previews off. For ones that I need (like to share with iPhone, Flickr, etc.), I generate them manually. I might try deleting all previews and see what happens to the library size.
    I rebuilt because vault updates (for both exisiting and new vaults) were hanging.

  • On certain sites, some lines have the lower half missing. Changing the font or its size does not help. The error does not appear with Iceape or Chromium.

    On some sites certain lines appear with the bottom half missing, as if obliterated. Changing the font or its size does not help. The error does not appear with Iceape or Chromium.

    I looks that the whole line doesn't fit in the container, so the bottom part is cut off. The usual cause is that a font is used that takes more vertical space, so any increase or changes from the font in what the website prescribes can cause this issue. I've seen web pages that were even affected by changing the minimum font size from none to 1 (!). If you do not have the font installed that the website specifies then Firefox will fallback to another (default) font that may have different dimensions.

  • I'm using iphone 5 but its camera is not properly working. all the images i'm clicking are of dimension 600X800 and the size of the image is just 60-70 kb. now please tell me how to increase the dimension of images and its size.

    i'm using iphone 5 but its camera is not properly working. all the images i'm clicking are of dimension 600X800 and the size of the image is just 60-70 kb. now please tell me how to increase the dimension of images and its size.

    ''rojere [[#question-1055991|said]]''
    <blockquote>
    i try to keep my thumb palms off the mouse pad when i am typing but every now and then my screen resizes larger or smaller until i take my left palm off the keyboard base its only when my left palm is resting on the base next to the touch pad. i type pretty fast so it gets annoying and yes it also jumps screens or reverts back to previous message and i have to choose ctrl z to undo and get back to my message i was typing... it also switches tabs on me as well... not sure why my palm being on the left of the keypad on the base should effect anything but it does after a while. and i have to stop what i am doing...and go to the firefox menu and change the screen size back down to 100% sometimes it goes up to 200-300 other times it goes down to 70-80% i find it annoying i i wish there was a way to turn off the screen resize in the setup panel. if its just left to be 100% i am happy with that... i don't need it to be bigger or smaller... there should be a way to LOCK it down... i understand that there are people out there with eye problems and needs to have the screen size increase using the + or - but there should be a lock so it just stays no matter what is happening on my keypad or touch pad or base of the pad... that screen size will not increase or decrease. unless i turn off the lock... perhaps this is something they can implement in the next version or do a quick update of the browser
    </blockquote>
    sorry that is all greek to me thanks for attempting to explain what you were trying to explain sorry i just not tech person to be able to understand or where to begin ... have good day and thanks for again trying

Maybe you are looking for

  • Is there any way to print an A5 size page from iPad?

    I've looked everywhere. I can't believe the A5 format is missing from Pages. Can't believe I didn't notice sooner! Does anyone have ay ideas please?

  • The APP STORE app on the iPhone 4S not working correctly for UPDATES now.

    It used to be, when I had APPS that needed to be updated, I would see a badge on the APP STORE icon with the number of apps that needed to be updated. Then I could tap on the icon for the APP STORE, and I would see the UPDATE button showing the badge

  • Switching graphic cards don't work

    , Hi and thanks again for posting back.  Here is a link to your systems supported drivers. HP Pavilion g6-2170ec Notebook PC - Software and Drivers Here is a link on How to enable/disable automatic driver installation for Windows 8 Please let me kno

  • Scheduling of Archive jobs

    Hi, i really need to apologize here, but i did not found an appropriate forum to ask this, neither a forum for ADK archiving development kit nor a forum about XBP (intercepted jobs). If there is a froum for asking questions like this you can slap me

  • Xsql:dml update... does not get executed?

    I was testing a simple one field update in <xsql:dml> block and getting the following statement: <xsql-status action="xsql:dml" rows="0"/> What might be the problem?