Microsoft ODBC for Oracle and JDBC - oracle

Is the Microsoft ODBC driver for Oracle compatible with JDBC? If so, could an example be given?

Java ships with a JDBC-ODBC bridge, so if you can make a connection with ODBC, you can use the JDBC-ODBC bridge. However, the Oracle JDBC driver is to be preferred, since this is software provided by Oracle for connecting to their database. There is a driver for each database server version. The Oracle JDBC driver is a free download (after you create an account)

Related

What Protocol does Oracle client use when connecting PowerBI to oracle database?

I have installed the Oracle client on my server & configured the TNS as per the database hosters instructions.
Powerbi can now connect to the Oracle datasource.
Id like clarity regarding what method PowerBI is connecting to the oracle source.
For example, I can connect to oracle via ODBC without using the Oracle Client.
Id like to know what protocol the oracle client is using and what are the benefits of using it over ODBC?
It looks like Power BI recommends installing the ODAC runtime for your environment. There is no alternative option. You might be asking why Power BI uses the Oracle ODP drivers instead of the Oracle ODBC driver - I'm pretty sure the answer is that it's faster and supports more Oracle features, since it doesn't have to implement a bridge.
If you're frustrated with the large size of the Oracle Client or full ODAC developer downloads, you might be able to just install the ODAC XCopy runtimes, which are much smaller. (32-bit, 64-bit)
To answer your question about protocols, as far as I know, every client uses the Oracle Net component of the proprietary Oracle Net Services network stack to connect the client to the server.
Then the client sends commands over the network connection. Again, as far as I know, most clients use the low-level OCI library to do this.
There are a lot of different clients built on top of OCI:
SQL*Plus
SQL*Loader
Datapump
Oracle Instant Client
Oracle Client (ie, "Thick Client")
Oracle JDBC OCI driver
Oracle ODBC driver, and other drivers for Microsoft products (ODP.NET unmanaged, ASP.NET, OLE DB)
There's a few exceptions:
Oracle JDBC Thin driver (entirely Java code)
Oracle ODP managed driver (entirely .NET code)
There is also a Microsoft ODBC driver for Oracle, although Microsoft explicitly says to use the Oracle driver instead. It doesn't support most modern Oracle data features ("Unicode data types, BLOBs, CLOBs, and so on").

Oracle ODI JDBC driver for SQL Server 2005 connection error

I am using Oracle ODI 11.1.1.7 version on a Windows 7 64bit machine. I want to connect to a SQL Server 2005 database using the driver com.microsoft.sqlserver.jdbc.SQLServerDriver.
I have downloaded and installed from Microsoft the drivers
Microsoft JDBC Driver 4.1 for SQL Server
and also
Microsoft JDBC Driver 4.0 for SQL Server
But I still have a connection error:
ODI-26039: Connection failed
Java.lang.RuntimeException: java.lang.IllegalArgumentException: Could not load JDBC driver class [com.microsoft.sqlserver.jdbc.SQLServerDriver]
Did anyone else experience this issue?
Thank you in advance.
Kindly check this url. You need the specific driver depending upon the version of JDBC. You need to elaborate more on your question.
https://msdn.microsoft.com/en-us/library/ms378422(v=sql.110).aspx

10.2g to 11.2g and Microsoft ODBC for Oracle issues

My team are trying to migrate from ORACLE 10g to 11g. These are our system specs:
Our current production server:
ORACLE 10.2g
ORACLE Application Express(3.0)
Apache
Red Hat 64 bit
Our new server (not yet in production):
ORACLE 11.2g
ORACLE Application Express (4.1.1)
ORACLE HTTP Server
Red Hat 64 bit
We have managed to setup 11g, install APEX 4.1 and apply the recent patchset.
The only bit that's delaying us with our migration is that our business users have access to Crystal Reports XI, MS Access/Excel 2003 whcih they use to connect to our database. A typical user has Window XP SP 3 (32bit) operating system. At the moment we are using Microsoft ODBC for Oracle driver (version 2.575.1132.00) to connect to our 10g Database and have not had any issues. However when we try connect to 11g we keep getting ORA-03113: end-of-file on communication channel errors. In ORACLE SQL Developer, we're able to connect to our 11g instance using the "basic" connection. I have also used the "TNS" entries and that works well.
I think the business users obtained the Microsoft ODBC for Oracle driver by installing ORACLE Discover 3.1.3.6 which is used for another Oracle DB. They also have Oracle Client 7.3.3 which I can see Oracle73 (2.00.03.01) mentioned in the ODBM Data Source Admin screen.
We have tried googling for a result and after various tests, we have come to the conclusion that it is an ODBC driver issue. As far as our understand it ORACLE SQL Developer uses a different JAVA based driver to connect so it does not use the Microsoft version.
Can someone confirm that our understanding is correct about there being a compatibility issues with Microsoft ODBC for Oracle driver (version 2.575.1132.00) and 11.2g?
If so, what could you recommend a compatible driver to use with Crystal and Access/excel to extract the data?
I think the business users obtained the Microsoft ODBC for Oracle driver by installing ORACLE Discover 3.1.3.6 which is used for another Oracle DB. They also have Oracle Client 7.3.3 which I can see Oracle73 (2.00.03.01) mentioned in the ODBM Data Source Admin screen.
The Microsoft ODBC Driver for Oracle is written using an ancient version of the OCI (Oracle Call Interface) API that was deprecated when Oracle 8 was released (which was more than a decade and 11 major releases ago). Microsoft chose to desupport this driver rather than port it to the new version of the OCI API. Oracle 7 clients can connect to Oracle 10.2 databases but Oracle does not support connections between Oracle 7 clients and Oracle 11.2 databases.
You'll need to upgrade the version of the Oracle client that is installed on the business user's machines and you'll want to use the latest version of the Oracle ODBC driver that is appropriate for that version of the Oracle client. Assuming that you install the 11.2 version of the Oracle client (the only reason not to upgrade all the way to the 11.2 client would be if the users still needed to connect to older databases that don't support connections from an 11.2 client), you'd want to use the most recent version of the 11.2.0.x Oracle ODBC driver. The Oracle client install should also have the option to install a version of the Oracle ODBC driver-- that should be sufficient as well.

Need some inputs on Oracle instant client

Currently i am using ODP.Net.Is Oracle Instant client something to replace this or an addon.
Some sites talked about using this for both 64bit and 32 bit machines.
Thanks,
MY Findings:
Oracle Database Instant Client (ODIC) is not intended to replace ODP .Net or addon for .Net Apps;
ODP.Net is a client component of Oracle used to connect .Net apps to an Oracle database.
Oracle Instant Client is a method of installing Oracle client components (such as ODP.Net and OO4O) on a PC and is an alternative to the full client install.
Prior to Oracle 11g, ODP.Net was not included in Oracle Instant Client.
So we couldn't use Oracle Instant Client with applications that used ODP.Net. In Oracle 11g we can.
Other Explanation:
ODP.NET consists of two dll's: Oracle.DataAccess and OraOps. Oracle.DataAccess is the managed dll, which calls into OraOps which is the unmanaged dll that makes OCI calls into the Oracle client.
Instant Client consists of 3 or 4 dll's that constitute is a small footprint Oracle client that enables communication with the database from a client side application. Lots of middleware drivers can use Instant client: ODBC, OCI, OLEDB, ODP, etc.
ODP.NET relies on the Instant Client dlls to pass the OCI calls on to the database; it does not communicate with the database directly.
So..
ODP > Instant Client > Your Network > Listener/database/etc
You could certainly use Instant client with things besides ODP.NET.
You cannot use ODP.NET without some form of Oracle Client software (instant, or full).
Oracle Database Instant Client (ODIC) is not intended to replace your ODP .Net addon for .Net Apps; ODIC is used as Oracle Client to replace your TOAD or SQLDeveloper since you like the online-commands.
Nevertheless this ODIC can be used as an ODBC App client e.g. Querying your Oracle DB through Excel. I also use it from an USB key as OIC doesn't any OS registry operations.
Resources: Oracle Mini Site for Oracle Database Instant Client
Read on the mini site: I never used it but contains your ODP.NET
ODAC* Includes ODP.NET, Oracle Services for MTS, Oracle Providers for ASP.NET, Oracle Provider for OLE DB, and OO4O with Oracle Instant Client

Is it possible to make a JDBC connection through SSIS?

I've never used a JDBC connection before, and am familiar with only ODBC connections. We have a vendor who will only support JDBC. They consider ODBC 'Open Source', and therefore do not support connections to their DB through an ODBC connection. Does anyone know if it is possible to create an SSIS connection via JDBC? I am not getting any hits on this from my initial research online.
No, SSIS does not have the java interface necessary to do this. You would have to use an ADO.Net or OLEDB driver, or the OLEDB provider for ODBC to connect to a database.
You could write a java program that extracted the data to a file, and then read the data from that file. You can execute a process from SSIS, which could be used to run the Java program.

Resources