Import Excel File into Oracle [duplicate] - excel

This question already has answers here:
Load Excel data sheet to Oracle database
(6 answers)
Closed 8 years ago.
I have an Excel file that I need to import into a (new) Oracle table. What is the best way to do this?

The simplest (technically) way is to export the contents as a CSV and use SQL*Loader to import it into the table. This link goes to the documentation for SQL*Loader, which will explain how to write a SQL*Loader control file.
If you need to automate the export to CSV this can be done through OLE automation or VBA code within the spreadsheet. You could also use VBA (shell) to execute the SQL*Loader command if you want to provide a facility for the end-user to initiate the load.

http://www.sharewareconnection.com/import-table-from-excel-for-oracle.htm

I'm pretty sure it's possible to set up an Excel file as an ODBC source, but don't ask me how to do that.
I generally just save the spreadsheet as CSV and import it using Oracle APEX's CSV import wizard.

If you need to perform any validation or cross-referencing on the data, I suggest using an entity relationship manager like Talend, etc. You can write scripts to do things like this, but a tool can make this a bit less painful.

Maybe this can help ?
http://oracleebusinesssuite.wordpress.com/2007/06/27/import-of-an-excel-or-any-other-file-external-data-into-oracle/
http://www.dba-oracle.com/oracle_tips_excel_spreadsheet.htm

Related

Insert data from a CANoe database to an existing Excel sheet

`Recently, I was given a task to automate the process of inserting some data of an ECU in CANoe into an already existing Excel sheet using CAPL. I am fairly new to this and wanted some help. I will be as elaborate as possible.
How can I create an link an env var to a database in CAPL/CANoe.
I have already creaed a panel with a button that should be assigend with the above asked env var. So, my question here is how can I access an already existing file that needs some data from this button? I mean CAPL does not allow excel format. How can I output some data to an existing excel sheet with the click of a button? How should I proceed to write the code for this?
CAPL has no API to communicate with Excel and/or print to Excel format.
You need to write your library to do it, or use an external script (think a python script, or something else) with a call to SysExec() in your CAPL.
To the best of my knowledge, there isn't an opensource solution ready.

How to log in and auto fill values into a 'drupal form' from an 'excel file'?

So, there is this website where I have to log in and insert values in the add content->person roles and I have to take values from an excel file. I tried entering the values in the database directly but got nowhere. The database is too randomly generated.
I want to know- how to go by this problem? I think python would be the best way but I am more comfortable with java. The images bellow will help understand the situation better-
The log in from:
The form to be filled:
Try using feeds module:
https://www.drupal.org/project/feeds
Install it on you site first of course. Or look for some similar import module. Maybe this one:
https://www.drupal.org/project/datasources
If nothing succeeds then try making import script on your own. You have to parse document (would be much easier to open it from excel and export as CSV if possible http://php.net/manual/en/function.fgetcsv.php) and have some loop to write content into Drupal system. Use Drupal's functions for that, do not directly write to database. It's not hard as it looks like:
https://www.drupal.org/node/1388922

Can Data Export from SQL Developer to Excel be scheduled?

I have to run almost 50 queries daily for daily reports and copy-paste the data into Excel sheets. Is there a way to schedule a job on SQL Developer that exports data from all the queries in an Excel Workbook?
You could link the excel spreadsheets to your queries so they automatically update themselves.
Insert > Data from External Source. I do this with SQL Server a lot, and you can do it with Oracle too if you know the connection strings.
I would comment, but I dont have the rep yet.
I would advise using your operating system to schedule the task. Assuming that this is Windows (as you want to write to Excel) then you can use Task Scheduler to set off a cmd script or powershell script which can call SQLPLUS passing in a parameter for the the sql file that you wish to run. It would not be too difficult to output this to a CSV file which can be opened in Excel. If you actually need to write the data to a .xlsx (or similar) file then there are options (e.g. Python libraries that can do this), but it will not be as straight forward.
I am not sure exactly what part of this you need help with, so can I suggest that you consider the steps below, if you want to proceed do some research and have an attempt at each step and then post a question for each that you are stuck on with details of what you have tried:
Schedule a job from your operating system;
Write a script to call SQLplus and execute a .sql file;
Change query output to csv and redirect to file (or find a way to write directly to an Excel file if this is what you need to do);

CakePHP 2.1 excel file export and import to database

I am using cakephp 2.1 and developing an application which needed more data. I want to use excel file for import and export. Please suggest me some solutions to get it done.
Use Microsoft's "CSV for Excel" for importing data. It's the same as a generic CSV but then with different delimiters. If you want to create complex Excel sheets, then you should use something like PHPExcell.
The -1 on your question is for asking it wrongly. A quick Google Search would yield the same result as me typing this in...

SQLite data into Excel?

I wish to pull data from a large SQLite database into Excel. I'll want to do so quite interactively so don't want to export CSVs or anything like that. I have seen the sqliteodbc website on ch-werner.de but does that work with Excel 2007?
What are the best options?
Actually I have gone through the ch-werner.de file mentioned in the question and it works well, even in Excel 2007. Simply make sure to register your database using the ODBC option in the Windows control panel.
Excel recognizes XML and the format is something like this:-
<Workbook xmlns=\"urn:schemas-microsoft-com:office:spreadsheet\" xmlns:x=\"urn:schemas-microsoft-com:office:excel\" xmlns:ss=\"urn:schemas-microsoft-com:office:spreadsheet\" xmlns:html=\"http://www.w3.org/TR/REC-html40\">
<DocumentProperties xmlns=\"urn:schemas-microsoft-com:office:office\">
You might want to create a sample of the output you want in Excel, save it as XML data. Open your regular text edit, and voila... you got the XML skeleton.
Now programmatically converting SQLite to Excel, that's another thing. You didn't mention what language you're conversant with.

Resources