I have installed multiple oracle (homes) clients on my server including 10g and 11g . When using SQL PLUS 11G client I am getting error "TNS:protocol adapter error."
I checked TNSNAMES.ora to resolve the issue. I found that TNSNAMES.ora in the network/admin directory for 11G home is having some values which is identical to a different tnsnames.ora on a different server from which I am successfully able to connect to the server.
I also get to know about a default TNSNAMES.ora for the entire system but not sure where I can find it.
I tried tnsping orcl but got error "TNSPING is not recognized as an internal or external command".
I am new to Oracle, please help
Related
Using crystal reports 2011 I am unable to connect to a remote oracle database.
Getting Error : ORA-12154: TNS:could not resolve the connect identifier specified
Using 32 bit Oracle 11g driver on 64 bit Windows.
The DSN is set up correctly and testing the connection works.
The DSN also works with other tools such as TNSPING and even Eclipse.
Is there any online public Oracle databases that I could try testing my connection via Crystal reports?
Let's say you are trying to connect to a TNS entry called "XYZ".
ORA-12154 is not saying that your tnsnames configuration for XYZ is incorrect - it is saying that we could not even find an entry called XYZ. Which either means
we could not find the tnsnames.ora file,
we were looking at the wrong tnsnames.ora file
If you can set environment variables as part of your Crystal Reports environment, the try set TNS_ADMIN to the location of your tnsnames.ora file
I'm attempting to make a connection to an Oracle Database with Microsoft Power BI Desktop.
Originally I was getting the following error message:
"The recommended provider ('Oracle.DataAccess.Client') is not
installed. You can continue with your current provider, however it has
been deprecated and may not work properly."
I've installed Oracle Database Access Components (ODAC), specifically "64-bit ODAC 12c Release 4 (12.1.0.2.4) for Windows x64" from this link. The message no longer appears. However, I now get a second error after attempting to connect to a database (which I can connect through Oracle's SQL Developer with no issues):
Unable to connect
We encountered an error while trying to connect.
Details: "Oracle: ORA-12541: TNS:no listener"
After install, there doesn't seem to be a "listener.ora" file located in %ORACLE_HOME%\network\admin\ folder at all. I do see "sqlnet.ora" and "tsnames.ora" but nothing else. Did I install the proper application or am I missing something? I tried doing a search of the file on the computer but nothing came up. Thanks.
If you are still having the problem see this Power BI Desktop Help page.
Manage your data Source - Oracle Power BI Desktop Help
Oracle Client --> [ Oracle Listener on Database Server --> Oracle Database Username ]
The Oracle Listener is normally located on the Oracle Database Server. Each Oracle Database running on the server will register Service Names with the Oracle Listener.
Oracle database initialization parameter local_listener
local_listener (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
The local_listener is on the database server, the localhost port 1521.
The Oracle Client Networking Description Files are:
[Oracle Home Directory]\Network\Admin\sqlnet.ora
and
[Oracle Home Directory]\Network\Admin\tnsnames.ora
See the sqlnet.ora line [ NAME.DIRECTORY_PATH= (TNSNAMES, EZCONNECT) ]
Default is TNSNAMES.
TNSNAMES reads the description from the tnsnames.ora file.
Add your tnsnames description to the tnsnames.ora file. Use the CONTOSO connection description below as a guide.
Check with the Database Administrator, for HOST, PORT and the database SERVICE_NAME parameters.
Use the Oracle tnsping command to check the connection description.
tnsping CONTOSO
CONTOSO = (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracleserver.contoso.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = CONTOSO)
)
)
Please remember that this is for the Power BI Desktop.
If you plan to move your Power BI Project to a Cloud Services or to a Local Power BI reporting server, check with your Server Administrator for connection information.
I have oracle 9i already installed in my machine. I am trying to connect to the oracle but while connection i am getting "ora 12560 tns protocol adapter error" type of error. i have tried it with the default pass scott/tiger , system/manager..
When i tried to connect to the oracle using default credentials i am getting the above error.
is it the problem with the username and password ? if so how can i get the username and password which is already set ?
IME, ORA-12560 means the Oracle Universal Installer messed up your listener configuration.
Assuming you have an Oracle 9i Server installed on your computer, here's a list of things to check.
does "lsnrctl status" show your database instance?
does "tnsping my_service_name" work?
do tnsnames.ora and listener.ora contain entries for your database? Are the hostname / port etc. correct?
If the configuration is wrong, your best bet is to start netca, remove your existing listener configuration and re-configure it.
One question, though: Why do you want to run Oracle 9i? Do you have to support some kind of legacy application / database? (Oracle 11gR2 is so much nicer than 9i)
Start -> Run -> services.msc
Select the oracle service name and right click on it then select start.
I started to receive this error while I`m using C# with Oracle 10g.
ORA-12560 and I really need to solve it as I`m running out of time on my grad project.
ORA-12560 is a configuration issue. This makes it difficult to diagnose remotely. I have answered a similar question on SO before. my advice is general enough that it should help you too. Find out more.
If it doesn't you'll need to post more details of your listener.ora, tnsnames.ora and perhaps your hosts files.
edit
"All the files are hosted here:"
Hmmmm. Both listener.ora andtnsnames.ora reference HOST = SIKAS-TOSH but server is not included in the hosts file.
edit 2
"the Oracle 10g Express Edition is
installed on my PC"
If your database is on your PC then the files on some web-server are irrelevant. It is the listener.ora andtnsnames.ora on your PC which matter. Those versions of the file need to reference HOST = localhost or else your hosts needs to include SIKAS-TOSH as an alias for 127.0.0.1.
Make sure your listener is running. If it is, try restarting it and re-registering your database with it (through sqlplus as sysdba, type the command alter system register;). Also, make sure that if you run a local firewall you have allowed the port 1521 for incoming traffic (or your custom port if you have changed this).
In Windows the listener is a service, prefixed with the oracle home name + TNSListener.
In Linux, set your oracle home environment and type:
lsnrctl stop
lsnrctl start
I have unintalled and re-installed the oracle 10g many times as well as the ODAC112011beta, last time I didn`t install the ODAC112011beta, instead, I used the Oracle.DataAccess.Client file found in the C:\oraclexe\app\oracle\product\10.2.0\server\BIN\Oracle.DataAccess.dll ... then I started the service from START->All Programs->Oracle Database 10g Express Edition->Start Database as administrator ... now I can connect to the Oracle through C# ... I hope I face no more problems
I am able to connect to an Oracle database using several tools, but am unable to connect using Toad for Oracle 8.5.3 (though before a login/logout to Windows I was able to).
I am not using TNSNAMES.ORA to connect. I have two Oracle homes:
C:\Oracle\product\10.2.0\client_1
(OraClient10g_home1) and
C:\Oracle\product\10.2.0\client_2
(ODACHome2)
where client 2 was installed after client 1.
I have tried Toad with each home, but I get "ORA-12154: TNS:could not resolve the connect identifier specified" when I supply the database name, user name, and password. I can connect using SQL*Plus using this same information, and I can connect via ADO.NET (ODP.NET). tnsping (client 2) to the server works, but tnsping (client 1) does not.
My PATH environment variable contains, in order:
C:\oracle\product\10.2.0\client_2\bin;C:\oracle\product\10.2.0\client_1\bin
and changing the order of PATH seems to have no effect. When I added the line
NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES)
to sqlnet.ora of client 2, Toad still could not connect, but the error message appeared much more quickly.
I found the answer rather quickly after I posted, but I don't know if this is the best solution. I copied the ldap.ora file from client 1 to client 2. ldap.ora had lines like the following, which I have munged for security reasons:
DIRECTORY_SERVERS= (XXXXX:389:636,YYYYY:389:636)
DEFAULT_ADMIN_CONTEXT = ""
DIRECTORY_SERVER_TYPE = OID