ODI reading Excel via ODBC on Linux
I've got ODI loading data from Excel via ODBC with everything running on Windows, and it runs fine!
But will this work when I run ODI on a Linux platform? Will I have to buy some kind of ODBC driver for Excel under Linux? Has anyone done this before?
Any help gratefully received!
Thanks
A
There exists a native JDBC driver for excel, it is a sourcefourge project. This allows you to read excel data irrespective of platform through JDBC rather than having to use the JDBC/ODBC bridge.
Similar Messages
-
Hi,
I have ported a aloder LV project from a Win3.11 engine
to a Win NT4
This project accesses .xls data via ODBC
Question : in ODBC access setting, folder "User DNS"
you must select a Workbook ( a *.xls file )
This means it accesses only this named file.
How to make ODBC access any in LV specified file without
reconfiguring the ODBC Data Sources ?
Or can LV rename a *.xls to a given constant name ? this would
solve my problem too
Thanks
Jean-LucMaybe this helps, allthough it's no exact awnser to your question (I
think..).
You can create, modify and read the ODBC sources through the registry:
for user dsn:
HKEY_LOCAL_MACHINE/SOFTWARE/ODBC/
All the available drivers are in ODBCINST.INI, all sources are in ODBC.INI.
You could modify a ODBC NSD's source file to point to the desired file.
Use regedit to debug.
Hope it helps,
Wiebe.
"Jean-Luc" wrote in message
news:3c56de68$0$4607$[email protected]..
> Hi,
>
> I have ported a aloder LV project from a Win3.11 engine
> to a Win NT4
>
> This project accesses .xls data via ODBC
>
> Question : in ODBC access setting, folder "User DNS"
> you must select a Workbook ( a *.xls file )
>
> This means it accesses only this named file.
>
> How t
o make ODBC access any in LV specified file without
> reconfiguring the ODBC Data Sources ?
>
> Or can LV rename a *.xls to a given constant name ? this would
> solve my problem too
>
> Thanks
>
> Jean-Luc
>
> -
Odi 10g excel jdbc to oracle on linux server
Hi everyone,
I want to read excel file to insert Oracle DB.I know On windows system I should ODBC data server using Microsoft exel driver.But On linux server How can I do that?
I have read and downloaded this document.
http://odiexperts.com/odi_jdbc_excel/
and this one
ODI reading Excel via ODBC on Linux
Bu Maybe it can be problem that copy JDBC excel jar file to agent file in linux server odi.(in odiexpert.com.it is written so)
İs there any solution read excel file on linux server?
Can anyone help me?
RegardsThere is no other way as this is a os specific issue. Better you go for JDBC drivers processing excel file like Dev has developed or some other vendors are selling it.
Another option could be create one agent in the windows system where you are getting excel files and process them using that agent.
Bhabani -
Error when connecting to SQL*PLUS via ODBC to Excel
OS: Windows 2000 Professional
Oracle DB: 9i release 2
SQL*Plus: Release 9.2.0.1.0
MS Excel: 2000
===================
When I try to connect to SQL*PLUS via ODBC to Excel with "connect scott/tiger@odbc:libro" I get the following error:
ORA-03121: no interface driver connected - function not performedSQL Server objects are commonly case sensitive, so please surround the column and table names by double quotes:
SELECT "Type_PK_ID" FROM "dbo"."boundaries"@sqlserver
SIDE NOTE: Oracle is by default not case sensitive and all object names are stored in upper case. To get case sensitive objects they need to be surrounded by double quotes. In HSODBC case sensitive table names were commonly found even when not surrounded by double quotes as the gateway used internal SQL Server methods to find the correct table nameing - this method does not work for column names. So to be able to query a case sensitive column it needs to be surrounded by double quotes and the table name must be written as stored in the source database. -
Excel import on Oracle Linux - How to create an ODBC Connection
Hi,
We have Oracle BI EE on Oracle Linux. We need to create an ODBC DNS and import tables to Admin tool.
How would you create a ODBC connection inside Linux to Microsoft excel file using unixodbc. What drivers we need.
Please let us know.
Thanks!
Nilaksha.See this post here: Re: [NQODBC][SQL_STATE: HY000][nQSError: 100[nQSError: 43093][nQSError: 16023]
You need to find an Excel ODBC driver for Linux. The ones that come with OBIEE won't read Excel as far as I know.
For info on creating an ODBC connection for OBIEE on Linux check the manual or search this forum. You don't need unixodbc for it. -
URGENT - Unable to link to VFP 9 tables in Access and Excel 2007 in Windows 7 32-bit via ODBC
I have 3 VFP 9 databases and am able to connect via ODBC to 2 of the 3 in Access '07. I can open all 3 the dbf's via FoxPro just fine and 2 months ago I could link to all 3 databases via ODBC with no troubles. I know the problem child (specifically
Accpac/Sage acctg) is intact. Since I had to reformat my computer, I've been able to relink to everything except this one database. Any suggestions as to why I can't make the link work?
As this is our previous system that is no longer used, I really need to get this link set up for queries and reports in Access.
Thanks,
Kristi
Thanks!This does not appear to be related to sql server, so posting to an access forum would likely be more effective.
-
Can SQL*Plus connect via ODBC to NON-Oracle data source?????
I am struggling to understand something. I downloaded Oracle instance client, SQL*Plus and ODBC components with the hopes of being able to connect via SQL*Plus to a non-Oracle/ODBC compliant database.
Is this possible? Or is SQL*Plus ability to connect via ODBC only to an Oracle data source??
Thanks...sqlplus only connects to oracle. you can use the odbc driver from instant client to allow other applications to access oracle via odbc (e.g. excel). if you need to connect to non-oracle odbc database (ms-access, foxpro, etc.) you need odbc driver for those sources.
you can use sqldeveloper to connect to oracle and non-oracle databases. check otn product info for sqldeveloper for more details. -
Trouble in extracting Via ODBC to Oracle or Access - Numbers Change
I am running a report that I only want the group records printed. One of the group fields shows a sum of a function from the detail records.
The following function sj_rec is on the detail record
WhilePrintingRecords;
Numbervar clm_sj_amt;
if {SJE_RECORD.SJER_TYPE} in ["S","J"] then
clm_sj_amt := clm_sj_amt + {SJE_RECORD.SJER_AMOUNT};
if {SJE_RECORD.SJER_TYPE} = "R" then
clm_sj_amt := clm_sj_amt - {SJE_RECORD.SJER_AMOUNT};
clm_sj_amt;
Then on the Group Record we have disp_sj function
WhilePrintingRecords;
numberVar clm_sj_amt;
clm_sj_amt;
On the crystal report every thing looks fine.
When I extract the Information Via ODBC to Oracle or Access the numbers change. If I extract to Excel it is fine.
Can you please explain why I canu2019t get on oracle the exact info displayd in crystal ???Please re-post if this is still an issue to the Data Connectivity - Crystal Reports Forum
Likely differences in how ODBC links and indexes the tables. -
How to read Excel file in java
Respected sir/madam
I want to read the values from Excel file in Java program. How can I do that. When I searched over the net I came to know that you can treat Excel file as a Database and write the code as u write for making DB connections .
I did that but i am getting the following error ..can anybody please help..
This is the code what i have written
import java.io.*;
import java.sql.*;
public class ReadExcelFile {
Connection c;
Statement stmnt;
public void checkABA_Number()
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
c = DriverManager.getConnection("jdbc:odbc:ExcelTest","",""); // ExcelTest is the DSN name
stmnt = c.createStatement();
ResultSet rs = stmnt.executeQuery("select * from abadata"); // abadata is my Excel file name
while(rs.next())
System.out.println(rs.getString(1)+" "+rs.getString(2));
}catch(Exception e)
System.out.println(""+e.toString());
finally
try
stmnt.close();
c.close();
catch( Exception e )
System.err.println( e );
public static void main(String[] args)
new ReadExcelFile().checkABA_Number();
My Excel file starts from the first row and first column and also the first row contains the names of the column.
It give me the following error..
java.sql.SQLException: [Microsoft][ODBC Excel Driver] The Microsoft Jet database engine could not find the object 'abadata'. Make sure the object exists and that you spell its name and the path name correctly.
How can I deal with this.?I have properly selected the worksheet while giving the DSN . Is there any versionig problem with Excel or some drivers are in appropriate..and yes i chose Microsoft Excel Driver (.xsl) from ODBC .
I created System DSN.
Can anybody please help me with this ? I will be very gratefull for replies
Thanks in advancehere is the code to read excel file
public void readexel(String filename)
Connection c = null;
Statement stmnt = null;
try
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
c = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ=" + filename);
stmnt = c.createStatement();
String query = "Select * from [Sheet1$]" ;
ResultSet rs = stmnt.executeQuery( query );
while( rs.next() )
System.out.println( rs.getString(1) );
catch( Exception e )
System.err.println( e );
} -
MARS connection to SQL Server in JAVA via ODBC
Hello.
I've got this problem.
I'm managing an application JAVA/JSP, based on a 3-tier architecture.
The connection to the database is performed via JDBC/ODBC, in order to work with different DRMS.
Everything is ok when connecting to Oracle or MySql via JDBC, but when we connect to SQL Server via ODBC we get this error: "ODBC SQL SERVER - Connection is busy with result for another stmt".
That's why the application executes more than one SQL statement, opening a ResultSet object, under the same connection.
This is the way the application is performing, and we can't change it.
I've read that on SQL Server 2005 is available a new connection parameter called MARS (Multiple Active Result Sets), that should resolve this problem.
But I was not able to find any way to invoke this type of connection in JAVA for an ODBC connection! (I've found only tips for .NET...).
Many thanks if somebody can suggest me how to resolve this problem.
It's urgent!Use JDBC. Get a SQL server JDBC driver. Unfortunately I don't know of any free ones, but one I have used in the past is from http://www.jnetdirect.com/
Maybe you can search in the JDBC forum for the answer - Its a common enough question I know. -
Open .csv file in excel via Labwindows
Hello
After writing all my data in a .csv and closing it (using fclose), I would like to open this .csv file using Excel via a Labwindows command so that the user can see all the data. Is that possible? If yes, which function should I use?
ThanksThe simplest way of all is to issue the command OpenDocumentInDefaultViewer (): it should automatically open Excel with the document in it. It is equivalent of double-clicking the file in windows explorer.
If it does not opens the file, you must verify that in windows CSV file extension is correctly associated with Excel application.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
How query data in pl/sql via ODBC from DB2 on AS400
Hi,
What's the most easy way to do some selects on tables in an external (non-oracle)database via odbc?
I only need selects, no dml-statements like inserts en updates...
Where can I find more information about this subject?
FilipYou need to use Oracle Heterogeneous Services. Firstly you have to obtain and configure DB2 ODBC drivers. I got mine from ibm.com (not free) but I am sure there are some third party vendors out there. I don't know much about DB2 so I can't help you with the configuration (I asked a DB2 DBA to help me with that part).
The rest is just setting up Oracle HS and creating the DB link. The following steps should help but there are much more detailed manuals for Oracle HS on http://tahiti.oracle.com.
Listener Configuration
Add the following entry into the SID_LIST part of the listener. The SID_NAME will be used in the heterogeneous services configuration
(SID_DESC=
(SID_NAME=db2)
(ORACLE_HOME=D:\oracle\ora92)
(PROGRAM=hsodbc)
Restart the listener.
Heterogeneous Service Configuration
Under ORACLE_HOME\HS\admin create the following text file called initDB2.ora (the DB2 part should match the SID_NAME used in the listener configuration).
Put the following line in the text file (the DQ01 is the name of the DB2 ODBC System DSN):
HS_FDS_CONNECT_INFO=DQ01
Client Configuration
The client side refers to an Oracle database that will use the heterogeneous gateway.
TNSNames Entry
Put the following entry in the tnsnames.ora file (the SID part should match the SID_NAME in the listener configuration):
DB2.telkom.co.za =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=cntrra20-esdt00)(PORT=1521))
(CONNECT_DATA=(SID=db2))
(HS=OK)
Database Link
Create a database link that references the new tnsnames.ora entry:
create public database link db2
connect to oratst identified by oracle using 'db2';
Test the database link. -
DI: Unable to read Excel source
Hi,
We use BusinessObjects Data Services XI 3.1, version 12.1.1 on UNIX Server.We have created BoExcelAdapter to read Excel source and we were not facing any issues in reading the Excel files so far.
Yesterday when we ran the job to read a new excel file, we received the error message 'Could not find worksheet ... in file ..'.
But the excel file has the specified worksheet.
Could you please guide me as to what has caused such an error and how to resolve this.
Thanks,
RaajMaheeHi RaajMahee
Cause
On Unix, the excel adapter uses the apache poi browser to read the spreadsheet.
When the adapter tries to open the spreadsheet with the poi api, the poi api chokes and gets an exception of ArrayIndexOutofBound.
POI library does not support a feature found in the workbook
Resolution
This problem had already been addressed in the latest poi patch release, poi-3.2-FINAL-20081019.jar.
1. Download the attached file poi-3.7-20101029 and rename it to poi-FINAL-3.7-20101029.jar
2. Copy the poi-FINAL-3.7-20101029.jar file to your $LINK_DIR/lib directory of your Unix/Linux server.
3. Through the Data Services Management Console, stop the excel adapter.
4. Using the Data Services Management console, modify the Excel Adapter's class path and replace the reference to poi- 2.5.1-final-20040804.jar with its full path with poi-FINAL-3.7-20101029.jar with its full path.
5. Save and restart the adapter.
6. Try again processing the Excel file with formulas.
if you want to download the poi-3.7-20101029 file just follow the link
[https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3132393634353426]
if you are unable to access this link(Why because it ask login credentials) just put your e-mail and i will send the zip file.
Thanks
Prasad -
Hi,
Since recent (LMS3.2) Cisco released the Open Database Schema support. In the guidelines I find info/procedures to access the database remotely via ODBC. However only Solaris/Solaris Windows/Windows is described. Is there any info how I can access the Database (LMS installed on Sol10) remotely via a Windows system ?
JanThe instructions for Windows/Windows apply, but you'll need to first get the necessary DLLs to allow for database access. The easiest way to do this would be to install Common Services from the LMS 3.2 DVD on a Windows 2003 or 2008 machine. Then extract the DLLs, and uninstall Common Services.
It may also be possible to start the installer, have it extract the install bits to the TEMP location, then you can pull the DLLS from there. However, I have not tried this for obtaining database DLLs (only device packages). -
Read Excel sheet in KM using API.
Hi all,
I kept one Excel sheet (Xsl file) in KM. I want to read that Excel (Xsl) file by using API in NWDS.
How to read ? Is this possible
Helpful answer will be appreciate
Thanks & Regards
Thillai JHi Thillai
It is possible to read the files using any of the Java Excel API's ( like POI or JExcel or JDBC-ODBC bridge). It depends on your convenience and requirement as to which one to choose for.
[POI|http://poi.apache.org/] is seem to be widely used.
In your case, the sequence of actions will be as follows:
1. Access the resource and get the content.
2. Get an InputStream from the content object.
3. Next, using this InputStream, the data can be read.
4. Refer to [this|http://www.javabeat.net/articles/41-apache-poi-reading-excel-sheet-using-java-1.html] link as to how read data. (It is assumed that you have successfully retrieved the InputStream in Step 2)
Hope that helps.
Thanks
Deepak
Maybe you are looking for
-
Cross farm service applications
Hi. I have a couple of questions regarding the cross farm service application set up 1) When we set up the cross farm service applications why the consuming farm needs to share the STS certificate also with the publishing farm why not only the ro
-
Dynamically calculate the value
Dear all, Hope you are well. i am in need a feature in OAF pages. suppose i have fields like advance_amount,total_amount,return_amount,amount_to_be_taken when employee log in this page advance_amount will automatically loaded and based on input of to
-
My iMac keeps freezing and I need to do a repair disk. However, OS Lion did NOT come with a disk. How do I boot and do a repair disk? Sometimes it gets to the login window but every time I click on my account it freezes. Sometimes it doesn't even get
-
Help i keep getting connection error 0xE8000003 and cant seem to be able to get ipad to sync
-
How can I stop Firefox from making files read only?
Firefox (and not IE or Google Chrome) makes certain files (Movie Magic Screenwriter files, for example) read only. Is there a way to prevent that?