Oracle client in linux problem with tnsnames.ora
hi all
i installed oracle-xe-cleint10.2 on linux machine i did not get any tnsnames.ora in my machine i am unable to connect to database. it shows tns connectiont identifier unfound. . is it come all with oracle client or some where else it .
or further any proceeding i should follow steps. if found solution regard this pls forward solution to me
Regard
syam
hi all
i did not get any tnsnames.ora after installing oracle client in linux machine
i installed oracle-xe-cleint10.2 on linux machine i did not get any tnsnames.ora in my machine i am unable to connect to database. it shows tns connectiont identifier unfound. . is it come all with oracle client or some where else it .
or further any proceeding i should follow steps. if found solution regard this pls forward solution to me
Regard
syam
Regards syam
Similar Messages
-
Problem with TNSNAMES.ORA (urgent)
Dear Freinds,
I am trying to run my Forms(6i) on the Form server , but as I try to login to the database to run the form I am getting an error 'ora-12154 : TNS could not resolve the service names' . I have checked the local TNSNAMES.ORA file and it has the entry for my Oracle SID , (my local machine registry has also been changed).
Please tell me if I am missing to set anything .
Thanks in advance .Hellow There,
Go to services,i.e: Start -> Settings -> Control Panel -> Services.
There is a service nam:
OracleTNSNames80
Right click on it and then click "START".
If this could not solve, then go to Oracle Net8 and try to configure "Database location" and/or "Listener Location" and see what happen in the Listener node.
If this did not help, you would go to www.Informit.com -> Free Library.
and navigate through the Library to a free electronic book:"teach u r self Oracle8 in 21 days" .. good book.
Regards
Tariq Khalaf -
Nslookup fails were as tnsping works - Oracle Client on Linux 4.0
Hello Gurus,
I am able to connect to Oracle DB on the Linux server and not from Oracle client on Linux box. I have installed Oracle Client windows version on my laptop and same release and version for Linux on Linux box.
When I try to connect to the DB from Oracle Client installed on Linux box give me ORA-012545:Connect failed because target host or object does not exists.
I have tried tnsping and the server name (hostname) ,IP and DB of the server it works.
When I tried nslookup servername (hostname) , IP and DB it fails.
Anyone over there please help me out. This is something silly happening works on Windows Oracle client and not on Linux Oracle Client. One thing to do add Linux Oracle Client has Virtual IP to it. ITs host file has an entry for local host as follows : 127.0.0.1 localhost.local.domain localhost.
Also when I tried to create netservice names using netca it's just clean.
Please help me.
Thanks in advance
Thanks
ShivaHello Matt,
The reults
[oracle@ccsdd-sdap3 admin]$ tnsping mdb
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 12-MAY-2008 10:20:16
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/oracle/app/oracle/product/10.2/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.17.180.110)(PORT = 1521))) (CONNECT_DATA = (SID = mdb) (SERVER=DEDICATED)))
OK (10 msec)
===========================================================
[oracle@ccsdd-sdap3 admin]$ tnsping ccsdd-sddb3.techteam.com
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 12-MAY-2008 10:25:56
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/oracle/app/oracle/product/10.2/network/admin/sqlnet.ora
Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=ccsdd-sddb3.techteam.com))(ADDRESS=(PROTOCOL=TCP)(HOST=172.17.180.110)(PORT=1521)))
OK (10 msec)
===========================================================
[oracle@ccsdd-sdap3 admin]$ tnsping 172.X.X.X
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 12-MAY-2008 10:21:49
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/oracle/app/oracle/product/10.2/network/admin/sqlnet.ora
Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=172.17.180.110))(ADDRESS=(PROTOCOL=TCP)(HOST=172.17.180.110)(PORT=1521)))
OK (10 msec)
==========================================================
tnsnames.ora
[oracle@ccsdd-sdap3 admin]$ more tnsnames.ora
# tnsnames.ora Network Configuration File: /oracle/app/oracle/product/10.2/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
mdb =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.X.X.X)(PORT = 1521))
(CONNECT_DATA =
(SID = mdb)
(SERVER=DEDICATED)
===========================================================
sqlnet.ora
[oracle@ccsdd-sdap3 admin]$ more sqlnet.ora
# sqlnet.ora Network Configuration File: /oracle/app/oracle/product/10.2/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (TNSNAMES,ONAMES,HOSTNAME)
==========================================================
Yes these are the reults and the files. I think this will help us to determine the problem.
Thanks
Shiva -
Strange problem with TNSNAMES file
We just rebaselined a new machine with Windows XP sp2, and installed SQL Plus Release 9.0.1.4.0. We configured the sqlnet.ora file and tnsnames.ora file and placed them in the <orahome>\network\admin\ directory.
But when we try to connect to the 8i database, we get the following error message:
ORA-112154: TNS:could not resolve service name.
Now, I know that this usually means that there's something wrong with the tnsnames.ora file. So I double-checked it and it was fine. So I replaced it with tnsnames.ora files from three other working clients. But it still gave the same error message.
Next, I replaced the sqlnet.ora file from working clients, but it still wouldn't work.
Next I added a TNS_ADMIN environment variable pointing to the <orahome>\network\admin\ directory, but still no go.
Next added an ORACLE_HOME environment variable, but no success.
I had another pair of eyes look at this, and they couldn't find anything wrong.
All the clients are on the same network, the database is up and running, and the other clients can connect without a problem. The client that is not working can ping the server where the 8i database resides.
Help! What am I overlooking? Something in the registry? Can this error message appear for something wrong in the database even though the other 3 clients can connect?Mark,
I don't think there's something wrong with your database.
This seems more of a communication error between the client and the database, are the other clients the same version?
From what I know 10g clients are not compatible with 8i databases.
It's an SID issue I think, can';t remember now.
will lookup and feed back.
regards,
Tony
PS: Try creating the LOCAL entry in the registry and use the SID you are trying to connect, MIGHT help
Message was edited by:
Tony Garabedian -
Problem with TSNNAMES.ORA
Hi all,
I have a problem with tsnnames.ora file. After i installed obiee and when i careated dsn and when i test it the connection is failed. My OS is windows vista and i cant find the path for the TSNNAMES.ORA in my system. Any help is highly appreciated
Thank You AllHi User,
The best thing to do to ensure connectivity with Oracle databases is a tnsping command. If you can tnsping it, then OBIEE should be able to connect to it.
Here's how you do that:
1. Go to Start -> Run -> cmd
2. type in: tnsping <tns entry name> e.g: tnsping ORCL
3. View the response. The response will tell you if it connected successfully, and which tns file it used.
Good luck and let me know if this helps.
-Joe -
Hi folks,
I want to apply patchset 10.2.0.3 to a 10.2.0.1 Oracle "Client" on Linux (both 32bit and 64bit). So, I started with the 64bit Linux.
1. installed the 10.2.0.1 Client,
2. downloaded the patchset 10.2.0.3 (5337014) for 64bit Linux,
3. read the documentation for the 5337014 patchset
I also downloaded the patchset 5601428 (specified in document 412160.1 referenced in the patchset document), and patchsets 4689959 and 5632264 (specified in document 396671.1 - which is Time Zone related).
I understand that if I do apply the 10.2.0.3 patchset to a 10.2.0.1 database server installation, then I need to apply the patchsets 5601428 and 4689959 (or 5632264) but for just applying the patchset 10.2.0.3 (5337014) to a 10.2.0.1 client, do I still need to apply 4689959 and/or 5632264 ?
will simply (only) applying 10.2.0.3 (5337014) will do the job on the Oracle Client ?
I have done this so many times for the Database Server but haven't done it for the Oracle Client - did search the forums and Metalink but did not find anything specific to applying patchsets to Oracle Client installations.
Thank you and Best regards
ZaferSomebody replied my query on Metalink telling me applying the patchset is the same as the server and to follow the installation manual instructions :) Oracle patchset installation help file (document) could be clearer for the Client installation (as they did include explicit sections for RAC's, etc in the same doc).
Edited by: zaferaktan on Jul 2, 2009 5:31 PM -
Higher version of Oracle client version is compatible with lower version
Higher version of Oracle client version is compatible with lower version Oracle DB
Oracle 10.2.0.5 client version should be compatible with 10.2.0.4 DB ?H wrote:
Higher version of Oracle client version is compatible with lower version Oracle DB
Oracle 10.2.0.5 client version should be compatible with 10.2.0.4 DB ?yes, compatible -
Oracle Unbreakable Enterprise Linux come with an ndiswrapper kernel module?
Hello
Does Oracle Unbreakable Enterprise Linux come with an ndiswrapper kernel module?
Does Oracle Unbreakable Enterprise Linux come with a package for the ndiswrapper kernel module that matches the kernel version?
What wireless driver is compatible with Oracle Unbreakable Enterprise Linux?Hi,
Oracle Unbreakable Linux does not come with any ndiswrapper kernel module and any package for ndiswrapper module. But it includes many wireless network drivers. You can look at them from kernel package. For example
rpm -qlp kernel-2.6.18-8.el5.i686.rpm |grep wireless
From the output, you can find which wireless drivers are coming with Oracle Unbreakable Linux kernel. -
Client side connection problems with Oracle
Hello,
I'm using JUnit to test my code and am having client connection problems.
Weblogic server 6.1sp2, oracle 8.1.7, win 2000
I create an oracle user on the fly (with a dynamic name) and then need to connect
so I'm getting a direct connection, rather than using a connection pool.
it works fine when run through the container, but when run through JUnit I get the
following error:
java.sql.SQLException: The pool driver only works within the WebLogic server, it
cannot be called directly in a client. Use the t3 driver.
So i changed the code to:
driver = (Driver)Class.
forName("weblogic.jdbc.t3.Driver").newInstance();
from:
driver = (Driver)Class.
forName("weblogic.jdbc.oci.Driver").newInstance();
and now i get this error:
java.sql.SQLException: No suitable driver
Any ideas??
Thanks!
SaraHi Sara,
You may want to look at Cactus framework. This is a JUnit extension
for serverside tests. You won't need to care about server/client
configuration:
http://jakarta.apache.org/cactus/index.html
Regards,
Slava Imeshev
"Sara Chieco" <[email protected]> wrote in message
news:3cf7b9ad$[email protected]..
>
Hi Sree,
Actually, I also have a connection pool, so I am getting connections tothe database
both using the pool (for the static user) and directly for the dynamicusers.
>
Here's the code in the config.xml:
<JDBCConnectionPool CapacityIncrement="2"
DriverName="weblogic.jdbc.oci.Driver" InitialCapacity="6"LoginDelaySeconds="1" MaxCapacity="60"
Name="pics"
Properties="weblogic.oci.cacheRows=500;user=**;password=**;defaultRowPrefetc
h=500;server=nmctest"
RefreshMinutes="10" ShrinkPeriodMinutes="15"
ShrinkingEnabled="true" Targets="nmc2Server"
TestTableName="dual" URL="jdbc:weblogic:oracle"/>
<JDBCTxDataSource EnableTwoPhaseCommit="false"
JNDIName="weblogic.jdbc.jts.pics" Name="pics" PoolName="pics"Targets="nmc2Server"/>
>
And if I change the above DriverName to weblogic.jdbc.pool.Driver the poolno longer
works, and the direct connection (attempted with weblogic.jdbc.oci.Driver)does not
work either.
Thanks for your help!
Sara -
Connection to db works with ezconnect but fails with tnsnames.ora
Hi,
When I try to connect to remote datbase using 10g ezconnect, it works fine. But when I tried to connect to same database using tnsnames.ora, it fails:
sqlnet.ora on client side:
================
###SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH=(tnsnames, onames, hostname, ezconnect)
tnsnames.ora on client side
=================
MRAP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = moody)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = MRAP.ALBILAD.COM)
Listener On DB Server:
===============
$ lsnrctl status
LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production on 04-APR-2010 16:29:16
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=moody)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production
Start Date 04-APR-2010 16:28:59
Uptime 0 days 0 hr. 0 min. 16 sec
Trace Level off
Security ON: Local OS Authentication
SNMP ON
Listener Parameter File /u01/app/oracle/product/10.2.0/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=moody)(PORT=1521)))
Services Summary...
Service "mrap.albilad.com" has 1 instance(s).
Instance "mrap", status READY, has 1 handler(s) for this service...
Service "mrapXDB.albilad.com" has 1 instance(s).
Instance "mrap", status READY, has 1 handler(s) for this service...
Service "mrap_XPT.albilad.com" has 1 instance(s).
Instance "mrap", status READY, has 1 handler(s) for this service...
The command completed successfully
Now, on client, when I connect with each of methods written above, following is output:
C:\Documents and Settings\c900796>sqlplus ingrian/[email protected]:1521/mrap.albilad.com
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 4 16:57:18 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show user;
USER is "INGRIAN"
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64
bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:\Documents and Settings\c900796>sqlplus ingrian/ingrian@mrap
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 4 16:57:25 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
Enter user-name:
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
ERROR:
ORA-12560: TNS:protocol adapter error
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
C:\Documents and Settings\c900796>
What do you suspect could be the issue?
Br,
AnjumC:\Documents and Settings\c900796>sqlplus ingrian/ingrian@mrap
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 4 16:57:25 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specifiedstates, in no uncertain terms, that the system can not find the @mrap in the TNS translation methods. Usually that indicates a problem in finding the correct entry in the correct tnsnames.ora file. Some related thoughts:
1) The LIST of methods allowed is found in SQLNET.ORA on the client. If multiple methods are in the list, the client will step through the methods.
It is possible that you do not have method calling the TNSNAMES.ORA file in the list. (You appear to have that.)
2) The mrap must be one of the entries on the left hand side of te equals sign of a stanza.
MRAP = (DESCRIPTION (appears to provide that)
3) The SQLNET.ORA could provide a 'default domain' to append on the end of the lookup value in TNSNAMES.ORA
Not sure whether your post of the sqlnet.ora selectred only a few lines or the entire file.
4) Variable issues can exist.
- The TNS_ADMIN variable may be used to force the use of a specific directory instead of %ORACLE_HOME%\network\admin .
- ORACLE_HOME can be adjusted by a variety of methods, and may be in both teh registry and the system environment -
I just want to have the Oracle clients (sqlplus, sqlload, sql*net
etc) installed on a linux box. Where can I download them? I don't
want to download that huge whole server file.
Thanks!
dp
nullI've installed Oracle Client 8.1.7 on a Linux machine. I want to connect to a Database on a Oracle Server, which is installed on a Win NT machine.
During installation I gave the name, host, port(1521) of a database, which was promptly registerd in ORACLE_HOME/network/admin/tnsnames.ora file.
When I try connecting to the database, I get the TNS Error :
could not resolve service name
What is the problem? Even tnsping on the host gives a similar message :
Failed to resolve ......
Please help....thanx....
null can you do a ping (not tnsping) on your windows machine from Linux?
If you copy the same tnsnames.ora entry over to your windows machine and try connecting to your database
using Windows client (using this copied tnsnames.ora entry), can you connect sucessfully or you get the
same error message again? -
Troubles with TNSNAMES.ORA - with solution
Hi There
I've had the problems described and solved in other entries of the forum.
But then I ran in to a new one, the product would only read part of the file..!
I've found that the problem apparently is that if there is an entry with a host that is not available then the product stops reading the file.
I removed the entry and then it continued until the next unavailable server, which i then deleted. Finally I had a full TNS list in the product. But when the other servers becomes available again I have to add them to TNSNAMES.ORA, so I hope Oracle will fix it.
A part from that a fine product.
/regards Ole JørgensenThats strange, as we do not ping every host to make sure it is available. is this a 10.2 Oracle Home?
-
Configuring Clients to Share Net80 Configuration (TNSNAMES.ORA)
I'd like to setup all client net80 connections to share a
TNSNAMES.ORA file. I have tried adding the regestry key
TNS_ADMIN to HKEY_CURRENT_USER|ENVIORNMENT key but
have had no success. Not sure if it should be entered as
a environment variable, I added TNS_ADMIN to
HKEY_LOCAL_MACHINE|SOFTWARE|Oracle|HOME0 and still had no
success.
The client machines are Windows 2000. Has anyone configured
this?
Any help would be appreciated.
TammyI found the problem... actually it was working, just not from
Oracle's Administrator Toolbar (which was what I was using to
test the configuration). Strange.
Thanks. -
Oracle 8 EE (CD) problem with Java & Memory
i have thi problem. When I run installation from Oracle 8i
Enterprise Edition (Release 8.1.5) just install maybe half of
all database. Some problem with memory (like no free memory in
computer.) But why if I have 64Megs of ram ?!
Some same problems ?
Thanx
nullIt should be a problem whith Java on Linux ... The blackdown guys
says that the gc doesn't work "perfectly" on Linux ... If you
look at the process size while the installation, it starts to
grow bigger and bigger, etc ...
Take a look at your swap size, or try the green threads, or
another version of the jvm : I installed 8i whith java v1.1.7v3,
green threads.
Hope this helps.
Lukas Mesani (guest) wrote:
: i have thi problem. When I run installation from Oracle 8i
: Enterprise Edition (Release 8.1.5) just install maybe half of
: all database. Some problem with memory (like no free memory in
: computer.) But why if I have 64Megs of ram ?!
: Some same problems ?
: Thanx
null -
Oracle database 10g connectivity problem with Report Builder
Hi,
I need to amend a .rdf report and am using the dev10g. I can't connect the test database from report builder.
It is getting the error like :
"ORA-12154 : TNS: could not resolve service name".
I can connect the database from sql*plus, Toad etc. Also It's giving me the response when I run the TNSPING command with the database name.
Could someone advise me that how can I resolve this problem?
Thanks,set the TNS_ADMIN variable point to the correct tnsnames.ora file
or try the note mentioned in http://www.alexyscorp.com/products.htm
Lastly try opening a command line/dos prompt, set the TNS_ADMIN variablea and start the reports builder from commandline
Rajesh
Maybe you are looking for
-
I downloaded and rented a movie from ITUNES ver 11. I'm able to run the movie but after about 30 seconds I receive an error. "Itunes has stopped working" A problem cause the program to stop working correctly. Windows will close the program and notify
-
JSF action before the page is displayed?
Hi all, What's the best way to execute a backing bean method before the page is rendered? I have to fill out some selectOneMenus on the page with a backing bean method. Will the onload JavaScript function in the <body> tag do this for me? How does on
-
I want to create a rich black, CMYK gray image. The colors must blend CMYK to make a nice gray image. It would be nice to apply GCR to remove some of the CMY and reduce the TAC. So far, I am able to make this happen. However, as a result of the GCR,
-
IPM 11g Picklist based on database lookup
Is there a way with IPM 11g to create a picklist based on a database lookup? If so how?
-
Getting max date and max time column plz help
hi i have a table with suppose 7 columns with date and time column seperate i want to design a query which retrieve the current or the maxmum date with the max of time in that date. columns a ,b,c, date, time 22-05-07 20 23-05-07 50 24-05-07 40 25-05