Description for tnsnames.ora
hi..
can you please tell me the meanings of the different parameters in a tnsnames.ora file...
<Service_name> =
( DESCRIPTION =
( ADDRESS_LIST =
( ADDRESS = ( COMMUNITY = <community_name>)( PROTOCOL = TCP)(Host = <host_ip>)(Port = <port_no>))
( CONNECT_DATA =
(SID = <sid name>)
(SERVER = DEDICATED)
I want to know the meaning s of the bold parameters...
description, address_list, address, community, protocol, connect_data
i am new in this line...please help..I have searched the net but didnt get any satisfied answer..
Thanks a lot in advance..
Hi ,
Check the below link also:
http://stackoverflow.com/questions/43866/how-sid-is-different-from-service-name-in-oracle-tnsnames-ora
Best regards,
Rafi.
Similar Messages
-
Regular expressions for tnsnames.ora
Hi;
Does anyone have a regular expression that can be used to parse tnsnames.ora? I found:
const string pattern = @"(?<name>[A-Z\-_]+\.WORLD)|" +
@"(PROTOCOL = (?<protocol>[A-Z]+))|" +
@"(HOST = (?<host>[A-Z0-9._]+))|" +
@"(PORT = (?<port>[0-9]+))|" +
@"(SID = (?<sid>[A-Za-z0-9.\-_]+))|" +
@"(SERVICE_NAME = (?<service>[A-Z\-._]+))";
on the web but it does not return the name (the most critical part).
??? - thanks - dave@notivago
In the meantime I also came up with a pattern to
check the YELLOW case:
String partly =
"\\d{0,8},?|\\d{6,8},\\d{0,3},?|\\d{6,8},\\d{1,3},\\d{
0,3},?|\\d{6,8},\\d{1,3},\\d{1,3},\\d{0,2}";Sounds good to me.
It seems to work. But my actual goal is to do such
color-coded syntax checking for other number types
(other patterns) as well. And it should be easy to
add or change number types.I cant figure how to do that for now.
So it would be nice to have a generic way to generate
the YELLOW-pattern from the other one. Is it
possible? Probably, but I cannot come up with any idea now.
Is there a better solution than my one
("String partly" above)? Something I can just append
to the original pattern for example?There are others, but it is hard to say what would be better or worse. -
Substitute for TNSNAMES.ORA ?
Hi Gurus,
Actually I don't want to keep the tnsnames.ora on every client ... rather I would like to have it at the server side. So, overtime we have a new entry I don't have to update all client's tnsnames.ora ... one update on the server side should do the job ...
Is there any way to accomplish this task ?
Appreciate all your reply.
Thanks
VaithyThere are a couple of options here...
For larger sites, you will want to install Oracle Internet Directory. You could also install an Oracle Names server, but that it being desupported over time, so it's not appropriate for a new installation. The Net Services Administrator's Guide has a section on configuring directory services http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96580/namingcf.htm#479411
If we're talking about a small group, and you don't want to administer another application, you could set the TNS_ADMIN environment variable on each client machine to point to a shared tnsnames.ora file on a file server somewhere. There are probably performance downsides here (I've never tested it) and it doesn't scale well, but it's probably fine for a work group of developers or interactive users.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
TOAD/OID and TNSNAMES.ORA
We had OID installed on a trial basis here to replace tnsnames.ora files on servers, laptops and desktops. We have since uninstalled and removed all files and registry entries of the application from the server where it was installed.
I had my laptop set up to use OID and I removed my TNSNAMES.ORA file. I have since removed all files from my laptop that had anything to do with OID and I put in a new TNSNAMES.ORA file. At the present time I can delete my TNSNAMES.ORA file from my laptop and TOAD will still connect to Oracle. However, SQLPlus or any other tool I use to connect to Oracle will not connect. Also, I can connect to Oracle databases that are not in my current TNSNAMES.ORA file.
I have scanned my laptop looking for TNSNAMES.ORA files. I have set my registry to include a TNS_ADMIN entry to point to my current TNSNAMES.ORA file and I have set up user and system variables to point to my current TNSNAMES.ORA file but nothing seems to stop TOAD from using the Oracle connection strings that were established in OID. By the way, I uninstalled TOAD, cleaned out all files and registry entries that I know of; then I reinstalled TOAD. That didn't help either.
Does anybody have any ideas of where I can look to resolve this?
Thanks,
TomIs it possible, you are a 'victim' of hostname resolution? If there's a constellation like:
1)You have a host named host.something.com
2) You enter 'sqlplus scott/[email protected]'
then Oracle generates
(DESCRIPTION=
(CONNECT_DATA=(SID=*)(SERVICE_NAME=host.something.com))
(ADDRESS=(PROTOCOL=TCP)(HOST=host.something.com)(PORT=1521))
Connect will succeed if you have a corresponding configuration on the server side,you don't need any configuration files on the client side.
BUT, since you have sqlnet.ora, which points to tnsnames as name resolution, it would mean TOAD ignores yout sqlnet.ora. Nevertheless host name resolution could be an explanation for this mysterious behaviour. -
Hi,
I have installed Oracle 10.2.0.1 and then created my listener and tnsnames using NETCA.I am getting the following error for tnsnames.ora.
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.102))(PORT = 1521)) (CONNECT_DATA = (SID = ora10g))
TNS-12533: TNS:illegal ADDRESS parameters
Listener does not give any error.I am including the tnsnames.ora and listener.ora files for your referral.I would appreciate if someone can help point out the error.
Listener.ora
# listener.ora Network Configuration File: F:\oracle\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER10G =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.102)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
SID_LIST_LISTENER10G =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = F:\oracle)
(PROGRAM = extproc)
tnsnames.ora
# tnsnames.ora Network Configuration File: F:\oracle\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORA10G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.102))(PORT = 1521))
(CONNECT_DATA =
(SID = ora10g)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
where,ORA10G is my database name and LISTENER10G is the 10g listener name.
Regards,
SomdAnand,
Here is the output....
LSNRCTL> status LISTENER10G
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.102)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER10G
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Start Date 13-MAR-2009 02:43:43
Uptime 3 days 16 hr. 35 min. 52 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File F:\oracle\network\admin\listener.ora
Listener Log File F:\oracle\network\log\listener10g.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.102)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Services Summary...
Service "ora10g" has 1 instance(s).
Instance "ora10g", status READY, has 1 handler(s) for this service...
Service "ora10gXDB" has 1 instance(s).
Instance "ora10g", status READY, has 1 handler(s) for this service...
Service "ora10g_XPT" has 1 instance(s).
Instance "ora10g", status READY, has 1 handler(s) for this service...
Service "oracle10g" has 1 instance(s).
Instance "oracle10g", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL> start LISTENER10G
TNS-01106: Listener using listener name LISTENER10G has already been started
LSNRCTL> exit
C:\Users\Somd>tnsping ORA10G
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-MAR-2
009 19:20:05
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.
1.102))(PORT = 1521)) (CONNECT_DATA = (SID = ora10g))
TNS-12533: TNS:illegal ADDRESS parameters
Regards,
Somd -
How to configure listener and tnsnames.ora on 10g version
how to configure listener and tnsnames.ora on 10g version
If you are on linux platform, on command prompt execute netmgr and configure listener fromt there. Or go to $oracle_home/network/admin/listner.ora write the following
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
For tnsnames.ora write the following
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
) -
Cannot find tnsnames.ora error message
We are using oracle 10.2.0.1 via Toad. I get a cannot find tnsnames.ora file error message and see only a tnsnames.ora file in the sample file under the c:\ORACLE\product\10.2.0.1\NETWORK\ADMIN\ directory.
Do I need to create this file, and if so how do I do this?
Thanks in advance for your help
regards,
user12943453Do I need to use the TNSNames Editor? No need for tnsnames.ora or SQL*net to access local DB
Can I just use direct connect and the sqlnet editor?YES! -
I am checking new group i moved to did'n see tnsnames.ora file in
$ORACLE_HOME/network/admin directory of most servers, wondering how i can find the tns entries for those, what is the default location for other kind of tnsnames.ora files,
Basically i am trying to access DB with OEM and need there connection strings...hi,
during the installation of 10g i have not created any database. later i created a database using Database Configuration Assistant. now the problem is when i open the page of Database Control it gives me the following error page.
Database Instance: bintalebERP
Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.
Page Refreshed Mar 8, 2008 9:00:12 AM
Database Instance
Host
badshah.bintaleb.com
Port
1521
SID
bintalebERP
Oracle Home
D:\oracle\product\10.2.0\db_1
Listener
Status
Down
Host
badshah.bintaleb.com
Port
1521
Name
LISTENER
Oracle Home
D:\oracle\product\10.2.0\db_1
Location
D:\oracle\product\10.2.0\db_1\network\admin
Details TNS-12541: TNS:no listener
i searched the system for tnsnames.ora, but i couldnt.
any help will be appreciable.
Thanks -
Cleint tnsnames.ora for connecting to RAC instance
Dear all,
DB:10.2.0.1
o/s:redhat 5.6
2node rac cluster
I am getting ERROR: ORA-12170: TNS:Connect timeout occurred when trying to connect to rac instance.the timeout frequency is very less once in 10 times.
cleint tnsname.ora
RACTEST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.25)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.27)(PORT = 1521))
(FAILOVER= TRUE)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = RACTEST)
RegardsTry to connect straight to the nodes. One node at the time. You can add new tnsnames entries for all RAC nodes so you can connect only one node not the whole RAC.
example:
RACTEST1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.25)(PORT = 1521))
(CONNECT_DATA =
(SERVER = dedicated)
(SERVICE_NAME = RACTEST)
(INSTANCE_NAME = RACTEST1)
RACTEST2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.27)(PORT = 1521))
(CONNECT_DATA =
(SERVER = dedicated)
(SERVICE_NAME = RACTEST)
(INSTANCE_NAME = RACTEST2)
If both nodes are working then problem is probably in network / firewall.
Usually this kind of problems comes because one node's database instance is somehow broken. And if that is the problem correction is restart failing instance.
Edited by: Simo Kemppinen on Jul 15, 2012 12:58 PM
Edited by: Simo Kemppinen on Jul 15, 2012 12:59 PM -
Multiple entries for a single Host in tnsnames.ora
I'm part of the end user computing and we are in the process of making a consolidated tnsnames.ora file as part of our migration from Windows XP to 7.
The following two entries are to the same host, but are named different and use different ports, we can't locate the original programmer that set it up.
I need to know if this would cause conflicts or not?
PYRPROD.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = [same hostname])(Port = 1521))
(CONNECT_DATA =
(SID = pyrp1)
PYRP1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = [same hostname])(PORT = 1526))
(CONNECT_DATA =
(SERVICE_NAME = pyrp1)TekWarrior wrote:
I'm part of the end user computing and we are in the process of making a consolidated tnsnames.ora file as part of our migration from Windows XP to 7.
The following two entries are to the same host, but are named different and use different ports, we can't locate the original programmer that set it up.
I need to know if this would cause conflicts or not?
PYRPROD.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = [same hostname])(Port = 1521))
(CONNECT_DATA =
(SID = pyrp1)
PYRP1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = [same hostname])(PORT = 1526))
(CONNECT_DATA =
(SERVICE_NAME = pyrp1)
TekWarrior wrote:
I'm part of the end user computing and we are in the process of making a consolidated tnsnames.ora file as part of our migration from Windows XP to 7.
The following two entries are to the same host, but are named different and use different ports, we can't locate the original programmer that set it up.
I need to know if this would cause conflicts or not?
PYRPROD.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = [same hostname])(Port = 1521))
(CONNECT_DATA =
(SID = pyrp1)
PYRP1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = [same hostname])(PORT = 1526))
(CONNECT_DATA =
(SERVICE_NAME = pyrp1)
It won't cause any problem. -
TNSNAMES.ORA for Oracle database 11.1.0.7
Hi,
Im installed oracle database 11.1.0.7 ,but unable find the TNSNAMES.ORA File.Can any help on this.Hi,
Which OS is urs ??
Normally it is available in ORACLE_HOME/network/admin.
If it is not there, then
Use NETCA to create those files.
Normally, the Network Configuration Assistant (NETCA) is started at the end of the installation process; however, if NETCA fails or you exit before completing, the tnsnames.ora and the other files will not be created. The tnsnames.ora and the other NETCA created files are not necessary for connecting to the database locally from the server.
Thanks,
Ranjith -
Location of tnsnames.ora for Tora and Oracle XE Client
I Googled far and wide and did not see a CLEAR answer to my question, hopefully this will help others.
I have installed the debian oracle-xe-client and tora packages (tora rebuilt for oracle) on Ubuntu 8.04.
However, I did not know where I was supposed to place the tnsnames.ora file for my databases. I have tried running Tora with the environment variable of TNS_ADMIN set to the file where I placed my tnsnames.ora, however that did not work as Tora did not 'see' the file or its entries apparently. I know this works because I copied it from a Debian Etch box with the client and server installed.
I had even added a 'network/admin' directory structure to the //usr/lib/oracle/xe/app/oracle/product/10.2.0/client (ORACLE_HOME) with the tnsnames.ora but also with no success.
Now for the solution:
Simply remember that TNS_ADMIN points to the directory where the tnsnames.ora is and it will work. :)
I do have a suggestion that both Tora and sqlplus use a config file to set these directory(s) in addition to the overriding ability of the environment variable, TNS_ADMIN as is usually the case with UNIX apps (and thus expected).
Thank you,
JasonThe ODBC Instant Client Readme that is included in the install also indicates that %ORACLE_HOME%/network/admin/tnsnames.ora is the correct default location. What about OCI?
-
Datasource: ORA-02019: connection description for remote database not found
Hi,
I recently made the datasource to point to a new host, and using the EM console tested the connectivity to the datasource to be successful.
Java code that refers to the DS is also the same as before that was working as only the connection string has been changed, but now trying to access the web-application shows the following error in the logs:
==============
Exception::java.sql.SQLException: ORA-02019: connection description for remote database not found
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:113)
oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:431)
oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:1029)
oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:463)
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1126)
oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1274)
oracle_jdbc_driver_T4CStatement_Proxy.executeQuery()=====================================
What could be the reason? Is there any other app server datasource related setting that needs to be done or is it some other issue - as I said 'testing the connection from EM console connects successfully'.
Thanks,
Rommel.The issue is resolved now.
One of the queries used a db link that was missing on the new database and therefore the error from the java code.
Since testing for connectivity using DS through EM console does not check for any db link (using the default query it executes) connectivity was successful.
Thank a lot,
Rommel. -
TNSNAMES.ora for DR And Primary Instance
I have 2 node rac, how do i specify load balance and failover in the client tnsnames.ora including DR hostnames so that when the primary instance is not available it automatically goes to DR. Instead of flipping the tnsnames.ora.
You seem to have a substantial amount of confusion in your request.
When you use the term DR are you referring to an unmentioned Physical Data Guard implementation somewhere else or are you misusing the term to mean "the other node in my cluster?"
In what version of Oracle?
What services have you defined?
How is failover configured? Using TAF or FCF?
You need to provide a lot more information for us to help you.
Load balancing has nothing to do with failover. Are you asking about one of them or both?
Review the capabilities of the DBMS_SERVICE package with respect to creating a service. How did you define your RAC services? -
11g dataguard client tnsname.ora entry format for switchover and failover
I need format for the tnsnames.ora to use for the enduser when failover or switchover occurs in 11g dataguard.
http://download.oracle.com/docs/cd/B19306_01/network.102/b14213/tnsnames.htm#sthref722
Maybe you are looking for
-
How to copy contacts from one icloud account to another?
I need to transfer most contacts on my icloud account to my wife's icloud account, and I was wondering if there's a "copy and paste" way to do it. Manually coping each contact would be too time consuming. I could sign on to the icloud on her iphone,
-
Too much clips to handle!!!
Hey, Recently i shot a wedding with 3 camera's. Z1, 2x Panasonic Avchd entry level camcorder, and just finished capturing Z1 3 tapes about 2.5 hr. just 3 files to go, and when i saw the other folder of AVCHD files they are near about 950 clips... Omg
-
Duplicate photos already in photo library
Is there a way to scan your i-photo library and automatically select/delete all duplicate photos? After just recovering lost/accidentally deleted photos, I now have thousands of duplicates in my library, even tho I had selected to not import duplicat
-
F2 help not working in CRM Web UI 2007
Hi Expert, We found that Technical Information (F2 Key) is not working in our systems, popup is getting opened with blank screen and session is hanging, please suggest . thanks Venkata
-
I honestly don't know how to describe this.
You see, I am a youtube who specializes in a thing called youtube commentaries, where we show the viewer a bad video and interject why it is wrong with pictures, usually putting in effects and jokes to entertain. I bought a creative cloud subscriptio