I Have an asp.net web service that uses an oracle database. It works when I run it locally but when I upload to the server it gives me ORA-1017. The project on the server is an identical copy of what I have on my local computer, so the password is the same. I tried to install Oracle client 11g r2 because I have been told that the other (don't know which one) oracle client converts the password to uppercase. I don't have much experience with oracle and don't know what is wrong. Any help is appreciated.
The server is Windows Server 2003 32bit, the oracle version is Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production . The oracle server is on another machine.
Update1:
It works now. I reinstalled the oracle client from here. I selected Administrator at the beginning, it seems it matters. There were also 2 clients installed on the server so probably that created problems also, I'm not sure. One client should be enough, it can connect to all oracle versions. This should also work with ODAC as suggested by Andy Arismendi. There is also an (confusing, at least for me) answer here about connecting to oracle that suggests oracle instant client (I think).
So the 3 packages are:
Oracle Client (3rd download link from the top)
ODAC
Oracle Instant Client
You should install only one of these. I don't know the difference between them. It seems they contain similar components.
This doesn't directly address your question but have you looked at ODAC Oracle Data Access Components? This is a .NET library you can use to access the database.
This is a good walkthrough for how to use it. http://www.oracle.com/technetwork/articles/dotnet/vs2010-oracle-dev-410461.html
Passwords in versions prior to Oracle 11g were case-insensitive - 11g upwords supports case sensitive passwords. If the server was upgraded from 10g to 11g - the passwords remain case-insensitive till they are changed.
So I'd say try changing the password.
It works now. I reinstalled the oracle client from here. I selected Administrator at the beginning, it seems it matters. There were also 2 clients installed on the server so probably that created problems also, I'm not sure. One client should be enough, it can connect to all oracle versions. This should also work with ODAC as suggested by Andy Arismendi. There is also an (confusing, at least for me) answer here about connecting to oracle that suggests oracle instant client (I think).
So the 3 packages are (ordered by size descending ):
Oracle Client (3rd download link from the top)
ODAC
Oracle Instant Client
You should install only one of these. I don't know the difference between them. It seems they contain similar components.
Related
I am working on an ERP Project, using sql server for database.
Now when I deploy the project, I have to install sql server which uses a lot of storage and time is also wasted. As the client is never going to fire any query. Thus, having no need of the development environment. So, is there any option to overcome this.
Local DB is one of the option but having difficulties in configuring it. If anybody ever used it and Please help me out. Or if there's any other option please help me with that
NOTE: I am using asp.net as front end technology
I'm not sure if this is what you're trying to do, but if you want your app to connect to an SQL Server database, you will need at least the OLE DB Driver to be installed on your server.
It will allow your app to connect to an SQL Server instance, which can be running on any other machine.
In complement you could have a look at this : https://www.connectionstrings.com/
and this https://learn.microsoft.com/fr-fr/sql/connect/oledb/oledb-driver-for-sql-server?view=sql-server-ver15
I have installed Oracle Client when I try to connect Oracle DB receiving a TNS no listener error message, I did not found oracleoraClient11g_home1tnslistener service on my machine. could you please advise on this.
is oracleoraClient11g_home1tnslistener part of Oracle11g Client installation?
is oracleoraClient11g_home1tnslistener need to be configured manually?
You installed the Client software.
But, is there a database on your computer? If not, you should first install the database and - once you do it - you don't need the Client software because the Server already contains all that stuff (and more).
That's what
I did not found oracleoraClient11g_home1tnslistener service on my machine
suggests - listener is installed along with the database.
If you're in doubt which database to install, I'd suggest the Oracle 11g Express Edition (XE) as it is easy to install (in a few Next clicks), contains a pre-installed HR (Human Resources) schema so you can test your skills immediately, comes with Application Express (Apex) - a really nice piece of software to start with.
I had oracle 11g database installed on my machine (OS win8). It was working fine. This week I upgraded my laptop from win 8 to 8.1. Now I am not able see oracle database services in windows services. Consequently I am not able to start oracle and connect to DB.
Tried couple of things like
>oradim -STARTUP -SID ORCL
DIM-00011: The specified service does not exist.
O/S-Error: (OS 1060) The specified service does not exist as an installed servic
e.
Is there any way to start the oracle ? or Do I need to re-install the database ?
Kindly let me know if you have some idea about this.
Thanks in advance for your help
Hello we were having the same issues after the 8.1 upgrade & Managed to resolve (Oracle Database 10g Enterprise Edition Release 10.2.0.3.0)
The procedures we listed below with the post should help you as well.
http://windows7bugs.wordpress.com/2013/10/31/oracle-services-disappear-from-windows-services-panel-after-upgraded-to-windows-8-1/
regards,
Registry cleaner (System Mechanic 14.5) did it to me (caused the Oracle listener service to be removed from Windows 7). Still had the listener.ora read somewhere else that using lsntrctl start will fix the problem in this circumstance (where there is a valid listener.ora but no service) by adding the service back in.
My course requires me to connect to an Oracle database server at the university for my project. I am provided with a url (like oracle.xyz.edu) and username and password. How can I connect to the database from Visual Studio. I have only dealt with SQL Server 2008. I don't know how to go ahead with setting up the database. I tried to install Oracle Instant Client, but could not find a setup exe to install. The instant client download zip consists of a set of files. Where can I find the steps to connect to Oracle database from VS.
Do you need to use the Oracle Instant Client? Or would it be acceptable to you to download and install the full version of the Oracle client?
The full version of the Oracle client is generally what ought to be installed on a developer machine. The Instant Client is a very slimmed down version of the client that is designed for developers to distribute along with their Windows applications on machines that do not have or need any way to access the database other than via the application. As a developer, I'd strongly recommend the full version of the Oracle client if only because it includes various additional utilities like SQL*Plus and SQL*Loader.
The full Oracle client is available for download from OTN on the same page that the database is available. For example, the Oracle 11.2 client for 64-bit Windows is a 615 MB download on the OTN site.
Don't use ODBC. Use ODP.NET (Oracle's Instant Client) Oracle Data Provider for .NET. (Read technical notes in provided link.)
I have a freshly built 64-bit Windows Server 2008 R2 box that I have installed 64-bit Coldfusion 9 Standard on. I've upgraded and hotfixed it up to the most current version of CF. I also had 64-bit Oracle 11g (11.1.0.7.0) Client installed on the box. I've created a System DSN using the 64-bit ODBC Data Source Administrator in Windows and can successfully test the connection of the data source.
All of these installations went smoothly, however, when I went to add a datasource in the Coldfusion Administrator I receive the error:
Connection verification failed for data source: myDatabaseName
java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error: The specified DSN contains an architecture mismatch between the Driver and Application
The root cause was that: java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error: The specified DSN contains an architecture mismatch between the Driver and Application
I am having a hard time understanding exactly where this architecture mismatch is coming from since the box is entirely 64-bit. I see while looking at all the processes that are running, some related CF processes are running in 32-bit (Verity related processes, SOLR and CFDotNetSVC). I am not sure if those could cause this issue but I am at a loss to explain were this mismatch would come from otherwise.
Anyone have any ideas?
Using Dan's advice I grabbed a JDBC Driver from Oracle here:
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-111060-084321.html
I then moved the JAR (ojdbc6.jar in my case) and added it to my Coldfusion Class Path.
Determining the correct settings for using the datasource to Coldfusion was slightly harder but here are the settings I ended up going with:
JDBC URL: jdbc:oracle:thin:#//dbsrv.mydomain.com:1521/myDB.world
Driver Class: oracle.jdbc.driver.OracleDriver
Driver Name: Oracle Thin Driver
Then the username and password for the DB.
Sure enough it worked like a charm.
Dan, I want to give you a check mark because you definitely put me in the right direction, but I can only mark one correct.
I believe you need to either step down to the 32-bit drivers, or use native JDBC drivers to connect to Oracle successfully. My suggestion would be to go the JDBC route, and connect directly through a native Oracle JDBC driver by using the "other" selection on the Datasource screen. You'll get better performance that way, and have more control over your connection via ColdFusion.
Connecting to Oracle information in ColdFusion Livedocs.
i found an alternate way to do this
install the ODBC drivers for 64bit and 32bit (in that order) on your win2008 64bit OS
thereafter create the DSNs on both the System32 folder and SysWow64 folder by running the odbc32ad32.exe
ensure your tnsnames are setup fine in the respective network/admin folder (if you use tnsnames to maintain your sids)
now on the CF admin you creaet a new ODBC source with aODBC Socket and name. the next page should show you a drop down of all DSNs that exists in the 64bit DSN setup. When you go and test it in CF, it will strangely use the config of the 32bit DSN setup for validationb
voila....your connections should work. No worries of those architectural failures etc
We needed to setup 64 bit ODBC connections for a ColdFusion 11 server to query against 2012 SQL Server instance on Windows 2008 R2 Server. The ODBC connections would show up but would never work. We received so many various messages when verifying such as "needing SSL connections to work" and also timeout messages as it was having problems logging into SQL Server.
I stumbled across this post and we decided to follow setting up 64bit ODBC connections and then effectively overwriting them--preserving the name using the 32bit ODBC. Thank you again fellow developers, especially Souzam! My instructions are below:
For Windows 2008R2 Server you must disguise 64bit ODBC socket configurations for 32 bit in order for them to appear in CF Admin as datasources (obvious bug in CF 11):
Creating 64bit ODBC connections via 2008 R2 ODBC application, follow a naming convention that will allow you to recall in 32 bit configuration.
Configure ODBC 32bit connection in SYSWOW64 (C:\Windows\SysWOW64) using the odbcad32.exe using the previous 64bit names in Step #1.
Create data sources in CF Admin as these should appear in a dropdown when creating ODBC Socket Type connections.