HOW DO I KNOW IF THE DATABASE SERVER IS RUNNING?

Hi guys,
How do i write a java code to determine if my database server(s) (eg : Oracle or mySQL or postGRESQL, msSQL etc) are (is) running.
I want to know how to code in java to determine if a certain database server is running when i start the java application .
Thanks for your help

Acquire a connection. If it doesn't throw a SQLException, then you can be certain that the database is up and running.

Similar Messages

  • How to find what port the admin server is running

    how can I find out what port the admin server is running on a server?
    thanks,

    Hi
    Go to your domain root folder/config and open config.xml file in any editor. Search for the name of the admin server which is typically like AdminServer and under this tag see if you have a tag by name <listen-port>. If yes, then you should see the port number. If not, it means it is running at default port of 7001.
    If you have admin access, i hope when you login you will be giving url like http://adminhost:adminport/console. Now this adminport is the port on which admin server is running. If not, then check config.xml file.
    Thanks
    Ravi Jegga

  • How to know whether the database is using SPFILE or PFILE

    How can i know whether the database is using SPFILE or PFILE.
    There are both initSID.ora and spfileSID.ora in default location.
    The registry entry for ORA_SID_PFILE is C:\oracle\ora90\database\initSID.ora
    Also, if it is using SPFILE than how can i modify the non dynamic parameters when the database is in the close state.
    Manu

    If you do not specify a path of a pfile , when you actually startup a database , then it will be use your pfile , if you specify a path explicitly fot a pfile , then it'll use your pfile.
    Also, if it is using SPFILE than how can i modify the non dynamic parameters when the database is in the close state.sql > create spfile from pfile ;
    the spfile will syncronise with pfile .
    Hare krishna
    Alok

  • How to know if the radius server is working through APs?...

    Hello guys,
         I have the next escenario, 9 APs 1142 installed that at the same time they connect a one RADIUS server to secure the network,
         (Wireless clints -- APs -- RADIUS server -- Aplications/Internet )
         Now, we have to add another RADIUS Server, this is in case of the primary  server falls, the other one comes in action, the configuration
         has been made, however has not bee tested, we can not  shut down the primary RADIUS server this is because it
         cointains more applications, one way that could test if the backup radious server si working, is to delete of the configuration the primary
         radious server, how can I know if the backup server is working? exist one command in the IOS of AP to know if the RADIOUS server is working??..
         Regards!

    if this is an IOS setup you can use the test command:
    test aaa group radius blahblah blahblah new-code
    **blahblah being he username and password you want to send.  It doesn't have to be valid, just need a response.
    HTH,
    Steve
    Please remember to rate helpful posts or to mark the question as answered so that it can be found later.

  • How to install and configure the SQL Server

    Hi All,
    We have to install SQL server in the new server because the old server is crash and need to upgrade. Please advice How to install and configure the SQL Server to run SAP Business One 8.8 successfully and what part we do have to give attention.
    Kind Rgds,
    Steve

    Hi,
    Try this solution:
    The step-by-step installation guide can be found in the documentation included in the installation media. (\Documentation\SystemSetup\AdministratorGuide_SQL.pdf).
    Below are some important parts that you should pay attention to during the Installation process.
    Resolution
    Collation setting: It must be set as SQL_Latin1_General_CP1_CI_AS,even the company DB is non-english location. The company DB will be created as corresponding collation settings automatically.
    Instance and TCP Port : It is recommended to run SBO on default instance and TCP port 1433. Otherwise,some optional components such as B1i may not work properly.
    Native Client: SQL Server Native Client should be installed on every client machine to enable the ODBC connection to DB server.
    Rgds,

  • How to get Database name/IP address of the database server from forms10g

    Hi everybody,
    How do I get the database instance name and IP address of the database server?
    I am using Foms 10g and the database server is Oracle 10g.
    Sukanta

    Dear...........
    Plz use this code
    select SYS_CONTEXT('USERENV', 'IP_ADDRESS', 15) ipaddr from dual;
    SELECT utl_inaddr.get_host_address IP ,UTL_INADDR.get_host_name NAME FROM dual;
    select SYS_CONTEXT('USERENV', 'HOST') HELLO from dual;
    select SYS_CONTEXT('USERENV', 'TERMINAL') HELLO from dual;
    select SYS_CONTEXT('USERENV', 'OS_USER') HELLO from dual;
    SELECT SYS_CONTEXT ('USERENV', 'SESSION_USER') FROM DUAL;
    SELECT SYS_CONTEXT ('USERENV', 'DB_UNIQUE_NAME') FROM DUAL;
    thx.

  • How much documents are therein the database maxdb???

    Hi,
    My boss wants to know how many documents are in the database......how can I know???
    Thanks in advance!!
    Nerea.

    Hello Nerea,
    first of all it would be good to know which application you are using.
    Are you talking about a content server?
    We could tell you how many rows are in which table - but I'm not sure if that corresponds to your documents.
    It might be best to check with the application, how and where they store these docments.
    Regards,
    Melanie

  • How can I know if the Oracle software is  64-bit or 32-bit

    Hi all,
    How can I know if the installed Oracle software is 64-bit or 32-bit.Actually I'm using an oracle database 10.0.2 on a Solaris 10.
    Cheers.

    Dear user11191992,
    Please check below link;
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10820/dynviews_3120.htm#REFRN30296
    Here is for the release number;
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/dba004.htm#ADMIN11039
    Another way is to enter the database with;
    # sqlplus / as sysdbaHope That Helps.
    Ogan

  • Sending Mail Notification From the database server

    Hi All,
    I want to send the mail notification to any email id from the database server.
    I used the in built Package UTL_SMTP(pp_to,pp_from,pp_subject,pp_hostname) but i didn't got the success. Actually i dont know how and what parameters has to pass to this package .
    It will great help if some body helps with the an example.
    Thanks in Advance

    917574 wrote:
    I want to send the mail notification to any email id from the database server.Oracle version?
    The easiest is to use UTL_MAIL - available from 10g onwards. If you're on 11g, you also need an ACL (Access Control List) entry to allow PL/SQL code to step outside the database and connect to an external server.
    UTL_MAIL uses UTL_SMTP. You can use UTL_SMTP directly, but then you need to understand the SMTP protocol and how to correctly construct Multipurpose Internet Mail Extensions (MIME) e-mail bodies. Not difficult - but something that many developers seem insistent to remain ignorant about.

  • How can I find out the mail server from email address?

    Hi:
    How can I find out the mail server from email address?
    for example: If I know the email address is [email protected],
    how to find the pop3 and smtp mail server?
    THANK YOU

    You can't tell by the email address since you can pretty much put whatever you want in there (especially if the SMTP server is not filtering anything).
    The header may be able to tell you something. There is a Received header value which looks like it has the routing information although I am not sure if this is a complete trace or just the last hop the message took.
    Sean

  • How to get log information from database server?

    Oracle 9.2 in Unix
    we got blocking error in the production database last midnight for 40 min and nothing was being processed during that time which delayed our production night batch process. Then it was gone after 40min. I like to know what was happening during that time in the database. My question is where I can find error in the database server? In bdump? Appreciate any ideas.
    Thanks
    S.

    If you have jobs regularly collect statspack report, then it will be easier to troubleshoot. You can just pull the report from the time period.
    A couple of things you can check if there's any storage issue during the time, like some backup or other jobs running taken all OS storage, so Oracle hung because no space to archive logs. Usually this will log errors in alert.log but if bdump destination also full, the error will not be logged.
    Check OS activity during the time frame, what's CPU and IO activity. See if you have sar installed and configured
    check OS message file.

  • How to find out about the SMTP Server

    Hi,
    I have been trying to configure groupware in the portal - in particular I want to enable the sending of emails through the portal. I already have a how-to-guide that that seems to explain the steps quite well. However, it mentions that I need to know the SMTP Server of the email. Can you tell me how to find out about the SMTP Server? Where do I need to look for the name of it?
    Thank you and regards,
    Katharina

    Hi Katharina,
    you need the SMTP server of your company. This means you can't look for it in the portal, but have to ask the responsible person in your company.
    Kind regards,
    dominik

  • How do I tell if the database engine is installed?

    I'm using SS 2008 R2. I don't think the database engine was installed and I would like to check this. 
    How do I tell if the database engine is installed?

    I'm quite surprised that with all the answers you have been given, nobody has noticed the obvious. In actual fact everyone is sorta right. The answer to your question of whether you have the db engine installed is ...yes an no ;)
    You do not have the traditional engine installed, but you do have sqlexpress localdb.
    For more info check out:
    http://technet.microsoft.com/en-us/library/hh510202.aspx
    and
    http://geekswithblogs.net/krislankford/archive/2012/06/19/sql-server-2012-express-localdb-how-to-get-started.aspx
    Im not a big fan of it but it does what it says on the tin...
    Regards,
    Mark Broadbent
    Contact me through twitter |
    blog | sqlcloud
    Please click "Propose as answer" if a post solves your problem
    or/and vote the post up if it's been helpful.
    Want professional SQL Server High Availability Training? Click here

  • How can I know about the latest updates / versions which when available for all the CC products, without having to install and check it with the Desktoip Creative Cloud Application ?

    How can I know about the latest updates / versions which when available for all the CC products, without having to install and check it with the Desktoip Creative Cloud Application ?

    Thanks for looking into this Jeff!
    I work with an Inventory module software and is responsible for software detection across several computers. Once an updated version comes up, I update our database with latest software details to get it detected if installed on any machines.
    The problem tracking updates with Desktop Creative Cloud Software are;
    1)We have to have it installed with the CC applications in-order to get the notification of the latest updates and have to check everyday.
    2)Only relates to the latest updates, so in-between we may miss a prior update unknowingly.Hence, the remote machines having those updates may not get  detected with the software version update which would create problem in reporting.
    3)For all CC products, there is no base or previous updates available for installation if we miss one.
    I went through the Adobe Products Update pages [Product updates] which holds good when it comes to Acrobat and Reader software which I follow to track down any newer updates but this is inconsistent when it comes to CC products like in After Effects CC, Dreamweaver CC etc...
    So overall to be very specific, is there any one channel I can follow to get the notifications only for the updates on CC products and then may be I can rely on Desktop Creative Cloud for installation if not available anywhere like in product update pages of Adobe ?
    Regards,
    Subrat

  • Taking perriodical backup of the database server

    Hi,
    I am new to DBA activities.
    I am working on 11.2.0.1.0 version in Oracle.
    My database keeps on growing so as a security measure, I am asked to take backup of the databse periodically without shuttingdown this databse. Since this task has to be done periodically, I have to schedule the job for this task.? I know how to take export of the database.. but not sure about the periodical backups... Now sure how to proceed on the activity, so please guide me on the same.
    Thanks

    950814 wrote:
    Hi,
    I am new to DBA activities.
    I am working on 11.2.0.1.0 version in Oracle.
    My database keeps on growing so as a security measure, I am asked to take backup of the databse periodically without shuttingdown this databse. Since this task has to be done periodically, I have to schedule the job for this task.? I know how to take export of the database.. but not sure about the periodical backups... Now sure how to proceed on the activity, so please guide me on the same.
    ThanksWhy you close the database while taking backups? Use RMAN and take online backups. Schedule it using either DB or scheduler
    Check http://tahiti.oracle.com for more information
    You can also check my Backup and Recovery video tutorials and see how RMAN works
    http://kamranagayev.com/oracle-video-tutorials/
    Cheers

Maybe you are looking for