Importing Excel into Oracle

Scenario:
7 users have access to an Excel Sheet.
Any user can use the coldfusion front-end and upload this
excel file into an Oracle database.
Excel sheet has 30 columns, but when they click on
Upload...only 5 0r 6 columns will be filled.
The rest will be null values in the database.
I'm not in a position to make use of Oracle External Tables
neither can I run DB scripts to check for newer Excel Uploads.
As of now I need suggestions on the possible approaches.
Also when user clicks upload:
If col-1 has value then col-2, col-3 should have values and
col-4, col-5 should not have any values.
There will be checks like these in place too.
Please suggest how do I check an .xls file if all these
conditions are filled per row (assuming that there would be 40 rows
per upload per user per day). Do I check the .xls file or do I
check for these validations somewhere else, if yese where and how
??

Please suggest how do I check an .xls file if all these
conditions are
filled per row (assuming that there would be 40 rows per
upload per user
per day). Do I check the .xls file or do I check for these
validations
somewhere else, if yes where and how ??
Either on these forums of the House of Fusion forums, I
recently read a
thread about using excel as a datasource. That may offer you
some options.
The file could be uploaded to a given location. That location
is
configured as a datasource. Use standard SQL operations
against it.

Similar Messages

  • How to Import vmdk into Oracle VM Manager 3.0.2

    Hi all
    I am running BIC2G in VM Box and OracleApps(BIC2G-LNX) in VMware Player.
    I want to run both in OVM 3.0.2.
    BIC2G is having 5 files one *.ovf* and 4 *.vmdk* files
    and OracleApps(BIC2G-LNX) is having one *.vmx* and many *.vmdk* files.
    Can anyone please tell me how to import these files into OVM 3.0.2
    Thanks
    Abhishek Anand
    Edited by: Abhishek-Anand on Dec 21, 2011 4:52 AM

    Abhishek-Anand wrote:
    Can anyone please tell me how to import these files into OVM 3.0.2http://blogs.oracle.com/virtualization/entry/migrating_from_hyper_v_and
    You need to be able to package your VM as an OVA to import it into Oracle VM. Check your VMware documentation on how to do that.

  • Error while importing data into Oracle 11gr2 with arcsde 9.3.1

    I am getting error while importing the data into oracle 11g r2. We are using arcsde 9.3.1
    It seems to be having some problem with spatial index creation.
    kindly help
    IMP-00017: following statement failed with ORACLE error 29855:
    "CREATE INDEX "A3032_IX1" ON "DGN_POLYLINE_2D" ("SHAPE" ) INDEXTYPE IS "MDS"
    "YS"."SPATIAL_INDEX""
    IMP-00003: ORACLE error 29855 encountered
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in spatial index: [mdrcrtxfergm]
    ORA-13249: Error in spatial index: [mdpridxtxfergm]
    ORA-13200: internal error [ROWID:AAAT5pAA9AACIy5AAQ] in spatial indexing.
    ORA-13206: internal error [] while creating the spatial index
    ORA-13033: Invalid data in the SDO_ELEM_INFO_ARRAY in SDO_GEOMETRY object
    ORA-06512: at "MDSYS

    Guys,
    I am also getting the same error and also my issue is like I am not even to analyze for which indexes I am getting error. It does not hve any indx name before error.
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/DOMAIN_INDEX/INDEX
    ORA-39083: Object type INDEX failed to create with error:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in spatial index: [mdrcrtxfergm]
    ORA-13249: Error in spatial index: [mdpridxtxfer]
    ORA-29400: data cartridge error
    ORA-12801: error signaled in parallel query server P000
    ORA-13249: Error in spatial index: [mdpridxtxfergm]
    ORA-13200: internal error [ROWID:AA
    ORA-39083: Object type INDEX failed to create with error:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in spatial index: [mdrcrtxfergm]
    ORA-13249: Error in spatial index: [mdpridxtxfer]
    ORA-29400: data cartridge error
    ORA-12801: error signaled in parallel query server P002
    ORA-13249: Error in spatial index: [mdpridxtxfergm]
    ORA-13200: internal error [ROWID:AA
    ORA-39083: Object type INDEX failed to create with error:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in spatial index: [mdrcrtxfergm]
    ORA-13249: Error in spatial index: [mdpridxtxfer]
    ORA-29400: data cartridge error
    stack cnt....
    How can I find for which indexes it is failing?
    Thank you,
    Myra

  • Import payments into Oracle

    Does anyone know a way to import payments that were made for a set of invoices that were imported through the Payables Open Interface into Oracle Payables through an API or any other kind of interface? Basically i need to import invoices and payments that were paid online through a third party site into Oracle Payables.
    I have searched - http://irep.oracle.com, but i have not found anything that will create a payment in Oracle Payables and mark the associated invoices as Paid.
    Here's some far fetched options i have come up with so far:
    Option 1:
    I want to take the process of Recording Manual Payments and Wire Transfers through the UI and automate this. However, i don't see that this functionality is available anywhere through an API. Is this available through an API? This manual process is documented here: https://csslxa03.hkcss.org.hk:16298/OA_HTML/jsp/fnd/fndhelp.jsp?dbc=/u01/oracle/fmprd/appl/fnd/11.5.0/secure/csslxa06_fmprd.dbc
    Option 2:
    OR another possiblity would be to create the Payment Batches for the imported invoices. Questions with this are: Is there a way to assign specific invoices to a Payment Batch? Is there a way to do this programatically? Can you assigned a Check Number to a Payment as well? Because these payments have already been made.
    Option 3:
    Edit the Oracle tables directly. Don't want to do this though and introduce the possiblity of corrupting data.
    Thanks,
    Scott

    I see that this is the functionality accomplished through the Manual Payments. However, we need to do this programatically on a batch basis because we need to do possbily a few hundred of these a day. We can't have a person keying these in.
    So does anyone have a good work around to getting this done programatically?
    What is Oracle's stance on editing the tables directly. I can hopefully quite easily figure out what tables are modified during the entry of a Manual Payment through the GUI and mimic this programatically, but this is not a good solution in my mind.
    Thanks,
    Scott

  • Can you import Access into Oracle 10g Express Edition?

    Hi all,
    I know you can import files from Access into some other versions of Oracle, but is it possible with 10g XE?
    I've been looking at all the tools in my browsers and none seem to do it.
    I guess I'll need to convert the tables into text, and then from text into Oracle?
    Thanks

    Why not give SQLDeveloper's migration a shot?
    You can get it for free here.
    http://www.oracle.com/technology/software/products/sql/index.html
    I've never personally done it, but it doesn't look to mind bending :)
    http://www.oracle.com/technology/obe/11gr1_db/appdev/msamigrate/msamigrate.htm
    Should work fine with XE.

  • Importing XML into oracle 11g database

    I am having some difficulty parsing an XML file into oracle 11g database.
    Currently using Oracle 11g Express Edition (XE)
    Here is how my XML file looks like:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <AccountMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <Accounts>
    - <AccountMapping>
    <AccountID>0000000000000-000</AccountID>
    <AccountName>XLS</AccountName>
    <AccountType>Excel</AccountType>
    <AccountOwner>System</AccountOwner>
    </AccountMapping>
    - <AccountMapping>
    <AccountID>0000000000000-001</AccountID>
    <AccountName>XLSS</AccountName>
    <AccountType>Excel2</AccountType>
    <AccountOwner>System2</AccountOwner>
    </AccountMapping>
    - <AccountMapping>
    and so on the file continues.. I have the xml file saved on my local hard disk
    I have created a package in SQL Developer
    create or replace
    PACKAGE XML_FILEHANDLER AS
    type TRecord is record (
    Account_ID varchar2(100)
    , AccountName varchar2(100)
    , AccountType varchar2(30)
    , AccountOwner varchar2(100)
    type TRecordTable is table of TRecord;
    function getRows (p_directory in varchar2, p_filename in varchar2) return TRecordTable pipelined;
    END XML_FILEHANDLER;
    -- BODY
    create or replace
    PACKAGE BODY XML_FILEHANDLER AS
    function getRows (p_directory in varchar2, p_filename in varchar2) return TRecordTable pipelined AS
    nb_rec NUMBER := 1;
    tmp_xml CLOB;
    tmp_file CLOB;
    rec TRecord;
    BEGIN
    dbms_lob.createtemporary(tmp_file, true);
    tmp_file := dbms_xslprocessor.read2clob(p_directory, p_filename);
    rec.Account_ID := regexp_replace(tmp_file, '.*<Account_ID>(.*)</Account_ID>.*', '\1', 1, 1, 'n');
    rec.AccountName := regexp_replace(tmp_file, '.*<AccountName>(.*)</AccountName>.*', '\1', 1, 1, 'n');
    rec.AccountType := regexp_replace(tmp_file, '.*<AccountType >(.*)</AccountType >.*', '\1', 1, 1, 'n');
    rec.AccountOwner := regexp_replace(tmp_file, '.*<AccountOwner>(.*)</AccountOwner>.*', '\1', 1, 1, 'n');
    loop
    -- this regexp finds occurrence(s) of this pattern : "<?xml ... ?><root_tag> ... </root_tag>"
    tmp_xml := regexp_substr(tmp_file, '<\?xml[^?]+\?>\s+<([^>]+)>.*?</\1>', 1, nb_rec, 'n');
    exit when length(tmp_xml) = 0;
    --dbms_output.put_line(tmp_rec);
    nb_rec := nb_rec + 1;
    SELECT Account_ID, AccountName, AccountType, AccountOwner
    into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
    from xmltable(
    'Accounts/AccountMapping' passing xmltype(tmp_xml) columns
    Account_ID varchar2(100) path 'Account_ID'
    , AccountName varchar2(100) path 'AccountName'
    , AccountType varchar2(30) path 'AccountType'
    , AccountOwner varchar2(100) path 'AccountOwner'
    pipe row ( rec );
    end loop;
    dbms_lob.freetemporary(tmp_file);
    END getRows;
    END XML_FILEHANDLER;
    -- I am calling my function using the following sql query
    select * from table(XML_FileHandler.getRows('XML', 'test.xml'));
    Here is the error I am receiving
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 536
    ORA-29283: invalid file operation
    ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 265
    ORA-06512: at "user.XML_FILEHANDLER", line 13
    29283. 00000 - "invalid file operation"
    *Cause:    An attempt was made to read from a file or directory that does
    not exist, or file or directory access was denied by the
    operating system.
    *Action:   Verify file and directory access privileges on the file system,
    and if reading, verify that the file exists.
    I have done the following
    - Provided appropriate access to user (read, write) including directory access rights
    - ensured that directory exists
    - ensured that file exists
    I have searched all over google and metalink but am unable to get this to run.. please help!

    >
    SELECT Account_ID, AccountName, AccountType, AccountOwner
    into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
    from xmltable(
    'Accounts/AccountMapping' passing xmltype(tmp_xml) columns
    Account_ID varchar2(100) path 'Account_ID'
    , AccountName varchar2(100) path 'AccountName'
    , AccountType varchar2(30) path 'AccountType'
    , AccountOwner varchar2(100) path 'AccountOwner'
    >
    change to
    SELECT Account_ID, AccountName, AccountType, AccountOwner
    into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
    from xmltable(
    'AccountMap/Accounts/AccountMapping' passing xmltype(tmp_xml) columns
    Account_ID varchar2(100) path 'Account_ID'
    , AccountName varchar2(100) path 'AccountName'
    , AccountType varchar2(30) path 'AccountType'
    , AccountOwner varchar2(100) path 'AccountOwner'
    SQL> SELECT Account_ID, AccountName, AccountType, AccountOwner
      2  --into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
      3  from xmltable(
      4  'AccountMap/Accounts/AccountMapping' passing
      5  xmltype('<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
      6  <AccountMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      7  <Accounts>
      8  <AccountMapping>
      9  <AccountID>0000000000000-000</AccountID>
    10  <AccountName>XLS</AccountName>
    11  <AccountType>Excel</AccountType>
    12  <AccountOwner>System</AccountOwner>
    13  </AccountMapping>
    14  <AccountMapping>
    15  <AccountID>0000000000000-001</AccountID>
    16  <AccountName>XLSS</AccountName>
    17  <AccountType>Excel2</AccountType>
    18  <AccountOwner>System2</AccountOwner>
    19  </AccountMapping>
    20  </Accounts>
    21  </AccountMap>')
    22  columns
    23  Account_ID varchar2(100) path 'Account_ID'
    24  , AccountName varchar2(100) path 'AccountName'
    25  , AccountType varchar2(30) path 'AccountType'
    26  , AccountOwner varchar2(100) path 'AccountOwner'
    27  );
    ACCOUNT_ID                                                                       ACCOUNTNAME                                                                      ACCOUNTTYPE                    ACCOUNTOWNER
                                                                                     XLS                                                                              Excel                          System
                                                                                     XLSS                                                                             Excel2                         System2
    SQL> for AccountID use AccountID not Account_ID
    Account_ID varchar2(100) path 'AccountID'Edited by: AlexAnd on Aug 9, 2012 12:35 AM

  • Import Access into Oracle

    Hi,
    I have some access tables (may be nearly 60) in one Windows PC. I need to import all the data into Oracle Database. This has to run every day night. So I need your help to import the data into oracle the easier, faster way.

    Are you trying to do an incremental load every night? Or would you be able to do a full load from Access to Oracle every night?
    What operating system is Oracle running on? Can the Oracle database server connect to the Access database? If so, you could potentially use Heterogeneous Connectivity to create a database link from Access to Oracle and write PL/SQL that would extract data from Access and load it into Oracle.
    Justin

  • Importing excel into indesign

    Hi,
    I'm using indesign CS4 version.
    How to import excel file into Indesign.
    Regards
    GaneshR

    You can place it like you place a Word document.

  • Can anyine help me in importing data into oracle 9i

    Hi All ,
    I am very new to oracle 9i.I have created the dump of the database using exp command.
    exp system/manager file="testdb.dmp" owner=scott
    Now i want the same database to be imported to a new machine.I have installed oracle 9i with database global database name SID as stc .I am able to connect to the database "stc " using scott and tiger using sql plus.
    The import command that I used is
    imp scott/tiger file=testdb.dmp fromuser=scott touser=scott
    When I gave like this , it showed like "Invalid login name/password".
    But when I gave the command as
    imp scott/tiger file=testdb.dmp fromuser=scott touser=system
    It worked . But I am unable to loacate the tables.
    Also I want to import these tables into scott.So is there any better way so that I can copymy data from one machine to another . Or is there any tool which converts mysql tables scripts into oracle table scripts
    Thanking you in advance
    Diny

    Hi
    I tried giving the same but it is showing the same : oracle error 1017 encoountered . Logon denied.
    And it is asking for new login and password.
    Then I gave the login / pwd as scott / tiger . Then it started importing .
    We already had added around 150 tables in the database early. So is there any command so that we can delete all the tables entirely.
    Dinny

  • Import vmdk into Oracle VM Manager 3.0.2

    Hi,
    Can someone please tell me how I can import a vmware virtual machine into Oracle VM Manager 3.0.2
    Thanks
    Ger

    Hi,
    I have exported the vmware VM and places it in Assemblies
    When I try to create a template for it it does not show any names in "Assemebly Virtual Machines"
    "Refresh Selected Assembly" give the follwoing errors in /var/log/ovs-agent.log :
    [root@nldvnr01ovms01 ~]# [2011-11-24 23:38:02 15867] DEBUG (OVSServices:57) dispatch function get_assembly_config to server https://oracle:******@13.206.238.171:8899/api/1
    [2011-11-24 23:38:03 15868] DEBUG (OVSCommons:124) get_assembly_config: ('0004fb000003000058271d4af7a471b2', 'nldvnr01ux021')
    [2011-11-24 23:38:03 15868] ERROR (OVSCommons:143) catch_error: Cannot find OVF descriptor file.
    Traceback (most recent call last):
    File "/opt/ovs-agent-3.0/OVSCommons.py", line 141, in wrapper
    return func(*args)
    File "/opt/ovs-agent-3.0/vm.py", line 966, in get_assembly_config
    ovf_filename = find_ovf_descriptor(unpacked_path)
    File "/opt/ovs-agent-3.0/vm.py", line 948, in find_ovf_descriptor
    raise RuntimeError('Cannot find OVF descriptor file.')
    RuntimeError: Cannot find OVF descriptor file.
    [2011-11-24 23:38:03 15867] ERROR (OVSServices:61) dispatch error: get_assembly_config: <Fault 1: 'exceptions.RuntimeError:Cannot find OVF descriptor file.'>
    [2011-11-24 23:38:03 15867] ERROR (OVSCommons:143) catch_error: <Fault 1: 'exceptions.RuntimeError:Cannot find OVF descriptor file.'>
    Traceback (most recent call last):
    File "/opt/ovs-agent-3.0/OVSCommons.py", line 141, in wrapper
    return func(*args)
    File "/opt/ovs-agent-3.0/OVSServices.py", line 59, in dispatch
    return getattr(sp, func)(*args)
    File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1099, in __call__
    return self.__send(self.__name, args)
    File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1386, in __request
    verbose=self.__verbose
    File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1150, in request
    return self._parse_response(h.getfile(), sock)
    File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1289, in parseresponse
    return u.close()
    File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 746, in close
    raise Fault(**self._stack[0])
    Fault: <Fault 1: 'exceptions.RuntimeError:Cannot find OVF descriptor file.'>
    What's wrong ?
    Hope someone can help me.
    Thanks,
    Ger

  • Import data into oracle from a text file?

    hi guys,
    How can we import data into oracle9i release 1 from a text file with comma seperated or tab seperated delimeters?
    please help,
    Imran

    table is already created, just have to populate data into table through a dat or text file. As suggested, you would either:
    1). use SQL*Loader to load the data into this table.
    2). create external table on that data file and then do:
    INSERT INTO your_real_table
    SELECT * FROM that_external_table ;

  • Inserting data from excel into oracle db

    I have data in excel files. Can I insert it in Oracle DB??
    any example will be highly appreciated
    thanks and kind regards

    See CSV-Database example based on Scriptella ETL tool.:
    http://snippets.dzone.com/posts/show/3508
    P.S. You will have to export Excel file into CSV.

  • Import Excel into MS SQL

    I have an MS Excel document, not a csv, that I want to import into my MS SQL table.
    I'm using CF8.
    I can find articles on importing a csv, but it would be easier if I could import an Excel file directly. It's a very simple three column table with headers. Any suggestions on learning how to do this? Thanks

    Here is what we do for exactly this situation:  1) Our users use a CF form to submit their XLS file.  2) CF Form processing page downloads the file and saves it on a network drive that both the CF and SQL server can access (this means both are running under a Windows account and not a local service account). 3) The CF Form processing page puts an entry into a table with the information about the filename and other details that the SSIS package will need to know. 4) On the SQL server there is a job that runs every 15 minutes that looks at the above table for an entry that hasn't been processed yet, and if it finds anything to do it does it, then marks the entry in the table as complete. We've actually generalized this to handle a variety of spreadsheet formats that have specific SSIS packages by including a column in that table to indicate which package should look at the entry; when each package's schedule job wakes up, it only looks for entries that it can handle.
    We looked into trying to trigger the SSIS package in real time from CF, and gave up because it was turning into a goobered-together solution with CFEXECUTES of SQL command line statements of SP calls.  So long as you and your users can live with the 15-minute latency (max) between pushing the button on the form and having something happen with their data, the polling solution works really well.  Some of the SSIS packages send a notification back to the user when their their spreadsheet is processed, or if it has a problem with the contents of the spreadsheet.
    SSIS is very capable at handling XLS and CSV files and processing them about a zillion times faster than CF is able to, and can handle all of the validation of the spreadsheet - that's important since you want to protect yourself and your data from users changing the spreadsheet layout.
    -reed

  • Import CSV into Oracle?

    Is there a simple script or series of SQL statements to import a CSV into either a new table or an existing table rather than using a utility? There must be some way to do it in SQL or PL/SQL.

    That's the problem with using tools, like TOAD etc. to help you do stuff, as it doesn't help you to learn the basics.
    Once you know how to do stuff from SQL*Plus then, fine, use a tool to do nitty gritty for you. The key to learning such a vaste area of expertise is to have a really good understanding of the basics first. So many people just use tools and struggle to do things because they just don't understand the underlying basics.
    External tables are almost as simple as creating a basic table but you specify where the data is coming from and what the layout of that flat file is. After that you can just query it.
    ;)

  • Importing Excel into DW

    I am trying to import the excel file, and be able to change the numbers.
    I have imported them via csv file and single file web page.
    I just can't get the functions to work.
    Any help would be appreciated.

    The functions will not work. When you create a CSV file, you are only transcribing the data, not the function. In addition, in a web page, you could only emulate these functions using custom JavaScript or server scripting. Sorry.

Maybe you are looking for

  • How to make Safari on iPad Mini Private and make the display the same as iPhone5 Safari App (iOS7)

    Started when I attempted to turn on private browsing on ipad mini (ios7) as I noticed I was able to do on the iphone5 (ios7) when I clicked the icon on the bottom right to view other tabs. When I press the button on the iPhone the current tab drops b

  • Oracle 11g - Memory used for sorting

    Hi everyone, I would like to know how I could analyze memory used for sorting in Oracle 11g. When I run the below query, it returns 1531381. select value from v$sysstat where name like 'sorts (memory)';But when I check sort_area_size parameter from v

  • Colormodel wrong when loading TIF

    I have a TIFF image which I can't correctly convert or display in Java. However, in any other image viewer (default windows, irfanview), it displays without errors. When I load the TIF file, it gives the folowing color model: #pixelBits = 32 numCompo

  • Mass Change of Functional Locations - error message "Objekt PM_MASS.....

    Hi Experts, We have activated autorization object I_MASS - to make it possible to carry out Mass Change on Functional Locations. The  menu patch are now visible - but I get error message "Objekt PM_MASS_TECH_OBJECTS is not maintained" How is that don

  • Version incompatibility

    Dear all, I have a valid backup of 10.2.0.4.0 database taken using RMAN (veritas netbackup )..I tried restoring this version database in 10.2.0.3.0 database.. it failed with the error version incompatible.. anyway can I restore 10.2.0.4. databsae in