Error in tnsnames.ora
HelloI installed Oracle 10.2.0.1 and then created my listener and tnsnames using NETCA. I get the following error for tnsnames.ora.
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.102))(PORT = 1521)) (CONNECT_DATA = (SID = ora10g))
TNS-12533: ADDRESS TNS:illegal settings
Listener does not error. I am including the files tnsnames.ora and listener.ora for your referral link. I would be grateful if someone can help to report the error.
Listener.ora
listener.ora # Network Configuration file: F:\oracle\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER10G =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.102)(PORT = 1521))
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
)
)
SID_LIST_LISTENER10G =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = F:\oracle)
(= Extproc PROGRAM)
)
)
tnsnames.ora
tnsnames.ora # Network Configuration file: F:\oracle\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORA10G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.102)) (PORT = 1521))
(CONNECT_DATA =
(SID = ora10g)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
where ORA10G is the name of my base and LISTENER10G is the name of listener 10g.
Kind regards
Somd
Hello..
Instead your TNSNAMES.ora, this article has only, save, and run tnsping ora10g. Also paste the entry in the sqlnet.ora file.
ORA10G =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.102)(PORT = 1521))
)
(CONNECT_DATA =
(SID = ora10g)
(SERVER = DEDICATED)
)
)
You are missing in your entry for the ora10g tns * (ADDRESS_LIST = * line.)
HTH
Anand
Published by: Anand... on March 17, 2009 05:15
Tags: Database
Similar Questions
-
Directives IFILE in tnsnames.ora give seemingly harmless errors
I have a tnsnames.ora file on my local machine that contains a number of directives IFILE, that seems to cause a lot of errors in logging in SQL Developer Page (I use 1.5.4, but the behavior has been consistent since the beta releases).
My tnsnames.ora file is just a pointer to other files tnsnames.ora, i.e.
This makes it easier for me to have the client or project specific TNSNames.ora files can I share (or borrow) to other people without having to manually edit a giant single file which combines information from several clients.# tnsnames.ora Network Configuration File: c:\oracle\product\11.1.0\client_1\network\admin\tnsnames.ora # Generated by Oracle configuration tools. IFILE = c:\oracle\product\11.1.0\client_1\Network\Admin\tnsnames.ora.project1 IFILE = c:\oracle\product\11.1.0\client_1\Network\Admin\tnsnames.ora.clientFoo
Everytime I open SQL Developer, I get an error in the Page log at the bottom of the screen for each entry IFILE where
Level = SEVERE
Sequence = 53
Elapsed = 63
Source = oracle.dbtools.raptor.utils.TNSHelper
Ifile = message not found c:\oracle\product\11.1.0\client_1\Network\Admin\tnsnames.ora.project1
As far as I know, this is no problem for me - I can connect with happiness to all databases. Of course, I'd like to be able to avoid generating all these errors every time.
JustinHi Justin,
I see the error when it is unable to load the file because space.
It looks like a problem with trim white space:
works for me (no space after the =): IFILE = / home/turlochcurrent/separation/tmp/testtnsnames/dontfindme
does not work for me (extra space after the =): IFILE = / home/turlochcurrent/separation/tmp/testtnsnames/dontfindmewhich is buggy/fixed easily if you can confirm that this workaround works around your question.
-Turloch
-
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";
-
EM does not create entry tnsnames.ora with service name orcl11gr2
Hi all
I am trying to create a service network with EM Database Control, Net Services Administration link name. On the service name field, under the "Edit Net Service Name" screen, I type in orcl11gr2, and it throws the following error:
Validation error
Review and correct the following errors, and then try again:
Service name - specify a valid service name.
I wonder what is the additional validation that checks EM. I guess it's to check the number of characters to 8 characters or less.
In addition, because of this additional validation that is in MS, all entry tnsnames.ora with service name = orcl11gr2, I won't be able to use 'EM to change, as I have the same error.
But why Oracle implements this additional validation when the same validation is not implemented on other Oracle tools? For example:
1 dbca allows me to create a database with instance_name greater than 8 characters, and the results of the initialization parameters will be as follows:
db_name = orcl11gr - truncated to 8 characters
instance_name = orcl11gr2
db_unique_name = orcl11gr2
noms_service = orcl11gr2
2 oracle Net Manager supports the name of orcl11gr2. The name of the created Service Net, I have no problem connecting to the database.
3. name of the service orcl11gr2 of listener support
I am using Oracle 11 g R2 (11.2.0.1.0) for Microsoft Windows (x 64), running on Windows 7.Its a known issue fixed 12gc Ms.
concerning
Bennett -
TNSNAME.ora in dataguard
Hello
using oracle 10 g r2, we set up datagurad like this:
PRIMARY SIDE
parameters:
Log_archive_dest_1 = ' location = / u01/app/oracle/arch/orcl.
LOG_ARCHIVE_DEST_2 = "service = orcl_standby'"
log_archive_dest_state_1 = enable
LOG_ARCHIVE_DEST_STATE_2 = enable
standby_file_management = auto
fal_server = orcl_standby
fal_client = orcl
db_unique_name = "orcl".
listener:
SID = orcl
(host = 192.168.0.100) (port = 1521)
tnsnames:
(1) orcl
Host: 192.168.0.100
SID: orcl
(2) orcl_standby
Host: 192.168.0.200
SID: orcl_standby
STANDBY TIME:
parameters:
Log_archive_dest_1 = ' location = / u01/app/oracle/arch/orcl.
LOG_ARCHIVE_DEST_2 = "service = orcl'"
standby_archive_dest = ' / u01/app/oracle/orcl/arch/orcl.
standby_file_management = auto
log_archive_dest_state_1 = enable
LOG_ARCHIVE_DEST_STATE_2 = enable
fal_server = orcl
fal_client = orcl_standby
db_unique_name = "orcl_standby".
listener:
SID: orcl_standby
(host = 192.168.0.200) (port = 1521)
tnsnames
(1) orcl_standby
Host: 192.168.0.200
SID: orcl_standby
(2) orcl
Host: 192.168.0.100
SID: orcl
In this primary case can talk about Eve using orcl_standby and Eve can talk about primary using orcl. What is needed to create orcl on primary and standby in any case if orcl_standby convert usVinciane wrote:
Hellousing oracle 10 g r2, we set up datagurad like this:
In this primary case can talk about Eve using orcl_standby and Eve can talk about primary using orcl. What is needed to create orcl on primary and standby in any case if orcl_standby convert us
We don't need to see the same complete configuration for questions...
And why not just show the actual content of the files config instead of transcribing the notes which are subject to typographical errors and misinterpretation. It is not clear how to read a file tnsnames.ora and listener.ora...
As to your question immediately, you want the two databases listed in the tnsnames on both servers, so you'll be ahead of the game in case you make a pass, where the current expectation becomes primary and vice versa. It is also why you go ahead and settle some parms init focused on standby at the primary level.
-
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.
-
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
-
problem with tnsnames.ora
my oracle 11g on GNU / linux.
I have 10 entries in my tnsnames.ora
I recently added a new entry.
With regard to my knowledge everything is correct.
But, I get the error TNS-12533.
The other good thing is that it works well on Win machine.
Can one can fix it. Please guys...
the entry is:
xxx =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = xxx.xxx .net)(PORT=1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SID = xxx111)
)
)
Published by: user6476691 on November 6, 2008 13:52
Published by: user6476691 on November 6, 2008 13:5812533, 00000, "settings of ADDRESS TNS:illegal.
* Cause: An illegal game of the protocol adaptor parameters has been specified. In
some cases, this error is returned when a connection cannot be made to the
Transport Protocol.
* Action: Verify that the destination is accessible using the specified
Protocol. Check that the settings in the section ADDRESS
TNSNAMES. ORA. Legal ADDRESS formats of parameter can be found in the
Oracle operating system specific for your platform documentation.
Protocols to resolve names to the transport layer (for example the object DECnet
the names) are vulnerable to this error if it is not correctly configured or names are
misspelled.Looks like there are a few problems with the entry of tns way is defined in the tnsnames.ora file. Maybe it can be due to new lines.
Remove line breaks or add the following entry
RAC = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = xxx.xxx .net)(PORT=1521)) (CONNECT_DATA = (SERVER = SHARED) (SID = xxx111)))
-
Hello;
I really hope I get this resolved. I'm in the Oracle Enterprise of the R User Guide and
1 ore.connect (), ore.push (), ore.sync (), ore.doEval works perfectly. However:
2. ore.push () will not work if I have a date field in my dataframe
3. ore.save (), ore.datastore () do not work, no matter if I have a date field or not.
This is the error I get in both cases
Error in .oci. GetQuery (Conn., instruction, data = data = prefetch prefetch,):
Error in try ({: ORA-01805: possible error in the operation of date/time})
After searching online, I checked the time zone on the server and the client (Windows), as shown here ore.datastore () fails with ORA-1805, and they seem to be the same. However, the error continues.
I appreciate your help;
Thank you;
Serge
Hi Serge,
The problem is the gap between the instant client and database version. You don't need to uninstall the 11.2.0.4 instant client, as long as the instant customer paths 12.1 (path and OCI_LIB64) is head of the 11.2.0.4 the client settings. Here are the instructions to install and configure the Oracle Instant client:
https://docs.Oracle.com/CD/E57012_01/doc.141/e57007/install_oreclient.htm#CIHDBCDH
Sherry
-
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) -
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.
-
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
-
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
Maybe you are looking for
-
You have Fire fox for windows 64-bit operating systems?
Apparently, some downloads look for windows 64-bit browsers that it is load in the folder programs (x 86) 32-bit compatibility, could you guys create one that will load in the case of 64-bit? (e.g. explorer)
-
"Never remember history" allows to always "recently closed tabs".
I use permanent private browsing (i.e., selected "history never remember ' with 'always use private browsing mode' selected (and"accept cookies")), and still under 'History' tab 'Recently closed tabs' is always a viable option that shows where I've b
-
Satellite A60 memory upgrade does not help
Hi, I have a Satellite A60-793 and I want to upgrade the memory by adding a 512 MB of memory currently installed. I tried to install a 512 MB DDR PC2700 333 MHz SODIMM module, but the system does not boot to the top: it emits a long whistle blow and
-
I tried to restore my system 3 times because something is wrong and I wanted to get back to normal... but it keeps saying
-
Cannot access wireless internet.
original title: have five bars on my connection Wireless in the toolbar with a yellow triangle on it... can not access internet... can you help me? have already unplugged the modem. What can I do else? Thank you. having five bars on my connection