One table in ms access----- data migration ----- oracle two tables

Hi,
we are try to migrate from ms access to oracle.
Ms access has patient table
PATIENT_FNAME
PATIENT_LNAME
PATIENT_MNAME
PATIENT_ADDRESS1
PATIENT_ADDRESS2
PATIENT_ADDRESS3
PATIENT_SUBURB
PATIENT_STATE
PATIENT_POSTCODE
PATIENT_COUNTRY
PATIENT_PHONE
PATIENT_MOBILE
PATIENT_SEX
PATIENT_DOB
DIAGNOSIS_REV
RECEIVED_THAL
RECEIVED_STC
RECEIVED_BORTEZOMIB
DIAGNOSIS_OTHER
DIAGNOSIS_THAL
DIAGNOSIS_THAL_RR_MM
DIAGNOSIS_THAL_UNTREATED_MM
DIAGNOSIS_THAL_ENL
DIAGNOSIS_THAL_NONAPPROVED
DIAGNOSIS_THAL_OTHER
PRESCRIBER_ID foreign key
PRESCRIBER_FNAME
PRESCRIBER_LNAME
PRESCRIBER_MNAME
PRESCRIBER_ADDRESS1
PRESCRIBER_ADDRESS2
PRESCRIBER_ADDRESS3
PRESCRIBER_DEPARTMENT
PRESCRIBER_ATTENTION
PRESCRIBER_SUBURB
PRESCRIBER_STATE
PRESCRIBER_POSTCODE
PRESCRIBER_COUNTRY
PRESCRIBER_PHONE
PRESCRIBER_FAX
DATE_PRESCRIBER_SIGNED
DATE_PATIENT_SIGNED
DATE_APPROVED
DATE_RECEIVED
PROCESSED_BY
PATIENT_ID primary key
COMMENTS
UPIN
SIGNED_BY
PATIENT_REP_NAME
IACCESS_STATUS
PRESCRIBER_RN
QUESTION_1
QUESTION_2
QUESTION_3
QUESTION_4
QUESTION_5
QUESTION_6
QUESTION_7
QUESTION_8
QUESTION_9
QUESTION_10
QUESTION_11
QUESTION_12
PRESCRIBER_SIGNED
NOTIFICATION_UPIN
WOCBP
FOLLOWUP_REQUIRED
FOLLOWUP_NOTES
FOLLOWUP_STATUS
REV_THAL
DATE_DEACTIVATED
DEACTIVATE_REASON
VERIFIED
VERIFIED_BY
REGISTERED_REVLIMID
REGISTERED_THALIDOMIDE
FILE_NAME
In oracle  they divieded into two tables
SQL> desc tbl_patient
Name
PATIENT_ID primary key
PATIENT_NAME_FIRST
PATIENT_NAME_LAST
PATIENT_MIDDLE_INITIAL
PATIENT_GENDER
PATIENT_DOB
SQL> desc tbl_patient_prescriber
Name
PATIENT_ID foreign key
PRESCRIBER_ID primary key
PRESCRIBER_NAME_FIRST
PRESCRIBER_NAME_LAST
PRESCRIBER_MIDDLE_INITIAL
First i can load the datas into tbl_patient.
How to insert the datas to tbl_patient_prescriber If it's null values and repeated values are there in ms access or staging table.

I am seeing, perhaps three tables here.
Patient -
Patient_id (PK)
first_name,
last_name,
Other attributes
Prescriber -
Prescriber_id (PK)
first_name,
last_name
Other attributes
Patient_prescriber -
Patient_id (FK-PK)
Prescriber_id (FK-PK)
meds_order_id (PK)
Other patient_prescriber attributes.

Similar Messages

  • How to import MS Access Data to Oracle

    At form level by clicking a push button I want to import Ms Access Data to Oracle . Is it possible.
    If yes can you tell me how to proceed.

    Done that like this :
    you create a new ORACLE ODBC connection in the ODBC section of the control panel (you are in Windoze world, don't you?). After you open your Access database and do a file, export, external data, scroll down for ODBC and PICK A NAME FOR YOUR NEW ORACLE DATABASE IN CAPITAL LETTERS, you sign in and the export begin...
    Have fun, and remember that if you have special caracter, like me in french, you must errase all of them, because you never know what it is gonna be in Oracle DB.
    null

  • How to load text file data to Oracle Database table?

    By using Oracle Forms, how to load text file data to Oracle Database table?

    Metalink note 33247.1 explains how to use text_io as suggested by Robin to read the file into a Multi-Row block. However, that article was written for forms 4.5 and uses CREATE_RECORD in a loop. There was another article, 91513.1 describing the more elegant method of 'querying' the file into the block by transactional triggers. Unfortunately this more recent article has disappeared without trace and Oracle deny its existence. I know it existed as I have a printed copy in front of me, and very useful it is too.

  • Best way to migrate Access data into Oracle 10g?

    what's the best and easiest way to migrate MS Access database into Oracle10g?
    Thanks

    you can check out this thread ms access db to oracle 10g
    <p>also as neil mentioned you need an ODBC to established a database connection between ms access and oracle. be sure that the tables are existing in oracle so you move the data from ms access to oracle tables.</p>

  • Putting XML data in Oracle 8i tables.

    Hi,
    For a ongoing project, I have to put XML data in Oracle
    tables. I have to parse the XMl and extract few key items and
    the rest of the XML is to put into CLOB column. I am looking to
    use Event-based parser.
    I was trying to use Oracle XML parser for PL/SQL. This parser
    does not have SAX support curently. Does anbody know by when
    this parser support SAX? It has already been promised as one of
    the feature.
    Can somebody suggest using some other parser? Can I use some
    parser which can be integrated within Oracle so that I wont have
    to use ODBC etc. for accessing tables.
    Has somebody used Oracle XMl parser for Java ? Does parser
    integrate within Oracle. How can we go about the procs of
    parsing and putting results in oracle tables.
    Looking forward to quick response,
    Premal.
    null

    There is no announced date for the addition of the SAX interface
    to the PL/SQL Parser yet. Your current option is to use the XML
    SQL Utility for Java to interchange XML data.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    Premal Mehta (guest) wrote:
    : Hi,
    : For a ongoing project, I have to put XML data in Oracle
    : tables. I have to parse the XMl and extract few key items and
    : the rest of the XML is to put into CLOB column. I am looking
    to
    : use Event-based parser.
    : I was trying to use Oracle XML parser for PL/SQL. This
    parser
    : does not have SAX support curently. Does anbody know by when
    : this parser support SAX? It has already been promised as one
    of
    : the feature.
    : Can somebody suggest using some other parser? Can I use
    some
    : parser which can be integrated within Oracle so that I wont
    have
    : to use ODBC etc. for accessing tables.
    : Has somebody used Oracle XMl parser for Java ? Does parser
    : integrate within Oracle. How can we go about the procs of
    : parsing and putting results in oracle tables.
    : Looking forward to quick response,
    : Premal.
    null

  • Importing Access Data into Oracle Forms through Forms 10g

    Sirs,
    How can i import the data of Access file into Oracle tables.
    i have the tables in access of approx 10 how can it be imported in oracle with same data structure.
    ThanX in advance

    DECLARE
    kAccess client_ole2.obj_type;
    kdb client_ole2.obj_type;
    ktables client_ole2.obj_type;
    krec client_ole2.obj_type;
    kcurr client_ole2.obj_type;
    begin
    kaccess:=client_ole2.create_obj('Access.application);
    kdb:=client_ole2.invoke_obj(kaccess,'open','D:\acc.mdb');
    ktables:=client_ole2.get_obj_property(kdb,'tables',1);
    //then process teh data of the table which is at 1 using another
    krec:=client_ole2.invoke_obj(ktables,'count');
    for s in 1 .. krec
    loop
    /// code for sinserting the current records data into the oracle tables.
    kcurr:=client_ole2.get_obj_type(ktables,'recordset',s);
    // then access each filed in kcurr and then insert in oracle table
    end loop;
    end;
    the above code is not tested your can alter any syntatical error if any.

  • Copy access data into oracle with form builder 9i

    hello
    i need to copy/import data and tables from an MS access database into oracle 9i database. the situation is each time i login to my forms applicatin i will need to do that. any idea pls...
    the access db is frequently updated. so when i login into my forms application it needs to be reimport the data from access db. can any1 pls help me?

    To my opinion, there are 3 potential approaches :
    1. rewrite the application, that data are stored directly in the oracle database
    or the program writes flat files somewhere to the file system which are able getting
    imported from the target instance on daily basis or job driven;
    2. The "Access-driven approach" : link oracle tables into the MS-Access application
    using an ODBC-connection and build a macro in Access which is exporting the stuff to
    the target instance; in order to do so, the Oracle Client and ODBC-Drivers needs to
    get installed on the PC where MS-Access is started to start the exportation process
    (which is probably yours).
    You may then create tables in the target instance and link them from within Access
    using ODBC as the datasource
    3. The "Oracle driven approach". explained in detail here, never tried it, but maybe
    worth a look
    http://www.orafaq.com/node/60
    Basically, install the Oracle Software on a PC, configure an ODBC-Connection and start a
    Listener there;
    The target instance (which may no run on a UNIX system) is now able to commuincate
    with the local running listener on your PC which itself is instantiating a connection to
    the Access "Database" using the ODBC-Connection.
    In this way, your PC acts as a database server from the Oracle Net point of view.
    In theory, this could even work, depending on the ability to connect from the
    instance server directly to the given IP of your PC (Security ?? Hmmmz)

  • MS Access ODBC to Oracle missing tables

    When linking Oracle 8i tables to a MSAccess database using an ODBC connection, some of the tables are not being shown in the list for selection. I can't seem to find any differences between those tables that are listed and those that are not. This is a PeopleSoft system using Oracle as the backend database. Please help!!!

    I found my the answer to my own question....I used the Oracle Driver that was installed with my client install. For those of you that are trying to connect to Oracle from Access. I had to create the link using VBA, there is an extra parameter that needs passed in the connection to Oracle, the XSM Parameter. This will create a link in Access called "fsdev_PS_MASTER_ITEM_TBL", the source oracle table is SYSADM.PS_MASTER_ITEM_TBL. You must also have the Microsoft DAO 3.6 Object library installed in the Tools --> References. See the code below:
    Option Compare Database
    Option Explicit
    Function AttachTable() As Variant
    On Error GoTo AttachTable_Err
    Dim db As Database
    Dim tdef As TableDef
    Dim strConnect As String
    Set db = CurrentDb()
    strConnect = "ODBC;DSN=FSDEV;DBQ=FSDEV;DATABASE=;XSM='SYSADM'"
    ' NOTE: DSN is your ODBC Data Source Name; DBQ is your TNSNAMES.ORA entry name
    ' NOTE: YOU MUST PASS IN THE XSM PARAMETER IN NEWER VERSIONS OF ORACLE DB
    Set tdef = db.CreateTableDef("fsdev_PS_MASTER_ITEM_TBL")
    tdef.Connect = strConnect
    tdef.SourceTableName = "SYSADM.PS_MASTER_ITEM_TBL"
    db.TableDefs.Append tdef
    AttachTable_Exit:
    Exit Function
    AttachTable_Err:
    MsgBox "Error: " & Str(Err) & " - " & Error$ & " occured in global module."
    Resume AttachTable_Exit
    End Function

  • Import data from oracle database table into csv file

    Hi
    I have to import data from a table into a csv file. Could anyone suggest the best method to do it? My application is JSP as frontend and have put business logic in servlet.
    Thanks in advance.

    FastReader from wisdomforce will help you quickly export data into csv file. http://www.wisdomforce.com
    fastreader can be called and executed as an external process ( Runtime.exec(..) ) to extract data from Oracle tables into flat file

  • Load xml data to oracle database table

    hi,
    i am facing some problem in fetching from xml data into oracle . That if the table column name and xsl and xsd tag are equal then data is fetching .
    if we we are changing column name in xsl and xsd then data is not fetching.
    the soure is like that
    XSD FILE
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
         </xs:complexType>
         <xs:complexType name="TRANSAC_Type">
    <xs:all>
    <xs:element name="NECRITUR" type="Char4_Type" minOccurs="0" nillable="false"/>
    <xs:element name="NPTF_INT" type="Char2_Type" minOccurs="0" nillable="false"/>
    </xs:all>
    </xs:complexType>
    <xs:simpleType name="Char1_Type">
    <xs:restriction base="xs:string">
    <xs:maxLength value="1"/>
    </xs:restriction>
    </xs:simpleType>
    XSL FILE
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:output method="xml" indent="yes"/>
    <!-- Treatment of fields for table -->
    <xsl:template match="NECRITUR">
    <NO_ECRIT_INT>
    <xsl:value-of select="."/>
    </NO_ECRIT_INT>
    </xsl:template>
    <xsl:template match="NPTF_INT">
    <NPTF_INT>
    <xsl:value-of select="."/>
    </NPTF_INT>
    </xsl:template>
    </xsl:template>
    </xsl:stylesheet>
    Xml file
    <File xmlns:xsi="http://www.’’’’’ ">
    <Header>
    <FileType>TRANSAC</FileType>
    <FileName>TRANSAC.XML</FileName>
    <CreationDate>2007-02-22</CreationDate>
    <CreationTime>14:56:48</CreationTime>
    </Header>
    <Data>
    <TRANSAC>
    <NECRITUR>6</NECRITUR>
    <NPTF_INT>MMMM</NPTF_INT>
    </TRANSAC>
    </Data>
    </File>
    Table Is
    REP (NO_ECRIT_INT, NPTF_INT, CreationDate, CreationTime)
    Regards
    manu
    Message was edited by:
    user561683

    Hi Manu
    Im not quite sure what your question is?
    Are you trying to load data to the database or
    Are you trying to retrieve data from the database ?
    Either way this forum is meant for XML Publisher or BI Publisher issues not just XSL ... you might be better asking on the XML forum.
    Regards, Tim

  • Confused How to push Data from Oracle DB Tables into Hyperion Planning?

    HI
    I m Newbie to ODI. My DataSource is Oracle 11g Database (HR Tables) and my Target is Hyperion Planning.
    I successful imported Oracle DB HR tables into ODI and Hyperion Planning Dimensions Like(Employee) but i dont understand in " ODI Interface" how i am going to do Mapping between Oracle tables and Planning application Dimension, am i doing wrong way?
    I am confused if i have to push Data from Oracle 10g HR Tables into Hyperion Planning am i following right approach ?
    Looking for your guideline...
    Regards
    Sher

    Hi John
    Well i have working knowledge in ODI, i did whole complete cycle and i did customization project for Oracle EBS to Data warehouse though ODI.
    What, I am NOT able to figure out How to LINK Hyperion Planning Outline to Oracle EBS HR Tables. cause in Hyperion Outline i m able to view Dimensions Not particular Column to map with EBS HR Table (column).
    Eample:
    In EBS HR we have Employee Number in Per_all_people_f but in Hyperion Planning Dimension is ONLY Employee.
    Your response highly appreciated.
    Chreeez
    Sher

  • Import Excel File Data into oracle database table.

    HI,
    i want to insert data into a specific table from a excel file. please help me..
    for example
    emp.xls file's data need to be import in emp database table.
    thanks in advance...

    Hi,
    to all knowledgable person, this would be gald for u all that i have solved the problem.
    through this procedure..
    PROCEDURE IMPORT_FROM_EXCEL_PROC (as_FileName VARCHAR2, exe_name varchar2) IS
              appid PLS_INTEGER;
              convid PLS_INTEGER;
              docid PLS_INTEGER;
              conv_established BOOLEAN := FALSE;
              buffer VARCHAR2(100);      
              Emp_code VARCHAR2(100);
              Emp_name VARCHAR2(100);
              Emp_desig VARCHAR2(100);
              Emp_Salary VARCHAR2(100);
              ls_error VARCHAR2(1000);
              li_row integer;
              li_col integer;
              li_error_count integer;
              li_load_count integer;
    BEGIN
         --Start Excel
         --This line assumes that Excel is in the specified directory
              --     APPID := DDE.APP_BEGIN('D:\OFFICE11\EXCEL.EXE',DDE.APP_MODE_MINIMIZED);
              APPID := DDE.APP_BEGIN(exe_name,DDE.APP_MODE_MINIMIZED);
         --Establish a conversation with Excel
         --The following loop will not end until a conversation with Excel
         --has been established. Therefore, it can result in a endless loop,
         --so use with caution.
              WHILE NOT conv_established LOOP
              BEGIN
              convid := DDE.INITIATE('excel', 'system');
              conv_established := TRUE;
              EXCEPTION
              WHEN DDE.DMLERR_NO_CONV_ESTABLISHED THEN
              conv_established := FALSE;
              END;
              END LOOP;
         --Open Excel document
         --This assumes that you have an Excel spreadsheet named ddetest.xls in the root of c:
              DDE.EXECUTE(convid, '[Open("'||as_FileName||'")]', 10000);     
         --Initiate conversation with Excel document
              docid := DDE.INITIATE('excel',as_FileName);
         --Begin transfer from Excel to Forms
                   li_load_count := 0;
                   li_error_count := 0;
                   li_col := 1;
                   li_row := 2;
                   GO_BLOCK('IMPORT_XLS');          
                   DDE.REQUEST (docid, 'R' || TO_CHAR(li_row) || 'C' || TO_CHAR(li_col), buffer, DDE.CF_TEXT, 1000);          
                   WHILE length(buffer) > 2 LOOP           
                   WHILE li_col < 5 LOOP
                        buffer := substr(buffer, 1, instr(buffer, chr(10)) - 2);               
                   IF li_col = 1 THEN --Emp_code
                        Emp_code := buffer;     
                   ELSIF li_col = 2 THEN --Emp_name     
                        Emp_name := buffer;     
                   ELSIF li_col = 3 THEN --Emp_desig      
                        Emp_desig := buffer;     
                   ELSE --Emp_salary
                        Emp_salary := buffer;
                   END IF;
                   IF nvl(ls_error,'N') = 'N' THEN
                   li_col := li_col + 1;
                   DDE.REQUEST (docid, 'R' || TO_CHAR(li_row) || 'C' || TO_CHAR(li_col), buffer, DDE.CF_TEXT, 1000);
                   ELSE
                   li_col := 5;
                   END IF;               
                   END LOOP;
                   IF nvl(ls_error, 'N') = 'N' THEN
                   li_load_count := li_load_count + 1;
                   IF li_load_count = 1 THEN
                   FIRST_RECORD;
                   ELSE
                   NEXT_RECORD;
                   END IF;
                   :IMPORT_XLS.Emp_code := Emp_code;               
                   :IMPORT_XLS.Emp_name := Emp_name;          
                   :IMPORT_XLS.Emp_desig := Emp_desig;
                   :IMPORT_XLS.Emp_salary := Emp_salary;
                   ELSE
                   li_error_count := li_error_count + 1;
                   DDE.POKE(docid, 'R' || TO_CHAR(li_row) || 'C5', ls_error, DDE.CF_TEXT, 10000);
                   END IF;
                   ls_error := '';
                   Emp_code := '';
                   Emp_name := '';
                   Emp_desig := '';
                   Emp_salary := '';
                   li_col := 1;
                   li_row := li_row + 1;
                   DDE.REQUEST (docid, 'R' || TO_CHAR(li_row) || 'C' || TO_CHAR(li_col), buffer, DDE.CF_TEXT, 1000);                
                   END LOOP;               
                   IF li_error_count > 0 THEN
                        DDE.EXECUTE(convid, '[[save]]', 10000);
                        Message(TO_CHAR(li_load_count) || ' Record(s) Loaded. ' ||
                        TO_CHAR(li_error_count) || ' Invalid Record(s). See error in excel file.');
                        ELSE
                        Message(TO_CHAR(li_load_count) || ' Record(s) Successfully Loaded.');
                   END IF;                
                   --End transfer to Excel
                   DDE.TERMINATE(docid);
                   DDE.TERMINATE(convid);
                   DDE.APP_END(appid);                          
                   --Handle exceptions
                   EXCEPTION
                   WHEN DDE.DDE_APP_FAILURE THEN
                   MESSAGE('WINDOWS APPLICATION CANNOT START.');
                   WHEN DDE.DDE_PARAM_ERR THEN
                   MESSAGE('A NULL VALUE WAS PASSED TO DDE');
                   WHEN DDE.DMLERR_NO_CONV_ESTABLISHED THEN
                   MESSAGE('DDE CANNOT ESTABLISH A CONVERSATION');
                   WHEN DDE.DMLERR_NOTPROCESSED THEN
                   MESSAGE('A TRANSACTION FAILED');
    END;

  • How to read a table and transfer the data into an internal table?

    Hello,
    I try to read all the data from a table (all attribute values from a node) and to write these data into an internal table. Any idea how to do this?
    Thanks for any help.

    Hi,
    Check this code.
    Here i creates context one node i.e  flights and attributes are from SFLIGHT table.
    DATA: lo_nd_flights TYPE REF TO if_wd_context_node,
            lo_el_flights TYPE REF TO if_wd_context_element,
            ls_flights TYPE if_main=>element_flights,
            it_flights type if_main=>elements_flights.
    navigate from <CONTEXT> to <FLIGHTS> via lead selection
      lo_nd_flights = wd_context->get_child_node( 'FLIGHTS' ).
    CALL METHOD LO_ND_FLIGHTS->GET_STATIC_ATTRIBUTES_TABLE
      IMPORTING
        TABLE  = it_flights.
    now the table data will be in internal table it_flights.

  • How to insert the data if the data in the two tables doesn't match.

    Hi,
    I have requirement like,I have to insert the data by comparing the two tables based on the date field.If they both are equal then the data shouldn't be inserted if not the data has to be inserted.
    Can some one help me on this ASAP.
    Regards,
    Sudha
    sudha

    Hi,
    Thanks for the reply,i would like to know the way that we can design the packages
    sudha
    You have multiple ways of implementing this
    1. Using Lookup Task
    http://www.sqlis.com/sqlis/post/Get-all-from-Table-A-that-isnt-in-Table-B.aspx
    2. using SCD wizard
    http://www.bimonkey.com/2009/07/the-slowly-changing-dimension-transformation-part-1/
    3. using hashing
    http://visakhm.blogspot.in/2014/06/ssis-tips-implementing-scd.html
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Data fetch from two table without refresh

    hi Friends,
    I have a problem i want to extract data from two table without refresh into text field when i'll enter any value in a text field then corressponding value should come in to corressponding textfield.
    eg. there two table A and B.
    Table A has Colunm
    s_id Number;
    c_id Varchar2(30);
    sec varchar2(4);
    Second Table B Colunm Name
    s_id Number;
    f_name varchar(30);
    l_name varchar(20);
    when i enter s_id 101 in a text field then the c_id ,sec,first_name and last_name should come in to corressponding text fields without refresh.
    How Can I do this.
    Thanks
    Manoj

    Hi Manoj,
    You have to make an Ajax call to display data without refreshing the page. Search this forum for Ajax and you can find lots of related posts. This link might help too. http://www.dba-oracle.com/t_html_db_apex_ajax_application_express.htm
    Thanks,
    Manish.

Maybe you are looking for

  • Two questions about photos

    I remember on other editing softwares using zooming and a sort of "sweeping" from left ro right etc. over photos. Is that possible with this program? Also, how do you pre-set how long the photos are going to be (this is for a different purpose, but t

  • How to Integrate Office2000,Adobe Phototshop application with IFS

    hi , Requirement : How can i do Content Management Functionalities like(Checkin,checkout,make a file versioned,copyout,save,open,lock,unlock etc) while open/save a file using Open/SaveAs Dialog Of Desktop Application like Microsoft Word,PPT,XL,Adobe

  • WRTSL54GS - Internet suddenly unavailable (internet light also out)

    Accessing the internet through my router no longer works. I've tried connecting my computer directly to the cable modem, and the internet works fine (as I am using it right now to write this message). I use the same cable (as well as other ethernet c

  • Combine 2 Column Values in One Prompt - - - - Urgent

    Hi Experts, I'm Using Obiee10g. I have a requirement where i need to create a prompt (based on 2 column values) Example: Name of Prompt (Search Agency) it has following values Agency Type1 Agency Type2 Agency Subtype1 Agency Subtype2 Agency Type1, Ag

  • Method to pause applet until all graphics are painted?

    Any method that will pause all threads in an applet to make sure all graphics are painted first? (something similiar to MediaTracker for images).