Need PMON use tnsnames.ora to find no-DEFAULT listener?
HelloI 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
Martin
I 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
Tags: Database
Similar Questions
-
When I need the machine tnsnames.ora and customer configurations?
Hello
I installed Oracle 11 g on Linux system and successfully created the databases. I can access the database (on server) Enterprise Manager and SQL * (by sqlplus SYSTEM/pass@ora). On another computer I installed the Oracle 11 g database Client (and chose the type administrator installation). Before you start the network for local configuration Setup Wizard Net Service Name, I started Enterprise Manager (the same address, what happens on the server). I was very surprised that I can access Enterprise Manager client without any additional configuration.
I know, tnsnames.ora help with SQL * more (we can access SYSTEM/pass@ora and don't give no address ip and port).
And my questions: can I access by Enterprise Manager of any client computer without creating tnsnames.ora and additional configurations client machine?
Is SQL * more use only tnsnames.ora?
Thanks awfully for help.
ConcerningLuk004 wrote:
can I access by Enterprise Manager of any client computer without creating tnsnames.ora and additional configurations client machineYes, because the Business Manager is an application of 3 layers: you connect to an application server that connects to the database instance.
Luk004 wrote:
Is SQL * more use only tnsnames.ora?No.: each client must connect directly to the instance of database with a base layer Oracle Call Interface (OCI) must use tnsnames.ora.
There are a few exceptions:
-The thin JDBC driver: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_environments.htm#sthref52.
-EZConnect connection string: http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/naming.htm#ABC524382SRI12. -
Sqlplus not find tnsnames.ora
Hey guys,.
I have a question about oracle client and the tnsnames.ora file. Basically, I have the customer put in place and it seems to work on the use of sqldeveloper such that she can see the tnsnames.ora file in the drop-down list but I don't seem to be able to connect using sql, which makes me think that it cannot find the file ora. I set the env as:
Sql developer seems to work with the tns ok but not sqlplus:DON@donkeyhome:/usr/lib/oracle$ echo $PATH .:/usr/lib/oracle/oracle_client/bin:.:/usr/lib/jvm/jdk/bin:/usr/lib/jvm/jdk/jre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games DON@donkeyhome:/usr/lib/oracle$ echo $ORACLE_HOME /usr/lib/oracle/oracle_client DON@donkeyhome:/usr/lib/oracle$ echo $TNS_ADMIN /usr/lib/oracle/network/admin DON@donkeyhome:/usr/lib/oracle$
Any help with this would be greatly appreciated that I had this problem and commented on many forums for about 1 month now :(DON@donkeyhome:/usr/lib/oracle$ sqlplus SYSADM@STUDA1 SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jan 6 16:26:50 2009 Copyright (c) 1982, 2005, Oracle. All rights reserved. Enter password: ERROR: ORA-12154: TNS:could not resolve the connect identifier specified
Dave was soon
Published by: wheelie on January 5, 2009 22:28
Published by: wheelie on January 7, 2009 22:32Wheelie,
I understand that you have tried many options to solve and in general, this mistake is easy to correct. Bad especially as a tnsnames.ora entry, you can also try dos2unix tnsnames.ora see if it removes all special characters and it changes size.
Concerns
-
DBD::Oracle and instant client - can't find tnsnames.ora
Hi all! :-)
Guys, please, help!
My OS: CentOS 6.6, i386
Installed:
Oracle - instantclient12.1 - basic - 12.1.0.2.0 - 1.i386
Oracle - instantclient12.1 - devel - 12.1.0.2.0 - 1.i386
Oracle - instantclient12.1 - sqlplus - 12.1.0.2.0 - 1.i386
Perl-DBI-1, 609 - 4.el6.i686
and last perl-DBD-Oracle-1, 74-CPAN.
Apache 2.2.15, mod_perl 2.0.4
SELinux disabled.
ORACLE_HOME = usr/lib/oracle/12.1/client, LD_LIBRARY_PATH = /usr/lib/oracle/12.1/client/lib
tnsnames.ora exist in /usr/lib/oracle/12.1/client/network/admin
I wrote a simple perl script to test the connection:
use strict; use DBI; my $dbh = DBI ->connect("dbi:Oracle:crm", 'login', 'password',{RaiseError => 1} ); $dbh->disconnect();
When I try to run script command line - everything isn't ok, no errors (Yes, I can run queries, etc... )
But!
With apache, I get an error:
DBI connect('crm','login',...) failed: ORA-12154: TNS: could not resolve the connect identifier specified (DBD ERROR: OCIServerAttach) in /opt/otrs/bin/cgi-bin/oratest.pl on line 9
I am trying to add ORACLE_HOME with PerlSetEnv and script see (I checked through % ENV), but no luck.
Probably easier to use EZconnect instead of tnsnames.ora:
$machine = 'my.oracle.database.com'; $port = 1521; $sid = 'my_sid'; $dbh = DBI->connect("dbi:Oracle://$machine:$port/$sid", $user, $pass) || die "Failed to connect: $DBI::errstr\n";
-
Hi I want to ad a person on my team, but that person only need to use acrobat to adobe, but I couldn't find this option
Hello
Please see manage your cloud creative teams membership
But you should join the support by call/chat for this request.
* Be sure to stay connected with your Adobe ID before accessing the link above *.
Kind regards
Sheena
-
customer will not use the correct tnsnames.ora file
Hello all, I installed oracle 10g client on my machine... but here's the thing... I tnsnames.ora several file on my machine (which I can't delete or play with)... and because of this oracle is not able to connect to the database I want it to connect to... I can't do tnsping to the database... is there a way where I can point my client to use a specific tnsnames.ora file? as a pointer? or something where it will look in this file specific tnsnsame.ora?You can specify what tnsnames.ora for use the TNS_ADMIN environment variable
Switch to the directory that contains your tnsnames.ora to use.Kind regards
Uwehttp://uhesse.WordPress.com
-
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
-
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.
-
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) -
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...
-
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
-
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-
-
Ifile in tnsnames.ora/listener.ora
Hello
I find IFILE entered my listener.ora of applications and tnsnames.ora oracle database.
What is the use of IFILE? I hear that the entries in IFILE are not overnwritten using autoconfig. Is this true?
We create the tnsentries of other databses in ifile.
Someone could give advice.
tnsnames.ora
============
IFile=/Gold/App/DB/11.2.0/Network/admin/gold_srvr315/gold_srvr315_ifile.ora
Listener.ora
=============
IFile=/Gold/App/DB/11.2.0/Network/admin/gold_srvr315/listener_ifile.ora
Thank youI find IFILE entered my listener.ora of applications and tnsnames.ora oracle database.
What is the use of IFILE? I hear that the entries in IFILE are not overnwritten using autoconfig. Is this true?
Correct, and it is the use of the IFILE (i.e. create entries that must be preserved and not affected or overwritten by the automatic configuration service.
Thank you
Hussein -
Creating a service; What must be included in tnsnames.ora and JDBC url?
DB version: 11.2.0.2
Operating system platform: Solaris 10
We have a 2 RAC node.
I want 1 Instance (mbsprd1) to use for our OLTP and Instance 2 (mbsprd2) application to use for another nature DSS request.DB name = mbsprd Instance1 = mbsprd1 Instance2 = mbsprd2
According to the syntax
I create 2 servicessrvctl add service -d <dbname> -s <ServiceName> -r <Preferred Instance> -a <Available Instance>
-Creation of a service called OLTP
-Creation of a service called DSSsrvctl add service -d mbsprd -s OLTP -r mbsprd1 -a mbsprd2
-Start servicessrvctl add service -d mbsprd -s DSS -r mbsprd2 -a mbsprd1
I guess the above steps are sufficient to set up a service on the side server.srvctl start service -d mbsprd -s OLTP srvctl start service -d mbsprd -s DSS
I would like to know what needs to be done on the client side.
Currently the file tnsnames.ora and JDBC url used by our clients are listed below. What needs to be added to the file URL and jdbc tnsnames.ora to start to use the services configured above?
Entry for RAC JDBC-- SCAN based TNS entry mbsprd = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (COMMUNITY = tcp.world) (PROTOCOL = TCP)(Host = p148149-scan.tpam.net) (Port = 36964)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mbsprd) (FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC)) ) ) -- TNS entry based on local listener -- Instance 1 mbsprd1 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS =(PROTOCOL = TCP)(HOST = hsolarp148-vip)(PORT = 36973)) ) (CONNECT_DATA = (SERVICE_NAME = mbsprd) (INSTANCE_NAME = mbsprd1) ) ) -- Instance 2 -- TNS entry based on local listener mbsprd2 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS =(PROTOCOL = TCP)(HOST = hsolarp149-vip)(PORT = 36973)) ) (CONNECT_DATA = (SERVICE_NAME = mbsprd) (INSTANCE_NAME = mbsprd2) ) )
-Another version used by some clients, because the above had "some problems".jdbc:oracle:thin:@p148149-scan.tpam.net:36964:mbsprd
jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=p148149-scan.tpam.net) (PORT=36964))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=mbsprd)(FAILOVER_MODE =(TYPE = SELECT)(METHOD = BASIC)(RETRIES = 180)(DELAY = 10))))
OLTP = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = p148149-scan.tpam.net)(PORT = your_port_number)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = OLTP) ) ) DSS = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = p148149-scan.tpam.net)(PORT = your_port_number)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DSS) ) )
Entry for RAC JDBC
JDBC:Oracle:thin:@p148149-scan.tpam.NET:36964:SERVICE_NAME
JDBC:Oracle:thin:@new_tns_entry_description (if you do not want to connect to the database with particular service)
Try this and let us know about problems,
Maybe you are looking for
-
Does not create a folder takes during recording
I'm working on a project in logic. When registering, I usually use cycle check and choose the best catch in the take folder. For a case in the song, I found it easier to use punch in recording. I don't know what other changes I might have inadvertent
-
Menu lost at the top of the Mail 8.2
I think I clicked on something a day or two ago in the mailer (8.2). I lost the Menu bar in the upper part (Mail, Edit, View, mailbox, etc) and I can't figure how to get it back. Can someone help me with this? Thank you!
-
problem with magic network after the recent windows and mcafee updates
There seems to be a conflict with of cicso latest windows and mcafee updates Network Magic platform. Hard to say which is originally the closing down due to the fact they both tend to update together or to the one right after the other. Could someone
-
Any possibility of using verisoft / digital persona for hp pavilion tx2510us / tx2500us after a Windows 7 upgrade? I used Digital Persona with the original OS.
-
How to copy a dvd I made to my computer
I recorded my ultrasound on a dvd and you want to send by e-mail. How can I transfer ot to my computer so I can send it and not just play?