Exporting data from a multiple worksheet excel to oracle database.
Hi,
Am having a very big problem,i have to export data from excel to database.My excel is havin multiple worksheet.
I thought of most of the options nothing is suiting my layout.
SQL loader ,can't use due to multiple worksheet.
HSServices can;t use because my column headings are row wise,and the excel start with a big Heading rather than having column headings.
UTL_FILE can't use beacuse of multiple worksheet,and frankly speaking i don't know how to use utl file with excel to read paticular cell in excel.
Thanks
First of all: this is a forum of volunteers.
So no one is obliged to respond to you.
Therefore 'urgent' does not exist in this forum, and labeling your request as 'urgent' is considered rude by many. If it is really that urgent, submit a prio 1 request at Metalink.
Secondly, I don't think you thought of most of the options.
Yes, you can use SQL*Loader as you can dump each individual worksheet to a separate CSV file.
Also, you didn't consider ODBC. If ODBC in Excel is too cumbersome, you can use MsAccess to hook the Excel sheet in Msaccess, connect to the database using the Oracle ODBC driver and design an ordinary append query,
Obviously, you would need one query per worksheet.
Hth
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
Export data from an iView to Excel, get a login screen displayed in Excel
Hi
I'm trying to export data from a tableview to excel, I followed the instruction posted by Detlev Beutner, created a class extends AbstractPortalComponent, and overwrote the doOnNodeReady:
HttpServletResponse response = request.getServletResponse(true);
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition", "filename=\"text.xls\"");
I did write some test output in doContent:
aResponse.write("Filed11,Filed12,Field13");
aResponse.write("Field21,Field22,Field23");
I was hoping to see the excel to display the content "Field11 Field12...", but I got a portal login screen displayed in Excel.
Does anyone have the same experience and and idea on this?
Thanks
YutongSure, here is the sample code for method doOnNodeReady
protected void doOnNodeReady(IPortalComponentRequest request,
IEvent event)
//set http content type to excel format
HttpServletResponse response = request.getServletResponse(true);
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition", "attachement;filename=\"abc.xls\"");
java.io.PrintWriter out = response.getWriter();
// print out the header
out.print(headerSubject + "\t");
out.print(headerDueDate + "\t");
// then print out your data
out.close(); -
Error while exporting data from sql server to excel
Hi,
I am trying to export data from sql server to excel.
The query that I used is s follows
INSERT INTO OPENROWSET( 'Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\Folder1\abc.xls','select * from [Sheet1$A1:IV65000]')
select
column1,column2.... from Table1
I get the following error message while doing so..
String or binary data would be truncated.
The statement has been terminated.
One of the column's holds data more than 225 characters.
What is the way to correct this, i want the whole data of the colum in the excel sheet.I haven't had great luck with the INSERT INTO OPENROWSET method. Can you try one of the many samples from one of these 3 links?
http://www.excel-sql-server.com/excel-sql-server-import-export-using-vba.htm#Excel%20Data%20Export%20to%20SQL%20Server%20Test%20Code
http://www.mssqltips.com/sqlservertip/1540/insert-update-or-delete-data-in-sql-server-from-excel/
https://www.simple-talk.com/sql/database-administration/getting-data-between-excel-and-sql-server-using-odbc--/
Knowledge is the only thing that I can give you, and still retain, and we are both better off for it. -
Is there a way to export data from a numbers worksheet to address book
Is there a way to export data from a numbers worksheet to address book
Yes. Address Book provides help for this operation:
-
How to Export data from a Table to Excel using PL/SQL Code
Hi,
I need to export data from a table to the excel sheet using PL/SQL script.
could you pls provide with custom codes or sample procedures.
Bobbyhttp://asktom.oracle.com/pls/ask/f?p=4950:8:7947129213057862756::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:728625409049
-
Exporting Data Quality Statistics Into An Excel File Or Database
Hi,
I would like to ask if it is possible to export the data profiling statistics into an excel file / flat file or a database table.
The output required by our development team is that we would like to be able to manipulate and review the data profiling outside of the Data Quality Services User Interface.
I'm aware that after the cleansing of a specific set of data is that you can save/export the output results into an excel file or database, however the feature I'm looking for is for the data profiling statistics itself.
Mostly information on the knowledge base. Specifically, how many new records this specific column has and how many unique data and invalid data this column has and etc.
The reason for this is that so we can control and track the data profiling information and be a bit more flexible in creating reports and presenting the data. Using the DQS user interface would not suit our needs
for the project.
Sorry if this has been asked before but i've tried searching around and couldn't find any information regarding this functionality.
Thanks!I'm not too sure where they are stored, but you could use the directories shown in transaction AL11 so find them.
-
SSIS: Export data from ODBC source to Excel only 5000 rows at a time
Greetings,
Im inserting data into Excel using SSIS.
Im getting the following exception:
'[Excel Destination [32]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft Office Access Database Engine" Hresult: 0x80004005 Description: "Spreadsheet is full.".'
I did some research using the following link:
http://office.microsoft.com/en-us/excel-help/excel-specifications-and-limits-HP010073849.aspx
It states that you can populate the maximum of 1,048,576 rows by 16,384 columns
The data i am importing into Excel is only about 100,000 rows by 5 columns
After doing some research I am now aware that this is to much data for Excel to handle at one time. I was advised to lower the amount of rows SSIS is exporting into Excel........How do I lower the amount of rows to 5,000 at a time is SSIS?Having the maxbufferrowsize
But I have a doubt that it is related. You probably max up the allowed size for your version of Excel.
Arthur My Blog -
Import data from a Fixed Length File into Oracle database
Hi,
I would like to import data from a Fixed Length text file into a table using HTML DB application.
As of now, i have a .sql file(that uses external table) to import the data into Oracle tables
I would like to integrate this in my HTML DB application so that the user can directly import the data into the table.
Sample data
XXXYYYYZZZZZ
Data should be read to table that has
Col1 Col2 Col3
XXX YYYY ZZZZZHi,
I would like to import data from a Fixed Length text
file into a table using HTML DB application.AFAIK, fixed length imports are not something you can do directly with the HTML DB tools or available APIs.
As of now, i have a .sql file(that uses external
table) to import the data into Oracle tables
I would like to integrate this in my HTML DB
application so that the user can directly import the
data into the table.Any fixed-length data needs to have a specification associated with it that indicates which character position begins a new column and what each column represents. Some also include what datatype should be used for each of those.
If you really want to do this I would suggest that you create a table that you can store the file spec in. It would probably have columns for field name, start position, length or end position, datatype and any alias/column name you might want to apply. You would then use this table in a PL/SQL procedure (probably a package with the main processing procedure and various supporting procedures/functions) to read the file into memory, apply the file spec to each line and then do inserts into your table.
Obviously, this is just a concept or strategy. Implementing it will depend on your PL/SQL skills and determination. If you want to pursue this strategy I'm sure you can find some jump-starts by doing a search on the PL/SQL forum.
This may not sound like an answer - but the answer is you need to code it to fit your requirements. Hope that helps.
Earl -
Problem in exporting data from alv output to excel
Hi,
I had developed a report which has ALV report output.It is working fine and i am facing problem that when i am exporting it to the data to excel,it is not displaying the whole data in it. I am using reuse_alv_grid_display function module.
Waiting for a positive response.
Thanks & Regards,
Rickky
Moderator Message: FAQ. Please search for available information before posting.
Edited by: kishan P on Nov 8, 2010 12:34 PMIt is highly likely that the way you have built your field catalog is causing some data to drop on the export to excel. I have had this problem before. Check the fields in your fieldcat that are not working vs the ones that are working.
-
Exporting filterded data from a view to excel
I have a requirement, where i have to export data from a list to excel after applying some filter to it.
Say i filter the view by selecting employee dept="Teaching", now i want to export only the filtered rows to excel.
Is there any way to achieve this.
Thanks in advance.Hi,
You can create a view with required filters. Then you can export to excel after switching on to filtered view.Refer following link to create filtered view.
http://office.microsoft.com/en-in/sharepoint-workspace-help/create-view-filters-in-a-lists-tool-design-in-sharepoint-workspace-2010-HA010336352.aspx
Hope it helps!
Avni Bhatt -
BI 4.0 sp 6 service name to export data from webi to excel
Hi there,
I'm using BI 4.0 SP6 and I was just curious to find out which servers/services are invoked while exporting data from WebI report to Excel?
Thanks in advance.
Regards,
samiqueCheck below section in the Admin guide for this information.
Architecture\Process Workflows -
Export data from a table (not a bi query) to pdf
Hi experts,
I would like to know the way to export data in VC 7.0 from a table to a pdf. This table is generated NOT from a BI query but from an SQL using connection to Oracle DBMS.
Thank you all
AlessandroHi,
Use this link:[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123]
and Go through he below thread.
[Re: Export data from visual composer to excel]
Regards,
Govindu
If helpful reward points -
Unable to export data from Web Access Data Sheet in Sharepoint to local excel or access file
Greetings and good morning.
I'm going to start off in broad terms with this question because I'm not 100 percent sure what information to provide.
Long story short, we've got a Web Access Data Sheet list hosted in a Sharepoint 2010 environment. It is accessed and used by multiple people throughout the day. It contains several thousand line item entries. I'd call it a large data sheet.
I think the size of the data sheet is casuign some instability in the list. I'd like to be able to export a defined range of data from the list into a local excel or access file. After that, I'd delete the stuff on the Access list to improve performance.
But...when I attempt to use the Sharepoint Action bar to export - Excel locks up/crashes. If I try to export to Access, I get a similar issue.
Any ideas? Could anyone begin by telling me what other information is required?Hi,
If you would like to export data from Access Web Database in SharePoint 2010, you could go to Design With Access page in Settings. The url in my environment is http://sp/tt/_layouts/accsrv/ModifyApplication.aspx . Then choose the Table and export it to Excel
or Modify it in Access.
Regards,
Rebecca Tu
TechNet Community Support -
Export data from block to excel.
Hi
Does anybody know how I can export data from oracle forms to an excel worksheet. I need to provide a direct interface for a user where he fetches the data into the block and by just click a button the data from the block should go to an excel sheet.
Thanks in advance
-SamsamSomething along the following lines should help you in you are Client/Server. If you're on the Web then make sure you have WebUtil set up and add "CLIENT_" to all the OLE2 calls.
PROCEDURE P_EXCEL IS
application ole2.Obj_Type;
workbooks ole2.Obj_Type;
workbook ole2.Obj_Type;
worksheets ole2.Obj_Type;
worksheet ole2.Obj_Type;
args ole2.List_Type;
cell ole2.Obj_Type;
j INTEGER;
k INTEGER;
file_name_cl VARCHAR2(32767);
item_prompt VARCHAR2(32767);
user_cancel EXCEPTION;
BEGIN
-- open the java save file dialogue box
file_name_cl := GET_FILE_NAME('H:\', 'file_name.xls', 'XLS Files (*.xls)|*.xls|', NULL, SAVE_FILE, TRUE);
file_name_cl := SUBSTR(file_name_cl,1,LENGTH(file_name_cl));
IF file_name_cl IS NULL THEN
RAISE user_cancel;
END IF;
application := ole2.create_obj('Excel.Application');
workbooks := ole2.Get_Obj_Property(application, 'Workbooks');
workbook := ole2.Invoke_Obj(workbooks, 'Add');
worksheets := ole2.Get_Obj_Property(workbook, 'Worksheets');
worksheet := ole2.Invoke_Obj(worksheets, 'Add');
go_block('EXPORT_BLOCK');
first_record;
j:=1; /* Represents row number */
k:=1; /* Represemts column number */
/* Add the column headings using item prompts */
FOR k IN 1..10 /* Block has 10 visible columns */
LOOP
item_prompt := get_item_property(:SYSTEM.CURRENT_BLOCK||'.'||:SYSTEM.CURRENT_ITEM, prompt_text);
args:=ole2.create_arglist;
ole2.add_arg(args, j);
ole2.add_arg(args, k);
cell:=ole2.get_obj_property(worksheet, 'Cells', args);
ole2.destroy_arglist(args);
ole2.set_property(cell, 'Value', item_prompt);
ole2.release_obj(cell);
next_item;
END LOOP;
j:=j+1; /* Add to rowcount so that data won't overwrite column headings! */
LOOP
/* Add in all the data */
FOR k IN 1..10 /* Block has 10 visible columns */
LOOP
IF NOT name_in(:system.cursor_item) IS NULL THEN
args:=ole2.create_arglist;
ole2.add_arg(args, j);
ole2.add_arg(args, k);
cell:=ole2.get_obj_property(worksheet, 'Cells', args);
ole2.destroy_arglist(args);
ole2.set_property(cell, 'Value', name_in(:system.cursor_item));
ole2.release_obj(cell);
END IF;
next_item;
END LOOP;
j:=j+1;
IF :system.last_record = 'TRUE' THEN
exit;
ELSE
next_record;
END IF;
END LOOP;
ole2.Release_Obj(worksheet);
ole2.Release_Obj(worksheets);
/* Save the Excel file created */
args := ole2.Create_Arglist;
ole2.Add_Arg(args, file_name_cl);
ole2.Invoke(workbook, 'SaveAs', args);
ole2.Destroy_Arglist(args);
/* release workbook */
ole2.Release_Obj(workbook);
ole2.Release_Obj(workbooks);
/* Release application */
ole2.Invoke(application, 'Quit');
ole2.Release_Obj(application);
EXCEPTION
WHEN user_cancel THEN
RAISE;
END; -
Export data from forms to excel
HI
In my application im trying to export data from forms to excel.Everything works fine.First of all im using get_file_name for selecttion of file and passing it to ole2 package as follows
FILENAME := GET_FILE_NAME(File_Filter=> 'XLS Files (*.xls)|*.xls|',dialog_type=>SAVE_FILE);
ARGS:=OLE2.CREATE_ARGLIST;
oLE2.ADD_ARG(ARGS,Filename);
OLE2.INVOKE(WORKSHEET,'SAVEAS',ARGS);
The problem is if i select an existing file the get_file_name itself raises one message ".....file already exists Replace an existing file?"
Similarly the excel also also raises the same message "".....file already exists Replace an existing file?".I want to suppress atleast one of them? Could anyone help for this problem?
appreciate ur help
THANKSLooks like...
ole2.set_property( ex_app, 'DisplayAlerts', false );
where "ex_app" variable Excel Application -
ex_app:= ole2.create_obj('Excel.Application');
and more Question:
When i close excel app - in process viewer i see "excel.exe"
ole2.release_obj don't work :(
Maybe you are looking for
-
Compress infocube with zero elimination
Experts, Is that true you should always check "with zero elimination" when you compress infocubes? I was reading the famous SAP doc "How to Handle Inventory Management Scenarios in BW", the screen shots for cube compression does not have that checkb
-
Hi Everyone! I'm, new to this place. I have an app I had published and unfortunately I am experiencing some issue with it. On a device the app was purchased, continued to behave as a trial version and the Store offered to purchase again like the purc
-
Changing default umask value.
how t ochange the default umask value. umask commands changes the value only for a perticular session. Which file(s) must be modified to alter default umask during boot time. I dont want to write anything in .profice or .bashrc. I want to change the
-
How can I show my mail count that I have saved in my folder when entering my mail box?
I want to display my overall mail count when I open my mail. Even when I saved them.
-
Best Practice EPA files...
Hi, i found the the following EPA files from SAP Best Practices for Portals- V1.70 : 1)BP_ALL.EPA 2)BP_EC_ALL.EPA 3)BP_ECC_BL.EPA ....The question is that whether i can use the "iviews" in these files to give to my users ...or whether this iviews a