Is it possible to query the TNSNames.ora OEM repository info?
Hello
My project requires me to generate the OEM repository TNSNames.ora.
Is this possible? Does anyone know how interrogate this OEM repository.
I would need to HOST, PORT, and SID to generate the file in the format requested.
Thank you
Mihir
Mihir,
You can query the view of MGMT$ TARGET_PROPERTIES for the information.
Ex:
Select property_name, name
Mgmt $ target_properties
where target_name = "
and property_name in ('ComputerName', 'Port', 'SID', 'PreferredConnectString'); Note: If a value (connection string) is set to "PreferredConnectString" as the connection string will be used. For more information on the above view, see: Using views of repository management Kind regards -Loc
Tags: Enterprise Manager
Similar Questions
-
Net Oracle does not read the tnsnames.ora file.
I am running 11.2.0.3 on Solaris 10 SPARC x 64. I'm trying to configure oracle net for a new database on hold in order to be able to use rman duplicate to create. LDAP is what we mainly use for all of our connections and, possibly, what I could use very well for my goal of rman duplication. But, I fear that I do nothing seems to allow me to read the tnsnames.ora file.
My SQLNET. ORA file is as follows:
NAMES. DIRECTORY_PATH = (LDAP, TNSNAMES)
NAMES. DEFAULT_DOMAIN = mydomain.com
My TNSNAMES file. ORA file is as follows on both servers:
WLDB_HERE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = primary_server) (PORT = 1521))
)
(CONNECT_DATA = (SERVICE_NAME = wldb_here.mydomain.com))
)
WLDB_THERE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = standby_server) (PORT = 1521))
)
(CONNECT_DATA = (SERVICE_NAME = wldb_there.mydomain.com))
)I have a static entry in the remote listener.ora file so I can connect to create the instance:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = wldb_there.mydomain.com)
(ORACLE_HOME = / u01/app/oracle/product/OraHome112)
(SID_NAME = WJZI)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = standby_server) (PORT = 1521))
)Permissions on my .ora files in $ORACLE_HOME/network/admin are
-rw - r - r - 1 oracle dba
The user that I am connected to who is oracle.
I have set up several times before, but for some reason that I can't get this to work. I get
AMT-03505: failed to resolve host
Of
tnsping wldb_there
or
tnsping wldb_here
I have not tried to take the LDAP Protocol on my sqlnet.ora because I need, but I really want to know if anyone has had an experience like this before.
Thank you-
gregb wrote:
I am running 11.2.0.3 on Solaris 10 SPARC x 64. I'm trying to configure oracle net for a new database on hold in order to be able to use rman duplicate to create. LDAP is what we mainly use for all of our connections and, possibly, what I could use very well for my goal of rman duplication. But, I fear that I do nothing seems to allow me to read the tnsnames.ora file.
My SQLNET. ORA file is as follows:
NAMES. DIRECTORY_PATH = (LDAP, TNSNAMES)
NAMES. DEFAULT_DOMAIN = mydomain.com
My TNSNAMES file. ORA file is as follows on both servers:
WLDB_HERE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = primary_server) (PORT = 1521))
)
(CONNECT_DATA = (SERVICE_NAME = wldb_here.mydomain.com))
)Because you have NAMES. DEFAULT_DOMAIN = mydomain.com in your sqlnet.ora, when you try to connect to "WLDB_HERE", before tnsnames.ora is read, sqlnet will transform your application in "WLDB_HERE.mydomain.com". And that's what he's going to get.
You do not have an entry in your tnsnames.ora to 'WLDB_HERE.mydomain.com '.
WLDB_THERE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = standby_server) (PORT = 1521))
)
(CONNECT_DATA = (SERVICE_NAME = wldb_there.mydomain.com))
)I have a static entry in the remote listener.ora file so I can connect to create the instance:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = wldb_there.mydomain.com)
(ORACLE_HOME = / u01/app/oracle/product/OraHome112)
(SID_NAME = WJZI)
)
)LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = standby_server) (PORT = 1521))
)Permissions on my .ora files in $ORACLE_HOME/network/admin are
-rw - r - r - 1 oracle dba
The user that I am connected to who is oracle.
I have set up several times before, but for some reason that I can't get this to work. I get
AMT-03505: failed to resolve host
Of
tnsping wldb_there
or
tnsping wldb_here
I have not tried to take the LDAP Protocol on my sqlnet.ora because I need, but I really want to know if anyone has had an experience like this before.
Thank you-
-
Hello
I'm installing Oracle Database 11 g 2 (11.2.0.4) on Oracle Linux 7.1.
In short, what I'm trying to do now is changing the default port of 1521 to 1525.
So I stopped the listener (lsnrctl stop) and then changed my listener.ora and tnsnames.ora:
Listener.ora
listener.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP (PORT = 1525))(HOST = localhost))
)
)
ADR_BASE_LISTENER = / u01/app/oracle
tnsnames.ora
tnsnames.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
BI =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP (PORT = 1525))(HOST = localhost))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = bi)
)
)
And then changed the local_listener:
SQL > ALTER SYSTEM SET LOCAL_LISTENER = "(ADDRESS = (PROTOCOL = TCP)(HOST=localhost) (PORT = 1525))";
SQL > ALTER the REGISTRY SYSTEM;
Finally, I started the listener (lsnrctl start) again.
Then I tried to connect using Oracle SQL Developer to the customer. The port of 1525 works perfectly well.
The problem is, when I open the OEM (Oracle Enterprise Manager), it says: "the database is down. Please specify the credentials of the host to access the restart and database diagnostic tools," which is like this: http://imgur.com/oKLPW65
So I logged on the account of the host, and it shows that the database instance, listener and the agent is all down like this: http://imgur.com/Bzr84bz
It seems that the port used by the OEM is always 1521.
What should I do? Can someone help me solve the problem?
Thanks in advance.
UPDATE:
After changing the emoms.properties & the targets.xml (thanks to Elisabeth), you will need to reconfigure dbconsole using emca.
So what I'm doing is decreasing the config:
$ emca - deconfig dbcontrol db-rest drop
and then create again:
$ emca - create config dbcontrol db-rest
Voila.
Best regards
Jerry Antonius
Hello
Try to change the port numbers in the following files
Don't port no 1521 to 1525
$ORACLE_HOME /
_SID/sysman/config/emoms.properties oracle.sysman.eml.mntr.emdRepPort = 1525 (before 1521)
$ORACLE_HOME /
_SID/sysman/emd/targets.xml (Before 1521) (Before 1521) -
Is it possible to query the values of an enforcement strategy?
Is there an API to query the values of an enforcement strategy?
I suggest quite awhile we all plant with our own tests and we could create some sort of library, but he did not get any traction.
Also on the talks with BlackBerry there was a suggestion that at some point in the future, there may be an API for this. -
location of the file tnsnames.ora and Listener.ora
Hello
env: Oracle 11 g 2 - Orable Linux 6.2 64bits
I set up a database for the client server. I installed IM and the House according to the standards of the Oracle RDBMS. Then I configured the listener to run BOF IM home. If the location of the 'ora, tnsnames' and 'listener.ora' files is $GI_HOME/network/admin.
Customer's DBA is asking me to conform to the standard for the location of these two files. Here's what he asked for:
/ opt/oracle/owner = oracle, group = s/n (755 permissions)
/ var/opt/oracle owner = oracle, group = s/n (755 permissions)
- -touch /var/opt/oracle/listener.ora
- -touch /var/opt/oracle/tnsnames.ora
- -chown oracle: dba /var/opt/oracle/listener.ora
- -chown oracle: dba /var/opt/oracle/tnsnames.ora
- -s /var/opt/oracle/tnsnames.ora /etc/tnsnames.ora ln
- -s /var/opt/oracle/listener.ora /etc/listener.ora ln
I'm completely lost here. I don't know if I'm moving these two files in the folder "/ etc", how the LISTENER know about the presence of these files in ' / etc '.
His reason for this is to support the possibility of having several houses of Oracle's RDBMS. I don't know what he's talking about.
Please notify.
Best regards
user130038 wrote:
Thanks to you two!
So basically this DBA do not like to follow standards of Oracle but his own.
BINGO!
What is the problem with the help of $ORACLE_HOME/network/admin for these two files if there were several homes of oracle on a server? Sorry I never got to work on a server with multiple oracle homes, so I have no idea.
The 'standard' with several houses installation is to run the listener from the version the most recent House. If all of the houses are of the same version (putting aside the question of 'why'), then just pick one that is going to be home for the listener. If the installation program uses the Grid Infrastructure (ASM and/or Oracle Restart), you must run the listener from the House of IM, not House the database.
There are some key things to consider here.
1. the auditor is to receive and process applications for connecting customers. This is why the listener has no meaning on the Server. Similarly, its configuration file, listener.ora, only makes sense on the server.
1a. a single listener, using the default name of the LISTENER and the unique default port of 1521 is quite capable of--indeed, we wanted to - several multiple databases editions of multiple service homes.
2. the tnsnames.ora file provides a name resolution and address customers. So it has the sense that on the client computer.
2. when a database uses a db link to access a different database, the first database acts as a client to the second - as with any other LDAP client.
Best regards
-
Change the location TNSNAMES.ora (discoverer 11g)
HelloI have a requirement where I need to change the location of tnsname.ora.
I installed Oracle Fusion Middleware install (11.1.1.7) and then set the field to the Finder only.
Tnsnames.ora location is $DISCO_INST_HOME/config/tnsnames.ora
Another use of symbolic link, can I change the configuration to change the location of the TNSNAMES.ora file.
Concerning
Sumit SALAUN
Hi Sumit
I have additional information for you, with the permission of a contact I within the Oracle.
Yes, you can use the TNS_ADMIN environment variable.
Indeed, in the [middleware_home]\[oracle_instance]\config\OPMN\opmn\opmn.xml that it points to the location that you mentioned.
You can update the location of the file
Run: [middleware_home]-[oracle_instance\bin\opmnctl reload (to pick up the new changes in the opmn.xml file
the next session of discoverer (dis51ws) began to read the changes.
If this fails, stopall opmnctl, then opmnctl startall
I also checked on other files that I mentioned earlier. We believe that they are not necessary for the discoverer, or why they would have this environment variable defined here as the repositories of metadata of Fusion Middleware use JDBC. They must be to another generic use of Weblogic or custom java applications.
The binary discoverer/server only read /sessions opmn.xml - so simply by changing opmn.xml should be enough
Best wishes
Michael
-
tnsnames.ora and oracle cleint
We have a duty to make an analysis of data on one of our oracle databases. We have a copy of the tnsnames.ora file with the Server DB and SID etc.
If you use something like toad or gold to query the DB, you also need to install client oracle on the machine (windows XP)? Or just the TOAD software?
Is there a device by default on XP where tnsnames.ora needs to be saved?
And if we don't need the customer what is the right version?user599292 wrote:
We have a duty to make an analysis of data on one of our oracle databases. We have a copy of the tnsnames.ora file with the Server DB and SID etc.If you use something like toad or gold to query the DB, you also need to install client oracle on the machine (windows XP)? Or just the TOAD software?
Is there a device by default on XP where tnsnames.ora needs to be saved?
And if we don't need the customer what is the right version?
Toad, Yes, you have the Oracle client. Cannot say on 'gold', I don't know what it is. In general, any product like that will sit on top the Oracle client, not replace it.
There is nothing magical about tnsnames.ora. It is just a file of name resolution that is used by the software oracle client. If you have a magical application which replaces the customer oracle instead of using it, then your tnsnames.ora will be without intrinsic value beyond giving you the necessary information configure magic of the application.
Published by: EdStevens on October 14, 2011 06:32
-
Instant tnsnames.ora for client Configuration procedure?
The instant client has any tnsnames.ora or tnsping.exe. There is no 'normal' client available anywhere on the site of oracle, who needs this instant client which is completely unusable - http://download.oracle.com/docs/cd/B19306_01/server.102/b14196/network005.htm#CIHJHJGJ said to use Oracle Net Manager to set up the network for the instant client, but where to find the Oracle Net Manager? It is not available separately, but only with the Oracle sever Installer. Why does download the server in order to use just the customer?
I created the structure of network/admin directory and copied the tnsnames.ora in it and also copied the tnsping.exe, but it does not say some 'no message file. Can someone please?
Published by: user4928701 on 16 Sep, 2011 04:00user4928701 wrote:
There is no 'normal' client available anywhere on the oracle website,Subsection through software downloads of database, under the see all link for your platform, you will find the Setup file of database "full" Client (e.g., win32_11gR2_client.zip).
http://www.Oracle.com/technetwork/database/Enterprise-Edition/downloads/index.htmlhttp://download.Oracle.com/docs/CD/B19306_01/server.102/b14196/network005.htm#CIHJHJGJ said to use Oracle Net Manager to set up the network for instant customer,
Where does say instant customer?
and also copied the tnsping.exe Moreover,
Copy of the files at random on installations of Oracle is obviously not possible.
Please use an appropriate installation package. If you need administrative tools, I would say this type of installation by the full Client with the "Administrator".However, for normal applications need connection OIC/Net base libraries and to facilitate their deployment, Instant Client agrees very well.
-
Earphone &; tnsnames.ora
I'm confused verymuch is a client/server configuration.
I need help you popular.
I posted the two clients/server listener & tnsnames.ora,.
that I set up.
Server listener.ora (test1)
SID_LIST_LISTENER =
*(SID_LIST =*)
*(SID_DESC =*)
* (SID_NAME = PLSExtProc) *.
* (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
* (= Extproc program) *.
*)*
*(SID_DESC =*)
* (GLOBAL_DBNAME = TEST1) *.
* (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
* (SID_NAME = TEST1) *.
*)*
*)*
TEST1 =
*(DESCRIPTION =*)
* (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.
*)*
SID_LIST_ORCL =
*(SID_LIST =*)
*(SID_DESC =*)
* (GLOBAL_DBNAME = TEST1) *.
* (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
* (SID_NAME = TEST1) *.
*)*
*)*
LISTENER =
*(DESCRIPTION =*)
* (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) *.
*)*
ORCL =
*(DESCRIPTION =*)
* (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop041.tvsil.com)(PORT = 1522)) *.
*)*
Server tnsnames.ora
TEST1 =
*(DESCRIPTION =*)
* (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.
*(CONNECT_DATA =*)
* (SERVER = DEDICATED) *.
* (SERVICE_NAME = TEST1) *.
*)*
*)*
ORCL =
*(DESCRIPTION =*)
* (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop041.tvsil.com)(PORT = 1522)) *.
*(CONNECT_DATA =*)
* (Service_name = ORCL). *
*)*
*)*
EXTPROC_CONNECTION_DATA =
*(DESCRIPTION =*)
*(ADDRESS_LIST =*)
* (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) *.
*)*
*(CONNECT_DATA =*)
* (SID = PLSExtProc) *.
* (PRESENTATION = RO) *.
*)*
*)*
customer listener.ora (orcl)
SID_LIST_LISTENER =
*(SID_LIST =*)
*(SID_DESC =*)
* (SID_NAME = PLSExtProc) *.
* (ORACLE_HOME = E:\Sample1oracle\product\10.2.0\db_2)*
* (= Extproc program) *.
*)*
*)*
LISTENER =
*(DESCRIPTION_LIST =*)
*(DESCRIPTION =*)
* (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop041.tvsil.com)(PORT = 1523)) *.
* (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) *.
*)*
*)*
ORCL =
*(DESCRIPTION =*)
* (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop041.tvsil.com)(PORT = 1522)) *.
*)*
TEST1 =
*(DESCRIPTION =*)
* (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.
*)*
Customer tnsnames.ora
LISTENER_TEST1 =
* (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.
TEST1 =
*(DESCRIPTION =*)
* (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.
*(CONNECT_DATA =*)
* (SERVER = DEDICATED) *.
* (SERVICE_NAME = TEST1) *.
*)*
*)*
ORCL =
*(DESCRIPTION =*)
*(ADDRESS_LIST =*)
(* (ADDRESS = (PROTOCOL = TCP)(HOST = desktop041.tvsil.com) (PORT = 1522))) *.
*(CONNECT_DATA =*)
* (Service_name = ORCL). *
*)*
*)*
EXTPROC_CONNECTION_DATA =
*(DESCRIPTION =*)
*(ADDRESS_LIST =*)
* (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2)) *.
*)*
*(CONNECT_DATA =*)
* (SID = PLSExtProc) *.
* (PRESENTATION = RO) *.
*)*
*)*user11345217 wrote:
I'm confused verymuch is a client/server configuration.
I need help you popular.
I posted the two clients/Server Listener and tnsnames .ora,
that I set up.Server listener.ora (test1)
SID_LIST_LISTENER =
*(SID_LIST =*)
*(SID_DESC =*)
* (SID_NAME = PLSExtProc) *.
* (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
* (= Extproc program) *.
*)*
*(SID_DESC =*)
* (GLOBAL_DBNAME = TEST1) *.
* (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
* (SID_NAME = TEST1) *.
*)*
*)*TEST1 =
*(DESCRIPTION =*)
* (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.
*)*SID_LIST_ORCL =
*(SID_LIST =*)
*(SID_DESC =*)
* (GLOBAL_DBNAME = TEST1) *.
* (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
* (SID_NAME = TEST1) *.
*)*
*)*LISTENER =
*(DESCRIPTION =*)
* (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) *.
*)*ORCL =
*(DESCRIPTION =*)
* (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop041.tvsil.com)(PORT = 1522)) *.
*)*Well, it's certainly the most, uh, listener.ora interesting I've ever seen... where did you find with this?
Server tnsnames.ora
TEST1 =
*(DESCRIPTION =*)
* (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.
*(CONNECT_DATA =*)
* (SERVER = DEDICATED) *.
* (SERVICE_NAME = TEST1) *.
*)*
*)*ORCL =
*(DESCRIPTION =*)
* (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop041.tvsil.com)(PORT = 1522)) *.
*(CONNECT_DATA =*)
* (Service_name = ORCL). *
*)*
*)*EXTPROC_CONNECTION_DATA =
*(DESCRIPTION =*)
*(ADDRESS_LIST =*)
* (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) *.
*)*
*(CONNECT_DATA =*)
* (SID = PLSExtProc) *.
* (PRESENTATION = RO) *.
*)*
*)*customer listener.ora (orcl)
A listener.ora on the client makes as much sense as a radiator on a 1965 Volkswagen. The listener is strictly a process on the server side. That's the whole reason to live is to 'listen' (where its name) for connection requests.
Customer tnsnames.ora
LISTENER_TEST1 =
* (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.TEST1 =
*(DESCRIPTION =*)
* (ADDRESS = (PROTOCOL = TCP) (HOST = Desktop029.tvsil.com)(PORT = 1521)) *.
*(CONNECT_DATA =*)
* (SERVER = DEDICATED) *.
* (SERVICE_NAME = TEST1) *.
*)*
*)*ORCL =
*(DESCRIPTION =*)
*(ADDRESS_LIST =*)
(* (ADDRESS = (PROTOCOL = TCP)(HOST = desktop041.tvsil.com) (PORT = 1522))) *.
*(CONNECT_DATA =*)
* (Service_name = ORCL). *
*)*
*)*EXTPROC_CONNECTION_DATA =
*(DESCRIPTION =*)
*(ADDRESS_LIST =*)
* (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2)) *.
*)*
*(CONNECT_DATA =*)
* (SID = PLSExtProc) *.
* (PRESENTATION = RO) *.
*)*
*)*OK, let's clear up a few things.
First of all, as mentioned, the listener is purely a process on the client side. There is therefore no use to a listener.ora on the client.
Second, a single listener, listening on a single port, can serve several databases multiple editions in multiple oracle homes. He listens to a connection, it puts in place (on a different listening port on) and then is out of the picture for this connection. It establishes the connection, but not the support it. Your listener.ora is much more complex (dare I say convoluted) as necessary.
On the client side (the server can also act as a client) and the tnsnames.ora is used to resolve an alias (a tns service name) to a real destination on the network.
Suppose you have the following in your tnsnames.ora:
larry = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = curley) ) )
Now, when you issue a connect, say like this:
$> sqlplus scott/tiger@larry
TNS will appear in your tnsnames.ora for an entry called "larry". Then, tns sends a request to (PORT = 1521) on (HOST = myhost) to aid (PROTOCOL = TCP), requesting a connection to (SERVICE_NAME = curley).
Where's (HOST = myhost) on the network? When the request is passed to tns to the next layer in the network stack, the name "myhost" resolves to an IP address, either via a file 'hosts' local, through DNS, or possibly other mechanisms being used less. Alternatively, you can hard-code the IP (HOST = 123.456.789.101) in the tnsnames.ora.
Then, the request arrives (port = 1521) on (HOST = myhost). If all goes well, there is a listener on myhost configured to listen on (PORT = 1521), and this listener knows (SERVICE_NAME = curley). If so, you'll be connected.
What can go wrong?
First, there may not be an entry for 'larry' in your tnsnames file. In this case, you get "ORA-12154: TNS: could not resolve the connect identifier specified" no need to go looking for a problem on the host, with the listener, etc.. If you cannot place a phone call because you do not know the number (can't phone your telephone book or can't find the group you're looking for it contained therein) you don't look at problems at the switchboard.
Perhaps the entry for larry was found, but myhost could not be resolved to an IP address (for example there is no entry for myhost in the local hosts file). This will mean by "ORA-12545: Connect failed because target host or object does not exist.
Maybe there is an entry for MyServer in the local hosts file, but it specified a bad IP address. This will mean by "ORA-12545: Connect failed because target host or object does not exist.
Maybe the INVESTIGATION period was good, but there is no listener running: "ORA-12541: TNS:no listener.
Maybe the INVESTIGATION period was good, there is a listener to myhost, but he is listening on a different port. "ORA-12560: TNS:protocol adapter error.
Maybe the INVESTIGATION period was good, there is a listener to myhost, listening on the specified port, it's unknown SERVICE_NAME = curley. "ORA-12514: TNS:listener is not currently of service requested in connect descriptor.
-
Many ENTRIES in my TNSNAMES.ora
Hi all
EBS 11i
9i db
I'm curious to know why ebs puts a lot of entries in the tnsnames.ora
All of these inputs are necessary?
What happened if I only keep the first entry and delete others?
Thank you very much
JC
tnsnames.ora
==========
DEV =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST=oratrng5.abc.local) (PORT = 1521))
(CONNECT_DATA =
(SID = DEV)
)
)
DEV_806_BALANCE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST=oratrng5.abc.local) (PORT = 1521))
(CONNECT_DATA =
(SID = DEV)
)
)
DEV_FO =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST=oratrng5.abc.local) (PORT = 1521))
(CONNECT_DATA =
(SID = DEV)
)
)
DEV_LOCAL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST=oratrng5.abc.local) (PORT = 1521))
)
DEV_BALANCE =
(DESCRIPTION =
(LOAD_BALANCE = YES)
(FAILOVER = YES)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = tcp)(HOST=oratrng5.abc.local) (PORT = 1521))
)
(CONNECT_DATA =
(SID = DEV)
)
)
DEV_REMOTE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = tcp)(HOST=oratrng5.abc.local) (PORT = 1521))
)
)
extproc_connection_data =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROCDEV))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
) )
IFile=/U02/oradev/devdb/9.2.0/Network/admin/DEV_oratrng5/DEV_oratrng5_ifile.ora
Yes
concerning
Pravin
-
confusions tnsnames.ora
Hi all
11.2.0.3
We have the listener.ora on our prod server.
Listener.ora
========
PROD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = prodsvr) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PROD)
)
)
LISTENER_SVR =
(ADDRESS = (PROTOCOL = TCP)(HOST = prodsvr) (PORT = 1521))
=========
My question is, what is the usefulness of the LISTENER_SVR line? If I delete it, my tnsnames still works. Is it useless at all?
Thank you
pK
Question is, why would you type this value in the tnsnames.ora? And you must confirm that after stop and restart listener, it's still operational or not. If this is the case, you don't need this entry.
HTH
Aman...
-
Links to DB, auditor and 2 tnsnames.ora
Hello
I would like to have some information about the following situation:
I installed on server1 Oracle 11.2 in the patches dbhome1 Group 3 (first place) and in the Group of hotfixes dbhome2 4 (Group of patches).
Now, the listener is always that of the patches dbhome1 Group 3 (where the tnsnames.ora y/network/admin).
I instance1 created with dbca patches dbhome2 Group 4. Instance1 has a link to db dblink1 to server2.
Now the strange thing, dblink1 cannot connect to the host.
The tnsnames.ora in dbhome1 contains the correct entry (tnsping with variables env dbhome1 works flawlessly). But if I do a tnsping with dbhome2 env variables, then it does not work (in fact the tnsnames.ora to dbhome2 has a WRONG server name in the entry). After I corrected the tnsnames.ora to dbhome2, all was FINE.
My question, I guess the listener takes the tnsnames.ora to dbhome1, why a dblink to an instance of dbhome2 not use this file, but rather the tnsnames.ora to dbhome2 (the listener runs on dbhome1)? A feedback?
Thank you
Martin
The listener has nothing to do with the tnsnames.ora. The important thing is the value of the TNS_ADMIN environment variable except that the value of ORACLE_HOME for the process in question. If TNS_ADMIN is undefined, instances that are running 2 House will pick up the tnsnames of House 2.
-
Tnsnames.ora (ORA-12162) Configuration problems
Hi all
I have a database of 10.2.0.5 on a RedHat Linux box that I can use locally. I mean, I can connect to sqlplus using "connect scott/tiger".
* $ export ORACLE_SID = MASTER *.
* $ sqlplus /nolog *.
* > connect scott / tiger *.
* > Display the service_name parameter *.
service name string MASTER.myhost.mydomain
* > Display the db_name parameter *.
db_name string MASTER
Then, I wrote a listener.ora in my $ORACLE_HOME/network/admin like this:
LISTENER_MASTER =
*(DESCRIPTION =*)
(* (ADDRESS = (PROTOCOL = TCP)(HOST = myhost.mydomain) (PORT = 1522))) *.
SID_LIST_LISTENER_MASTER =
*(SID_LIST =*)
*(SID_DESC =*)
* (GLOBAL_DBNAME = Master.myhost.mydomain) *.
* (ORACLE_HOME = /Oracle/product/10.2)*
*(SID_NAME = MASTER))) *.
Has successfully started lsnrctl start and netstat auditor shows me that the box is the listening port 1522, belonged to tnslsnr.
On the same machine (for testing purposes), I wrote this tnsnames.ora in $ORACLE_HOME/network/admin like this:
MASTER =
*(DESCRIPTION=*)
* (ADDRESS = (PROTOCOL = tcp (PORT = 1522))(HOST=myhost.mydomain)) *.
* (CONNECT_DATA =(service_name=Master.myhost.mydomain))) *.
Unfortunately, I am unable to connect to my MASTER database:
* $ ORACLE_SID unset *.
* $ sqlplus /nolog *.
* > connect to scott/tiger@MASTER*
ORA-12162: TNS service name: net is incorrectly specified
A trace of the "sqlplus" system process shows me that it is the correct reading of the tnsnames.ora file, I have no TNS_ADMIN environment variable (I also tried to put in my $ORACLE_HOME/network/admin).
The curious thing, is when I tried to launch netmgr, this interface allows to test a tnsnames entry. So I did, and he told me I logged successfully while I just load the configuration of my own (I mean, it uses the tnsnames.ora I wrote, and I even tried to crush him of netmgr without success)
Another curious, tcpdump shows me no traffic on port 1522...
I turned around many sites and checked my files .ora ten times... so if there are clues...
Thank you!Salvation;
Please see:
ORA-12162 connecting using DOB (no alias tnsnames) [ID 312348.1]Respect of
HELIOS -
Need PMON use tnsnames.ora to find no-DEFAULT listener?
Hello
I just want to confirm that because it is said tnsnames.ora used only for the customer. So I'm a bit confused by this use.
Please give some explanations about this.
Thanks in advance.
BR
MartinI know from experience as well - when I put in place LOCAL_LISTENER and REMOTE_LISTENER in 9iRAC.
It is quite simple in 11.2 documentation:
http://download.Oracle.com/docs/CD/E11882_01/server.112/e17110/initparams116.htm#i1128493
«+ LOCAL_LISTENER specifies a network name that resolves to an address or a list of addresses of Oracle Net local listeners (i.e. listeners who are running on the same computer as this instance).» The address or the address list is specified in the TNSNAMES file. ORA file or another trustee address configured for your system. » +
http://download.Oracle.com/docs/CD/E11882_01/server.112/e17110/initparams206.htm#i1132970
"+ REMOTE_LISTENER specifies a network name that resolves to an address or a list of addresses of listeners distance Oracle Net (i.e. the listeners that are not running on the same machine as this instance). The address or the address list is specified in the TNSNAMES file. "ORA file or another trustee address configured for your system.
I believe that earlier versions of the document indicate clearly that the 'address or address list of Oracle Net remote listeners' carried out since the tnsnames.ora. There was a few messages from forums on this confusion over the years.
Hemant K Collette
Published by: Hemant K grapple on May 25, 2011 10:53
-
What configuration must define in tnsnames.ora
Dear all,
Need your help. I have zero knowledge in oracle. Now, I need to conenct to the Oracle database from my window via SQLPlus server, which configuration should I set in my tnsnames.ora? A or B?
Set A
PNTP =
(DESCRIPTION =
(LOAD_BALANCE = on)
(FAILOVER = on)
(ADDRESS_LIST =
(SOURCE_ROUTE = yes)
(ADDRESS = (PROTOCOL = TCP) (HOST = Hostname1)(PORT = 1521))
((ADDRESS = (PROTOCOL = TCP) (HOST = Hostname2)(PORT = 1521)))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pntp)
)
)
Series B
PNTP =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = Hostname1)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP) (HOST = Hostname2)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pntp)
)
)How can i make sure the pointer are D:\oracle\ora92\network\ADMIN and not another folder? Can check from "environment variables "? WHich part?
I suggest you go back to the documentation and reading.
Please look at the following:http://download.oracle.com/docs/cd/B19306_01/install.102/b14312/post_install.htm#CHDBIHEE Then, on each client computer, configure either of the following settings: * Set the TNS_ADMIN environment variable to specify the location of the tnsnames.ora file and specify a service name from that file. * Place the tnsnames.ora file in the ORACLE_BASE\ORACLE_HOME\network\admin directory, and make sure that the ORACLE_HOME environment has been set to this Oracle home.
Your tnsnames.ora file should contain the following, assuming that you have (n) number of nodes:
PNTP = (DESCRIPTION = (LOAD_BALANCE = on) (ADDRESS_LIST= (ADDRESS = (PROTOCOL = TCP)(HOST = Hostname1-vip)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = Hostname2-vip)(PORT = 1521)) . . . (ADDRESS = (PROTOCOL = TCP)(HOST = Hostname(n)-vip)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = pntp) ) )
Please mark as useful and correct issues and close the thread as answered.
Kind regards.
Published by: user11150436 on March 21, 2011 08:54
Maybe you are looking for
-
Wednesday, October 21, 2015. I can't get Firefox page up - it shows Google search, but then notice of default Firefox arrives asking for me to restore. By pressing 'restore' back message that the proxy settings are 'bad '? This happened to me before,
-
I spend time with the preferences of Firefox where I was set up, after a few tweeaks, he began to reload all the images previously visited web pages, one of the sites where my own: http://netsalg.biz so I know that's not the question, but this result
-
By clicking 'SEND FAX' from 8620 Assistant printer does nothing
I am running windows 10, and I've deleted and reinstalled my printer. Now, I have a printer, but no fax in the list of devices. When I click on "Send a fax" in the wizard of printer HP 8620, nothing happens. What should I do now?
-
Satellite 5000-501: Crash problem
Hello everyone. I bought a portable Satellite 5000-501 a few years ago. For two weeks now my laptop goes down suddenly after a period of two to three hours of work with it. I have to wait five minutes to have the current on again once. I connect to I
-
I have a question that should solve :)
First of all, I'm a BIG fan of HP. I have a laptop, name is Cortana and I never let it but I want to pass him. Its processor Core 2 2.1 double and his name of the socket is a Socket P, I want to be Intel® Core™ 2 Extreme QX9300 processor (2.53 GHz, f