Getting Connection Time out while connecting and with tnsping

Hello Experts,
I am new to Oracle world, so please go easy on me.
I installed Oracle 11 XE on Centos 6.4 VM. followed the official installation procedure and database was installed without any errors.
I am able to login to database through sqlplus and able to run sql queries.
Problem comes when i am trying to connect from sql developer or external application. i get Connection Time out error.
Below are the tnsnames.ora and listener.ora file content
# tnsnames.ora Network Configuration File:
XE =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = basevm)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe)
      (PROGRAM = extproc)
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
      (ADDRESS = (PROTOCOL = TCP)(HOST = basevm)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
lsnrctl stat shows service stats as UNKNOWN and tnsping also fails
bash-4.1$ lsnrctl stat
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 11-JUN-2013 02:00:48
Copyright (c) 1991, 2011, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date                10-JUN-2013 19:39:03
Uptime                    0 days 6 hr. 21 min. 45 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Default Service           XE
Listener Parameter File   /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/sagbase/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=basevm)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
bash-4.1$ tnsping xe
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 11-JUN-2013 02:01:16
Copyright (c) 1997, 2011, Oracle.  All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = basevm)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
TNS-12535: TNS:operation timed out
I am stuck and don't know where else to check.
Could you guys please help me out here?
Thanks.

That tnsping error indicates several possible problems, most related to the setup for the client. Or network setup on the database server host.
Connecting to a database using sqlnet requires three things, the database host, the listener port, and the ORACLE_SID or instance SERVICE_NAME.
The tnsping utility is only concerned with the first two items, host and port. It will not perform an actual connection, and will not verify the tnsalias ORACLE_SID or SERVICE_NAME values.
An "OK" result from tnsping verifies that the specified host has a listener running at the specified port and it is servicing connections.
Since you're not getting an "OK" from tnsping, could be something is blocking the connection (i.e. firewall), the host= specification is not correct, or the port= spec is not correct. Note that host= must either be a valid and correct hostname, or a an IPv4 address. If IPv6 is in the mix, only the correct hostname will work. A hostname that resolves correctly.
Look at your network interface setup on the host, find its IP address, make sure the IP will `ping`, and try a new sqlnet.ora entry with the IPv4 address.
ifconfig -a
<interface>: flags=...
inet n.n.n.n
# in sqlnet.ora:
xe2 = ... host=n.n.n.n ...
tnsping xe2
... ok? ...

Similar Messages

  • HT4628 my powerbook g4 os x 10.5.8 leopard is showing-Connection time out while connecting to the wifi.however it showing all available wifi connections around but not connecting it..however ethernet is working

    Problem while connecting with Wi-Fi,
    When i am connecting my powerbook g4 leopard  to any Wi-fi connection it showing -Connection time out, however Ethernet is working .I have updated all softwares but still same problem.

    It's possible that either the internal AirPort Extreme card or the antenna is faulty or has failed.
    One last thing to try before going with another Wi-Fi solutions is to the following:
    Try the following, in order, until (hopefully) resolved:
    1a. Delete Preferred Network(s)
    System Preferences > Network > AirPort > Advanced > AirPort tab
    Under "Preferred Networks," delete the network(s) you regularly use from the list.
    1b. Delete AirPort Keychain Entries
    Launch the "Keychain Access" application located in Applications/Utilties.
    Click on the "Kind" filter at the top, and look for any "AirPort network password" entries...and delete them.
    1c. Add Preferred Network(s)
    System Preferences > Network > AirPort > Advanced > AirPort tab
    Add the preferred network(s) using the "+" button.
    Restart or log out then back in.
    2. Move System Configuration Files
    (Note: You will have to reestablish your network connections settings.)
    Go to /Library/Preferences
    Move the SystemConfiguration folder to the desktop.
    Restart your Mac. (Note: OS X will rebuild the files that are now sitting on your desktop. If this doesn't resolve the issue, you can move the folder back to it's original location.)
    3. Run the Disk Utility to repair Disk Permissions.
    Restart or log out then back in.
    4. Turn off the Mac OS X Firewall
    System Preferences > Sharing > Firewall
    Click the "Stop" button.
    5. Create a New User Account
    System Preferences > Accounts
    Click "+" to add a new account
    Log off, then log back on with the new user account.
    Try connecting with the AirPort.
    If none of these help resolve the issue, you may want to consider getting a USB wireless adapter to replace both the internal card and antenna. One such vendor of these adapters is Other World Computing (OWC).

  • Getting Frequent time out while Connecting to SQL server 2008 Instance installed on VmWare

    Hi,
    I have a production SQL server Database with default instance. when I connect this instance from 10 attempts it get connected only 5-6 times. I connect this through SSMS. Some of jobs also getting failed due to login time out expired. please help in this.
    Product is SQL server 2008 Enterprise Edition
    Thank You
    Yogesh Arora

    Yogesh Arora
    Have you checked Event Viewer and ERROR.LOG?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • I am setting up for the first time, i didn't get the print out while setting up with my sign info

    i am setting up for the first time, i didn't get the print out while setting up with my sign information. None of my email information or original password are working.

    Hi there, what printer model do you own?
    If my reply helped you, feel free to click on the Kudos button (hover over the "thumbs up").
    If my reply solved your problem please click on the Accepted Solution button so other Forum users may benefit from viewing the post.
    I am an HP employee.

  • Connection time out while downloading

    I've attempted several times to download a song from the music store and I repeatedly receive: There was a problem download...etc. etc...
    and then: the network connection timed out.
    The last info I don't get since the connection is fine and never deviates strength etc. What's the deal?

    Problem resolved

  • Network connection time out when connecting to Itunes store

    When I try to connect to Itunes store i get this message:
    "Itunes could not connect to iTuens sore network connection has times out Make sure your network connection is active and your network setting are correct"
    Can some one walk me through or link me to a site or discussion so i can get this fixed

    I had the same problem several days with the AppStore. Software-downloads did not proceed, i tryed everything, shut down firewalls, change the host-file, disable proxy-server - no success.
    I have Kaspersky-Suite as firewall and anti-virus-software.
    Accidentially I find a solution:
    - select in iTunes at downloads "Proceed" of a download-entry . iTunes then connect with the server, so it is enough time to:
    - right-click on the windows-tray-symbol of Kaspersky and select "stop service" (something like that, i work with the german version).
    Now, surprise, the download proceed and starts working again. In case the download is freezing again:
    - Reactivea Kaspersky-service with right-click as described above, then deactive the serve again as i described.
    Seems this "Workaround" opens a door to an network-connection Kaspersky usually block by itself.
    Shutdown the firewall and finishing the Firewall-Software is a good idea, but you never know, which process is running in the background despite you shutdown everything possible...
    Hope the "solution" is working for you!

  • AEBS Connection Time Out - No Connection

    OS 10.5.4 or 10.5.5 tried both:
    Within the past couple of days my MacBook can no longer make a reliable connection to my AEBS. The MacBook sees about 8 other wireless networks in my neighborhood but at time, my AEBS is not even on the list of available networks. When it does appear, I can't connect it using the correct password. MacBook scans persistently, the number of networks change. I'd suspect my internal card but it's the AEBS that seems to be the most illusive for it find and hang onto. When I do connect, the transport rate is very sluggish and at times stalls out.
    Clean install twice yesterday.

    I appreciate the suggestions.
    In some ways, the problem began with the installation of OS 10.5.0 some time ago. It cleared up in 10.5.1.
    The base station has not changed in location for 4 years and no new wireless devices have been added in the house.
    It's one of those intermittent problems that has worsened. Often my AEBS is not even on the list of available networks. I CAN see the networks of what is probably my nearest neighbors. That list is not always the same either.
    When my AEBS shows up, I often cannot connect with it. When I do, transport is slow - if not non existent. Just now, I was able to both see it and connect. To see if I get transport, I'll have to send this message as I am in the "bridged" mode with a CAT5 cable running to the base station which is psychically connected to the hardwired router.
    It's an issue between my Intel Macbook and the AEBS circa 2004. Older iBook hanging around - no problems in finding or connecting.
    I've been traveling. Sometimes but not always logging into free WiFi at airports. This happened the same way last month after going across the US. Similar issue after returning from another cross country trip. I've deleted all but a couple of familiar networks. All the ones from airports are at least out of the list. If some public Wi-Fi drops a cookie on me and it takes some time to expire - my only guess.
    On return, things seem fine for a day or two - then the problem occurs.

  • Connection time out issue with wep security

    Does anyone know what is causing connection time out when connecting to WEP network.
    Password is correct.
    $ and x0 in front don't work.
    A solution would be great.
    Thanks

    Hello freestyleadamski. Welcome to the Apple Discussions!
    o The MacBooks back until late 2006 can handle 802.11n/a/b/g
    o The late 2006 MacBooks will require the "n"-enabler to support the same.
    o The mid-2006 MacBooks will only support 802.11b/g
    o The iPod Touch will only support 802.11b/g
    Which radio mode should I be using so I can connect my macbooks (I have one and my wife, hers is slightly older) and our ipod touch?
    In order of most to least recommended: 802.11n (802.11b/g compatible), 802.11g only, 802.11b/g compatible, & 802.11b only.

  • Internet connection times out when downloading update ios5. get to last 0.01 of date, says processing file and then says connection timed out. impossible. is there a fix?

    Internet connection times out when downloading update ios5. get to last 0.01 of data, says processing file and then says connection timed out. Is there a fix?
    I am using itunes 10.5. Update didnt work on last software but restore did work. Help

    After two days of attempts, Google & Apple searches, one Apple post stated to turn off all firewalls and virus software and keep trying since there were 6 gazillion people trying to update.  I have Windows 7 & Kaspersky and had to diable every single safety feature in Kaspersky as well as Firewalls and it finally allowed the download and update attempt. 
    Glancing at the forum, there appears to be numerous other problems with missing pictures, text problems etc after the IOS5 download but fortuneately, everything seems ok so far.  Good luck, it is frustrating!  Hattie47

  • My Mac book pro keeps saying "connection time out occurred" I have a 2011 pro with all the latest updates. It keeps doing it and it really annoys me! Please help!

    My Mac book pro keeps saying "connection time out occurred" I have a 2011 pro with all the latest updates. It keeps doing it and it really annoys me! Please help!

    Take each of the following steps that you haven't already tried, until the problem is resolved.
    Step 1
    Restart the router. Many problems are solved that way.
    Step 2
    Change the name of the wireless network, if applicable, to eliminate any characters other than letters and digits. You do that on your router via its web page, if it's not an Apple device, or via AirPort Utility, if it is an Apple device.
    Step 3
    From the menu bar, select
     ▹ System Preferences... ▹ Network
    Click the Assist me button and select Assistant. Follow the prompts.
    Step 4
    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Enter the name of your wireless network in the search box. You should have one or more "AirPort network password" items with that name. Make a note of the name and password, then delete all the items. Quit Keychain Access. Turn Wi-Fi off and then back on. Reconnect to the network.
    Step 5
    You may need to change other settings on the router. See the guidelines linked below:
    Recommended settings for Wi-Fi routers and access points
    Potential sources of interference
    Step 6
    Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.

  • Incompatible Security and Connection time out

    Ok, since installing leopard, I have not been able to connect to the stronger of my two wireless connections. The weak on, which is WPA connects fine, when I can get a strong enough signal. The second, WEP (I know, people say it's weak, but thats what I have.) But the password I put in, and it is the correct password, keeps saying that it is the wrong password when I do the "assist me" option.
    When I just try to connect using the drop down menu on the airport icon, it says "incompatible security" and once in a while, it will say "connection time out".
    I did a search, but none of the solutions here have worked. Any help would be greatly appreciated, because as a student I need the wireless connection for homework purposes, and I cant tolerate a weak connection.
    Please help
    Blake
    Message was edited by: blakewt

    Hi.
    I can't connect to WEP networks either with Leopard 10.5.1.
    It just says "incompatible Security". I've tried it for one hour without any luck.
    Why doesn't Apple realize that there are millions of WEP encrypted networks out there and that it is essential to be able to connect to them. (it worked with Tiger, didn't it?)
    Is there a knowledge base article out there what to do about it?
    I just can't walk to hotel managers and ask them to switch to WPA, especially if they don't have a clue how to do that and older windows computers won't be able to connect any more.
    Why a transparent menu bar but no way to connect to WEP networks?
    I'm very disappointed. Apple, fix this! (now!)
    Is there actually a way to get your money back for Leopard if this basic things don't work anymore?
    Thank you for any help.

  • Thunderbird email client times out making IMAP and POP3 connections to gmail and hotmail.

    After autoconfiguring several gmail accounts with Thunderbird, and then using them, they stopped working after I switched to Verizon High Speed DSL.  All of the accounts time out while trying to get email.   Non list an error.  While trying to auto configure a hotmail account, it failed during password loggin.
    Disabled Windows Firewall
    Disabled Norton Firewall
    Disabled modem-router firewall
    checked IMAP settings in Thunderbird.
    deleted and then reautoconfigured the accounts to reset the passwords.
    enabled IMAP manually in gmail and POP3
    checked SMTP ports and IMAP default port numbers
    checked for normal password
    checked for SSL/TSL text
    Checked with Verizon support who said that they don't help Thunderbird clients.
    Tried logging in manually to all of the accounts to make sure the passwords and usernames were correct ...works.
    help! "connection to server timed out"

    Not exactly the same, but I am pretty sure the fix will be the same. 
    give it a whirl and let us know.
    Solution for sending MS Outlook and SMTP e-mail through Verizon FIOS for GoDaddy e-mail
    The FIX...I had to log onto the xxxxxxxx(at)verizon.net e-mail account via the WEBMAIL version for Verizon.
    I then went to Options-->More Options on the top, right menu.
    Go to the Accounts menu on the left.
    Click Add Account button toward the top.
    I only entered information for Sending Mail.
         Account name (any name you like...I called it GoDaddy)
         From Name = my display name
         e-mail address = my GoDaddy e-mail address
         I then moved my cursor to the username field in the Receiving Mail just so my cursor wasn't in the e-mail address field anymore.
    Verizon couldn't even help me with this.  This should be a standard check for them whenever they receive a call for SMTP issues.  I think they are trying to get everyone to use their (at)verizon.net e-mail account as their primary account.  This will help them retain or gain future business.  I think it's bad for business overall.
    ==========
    Note the "Test Account Settings..." button failed on the test send of a message, but all other tests passed fine.  My messages are sent fine even with this part of the tests failing.
    The above is true for a lot of third party email providers (not programs but email providers) 

  • High number of "The connection has timed out" errors. Where do I set the time out period (variable and file name) - windows 7

    I usually use a wireless network at home and have very few time out problems with Firefox.
    I am travelling and using Optus Wireless broadband where the average ping to a site is 700+ms .
    I suspect that this is the cause of the high number of timeouts I am experiencing.
    Optus say there are no problems so I think I will have to set the timeout to a longer period.
    Please advise what variable name/s (and in which file) the timeout is set for LOADING PAGES.
    Thanks in anticipation.
    Greg Atkinson.
    By the way the same is happening in IE8
    and on many sites other than the Yahoo one below.
    ================Full Error Page ==============
    URL is http://au.mg4.mail.yahoo.com/dc/launch?.gx=1&.rand=81jkv757qfdqt
    =========================================
    The connection has timed out
    The server at au.mg4.mail.yahoo.com is taking too long to respond.
    * The site could be temporarily unavailable or too busy. Try again in a few moments.
    * If you are unable to load any pages, check your computer's network connection.
    * If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

    Having the same problem 4 out of 5 times I try to navigate to a new site I get the error "connection has timed out".
    My I phone works fine on the same wireless connection so it must be something to do with the computer. The problem occurs on IE, firefox, and google chrome.
    I too would like to know how to how to either fix this problem or failing that to extend the length of time before the connection times out (which is currently only about 5 seconds).
    Please help!
    Thanks in advance

  • I am having Macbook Pro, I have recently tried updating my operating system to OS Yosemite, but after that its giving problem in connecting to Wifi. The error is "Connection Time out Occurred". Its getting connected by Ethernet cable.

    I am having Macbook Pro, I have recently tried updating my operating system to OS Yosemite, but after that its giving problem in connecting to Wifi. The error is "Connection Time out Occurred". Its getting connected by Ethernet cable.

    Take each of the following steps that you haven't already tried, until the problem is resolved. Some of these steps are only possible if you have control over the wireless router.
    Step 1
    Turn Wi-Fi off and back on.
    Step 2
    Restart the router and the computer. Many problems are solved that way.
    Step 3
    Change the name of the wireless network, if applicable, to eliminate any characters other than letters and digits. You do that on your router via its web page, if it's not an Apple device, or via AirPort Utility, if it is an Apple device.
    Step 4
    Run the Network Diagnostics assistant.
    Step 5
    In OS X 10.8.4 or later, run Wireless Diagnostics and fix the issues listed in the Summary, if any.
    Step 6
    Back up all data before proceeding.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Enter the name of your wireless network in the search box. You should have one or more "AirPort network password" items with that name. Make a note of the name and password, then delete all the items. Quit Keychain Access. Turn Wi-Fi off and then back on. Reconnect to the network.
    Step 7
    You may need to change other settings on the router. See the guidelines linked below:
    Recommended settings for Wi-Fi routers and access points
    Potential sources of interference
    Step 8
    Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.
    Step 9
    Reset the System Management Controller (SMC).

  • Connection Time out with StockServlet

    Hi,
    I just followed the instructions on weblogic website to compile and deploy
    the XML over HTTP example. Every thing compiled fine and I reused the
    statefulSession bean as delivered by weblogic.
    After entering all the data at the prompts for StoackClient, I get the error
    on server:
    "Connection rejected: 'Login timed out after: '5000' ms on socket:
    'Socket[addr=127.0.0.1/127.0.0.1,port=2207,localport=7001]''
    Any ideas about how can I get it to work??
    Thanks,
    Anoop

    Update~
    The connection time-out issue happen with Clear Quest any version.
    thanks

Maybe you are looking for

  • Won't show custom project template

    Hi, I'm trying to create the simplest possible project template, just to get an idea how it works according to directions in this document. It doesn't appear in the create project dialog. I'm probably missing something obvious, can anyone help?  The

  • Runtime error when launching Acrobat 9 or Reader 9

    Reference: KB404597 According to the information in the referenced KB article, this is a known problem with Adobe Systems. The suggested "workaround" didn't work. As it is now, I cannot open any PDF files, whether from Adobe Reader, within e-mails, o

  • Sharing library between computer over a network

    Hi, I'm trying to share 2 different ip libraries on 2 different computers. But one has ip4 and the other one has ip6. Do both iPhoto have to be of the same level (ip4 vs ip6) to be able to share? Reason is that I see the icon of the other library on

  • ASCII Character Processing in ABAP

    Hi, I have to remove the special characters (+/-, Ø) from the Text and process the same with out the Special Characters in it. The General requirement is that, I need to remove the special characters, which fall between the ASCII Values 32 to 128. Is

  • Socket in Palm OS with MIDP

    Hallo, Has anyone create a Socket with MIDP ? If I execute Connector.open("socket://MyServer:32123"); I receive a IOException without any message. What make I wrong? Volker