Cannot connect to DB from remote computer (ORA-12545)
Hello all,
Please help, I am stumped. I am trying to connect to a database located at my work from at home.
I am running into the following issue (see command and error below):
ansichart@ansivm:~/src/perl$ sqlplus aspxdba/********@aspxp2
SQL*Plus: Release 11.2.0.3.0 Production on 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 is my tnsnames.ora file (I have the service_name censored 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 have verified that I can establish a TCP connection to this DB server on the port specified, using the same info from the TNSnames.ora file (see below):
ansichart@ansivm:~/src/perl$ nmap -sT -p 1521 orarac9-scan
Starting Nmap 5.21 ( http://nmap.org ) at 2013-07-18 20:53 CDT
Nmap scan report for orarac9-scan (10.1.13.115)
Host is up (0.0088s latency).
PORT STATE SERVICE
1521/tcp open oracle
Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds
ansichart@ansivm:~/src/perl$
I have another terminal opened up to a server at work and I can connect to the DB with sqlplus just fine. I verified that 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 at work, but I cannot at home, even though I am using the same connection information and verified that port 1521 is accessible on this Database server from at home. So why can't I establish a DB connection?
Any ideas?
Thanks,
Ben
676d3153-d812-4300-9e6a-b1dc87a2ebfe wrote:
ERROR:
ORA-12545: Connect failed because target host or object does not exist
This simply means "hostname unknown". In other words, the hostname used for the connection could not be resolved to an IP address.
I have verified that I can establish a TCP connection to this DB server on the port specified, using the same info from the TNSnames.ora file (see below):
You are verifying hostname orarac9-scan only. You are not verifying that the hostname supplied by the Oracle SCAN Listener can be resolved by your platform.
As you are connecting to a SCAN listener, it will do its magic (load balancing/round robin/whatever) and return a redirect to your client driver - telling it where to find the service name the client requested.
So your client driver gets a hostname and port in return. It then attempts to connect to that to establish your Oracle client-server session. If the RAC has been setup with the typical RAC hostnames, your client will get hostnames like orarac9-vip1 and orarac9-vip2 returned. Likely as FQDN too.
This means your platform needs to be able to resolve these hostnames. It does not. Thus the error.
In your platform's /etc/hosts file, define the complete list of RAC hostnames (SCAN, Public and VIP hostnames).
Similar Messages
-
Connection doesnt work from remote computer
Hi
I have Oracle XE installed on a computer and my application (Excel application, VBA code) is working well with oracle xe.
i want to run the application from a remote computer.
I opened my application on a rempote computer and it could not connect to oracle xe..
I installed the Oracle XE client on the remote computer but still the application cant connect to the oracle server from the remote computer.
this is my connection string:
sCon = "Provider=MSDAORA;Data Source=xe;User Id=myUser;Password=myPw;"
the computer on which oracle xe express is located is called "Hagar1".
how can i connect to the oracle from the remote application?
thanks,
Hagar
Edited by: user641508 on 04-Dec-2008 10:26
Edited by: user641508 on 04-Dec-2008 10:27the remote client doesn't know how to get to hagar1, simplest fix is add the entry to the tnsnames.ora file, run a tnsping hagar1 to find the location of the client oracle_home/network/admin/tnsnames.ora file and add:
hagar1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xe_hostIP_or_name )(PORT = 1521))
(CONNECT_DATA =
(SID = XE)
)Edited by: clcarter on Dec 6, 2008 10:53 AM add code tag -
Cannot log into T61 from remote computer with wired network and Windows Explorer.
Hi,
I am using a T61 7662-cto with Windows 7 Professional
When the T61 is connected on the home network with the wired network, I am not able to log into it remotely from another computer. On my second computer, I see the T61 with Windows Explorer but instead of getting the login window, it appears a Network Error with the message:
“Check the spelling of the name. Otherwise, there might be a problem with your network.” With a error code 0x80070035, “The network path was not found.” I tried the “Diagnose” button but it doesn’t give solution.
When the T61 is wireless connected, there is no problem. I can access it from my second computer.
I never have problem to connect to the second computer from the T61 with any connection type . I just updated the Intel Wireless LAN (bg, abg, abgn) for Windows 7 – ThinkPad, with the drivers required but it changes nothing.
http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-73611
Do you have a hint for this issue why the wired network gives problem?
ThanksOpen this post, go to the flagged message. On its right is a button
to turn off the flag.
I went to the site. The only problem I had was one has to sign in
to see anything. Even the main page had a very large ''Please
Sign In'' covering the window.
Many site issues can be caused by corrupt cookies or cache.
* Clear the Cache and
* Remove Cookies<br> '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
Type '''about:preferences'''<Enter> in the address bar.
* '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
* '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
If there is still a problem,
'''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
While you are in safe mode;
Type '''about:preferences#advanced'''<Enter> in the address bar.
Under '''Advanced,''' Select '''General.'''
Look for and turn off '''Use Hardware Acceleration'''.
Poke around safe web sites. Are there any problems?
Then restart. -
Connection to Oracle from remote computer in local network
I have local network with two computers: WinXP with Oracle 10g and Vista with Oracle Client tools. I need to connect to the Oracle 10g from the client PC with sqlplus and with Enterprise Manager Console. Sqlplus returns ORA-12154 error, EM console returns ORA-12541 error.
Is the problem in configuration of listener.ora, tnsnames.ora and sqlnet.ora on the server side and on the client side? They look like this:
Server side:
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.9)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.9)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = orcl)
# sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.9)(PORT = 1521))
Client side:
# tnsnames.ora Network Configuration File:
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.9)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = orcl)
# sqlnet.ora Network Configuration File: C:\oracle\product\10.2.0
SQLNET.AUTHENTICATION_SERVICES= (NTS, EZCONNECT)
NAMES.DIRECTORY_PATH= (TNSNAMES)
Are these files configured fine? Or do I have to configure also something else? When I do tnsping 10.0.0.9 from the client, the result is OK. So what is wrong? Thanks a lot for help, Petr.Sqlplus returns ORA-12154 error, EM console returns ORA-12541 error- Make sure that "TNSNAMES" is listed as one of the values of the NAMES.DIRECTORY_PATH parameter in the Oracle Net profile (SQLNET.ORA)
- Verify that a TNSNAMES.ORA file exists and is in the proper directory and is accessible.
- Check that the net service name used as the connect identifier exists in the TNSNAMES.ORA file.
- Make sure there are no syntax errors anywhere in the TNSNAMES.ORA file. Look for unmatched parentheses or stray characters. Errors in a TNSNAMES.ORA file may make it unusable.
HTH -
I cannot access aol from this computer. all other wedsites are fine, other computers can access aol from same wireless, and I can access aol when using another wireless.
problem is specific to this computer, at home with aol only.I should have explained further. The game opens in a new window over to the upper left of my screen, leaving the original page underneath. I tried minimizing it so that I could get to my toolbar and did the View > Zoom > Reset. This has no effect. The lower portion of the game is still not showing. Using other browsers the window or frame of the game is much larger, therefore everything shows.
-
Executing powershell script from remote computer using RSAT
Hi.
I want to execute powershell script on AD server from remote computer (in the same domain). I installed and tested RSAT - it is working fine. But i cant execute PS from c# code.
ps.Commands.AddCommand("Import-Module").AddArgument("ActiveDirectory");
ps.Invoke();
ps.Commands.AddCommand("Get-ADOrganizationalUnit -Filter 'Name -like \"*\"'");
var res = ps.Invoke();
And i get exception:
An unhandled exception of type 'System.Management.Automation.CommandNotFoundException' occurred in System.Management.Automation.dll
Additional information: The term 'Get-SBNamespace' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.Hi
CapitanPlanet
For the
CommandNotFoundException, it means the command cannot be found.
On the other hand, your issue is about the PowerShell, if you still have the issue, I suggest that you should post it in the
PowerShell forum for efficient response.
Here are some useful information, please check
Powershell
commands from C# not working (System.Management.Automation.CommandNotFoundException)
Powershell, Service Bus For Windows Server Programmatically: Command found, module could not be loaded
https://msdn.microsoft.com/en-us/library/dn282152.aspx
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hello can someine help before i throw this 5s in the trash please?
I have the iphone 5s. I cannot get the playlists from my computer to sync to iphone5s but it works just fine with my 4s. I have done everything, it has even deleted my playlists that I have had to re-do 3 times. UGH!!!! Please help!Hey there rmflint,
It sounds like you are wanting to update the Apps that were synced over from your computer to your new iPhone 5s. If you are clicking Updates in the App Store in the bottom right corner, would you mind clarifying what happens when you are trying to update them?
App Store at a glance
http://help.apple.com/iphone/7/#/iph3dfd8c19
Thank you for using Apple Support Communities.
Take care,
Sterling -
I cannot configure my phone after just updating to ios 5, it says 'your iphone could not be activated because the activation server cannot be reached' i also cannot connect to itunes on my computer,it says 'your sim card is not supported' what can i do?
natalieduffy wrote:
it says 'your iphone could not be activated because the activation server cannot be reached'
Typically this indicates a device that has been hacked to be unlocked or jailbroken.
If that is the case, no support can be provided here. -
cannot restore aback up from my computer after a softwared update. i kep getting an error message saying the phoneis disconnected even though it it not.
If you're not a developer then you really should not have upgraded.
I'm unsure how you can fix this as you have already done a back-up on iOS 7 and apple don't support firmware downgrades. -
I cannot connect to iTunes from my iPod touch
I cannot connect to iTunes from my iPod touch I just wanted to buy an app and won't let me connect
Try:
Can't connect to the iTunes Store
However, some other users have reported the same problem so it May be an Apple server problem. -
I cannot get my pictures from my computer to my ipad can anyone help
I cannot get my pictures from my computer to my ipad. Can anyone help
You can also use a wireless flash drive.
http://www.sandisk.com/products/wireless/flash-drive/ -
i cannot uninstall mozilla firefox from my computer. what is the problem? how can i get it off of my computer?
Sounds like it is time for an out of warranty replacement or an upgrade to the iPhone 4.
-
Cannot connect to FB from "Settings" after IOS 6 - the FB-app works correctly
Cannot connect to FB from "Settings" after IOS 6 - the FB-app works correctly - but logging in from the settings to be able to "match" my contacts just doesn´t work. It just keeps "porcessing", when I try to login. Any good advice?
I found a fix. I hope this helps.
http://www.dencio.com/2012/01/fixed-facebook-20-and-twitter-20-for.html
I hope it works for you.
Dencio -
I cannot connect to itunes from the newstand
I cannot connect to itunes from the newstand using my iPad. I am unable to subscribe or restore subscriptions.
Try:
Can't connect to the iTunes Store
However, some other users have reported the same problem so it May be an Apple server problem. -
JDBC connect from remote computer fails
Hi all,
I have successfully installed the XE server and I can connect over JDBC from clients running locally on the machine where the XE server is installed.
However when I try to connect from a remote computer using the same client I get an error saying: The Network Adapter could not establish the connection
I can ping the machine with XE installed and all firewalls on the machines are turned off.
Any ideas on the subject of JDBC remote connect to XE server? Or is it simply that it is not supported?
Appreciate all the help I can get.
Thanks,
/AndersOn my machine I have the listener bound to local interface.
Listener.ora has hostname in it, and this is the listener status:
As status shows the hostname is resolved to localhost, on this machine I am unable (with this configuration) to share the db to other machines (I do not have oracle client on my other pc, but telnet is unable to connect to port 1521).
Changing hostname to ipaddres solves.
[andrea@bones ~]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Beta on 15-DEC-2005 21:28:51
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=bones)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Beta
Start Date 15-DEC-2005 21:28:40
Uptime 0 days 0 hr. 0 min. 11 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
Listener Log File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=8080))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XE" has 1 instance(s).
Instance "XE", status READY, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "XE", status READY, has 1 handler(s) for this service...
Service "XE_XPT" has 1 instance(s).
Instance "XE", status READY, has 1 handler(s) for this service...
The command completed successfully
[andrea@bones ~]$
Maybe you are looking for
-
FCP 6 no longer 'sees' my Sony HDR-HC7. Works perfectly with iMovie HD
I used to be able to capture from and print to my HC7. Setup was saved. Now, FCP doesn't 'see' the camera with the saved settings, or when I try setting it up again from scratch. Camera connection, driver, etc. are good in that the camera works perfe
-
I've tried downloading digital books from both my public library and from the Adobe site. iI always get the above message. previously i downloaded aone with no trouble. So i know I have the correct software on my computer.
-
MacBook Pro (W8638) shuts down unexpectedly in both Safari & Firefox
My 2006 MBP has worked well. The machine model is MacBookPro 1,2; 2.16GHz, Family name: A1151, screen size 17 inch, Memory DDR2-S-667 running OS 10.6.8 Snow Leopard. Two weeks ago it started shutting down unexpectedly. In three of the first four unex
-
802.1x error 23 only on Mac clients
I have been using server 2008 R2 for NPS using 802.1x for about a year or so with my windows clients and it has been working perfectly. Recently however my mac clients cannot authenticate successfully. They get the error posted below. I cant find
-
I upgrade to Lion OS10.7 today. I discovered that the Microsoft version for Mac on my computer is no longer supported by the new OS. I want to transfer mail that I had downloaded onto my Mac using Entourage. Attempting to Import the mailbox into Mail