Check oracle client installed in the local machine - c#

We have a C# winforms application running in .Net 2.0. In this application we want to enable some options by checking whether any Oracle client is installed in the local machine.
After googling i found some suggestions like try to start the process "tnsping.exe". While starting the application if it throws some exception means Oracle client is not installed in that machine. I got this information from this SO post.
But I think in this case it will start the client application.
So i want a way to check Oracle client is installed in the local machine without starting the client application. I am not aware of this oracle installation and all. Can someone help me on this.
Thanks

Related

How can I Install C# desktop app with SQL Server database on client machine without installing SQL Server

I have a desktop app developed in C# with SQL Server and I want to deploy the app on client Machine.
How to compile the app into setup files?
I have SQL Server Express installed on client machine.
When you compile the app you will need to have the connection string to the database that exist on the client machine. Also ensure the correct tables and what not are in there too. You can compile the app for release by right clicking the solution and then clicking publish. You can then publish a release version for production that can be used on client machines.
You will have to do this for every client machine.
Some options to make this easier might be as follows:
Create a shared instance of SQL Server that all clients can connect to
Use a nosql solution like litedb or something else.
Store the data locally in another fashion.
Hope this helps! Leave comments if you are confused on anything.

How to run desktop application with database locally without installing any database Server?

I wanted to create a desktop application with database, am using Visual Studio 2013 and C# , Can anybody suggest me what server I used to create my database, in order to run my application in my client's system locally with out installing any database server in client's system [ie, with out installing MsSql server or MySql server or Acess], I want my app works properly when installing my own application's exe file ?
And Now am using MSSQL server with my application , Is there any way run this application in client's system locally with out installing MSSQL Server? [my application front end works when I install .Net FrameWork 4.5 , I need something like this for my .mdf databse in Sql Server]
somebody says about SQL Server Compact ,but i don't know how to use it
You can use SQL Server Compact, which can either be installed separately or deployed as part of your application.
See here: How to deploy SQL Server Compact Edition 4.0?
And here: https://msdn.microsoft.com/en-gb/library/aa983326(v=vs.110).aspx
Your DB code in your app - apart from your connection string - should not need to change as you're already using some version of SQL Server.
There is also SQLite, which is as far as I know is well regarded, but I know very little about it. http://www.sqlite.org/
Hope that helps!
It is not unusual for an application to require an existing functional database server. Of course this is appropriate only if your target audience is technical enough to install the prerequisite on their own, or if the target environment is guaranteed to already meet your prerequisite.
If not, you need to fall back to an embedded database.

asp.net application not connecting to oracle 11g even after installing oracle instant client for 11g

I have a asp.net mvc application which is using oracle 11g database. In development machine every thing worked fine, but while deploying it in production server asp.net application is not able to connect to the database server. It is always throwing an empty exception.
I wrote also a simple console application to test the db connectivity. It is also not working. Then I realized it is because that the machine doesn't have a oracle client installed. so I installed Oracle instant client for 11g database 32 bit version. After this the console application started working but the web application still could not connect.
I google lot and finally decided to analyse using process monitor. In process monitor I found that the web application (iis) is looking for an oraclient12.dll.
This oraclient12.dll is part of oracle client for 12c database. I can't understand why it is looking for this dll.
After installing oracle database client for 12g, the above issue with oraclient12.dll got fixed. but iis is now not able to locate oraclsce12.dll.
I searched the whole file-system for this file but could not find.
does anyone know what should i install to get oraclsce12.dll.
Thanks,
Sujith
I was facing similar issue, then came to know that for the dll to be installed you should now also install the option «Oracle Advanced Security»,, by choosing custom installation when installing the oracle 12 client. I did the same and my issue got resolved. You can try this and see if your issue gets resolved.
thanks Sudharsan
This is documented as Oracle bug 17379890.
Oracle provides two workarounds:
Workarounds include:
To avoid the issue in the first place, explicitly select "Oracle NET" component during install
After the fact, you can
do another custom install into the same home, and select "Oracle NET"
copying ORACLSCE12.DLL from an existing install into OH\bin also resolves the issue.
However, making a single copy of file ORACLSCE12.DLL is not sufficient because there are more files which are missing. The workaround works only for certain applications. For example for tnsping.exe you still get an error due to missing files.
You have to take the first solution, i.e. explicitly select "Oracle NET" component during install

Can I register/install Search.CollatorDSO.1 manually

I'm currently trying to search through some indexed files using the windows.search service.
My problem is that windows search cannot be installed on the web server because its a 'web edition'.
Error message received is:
Search.CollatorDSO.1 provider is not registered on the local machine
However the index that I'm searching is on another server which does have windows search installed and I'm querying it remotely. This was all working fine in development but only because I have windows.search installed on my dev box.
My question is whether it's possible to get the provider to run on the web server seeing as it's not querying an index on itself.
I'm looking for a way to manually register Search.CollatorDSO.1 on the webserver. Either install or as a dll I can drop in the bin of the web application. So far I've found no reference on how to do this so any help is appreciated.
After lots of digging around, the answer has been found.
Downloading and installing Windows Search Server does not install the OLE DB provider. Neither does installing the Windows SDK. The provider is installed when the Windows Search Service is installed.
On Win7/8 desktop OS, this is installed be default (I believe). On server, you have to enable the feature.

Difficulty in connecting oracle in different client

I wrote a program with Microsoft Visual Studio 2008 ,.NET Framework 3.5 SP1
To connect an Oracle database and fetch some data, this program works fine on my machine even if I use VS component or if I create connection and adapter by myself. This program also work fine in my friend PC that installed same version of visual studio but we have problem with the other client.
I already update them with latest .Net Framework but still they cannot connect.
I try to add my Oracle dll also same problem (I cannot remember, you can advice me again if you think problem is from this part). Even I copy that dll to their system32, windows directory but nothing happened.
I am wondering would you mind help me to solve the issue?
I wrote my program in C# and my Oracle database is 9i. FYI, I already try so many search regarding my problem but still I am not successful.
You can refer to my screen shot. thanks
Download the Oracle client software from here then install it on your clients machines, everything must work fine for your clients

Categories