I need to develop a local mvc web application for a company. They have an oracle 9 database but they dont want to give access for remote connections. They'll give sample tables and datas but no remote connection allowed so i have to create a development environment. My questions are
There is no oracle 9 database download link in oracle web site. Is there any link exists for download database and install on windows 10 (x64) machine for development and testing purposes.
Can i use other oracle versions for development like 10g. If sql syntax is same with 9 maybe i can get it work on the site.
Is there any chance to use entity framework with oracle 9 database?
Need help from oracle & c# gurus.
Thank you.
You should not accept such requirements for new developments.
I think Oracle 9i has been deprecated for more than 15 years. Even version 10g has been deprecated many years ago and thus not available anymore.
In general the syntax of Oracle 9i is the same as in current releases, however many function which are nowadays matter of course could be missing in Oracle 9i.
Even if you manage to get a Oracle 9i database it will be hard to connect to such DB with current Oracle client drivers.
Related
Visual Studio 2010 - C# - MVC3
I am completely new to ASP.Net and I have been working / practising making an MVC 3 application using C#. I have practised getting an MVC application online which makes use of no databases and was successful. My hosting supports .net 4 and it was a simple process of publishing the files and uploading to my FTP. I am making a new application which makes use of a database. I have set up a data connection in the server explorer and set up all my tables and relationships. Everything is currently working as intended and I can create, edit and delete entries from the database.
I am not really sure where to start with getting this online. My hosting offers no MSSQL databases so I am presuming I can use a MYSQL database? What is the process of changing my application to use a MYSQL database which is located on my remote hosting? Also I am making use of the default accounts where users can register and login, will I have to set up a database for this too?
Your host offers mysql hosting?
you will need the mysql .net connectors.
also check this next out for the asp.net membership, mvc uses
http://dev.mysql.com/doc/refman/5.1/en/connector-net-tutorials-asp-roles.html
You can use a local DB in your APP_DATA folder or you can connect to a remote DB. Please let me know if you need additional help in either of these two areas or if I have misunderstood your question. You may also want to encrypt your web.config file to secure your DB passwords better.
From our chat:
Try this stackoverflow.com/questions/…
SQL CE supports binary deployment, meaning your hosted doesn't have to have anything installed and you get SQL support, however no stored procedure support (if that matters to you here)
In addition you can install the SQL Compact Toolbox into Visual Studio
http://sqlcetoolbox.codeplex.com/
See: http://blogs.msdn.com/b/webdev/archive/2011/01/06/how-to-bin-deploy-sql-compact-edition-4-0-and-razor-web-projects.aspx
Is it able to capture the timeouted transactions on SQLServer or Oracle database by using C#/.NET? Currently I am working on a windows service which needs to monitor a specific data table in SQLServer or Oracle but I don't know how can I implement such kind of requirement.
in sql server, there are some new things introduced since version 2005, DMV (these are managmenet views of sql server), you can query them and get the data, some of them are related to Transactions as well.
Visit this link or Google more about "SQL Server DMV".
http://weblogs.sqlteam.com/mladenp/archive/2008/04/29/SQL-Server-2005-Get-full-information-about-transaction-locks.aspx
Regards,
Mazhar Karimi
I want to know if it is possible to use MySQL Engine without having to install WAMP Server. I'm developing an application that will require a database, so I was thinking of using MySQL instead of MS SQL or access. So I don't want to install the WAMP package yet I want to install the MySQL Engine, so if possible, please provide me with the download link for the MySQL and how to install and use (start/stop service).
You will need the runtime and the .net connector to make this happen. You also might find the workbench (gui tools to manage the server and run queries) to be helpful.
The runtime installs a service by default, which you can control on the commandline or via the windows service management console (services.msc).
This sounds to me a lot like you're thinking 'desktop application', where the MySQL database will be a simple local data store. If that's the case, MySQL is not a good choice.
MySQL is a server-class database engine. It's designed to run full time in the background as a service. This makes it overkill for a simple desktop app, and as a user I'd be mad if your simple desktop app required me to run the MySQL service.
For the kind of app I think you're building, you really want an in-process or desktop-class database. Good examples include SQLite, SQL Server Compact Edition (not Express), or even MS Access. Any of those would be a better option here than MySQL.
On the other hand, if I'm wrong and you're building a web app or an app that will be distributed to several computers that all share the same database, then MySQL is a perfectly fine choice and you should read #Femaref's answer.
If your database isn't going to be incredibly large you could go with SQL Compact. It comes with the .NET framework, and works well for smaller databases.
I want to develop a POS application in .NET (C#) that would be used to rent items. I have a good idea of what will be done and the famous question that I have is about the DBMS that I should use. I would like to use MySQL database.
The question is: If some places use only one computer (no network, no internet connection), can I use a MySQL database in local? Do I need to install MySQL server on all thoses computers to be able to use such a database? I know SQLite but I'm not sure if the limitations can cause problems in the future... I also looked at SQLServer Express versions.
(I must consider that other point of sales are using multiple computers and more transactions so there I can't put sqlexpress or sqlite)
So can anybody suggest me what I should do in that situation?
Thanks
You would be able to use MySQL in localhost - and it would need to be installed on each local machine.
You could use MySQL. If you are sharing a database between several computers you should just be able to install the MySQL client components.
As for which database you want to use, I would highly suggest SQL Express. The security model and tooling is much better. There is nothing stopping you from using SQL Express as a shared database server until you out grow it.
SQL Express Redistribution EULA
POS systems like Open bravo POS software where special user types and hardware devices support are required.ou can use sharing a database between several computers for using sql.
What is the best library/driver to connect C# (.NET) application to Oracle 10g and 11g.
Current options that I found are:
Oracle client that comes with database installation
Oracle Instant Client (which is a bit confusing since it has 6-8 versions for number of operating systems)
Microsoft ODBC ? (Can this be used?)
ODP.Net - is this separate product or is it included in 1. and 2. ?
Can somebody explain differences?
I am planning C# application that will do basic CRUD operations on Oracle database. Which library/driver is smallest and easiest to install?
Edit:
General recommendation is to use ODP.Net. Now, can somebody please explain or point to answer about differences between client install packages. I found 3 different clients for Oracle 11g:
Oracle client - client drivers package that ships as part of database installation
ODAC - Oracle data access components, contains lots of things, among them are ODP.Net and Oracle Instant Client
Oracle Instant Client which also contains many things, including ODP.Net
So, which of those is enough for development? Oracle documentation is painfully detailed, but says nothing about differences between those client packages. I would go with smallest (Instant Client). Is it best choice?
Edit 2:
I am using .Net 3.5
Microsoft will deprecate the System.Client.OracleClient namespace so I think it will be best to use ODP.NET. Make sure you download the latest one (ODP.NET 11g) as previous versions had some issues.
To connect C# to oracle you need a data provider for .net. This can be one of the following:
ODP.Net (Oracle)
System.Data.OracleClient (Microsoft)
ODBC (Oracle)
OLEDB (Oracle)
DataDirect ADO.NET Data Provider for Oracle (DataDirect)
may be some other provider
All of this data provider need an oracle client installed. There is no standalone library as jdbc14.jar as in java. You have 2 choices deploying an oracle client:
full client (may be from database installation)
instant client
ODP.Net, ODBC, OLEDB are part of full client. This is the "hard" way because an installation process must be run on every client runing your software. This is where the most megabytes are put on the client.
The instant client is provided in different packages. This is the smallest way for deployment of an oracle client.
I would suggest using ODP.Net with Oracle Instant Client, because this easy to deploy and very very light weight.
Which instant client packages do you need:
Pick version 11.1.0.6.0 (or newer where ODAC is provided)
Instant Client Package - Basic (if you need full language support)
Instant Client Package - ODAC
There are a lot of articles on stackoverflow about deployment of oracle instant client with c# applications.
EDIT: updated links and versions
ODP.NET is the best provider for accessing Oracle db, mostly - because it's the most native one, which differentiates it from ODBC by the following:
better performance
ODP.NET provides access to advanced Oracle functionality, not available via ODBC .NET
ODP.NET does not use an extra data access bridge.
ODBC can also be used but as mentioned above it's going to be slower and have limited functionality.
For making ODP.NET work you need the software listed here (and including oracle client):
http://www.oracle.com/technology/tech/windows/odpnet/faq.html#install
Hope this helps!
Maybe I'm wrong but ADO.NET have integrated support for Oracle. maybe for earlier versions...
I think odbc is too slow. System.Data.OracleClient is a bit slow too and it will be deprecated by Microsoft.
You could use devart's provider, there is a free version. It is easy to deploy. See here http://www.devart.com/dotconnect/oracle/ It does support the entity framework.
Odp.net is fast but it doesn't support the entity framework and it isn't very easy to deploy.
I really cannot say the differences between the solutions you provided but I always used the Oracle Data Access Components from Oracle and it always worked flawlessly. It could be found here : ODAC for Visual Studio
What is sure is that a library developped by Oracle on the .NET Framework will be much more accurate than a library developped by an company external to Oracle. For example, concerning exceptions thrown when accessing an Oracle database, they will be much more helpful if the library have been developped by the Oracle developping team as they have additional knowledges on Oracle DBs.
The bad thing is that you will have a dependency, problem that you will not have to overcome if you chose to use the .NET System.Data.OracleClient.
Hope this helps. Regards.
EDIT : The ODAC package contains ODP and Oracle Developer Tools
ODP.NET is a native provider fo accessing oracle db. And hence it should be better optimized for oracle db. Moreover, there are oracle feature, such as REF CURSOR type, which are not supported by MS ODBC, but supported by ODP.NET. You can download ODAC, which include ODP.NET as well, on the www.aracle.com website.