Install Oracle Database Extensions for .NET into VS2013 - oracle11g

How to install Oracle Database Extensions for .NET into VS2013.
32-bit Oracle Data Access Components (ODAC)
with Oracle Developer Tools for Visual Studio
Everytime I run this installer, it is always exclude Oracle Database Extensions for .NET. There is a reminder of for upgrade only in the description of the package installer.
Oracle Database Extensions for .NET 4 12.1.0.1.0 -- for upgrade only
Oracle Database Extensions for .NET 2.0 12.1.0.1.0 -- for upgrade only
So where should I get the installer for Oracle Database Extensions? Currently I using VS2013 Professional and Oracle database server 11g 64 bits.
I need that because of Developing and Deploying a .NET Stored Procedure using Oracle Deployment Wizard.
Developing and Deploying a .NET Stored Procedure
Inside this website, you can see the tutorial for VS2010 version.
Additional: I have to use Oracle 12c client 32bits because of VS2013 and Entity Framework.
Additional: I have ttied 64 bits, but my VS2013 still doesn't have Deploy option

Well, this is guesswork:
Try installing Oracle 10g ODAC and Oracle Developer Tools for Visual Studio .NET (very bottom of the downloads page) first, and then install the latest for upgrade only distribution.
Okay, here's an excerpt from Oracle Database Extensions for .NET:
This product is included with the Oracle Database on Windows installation. Further upgrades are installed as part of the Oracle Database Access Components (ODAC) releases, however Oracle Database Extensions for .NET must first be installed and configured before it can be upgraded.
Also, I found Oracle® Database Extensions for .NET Developer's Guide 12c Release 1 (12.1) for Microsoft Windows. In it's Installation and Configuration > Installation section:
Before the first use of Oracle Database Extensions for .NET, do the following:
Install Oracle Database 12c and either allow the installer to create the database for you, or install the database software only and use Database Configuration Assistant to create a database afterwards.
After installation and database creation, execute the following to enable Oracle Database Extensions for .NET.
chopt enable ode_net
Execute the following to create the Oracle Database Extensions for .NET windows service.
oraclrctl -new
Bottom line: You have to install Oracle Database 12c to enjoy Oracle Database Extensions for .NET. It is meant to be a service running along with the database server, not in the client.

Related

Can Oracle ManagedDataAccess 4.122.1.0 connect to Oracle server 19c?

We have a .NET MVC 5 application and several APIs using the Oracle ManagedDataAccess driver (version 4.122.1.0) to connect to a 12c Oracle server (version 12.1.0.2.0). We are about to upgrade to 19c. Will this version of the Oracle ManagedDataAccess driver connect to 19c or do I need to re-publish all of these apps with a newer driver?
See System Requirements
Oracle Data Provider for .NET, Managed Driver requires the following:
Same Windows operating system support as ODP.NET, Unmanaged Driver.
ODP.NET, Managed Driver is built with AnyCPU. It runs on either 32-bit or 64-bit (x64) Windows and on either 32-bit or 64-bit (x64) .NET Framework.
Microsoft .NET Framework 4.5.2, 4.6.x, or 4.7.x.
Access to Oracle Database 11g Release 2 or later
So, no problem.

Connect visual studio 2019 to xampp

I am a student and an apprentice developer. Currently I have been assigned a .NET core mvc project, the task I have to perform is to deploy the project on my own computer and test the CRUD.
I have a windows 10 on my machine. I have already installed visual studio code. For the database I use xampp - mysql.
I would like you to help me to connect visual studio with xampp to test the CRUD. Thank you very much. If you have a link or tutorials you can send them to me too. Thank you!!!
You can build data-driven apps using Object Relational Mapper (ORM) like Entity Framework Core or Dapper.
Both Dapper and EFCore work with many SQL databases like SQL Server, MySql, PostgreSQL, SQLite, and so on. You can pick the database of your choice.
For more information and tutorials you can visit the official documentation for EfCore on the Microsoft Docs website:
https://learn.microsoft.com/en-us/ef/core/
In order to deploy your .NET Core app, you can build your project in release mode and deploy it on IIS which comes pre-installed on a Windows machine. Refer to the following link to know more about hosting .NET apps on IIS:
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-5.0

Oracle 10G Installation on Windows

I have a database: Oracle SQL Developer 3.2.20.9
an asp.net web application running locally on a pc with Windows 7 enterprise 64 bit, and to developed it I used Visual Studio 2013.
Now I should connect the application with the db so I' m trying to install:
Oracle 10g ODAC and Oracle Developer Tools for Visual Studio .NET
I get this Error:
"Abnormal program termination. an internal error has occured. Please provide the following files to Oracle Support:
Unknown
Unknown
Unknown"
Could I connect the webapp in other ways?
When I go to Server Explorer in Visual Studio and I choose connect to database -> add connection -> Oracle database -> .NET framework Data Provider for Oracle
I get:
"This provider is deprecated and should not be used. Instead, download Oracle Developer Tools for visual Studio for comprehensive integration with Oracle databases."
Oracle supports connections back two versions. You should try installing the ODAC client for 11g as that will connect to a version 10 database and supports windows 7.
Seeing as SQL developer is free why not get the latest version 4.02 here
Be sure to get an ODAC version that matches the bitness of the database, 32 bit or 64 bit. You can check this by logging onto the machine with Run > cmd > sqlplus > connect as your user/your password. If the header that is returned does not say 64 bit then the database is a 32 bit install and you need ODAC to match that.
And seeing as connecting to Oracle is popular question a good troubleshooting routine is
connect from sqlplus on the database
connect with sql developer from your client pc
then try connecting through Visual Studio.

Postgres and Visual studio asp.net

How can I add a postgresql database to a Visual studio asp .net project? I have tried by downloading the postgres odbc driver but still I can't see it in the odbc menu and is there any other way to do it
Most Visual Studio versions are 32-bit applications, even when installed on 64-bit Windows. The ODBC driver must match the application architecture, not the PostgreSQL server architecture.
Install the 32-bit ODBC driver.

Problem with aspnet_regsql.exe

i wrote a website with asp.net 4 and sql server 2008. But my host sql version is 2005 so i get script from my database in sqlserver 2008 and convert it to 2005. Then i import .sql file that is exported from 2008 iin sqlserver 2005 and retrieve it. Then i make a back up with sqlserver 2005 and upload it on my host. Now i have one problem:
I used aspnet_regsql.exe to create the database schema.
But when i want to login to my website it throws following error:
The 'System.Web.Security.SqlMembershipProvider' requires a database
schema compatible with schema version '1'. However, the current
database schema is not compatible with this version. You may need to
either install a compatible schema with aspnet_regsql.exe (available
in the framework installation directory), or upgrade the provider to a
newer version.
What is the problem?
Which version of ASP.NET is your published website using? It looks like it might be different than what you're using in development.
The version info is configured on a per-AppPool basis in IIS.

Resources