Loading clob data/Migrating from Informix

Hi,
I wanted to understand a way to insert clob data into the database. I see that you have ways of retrieving and displaying the clobs/blobs in your demo programs. But, how do we go about inserting clob data into a column? And especially, How to accomplish this when the data is stored in the form of a file?
We're in the process of migrating from Informix to Oracle and Informix has this way of storing the clob contents into .EMB files. Moreover, there is no one-to-one correspondence between each clob column and an .EMB file. Informix just knows how to load them up when you use FILETOCLOB(). In similar lines, do we have a way to load clob data from files to start with. And would be glad to get some intricacies on achieving the migration of data from Informix database.
Please send me pointers to docs and procedures, if available.
Thanks for your time
Chandra M.

You can see this sample:
/******* schema ********
create table city
(id integer ,
cimg blob DEFAULT NULL
#include <iostream>
#include <fstream>
#include <occi.h>
using namespace oracle::occi;
using namespace std;
#define BUFSIZE 8192
Environment *env;
Connection *conn;
int res=0;
unsigned int offsetw=1;
unsigned char readbuf[BUFSIZE];
main()
try {
env = Environment::createEnvironment();
conn = env->createConnection("scott","tiger");
catch(SQLException &x)
cout << "Error :" << x.what() <<"\n";
return 1;
try
ifstream infile ("bangalore.jpg", ios::binary);
if (!infile.is_open()) cout << "could not open bangalore.jpg\n";
else
Statement *stmt = conn->createStatement();
stmt->setSQL( "INSERT INTO city VALUES(1, EMPTY_BLOB())");
stmt->execute();
stmt->setSQL("SELECT cimg from city where id = 1");
stmt->execute();
ResultSet *rs= stmt->getResultSet();
rs->next();
Blob blob(conn);
blob = rs->getBlob(1);
blob.open();
do
infile.read((char *)readbuf,BUFSIZE);
res=infile.gcount();
if (!res) break;
blob.writeChunk(res,readbuf, BUFSIZE, offsetw);
offsetw+=res;
} while (1);
infile.close();
blob.close();
conn->commit();
catch(SQLException &x)
cout << "Error :" << x.what() <<"\n";
try{
env->terminateConnection(conn);
Environment::terminateEnvironment(env);
catch(SQLException &x)
cout << "Error :" << x.what() <<"\n";
} /* end of main */

Similar Messages

  • Migration from Informix 9.4 to Oracle 10g

    We have to perform a migration from Informix 9.4 to Oracle 10g. Many tables, many data and many stored procs.
    We use the Online mode and the imports finish with any errors, but it has not recovered any stored procedures or we can't view the Informix Stored Procedures in the Source Model in the workbench.
    In the importation log appears as no found procedures, but under owner informix are all procedures.
    What we can do?

    In the 10.1.0.4 version of the workbench we create an informix user who will have all the stored procedures.
    If you want these migrated as another user you can right click on the user in the oracle model and rename it for a start.
    If this is a large migration, I would recommend the following.
    1. generate the ddl for the oracle database.
    2. for the users, that will be created, move the objects to the users that you want these in.
    3. Make sure that the privileges that a particular user has is appropriate to use the data and execute the stored procedures if necessary.
    This tool is not just a one shot deal.. It will bring the informix db over to Oracle, but you need to verify the structure and the logic of the stored procedures as being correct.
    Barry

  • Data Migration from MS   Excel Sheet to Oracle 9i Database

    Can anyone please help me to perform a data migration from MS excel sheet to Oracle 9i Database. I have an excel sheet from which i need to move data to the database. One of the columns in the sheet posseses multiple new line characters, and which causes a problem while migrating data with the help of SQL Loader. I would like to know whether any utility is available to migrate data directly from MS Excel sheet to the database, or it would he really helpfull for me , if anyone provide me with an alternate solution.

    I think Christian's suggestion will work for easily and quickly.
    1) create table link of Oracle target table in MS Office's ACCESS thru ODBC;
    2) from Access screen, you may easily dump the excel data into the linked table.
    This is very easy and feasible ways. Don't bother to find other ways. The other ways will need you to clear the unwanted carriage return signs first.

  • Data Migration from 11i to R12 Global - Open POs,lines, receipts & on hand upload, Is it possible to do the onhand qty upload with over riding of all receipts which uploaded against Open PO lines?

    Hi Friends,
    We are in a phase of data migration from 11i to R12 
    I was discussed with client & they wants extraction of all open POs which was generated after 01 Jan 2014 to till date in 11i.
    Condition for open POs is PO qty-received qty=>0
    critical Example for open PO is :PO no: 10 has 4 lines, 3lines full qty has been received & for 1 line partial qty(say 50 out of 100) received.
    in this case he wants in R12 uploading as PO no:10 should entered as open PO with all 4lines & 3 lines complete receipt should be done, for 4th line partial qty i.e 50 should be received.
    the question is if we upload on hand qty first, then open POs & receipts, it will increase the onhand qty in new system(mismatch of on hand qty's 11i to R12) 
    Is it possible to do the onhand qty upload with over riding of all receipts which uploaded against Open PO lines.
    Or Please advice best solution.
    Thanks & Regards
    Giri

    adetoye50 wrote:
    Dear Contacts Journal Support Team,
    FYI, this is a user to user support forum.  You are NOT addressing Apple here.
    Honestly, I doubt anyone is really going to take the time to read the novel you have written.

  • "iTunes was unable to load class data information from sync services"

    I own iTunes 10.5 beta 3 64-bit for my 64-bit windows 7 pc, and it gives me this message whenever I try to sync ANY of my devices: "iTunes was unable to load class data information from Sync Services". I own an old iPod video and an iPhone 4 with iOS 5 beta 3. I've tried uninstalling all Apple products, searching through my hard drive and deleting everything Apple, cleaning the registry, EVERYTHING. I've reinstalled at least 4 times now. The problem refuses to become fixed. I've searched every article online possible, and none of the solutions have worked. Is there anything I can do to get my stuff back on to my devices???

    In the course of your troubleshooting to date, have you worked through the following document?
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert

  • Data  Migration from 4.7 to ECC 6.0

    Dear Friends,
    We are doing upgration from sap4.7 to ECC6.0.
    We have activated new gl. We have configured all ecc6.0 functionality.
    But we stuck on data migration from classic gl to new gl.
    We want to activate the migration cockpit but system is asking license key.
    My question is, which license key it is?
    From where we will get this?
    Kindly don't send me any links and any documents related to ecc6 functionality.
    Please guide us on this.
    Thanks & Regards,
    Reva Naik

    Hi,
    following link may give you some hints:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/2e/9e4638a28b2763e10000009b38f8cf/frameset.htm
    Regards
    Bernd

  • I have a problem with Imovie. Just brought an macbook 15 retina , iLife install and Imovie was working. I than did a data migration from my old macbook pro and now it crashes on start up. I tried to re-install from app store but no option to re-install

    I have a problem with Imovie. Just brought an macbook 15 retina , iLife install and Imovie was working. I than did a data migration from my old macbook pro and now it crashes on start up. I tried to re-install from app store but no option to re-install, just installed and it greyed out.

    Well, my two-month-old MBP has no qualms about booting from a no-name external USB HD I put together...
    Given that is is a common point of failure, I would imagine a large Apple Store should keep a stock of HD's on hand.
    Now since you're a bit desperate and the genie pops up til Saturday and you seem to be the enterprising kind, let's try an experiment: if you have room enough in the external HD and assuming it isn't a Time Machine volume, why don't you plug it in, stick the Install CD and see if the installer lets you select the external drive as the install target. If you can install Leopard on it, on top of the backup without reformatting, and the Mac can boot from the drive afterwards, at least you would have some functionality restored and would be able to pull your stuff from the internal HD. Apple says booting from USB drives is not supported but that does not equate to not possible; some brands do work. Risks? Always. You can always lose your backup. Like I said, a challenge for an enterprising gal....
    Next time around, consider having a bootable external clone at hand for rainy days. I keep three myself...
    P.S. Since I'll be in the Dallas-FW area in late June, I can volunteer with the confetti....

  • AR & AP Data migration from legacy

    Hi,
    1.What are the precaution to be taken for Data migration from legacy system?
    2.We intend to use a conversion ac ( Dr conv ac cr Vendor ) Is it Correct way of doing it ?
    3.How do i ensure that all my invoices uploaded correctlt ?
    4.What is the best Standard program to get it doen ?.
    5.Is LSMW is best to do it or shall I have to go for custom development?
    Any piece of yr advice is appreciated.
    Thanks, Chitra

    Hi Chitra,
    Following link are helpful in understanding LSMW:
    Note 105244 - LSMW 1.0: known problems, tips and tricks
    Re: LSMW and error handling
    /community [original link is broken]
    For Data Migration:
    Note 400257 - Data Migration and Upload Report
    Note 739860 - Data migration from a legacy system to SAP
    Hope this helps.
    Please assign points as way to say thanks

  • Date Migration from IBM DB2/400 V4R3M0 to Oracle 11.2G

    Dear ALL<
    We have a requirement for Date Migration from IBM DB2/400 V4R3M0 to Oracle 11.2g. Can you guys please share your experiences with similar activities done in the past ? We do not have environment at present to try out with Oracle Migration workbench.
    http://www.oracle.com/technetwork/topics/index-095746.html
    You experiece sharing will really help ...!!
    Regards,
    VKMP
    Edited by: 909016 on Jan 31, 2013 5:52 AM

    Hi VKMP,
    As well as reading the documentation thoroughly the following note available in My Oracle Support may be useful -
    Problem To Migrate Table With Table Type P From DB/AS400 With OMWB (Doc ID 466271.1)
    as OMWB does not support migrating physical files.
    Regards,
    Mike

  • Data Migration from R3 to new ECC System

    Hello,
    We are doing a fresh implementation for SAP MDM. Currently we have 3 SAP R/3 systems and 1 non-R3 system (BPCS system). One of the project goals is to do data migration from all these 4 systems into a new SAP ECC system and to MDM for Vendor Master, Customer Master and Material Master. My manager says that we need Business Objects tool to Migrate these data. But, my question is that is it not possible to achive this through XI/PI itself ? Can anyone let me know the entire process in XI/PI as to how do I receive the Idocs from R/3, convert into XML and then send it to the new ECC system in Idoc format ?
    Thks & Rgds,
    Hema

    Hi Gandhi,
    You have SAP MDM, BPC and R/3 systems in your landscape, when you are migrating data to new ECC system, what is the role of mdm, did you moving the same data to MDM to avoid duplicate/redundant data??is there any data migration from R/3 to MDM(any integration required)or MDM to R/3,
    You have to develop different interfaces to transfer data from MDM to ECC, BPC to ECC.definelty you required one middleware, the option definitely SAP PI. it offers very easy of integration between MDM and R/3 system, you can use MDM-PI adapter to connect to directly MDM syndicator file port from there you can pull the XML file and convert it in to IDoc format use Receiver IDoc adapter in PI, the same way we can integrate BPC system with R/3.
    Search in sdn, there are some scenarios integration of R/3 and MDM using PI, refer those links, if still you have any doubts let me know,
    Regards,
    Raj

  • Data Migration from 4.6C to ECC 6.0

    Hi all,
            Can you suggest me solution for data migration from 4.6C to ECC6.O which technique to be used!!
    if you have the documents regarding the above post it which will be useful!!!
    Thanks,
    Yogeshwaran K S

    Hi Yogesh
    OS migrations are more or less painless beside the fact, that most "Unix" operating systems are using a different endianess (aside from Solaris on X86_64). For RFC and other SAP proprietary communication this is done in the kernel but if you use own software to read BINARY data (not talking about textfiles) you need to take care of that in your software.
    Hope ths helps
    Please reward points
    Sunil

  • Data migration from 4.7 system to ECC 6.0

    Hi All,
    I am a Solution Architect. Currently working on a typical pursuit requirement. the requirement is as below:
    One of our customer is currently on SAP 4.7 system.  Their current system is shared by 2 companies & the companies got demerged now. Hence they are palnning for fresh ECC 6.0 implementation & migrating Master data & transactional data related to this customer from the current 4.7 system to ECC 6.0.
    I am seeing possible way for data migration is through ALE or LSMW. But I am not confident about the execution plan & process.
    I would wish to know from you people is:
    1. The different methods to do data migration from 4.7 to ECC 6.0 with pros & cons
    2. How to plan for data migration
    3. Risks & mitigations during data migration
    4. different kind of skill set & duration required to accomplish this requirement
    Currently we are planning for 6 months for the ECC 6.0 core modules implementation.
    If you have undergone this kind of project then request you to share your experience. Any information on this regard is appreciated.
    Thanks & Regards,
    Suresh

    Hi
    Go through eh below link for Best Practices
    http://help.sap.com/bp_hcmv1600/HCM_US/HTML/master_data.htm
    [Risk Factors|http://www.informatica.com/INFA_Resources/article_sap_netweaver_mag_data_migration.pdf]
    [Different Methods|http://www.sap-img.com/general/what-are-the-methods-to-migrate-data-from-a-legacy-system-to-sap.htm]
    [Best Practices|http://partners.netapp.com/go/techontap/NGS_migration.pdf]
    Regards
    Pavan

  • MIgration from Informix 7.2 to Oracle9i under Solaris

    Hi all
    I want to know whch version of Oracle migration kit shoul di use for migrating from Informix 7.2 to Oracle 9i. Also does the migration kit support CISAM files in Informix to be migrated to oracle. If not then how can the functionallity of the CISAM be brought into oracle. What are the options for migrating ACE reports from informix to Oracle.
    regards
    G.Ramji

    The Oracle Migration Workbench works with informix 7.3, I am not sure if it will work with informix 7.2.
    http://www.oracle.com/technology/tech/migration/mti/index.html
    Has a list of 3rd party technologies and products that help in the migration of databases and their applications.
    Regards,
    Turloch
    Oracle Migration Workbench Team

  • Migrating from Informix 9.4X to Oracle

    Hello Everybody,
    I am trying to migrate an Informix database to Oracle using Oracle Workbench. I am trying to capture the source DB using the Wizard and when feeding the hostname, port, informix password and server name i am getting the following error "No suitable Driver"
    I have also an ODBC configured same way, and it does work, but I can not get this wizard working.
    If anybody know what can I do, please tell me. Any help will be appreciated.
    Thanks in advance
    Alice

    Before Migrating From Informix Dynamic Server
    To configure an Informix Dynamic Server database for migration:
    1.Verify that the Informix Dynamic Server JDBC Driver JAR file, ifxjdbc.jar, is located in the following directory:
    On Windows:
    OMWB_install_dir\Omwb\drivers
    On UNIX:
    OMWB_install_dir/Omwb/drivers
    2.If necessary, install the Informix Dynamic Server JDBC Driver, version 1.4:
    1.Insert the Informix Dynamic Server CD into your CD drive.
    2.Follow the instructions in the install.txt file located in the JDCC directory to install the Informix Dynamic Server JDBC driver.
    3.Copy the ifxjdbc.jar file of the driver to the following directory:
    OMWB_install_dir\Omwb\drivers
    On Windows:
    OMWB_install_dir\Omwb\drivers
    On UNIX:
    OMWB_install_dir/Omwb/drivers
    3.Ensure that you can connect to the Informix Dynamic Server database from the system where you have installed Migration Workbench.

  • Can Migration work bench be used to migrate from Informix to

    Hi,
    Can Migration Workbench be used to migrate from Informix to
    Oracle?
    Thanks,
    Ramana
    null

    Peddu,
    Informix support is planned, but will not be available in the
    near future.
    Less user-friendly script based kits for informix and other
    databases can be downloaded from the OTN Migration Technology
    section.
    Hope that helps,
    Turloch
    Oracle Migration Workbench Team
    ramana peddu (guest) wrote:
    : Hi,
    : Can Migration Workbench be used to migrate from Informix to
    : Oracle?
    : Thanks,
    : Ramana
    Oracle Technology Network
    http://technet.oracle.com
    null

Maybe you are looking for

  • Reading XLS file from url

    I'm trying to read a XLS file from a URL. What exactly the code is trying to do is this: User clicks on a button in a webpage for select a xls file . The file selected may be read and a method write a txt file on another server. How can i do this? Ma

  • [JS] Basic question about event listeners and event handlers

    I am very new to the whole topic of event listeners and event handlers.  I'd run the test for the following problem myself, but I don't know where to start, and I just want to know if it's impossible -- that is, if I'm misunderstanding what event lis

  • Unable to set the column values in Standard alv settings

    Hi, In the ALV displays settings  screen, I can set any number as "number of columns displayed", press "apply"  it remains 8 columns that are visible. Prevousely its working fine, last two days back i added  two fields in that AlV table. after that i

  • Windows 7 on HP dv2715nr

    Hello all, I have a HP dv2715nr and I'm really frustrated with windows Vista, specially concerning graphics. It's a little bit more than one year old, and I didnt change the OS coz I read on the internet plenty of problems with this downgrade.But now

  • Toshiba Canvio Restore Problem

    Hello, I am having trouble with the restore option on my Toshiba Canvio external hard drive. I have pictures and other media backed up on the drive which I can no longer access. The files are on the drive, but somehow I am unable to access or recover