How to convert number datatype to raw datatype for use in data warehouse?

I am picking up the work of another grad student who assembled the initial data for a data warehouse, mapped out a dimensional dw and then created then initial fact and dimension tables. I am using oracle enterprise 11gR2. The student was new to oracle and used datatypes of NUMBER (without a length - defaulting to number(38) for dimension keys. The dw has 1 fact table and about 20 dimension tables at this point.
Before refining the dw further, I have to translate all these dimension tables and convert all columns of Number and Number(n) (where n=1-38) to raw datatype with a length. The goal is to compact the size of the dw database significantly. With only a few exceptions every number column is a dimension key or attribute.
The entire dw db is now sitting in a datapump dmp file. this has to be imported to the db instance and then somehow converted so all occurrences of a number datatype into raw datatypes. BTW, there are other datatypes present such as varchar2 and date.
I discovered that datapump cannot convert number to raw in an import or export, so the instance tables once loaded using impdp will be the starting point.
I found there is a utl_raw package delivered with oracle to facilitate using the raw datatype. This has a numbertoraw function. Never used it and am unsure how to incorporate this in the table conversions. I also hope to use OWB capabilities at some point but I have never used it and only know that it has a lot of analytical capabilities. As a preliminary step I have done partial imports and determined the max length of every number column so I can alter the present schema number columns tp be an apporpriate max length for each column in each table.
Right now I am not sure what the next step is. Any suggestions for the data conversion steps would be appreciated.

Hi there,
The post about "Convert Numbers" might help in your case. You might also interested in "Anydata cast" or transformations.
Thanks,

Similar Messages

  • How to convert java class to dll file for using in Microsoft Technology(.n)

    hey hemmj !!!!!!
    nice replying , first of all i d like to say thanks for response me so frequently..... i like such type of guy... i d never forget ur online support.
    hey buddy, i ve a problem with applet application...
    i m working on java chat server build on swing applet. As it is chat server, it is divided into two parts, one is server application and other is client application. I want to run this server app on the client server and the basic thing with this site is that it is running on .net platform(Microsoft). and the other app ll running on the client machine or end user. Now the problem is that this site would run only if the server app ll be run on server. This server app ll open the socket of server, which ll listen the request of the user...... So, the requirement is to convert this java sever class file into dll file and register this dll file with the IIS server.So, It run and stop with the IIS server.
    I ve already search the way to convert the java class file into dll file. This is possible in such way........... below code is for the java class file...
    import java.net.*;
    import java.io.*;
    import java.util.*;
    public class chatServer
    public static void main(String args[]) throws Exception
                        ServerSocket sersoc=new ServerSocket(1234);// Any port number above 1000 should do
    // as most ports below 1000 are used by system
    Vector socvec=new Vector();
    String data="";int i,j=0;
    BufferedReader in;
    //System.out.println("Listening of port " + sersoc.getLocalPort());
    //System.out.println("Waiting for connections...");
    while(true)
    Socket soc=sersoc.accept();
    socvec.addElement(soc);
    chatServerReadThread csrt=new chatServerReadThread(socvec, soc);
    in=new BufferedReader(new InputStreamReader(soc.getInputStream()));
    PrintStream out=new PrintStream(soc.getOutputStream());
    out.println("Connected to chat server");
    out.flush();
    data= in.readLine();
    for(i=0;i<socvec.size();i++)
    soc=(Socket)socvec.elementAt(i);
    out=new PrintStream(soc.getOutputStream());
    out.println(data + " connected");
    out.flush();
    //System.out.println(data + " connected");
    csrt.start(); // error is comming from here..... plz help me.
    class chatServerReadThread extends Thread
    Vector socvec;
    PrintStream out;
    chatServerReadThread(Vector socvec, Socket soc)
    this.socvec=socvec;
    try
    out=new PrintStream(soc.getOutputStream());
    }catch(Exception e){}
    public void run()
    try
    String data;
    Socket soc;
    BufferedReader in;
    while(true)
    for(int i=0;i<socvec.size();i++)
    soc=(Socket)socvec.elementAt(i);
    in=new BufferedReader(new InputStreamReader(soc.getInputStream()));
    if(in.ready())
    try
    data=in.readLine();
    if(data.charAt(0) == ']')
    data = in.readLine() + " exited";
    //System.out.println(data);
    socvec.removeElement(soc);
    for(int e=0;e<socvec.size();e++)
    soc=(Socket)socvec.elementAt(e);
    out=new PrintStream(soc.getOutputStream());
    out.println(data);
    out.flush();
    else
    for(int e=0;e<socvec.size();e++)
    soc=(Socket)socvec.elementAt(e);
    out=new PrintStream(soc.getOutputStream());
    out.println(data);
    out.flush();
    }catch(Exception e){socvec.removeElement(soc);}
    }catch(Exception e){e.printStackTrace();}
    first i ve made the jar file of this class
    jar cvf chatServer.jar chatServer.classafter getting the jar chatServer.jar. I ve opened the .net dos prompt and
    type this command which ll make dll file automatically....
    > jbimp /t:library chatServer.jar
    And you'll see the following output:
    Microsoft (R) Java-language bytecode to MSIL converter version 1.1.4322.0
    for Microsoft (R) .NET Framework version 1.1.4322
    Copyright (C) Microsoft Corp 2000-2002. All rights reserved.
    Created chatServer.dll
    I cant get the problem origin from where it is comming, when i tried to convert it into .dll file it shown an error that, it did not recongnized the method in first class
    public static void chatServerReadThread.start() method
    is not recognized by .net dos prompt commnad. But when i omit this method it gets created the .dll file. This start method is basically the default method of thread class that run the thread from the same class..
    By vewing the code u can visulize the thing,, i ve marked the code from where the error is comming.
    Plz do it as soon as possible, i ll waiting for ur reply......
    I ll be really thanking u for that....
    Thanx and regards
    Niraj Kumar Singh

    I wonder if this will work:
    jbimp /t:exe chatServer.jar
    Your chatServer is an application that can be started from the commandline.
    A dll is a library to be used in com, com+, other executables or ....

  • How to convert .avi files to .mov format for use in FCE ?

    Hi guys,
    I need to import an avi file into FCE. How do I convert it to mov format ?
    Thanks

    i am in the same boat. i have a canon G9 and automatically downloaded to iphoto without thinking. the videos i extracted seem to be .avi. what do i have to do to edit them in FCE4? i tried to convert them with prism, the video is messed up. i tried to put them into imovie instead, it won't let me do any effects on them. it's so confusing bc it lets the videos load in, or so i thought, but then it won't let me do anything to them? what do i do?

  • How to convert iDVD theme to .mov file. for use in FCP?

    I would like to use the Baby Mobile iDVD theme as a clip in a movie to be created on FCP. I dropped my pics in the iDVD project with the Baby Mobile theme and put in a green background so I could later key out the background and replace it with a different background. I deleted the title and added a short movie to the menu. Because I don't want to use the theme as a DVD menu, I made the menu button the same color as the green background.
    I then burned the DVD. Next I ripped the DVD using MactheRipper to give me the Video TS folder. I then used Handbrake to convert the VOB files to Mpeg4. Unfortunately, Handbrake only converted the 10 second movie I put in iDVD and not the Baby Mobile iDVD theme.
    Any ideas out there to help me use the iDVD menu theme as a standalone clip in a movie?
    I did find the source material of the theme in the Mobile.pox folder; it contains the 2 .mov files with alpha channels but I would rather not go through the time consuming process of keying in the movements and size of my pics to match the Mobile. It would take too much time and I don't know how successful it would be.
    Any help would be greatly appreciated!
    Thanks.

    Options:
    -If you have FCS2, you can use Motion to track the points, thus saving you lots of keyframing time in FCP.
    -You can use MPEG Streamclip to rip the DVD (I believe it can find the menu files)
    -You can get a screen capture program such as Snapz X Pro to screen capture it.
    -As it encodes the media in iDVD's burning process, you can find where it stores the temporary copy of the MPEG2 that it creates, and snag that file before it finishes the burn and deletes it.
    NOTE: I've never tried option 4, nor do I know if it will work. I just came up with it.

  • How to convert a mesh to an object for use with pathfinder?

    (I tried searching for this problem, but all that came up were a lot of posts about crash reports.)
    My problem is that I've taken over a document where a lot of objects have mesh fills. I need to take these objects and convert them to black and white, and they need to be compound paths (ie have holes in them where there used to be color). But whenever I choose two objects, where one has a mesh fill, I can't use the pathfinder. I also can't expand the object with the mesh.
    I've tried looking in the help files and search the web, but not found anything so far. Does anyone have the solution?
    Why doesn't the pathfinder simply discard the mesh in the first place if it can't work with it? I could always undo if it's not the result I expected.

    I am not sure I understand any of this bu you can in CS 5 give the mesh point colors an opacity of 0% since transparency is now supported in gradient mesh.
    Or if you need a shaped whole in the gradient mesh then you can simply make a non clipped non inverted opacity mask.
    Here you have a combination of the opacity set to zero for one of the mesh points and a shape used as an opacity mask.

  • Using number datatype for date column

    Hi
    Is there a side effect for using "number" datatype for "date" column?
    If so, what is the disadvantage?
    Many thanks

    Hi,
    Ora_83 wrote:
    Hi
    Is there a side effect for using "number" datatype for "date" column?
    If so, what is the disadvantage?Yes, there's a definite disadvantage.
    Oracle provides date arithmetic and a number of functions for manipulating DATEs. None of them work with numbers.
    For example,
    SELECT    TRUNC (order_date, 'MONTH')     AS order_month
    ,       AVG (ship_date - order_date)     AS avg_delay
    FROM       orders
    GROUP BY  TRUNC (order_date, 'MONTH')
    ;order_month involves a DATE function; it's pretty easy to find the month that conatins order_date.
    avg_delay involves date arithmetic. It's extrememly easy to find how much the time passed between order_date and ship_date.
    Depending on how you code dates as numbers, doing either one of the above may be just as easy, but doing the other will be very difficult. You'll waste a lot of effort converting the NUMBERs to real DATEs whenever you need to manipulate them.
    Validation can be very difficult for NUMBERs, also.
    Watch this forum. It's a rare day when there's not some question about how to get around a problem caused by storing dates in a NUMBER (or VARCHAR2) column. Don't add to that. Always use DATE columns for dates.

  • How to Create a datatype for a storeprocedure which has got array ?

    Hi All,
    Please tell me how to create a datatype for a storeprocedure which has got an array structure ?
    Thanks,
    Sindhu.

    Hi Sindhu.
    You would have to use a JDBC Cursor for this but it's possible only Output parameters, not Input parameters.
    It's describle in a help link:
    Defining an EXECUTE Statement  http://help.sap.com/saphelp_nwpi711/helpdata/en/44/7b72b2fde93673e10000000a114a6b/frameset.htm
    The following SQL data types are supported:
    INTEGER, BIT, TINYINT, SMALLINT, BIGINT, FLOAT, REAL, DOUBLE, NUMERIC, DECIMAL, CHAR, VARCHAR, STRING, LONGVARCHAR, DATE, TIME, TIMESTAMP, BINARY, VARBINARY, LONGVARBINARY, BLOB (input and output), CLOB (input and output), CURSOR (output; only in connection with the Oracle JDBC driver)
    I think you can execute your StoreProcedure many times depends of array occurs.
    Regards.
    Bruno.

  • How to convert NTFS external hard drive to FAT32 without loosing data?

    New mac user. How to convert NTFS external hard drive to FAT32 without loosing data?

    You have to off load and backup then.
    don't have backup drive ?
    Get one.
    Want another option? Paragon NTFS for OS X will provide write function to your drive, works with the most PC cases and drives (not all NTFS drivers for OS X do) and does so with fast I/O and low overhead.
    Not sure about using Seagate GoFlex as I seem to recall a number of threads reporting problems.
    Windows can do a convert -fs to NTFS just never tried the reverse from NTFS to FAT32 but I would not use FAT. I'd either erase and reload and use as Mac HFS Extended; or if you actually do need to use it with a PC user running Windows, the driver would be handy and better.
    Or your PC w/ Windows there are HFS drivers for Windows to mount and WRITE to a Mac formatted drive under Windows. There MacDrive has more and better support feature set.

  • Hello, what is the best way for me to convert RW2 raw format for use in Photoshop CC

    Hello, what is the best way for me to convert RW2 raw format for use in Photoshop CC. I would appreciate any help with this.

    Thanks for the quick help. I do have to leave for work. When I try to
    download the images from the camera they seem to only be in jpeg (I don't
    see any rw2 or raw files to download). If I select the jpeg file it seems
    to only download a jpeg file. I do understand that I do have the option to
    open the jpeg in RAW. In doing this, is all the extra information included
    in the RAW file there or is it lost coming from the camera
    Once again thank you for trying to make me understand how this works.
    Have a great day.
    On Sat, Sep 13, 2014 at 12:14 PM, ssprengel <[email protected]>

  • How to find number of files in a folder using pl/sql

    please someone guide as to how to find number of files in a folder using pl/sql
    Regards

    The Java option works well.
    -- results table that will contain a file list result
    create global temporary table directory_list
            directory       varchar2(1000),
            filename        varchar2(1000)
    on commit preserve rows
    -- allowing public access to this temp table
    grant select, update, insert, delete on directory_list to public;
    create or replace public synonym directory_list for directory_list;
    -- creating the java proc that does the file listing
    create or replace and compile java source named "ListFiles" as
    import java.io.*;
    import java.sql.*;
    public class ListFiles
            public static void getList(String directory, String filter)
            throws SQLException
                    File path = new File( directory );
                    final String ExpressionFilter =  filter;
                    FilenameFilter fileFilter = new FilenameFilter() {
                            public boolean accept(File dir, String name) {
                                    if(name.equalsIgnoreCase(ExpressionFilter))
                                            return true;
                                    if(name.matches("." + ExpressionFilter))
                                            return true;
                                    return false;
                    String[] list = path.list(fileFilter);
                    String element;
                    for(int i = 0; i < list.length; i++)
                            element = list;
    #sql {
    insert
    into directory_list
    ( directory, filename )
    values
    ( :directory, :element )
    -- creating the PL/SQL wrapper for the java proc
    create or replace procedure ListFiles( cDirectory in varchar2, cFilter in varchar2 )
    as language java
    name 'ListFiles.getList( java.lang.String, java.lang.String )';
    -- punching a hole in the Java VM that allows access to the server's file
    -- systems from inside the Oracle JVM (these also allows executing command
    -- line and external programs)
    -- NOTE: this hole MUST be secured using proper Oracle security (e.g. AUTHID
    -- DEFINER PL/SQL code that is trusted)
    declare
    SCHEMA varchar2(30) := USER;
    begin
    dbms_java.grant_permission(
    SCHEMA,
    'SYS:java.io.FilePermission',
    '<<ALL FILES>>',
    'execute, read, write, delete'
    dbms_java.grant_permission(
    SCHEMA,
    'SYS:java.lang.RuntimePermission',
    'writeFileDescriptor',
    dbms_java.grant_permission(
    SCHEMA,
    'SYS:java.lang.RuntimePermission',
    'readFileDescriptor',
    commit;
    end;
    To use:
    SQL> exec ListFiles('/tmp', '*.log' );
    PL/SQL procedure successfully completed.
    SQL> select * from directory_list;
    DIRECTORY FILENAME
    /tmp X11_newfonts.log
    /tmp ipv6agt.crashlog
    /tmp dtappint.log
    /tmp Core.sd-log
    /tmp core_intg.sd-log
    /tmp da.sd-log
    /tmp dhcpclient.log
    /tmp oracle8.sd-log
    /tmp cc.sd-log
    /tmp oms.log
    /tmp OmniBack.sd-log
    /tmp DPISInstall.sd-log
    12 rows selected.
    SQL>

  • How fast does Apple produce new RAW files for new cameras? I want to buy a D7100 wich is not supported in the present version?

    How fast does Apple produce new RAW files for new cameras? I want to buy a D7100 wich is not supported in the present version?

    Jeannot7 wrote:
    I'm interested in seeing who gets the D7100 support first? Apple or Adobe!! I will go with the one that gets it out first.
    FWIW,
    Adobe keeps a quarterly release schedule for RAW updates. The current Lightroom 4.4 RC expires on 5/31/2013 which typically is an indication that the official release will be close to that date. According to the current list of new supported cameras, the Nikon D7100 is not slated to be supported (but that could change on release).
    http://labs.adobe.com/technologies/lightroom4-4/?tabID=details#tabTop
    The most likely time frame for Adobe support of the D7100 will be sometime in August or September 2013 (although there will probably be a Lightroom 4.5 RC available prior to that for testing purposes).

  • How do i format an external hard drive for use on both windows and mac book air?

    how do i format an external hard drive for use on both windows pc and mac book air?

    Use exFAT on the PC.
    (71374)

  • I currently have a D-Link DI-604 broadband router with windows computers.  How can I add wifi to the network for use with ipad?  Can I use AirPort Express?

    I currently have a D-Link DI-604 broadband router with windows computers.  How can I add wifi to the network for use with ipad?  Can I use AirPort Express?

    Yes. You can directly connect an 802.11n AirPort Express Base Station (AXn) using an Ethernet cable. The AXn would then just need to be configured as a bridge to allow the D-Link to continue to provide both NAT & DHCP services for all network clients connected to either router.
    In this configuration, the AXn would broadcast a wireless network for your wireless network clients to connect to.

  • How do I set up an Apple Account for use in UK from Australia

    How do I set up an Apple Account for use in UK from Australia ?

    You need a UK bank and a UK billing address.

  • How do I export v-card formatted files for use with either Numbers or Excel?

    How do I export v-card formatted files for use with either Numbers or Excel?

    Did you open Automator and just look around?
    Actions are listed in the left pane.
    You drag them into the workflow on the right in the order you need to process the items that you want.
    If this is a on-off requirement, just make a Workflow. If you plan to use it often, make it an Application.
    If you want to select the contacts you want to export, use a get Selected action. You'd then select the contacts in Contacts App before running the workflow.
    I'm not on a Mac to take screenshots, so you'll have to look at Automator's help or google for more info.

Maybe you are looking for

  • Which depreciation key is eligible for mid-month convention in SAP?

    Dear Experts, I am looking for the depreciation key for mid-month convention for USA in SAP standard system. Do you know what key is for this convention? Thanks. BR, Chris Kim

  • Legacy .mac account can no longer be used on AIM

    As of this week, I have lost the ability to use my legacy .mac/MobileMe  account to log into AIM/Adium/Pidigin or like services.  I have had this account since I owned a G3 ibook in 2003.  I have quite a few contacts that I reach exclusively through

  • Can I get my thinkpad t420 serviced in India?(it is in warranty and I bought it in the US)

    Hi, I got my work laptop a T420  along with me to india . I am here on a project for another 4 months. It is under warranty now. Can I get it repaired here in India under warranty , or should I ship it to the US for getting it repaired? It is my work

  • Line width in bachground job

    Hi All, I wrote a report and specified the line size in the report header: REPORT /sappssrm/option_handler NO STANDARD PAGE HEADING LINE-SIZE 185. I want to run this report as background job and get a spool list with results of the report. I expected

  • Finally installed 11g on Linux!

    Tips, if you have a 64bit machine install 64bit software! When installing Oracle Linux select 'customise now' at the packages screen, select system/system files and look for a package called something like 'oracle recommended' this installed all the