How can I know a database link target DB is dead?

Hi,
I have a question about using database link.
If I create a public database link linkB from DB A to DB B. Then the DB B's storage fail and DB B is dead.
When I use select * from tableB@linkB in one package with exception handler, it just hang and didn't jump to exception. How can I set a timeout value (like 15 secs) to this database link ??? or is there any method to detect the database link if alive then run the sql statement????
Anyone knows??? thanks!!
Regards,
Miki.

Thanks to NKU's answer.
But, the inbond_connect_timeout seems to set in DB server, for a client to connect with the database server and provide the necessary authentication information.
In my case, I don't know the target DB B is dead and my AP hang because it execute a query through DB link from DB A to DB B.
If I can set a timeout value to DB link (create in DB A) or something else, I can have exception handler to process it not just wait a long time period. ^_^
Best Regards,
Miki.

Similar Messages

  • How can I know the database is using Cost Based or Rule Based?

    Hi all expertise,
    How can I know the database is using Cost Based or Rule Based?
    If cost based it is using, what methods are need to use to minimize the cost when database is running? And which tables I can see the performance of the database?
    Thanks
    Amy

    how to see database setting ?
    use this
    SQL> sho parameter optimizer
    NAME TYPE VALUE
    optimizer_dynamic_sampling integer 1
    optimizer_features_enable string 9.2.0
    optimizer_index_caching integer 0
    optimizer_index_cost_adj integer 100
    optimizer_max_permutations integer 2000
    optimizer_mode string CHOOSE
    choose means if table statistics is available then it will use cost
    else
    use rule based optimizer
    for seeing performnace of table use
    set autotrace on
    and run your query
    if it doen't show cost.it means it use rule based
    for using cost based
    u will calculate table statistics
    9i
    dbms_stats.gather_table_stats('owner','table');
    8i
    analyze table <table_name> compute statistics;
    hope it will help you
    kuljeet pal singh

  • How can i Know the email linked to icloud

    Please can anyone help me how to know teh email linked to my phone ??
    it shows me h********@hotmail.com i tried to logged in with my account that belong to h********@hotmail.com and it says inocrrect password or email i tried to reset my id but no reset mail was sent to my email ..
    so i tried to creat a new with the existing email addreess and it works and verified and finally i tried to activate it with h********@hotmail.com with the new passs and it says account cannot be activate with h********@hotmail.com it is linked to another account ..
    so please how can i know the linked email to my phone
    Thank you

    Welcome to the Apple community jorjh.
    If you mean that Find My Phone is asking for a password to a different Apple ID to your current Apple ID.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7, or if you restore from a previous back up made before you changed your details.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID using your current password, you don’t need access to this address if it’s previously been used with your Apple ID, once you have saved these details enter the password as requested on your device and then turn off "find my phone" and delete the account from your device.
    You should then change your Apple ID back to its current state, save it once again and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    This article provides more information about Activation Lock.

  • How can you SELECT via Database Link CLOB data using Application Express?

    Customer Issue:
    Developer using Oracle's Application Express 3.1. The Developer is trying to SELECT a CLOB datatype column from a remote (10.2.0.3) database, via a database link on her 10.2.0.4 based client Application. The Developer wants to be able to select CLOB data from the remote database which has limitation that she can't make any changes to the remote database.
    Developer's Comments:
    I do a select and get the error. Getting error ORA-22992: cannot use LOB locators selected from remote tables. So she feels she can't use dbms_lob.substr in this configuration I can do a "select into" but that is for one value. I am trying to run a select statement for a report that brings back more than one row. I do not have permission to change anything on the remote database. I want to access the remote database and multiple tables.
    This is not something I work with, would greatly appreciate help or ideas. Is this a limitation of the 3.1; or does she just not have this set up correctly; or should she be using a Collection (if yes, please share example)
    Thanks very much,
    Pam
    Edited by: pmoutrie on Jun 4, 2009 12:01 PM
    Hello???
    Would really appreciate an answer.
    Thanks,
    Pam

    This may not be a perfect solution for you but it worked for my situation.
    I wanted to grab some data from Grid Control's MGMT$JOB_STEP_HISTORY table but I couldnt' create an Interactive Report due to the existance of a CLOB column. I cheated this by creating a view on the GC DB, grabbing the first 4000 characters and turning it into a varchar2 column:
    create view test_job_step_history as
    select job_Name, target_name, status, start_time, end_time, to_char(substr(output,1,4000)) output
    from MGMT$JOB_STEP_HISTORY where trunc(end_time) > trunc(sysdate)-90
    In an APEX Interactive Report:
    select * from test_job_step_history@GCDB
    Granted, the output looks aweful right now but I am only looking for a very particular output (failed, denied, ORA-, RMAN-, etc) so the formatting isn't the most important thing to me right now.
    If anyone can improve -- and I'm sure you can -- on this I'd love to hear about it.
    Thanks,
    Rich

  • How can I know which link was clicked in the link list

    Hi everyone
    I'm using list of links in my page to display list of the files in some directory.
    How can I know which link user was clicked. There are some code:
    <%
    String dir = "..//files//";
    File fin = new File(dir);
    File files[]=fin.listFiles();
    for(int i=0;i<files.length;i++)
    File x = files;
    %>
    <%=x.getName()%><br>
    <%
    %>
    Please help

    You need to pass some data on the querystring to the page you are linking to.
    <a href="Main_Work.jsp?file=<%=x.getName()%>"><%=x.getName()%></a><br>
    This will send a parameter called "file" with the value of the file name that the user clicked.
    Now in Main_Work.jsp you can access this data as follows:
    <%
    String s = request.getParameter("file");
    File f = new File("..//files//"+s);
    %>

  • How can i know the port of my database?

    hello,
    how can i know the port of my database is working in?
    ty

    user11933068 wrote:
    I don't know how to do this, sorry
    :-(TNSNAMES.ORA is used by the client to resolve an alias to an actual server/listenr port/db service name.
    TNSNAMES.ORA is found, by defualt, on the client machine at $ORACLE_HOME/network/admin
    Here's how it works:
    Suppose I have this in my tnsnames.ora:
    fubar =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = btzlkfp)
      )So, my connect string would look something like this:
    $> sqlplus scott/tiger@fubarTNS will take the name 'fubar' and look it up in the tnsnames file. In my example, it will then route the connection request to 'myhost' (using other net services to resolve that to an actual IP address), and place the request on port 1521 at that server. The listener will pick that up and see that scott wants to log on to database 'btzlkpf'.
    There's more, but at this stage I want you to understand the connection between what you enter for your connect string and the database itself.

  • How can I know the request is come from the link in header in the filter?

    I am using the tile for layout management and each page has a header, menu, and content body. I want to do something at the filter If the request is come from the commandlinks in the header and menu.
    How can I know the request is come from the link in header in the filter?

    Basically all you have to go on is the request data. Examine the encode/decode requirements for commandLink; you may be able to determine from the request attributes which commandLink has been invoked.

  • How can we know version of the database ?

    Hi all,
    How can we know the version of the under lying database ? Please share your ideas.
    Thanks

    Hi,
    Choose System->Status Menu item to open the status window.
    You can see the DB data in the Bottom right.
    Regards
    Karthik D

  • How can I know which has brought down the database SI or SA

    Hi to all,
    Hi
    Sorry about this simple question but i am little bit confused.
    Suppose if i used Shutdown immediate and i use Shutdown abort then how can i know which brought down my database Shutdown immediate(SI) or Shutdown abort(SA)
    Please help me !!!!!

    Hi,
    Ofcourse shutdown abort will execute...
    See the output from alert log
    Tue Jun 01 11:54:17 2010
    Shutting down instance (immediate)
    Stopping background process SMCO
    Tue Jun 01 11:54:35 2010
    Shutting down instance: further logons disabled
    Tue Jun 01 11:54:39 2010
    Shutting down instance (abort)
    License high water mark = 125
    USER (ospid: 5436): terminating the instance
    Instance terminated by USER, pid = 5436
    Tue Jun 01 11:54:42 2010
    Instance shutdown complete
    Thanks,
    Ajikumar G
    Expertise in Oracle Apps...

  • 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

  • How can i know the RPM of my HD?

    I guys...
    Simple question...
    How can i know the RPM of my HD?
    I have a Mac mini and i would like to know that.
    Any ideas?.
    Thanks so much!!!

    Hi!!
    It doesn't show...
    Vendor:          NVidia
      Product:          MCP79 AHCI
      Link Speed:          3 Gigabit
      Negotiated Link Speed:          1.5 Gigabit
      Description:          AHCI Version 1.20 Supported
    FUJITSU MHZ2120BH G1:
      Capacity:          120.03 GB (120,034,123,776 bytes)
      Model:          FUJITSU MHZ2120BH G1                   
      Revision:          00810009
      Serial Number:                  K64PT9427599
      Native Command Queuing:          Yes
      Queue Depth:          32
      Removable Media:          No
      Detachable Drive:          No
      BSD Name:          disk0
      Medium Type:          Rotational
      Bay Name:          Lower
      Partition Map Type:          GPT (GUID Partition Table)
      S.M.A.R.T. status:          Verified
      Volumes:
      Capacity:          209.7 MB (209,715,200 bytes)
      Writable:          Yes
      BSD Name:          disk0s1
    Macintosh HD:
      Capacity:          119.69 GB (119,690,149,888 bytes)
      Available:          21.38 GB (21,376,569,344 bytes)
      Writable:          Yes
      File System:          Journaled HFS+
      BSD Name:          disk0s2
      Mount Point:          /
    FUJITSU MHZ2120BH G1:
      Capacity:          120.03 GB (120,034,123,776 bytes)
      Model:          FUJITSU MHZ2120BH G1                   
      Revision:          00810009
      Serial Number:                  K64PT9427599
      Native Command Queuing:          Yes
      Queue Depth:          32
      Removable Media:          No
      Detachable Drive:          No
      BSD Name:          disk0
      Medium Type:          Rotational
      Bay Name:          Lower
      Partition Map Type:          GPT (GUID Partition Table)
      S.M.A.R.T. status:          Verified
      Volumes:
      Capacity:          209.7 MB (209,715,200 bytes)
      Writable:          Yes
      BSD Name:          disk0s1
    Macintosh HD:
      Capacity:          119.69 GB (119,690,149,888 bytes)
      Available:          21.38 GB (21,376,569,344 bytes)
      Writable:          Yes
      File System:          Journaled HFS+
      BSD Name:          disk0s2
      Mount Point:          /
    Those are the 2 texts...
    Any idea?
    Thanks!!

  • How can I change an embedded link to a website in a pdf in Pro XI

    How can I change an embedded link to a website in a pdf in Pro XI for Mac?

    Hi leee4227078,
    Please refer this blog post as this could help you on how to remove embedded hyperlinks:
    Removing Hyperlinks from a PDF and Feature/Gotcha
    Let me know.
    Regards,
    Anubha

  • How can I disable a hover link in the phone view size?

    Hola
    How can I disable a hover link in the phone view size?
    I got this site where I got a gallery page,
    the pics have a hover/link state (?) where as you click in them
    they will open a bigger pic. (Prettyphoto)
    Thanks good.
    What I want to do, is that the hover state (?)
    won't show in the phone size.
    I know that I will need a media queries, but I'm not sure
    where or how to tackle this problem.
    This is the code where I have the pics
    <div class="grid_3 project-item bar">
                                             <figure class="project-img">
                                                 <img src="../images/gallery_pics/memos_bar_s5.jpg" alt="Memo's Cocina & Tequila Bar" />
                                                    <div class="overlay"></div>
                                                    <div class="mask">
                                                       <a class="icon-image"
                                                            href="../images/gallery_pics/memos_bar_b5.jpg"
                                                            rel="prettyphoto[gallery]"
                                                            title="The Bar">
                                                            <i class="icon-search"></i>
                                                     </a></div>
                                           </figure>
                                          </div>
    Thanks for your help

    If you don't want a :hover state to show in the phone css of a fluid grid layout, you would remove it from the global settings and only include it in the tablet and desktop media queries.
    Or are you trying to do something else?

  • How can I know the delta field for CO-PA datasource?

    Hi,folks:
        How can I know which is the field assigned as the delta field for CO-PA datasource,as is noticed in the note that after PI2004 the logic has been turned to general datasource,but I can't find the datasource through RSO2.
        Full points will be given to u.
    Martin Xie

    Dear Martin,
    The CO-PA DataSources generated use a separate time stamp method for the delta procedure. This procedure means that client-independent DataSources in CO-PA are normally restricted to the clients in which they were generated.
    See this link...
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/97/6f4d40cef71059e10000000a155106/frameset.htm
    Also check ROOSOURCE in R3, asmentioned by Dinesh.
    Hope it helps.

  • How can I know the name of instance (SID)?

    Dear all,
    After I install the Oracle client in my computer, I would like to change the tnsname.ora. However, I don't know the name of instance (SID) because I am not the one install the database and the DBA is gone. So, how can I know the SID name and the port number as well.
    Best Regards,
    amy

    Hey,
    The sid defaults to the database name.
    http://www.adp-gmbh.ch/ora/misc/identifiers.html
    you can find it by
    select name from v$database;
    or by
    show parameter db_name (run this in sql prompt)
    Run the above on the database server.

Maybe you are looking for

  • Omg ipod meltdown!!!!!!!!!!!!!!EXTREMELY URGENT!!!!!!!!!!!

    ok heres the 411.... my ipod is being a crap-pod -it skips songs -it turns off out of nowhere -it says low battery and turns off, yet when it comes back on the battery is full--I will leave it charged for days and it still does this -I have to reset

  • Cisco Prime - extract list of hostnames and their serial numbers.

    Hi all, is there a way of extracting a list of hostnames ( for devices in EMEA ) and their associated serial numbers from Cisco Prime and into say a csv file? Many thanks, Paul

  • Updating to iOS 5.0.1

    After downloading the update, I got an error message. Upon restarting, i was told to restore the iphone with last backup and end up with data from about a month back. This is the second time I lost my data when updating my OS. Till today, I still get

  • IPhone 5 does not ring after upgrade to iOS 7.0.4? HELP!!!

    I upgraded to iOS 7.0.4 and my iPhone phone stopped ringing and many, but not all speaker functions stopped working. I have tried everything including Reset to Factory Settings. Earbuds work. Help!!!

  • D-Bus: How can root access a user's started session?

    D-Bus is really useful for automating a lot of tasks, and I want it to respond to certain ACPI events using a acpid configuration. However, acpid runs as root, and it seems like root cannot find or access a logged in user's D-Bus session. Example: #