Path Location:Oracle.Driver (Oracle.DataAccess.dll) for Oracle 11g Standard Edition Release 2 - nhibernate-mapping

I have installed Oracle 11g Standard Edition Release 2. I am working with nhibernate 2.2. I already spent lots of time but I could not find the location of Oracle Driver dll file (Oracle.DataAccess.dll) in the installed file.Please Help me. Thanks in advance.
Satadip

Since 11.2 Oracle Data Provider for .NET ships with two sets of binaries
The Oracle.DataAccess.dll assembly is installed to the following locations:
.NET Framework 2.0:
ORACLE_BASE\ORACLE_HOME\odp.net\bin\2.x directory
.NET Framework 4:
ORACLE_BASE\ORACLE_HOME\odp.net\bin\4 directory
From the Oracle Data Provider for .NET Developer's Guide 11g Release 2 (11.2.0.3)
Obviously for the files to be there you must have included the Oracle Data Provider for .NET as part of your Oracle Installation or downloaded Oracle Data Access Components (ODAC) from OTN instead.

Related

Does ASP.NET Core support SQL Server CE now?

If supported, which package should I install in order to use SQL Server CE?
Thanks.
Package Microsoft.SqlServer.Compact 4.0.8876.1 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0).
Package EntityFrameworkCore.SqlServerCompact40 1.0.0.3 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0).
EF Core will handle it.
Use the SQLite / SQL Server Compact Toolbox extension for Visual Studio 2017 by ErikEJ.
"EF Core, released simultaneously with .NET Core, is a lightweight and extensible version of Entity Framework that works on both .NET Core and .NET Framework. It has support for Microsoft SQL Server, SQLite, PostgreSQL, MySQL, Microsoft SQL Server Compact Edition, and IBM DB2 with more to come, such as Oracle." (https://blogs.msdn.microsoft.com/dotnet/2016/11/09/net-core-data-access)

LinqPad Error: Unable to find the .Net Framework Data Provider

I am new to LinqPad.
I downloaded a .sdf file from the internet (i know what it is) I wanted to view its tables. So I googled "how to read .sdf files" and came across Linqpad, which I installed.
When I browse to my .sdf file from LinqPad and try to open it as a connection, I get the message "Unable to find the requested .Net framework data provider, it may not be installed"
Does this mean i need to install SQL CE before using LinqPad? I assumed LinqPad was the program to view tables, run queries, etc and that I did not need the original db program.
Please advise on what the error refers to and best way to resolve. thanks
To answer your question, yes you do have to install it. I just ran across this problem while trying to connect to a Sql CE 3.5 DB in LinqPad. You have to have the proper version installed first. I only had 4.0 installed and was trying to connect to a 3.5 DB. So had to use the SSCERuntime msi found here to install the items shown below:
Just go to that link and download it somewhere and then run the msi(s).
Note the following:
It is mandatory to install both the 32-bit and the 64-bit version of
SQL Server Compact MSI files on a 64-bit Computer. Installing only the
32-bit version of the SQL Server Compact 3.5 SP2 MSI file on a 64-bit
computer will lead to failure of the existing SQL Server Compact 3.5
applications on the Computer.
So just follow the instructions shown in the "Install.txt" that is downloaded with the msi's.
After installing them I had to close and reopen LinqPad and then the connection worked.
I'll add a variant on Kasper's solution. For the case of connecting to SQL CE 4, I appeared to already have the SQL CE4 runtimes installed yet I still got the same error.
Trying to install the latest SQL CE 4 from Microsoft reported that a newer version was already installed and aborted the install.
Uninstalling the "newer version" and then installing the latest download fixed the problem for me.
I'm not sure how I got that original version, that's "newer" than the latest from Microsoft. Possibly from an older Visual Studio install.
You first need to make a connection to your database. You can do that by clicking "Add Connection", "Default Linq to Sql connection" and then marking your version of SQL CE on top and providing the information.
LinqPad is not just viewing tables, run queries etc. It is much more than that.

The 'SQLNCLI' provider is not registered on the local machine, sql server 2012

Working on deploying an application from my development box to a client. On the client when I run my exe, I get the error "The 'SQLNCLI10' Provider is not registered on the local machine.
I'm developing in SQL Server 2012. I have tried installing sqlncli.msi on the target machine with no luck.
Can anyone tell me what package I need to install on the client machine to get my app to work? And if possible provide a URL to said package?
Thanks!
Figured out I needed the 2008 version as opposed to the 2012 version.
http://go.microsoft.com/fwlink/?LinkId=123718&clcid=0x409
Are you perhaps working on a 64 bit machine and used the 32-bit install?
Here's the 64-bit link: http://go.microsoft.com/fwlink/?LinkID=188401&clcid=0x409
Use SQLNCLI11 for connecting to SQLserver 2012
eg:
Provider=SQLNCLI11;Data Source=trv6s177;Integrated Security=SSPI;Initial Catalog=DPVCube_Stage
Downloads
http://go.microsoft.com/fwlink/?LinkID=239649&clcid=0x409
X86 Package (sqlncli.msi)
http://go.microsoft.com/fwlink/?LinkID=239650&clcid=0x409
X64 Package (sqlncli.msi)
Some updates:
SQLNCLI11 works on windows 10 as well, and it can connect SQL 2012 and 2014 (not tested on later SQL versions)
This is the latest version available
At the time of writing, the most updated package can be found here:
https://www.microsoft.com/en-us/download/confirmation.aspx?id=50402
SQL ServerĀ® 2012 Native Client - QFE
From Microsoft:
It is not recommended to use this driver for new development.
The new OLE DB provider is called the Microsoft OLE DB Driver for SQL Server (MSOLEDBSQL)
which will be updated with the most recent server features going forward.
Article:
https://learn.microsoft.com/en-us/sql/relational-databases/native-client/sql-server-native-client?view=sql-server-2017
Download link:
https://learn.microsoft.com/en-us/sql/connect/oledb/oledb-driver-for-sql-server?view=sql-server-2017
Install the sqlncli10 provider on your machine.
The sqlncli10 provider for SQL 2008 R2 can be downloaded from here.
X86 package.
X64 package

how to connect Oracle in vb.net 2005?

I'm a newbie to connect Oracle 10g using vb.net in MS Visual 2005. Please share me in coding.
You need to be more specific in your question because no one will write your project for you.
There are tons of resources on line to help you:
Using Oracle with VB.NET
If you're OK with being married to Oracle, a native driver is fastest. You tagged VS2005 so I assume you are deploying to .NET Framework 2.0. Our shop uses System.Data.OracleClient and it works fine (you will need the Oracle client installed on the target machine). This namespace, however, has been deprecated in the 4.0 framework release. The preferred way forward (which I've not tried yet) is either ODP.NET or another 3rd-party driver. This question details some of the alternatives.

Can I use SQL Server Compact Edition CE on Mono?

Does anyone know if I can use SQL Server Compact Edition 3.5 on mono?
I'm hoping they are written as managed assemblies and will work ok..does anyone have any experience?
All of the SQL Compact (except System.Data.SqlCe.dll obviously) are native libraries, so no they won't work under non-Windows platforms.
Pretty replacement for SQL CE is SQLite
SQLite ADO.NET Provider is portable and exists on Microsoft.NET and Mono
http://sqlite.phxsoftware.com
http://www.mono-project.com/SQLite
native components is exists for most major platforms and source code also available
(By 'on mono' I assume you mean running on Mono in Linux?)
No. I'm pretty sure none of the SQL Server versions are built on managed assemblies.