How to find whether remote database is up or not (connected via dblink)

Hi,
I am using dblink to connect Biz database from Dev database.(Biz, Dev - database names)
Running dbms job using the dblink from the Dev database to update data on Biz database...
Problem is dbms job should run if and only if the Biz database is up for which i created the dblink...
1) How to make sure or implement the check to find whether the Biz is database is up or not in Pl/sql or sql...
2) How to reschedule the dbms jobs once the database is up
pls suggest me how to find whether the database is up or not b4 running the dbms job?
Using- Oracle 10g

The only way to know whether the remote database is up (and whether the network between the two databases is up and whether the remote database's listener is up and whether the password configured in the database link is correct and whether the local TNS alias is correct, etc) would be to actually run a query against the remote database over the database link. In other words, the way to figure out whether the link is up is to let the job run and catch & handle exceptions when there are problems.
By default, a job scheduled via DBMS_JOB will automatically reschedule itself if there is an unhandled exception by geometrically backing off (it waits 1 minute after the first failure, 2 minutes after the second, 4, 8, 16, 32 minutes, etc until it's marked as broken after 16 failures). You could, of course, catch appropriate exceptions and handle them in a reasonable fashion and manually reschedule jobs at intervals that make more sense for your particular job.
Justin

Similar Messages

  • How to find whether the cookies are enabled or not

    Hi All,
    Please suggest me, while sending the first request only how to find whether the cookies are enabled or not.
    thanks.

    you could use a servlet, write a cookie and then try to read it, if it's read then it's enabled else not.

  • How to find whether an application is installed or not

    Is there any way to find whether an application is installed or not
    and the path of the installed path
    I got that with executing reg query from my java aplication but for that
    reg tool should be installed ..
    Is there any way to get without that

    You can use an <installer-desc> to invoke
    a class that asks the user where it is, and
    if they do not know, or do not have it, it can
    be installed at the time (assuming you can
    provide an installer, appropriate for their OS).

  • How to find whether the tables are needed or not?

    Friends,
    Difficult situation for me......
    OS: RHEL AS 3.0
    DB: Oracle 9i R2
    I was taking table inventory.....
    i saw many tables starting with SMP..... and EVT.....Nearly 50 tables.
    some are...
    EVT_HISTORY
    EVT_DEST_PROFILE
    EVT_CARRIER_CONFIGURATION
    SMP_USER_DETAILS
    SMP_UPDATESERVICES_CALLED_
    SMP_SERVICE_ITEM_
    SMP_SERVICE_GROUP_ITEM_
    SMP_SERVICE_GROUP_DEFN_
    SMP_SERVICE_DATA_
    SMP_LONG_TEXT_
    SMP_JOB_TASK_INSTANCE_
    SMP_JOB_LIBRARY_
    SMP_JOB_INSTANCE_
    SMP_JOB_HISTORY_
    SMP_JOB_EVENTLIST_
    SMP_JOB_
    SMP_EBU_SAVED_JOB_
    SMP_EBU_ACTIVE_JOB_
    SMP_CREDENTIALS$
    SMP_BRM_TEMP_SCRIPTS_
    SMP_BRM_SAVED_JOB_
    SMP_BRM_RC_CONNECT_STRING_
    SMP_BRM_DEFAULT_CHANNEL_
    SMP_BRM_CHANNEL_DEVICE_
    SMP_BRM_ACTIVE_JOB_
    SMP_AUTO_DISCOVERY_PARMS_
    SMP_AUTO_DISCOVERY_ITEM_
    SMP_AD_PARMS_
    SMP_AD_NODES_
    SMP_AD_DISCOVERED_NODES_
    SMP_AD_ADDRESSES_
    more.........
    Nobody knows whats the table is for....
    Actually we were working with oracle 7.3 upto 2004. On 2004 we upgraded to 9iR2. May be the DBA in that time made some mistake.... i think so....thats why all these tables are still here....
    I was not in the picture during that time.
    Now my question is how can i know whether this table is necessary or not. I asked the developers here they said they are not using these tables. But my manager is afraid to delete these tables.
    now what should i do?

    Hi,
    Yet another request to use my crystal ball.
    We had one pc which is having oracle 9i enterprise manager configured(windows 2000) only to connect the db.
    This remembers me of the Gospel of St. Luke, chapter 2, where it is stated,
    'and they found the child in the manger'.
    This resulted a Jewish theologian to remark: 'The manger? Well, so that must have been their own manger'
    So what does 'the' db mean? The Linux one? Or a separate on Win2000?
    It is quite possible to manage a Linux database using OEM on Win2000, with OMS on Win2000.
    'But our server is not having enterprise manager'. Yet another riddle. Which server? There seem to be at least two.
    1 Now if I drop these tables, will I be able to connect to our database using the windows2k pc through Enterprise Manager?
    Yes, but only in standalone mode, and you can't use OEM alerts, and jobs anymore. You would be better off using Sqldeveloper, as OEM Sql worksheet is a nightmare.
    2 That is your decision.
    3
    oemctl ping oms
    will check whether you have an Oracle Management Server running.
    You already seem to have the Enterprise Manager Repository, so you must have OMS running somewhere. (Why install the repository, if you don't use it)
    Sybrand Bakker
    Senior Oracle DBA

  • How to find whether a service is webreporting or not?

    Hi Experts,
    We are upgrading our system from 4.7 to ECC 6.0.
    The ITS services in the system needs to be changed so that it can run with integrated ITS. But as webreporting is not supported by integrated ITS I would like to know whether an ITS service is webreporting or not.
    How can I know that a service is webreporting or not?
    Thanks & Regards,
    Soumya.

    same as explained in the following link
    Flow logic of ITS
    where check parameter value of  'sapxgwfc' for ~XGATEWAY for all webrfcs

  • How to find whether the patch is applied or not in SOA?

    Dear Legends,
    I need to find a given patch(13615085) is applied or not in SOA Environment(RAC). I do not have O/s Level access, so I cannot issue Opatch lsinventory.
    I tried
    select * from dba_registry_history; - nothing is displayed.
    Thanks in Advance,
    Karthik

    To check patchs installed:
    From Opatch
    $ORACLE_HOME/Opatch> opatch lsinventory
    From sql
    select * from dba_registry_history;
    *To execute Opatch you don't need root privileges, you can also do it from oracle user
    If you don't see anything executing "select * from dba_registry_history;" You haven't any patch installed.

  • How to find whether an Invoice is been posted for a particular PO

    Hi,
    How to find whether an Invoice is been posted for a particular PO.
    I have a scenario where I fetch data into an internal table T_CDHDR(It has PO and other details). For each and every entry(PO) in that internal table I have to see whether an Invoice is been posted or not. They told to use <b>EKBE(Purchasing document history)</b> table. But, I don't know which field to check for and based on what conditions.
    Can someone help me with sample code or some valuable inputs.
    Thanks in advance.
    Regards,
    Paddu.

    HI,
    TABLE IS RIGHT.
    IN THAT TABLE FOR THE FIELD BEWTP CHECK WHETHER ENTRY IS "Q".
    Q STANDS FOR IR-L THAT MEANS INVOICE IS DONE.
    ON THE SELECTION SCREEN OF EKBE TABLE ENTER THE PO NUMBER.
    THEN CHECK WHETHER IT HAS ENTRY FOR BEWTP 'Q'.
    YOU CAN CROSS-CHECK THIS DATA FROM TABLE WITH THAT IN ACTUAL PO IN T.CODE - ME23N.
    ENTER PO NUMBER ,THEN IN ITEM DETAILS , IN HISTORY TAB SEE FOR THAT INVOICE NO.

  • Hi guys,Explain how to find whether the user request is dialog or bc ...

    how to find whether the user request is dialog or bc or some other wp and where we can see that ?

    Hello Damodar,
    You can find out that in SM50.
    However one piece of advice. I have noticed that you are raising lots of questions about very basic questions. Either you new to SAP or dont know anything about SAP Basis and want to get in this area. Or else you are preparing for some interview. In either of these cases expecting solutions given at SDN are not going to be of much help. Better read yorself in SAP Help as most people do. SDN should not be overly used for such purposes. Basic questions are welcome but you want to learn SAP through SDN !!!
    Regards.
    Ruchit.

  • How to find whether MIRO is done for a PO

    Hi All,
    Is there any indicator attached to POs that indicates whether MIRO is done for that PO?
    I mean after PO creation in ME21N -> GR in MIGO -> Excise (if applicable) and -> MIRO... how to find whether MIRO is done for a particular PO?
    Helpful tips will be gratefully rewarded...
    Regards,
    Karthik

    See if an entry exist in EKBE for the PO Number and its items.
    The complete process though is, to find the GR Quantity for each PO Item and see if it matches with the PO Item quantity.
      SELECT EBELN
             EBELP
             MENGE
             LOEKZ
        FROM EKPO
        INTO TABLE LT_EKPO
       WHERE EBELN = P_EBELN.
      IF NOT LT_EKPO[] IS INITIAL.
        SELECT EBELN
               EBELP
               MENGE
               BEWTP
               GJAHR
               BELNR
               BUZEI
               SHKZG
          FROM EKBE
          INTO TABLE LT_EKBE
          FOR ALL ENTRIES IN LT_EKPO
         WHERE EBELN = LT_EKPO-EBELN
           AND EBELP = LT_EKPO-EBELP
           AND VGABE = '1'.
      ENDIF.
      LOOP AT LT_EKBE.
    * Change the sign of the quantity for debit
        IF LT_EKBE-SHKZG = C_SHKZG_H.
          LT_EKBE-MENGE = -1 * LT_EKBE-MENGE.
        ENDIF.
        MOVE-CORRESPONDING LT_EKBE TO LT_EKBE_SUM.
        COLLECT LT_EKBE_SUM INTO LT_EKBE_SUM.
        CLEAR LT_EKBE_SUM.
        ENDLOOP.
       loop at it_ekpo.
    ** For each line item, calculate the total GR Quanity
        READ TABLE LT_EKBE_SUM WITH KEY EBELN = LT_EKPO-EBELN
                                        EBELP = LT_AWKEY-EBELP.
        IF SY-SUBRC = 0.
    * If the PO Item Quantity is equal to GR Quantity
            IF LT_EKPO-MENGE <= LT_EKBE_SUM-MENGE.
    * The PO Item can be considered completed GRed
            ENDIF.
        ENDIF.
      ENDLOOP.

  • How to find whether the installed sap software is 32 bit or 64 bit?

    How to find whether the installed sap software is 32 bit or 64 bit?
    Hi Community,
    We have Windows machine - 64 bit - x64. So, we can install either 32 bit or 64 bit sap software, both are supported, right. Now, a sap system is already installed on this machine and i would like to find out whether the sap software is 32 bit or 64 bit, how can i check?
    I have already seen under Menu System - Status - Other Kernel Info & at OS level, with the command disp+work but i cant find the info iam looking for.
    Please help.
    Regards,
    Mohan.

    Hi Sunny,
    Thank you very much for your quick reply.
    Didnt know that one has to look under "Compiled for".
    Regards,
    Mohan.

  • How to find whether my netbook is bluetooth enabled

    I want to connect to my Android Tablet via bluetooth to my netbook Aspire One running on Windows XP.
    How to find whether my netbook is bluetooth enabled ?
    K.R.Kumar

    Click Start, click Run, type bthprops.cpl, and then click OK.
    If your computer has bluetooth capabiliteis, it will launch "Bluetooth Devices". If you successfully opened Bluetooth Devices, then your computer does have Bluetooth capabilities, otherwise, it does not have...
    If it has:
    On the Options tab, click to select the Turn discovery on check box, and then click Apply. To enable Bluetooth devices to connect to your computer, click to select the Allow Bluetooth devices to connect to this computer check box, and then click OK.

  • Need a Query to find whether the database needs any media recovery...

    Hi,
    I am at the mount stage of a database and yet be opened.at this stage any Query is available or any other way is there to find whether the database needs any media recovery or Instance recovery..?
    my objective is before opening the database i need to make sure it is consistent or inconsistent and any form of recovery is needed..
    thanks &regards,
    Ragunath
    Edited by: ragu.dba.in on Mar 6, 2013 12:57 AM

    Hi Ragunath,
    Use these queries , SCN should be consistent .. no fuzzy files, check for recovery of files in v$recover_file .. pass sufficient archives & fulfill the checks before open reset-logs
    set line 900
    set pages 900
    set echo on
    alter session set nls_date_format='dd-mon-yyyy hh24:mi:ss';
    set numwidth 13
    col CHECKPOINT_CHANGE# for 9999999999999999
    col CHANGE# for 9999999999999999
    column error format a10
    column member format a60
    show parameter db_recover
    select * from v$recover_file;
    select file#, status from v$datafile;
    select file#, checkpoint_change#, checkpoint_time, error from v$datafile_header;
    select distinct status from v$backup;
    select distinct  checkpoint_change#  from v$datafile_header;
    select hxfil file_id, fhscn scn, fhthr thread, fhrba_seq sequence, fhsta status from x$kcvfh;
    select distinct fhscn from x$kcvfh;
    select hxfil file_id, fhtnm tablespace_name from x$kcvfh;
    ##### Fuzzy Check ####
    alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS';
    set feedback on
    set heading on
    set pagesize 1000
    set linesize 175
    column checkpoint_change# format 999999999999999999999
    select status, checkpoint_change#, fuzzy,
    to_char(checkpoint_time, 'DD-MON-YYYY HH24:MI:SS') as checkpoint_time,
    count(*)
    from v$datafile_header
    group by status, checkpoint_change#, fuzzy, checkpoint_time
    order by status, checkpoint_change#, fuzzy, checkpoint_time;Thanks,
    Ajay More
    http://www.moreajays.com

  • How to find the Remote Desktop Client Version?

    How to find the Remote Desktop Client Version in Lion?  I'm asking because in starting up a mid 2011 MacBook Air, I ran Software Update, which determined that Remote Desktop Client version 3.5.1 was available.  I wanted to find what the existing version (older than 3.5.1) that came with Lion was, but coudn't find it.
    Thanks.

    Get Info on:
    /System/Library/CoreServices/RemoteManagement/ARDAgent
    or if you have Apple Remote Desktop on an administrator system, you can see the workstation client versions by control-clicking in the header in the computer list and selecting to show the ARD version column.
    Regards.

  • How to find relationship between database tables

    Hi Mate,s.
    Iam new to SAPBW , PLZ tell me , How to find releationship between database table(Transperent tables).
    Regards.
    harry

    hi harry,
    from your previous postings, i guess you are asking relationship between tables in r/3, following links may help :
    http://www.sapgenie.com/abap/tables.htm
    http://www.sapgenie.com/abap/tables_sd.htm
    http://www.sapgenie.com/abap/tables_mm.htm
    http://www.sapgenie.com/abap/tables_fi.htm
    http://www.sapgenie.com/abap/tables_ps.htm

  • How do I tell my browser how to find my remote site on cafe_townsend tutorial

    Worked through the tutorial in Dreamweaver 8 and everything peachy. Browser fired up everytime I hit f12. Then I got to the part where I put my local files to the remote site and now my browser can't find the URL. There are some instructions about localhost:5800 for coldfusion but not sure what it means. What or where do I enter the magic information to let my IE8 in Windows 7 know how to find my remote web sight?
    I sure could use some advice....Thanks Popeyebedford1     [email protected]

    I know about that tab, but the problem is that the iPod carries those preferences with it from computer to computer. I do want it to automatically update when plugged into my iBook, but I don't want it to when I plug it into the old G4. Right now my iPod is linked to two different libraries when it should only be to one. I know I can work around this by changing the preferences every time I decide to plug my iPod from one computer to the other, but it seems a little unnecessary—like there should be an easy way to just stop the synching altogether on my old computer...

Maybe you are looking for

  • How to get mysql error as a message on java

    hi, can any one please tell me how we can get the error generated by Mysql database during runtime as a message on a java program form. thanks

  • Default print settings in the Project Planning Board CJ02N CJ2C

    Hello When you print the Project Planning Board CJ02N/CJ2C - there is an option to change the page setup. I would like to change the default settings for left,right, top and bottom margins for all users. Can anyone suggest where this would be done ?

  • Nokia 5230 - US Version Unlocked

    Hello All, I recently purchased a Nokia 5230 Unlocked US version. I am having problems with dropping calls! I am on the AT&T GSM/WCDMA Network. When I got the phone, I upgraded the firmwares, ran all the updates etc. Seemed good for several days then

  • Finding duplicate items in item master query

    Hi.. I need to find the all duplicate items with same foreign name in Item master data ....Query is needed . Regards, K.Ramasamy

  • How to display Previous Entire QTR  bookings

    Hi All, I have one requirement, my client need to display the records are previous entire QTR bookings and Previous Year QTR Bookings. My ETL team created one Agg table based on Date level. I joined with date dimension table but I am not able get pro