HOWTO create in UNIX a Microsoft Excel-Sheet (with data from Oracle)


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting HOWTO create in UNIX a Microsoft Excel-Sheet (with data from Oracle)
# 1  
Old 06-22-2010
HOWTO create in UNIX a Microsoft Excel-Sheet (with data from Oracle)

Hi

HOWTO create in UNIX a Microsoft Excel sheet (with data from Oracle). At the moment I am making CSV files (using SQL statemens with || ';'), but search for more advanced formatting. Don't wish to use Perl.

cheers
# 2  
Old 06-22-2010
Set aside that there are several "Excel formats", as the thing chanes its output with every (sub-)release: the native Excel format is not standardized at all and many aspects of it are undisclosed information by Microsoft, so all the information about its format out there in the net are mostly the fruit of (more or less accurate) reverse engineering.

It is doubtful that there is any gain in converting the output to Excel format with any other tool than Excel itself - just feed it a CSV-file and hope for the best (as you should anyways, using M$$-Office).

If you still want to undergo the exertion, you might want to read this document:

http://sc.openoffice.org/excelfileformat.pdf

I hope this helps.

bakunin
# 3  
Old 06-22-2010
Excel can understand CSV quite well. Just make sure you import it with autodetection turned off, so that any data field that just might, possibly, squinting through a telescope on a dark night from 3 miles away, might just have the slightest resemblance to a date field doesn't get mangled into uselessness. In other words, the same problem Excel users face every day when trying to type in information. Don't you love excel?
# 4  
Old 06-22-2010
Hi Corona

There are free utilityies we found called dump_txt and dump_csv, which will, at least, simplify your building csv files for input to excel.

These are Oracle functions, and a google search should find them.

As a variation, I created a dump_xls - which actually builds a dump in xml output, suitable for automated input into xls in their 2003 version or above. It has the advantage of producing multiple worksheets in a single xls file (something you cannot do with csv)

You might try starting with the dump_csv and reverse engineer an excel spreadsheet saving it in xml output form.

No perl needed at all.
# 5  
Old 06-23-2010
I have and would use Perl. You can manipulate multiple sheets, format headings and columns and basically do anything that you could do if creating the spreadsheet in Excel itself.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Sql developer how to upload the excel sheet in Oracle table

I have some records to be updated in oracle table. I am using sql developer tool. could any one tell me how to update those records in oracle table. I am having excel sheet with those records. (4 Replies)
Discussion started by: ramkumar15
4 Replies

2. Shell Programming and Scripting

Summing up the data from different excel sheet into one excel sheet

Hi Folks, Can you please advise for any script in unix such that for example , i have 3 different excel sheet at the location /ppt/gfr/exc so the name s of the excel sheet are 1excel.xslx 2excel.xslx 3excel.xslx now in these 3 different excel sheet there is lot of data for example each... (3 Replies)
Discussion started by: punpun66
3 Replies

3. Shell Programming and Scripting

Save log data in excel sheet

Hello, I have the following data format in a log file : a : x1 b : x2 c : x3 d : x4 -------- a : x5 b : x6 c : x7 d : x8 so the same fields ( a ,b ,c,d) repeated many times in the same log file but with different "x" values (x5,x6,x7,x8). I need a script to save this data in an... (6 Replies)
Discussion started by: mm00123
6 Replies

4. UNIX for Dummies Questions & Answers

UNIX data to be updated to ms excel sheet

hi, i wanted to add unix data to be updated to the excel sheet. (3 Replies)
Discussion started by: rupesh.bombale
3 Replies

5. UNIX for Dummies Questions & Answers

Load UNIX data into excel sheet

Hi, i have some data in a temporary file in Unix (the data is taken from the result of an SQL query). Now i want to dump that data into an excel sheet. How to do that. Someone please advise. Thanks Regards, Vinit (3 Replies)
Discussion started by: vinit raj
3 Replies

6. Programming

converting data from excel sheet to oracle using toad

guys i have data in excel sheet , how do i convert that data to database table (2 Replies)
Discussion started by: Gl@)!aTor
2 Replies

7. Shell Programming and Scripting

Perl : not capturing all the data from excel sheet

Hi folks, I am working on assignment that captures all the records(2 columns one column contains names and other contain date of birth) from excel sheet stored in a directory and checks for current date and month. If it matches current date and month then the matched records are printed as... (1 Reply)
Discussion started by: giridhar276
1 Replies

8. Red Hat

HOWTO transfer Hosts in excel sheet to file in LINUX?

Hi guys! I have around 300 hostsname is excelsheet in one column. These hosts I want to add in one file in linux one after the another like hostname1,hostname2.hostname3, I don't want to waste enter it manually it very time consuming, so how to transfer these files from excelsheet to a... (1 Reply)
Discussion started by: manalisharmabe
1 Replies

9. Programming

How to create java based dictionary for mobile using data in microsoft excel?

i am having a ms excel file which contains 2 columns, I first column i added words, and in second column meaning to the word in the first column. I want to create a dictionary for mobile like nokia or any java based application running mobile. How it can be created as i, dont know the java... (1 Reply)
Discussion started by: Anna Hussie
1 Replies

10. UNIX for Advanced & Expert Users

how to read the data from an excel sheet and use those data as variable in the unix c

I have 3 columns in an excel sheet. c1 c2 c3 EIP_ACCOUNT SMALL_TS_01 select A.* from acc; All the above 3 col shoud be passed a variable in the unix code. 1.How to read an excel file 2.How to pass these data as variable to the unic script (1 Reply)
Discussion started by: Anne Grace
1 Replies
Login or Register to Ask a Question