Copy data from mysql to oracle database help?

Im an sql newb and trying to understand how I can automatically copy data from one dtabase to another systems database on the same server.
We have two differnt applications, but both share customer information, but one is on a win server, while the other is on oracle.
Each time a customer contacts us via online chat (win server, mysql), we want to copy their entire chat transcript into our CRM's (oracle) customer account. So the folks that use the CRM can see the past chat histories. I hope this makes sense.
Where can i look to get started on this?
Thanks

You could look at Heterogeneous Services (see the forum here Heterogeneous Connectivity but if you want to push data from mysql to oracle you might be better looking at it from the mssql side. I don't know what they offer.
It might be simpler to do it at the client end. ie cut and paste from the online chat application into a new utility which inserts into the oracle database.
Incidentally, this forum is specifically for the SQLDeveloper tool. You might get more general help in the "database - general" or "sql and pl/sql" forums

Similar Messages

  • How can i convert data from DBF to oracle database 10g?

    Sir,
    How can i convert data from DBF to oracle database 10g?

    I assume you at least know how to dump the contents of foxpro dbf file into CSV format.
    Regarding SQL*Loader, hope this demo makes it a bit clear to you...
    http://www.princeton.edu/~storacle/sqlloader_demo.shtml
    I agree that it is an old web page (references Oracle 8.0.5) but basics remain the same.
    If it is still unclear to you after referring above link, then get an Oracle consultant.

  • Import/insert data from XML into Oracle database tables?

    Hi. (I am using JDeveloper 10.1.3.3.0 and Oracle 10g)
    I have been able to export the data from one of my database tables by using a View Object and .writeXML.
    Now, I want to take an xml file that is formatted in the same way as what is spit out by the writeXML and put that info in my database table. I followed online examples and have tried using .readXML like so:
    Element element = XMLDoc.getDocumentElement();
    vo.readXML(element, -1);
    I know it is sort of working, because at first I got an error message that one of the required attributes was missing. So, I added that attribute to my xml file and ran my code. No errors. But, I checked my database, and the new records were not added.
    Is there something I have done wrong? Or is there perhaps something I left out? I also noticed there were several versions of readXML like readFromXML. Which one should I use and how?
    Thanks.

    KUBA, I changed my code to match your example:
    DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    File xmlFile = new File("C:/myfilehere.xml");
    Document doc = db.parse(xmlFile);
    Element element = doc.getDocumentElement();
    vo.readXML(element, -1);
    vo.getDBTransaction().commit();
    I still get no errors, but my database table has no new records.
    Any ideas why?
    Thanks.

  • Problem copying data from postgres to Oracle via dg4odbc

    Hi All,
    I am trying to migrate data from a postgres moodle database to an oracle one.  I have set up dg4odbc and it is mainly working, except when I try to insert select for some tables only.
    Eg.
    SQL*Plus: Release 11.2.0.3.0 Production on Wed Feb 12 13:28:37 2014
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> insert into M_ASSIGNFEEDBACK_COMMENTS(
    assignment
    ,commenttext
    ,commentformat
    ,id
    ,grade
    select
    "assignment"
    ,"commenttext"
    ,"commentformat"
    ,"id"
    ,"grade"
    from "mdl_assignfeedback_comments"@"to_moodle";
      2    3    4    5    6    7    8    9  10  11  12  13  14  insert into M_ASSIGNFEEDBACK_COMMENTS(
    ERROR at line 1:
    ORA-28502: internal communication error on heterogeneous database link
    ORA-02063: preceding line from TO_MOODLE
    But the select part of the statement works.
    SQL> select "assignment" ,"commenttext" ,"commentformat" ,"id" ,"grade" from "mdl_assignfeedback_comments"@"to_moodle";
    2 3 4 5 6 7 assignment
    commenttext
    commentformat id grade
    4
    Excellent work
    1 1 1 5 1 2 2 10
    Excellent work
    1 3 3 11 1 4 4
    SQL>
    And it works if I leave out the commenttext field which is of postgres type text
    1 insert into M_ASSIGNFEEDBACK_COMMENTS(
    2 assignment
    3 ,commentformat
    4 ,id
    5 ,grade
    6 )
    7 select
    8 "assignment"
    9 ,"commentformat"
    10 ,"id"
    11 ,"grade"
    12* from "mdl_assignfeedback_comments"@"to_moodle"
    SQL> /
    4 rows created.
    Other text fields in other tables seem to work fine however.
    My database and the postgres database are Unicode character set
    NLS_CHARACTERSET AL32UTF8
    NLS_NCHAR_CHARACTERSET AL16UTF16
    My initmdl_dev23.ora config
    HS_FDS_CONNECT_INFO = MDL_DEV23
    HS_FDS_TRACE_LEVEL = 4
    HS_FDS_TRACE_FILE_NAME=/tmp/ora_hs_trace.log
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
    HS_LANGUAGE=american_america.we8mswin1252 # this had to be set due to some bug with the postgres connection?
    HS_NLS_NCHAR=UCS2
    HS_FDS_REMOTE_DB_CHARSET=AL32UTF8
    HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
    # ODBC specific environment variables #
    set ODBCINI=/etc/odbc.ini
    Table Desc Oracle
    SQL> desc M_ASSIGNFEEDBACK_COMMENTS
    Name                      Null?    Type
    ID                      NOT NULL NUMBER(10)
    ASSIGNMENT                  NOT NULL NUMBER(10)
    GRADE                      NOT NULL NUMBER(10)
    COMMENTTEXT                        CLOB
    COMMENTFORMAT                  NOT NULL NUMBER(4)
    Table Desc Postgres
    mdl_dev23=> \d mdl_assignfeedback_comments
                                Table "public.mdl_assignfeedback_comments"
        Column    |  Type  |                                Modifiers                    
    ---------------+----------+----------------------------------------------------------------
    id            | bigint  | not null default nextval('mdl_assignfeedback_comments_id_seq'::
    regclass)
    assignment    | bigint  | not null default 0
    grade        | bigint  | not null default 0
    commenttext  | text    |
    commentformat | smallint | not null default 0

    Here is the info for the table that works:-
    Oracle Table
    SQL> desc m_assign
    Name                       Null?    Type
    ID                       NOT NULL NUMBER(10)
    COURSE                    NOT NULL NUMBER(10)
    NAME                       NOT NULL VARCHAR2(255 CHAR)
    INTRO                       NOT NULL CLOB
    INTROFORMAT                   NOT NULL NUMBER(4)
    ALWAYSSHOWDESCRIPTION               NOT NULL NUMBER(2)
    NOSUBMISSIONS                   NOT NULL NUMBER(2)
    SUBMISSIONDRAFTS               NOT NULL NUMBER(2)
    SENDNOTIFICATIONS               NOT NULL NUMBER(2)
    SENDLATENOTIFICATIONS               NOT NULL NUMBER(2)
    DUEDATE                   NOT NULL NUMBER(10)
    ALLOWSUBMISSIONSFROMDATE           NOT NULL NUMBER(10)
    GRADE                       NOT NULL NUMBER(10)
    TIMEMODIFIED                   NOT NULL NUMBER(10)
    REQUIRESUBMISSIONSTATEMENT           NOT NULL NUMBER(2)
    COMPLETIONSUBMIT               NOT NULL NUMBER(2)
    CUTOFFDATE                   NOT NULL NUMBER(10)
    TEAMSUBMISSION                NOT NULL NUMBER(2)
    REQUIREALLTEAMMEMBERSSUBMIT           NOT NULL NUMBER(2)
    TEAMSUBMISSIONGROUPINGID           NOT NULL NUMBER(10)
    BLINDMARKING                   NOT NULL NUMBER(2)
    REVEALIDENTITIES               NOT NULL NUMBER(2)
    ATTEMPTREOPENMETHOD               NOT NULL VARCHAR2(10 CHAR)
    MAXATTEMPTS                   NOT NULL NUMBER(6)
    MARKINGWORKFLOW               NOT NULL NUMBER(2)
    MARKINGALLOCATION               NOT NULL NUMBER(2)
    Postgres table
    mdl_dev23=> \d mdl_assign
                                               Table "public.mdl_assign"
               Column            |          Type          |                        Modifiers                       
    -----------------------------+------------------------+---------------------------------------------------------
    id                          | bigint                 | not null default nextval('mdl_assign_id_seq'::regclass)
    course                      | bigint                 | not null default 0
    name                        | character varying(255) | not null default ''::character varying
    intro                       | text                   | not null
    introformat                 | smallint               | not null default 0
    alwaysshowdescription       | smallint               | not null default 0
    nosubmissions               | smallint               | not null default 0
    submissiondrafts            | smallint               | not null default 0
    sendnotifications           | smallint               | not null default 0
    sendlatenotifications       | smallint               | not null default 0
    duedate                     | bigint                 | not null default 0
    allowsubmissionsfromdate    | bigint                 | not null default 0
    grade                       | bigint                 | not null default 0
    timemodified                | bigint                 | not null default 0
    requiresubmissionstatement  | smallint               | not null default 0
    completionsubmit            | smallint               | not null default 0
    cutoffdate                  | bigint                 | not null default 0
    teamsubmission              | smallint               | not null default 0
    requireallteammemberssubmit | smallint               | not null default 0
    teamsubmissiongroupingid    | bigint                 | not null default 0
    blindmarking                | smallint               | not null default 0
    revealidentities            | smallint               | not null default 0
    attemptreopenmethod         | character varying(10)  | not null default 'none'::character varying
    maxattempts                 | integer                | not null default (-1)
    markingworkflow             | smallint               | not null default 0
    markingallocation           | smallint               | not null default 0
    Indexes:
        "mdl_assi_id_pk" PRIMARY KEY, btree (id)
        "mdl_assi_cou_ix" btree (course)
        "mdl_assi_tea_ix" btree (teamsubmissiongroupingid)
    Insert works fine
    SQL> insert into M_ASSIGN(
    markingworkflow
    ,blindmarking
    ,completionsubmit
    ,sendlatenotifications
    ,sendnotifications
    ,name
    ,teamsubmissiongroupingid
    ,timemodified
    ,duedate
    ,introformat
    ,attemptreopenmethod
    ,revealidentities
    ,cutoffdate
    ,submissiondrafts
    ,course
    ,alwaysshowdescription
    ,intro
    ,maxattempts
    ,requireallteammemberssubmit
    ,teamsubmission
    ,requiresubmissionstatement
    ,allowsubmissionsfromdate
    ,nosubmissions
    ,id
    ,markingallocation
    ,grade
    select
    "markingworkflow"
    ,"blindmarking"
    ,"completionsubmit"
    ,"sendlatenotifications"
    ,"sendnotifications"
    ,nvl("name",' ')
    ,"teamsubmissiongroupingid"
    ,"timemodified"
    ,"duedate"
    ,"introformat"
      2    3    4    5    6    7    8    9   10   11   12   13   14   15   16   17   18   19   20   21   22   23   24   25   26   27   28   29   30   31   32   33   34   35   36   37   38   39   40  ,nvl("attemptreopenmethod",' ')
    ,"revealidentities"
    ,"cutoffdate"
    ,"submissiondrafts"
    ,"course"
    ,"alwaysshowdescription"
    ,"intro"
    ,"maxattempts"
    ,"requireallteammemberssubmit"
    ,"teamsubmission"
    ,"requiresubmissionstatement"
    ,"allowsubmissionsfromdate"
    ,"nosubmissions"
    ,"id"
    ,"markingallocation"
    ,"grade"
    from "mdl_assign"@"to_moodle";
    41   42   43   44   45   46   47   48   49   50   51   52   53   54   55   56 
    20 rows created.
    Link to trace file for "working" insert
    https://www.dropbox.com/s/blplgfuzsjds9ht/mdl_dev23_agt_12834.trc

  • Error in CLOB datatype for transfering data from Excel to Oracle database

    Am using excel sheet as source and Oracle as target Database.
    For all tables the operations works smoothly except for tables containing CLOB datatype.
    Initially i have used SQL Developer to transfer some data into excell sheets, now i want to transfer those file's data into another Oracle Database.
    What other options do i have?
    Is excel not the right tool to transfer CLOB datatypes?

    well,
    I couldn't suggest an excel to do it...
    You can go from Oracle to Oracle with the PL/SQL IKM. It works fine.
    Does it help you?

  • Data from MySQL to Oracle

    Hi All,
    Can anyone please help, how can i establish database link from oracle to mysql via pl/sql developer or sth else?
    thank you
    Ugur

    yes, It is possible if your Oracle database running in Windows.
    You can do this by creating the ODBC connection.
    Install ODBC driver 3.51 on Oracle box
    Create userid on MySQL
    Setup ODBC connection on Oracle box and test until OK
    Check Listener, tnsnames and init.ora are setup as per documentation
    Restart listener
    Test tnsping until OK
    Create public MySQL_DBLINK DBLink on Oracle (UserId and Password are case sensitive!!!)
    Test "select count(*) from anytable@MySQL_DBLINK;"
    Check this link to create ODBC connection,
    http://www.dba-oracle.com/t_database_link_sql_server_oracle.htm
    http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm
    Thanks

  • How to extract data from essbase to oracle database incrementally?

    I have to extract data from essbase to an oracle database table incrementally using informatica , can anyone tell me how to do it or give me some tips. I have been thinking about it for a whole day but have no ideas.
    I cannot do the delete & insert method because this oracle database table is a interface table that has to deliver the data to Oracle ESB tables.
    Thanks in advance....

    Hi,
    Have you read through :-
    Oracle Data Integrator Adapter for Hyperion Essbase Getting Started - http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/odiess_getting_started.pdf
    Oracle Data Integrator Adapter for Hyperion Essbase User's Guide - http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/odiess_users.pdf
    If you have read them and are still have a problem at what stage are you having the issues?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Transfer of data from excel to Oracle database? Please reply as soon as possible

    Hello:
    How can I transfer data from MS Excel into Oracle8/8i database.
    Please give me step by step instructions or necessary code required
    Thank you
    Dinakar

    Save the excel data in .CSV file format, then use SqlLoader.
    Your SqlLoader control file might look as follows
    LOAD DATA
    INFILE c:\test_data.csv
    APPEND
    INTO TABLE emp
    FIELDS TERMINATED BY ","
    (fld1, fld2, fld3, ...)

  • Need to fatch the data from sqlserver to Oracle DATABASE ;not migration

    Hello,
    What is the easiest method to insert/refresh data into Oracle Tables from SQLSERVER 2005 table.Do I need ODBC connection and how it works in the PL/SQL to create the connection and fetch the data from sqlserver.
    Thanks,
    Sarabmann

    I need to fetch from ORACLE back-end ,for example I want to install the mechanism at the back-end server where if I write stored procedure and call this link which enable me to fetch the data from sqlserver.
    Environment:- Linux as OS
    Oracle 10G as a Database

  • Updating data from grid to Oracle database.

    Hi
    I am having some trouble updating data in a grid back to the Database. I have provided an example below. I am using the ODP.NET protocol.
    The query in the proc is a simple SELECT * FROM xxxx. There are no joins (outer or inner) at all. The table xxxx has a primary key. The proc is used to fill a grid. It does this correctly by returning data to a DataTable which is then used as the data source for a grid. Then, when I make a change in the grid and press the update button, the application trys to use the da.UpdateCommand = cmdBuilder.GetUpdateCommand() statement and gets the error
    "Dynamic SQL generation failed. No key information found".
    Note I have tried to get around this problem by adding a key to the DataTable ... no luck.
    I also tried da.MissingSchemaAction = MissingSchemaAction.AddWithKey ... no luck.
    I have also tried da.FillSchema(dt, SchemaType.Mapped); ... no luck.
    What am I doing wrong? ... is there a better way?
    public partial class Form1 : Form
    private OracleConnection a_Conn = null;
    private DataTable dt = null;
    private OracleDataAdapter da = null;
    private OracleCommand cmd = null;
    public Form1()
    InitializeComponent();
    private void Form1_Load(object sender, EventArgs e)
    a_Conn = new OracleConnection();
    a_Conn.ConnectionString = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    a_Conn.Open();
    dt = new DataTable();
    //SPS_TEST is a stored proc that takes no param and simply returns a dataset
    cmd = new OracleCommand("SPS_TEST", a_Conn);
    cmd.CommandType = CommandType.StoredProcedure;
    //setup ref cursor (needed for oracle)
    cmd.Parameters.Add("Cursor", OracleDbType.RefCursor, ParameterDirection.Output);
    da = new OracleDataAdapter(cmd);
    //da.MissingSchemaAction = MissingSchemaAction.AddWithKey;
    DataColumn[] keys = new DataColumn[1];
    keys[0] = dt.Columns["Name of Column with primary key in Table I have queried"];
    dt.PrimaryKey = keys;
    da.Fill(dt);
    //grid is successfully filled at this point
    fpSpread1.DataSource = dt;
    private void btnUpdate_Click(object sender, EventArgs e)
    OracleCommandBuilder cmdBuilder = new OracleCommandBuilder(da);
    da.UpdateCommand = cmdBuilder.GetUpdateCommand();
    dt.AcceptChanges();
    da.Update(dt);
    Rob
    Edited by: user8803094 on 10-Mar-2010 19:38
    Edited by: user8803094 on 10-Mar-2010 20:56

    To the best of my knowledge, and I may be wrong here, a ref cursor does not contain any base table information. It simply contains metadata about what's in the cursor itself. The commandbuilder doesnt know what table the data came from , if it even came from an actual db table at all. As such, it's not possible for the commandbuilder to know how to generate an update statement.
    You CAN update a dataset you created from a refcursor, but you have to supply your own UpdateCommand in the case, rather than using a commandbuilder.
    If your ref cursor is simply a select from a table, it would probably be pretty easy to (at design time) get and note the updatecommand and parameters from a select * from the table, and then use that for the updatecommand of the dataset filled from a refcursor, as the metadata should match up. Probably not something you'd want to do on the fly though.
    Hope it helps,
    Corrections/comments welcome.
    Greg

  • How to store data from xml in oracle database

    Hello All
    Could anyone tell me ways of storing XML in Oracle and whats the best one in terms of performance issues.
    any URL to this q/s would be great.
    thanks
    kedar

    Ben,
    The following link as some information regarding DOM API and XSQL.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:2923508047773696280::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:17309127931717
    For XML DB, you may want to create an XMLSchema and build a table off the schema definition. Then use WEBDAV to load the xml into a folder (ie object table) Once the xml is in the database you could build a view for a relational look at the data.
    Example from XMLDB Techical White Paper doc.
    create or replace view PURCHASEORDER_MASTER_VIEW
    (reference, requestor, userid, costcenter,...)
    as select extractValue(Value(p),'/PurchaseOrder/Reference'),
    extractValue(value(p),'/PurchaseOrder/Requestor'),
    extractValue(value(p),'/PurchaseOrder/User'),
    extractValue(value(p),'/PurchaseOrder/CostCenter'),...
    from PURCHASEORDER p

  • Problem in migrating huge data from mysql to oracle using OMWB.

    I'm using OMWB to migrate my mysql db to oracle db.Mysql db contains some 43 tables and all of them were copied to oracle db except a table "as_db" which contains some 503 mb of data.The table contains 3 columns and two of them were integer type and one is of medium blob.While migrating i'm not getting any error.After migrating i opened the table in the oracle.The table alone created but there were no datas.But all other table contains data.
    Then i generated the ctl file usiing SQL*loader for that particular table alone and tried to execute but it also fails by giving the Column size exceeds for blob.
    How i handle this issue?
    Thanks in Advance,
    Jai.M

    Looks like you may have to save you blobs out as files and load them individually thru the sqlldr process. I know this has normally been done thru raw to blob
    What way is your blob data being saved out in the extract data file.
    Barry

  • How to handle DATE type problems in migrating from mysql to oracle.?

    Hi,
    I'm migrating only the data from mysql to oracle with the help of sql loader.But with this type i cannot able to insert the date values from mysql to oracle.In mysql i have defined date as "DATETIME" type and in oracle it is in TimeStamp.Whenever i'm inserting the values thru CTL file ,i'm getting an error invalid date format entered.How to solve this problem?
    Thanks in Advance
    JAI

    you need to supply a mask to the timestamp entry. see http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_field_list.htm#i1006714 for details on datatypes within the ctl file
    B

  • How to delete data before insert in oracle database

    Hi friends,
    I have one scenario.I want to send data from sap to Oracle database.Befor i am inserting data in database table,i want to clean/delete all the records in the table .This interface will run twice in a day.Can any body help me.
    SAP-PI-JDBC
    Thanks
    Ravi

    Hi Puneet,
    As per u r suggestions,i am using stored procedure.But i am getting following error.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. MASTERXXXXXX' (structure 'Statement'): java.sql.SQLException: ERROR: Invalid XML document format for stored procedure: 'type="<SQL-type>"' attribute is missing for element 'NAME' (Setting a SQL-type (e.g. INTEGER, CHAR, DATE etc.) is mandatory !)'
    I have define below structure.Please check the structure and guide me.
    <Statement
            Action   attribute  required
            Table 
    Access  
            Empname   string
            Empid         string
            date            date
              Type     attribute   required
    EXECUTE----
    >Action
    Table----
    >MASTERXXXXXX
    Type----
    >char
    Please check the above structure andguide me to changes if any requires.
    Thanks
    Ravi

  • Best practice for loading from mysql into oracle?

    Hi!
    We're planning migrating our software from mysql to oracle. Therefore we need a migration path for moving the customer's data from mysql to oracle. The installation and the data migration/transfer have to run onto different customer's enviroments. So migration ways like installing the oracle gateway and connect for example via ODBC to mysql are no option because the installation process gets more complicated... Also the installation with preconfigured oracle database has to fit on a 4,6 GB dvd...
    I would prefer the following:
    - spool mysql table data into flat files
    - create oracle external tables on the flat files
    - load data with insert into from external tables
    Are there other "easy" ways of doing migrations or what do you think about the prefered way above?
    Thanks
    Markus

    Hi!
    Didn't anyone have this requirement for migrations? I have tested with the mysql select into file clause. Seems to work for simple data types - we're now testing with blobs...
    Markus

Maybe you are looking for

  • Ibook left hanging! Got info from single user mode - can u translate?

    Hi, am panicking here so help really appreciated! Got my ibook, G3, 17" screen. It won't start up. It goes as far as the spinning circle of lines. Tried to get into single user mode (got Applejack there) but it ends up saying 'we are hanging here'. T

  • Problem with DECODE block in WHERE clause

    Hi, I'm facing problem with DECODE statement. I just simulated my problem in the simple way as follows. If I execute this following query, I should get "hello", but I'm not getting anything (ZERO rows returned). SELECT 'hello' FROM DUAL WHERE 'sample

  • Entering Tax Only Invoice in AP

    Hi Guys, We are able to Import Invoices with Tax Only Line by Setting PRORATE_ACROSS_FLAG as N which is populated in AP LINES. Tax lines gets poulated from Payable Interface to ZX_LINES with Tax only Lines as checked. But when we are trying manually

  • Upgrade 8.1.1  wiped all my music. Is it a bug?

    After upgrade to 8.1.1 all my music was gone. I tunes could not find it. I managed to get it back thanks to a safety copy on external disc. Does anybody know if this is a bug and if it has been reported? Are there any actions taken from Apple? I find

  • Without Info record whether we cant make transactions ME56 & ME58?

    Hi, Im my scenario, MRP will be running and planned orders will come. It will be converted to PR,s. Then after going to ME56 , we will assign vendor . Then in ME58 , we will create the PR to PO. If for some materials info records are  not there , it