Validate the availability of the server with utl_tcp

Hello

I am using plsql code to process a request and return a URL valid (a kind of load balancing between two hosts). For example, a request for an Oracle Forms Server and the database could return one of these two servers: http://host1.domain.local/forms/frmservlet?config=x and http://host2.domain.local/forms/frmservlet?config=x. The thing is I need to validate that the host is accessible before going back to the user.

I tried with utl_tcp.open_connection and UTL_HTTP.begin_request (which I guess is using utl_tcp), but if a server is down the timer will be exceeded only after 20 seconds, which is average in time for the user. Is it possible in PL/SQL to open a connection and timeout after 2 or 3 seconds or do a ping to a server? If this isn't the case, I think I'll create a JAVA class.


Thank you

Francis

Is it possible in PL/SQL to open a connection and timeout after 2 or 3 seconds or do a ping to a server? If this isn't the case, I think I'll create a JAVA class.

Probably, you found this link yourself?

Tags: Database

Similar Questions

  • I finished the installation of Sharepoint 2010 and he is told to use the username and password you loged on the server with does not work. What should I do to access the sharepoint URL?

    I finished the installation of Sharepoint 2010 and went through the Setup Wizard. It is said to use the username and password you loged on the server with does not work. What should I do to access the sharepoint URL?

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Forum. You can follow the link to your question:
    http://social.technet.Microsoft.com/forums/en-us/sharepoint2010general/threads

  • Unable to connect to the server with ttisqlcs, failed to retrieve IP address of the system

    Please help me, I have installed timesten server and client on different machines in the LAN, but with the same user and group - ttadmin:ttgroup

    When I tried to connect to the server with ttisqlcs - connStr "DSN = sampleCS"

    The result gave me errors like below

    Connect "DSN is sampleCS ';.

    S1000: Unable to retrieve the IP address of the system. System error:-2

    The command failed.

    Fact.

    The related part in sys.ttconnect.ini is defined as below

    [192.168.0.206]

    Description = TimesTen Server

    Adresse_reseau = 192.168.0.206

    PORT_TCP = 53397

    And the sys.odbc.ini

    [ODBC data sources]

    sampleCS = TimesTen 11.2.2 Client Driver

    [sampleCS]

    TTC_SERVER = 192.168.0.206

    TTC_SERVER_DSN = nredb_ds

    That wants it mean by 'recovering intellectual '?

    He is trying to resolve IP by hostname even when I already gave him the ip address?

    Either way, I can ping 192.168.0.206 and telnet to port 53397 without problem.

    Please help me, thanks ~

    It does not matter that they are VMs (I use between virtual machines all the time), but "Networking" of VM, of course, must be set up correctly. But if you can ping and telnet between VMS so that shouldn't be a problem.

    On the client computer, you have an entry in/etc/hosts for the client machines and the server? Even on the server? Please check that and add entries if they are not there and see if it helps. If not then we need to find the client using 'strace' to see which system call fails. Please try and after the release (or at least the last part that leads to failure).

    Thank you

    Chris

  • Help! HTML updates the server with remote html.1on

    Can help you with this? My html and jpeg files are on the remote server OK. But when I save the changes to the files that they not change or update a new file instead is done on the server with the extension. HTML.1 then I see these two files in the browser. Is this a problem with dreamweaver or my FTP server of the ISP? Here are two files. Any suggestion is appreciated.
    Thank you, Jerry.

    HTML link - the first file uploaded to the server which is not changed / removed from the test server

    link of test html.1 - file that appears on the remote server

    Try to download files using another FTP like IE, WS_FTP client
    FileZilla, to see if the problem is the server or DW:

    http://www.Adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14834#otherclient

    --
    David Alcala
    Adobe technical support

  • integrated macOS Sierra Cisco IPsec VPN does not work anymore (impossible to validate the server certificate)

    Hello

    I just upgraded to macOS Sierra and built-in Cisco IPsec VPN no longer works. When you try to connect, I get a "cannot validate the certificate of the server. "Check your settings and try to reconnect" error message. I use Cisco ASA with self-signed certificates and everything worked fine with previous versions of OS X.

    Please help me, I need my VPN Thx a lot

    I am having the same problem with StrongSwan and help cert signed with the channel to complete certificates included in the pkcs12 file imported to the keychain. It was working properly in El Capitan, but now broken in the Sierra.

  • Trying to understand HT203325: cannot connect to the server with the account of the user of a network

    It is a kind of home network issues.  Basically what I want to do is set up a unified environment with the profiles of school boards.  I have a couple of iMacs, a couple of the MacBook and some iPods, iPads and iPhones.

    I would like to run the server on one of my iMac, but this note from Apple shows that I'm having problems.  I don't have a machine that I can run like a dedicated server, I need all machines to be accessible by all users of the Open Directory.

    More I read the note, less I seem to understand.  Forgive me, I'm not an IT professional.  I put in place quite a while Apple (10.4 & 10.5) servers and we had no problem with network users that connect on the real server.

    It was that home directories have been shared with AFP or NFS.  I thought that I saw that they are now shared with AFP or SMB.  Note trying to tell if the server is editing on the one hand, that no other client can mount and access a share until the server has removed it?  This seems to contradict the network share point.

    Is there anyway to overcome this problem?  I tried google, but I see a lot of messages that point to the note from Apple, but not really one that helps solve the problem.  Could I run the server on the two iMacs, put on an OD and share the home directories of the other?  So I think that it would be the base directory is never hosted on the same computer where the authentication takes place.

    Any clarification would be appreciated.

    Thank you

    Brett

    PS: My Mac is fairly new, so I can update all 10.11.2 & I didn't buy server, so I would get the most recent and for that, too.

    Try it.   But I wouldn't expect that you are trying to do will be reliable, and I would not recommend using a server as an interactive workstation - the two tasks are usually in opposite directions.

    If you want to store shared files, that activate the OS X client, or install and use a NAS box.   There is no server need, if networked storage is the goal.

    Running a server means implementation of DNS services locally and many other tasks.   It was possible to get out for the most part without doing that, but 10.5 started to get flaky without services local DNS and security and network authentication are now commonplace, and this does not at all well without local DNS.

    Servers should also be available at all times, and - as often happens - shared systems may be rather less stable that software is modified, the systems are closed down, or otherwise.

    NFS is available on OS X for several years, and some people have manually configured access remotely via NFS.   It is much more common to see the AFP and increasingly used CIFS/SMB, however.

    Of HT203325: users can be local, as is typical of most of the OS X client configurations, or they can be so-called network users - users with their connection directory located elsewhere and often with access and the same password on multiple systems.   If users are configured as users of the server network, then do not allow users to connect directly to the server.   Who - is the server that serves files and directories of itself to itself - is not reliable.  Not in this technical note, and not by what I saw.

  • Not able to connect to the server with modem 56 k

    I try to connect my Tecra via modem 56 k Internet.
    Also, I tried with another computer laptop with the same details and that worked.
    But when I try it on my Tecra I get an error that is not able to connect to the server.

    So I think that it is a parameter that is not defined correctly for the modem.
    (If you compare it to another laptop all parameters are the same as windows).

    Thanks in advance,

    Theo

    Hello Theo

    Please remove the Dial-up connections all created and after that, remove the modem from Device Manager. Restart the device and initially ensure that the modem is properly configured (query modem Agic under Diagnostics). I put t know which Tecra you have, but many of them have preinstalled TOSHIBA PC Diagnostic Tool. With this tool, you can see all the equipment including modem.

    After having it set up new Dial-up connection and check the functionality. Be sure to wait for the tone option is disabled.

  • Block the ip address in the server with the command cmd win

    Hello

    In win server how can I block IP with the command cmd?
    Thank you

    The server gurus hang out more in the TechNet forums:

    http://social.technet.Microsoft.com/forums/en-us/categories

    Here, we help with questions and problems of security.

  • Change my Win 2008 and SQL Server on the server with SATA drives to the server with SAS disks

    I need to change my disks on my HP Server. Disco SATA Raid 1, I have to pass it to a server with SAS disks

    I haver Windows 2008 Server 64-bit installed SQL

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited to the audience on MSDN. Please post your question in the below link:

    http://social.msdn.Microsoft.com/forums/en/category/SQLServer

  • New vSphere Windows 2008 R2 Server fails, the installation of the server with error 1920

    Band new installation of Windows Server 2008 R2 SP1 with all updates.

    Try installing vSphere CU2 5.5 Server build 2183112.

    Try the 'Easy install' or 'Custom Installation' I got the following error when the Single Sign-On is trying to settle.

    "Error 1920. Service "VMware Directory Service" (VMWareDirectoryService) failed to start. Check that you have sufficient privileges to start system services. »

    The event log shows this is not much help.

    "VMware Directory Service service failed to start due to the following error:

    Service has failed to demand launch or timely control.

    I have re-uploaded the iso with the same result and even try to install CU1 but who also failed with the same error.

    I tried http://kb.vmware.com/kb/2069695 with the same failed results.

    Setup log is attached.

    Problem has been fixed.

    I hope this solution will help others also (perhaps through a keyword to Google/Bing search)

    Have no Dell Host Integration Toolkit (I 4.7.1) installed when you perform an installation/upgrade of Single Sign-On. Once the VMWare software install then you can install the Dell Host Integration Toolkit.

    According to VMWare Support, this is a known problem (internal documentation) and want to resolve it shortly.

  • Problem when try to use the connection to the server with Viewplanner view

    Hello

    When I try to use a profile of the workload with the view connection server, I have the following on the viewplanner device error message.

    Exception in thread thread 2:

    Traceback (most recent call modified)

    File 'usr/lib/phyton2.6/threading.py' line 532, in __bootstrap_innerself.run)

    File "/ tmp/ViewPlanner/web_interface.py", line166, run

    File "/ tmp/ViewPlanner/view_interface.py", line 308, addGroupEntitlement

    AttributeError: 'NoneType' object has no attribute 'callRemote '.

    On the view connection server, I see the following error message repeated every minute

    Starting the Agent of ViewPlanner service DEBUGGING

    INFORMATION of starting the server twisted on the machine to harness send commands...

    Any ideas?

    Kind regards

    Christian

    Have you applied the patch? You may have replaced the __init__.py file in the directory c:\view-python-apis\mfw instead of c:\view-python-apis\mfw\channel directory? You can take the original packaging of the instillation file and replace that?

  • HTTPS connection to the server with the host name which has its IP address

    Hi all

    I work in a development of the solution where a server application is running in a machine and hosts of Application Service SOAP over HTTPS. The server has the certificates for its IP address. My client application tries to use the SOAP Service; but when I connect to the Application Server using the HOST name in the URL, I get the SSLException indicating that the HOST name does not match name the object.

    If I use the IP address in the URL, it works well - but I do not like the server application can move to different IP dynamiccaly - if you are using DNS is our solution to hide this complexcity from client applications.

    Help, please.

    Kind regards
    Kaja

    the HOST name does not match name the object.

    The host name does not have the name of the topic in the server certificate. He agrees with host.domain name.

  • Unable to connect to the server with Smart View essbase

    Hello

    I'm having trobules connection Smart View to make ad hoc analyses, but perfectly I could establish a connection with planning and navigate web forms in Excel.

    The address that I use to connect to Essbase is: http:// < server >: 19000/aps/SmartView and planning url is http:// < server >: 19000/HyperionPlanning/SmartView

    I have already used these URLS in another server with the version 11.1.2 but now that I'm trying to connect to a server with v11.1.1.3 I can't. Whenever I connect to planning to see forms a prompt appears with the message saying that "I connect to a server with an earlier version" but I could work perfectly with the forms. When I connect to essbase, I can see the apps but I can't just do any analysis adhoc.

    Could someone has an idea of what could happen?

    Thanks in advance

    Published by: user9143843 on January 13, 2011 04:58

    SmartView 11.1.2 is not compatible with Essbase 11.1.1.3.

    Reference - http://www.oracle.com/technology/software/products/ias/files/fusion_certification.html

    HTH-
    Jasmine.

  • The only contents is not on the server with FlashHelpPro

    Can I publish my projects on the server successfully, but when I view my FlashHelp projects, the table of contents is not be loaded with projects for some reason any. Clues?

    I solved it with a bit of luck. I opened RoboHelp Server and you click it, the project view. When my project opened in the Web browser, I noticed that, for some strange reason, there was a lot of waste being brought in after my file .htm extension. I removed the Junk after the address and the Table of contents appeared as if by magic. I have no idea where the Junk at the end comes from or how to change it in the future... but for now, it's a solution practice for me. YAY!

  • use the enterprise manager console on the server with 2 instances

    Hello

    I had a server with 2 databases (DB1, DB2), I have 2 windows services (begun boath): OracleDBConsoleDB1 & OracleDBConsoleDB2

    My problem is that I have only 1 url to connect to 1 db (in my case always DB1)

    http://servername:1158/em/console

    is it possible to type the SID in the url, so I can use the company for my 2nd db console?

    (the two db is 11G)

    Kind regards

    O

    orapunk.com wrote:
    Hello

    I had a server with 2 databases (DB1, DB2), I have 2 windows services (begun boath): OracleDBConsoleDB1 & OracleDBConsoleDB2

    My problem is that I have only 1 url to connect to 1 db (in my case always DB1)

    http://servername:1158/em/console

    is it possible to type the SID in the url, so I can use the company for my 2nd db console?

    (the two db is 11G)

    Kind regards

    O

    As suggested at, but not directly stated by others, a given instance of dbcontrol will work with a database. However, you can still have multiple databases on one host, and each database has its own dbcontrol. Differentiation will be each console runs on a different port, and this number is port part of the url that you use to reach the console. The url, with port, is reported when the dbcontrol is configured, and in my view, it is also reported to start the console.

Maybe you are looking for

  • SE chat history of load on a new computer?

    I will travel in a few weeks, and unfortunately I can't take my computer with me, all the cats in my Skype where currently. I could use my phone, of course... But I prefer the desktop version instead. If any of my friends who will be going also, coul

  • Problema con el DAQmxBase Create Channel

    Hola, soy nuevo LabView en y como are existential veran tengo problemas con el. Ayudenme a smear of ellos para seguir creciendo. Estoy intentando realize no generador señales in LabView, utilizando una placa DAQ: NI USB-6009. Aquí el programa than I

  • Error 0X80072EFD during the update to Windows Defender

    Original title: code0x80072efdI get this error message when trying to get the Defender to update

  • Bridges 2 1552 for high availability using

    Switches: 3560 routers: 2811 AP: 1552e We have 4 1552 AP we would like for installation in a point-to-point environment. Currently, they are light but would make us independent for this scenario, unless there is a feature in the controller that would

  • I had to buy a new disc for Windows 7 I have install all previous versions of Windows?

    I have a C drive which is now too small, and I need to buy a hard drive much more. I am running Windows 7 64 bit (complete edition). I've been buying upgrades from Windows 2000, each new version upgrade. Is it possible to install Windows 7 without fi