Best way to export data for a migration

Hi Oracle Community,
What's the best way to export data from an Oracle 8i database for it to be suitable for import into an Oracle 10g database?
What's the best way to export data if it is to go into different rdbms database?
Thanks, David

Thanks everyone for all your help. You guys are great.
There seems to be many good ways to export your data from Oracle into a flat file format, suitable for import into other RDBS': Oracle, mysql, postgresql, etc.
A few tools where mentioned but using SQL*Plus, which comes with Oracle (And SQL*LDR on the backend, which also comes with Oracle) seem the most straight forward.
I found this script on asktom.oracle.com to work great, slightly modified here,
(to Include linesize max, and pipes rather than commas):
set echo off newpage 0 space 0 pagesize 0 feed off head off trimspool on
set linesize 32767
spool payment.txt
select
PAYMENT_ID||'|'||
USER_ID||'|'||
<more fields her>
from
payment
spool off
exit ;
It works great. Rather than making one of these for each table I wrote an perl script called ora_export. http://crowfly.net/oracle/ora_export. It runs in Unix and only requires SQL*PLUS. It creates these four files:
<tablename>.def # list of table columns and types (SQL*Plus DESC)
<tablename>_dump.sql  # a script to export the data
<tablename>.psv # THE DATA (eq. - name|address|etc)
<tablename>_load.ctl  # SQL*LDR control for ORCL if you need it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • What could be the best way to Export data from 11.5.8 instance to 12.1.2?

    Hi All
    What could be the best way to Export data from 11.5.8 instance to 12.1.2?
    Release: 11.5.8
    OS: Oracle Solaris on SPARC (32-bit) verison 9
    DB: 9.2.0.1
    Thanks in advance

    What kind of data you are looking to move?
    Database export/import is only supported for full database export/import and the application release should be the same on the source/target nodes.
    You can move the setup using iSetup or FNDLOAD.
    Thanks,
    Hussein

  • Best way to export data with r.t. prompts and have dense dim mbrs on rows?

    Hi All-
    What is the best way to export data with Run time prompts out of Essbase?
    One thought was to use Business Rules with run time variables and DATAEXPORT command, but I came across at least one limitation where I cannot have months (part of dense Time Periods dimension) on rows.
    I have only two dense dimensions: Accounts and Time Periods and I need both of these on rows. This would come handy when user enter Start and End month and year for data to be exported e.g. If start period is Feb 2010 and end is Jan 2011, I get data for all months in 2010 and 2011.
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000",14202.24,14341.62,14560,13557.54,11711.92,10261.58,12540.31,15307.83,16232.88,17054.62,18121.76,18236
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000",19241,21372.84,21008.4,18952.75,23442.13,19938.18,22689.61,23729.29,22807.48,23365,23915.3,24253
    "CORP1","0173","FY11","Working","Budget","Local","HSP_InputValue","404000",21364,22970.37,23186,27302,25144.38,27847.91,27632.11,29007.39,24749.42,27183.39,26599,27112.79
    where ideally I would need to get the following:
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Feb",14341.62
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Mar",14560
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Apr",13557.54
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","May",11711.92
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Jun",10261.58
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Jul",12540.31
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Aug",15307.83
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Sep",16232.88
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Oct",17054.62
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Nov",18121.76
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Dec",18236
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Feb",21372.84
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Mar",21008.4,
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Apr",18952.75
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","May",23442.13
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Jun",19938.18
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Jul",22689.61
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Aug",23729.29
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Sep",22807.48
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Oct",23365
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Nov",23915.3
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Dec",24253
    "CORP1","0173","FY11","Working","Budget","Local","HSP_InputValue","404000","Jan",21364
    Thank you in advance for any tips.

    Have a read of the following post :- export data to sql
    It may give you a further option.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • What is the best way to store data for this project?

    hey everyone,
    I have been subscribed to this for a while, not sure if I have ever actually asked anything though.
    I have a project on the go for myself/portfolio
    It is a booking sheet, where by I have a GUI that has a diary system of a day followed by time slots. This also has a date picker that can change the date of the booking sheet
    I want to be able to store mainly strings and ints,
    I need to be able to store, retrieve and on occasion change some data.
    I was looking at using something called JExcelAPI but I cant get that to work at all, I asked for assistance but was refered to here.
    what would be the best way to implement this data storage?
    davyk

    Hey everyone,
    Back again,
    I got this this little snippet of code working but want to ask you guys for a little bit of help on it. if thats ok?
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         String dataSourceName = "mdbTEST";
         String dbURL = "jdbc:odbc:" + dataSourceName;
         Connection con = DriverManager.getConnection(dbURL, "","");
         // try and create a java.sql.Statement so we can run queries
         Statement s = con.createStatement();
         s.execute("create table TEST1234567 ( column_1 char(27), column_2 char(150), column_3 char(150), column_4 char(150), column_5 char(150), column_6 char(150))"); // create a table
         s.execute("insert into TEST1234567 values('"+date+"','"+a+"','"+b+"','"+c+"','"+d+"','"+e+"',)"); // insert some data into the table
         s.execute("select column_7 from TEST1234567"); // select the data from the table
         ResultSet rs = s.getResultSet(); // get any ResultSet that came from our query
         if (rs != null) // if rs == null, then there is no ResultSet to view
                    while ( rs.next() ) // this will step through our data row-by-row
              /* the next line will get the first column in our current row's ResultSet
              as a String ( getString( columnNumber) ) and output it to the screen */
                   System.out.println("Data from column_2: " + rs.getString(1) );
         s.execute("drop table TEST1234567");
         s.close(); // close the Statement to let the database know we're done with it
         con.close(); // close the Connection to let the database know we're done with it
    catch (Exception err)
         System.out.println("ERROR: " + err);
         err.printStackTrace();
    }there are more columns, but i cut this code down.
    my question is:
    I think I want a method with an if statement to see whether the table is created or not, if not create it, but how do I go about this? I have searched the API and google, but my brain is fried.
    Also do I always have to do the try/catch and have the code of Class.forname to Statement s in all methods that want to deal with the table?
    davy

  • Best way to retrieve data for jsp

    Hi,
    I'm fairly new to java and am preparing to create some jsp's for our intranet. The pages need to include data from a db2 database. I know pretty much what I need to do, but I'm trying to decide the best(most efficient) way to retrieve the data to display. I've looked at a number of examples and the more I look, the more confused I get (it would be so easy on the AS400 which is my background so you can see how new this is to me). I see my options as: using an 'include' statement to include another java file that retrieves the data; or use a java bean; or just instantiate an instance of the class and 'call' the methods for that class directly; or lastly, place all the code directly in the jsp to connect to the database and query the table.
    What's the real difference between these options and what's usually the most efficient and preferred way?
    Thanks for any advice and clarification.

    As a general rule, it's a good idea to separate the
    presentation (JSP and HTML) from the business rules
    (database access). I know you didn't do that on the
    AS/400, you had display files and business logic in
    the same program (at least, we certainly do in ours),
    but it's a good policy to follow in the web world.
    That means, don't put your database access code in
    the JSP. Other than that, it depends on the data.
    If you have simple data (e.g. customer's name and
    d address) then a Java bean would suffice. If you
    have complex data (e.g. customer's payment history)
    then a bean still might suffice. You would use an
    "include" if you had some data (static or dynamic)
    that you wanted to appear in several different pages
    in the same form.Thanks, I figured putting the code in the JSP was not the best way, but I wasn't sure about the other options.

  • Best Way to Export PDF for Press w/ Grayscale Images

    Hi, we've been trying to move to a PDF based workflow for sending files to printers if possible so that all color conversion can take place at the final step of creating the PDF. This way, all images can remain RGB in their native color space.
    But I just had to create a PDF that had a mix of images in it. Some were typical RGB, some had already been converted to CMYK (probably US SWOP), and some were true grayscale images.
    When I created the PDF, I set it to convert all colors to the destination profile, which in this case was just US SWOP because the printer didn't have a more specific profile to suggest (most don't). It appears that the images converted properly, but the the grayscale images are using just the K channel (which I suppose is to be expected).
    A while back we printed a fully grayscale piece where all images were converted to a specially created SWOP profile that had modified GCR curves to have most of the data still represented by the black channel, but with some nice CMY thrown in as the tones deepened. The result was amazing. The images had no color cast, but were a nice rich grayscale. The printer was very impressed as well.
    A) So what would be the best workflow to incorporate mixed color images, and still have the grayscale images turn out nice & rich? Do I have to convert all images manually first (trying to avoid having to do this)?
    B) If the printer doesn't offer a profile, and probably doesn't fully understand or utilize color management, are we best to supply the PDF file converted to US Web Coated SWOP because that is what THEY would be most used to getting? This job, however, will be sheet-fed on a matte paper with a satin AQ.
    THANKS! Any tips would be greatly appreciated. Trying to refine our workflow here.

    jethrodesign wrote:
    I would love to learn more about how to choose an InDesign working color space when you don't know the end printer (or if the end printer is clueless); how to deal with Illustrator native files that will be placed in InDesign (RGB? CMYK? Embedded profile?); how to deal with pre-existing elements that may be in the wrong CMYK color space; and possibly the option of taking color management into your own hands if the printers aren't knowledgeable; etc.
    If the printer cannot provide an ICC, maybe they can state what print standard they use (GRACoL, SWOP). If you know that and the paper type, use your best judgement in selecting an ICC. Look to the IDEAlliance website, there are 2 SWOP profiles and one GRACoL profile that are good to use for coated stocks.
    As far as mixing existing CMYK with RGB, opinions may be varied. Let's say you have a job, moving to Coated GRACoL 2006. You place RGB images, US Web Coated SWOP v2 CMYK images, US Web Coated SWOP v2 Illustrator, and custom GCR CMYK rich black images.
    When these are placed into the GRACoL InDesign document, the default behavior is to preserve CMYK numbers. The GRACoL CMYK is assigned to all of the placed CMYK content.
    Now you output a PDF with the settings you described earlier. PDF/X-4, Convert to Destination, Document CMYK (GRACoL). Even though you had US Web and GCR originally, in the PDF it is all Device CMYK (when output from ID CS4). Furthermore any user must assume that all CMYK is GRACoL, because that is the Output Intent. Also, if the GRACoL is a decent representation of the print condition, you can soft proof everything accurately in Acrobat (and InDesign for that matter).
    If this PDF gets handed off to the printer, his duty is to RIP the CMYK and preserve numbers. The only number shifts will occur at the plating stage via plate calibration curves, which is not an ICC conversion.
    If a CMYK - CMYK conversion is necessary, the printer must get you on the phone and let you know that he is re-converting all your CMYK content. For him to do that without informing you is, well, nuts. You've already done the conversion yourself. Every conversion is (technically) damaging,
    Now assume that you output PDF/X-4 with no conversion. In that case, you have RGB and CMYK coexisting in the PDF output. Again, all CMYK should pass through the print RIP with numbers preserved. All RGB would be converted to the Output Intent already present in your PDF. If there is something wrong with that Output Intent, it's the printer's duty to get you on the phone and let you know. I say that because you, as a designer, have already soft proofed everything in the job in the GRACoL color space. If the printer wants to switch horses mid stream, he's got to let you know. (Side note – a printer taking a ownership of a special CMYK - CMYK conversion is highly unlikely. If they had a shop CMYK, they would have given it to you in the first place).
    In summary – it is the print industry standard to preserve incoming CMYK numbers. If a client gives me a job full of US Web Coated SWOP v2, I can't very well treat that the same as incoming RGB and start converting to a different CMYK. CMYK is already cooked. If you re-cook it it stands to get burned. The only time CMYK-CMYK is warranted is (a) when Total Ink Limit is a factor (uncoated) or (b) the color is so far off on the proof that re-cooking only stands to help it.
    What I WILL do is tell the client that they may get a better print result if they either supply RGB with no predetermined CMYK destination (I convert to press CMYK), or they use a different CMYK that more accurately describes the print condition.
    Message was edited by: Printer_Rick

  • Best way to export/compress for DVD???

    Hi there friends,
    Can someone please advise the best method, export and compress to put my project on DVD.
    It is 14.5gb in size and I would like to put it on one dvd.......
    Help please.

    You should google iDVD. There's a huge amount of information on the web and on the Apple web site on how to use their applications.

  • What is the best way to export a movie to avoid losing quality?

    I need to get a movie I made on a DVD somehow, but I seem to loose quality in color and overall sharpness when I take it into iDVD and burn a disc. This movie will be projected very large, so I need the best quality possible. What is the best way to export it for the highest quality?

    There's been a ton of testing reported here on this issue, but I don't think there is a consensus on the "best" method. For one thing, it depends on what you're starting with.
    In my experience with DV video and hi-res photos, it was tough to beat the result I got exporting "large" to the media browser. (Because of my DV footage, HD was not an option.) This made a H.264 file. I could only get a slight improvement by exporting via Quicktime to a H.264 file at double the resolution of the "large" file made by iMovie. Of course this took longer to export and for iDVD to encode. Overall, I'd say it wasn't worth it for the barely visible improvement. That improvement was only detectable in the slides, BTW, not in the DV video.
    Many recommend exporting to AIC, which should be an essentially lossless export out of iMovie. This is what the share to iDVD supposedly does, I got poor results with any flow that used an AIC file exported out of iMovie for use by iDVD. Never figured out why, but my results were always better if I compressed to H.264 on the way out of iMovie.

  • What is the best way to export the data out of BW into a flat file on the S

    Hi All,
    We are BW 7.01 (EHP 1, Service Pack Level 7).
    As part of our BW project scope for our current release, we will be developing certain reports in BW, and for certain reports, the existing legacy reporting system based out of MS Access and the old version of Business Objects Release 2 would be used, with the needed data supplied from the BW system.
    What is the best way to export the data out of BW into a flat file on the Server on regular intervals using a process chain?
    Thanks in advance,
    - Shashi

    Hello Shashi,
    some comments:
    1) An "open hub license" is required for all processes that extract data from BW to a non-SAP system (including APD). Please check with your SAP Account Executive for details.
    2) The limitation of 16 key fields is only valid when using open hub for extracting to a DB table. There's no such limitation when writing files.
    3) Open hub is the recommended solution since it's the easiest to implement, no programming is required, and you don't have to worry much about scaling with higher data volumes (APD and CRM BAPI are quite different in all of these aspects).
    For completeness, here's the most recent documentation which also lists other options:
    http://help.sap.com/saphelp_nw73/helpdata/en/0a/0212b4335542a5ae2ecf9a51fbfc96/frameset.htm
    Regards,
    Marc
    SAP Customer Solution Adoption (CSA)

  • I need advice (for the best way to exporting uncompressed files)

    Using Final Cut Pro to animation(2D) project(30fps), I've experienced a problem exporting uncompressed TGA image sequence files.
    Here's the workflow I use:
    File> Export> QT Conversion> Image Sequence> Options> TGA, uncompressed 8bit, millions of color, 30 fps> OK
    After exporting a files, I supposed to get 1MB each(file size), but I got less than 1MB each(file size). It tells us that those are compressed files. The size of files is random. when I use Avid Nitris there is no problem but it is different with the Final Cut Pro.
    Do you know what is the best way to exporting uncompressed TGA image sequence files out of FCP? (for Best Quality Output)
    Thank you in advance.
    Jasmine

    Patrick,
    I'm sorry it has taken me so long to reply you. I can't post your request, because Avid is not here. So I will post another example, and I have another question. This is the nearset approach to problem. See below images.
    I use QuickTime 7.1 and Final Cut Pro 5.1.1 in the PowerMac G5 2.0 Ghz.
    1. File > Export > QT Converstion > Image Sequence > Options > TGA, 30, Best Depth
    I supposed to get 1MB each, but I got less than 1MB each. It tells us that those are compressed files, and shows up low quality images. (besides, The size of files is random.)
    2. File > Export > QT Converstion > Image Sequence > Options > TIFF, 30, Best Depth (Compression: None)
    Finally, I was a great success See the files size: all 1MB each. I can get the result that I want/___sbsstatic___/migration-images/migration-img-not-avail.png
    OK, now question, I will tell you.
    Why have a different result? (TGA vs TIFF)
    'TIFF options' have a compression option, but 'TGA options' haven't it. So 'TGA image sequence' can't make uncompressed files. For what reason? Do you know any particular reason?
    : TGA Options haven't compression option.
    : TIFF Options have a compression option.
    What's the 'Little Endian'? I don't know this option: Little Endian.
    Could you explain that for me, please? Lay it all out for me, please..
    Thank you for your kindness,
    Jasmine

  • InDesign / Best way to export for Web?

    Hi guys,
    I did an A2 (large size) poster and now i need to have the very same image for Web Mailing on Internet. I guess it will be a 650 pixeles by 800 px.
    Which is the best way to export this content for Internet? 
    1) I notice that if i save the InDesign file to PDF even in the lowest quality the small text keeps crisp and clear while the file is very small size. Unfortunately PDF cannot be used -i think- as embedded images into a mailing list.
    2) If i export the very same InDesign file at the highest posible resolution as JPG -a traditional Internet image standard- the text is blurred and not well defined, besides the file is quite large.
    3) Should i exported to PDF and then open in Photoshop and "Save for the Web" as JPG? Maybe Photoshop has a better exporting engine when regarding to images than InDesign...i don't know.
    How can i find a way to have well defined crisp and clear text, small size and image? I am not sure i could use PDF format here.
    Any help or ideas? that would be great
    Thanks,
    S

    Thanks for the tip!
    I am sorry i forgot to say i have an A2 and an A3 size poster version. I used the A3 poster and the 650 pixeles poster for Internet actually turn out to be quite readable. I used quite large fonts size in the original design, a bit of a Swiss or Constructivism style poster.
    Cheers

  • What is the best way to export for use on internet?

    what is the best way to export for use on internet?

    It depends. Is this for a personal web site or for a site like YouTube, Vimeo or Facebook?
    For YouTube, Vimeo and Facebook, use Publish & Share/Computer/AVCHD using one of the YouTube presets.

  • What is the best way of exporting artboards from Illustrator for use in InDesign?

    Hi,
    I have an artboard in Illustrator CS6 which contains some text with a scribble effect applied to it.  I would like to use this text in an InDesign CS6 document.  I am wondering what the best way of exporting/importing this artboard would be so that I get the best quality.
    Thanks,
    Nick

    Save as an AI file with PDF compatibility enabled and the Document Raster Effects set to "High"; then use File>Place in ID.

  • Is there any way to export data from a calendar 5 instance to 6.3?

    I've run into yet another issue with my migration from calendar 5 to 6.3.
    It turns out that one of our satellite clinics has a very large amount of data stored on our older server. Right now we're having to put the migration on hold because there are several hundred events on the old server that are repeat events and/or events scheduled relatively far in the future. This issue, along with the possibility of double booking events/appointments while both servers are active, is a serious risk that could have detrimental effects on this site.
    There are a few issues that I'm not certain how to handle in this case. First of all, the old server's database is stored in schema 1, and changes in the LDAP directory structure from cal 5 vs. 6.3 made it impossible to migrate the old database and accounts. The new server is schema 2. So migrating the whole directory, especially at this point, seems rather unlikely.
    Is there any way that I can export data for specific accounts and calendars for the people at this site in a version-independent format and import it to the new server? If nothing else we can schedule somebody to come in on one of the weekends and manually copy the data, but if possible I'd like to avoid devoting somebody to that for the several hours that it would take to copy that by hand. Also, this would not be the preferred method due to the fact that human error could result in our clients being misscheduled, which would obviously be bad for business.
    I'd appreciate any ideas anybody may have on this matter.
    Thanks in advance.
    -Damon

    damo.gets wrote:
    Actually I guess I was missing the obvious method of simply exporting to xml and importing on the new calendar. For some reason I thought that the exports were incompatible between versions as well.Hmm... whilst this may have worked on the face-of-it I do wonder whether everything has indeed been moved across and more importantly translated into the correct form e.g. access controls, uids => uids@domain format.
    Is there anybody that can answer definitively whether or not any data will be lost by this procedure?There are simply too many variables involved in your proposed migration to provide any kind of 100% iron-clad guarantees. I would suggest you perform a thorough test migration of the data and then compare the ics/xml export from the ics5/6 systems to see if any of the data has changed. Also test to see whether access controls are still working (can a user who could previously edit another persons calendar on ics5 now do so with ics6).
    Things to look out for are that meeting attendee information is kept, any 'fancy' characters (i.e. 8-bit characters) and formatting information is kept, the number of tasks/meetings is consistent between the two versions and so forth.
    Regards,
    Shane.

  • Best way to export iPhoto library?

    Hey folks,
    I was wondering what is the best way to export all the master/unedited images I have in my iPhoto 11' collection just to have it all in the Photos folder. I would like to start making the move to Lightroom 4 and give it a test drive. It would be nice to keep the organizational structure that I have going on now in iPhoto with my events. Can any one help? If Lightroom doesnt work out for me, I would want to make a referenced iPhoto Library and keep the images in the photos folder. Thanks for the help.

    Have a look at my first post on this thread, which predates that export option in iPhoto, that pretty much deals with the issue with older versions. One of those options is free.
    I'm just kind of irked by the idea that you should treat folders and files on your own computer as untouchable.
    There are a couple of ways to look at this.
    One: they're not at all untouchable. You have described perfectly how you might touch them. What we're saying is that touching them in that way may cause you dataloss, but if you want to do that, knock yourself out . But know the risks you're running. Look at it this way: there's no reason you have to use the doors on your car. You can jump through the sunroof, but don't be surprised if you hurt yourself on the gearstick.
    Two: If you're the kind of person who really needs to visit with your files and folders for some reason, then run a referenced library. It makes for more work, adds zero extra capability and is likely to store up issues for the inexperienced user, but it's quite possible. For more about how, and the pitfalls:
    https://discussions.apple.com/thread/3062728?tstart=0
    Three: The bigger issue here is that you're going to have problems in the future. The files/folders metaphor is going away in computing now. Everything - even text editors - are becoming databases. The files are just dumb storage, the important part is the data - the actual photos. iPhoto is about the data, not the files. The Finder is about files.
    These two user tips explain this is more detail:
    https://discussions.apple.com/docs/DOC-4491
    https://discussions.apple.com/docs/DOC-4921
    Regards
    TD

Maybe you are looking for