Oracle ora-12545 error
HelloI have a problem to connect my database
error ora-12545 Connect failed because target host or object does not exist
I checked the forums for similar error
tried all the recommendation as
Check the file hosts, ping server... but nothing
My connection is like that
I have a server of db oracle on a RHEL 5.4
I have a client oracle on an other RHEL 5.4
I tried to connect to the Database via the client, but it does not work
I have configured my connection string (orcl)
tnsping work: tnsping orcl
Still I can't connect to the db Server
Here is something else
When I type sqlplus that comes from the command prompt
username
After the password
and then I had error ora-12545 connect failed because target host or object does not exist
but
When I connect like this: user/pass@orcl
it brings me to the shell prompt without giving error *.
as it connects and disconnects just after
Are there any newspaper I should enable or check?
What should be done to fix this?
Any idea would be appreciated?
Thank you
What do you see in the strace output file that corresponds to the time when SQL * younger disappear?
You can view the last 100 lines or more of the file?
In addition, you use an AMD processor on this system by chance? The reason why I ask is because of the following My Oracle Support note:
ORA-24550: SQL * Plus Client 32-bit can hang on a Linux X 86 - 64 OS with processor AMD [ID 1120724.1]
However, we have not seen any messages associated with this question in one of your outings, so may not be relevant at all.
Tags: Database
Similar Questions
-
ORA-12545 error when the connection to the remote server
Hello
Env: Oracle 11 2 Client (11.2.0.1) on Oracle Linux 5.8 GR 64 bit
DB server: Oracle 11 g 2 (11.2.0.3.6) on Oracle Linux 6.2 64bits
I have installed Oracle 11 GR 2 client on a server and created the tnsnames.ora with required entry.
When I try to connect to the databases on the server of remote database using the suite in two ways, one of them give me error "ORA-12545". Do not know why.
[oracle@server ~] $ sqlplus scott/tiger@proddb01
SQL * more: Production of release 11.2.0.1.0 game Apr 10 12:24:58 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
SQL > exit
Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@server ~] $ sqlplus
SQL * more: Production of release 11.2.0.1.0 game Apr 10 12:25:04 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter the user name: scott
Enter the password:
ERROR:
ORA-12545: Connect failed because target host or object does not exist
Enter the user name:
Here's my env:
[oracle@server ~] $ echo $ORACLE_SID
PRODRD01
[oracle@server ~] $ echo $ORACLE_HOME
/opt/Oracle/app/product/11.2.0/Client_1
[oracle@server ~] $
Input TNS is:
PRODRD01 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = server.whatever.com) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PRODRD01)
)
)
I tried to replace the host name and IP address, I still got the same error. The host name of the server database and IP entry does not exist in the file "/ etc/hosts. Could this be the cause? I can't edit the file "/ etc/hosts" and I couldn't convince the sys-admin to add the hostname of Server DB and IP entry to this file.
Clues please?
Best regards
user130038 wrote:
Hello
Env: Oracle 11 2 Client (11.2.0.1) on Oracle Linux 5.8 GR 64 bit
DB server: Oracle 11 g 2 (11.2.0.3.6) on Oracle Linux 6.2 64bits
I have installed Oracle 11 GR 2 client on a server and created the tnsnames.ora with required entry.
When I try to connect to the databases on the server of remote database using the suite in two ways, one of them give me error "ORA-12545". Do not know why.
[oracle@server ~] $ sqlplus scott/tiger@proddb01
SQL * more: Production of release 11.2.0.1.0 game Apr 10 12:24:58 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
SQL > exit
Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@server ~] $ sqlplus
SQL * more: Production of release 11.2.0.1.0 game Apr 10 12:25:04 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter the user name: scott
Enter the password:
ERROR:
ORA-12545: Connect failed because target host or object does not exist
Enter the user name:
Here's my env:
[oracle@server ~] $ echo $ORACLE_SID
PRODRD01
[oracle@server ~] $ echo $ORACLE_HOME
/opt/Oracle/app/product/11.2.0/Client_1
[oracle@server ~] $
Input TNS is:
PRODRD01 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = server.whatever.com) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PRODRD01)
)
)
I tried to replace the host name and IP address, I still got the same error. The host name of the server database and IP entry does not exist in the file "/ etc/hosts. Could this be the cause? I can't edit the file "/ etc/hosts" and I couldn't convince the sys-admin to add the hostname of Server DB and IP entry to this file.
Clues please?
Best regards
When '@proddb01' is not used, then sqlplus can only connect to a local database, & there is no local database on the client system
-
connection mysql and oracle ORA-28545: error diagnosed by Net8 when connecting to an agent
Hi all
I have Oracle 10.2.0.5 server and MySQL 5.3 on windows environment. all are 64-bit.
I want to connect to MySQL. I do the following
Configure Listner.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_2)
(= Extproc PROGRAM)
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_2)
(SID_NAME = ORCL)
)
(SID_DESC =
(SID_NAME = mysql)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_2)
(PROGRAM = HSODBC)
(ENVS = LD_LIBRARY_PATH = C:\oracle\product\10.2.0\db_2\LIB)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oradev.hct.org) (PORT = 1521))
)
Tnsnames.ora configuration
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oradev.hct.org) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
MySQL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST= 10.153.103.5) (PORT = 1521))
(CONNECT_DATA =
(SID = mysql)
)
(HS = OK)
)create file initodbc.ora in the folder hs
HS_FDS_CONNECT_INFO = mysql
HS_FDS_TRACE_LEVEL = OFF
Restart the listner
tnsping
C:\users\administrator > tnsping mysql
AMT Ping Utility for 64-bit Windows: Version 10.2.0.5.0 - Production 08-NOV-2
015 13:02:52Copyright (c) 1997, 2010, Oracle. All rights reserved.
Use settings files:
C:\oracle\product\10.2.0\db_2\network\admin\sqlnet.ora
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 10.153.103.5)
(PORT = 1521)) (CONNECT_DATA = (SID = mysql)) (HS=OK))
OK (0 msec)Create the connection odbc for Unicode
the test is successful
now, I create the dblink
create public mysql database link to connect to cssDBTeam identified by oracle using "mysql";
then try to select from a table inside the MySQL database
SQL > select * from appeal@mysql;
Select * from appeal@mysql
*
ERROR on line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Cannot retrieve the text of the message NETWORK/NCR 65535
ORA-02063: preceding 2 lines of MYSQL
How could I solve this problem?
Thank you.
Hello
I realize that your problem is that 10.2 HSODBC was never focused on the Windows 64-bit platform and was only available on 32-bit Windows. You can not install the 32-bit on WIndows 64-bit HSODBC.
Your only option is to install 11.2 DG4ODBC on your platform Windows 64 - bit, or if you have a RDBMS 10.2 installed on another platform, then you could use HSODBC as part of this installation and connect from the RDBMS on Windows 64 - bit using the links in the database. HSODBC 10.2 software could not be installed as a stand-alone product and was only available as part of an RDBMS install.
Kind regards
Mike
-
ORA-12545 alert.log anti spam
Hello
Windows 2008 server x 64
Oracle 11.2.0.3 x 64
Client reported the response time very slow with the database; especially with the initial connection to the database. STATSPACK reports do not seem to show anything unusual. What is good, and it may or may have an effect on the performance of the connection, is an abundant amount of ORA-12545 error in the alert.log from the database server, so much so that since May 1st the alert.log won 300 MB in size for this single error! Precise moments show messages in the listener.log but this newspaper does not provide any error and said just that the connection has a flag "establish".
Couple questions
- Within the messages it says "Tracing not lit not." - which trace must be activated and how I can further debug?
- When the search for the error number, it seems that this message should be on the client side and not in the alert.log to database. This makes me believe that perhaps the database trying to make connections to some other db or similar and generates this error because the tnsnames.ora servers cannot be configured for such connection. My premise is false?
Here is the full error:
***********************************************************************
Fatal OR connect error 12545, connect to:
(LOCAL = NO.)
VERSION INFORMATION:
AMT for 64-bit Windows: Version 11.2.0.3.0 - Production
Oracle leaves NT Protocol adapter for 64-bit Windows: Version 11.2.0.3.0 - Production
Adapter protocol NT Windows NT TCP/IP for Windows 64-bit: 11.2.0.3.0 - Production Version
Time: May 23, 2014 10:37:57
Tracing not lit.
AMT error struct:
NS main err in code: 12545
TNS-12545: Connect failed because target host or object does not exist
NS secondary err code: 12560
NT main err in code: 0
NT secondary err code: 0
NT OS err code: 0
abandonment of opiodr treat unknown ospid (7604) following ORA - 609
Thank you
-joel
In general, you now know which pollute the file alert_SID.log
This is the code that runs on the Server DB that tries to access a remote database & fails.
Oracle DB is the victim; not the culprit.
-
ORA-17628: error Oracle 19505 returned by remote Oracle - Dup Active Server
Hi all
I'm doing a duplicate RMAN of a 11.2.0.4 database to another host on a different IP address.
Goal
SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
Auxiliary (nomount)
SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
I've added an entry static listener to the file on the server to THE listener and start the instance in nomount.
(SID_LIST = (SID_DESC = (GLOBAL_DBNAME = IST_11G) (ORACLE_HOME = /devdb3/u01b/app/oracle/product/11.2.0.4) (SID_NAME = IST_11G) )
TNSNAMES on the server to THE:
points to the TARGET server:
IST_11G_192 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.48)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = IST_11G)(UR=A)))
the server pointing to THE
IST_11G = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.21.64.72)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = IST_11G)(UR=A)))
TNSNAMES on the TARGET server:
IST_11G_NEW = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.21.64.72)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = IST_11G)(UR=A)))
instance pFile to THE:
Using parameters in Server pfile /devdb3/u01b/app/oracle/product/11.2.0.4/dbs/initIST_11G.ora-side
Parameters of the system with default values:
db_name = "IST_11G".
I have sftp file password above and named correctly.
Check the connections
--from target $ sqlplus sys/xxx@IST_11G_NEW as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Tue Jun 30 08:32:10 2015 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL>
Since in THE
$ sqlplus sys/xxx@IST_11G_192 as sysdba
SQL * more: Release 11.2.0.4.0 Production on Mar 30 08:32:32 June 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
SQL >
So I checked that I have two means of connection, my at THE start and I can connect.
Here's my RMAN command (Note: the TARGET servers and have the same host name, don't ask...) "This is why we use the IP address in the TNSNAMES):
connection:
rman target sys/xxx@IST_11G_192 auxiliary sys/xxx@IST_11G | tee /home/oracle/IST_11G_duplicate.log
run { duplicate target database to IST_11G from active database NOFILENAMECHECK spfile set DB_FILE_NAME_CONVERT = '/devdb3/u01/oradata/IST_11G','/devdb3/u02d/oradata/IST_11G','/devdb3/u02/oradata/IST_11G','/devdb3/u02d/oradata/IST_11G' set LOG_FILE_NAME_CONVERT = '/devdb3/u01/oradata/IST_11G/','/devdb3/u03r/IST_11G_DEVDB3/' set control_files = '/devdb3/u03r/IST_11G_DEVDB3/controlfile/IST_11G_ctl1.ctl', '/devdb3/u04r/IST_11G_DEVDB3/controlfile/IST_11G_ctl2.ctl' set audit_file_dest = '/devdb3/u01b/app/oracle/product/11.2.0.4/rdbms/audit/' set diagnostic_dest = '/devdb3/u01b/app/oracle/' set log_archive_dest = '/devdb3/u05f/fast_recovery/IST_11G/archivelogs/' set MEMORY_MAX_TARGET='1G' set MEMORY_TARGET='1G'; }
$ rman target sys/xxx@IST_11G_192 auxiliary sys/xxx@IST_11G | tee /home/oracle/IST_11G_duplicate.log Recovery Manager: Release 11.2.0.4.0 - Production on Tue Jun 30 08:37:02 2015 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database: IST_11G (DBID=525645852) connected to auxiliary database: IST_11G (not mounted) RMAN> run 2> { 3> duplicate target database to IST_11G from active database NOFILENAMECHECK spfile 4> 5> 6> set DB_FILE_NAME_CONVERT = '/devdb3/u01/oradata/IST_11G','/devdb3/u02d/oradata/IST_11G','/devdb3/u02/oradata/IST_11G','/devdb3/u02d/oradata/IST_11G' set LOG_FILE_NAME_CONVERT = '/devdb3/u01/oradata/IST_11G/','/devdb3/u03r/IST_11G_DEVDB3/' set control_files = '/devdb3/u03r/IST_11G_DEVDB3/controlfile/IST_11G_ctl1.ctl', '/devdb3/u04r/IST_11G_DEVDB3/controlfile/IST_11G_ctl2.ctl' 7> set audit_file_dest = '/devdb3/u01b/app/oracle/product/11.2.0.4/rdbms/audit/' 8> set diagnostic_dest = '/devdb3/u01b/app/oracle/' set log_archive_dest = '/devdb3/u05f/fast_recovery/IST_11G/archivelogs/' 9> set MEMORY_MAX_TARGET='1G' set MEMORY_TARGET='1G'; 10> } 11> 12> Starting Duplicate Db at Jun 30 2015 08:37:10 using target database control file instead of recovery catalog allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=216 device type=DISK contents of Memory Script: { backup as copy reuse targetfile '/devdb3/oracle/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora' auxiliary format '/devdb3/u01b/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora' ; sql clone "alter system set spfile= ''/devdb3/u01b/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora''"; } executing Memory Script Starting backup at Jun 30 2015 08:37:11 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=365 device type=DISK RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 06/30/2015 08:37:12 RMAN-05501: aborting duplication of target database RMAN-03015: error occurred in stored script Memory Script RMAN-03009: failure of backup command on ORA_DISK_1 channel at 06/30/2015 08:37:12 ORA-17628: Oracle error 19505 returned by remote Oracle server RMAN>
I can't understand why I'm getting ORA-17628: error Oracle 19505 returned by remote Oracle server.
So, I try one of the commands connecting memory se scripts to check if was not a problem with my execution block.
backup copy reuse targetfile ' / devdb3/oracle/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora' auxiliary format ' / devdb3/u01b/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora';
$ rman target sys/sys_IST_11G@IST_11G_192 auxiliary sys/sys_IST_11G@IST_11G | tee /home/oracle/IST_11G_duplicate.log Recovery Manager: Release 11.2.0.4.0 - Production on Tue Jun 30 08:41:00 2015 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database: IST_11G (DBID=525645852) connected to auxiliary database: IST_11G (not mounted) RMAN> backup as copy reuse targetfile '/devdb3/oracle/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora' auxiliary format '/devdb3/u01b/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora'; Starting backup at Jun 30 2015 08:41:15 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=365 device type=DISK RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03009: failure of backup command on ORA_DISK_1 channel at 06/30/2015 08:41:17 ORA-17628: Oracle error 19505 returned by remote Oracle server RMAN>
Same mistake. Nothing is written for the journal of alerts. IM starting to pull the hair is left on my head out and people start screaming for this database. I could go back to datapump but I want to understand this. Any help would be very much appreciated.
Thank you.
Yes, although this:
connected to target database: IST_11G (DBID = 525645852)
connected to the auxiliary database: IST_11G (unassembled)
can say you that RMAN you connected the two separate databases, the process, instances should do research each other using tnsnames file entries. Thus, incorrect tnsnames entries can have one instance pointing to itself.
Hemant K Collette
-
ORA-28547: connection to the server has failed, probable Oracle Net admin error
Hello
Environment
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production PL/SQL Release 11.2.0.1.0 - Production CORE 11.2.0.1.0 Production TNS for Linux: Version 11.2.0.1.0 - Production NLSRTL Version 11.2.0.1.0 - Production
I'm ORA-28547: failed to connect to the server, probable Oracle Net admin error when connecting to the database as username/password@orcl,If, I do not @orcl it connects without any problems. But I can't connect from client machines without dbstring.
This problem started recently, and I understand that it is because of the dynamic ip of the linux machine. Previously the Linux m/c ip was 172.25.210.177 unfortunately was launched once the machine ip has changed in 172.25.210.148.
To bring the database up I started as usual and got to the top, but when connecting db with the above error is being username/password@orcl.
To solve the i changed the ip address in tnsnames.ora and listener.ora but no luck. Please advice how to solve.
It will run until the next change of the ip address. If you want a permanent solution, you must assign a static ip address. Why is your dynamic ip address? What is a local testbox.foobar.com or a production system that must be accessible to other systems?
-
Of Oracle ORA-01033 initialization or shutdown in progress error
Hi all
I am using windows 7 on my 64-bit computer, and I installed the oracle 12 c database. Everything has been installed very well, and I was able to connect to the HR schema. However, the next day when I tried to connect, I had the Oracle ORA-01033 initialization or closing in progress error. What I've done wrong? and what can I do about it? Thank you very much for the help.
Sorry I posted the reply #8 after reading the answer #6.
I did not read the answer #7 until at the latest. Anyway, I was able to connect and what you said is correct.
I ran the following command and was able to connect:
ALTER DATABASE OPEN CONNECTABLE TO ALL;
Thanks for all the help. This question is answered.
-
ORA-28547: connection to the server failed, probable Oracle Net admin error.
Dear all,
My11gR2 database on windows 2008 R2 Standard is in error "ORA-28547: connection to the server failed, probable Oracle Net admin error.
It's when I try to log on to the server itself
as:
SQL * more: Production of release 11.2.0.1.0 kills him Oct 8 05:43:03 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter the user name: sys/***@orcl as sysdba
"ORA-28547: failed to connect to the server, likely admin error Oracle Net.
This started happening when the server has been restarted. I don't know if I have to stop any service, as in some cases under Linux should be stopped service iptables.
The solution I found on most of the forums is to change in sqlnet.ora since '#SQLNET. AUTHENTICATION_SERVICES = (NTS) 'to' #SQLNET. AUTHENTICATION_SERVICES = (NONE)"and restart the receiver.
But even if it doesn't in my case.
Kindly help.
Best regards, Imran
Guys, there are 2 databases installed on the same server, to correctly configure the SID. Once set, I could see that the database is down and when starting it started working well.
Thanks for your efforts.
-
Ora exp error 12154 meeting using rhel 5.5 64bits, oracle 10 g 2
Dear Sirs, Hello can somebody highlight which files I have to make corrections.
I noticed that the work of sqlplus network very well where the machine local exp this error,
Export: Release 10.2.0.5.0 - Production on sat 8 Jan 16:25:24 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
EXP-00056: ORACLE error 12154
ORA-12154: TNS: could not resolve the connect identifier specified
EXP-00000: export completed unsuccessfully
Kind regardsHello
ORA-12154: TNS: could not resolve the connect identifier specified
This link can guide you:
http://www.error-code.org.UK/view.asp?e=Oracle-ora-12154
More, if you detail the exact declaration you run, he can help us.
Do specify you ORACLE_SID before running the Export statement?
Hope this helps.
Best regards
Jean ValentinePublished by: Lubiez John Valentine's day January 8, 2011 14:50
-
ORA-12545: Connect failed because target host or object does not exist
Hi all
I am not able to connect database remotely. I have two servers with the name U.S. and localhost. Here are my coordinates tns:
Details of the host server we:
[oracle@US admin] $ more tnsnames.ora
tnsnames.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
PROD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = EN)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = prod. WORLD)
)
)
PROD_STBY =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = prod. WORLD)
)
)
[oracle@US admin] $ more sysconfig
Networking = yes
NETWORKING_IPV6 = yes
HOSTNAME = US.localdomain
[oracle@US admin] $ more/etc/hosts
# Do not remove the next line, or various programs
# requiring a network functionality will fail.
127.0.0.1 localhost.localdomain localhost
: US.localdomain6 1 U.S.
Remote Ping US server location:
[oracle@US admin] $ ping 192.168.188.131
PING 192.168.188.131 (192.168.188.131) 56 (84) bytes of data.
64 bytes from 192.168.188.131: icmp_seq = 1 ttl = 64 time = 0,662 ms
64 bytes from 192.168.188.131: icmp_seq = 2 ttl = 64 time = 0,558 ms
64 bytes from 192.168.188.131: icmp_seq = 3 ttl = 64 time = 0,566 ms
64 bytes from 192.168.188.131: icmp_seq = 4 ttl = 64 time = 0,603 ms
64 bytes from 192.168.188.131: icmp_seq = 5 ttl = 64 time = 0.575 ms
^ C
-192.168.188.131 - ping statistics
5 packets transmitted, 5 received, 0% packet loss, time 4002ms
RTT min/avg/max/leg = 0.558/0.592/0.662/0.048 ms
Details of the server remote localhost:
[oracle@localhost admin] $ more tnsnames.ora
PROD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = EN)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = prod. WORLD)
)
)
PROD_STBY =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = prod. WORLD)
)
)
[oracle@localhost admin] $ cat/etc/hosts
# Do not remove the next line, or various programs
# requiring a network functionality will fail.
127.0.0.1 localhost.localdomain localhost
: 1 localhost6.localdomain6 localhost6
[oracle@localhost admin] $ cat sysconfig
Networking = yes
NETWORKING_IPV6 = yes
HOSTNAME = localhost.localdomain
[oracle@localhost admin] $ listener.ora more
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = prod. WORLD)
(ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = prod)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain) (PORT = 1521))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
)
)
ADR_BASE_LISTENER = / u01/app/oracle
[oracle@localhost admin] $ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 4 February 2014 16:49:36
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start date February 4, 2014 16:42:09
Uptime 0 days 0 h 7 min 26 sec
Draw level off
Security ON: OS Local Authentication
SNMP OFF
Parameter Listener of the /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora file
The listener log file /U01/app/Oracle/diag/tnslsnr/localhost/listener/alert/log.XML
Summary of endpoints listening...
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=localhost.localdomain) (PORT = 1521)))
(DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))
Summary of services...
Service "prod. The WORLD' has 1 instance (s).
Instance "prod", status UNKNOWN, has 1 operation for this service...
The command completed successfully
Location of ping to the server hosting remote localhost:
[oracle@localhost admin] $ ping 192.168.188.130
PING 192.168.188.130 (192.168.188.130) 56 (84) bytes of data.
64 bytes from 192.168.188.130: icmp_seq = 1 ttl = 64 time = 1.57 ms
64 bytes from 192.168.188.130: icmp_seq = 2 ttl = 64 time = 0,223 ms
64 bytes from 192.168.188.130: icmp_seq = 3 ttl = 64 time = 0,577 ms
64 bytes from 192.168.188.130: icmp_seq = 4 ttl = 64 time = 0,571 ms
64 bytes from 192.168.188.130: icmp_seq = 5 ttl = 64 time = 0,568 ms
^ C
-192.168.188.130 - ping statistics
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
RTT min/avg/max/leg = 0.223/0.703/1.578/0.458 ms
Connection database target mode ensures via RMAN:
[oracle@localhost admin] $ rman target sys/oracle_4U@PROD auxiliary sys/oracle_4U@PROD_STBY
Recovery Manager: release 11.2.0.1.0 - Production on Tue Feb 4 16:56:45 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-00554: initialization of the package manager internal collection failed
RMAN-04005: target database error:
ORA-12545: Connect failed because target host or object does not exist
Please let me know the cause of this error and it please help me how can I solve it.
Kind regards
Michel
OK, so you have a software firewall (IPTables) running. By default, it will not be configured to accept connections on port 1521. You have two options...
(1) disable the firewall completely. Run these commands to do this...
stop /etc/init.d/iptables
chkconfig iptables off
The first command stops the service. The second command prevents revived at every restart of the OS.
(2) add an exception to the firewall for port 1521. I'm not a Linux expert, but it should be something like this...
Change the configuration of IPTables with vi...
VI/etc/sysconfig/iptables
Add a new rule as follows...
-A of ENTRY m state - state NEW-m tcp tcp - dport 1521-j ACCEPT Pei
Save and close, and then restart the IPTables service...
/etc/init.d/iptables restart
NOTE: you must always change the name of this server to something other than "localhost".
-
Unable to connect to the remote computer (ORA-12545) DB
Hi all
Need help please, I'm stumped. I am trying to connect to a database that is located in my work from home.
I'm running into the following question (see the command and the error below):
-------------------------------
ansichart@ansivm:~/src/perl$ sqlplus aspxdba/***@aspxp2
SQL * more: Production of the 11.2.0.3.0 version Thu Jul 18 21:15:09 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
ERROR:
ORA-12545: Connect failed because target host or object does not exist
-------------------------------
Here are my tnsnames.ora file (I have the service_name censorship out for privacy reasons):
-------------------------------
ansichart@ansivm:~/src/perl$ cat $ORACLE_HOME/network/admin/tnsnames.ora
aspxp2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = orarac9-scan)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = *) (UR = A)
)
)
-------------------------------
I checked that I can establish a TCP connection to the DB server on the specified port, using the same information in the file TNSnames.ora (see below):
-------------------------------
ansichart@ansivm:~/src/perl$ nmap - sT Pei 1521 orarac9-scan
from Nmap 5.21 ( http://nmap.org ) to 2013-07-18 20:53 CDT
Scan nmap for orarac9-scan (10.1.13.115) report
Host is (0.0088 s latency).
SERVICE OF THE PORT STATE
1521/tcp open oracle
Nmap done: 1 IP (1 host upward) address scanned in 0.09 seconds
ansichart@ansivm:~/src/perl$
-------------------------------
I have another terminal opens to a server at work and I can connect to the DB with sqlplus very well. I checked the record for this database on the tnsnames.ora file is the same as it is at work.
In conclusion, I can connect to the database to work, but I can't go home, even if I am using the same connection information and verify that port 1521 is available on this database from home server. So why can't a DB connection?
Any ideas?
Thank you
Ben
676d3153-d812-4300-9e6a-b1dc87a2ebfe wrote:
ERROR:
ORA-12545: Connect failed because target host or object does not exist
It simply means "Unknown host name." In other words, the hostname used for the connection could not be resolved to an IP address.
I checked that I can establish a TCP connection to the DB server on the specified port, using the same information in the file TNSnames.ora (see below):
You check hostname orarac9-analysis only. You do not check that the hostname provided by the Oracle SCAN earpiece can be resolved by your platform.
That you connect to a listener to SCAN, it will do its magic (balancing/alternate/whatever) and return, the customer asked the name a redirect to your client driver - he tell where to find the service.
If the driver of your client gets a host name and port in return. He then tries to connect to that to establish your Oracle client-server session. If the RAC has been implemented with FCAC's typical host names, your customer will get names like vip1-orarac9 and orarac9-vip2 returned. Probably as FULL domain name too.
This means that your platform must be able to resolve these host names. This isn't. Thus the error.
In the file/etc/hosts of your platform, define the list of hostnames (hostnames SCAN, Public and VIP) CARS.
-
Clients unable to connect due to the ORA - 12545 Intermittent in RAC environment
We deal with this problem.
Whenever we connect customer oracle application to our database server.
ounces it connect and the next moment, it shows the error ORA-12545: Connect failed because target host or object does not exist.
After searching on Google, I found many recommendations for this.
the one I like is:
+(source: Internet) +.
Whe LOCAL_LISTENER is nothing or is not set correctly, PMON can record the VIP host name and the physical hostname with the REMOTE_LISTENER. This is incorrect in the CARS, but if this happens, the client may intermittently be routed to an endpoint listens on one of these addresses. If the client cannot resolve the host name physical or even vip host name, the connection will fail with ORA-12545.
And first set is important to check the output for: lsnrctl services < nom_recepteur >
You should not see the physical hostname in the information manager for your RAC instances. Here is an example of a services of incorrect lsnrctl < nom_recepteur > output to a 2 node RAC cluster:
oracle_rac_listener lsnrctl services
Service 'oracle.oracle.com' has 2 occurrences.
'Orcl1' instance, State LOAN, has 2 managers of this service...
Managers:
"DEDICATED" set up: 0 denied: 0 status: ready
REMOTE SERVER
(ADDRESS = (PROTOCOL = TCP)(HOST=myphysicalhost1) (PORT = 1521))
"DEDICATED" set up: 326 refused: 0 status: ready
LOCAL SERVER
"Orcl2", State LOAN, has 1 operation for this service...
Managers:
"DEDICATED" implemented: 394371 refused: 0 status: ready
REMOTE SERVER
(ADDRESS = (PROTOCOL = TCP)(HOST=myphysicalhost2) (PORT = 1521))
Here's an example of what it should look like when LOCAL_LISTENER is configured correctly:
oracle_rac_listener lsnrctl services
Service 'oracle.oracle.com' has 2 occurrences.
'Orcl1' instance, State LOAN, has 2 managers of this service...
Managers:
"DEDICATED" set up: 0 denied: 0 status: ready
REMOTE SERVER
(ADDRESS = (PROTOCOL = TCP)(HOST=myVIP_host1) (PORT = 1521))
"DEDICATED" set up: 326 refused: 0 status: ready
LOCAL SERVER
"Orcl2", State LOAN, has 1 operation for this service...
Managers:
"DEDICATED" implemented: 394371 refused: 0 status: ready
REMOTE SERVER
(ADDRESS = (PROTOCOL = TCP)(HOST=myVIP_host2) (PORT = 1521))
Open a session with privileges to the instance and run the following commands so that LOCAL_LISTENER is correctly configured:
change the value system LOCAL_LISTENER = "(address = (protocol = tcp (host = < your_vip_node1 >))(port=1521)) range = the two sid ="INSTANCE_NAME1";"
Do the same for the 2nd instance where is set to < vip_host_node2 > and the sid is defined for the 2nd instance name.
change the value system LOCAL_LISTENER = "(address = (protocol = tcp (host = < your_vip_node2 >))(port=1521)) range = the two sid ="INSTANCE_NAME2";"
Now the correct address using the VIP host name is registered against the Auditors in the cluster.
The client must be able to resolve all forms of the VIP host through their file/etc/hosts. that is, short name and complete.
now my concern is:
To change the LOCAL_LISTENER parameter in the init.ora/spfile database, it will require a downtime? or it will have a negative impact on our existing RAC databases?
Please suggest?
Thank youHello
Good config is already present, then check/confirm below
1 tnsping
, tnsping similarly & on nodes
2 sqlplus@ / , sqlplus @ / similarly through the node
3 Local_listener must not be empty it should point to the virtual host entry as below, try it before if everything failsNAME TYPE VALUE ------------------------------------ -------------------------------- ------------------------------ local_listener string (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=121.244.255.54)(PORT=1522))))
Thank you
Ajay more
http://moreajays.blogspot.com -
Hello
on 10 gr 2 on WIN 2003 server:
And then:C:\>sqlplus repadmin/***@CEL2.WORLD SQL*Plus: Release 10.2.0.4.0 - Production on Tue Jun 22 09:54:18 2010 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
Thanks for the help.CONNECT repadmin/******@CEL1.WORLD BEGIN DBMS_REPCAT.ADD_MASTER_DATABASE ( gname => 'REPG', master => 'CEL2.WORLD', use_existing_objects => TRUE, copy_rows => FALSE, propagation_mode => 'ASYNCHRONOUS'); END; / BEGIN * ERROR at line 1: ORA-04052: error occurred when looking up remote object [email protected] ORA-00604: error occurred at recursive SQL level 2 ORA-12545: Connect failed because target host or object does not exist ORA-06512: at "SYS.DBMS_REPCAT_UTL", line 4271 ORA-06512: at "SYS.DBMS_REPCAT_MAS", line 2156 ORA-06512: at "SYS.DBMS_REPCAT", line 146 ORA-06512: at line 2
connect to the remote database as sys and
SQL > grant execute on sys. DBMS_REPCAT repadmin;
-
Hi all
Our database has been moved from one server to another. IBM AIX.
Earlier I was able to connect to the DB using PL/SQL Developer. But now whenever I try his cast error "ORA-12545: Connect failed because target host or object does not exist.
Below is the result of tnsping and ping in my local system command prompt
*********************************************************************************************
C:\Documents and Settings\AD1 > < DB_NAME > tnsping
AMT Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on June 16, 2010 20:02:06
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Use settings files:
C:\OraHome_1\network\admin\sqlnet.ora
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = < servername >) (PORT
(= 1521))) (connect_data = (SID = DB_NAME)))
TNS-12545: Connect failed because target host or object does not exist+.
C:\Documents and Settings\AD1 > ping < servername >
Ping request could not find host < servername >. Please check the name and try again. +
*********************************************************************************************
I am able to access the firewall.
We lack something. Kindly advice.
Kind regards
SIDCan you please try the following at the DOS prompt:
Ping
If you don't get a response from the server, it's your problem. Try the same ping with the IP address of the server.
Assuming you get a response when you specify the IP address but not the name of the server, then you have a simple problem with the resolution of DNS names
-
Hi all
When I opened the Oracle Forms Builder and then enter:
user name: scott
password: Tiger
database: orcl
Then I get this message:
ORA-12545: Connect failed because target host or object does not exist
Please help & adviceHello
Please configure correctly and if you have an error something like this.ORA: 12541 - TNS:No listener
Please in regedit just create a form named local - orcl and chain in oracle home
If you please restart you computer.
Sarah
Published by: S@R@h on November 15, 2009 04:03
Published by: S@R@h on November 15, 2009 04:06
Maybe you are looking for
-
Virtual PC on Windows 7 (32 bit) and processor T4300
Hello I bought my laptop especially to run Virtual PC and deliberately got a 4 GB machine. I now know that the T4300 processor supports hardware not witnessed virtualization and apparently you then can't launch VPC? I'm not interested in XP mode - I
-
I have an attachment that I have saved as a .docx file. Where is - this is recorded so I can use it as a download in another application?
-
Error by running Setup.exe in the installation of MS - SQL 2008
Hello I need to install MS SQL2008 but I am unable to run setup.exe in my system. The error was the installation of the .NET framework 3.5 service pack 1 has failed, and SQL Server 2008 requires .NET framework3.5SP1 should be installed. But I install
-
Hi all I used my Audioquest Dragonfly 1.2 CAD without any problems on my Samsung S4. With my compact new Z3, the Dragonfly connects and reading files 24-bit / 96 kHz, but the Z3 does not control the volume of the Dragonfly. The volume is always maxim
-
In the Windows error recovery process, cannot find an operating system
When the System Recovery Options box asking the OS to repair, nothing is displayed. Does this mean that I have to restore the machine to its original configuration? And if that's the case is anyway to recover a part of the HDD before restoring data