Setup multiple server... what plsql... what tnsname.ora?
I have several copies of the installed Oracle software (multiple ORACLE_BASE and each one has several software database installed).When I type SQLPLUS, one of them starts.
In Windows, I know, it depends on the PATH variable. How do I know what SQLPLUS. EXE is launched?
Also, what TNSNAMES file. ORA file is used for a connection to SQLPlus?
Oracle 10g R2.
Thank you
Smith
You can determine what tnsnames.ora is getting used by setting the OS TNS_ADMIN environment variable to the directory where your tnsnames.ora preferred listener.ora etc. is located.
Kind regards
Uwe
http://uhesse.WordPress.com
Tags: Database
Similar Questions
-
OID server to replace TNSNAMES.ora
Can someone please provide step by step documentation how to use Server OID o replace tnsnames.ora?
In addition, please provide installation step by step 11g and 10g and set up guide? I'd really appreciate who.Configuration and installation of OID/LDAP involves multiple groups of Oracle Support
and requires a Request (SR) of separate Service for these areas of support. To respond to your
General Advisory issues, I recommend your review the following notes of My Oracle Support.
These articles provide general information as an alternative option for the use of adapters OID/LDAP
and a central depot to replace the TNSNAMES file. Once you launch the installation of the OID/LDAP and
and the Setup process, you can address specific questions with the respective support group.References:
Doc-ID 217270.1 - Directory naming Migration (Oracle OpenWorld presentation)
Doc-ID 314389.1 - how to start OracleAS 10 g Infrastructure
Doc-ID 201234.1 - quick check for operation OID/LDAP
Doc-ID 120717.1 - LDAP Naming: adding names of Service TNS to OID
Doc-ID 120723.1 - Net * 8 LDAP Naming: Add names of Service from Oracle to OID names TNSFrom Fusion MIddleware (FMW) 11 g is not infrastructure more. The database is
created in a House, after you use RCU (10g OPNRRM) and install FMW independent 11.1.1.2
Identity management.References:
Doc-ID 1073206.1 - planning upgrade of Fusion Middleware 11 g - FAQ
Doc ID 1346624.2 - Information Centre: directory Internet of Oracle 11 g and later versions
Doc ID 340.1 - install and configure Advisor: Oracle Fusion Middleware (FMW) Identity Access Management (OAM, OIM) 11 g
Doc ID 262.1 - Upgrade Advisor: Oracle Fusion Middleware (FMW) Portal from 10 g to 11 GR 1 material -
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
-
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,
-
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
-
Hi all
on the 11g R2, we have three files in D:\oracle\product\11.2.0.4_64b\client_1\network\admin:
tnsnames.ora
tnsnames_primary.ora
tnsnames_second.ora
How do I know which is used?
We can define a file under a different name than tnsnames.ora tnsnames serve? How?
Thank you.
user10274093 wrote:
Hi all
on the 11g R2, we have three files in D:\oracle\product\11.2.0.4_64b\client_1\network\admin:
tnsnames.ora
tnsnames_primary.ora
tnsnames_second.ora
How do I know which is used?
We can define a file under a different name than tnsnames.ora tnsnames serve? How?
Thank you.
I have been working with Oracle for v7.3 and have written extensively on the AMT configuration, and I don't know any way to tell oracle to use one file other than simply "tnsnames.ora. You can control WHERE he's looking for the file, but not the name of the file. If someone can prove me wrong, I'd be more than happy to learn otherwise.
If your question is 'why do we have other files' I must say that you have to ask the guy who put them there. They are certainly not creating oracle.
-
I have Adobe Reader DC, but have just started to give a message that Adobe is unable to connect to the DDE server, what can I do?
Hi johnf49911817,
* Try the solutions below: -.
Solution 1) (this error occurs when you have more than 1 process of Acrobat running)
(1) go to the task by pressing Ctrl + Alt + Del Manager
(2) go to the process in the Task Manager
(3) terminate all processes associated with Acrobat
(4) start Acrobat again.
Solution 2) open Acrobat access to menu help & repair installation.
Solution 3) control the association of file on your system.
Solution 4) course for HKEY_CLASSES_ROOT\acrobat\shell\open\ddeexec\application and replace the key 'AcroviewA11' 'AcroviewR11.
Kind regards
Christian
-
-What is ORA$ AT_SQ_SQL_SW_1055?
Oracle 11.2. What is ORA$ AT_SQ_SQL_SW_1055? He works every day at 13:00. Sometimes, not always it caused errors like this:
Exception [type: SIGSEGV, address not mapped to object] [ADDR:0 x 10] [PC:0x115035E, kokscfac () + 232] [flags: 0x0, count: 1]
Errors in the /oracle/xxx/xxxxx/trace/ORADEV_j001_31781.trc file (incident = 14994):
[ORA-07445: exception encountered: core dump [kokscfac () + 232] [SIGSEGV] [ADDR:0 x 10] [PC:0x115035E] [address not mapped to object]]
Incident details in: xxxxxx/xxxxx/xxxxx_j001_31781_i14994.trc
07 Aug at 22:00:28 Mar 2012
2012-08-07 22:00:24.869
SESSION ID: (157.2005) 2012-08-07 22:00:24.869
CUSTOMER ID :() 2012-08-07 22:00:24.869
SERVICE NAME:(SYS$USERS) 2012-08-07 22:00:24.869
MODULE NAME: (DBMS_SCHEDULER) 2012-08-07 22:00:24.869
ACTION NAME:(ORA$AT_SQ_SQL_SW_1055) 2012-08-07 22:00:24.869
Dumpster continued to file: /oracle/xxxx/xxxx/trace/xxxx_j001_31781.trc
[ORA-07445: exception encountered: core dump [kokscfac () + 232] [SIGSEGV] [ADDR:0 x 10] [PC:0x115035E] [address not mapped to object]]
I did some research. It appears the work ORA$ AT_SQ_SQL_SW_1055 caused this problem. It is employment and demand for production Oracle in-house?
Any help would be appreciate.
S.It's automatic SQL Tuning Advisor work
check at the bottom of sql:
SQL > select client_name, job_name, dba_autotask_job_history job_start_time; -
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
-
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. -
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...
-
SQLNET.ora and tnsnames.ora, listener.ora btwn difference
Hi all
What is the fundamental difference between these 3 files - sqlnet.ora, listener.ora and tnsnames.ora?
Version may be 10 g.(a) Listener.ora is a SQL * Net configuration file allows you to Configure listeners (needed to accept applications for remote connection) Oracle database.
Normally, this file resides in the ORACLE HOME\NETWORK\ADMIN directory or in the directory defined by the variable $TNS_ADMIN.
(b) Tnsnames.ora is a file that is used by oracle client to connect to the oracle server.
(c) Sqlnet.ora is a text file that provides SQL * Net with the basic configuration details as options vectorization, field by default, encryption, etc.. This file is located in the ORACLE HOME\NETWORK\ADMIN directory.
-
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
Maybe you are looking for
-
My imessage and facetime will not work correctly
A few days ago my iMessage suddenly wasn't working properly on my mac. I could not receive messages, and when I tried to sent messages, he says not delivered. Then I reinstalled the OS X IS captain. Then when I type a contact to send an iMessage from
-
Problems in the strange display on my Satellite A205 driver
My laptop came with 2 GB RAM and Geforce Go 7300 with a total memory of 399 MB. I bought this laptop about 4 months ago and had no problem with it until 2-3 weeks ago. I play World of Warcraft online game, and I know that this game requires no high p
-
Prohibit the 'paste' to an input string
Hello How can I disable the function 'paste' in an input string? I'm using Labview 8.5.1. Thank you.
-
Audio setup for something more of stereo?
I'm a bit disappointed by the lack of audio options on the back of this model. My speakers include a subwoofer, Center, and rear stereo speakers plus the left and right speakers. There is a configuration that I can use to get them to work with the pr
-
Place of appointment 8 PRO app photo BSOD
Anyone getting a random BSOD when the camera app is open or running in the background? If I leave the camera open in the background application or use it for a period of time, I will sometimes get a BSOD and restarts my place 8 pro. Not always, but