I am pretty new to Windows Azure, I want to migrate existing web application that connects to remote Oracle server and run it as a cloud service web role how can I accomplish this while windows azure has no Oracle client installed by default ? or in other words how can I connect from within .net application to a 64Bit Oracle database server without installing oracle client ?
I have worked with Oracle client long time back so some of things below may not be right. But here are some of your options:
You could make use of Oracle client for .Net provided by Microsoft and add those assemblies references in your project. When you publish the project, make sure that Copy Local attribute on those assemblies are marked as true so that those DLLs get packaged along with the rest of your application.
If you're using Oracle provided client for .Net, I remember we had to install that application on our web server. In that case, you could make use of something called Startup Tasks in your webrole and install the package when your role starts. You could either include the installer as part of your package and then install the software using a startup task.
Related
I have developed a c# windows application which uses SQL server 2012 database in Visual Studio 2015 which is running well on my pc.
I am to install this application on a number of computers without SQL server installed on it, but when I run the application, its gives me database connection error.
My question is, how can I create the setup file to be able to run the app on those clients pc without installing SQL server on all those computers. Please I need your help.
Thank you.
Am Emmanuel.
Use an Azure database and have the clients connect to that.
Have a look at https://azure.microsoft.com/en-us/services/sql-database/
Alter your application connection string and make sure you keep the connection string secret.
Server=tcp:myserver.database.windows.net,1433;Database=myDataBase;User ID=mylogin#myserver;Password=myPassword;Trusted_Connection=False;Encrypt=True;MultipleActiveResultSets=True;
An important fact is that the clients need to allow communication via port 1433.
If this is not an option create an API application and query the database via that.
If you need a private database per client you can use a database file and connect to the file
https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-express-localdb?view=sql-server-ver15
Update based on reply
You can create a pop-up on the application allowing the users to add valid settings and credentials when your appsettings.json is blank or "a test connect" to the database fails.
This question may sound silly for some of you, but I would be grateful if you could advise if it is possible to publish apex app into www?
Let's say I am going to run my testing environment under apex.oracle.... url, however I would like my production environment to be running under for example www.MyWebSite.com
Many thanks in advance for any tips.
If you want to host your own production environment, you have two stages: setting up your server, and deploying your application.
For server setup, you've got two main options:
Sign up with a specialized APEX hosting company who will do all the server setup and administration for you.
Do it yourself. You'll need to register your domain name and sign up with a hosting company. Then you'll install and configure Oracle Database, as well as a web application server (like Weblogic or Tomcat). Then install and configure Oracle Rest Data Services (ORDS), which will act as the listener for APEX.
Now, once your server is ready, look at the documentation on Deploying Your Application. The basic steps are that you want to export your application from your test workspace, and import it into your production environment.
I want to learn how to create a windows application which will be connected to a server and will fetch the data from server and can perform various functions. For example a library app on which we can view issued books, place hold on book etc.
I am a student and have basic knowledge about databases, web application and web architectures.
You can make a window application in .net with using Visual Studio, both .net have libraries to connect with MYSQL database.
here is how you can connect with your mysql database
Connecting to a mySQL database using asp.net
I have written an application in C# using Visual Studio 2010 which uses SQL Server as it's back-end.
I would like to create a setup program for this application with all perquisites such as SQL Server Express and so on.
What I want is setup program to ask the user either to install the SQL Server Express or use the existing instance. If user opts for existing instance then Setup will ask for credentials and write the credentials in configuration file using encryption (Encryption class is already implemented).
If user opts for new instance installation, then setup will install the SQL Server Express with a specific Instance Name and also create the initial database. Setup will then use this instance's credentials in configuration file.
I am new to Setup and Deployment so please help me.
Thanks in advance
Recently we have developed an application which connects to oracle database for fetching records. For fetching records, we are using OLEDB for Oracle. Application runs fine on my machine by connectng properly with Oracle ,since i have oracle client installed on my machine. Now i tried to test application on another machine, which doesnot have any oracle instance/Client installed on his machine. Application fails to connect to oracle central DB Server. Is it necessary for users to install oracle client on their machine before the application communicates with Oracle.
Here is Connection string
connectionString="Provider=msdaora;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XYZ)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=abc.com)));Persist Security Info=False;User Id=mahens; Password=XXXXXXXXX" providerName="System.Data.SQLOLEDB"/>
The above code is for OLEDB for oracle. Is there any thing i required to install for connecting to central Oracle DB server from my windows application(.NET application installed on local machine).
If we try to use ODP.NET dll and include those dll's along within BIN directory,will that work?..Can any1 tell me a way wherein user need not install any oracle Client on their machine and communicate to server.
-Mahender
I believe you always need the oracle client installed as everything in .net ultimately uses ODP.NET. However, you can use the Oracle Instant Client to make your users' setup process easier.