Issue with db link

Hi Sir
I have a query which is taking a lot of time to execute
select empno,ename from emp where (ename='SACHIN' OR ename LIKE REPLACE('MAN','_','\_')||'\_%' escape '\') and empno=1001;
This table is a dblink in another database.
My question is this query is taking a lot of time to execute.
The bottleneck is usage of Like Operator.Any help to resolve the performance of the query to avoid performance issue?
Appreciate your help to resolve the query?
Thanks & Regards
Thakur Manoj R
Edited by: user1014019 on Aug 18, 2010 7:06 AM

Hi
ADMIN.EMP is a table name and EMPNAME.MAN.COM is a db link which is used for accessing from different schema
Grants are already allocated to ADMIN.EMP to user
Please check the answers to your below questions
How many times this select is used in the procedure?
Ans:once
Does this query is built dynamically (the value 'SACHIN' seems to be something changing and concatenated) ? (maybe you lose the time in parsing to often this query)
No
You say "the table emp is refring remote object" but i don't seen any dblink:
Does emp is a view with a dblink?
EMPNAME.MAN.COM is a db linkl
Have you given me the whole select ? (2nd time)
yes
How many times did you call this select in your procedure?
only once
I will explain in form of a query
declare
l_job emp.job%type:='';
l_salgrade emp.sal%type:='';
l_job_grade salgrade.job%type:='';
l_empno emp1.empno%type:='';
begin
select job,sal into l_job,l_salgrade from [email protected] where (job=l_job OR JOB like replace(l_job_grade,'_','\_')||'_\%' escape '\') and empno=l_empno;
dbms_output.put_line(l_job ||' '||l_salgrade );
end;
The above query is taking lot of time in my pl/sql code
Appreciate your help on the above to resolve the query tuning
Thanks & regards
Thakur Manoj R

Similar Messages

  • Issue with Report Links in OBIEE

    I'm facing a issue with report links(modify,printer friendly,refresh etc) in obiee
    The reports which are set as "Display Results-->Embedded in Section" for those reports if I put report links(modify,printer friendly,refresh etc),the links do not show up.In the palce of link I can see "-"(minus sign) appearing.
    If I change the report to "Display Results--->Show as link in seperate window" the lniks show up fine.
    Any idea why this is happening?
    Your suggestions are welcome.
    Please help
    Regards.
    Edited by: 810008 on Apr 14, 2011 1:39 AM

    Edit Dashboard -> Report Properties -> Report Links... (directly under Display Results) -> Customize
    M.

  • Issue with Dynamic Link with Premiere CC and After Effects

    I'm having a strange and annoying issue with Dynamic linked clips in Premiere CC:
    When I render or export my timeline the progress will stall when it hits a dynamic linked clip.  It will stay stalled until I click the After Effects application and make it the active window.  Once that happens the render/export resumes at normal speed. 
    This is annoying as I can't start a render and walk away or work on different windows, I have to babysit all the renders to make sure they go through.
    Has anybody experienced this and know of any solutions? 
    I'm running the latest version of Premiere (7.2.1) and After Effects 12.2.0.52 on Mavericks 10.9.1 with a GTX 770 Video Card.

    Does it still pause if AE is closed completely? I often experience slower AME renders from Premiere over dynamic link material when AE is open. Closing AE speeds things up. Go figure.

  • 10.1.2.3.0 CP2 Viewer Issue with Managed Links

    With this patch workbooks with managed links that were operational passing a blank (optional) parameter now pass 'NULL' as the value. This is bug 7422080. We are in the process of downloading CP5, which is suppose to resolve this issue. This will take time. Can anyone think of a possible workaround? The workaround explained in the bug does not work, which was to edit the parameter, add a default value, then edit it again, remove the default value and save the workbook. I have also tried ' ' as a default value but it just passes ' '. It would be nice to have a workaround until we can install, test and upgrade to CP5.
    Thanks,
    Jerre

    Michael,
    Below is the file change. When we set it to 'true' Viewer performed correctly.
    Jerre
    =====
    2. Then a new configuration parameter "passNullParameterAsNull" needs to be set in configuration.xml under <viewer section with default value as false and which is an optional one. Usage :
    <viewer queryRefreshPeriod="3000" queryRequestTimeout="1000" longRequestRefreshPeriod="6000" longRequestTimeout="10000" userDefinedConnections="true" passNullParameterAsNull="true" logLevel="debug" laf="dc_blaf" pageNavigation="true" switchWorksheetBehavior="prompt" defaultLocale="en" disableBrowserCaching="false" enableAppsSSOConnection="false">
    When passNullParameterAsNull="false" , that means, when null is passed as parameter from one sheet to another during drill to link, the value will be converted in between to the value which is set as "ShowNullValueAs" in second sheet. eg: if ShowNullValueAs = "" in second sheet. Null value passed from first sheet will reach as value "" in second sheet. If passNullParameterAsNull="true", then Null value will always be passed as Null to second sheet irrespective of the value of "ShowNullValueAs" in second sheet.
    =====

  • Issues with D-Link - Xtreme N Wireless-N

    I recently purchased a Time Capsule with full intentions of supporting both my Macs as well as Windows machines (for use with Wireless N)
    While the Macs are fine I am having problems connecting with D-Link - Xtreme N Wireless-N
    These cards connect fine to every other Wireless-N product except the Time Capsule.
    I can connect the D-Link - Xtreme N Wireless-N to the Time Capsule but only at 54Mbps which tells me it is using 802.11g not N. I have updated the Time Capsule settings to make the 5GHz band visible on its own SSID which of course the D-Link - Xtreme N Wireless-N does not see.
    Any help??

    nothing???

  • Pdf issue with internal links in Safari

    Hello,
    I am creating a web site that has 80 or so pdf's available to download. They each contain a series of 20 or so speeches. To make navigation easier I have created a new page in Open Office that is an index to each pdf, with it's page number as an internal link to the correct page. This is what I did:
    1. Open each pdf in Preview and inserted a blank page (page 2), and saved the pdf. This gives me the correct page numbering for when I put in the real index.
    2. Noting the start of each speech  page number, I created an idex page in Open Office.
    3. I saved the index as a pdf.
    4. I opened the origional pdf and the new pdf index.
    5. I deleted the blank page and then dragged the new index page across and made sure it was the same page position - page 2.
    6. I then used the link too in Previewl to drag a link box over the page number in the index and then chose the correct page number to set as the target via Previews inspector.
    7. Saved the pdf and opened and tested - everything worked fine.
    The problem comes when I upload the pdfs and test the site with safari. When I open the pdf in the default safari window, the links are all out by one page i.e. if i click on page number 30 from the index, I go to the next page - page 31. If I hover the mouse at the bottom of the page and bring up the open in Preview icon and do so, the index links to the pages work fine???? I have tried with Explorer under bootcamp and the default window that opens for the pdf shows the same issue - it's out by one page.
    Thanks in advance
    nige.

    Hi...
    Try this...
    Go to   /Library/Internet Plug-Ins
    Move the Adobe PDF Browser plugin (or just PDF Browser plugin) to the Trash.
    See if that makes a difference.

  • Issue with PDF links and opened Adobe files

    I have tested and IE 8 opens correct links inside PDF's.
    When I open link in Mozilla or Chrome it will not work.
    Is this related to Adobe Plugin which is installed inside Add-ons?
    Strange is that link inside PDF shows the following link:resource://pdf.js/web/
    After checking support issues there was quoted in the past:
    The current Firefox 27 beta release still doesn't show the links properly using version 0.8.641, but the current Aurora 28.0a2 build does show the links to the Appendices properly using version 0.8.759.
    So that would mean that when Firefox 28 gets released in March it will work for users with this Firefox version.

    This is likely a problem with the way those links are coded in the PDF file, so the file may have to be saved again using different settings to make it work with PDF Viewers other than the Adobe Reader.

  • Issue with Anchor Links in Composition Widget

    Hoping for some help regarding anchor links. I was successful in nesting a Slideshow widget within a Composition widget. The Composition widget contains six panels, each of which contains one Slideshow. Thankfully, that all works as it’s supposed to.
    What I want is to direct users (from another page on my site) to a specific Slideshow within the Composition widget (i.e., for example, to the slideshow on the third panel of the Composition). The anchor link does work in that it directs users to the page with the Slideshow/Composition combo. However, it displays the first panel in the Composition and not the third. I’ve tried inserting the anchor link on top of the actual picture in the Slideshow, and also within one of its text labels. Still the same result.
    My question … can an anchor link be used to direct someone to a specific panel within the Composition widget? Perhaps I can export my site to HTML, open the .html file in Dreamweaver and … I don’t know, move or rename the anchor somehow? Is anyone else having this issue?

    This is a bit late in the day looking at the date of your post, but I asked the same question recently and Brad Lawryk answered (thanks Brad - saved me hours of fiddling!):
    Unfortunately the only way to do this now would be to save a copy of the page with the desired tab focused. Unfortunately this does cause duplicate content and is not SEO friendly though.

  • Z30 issues with Blackberry Link

    I recently upgraded from a Z10 to a Z30. 
    Issue #1
    When I transferred all info from the Z10 to the Z30 using Blackberry Link it changed the name  of the new Z30 from the name that it came with to a name of my Z10. Is this normal?  Can I change it back to the name it had originally without confusing Blackberry Link? Does it even matter?
    Issue #2
    When I connected my Z10 to my computer and opened Blackberry Link there was a dropdown menu along the botton of the frame and one of the choices was "back up". Now with the Z30 that dropdown menu menu box is not there but along the left side that says that my Z30 is connected and one of the menu choices is "backup and restore". Is this the same thing?
    I hope that I have made my concerns clear enough,
    Pat
    Canuck by birth 'berry by choice

    I do not know the interface of BB Link but you might find a answer here:
    http://docs.blackberry.com/en/smartphone_users/sub​categories/?userType=1&category=BlackBerry+Link
    Or wait till someone who knows replys.

  • Pagination issue with Command Link

    Hi
    I have a HtmlDatatable in which I am I am using pagination. Pagination is working fine the issue is one colum has been used with commnadlink.
    Whne I use the pagination(Say when I click next or last) i am not getting the hyper link in that column.
    Any idea?
    Thanks in advance
    Best Regards
    Sathish

    Hi,
    hard to say. Looks as if the browser blocks the command link when the note window launches as modal dialogs would do.  There are two reasons for this IMO
    1. The hover code also executes when you want to click the link, which means that you don#t get to executing your action. Work around is to detect whether the note window is open and if don't try and re-launch the note window
    2. If you use showPopupBehavior to launch the note window, then this actually kills all action listener methods (which then may be a second reason). So my suggestion is to try and launch the hover popup from JavaScript using an af:clientListener
       Sample code: Sameh Nassar: JavaScript With ADF Faces Samples
        the client listener should listen for the mouse over event.
    If none of this help and you have access to customer support, I suggest to create a test case and file a service request. My current guess though is that the reason for the behavior is in in your code (browsers tend to work differently in the way they execute JS events too).
    Frank

  • Is anyone else having serious issues with Dynamically linked clip render times in CC 2014.2

    Short clips stalling and taking forever to render. Longer ones taking several hours???
    I've noticed arbitrary little fixes, such as re-opening the after effects window, then going back into the premiere window causes the render to instantly speed back up in some cases.
    A restart of the program I believe solves the issue too. As does simply rendering the clip out in after effects.
    The problem is that I have long, overnight renders set up that need to run automatically. In this case, 9 clips, all about 30 minutes long. And pretty much all one long dynamically linked comp (I created a picture in picture effect in after effects compiling 2 30-minute video feeds, and then added some color correction). When I left at night, the total time kept creeping up and up to about 2.5 hours for one video. Even THAT sounds like a lot to me, but I let it go. I return to the computer 13 hours later, to see only 3 videos completed, and the one CURRENTLY in the queue saying over 6 hours remaining. I cancel the render.
    I feel like there is some breakdown of communication between afx and premeiere happening here.
    Anyone have any experience with issues like this?
    Running PP CC2014.2 on a tricked out 2011 Macbook pro 17" OSX Yosemite

    I'm on windows 7, and similar dynamic issues were a result of having two versions of the same app on the machine, and not associating the files to use the latest version, etc, or a version mismatch. 
    Another workaround is to close PPro and import the project into AME, rendering it from there.

  • Issue with Action Links

    Hi All,
    We have implemented the Action Links.
    Issue: A particular order number is present in 14 different organizations.
    when the order number and the Org Name is selected we are able to all the records.
    We have included the Action Link column to the above request, then we are only able to see 3 records, the other organization records are not able to view.
    SQL generated after including the Action Link column is
    select distinct T259660.SALES_ORDER_NUM as c1,
    T334186.BASE_ORG_NAME as c2,
    sum(case  when T265919.W_XACT_TYPE_CODE = 'Regular' and T262056.W_STATUS_CODE <> 'Cancelled' then T259660.NET_AMT * T259660.GLOBAL1_EXCHANGE_RATE else 0 end ) as c3
    from
    W_INT_ORG_DH T334186 /* Dim_W_INT_ORG_DH_Sales_Org */ ,
    W_SALES_ORDER_LINE_F T259660 /* Fact_W_SALES_ORDER_LINE_F */ ,
    W_STATUS_D T262056 /* Dim_W_STATUS_D_Order_Status */ ,
    W_XACT_TYPE_D T265919 /* Dim_W_XACT_TYPE_D_Sales_Ordlns */
    where  ( T259660.XACT_TYPE_WID = T265919.ROW_WID and T259660.ORDER_STATUS_WID = T262056.ROW_WID
    and T259660.SALES_ORDER_NUM = '1000004' and T259660.SALES_ORG_WID = T334186.ORG_WID
    and T259660.DELETE_FLG = 'N' and (T334186.ROW_WID in (0) or T334186.PRIMARY_FLG in ('Y'))
    and (T334186.ROW_WID in (0) or T334186.W_HIERARCHY_CLASS in ('NON-HRORG'))
    and (T334186.ROW_WID in (0) or T334186.SALES_ORG_FLG in ('Y')) )
    group by T259660.SALES_ORDER_NUM, T334186.ORG_WID, T334186.BASE_ORG_NAME
    order by c1, c2
    select concat(concat('<a href="', T623258.ORDER_HEADER_ACTION_LINK_URL), '"> Link to EBS Source Order</a>') as c1,
    T623258.HEADER_ID as c2
    from
    +(SELECT header_id+
    +,fnd_run_function.get_run_function_url+
    +(+
    CAST
    +(fnd_function.get_function_id ('ISC_ORDINF_DETAILS_PMV') AS NUMBER)+
    +,CAST (272 AS NUMBER)+
    +,CAST (53059 AS NUMBER)+
    +,CAST (0 AS NUMBER)+
    +, 'HeaderId='+
    +|| header_id+
    +|| '&pFunctionName=ISC_ORDINF_DETAILS_PMV&pMode=NO&pageFunctionName=ISC_ORDINF_DETAILS_PMV'+
    +,NULL) AS order_header_action_link_url+
    FROM oe_order_headers_all) T623258
    order by c2
    By executing these 2 generated queries we are able to see all the headers ids for a particular order same in both the queries.
    But even then the results are not shown in the Answers.
    Can any one have an idea how to fix it.
    Thanks in advance
    Regards
    Vishwanath

    For the action Links i have created a opaque view with the Query
    SELECT CAST(header_id as Varchar2(80)) as HEADER_ID
    +,fnd_run_function.get_run_function_url+
    +(+
    CAST
    +(fnd_function.get_function_id ('ISC_ORDINF_DETAILS_PMV') AS NUMBER)+
    +,CAST (valueof(NQ_SESSION.OLTP_EBS_RESP_APPL_ID) AS NUMBER)+
    +,CAST (valueof(NQ_SESSION.OLTP_EBS_RESP_ID) AS NUMBER)+
    +,CAST (valueof(NQ_SESSION.OLTP_EBS_SEC_GROUP_ID) AS NUMBER)+
    +, 'HeaderId='+
    +|| header_id+
    +|| '&pFunctionName=ISC_ORDINF_DETAILS_PMV&pMode=NO&pageFunctionName=ISC_ORDINF_DETAILS_PMV'+
    +,NULL) AS ORDER_HEADER_ACTION_LINK_URL+
    FROM oe_order_headers_all
    When we created a request in the answers using the above opaque view, it is taking lot of time around 12 min.
    when i executed the query returned from session log in the database it took less than a second.
    not sure what causing the performance issue.
    Can any one help me out.
    Regards
    Vishwanath.

  • Issue with db links

    Hi,
    I have a dblink pointing from oracle to sql server the dblink is working fine for select statement but it is failing for insert can you please help me
    Below is the statement
    INSERT INTO PS (FO ,C ,START_DT ,END_DT ,END_EST_DATE ,END_DT_NT ,UPDATED_DTTM ,CREATED_DTTM ,OA_OTC_TIME_ENTRY ,OA_OTC_TIME_APPROV) SELECT A.ASS ,A.CA ,
    A.STARTDATE ,A.ENDDATE ,A.END_EST_DATE ,A.ENDDATE_NT ,A.UPDATEDATE ,A.CREATEDATE ,A.ELECTRONICTIMEENTRY ,A.ELECTRONICTIMEAPPROVAL FROM PS@PRD A
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Oracle][ODBC SQL Server Driver][SQL Server] insert of view or function 'PS' failed because it contains a derived or constant field.
    I have verified the dblink and it is working fine without any issues for the select statement but its failing for the insert statement
    select count(*) from ps@PRD;
    row count 20,0000
    Below is the insert statement error
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Oracle][ODBC SQL Server Driver][SQL Server]Update or insert of view or
    function 'PS' failed because it contains a derived or constant
    field. {42000,NativeErr = 4406}[Oracle][ODBC SQL Server Driver][SQL
    Server]Statement(s) could not be prepared. {42000,NativeErr = 8180}
    ORA-02063: preceding 2 lines from PRD
    Can some one help me with this issue. Please let me know if you need any more information
    Edited by: 988802 on Apr 4, 2013 1:36 PM

    Try referring to the below links
    http://www.datadirect.com/resources/odbc/oracle-heterogeneous/common-error.html
    http://www.dba-oracle.com/t_ora_28500_connection_from_oracle_failed.htm

  • Issue with web links in PDF document using adobe reader 10.1.1

    Hi,
    We are creating the PDF documents that contains website links. The problem that is occurring is whenever we click on the website links in the pdf file, it opens up IE browser but just show connecting message without actually showing the link and its content. This is ocuurring when we open the PDF using adobe reader 10.1.1 . However it seems to be working fine with Adobe reader 9 . Moreover the length of the URL is bit large and seems like links work fine when we have 253 characters in the URL and if they are more than that then it is not working.Since it is working fine in Adobe reader 9 is there any constraint imposed on the length of URL with adobe reader 10.1.1 . Anything regarding this will be of great help.

    Hi..
    Try removing a plugin...
    Quit Safari.
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type this exactly as you see it here:
    /Library/Internet Plug-Ins
    Move the Adobe PDF Browser plugin (or just PDF Browser plugin) from the Internet Plug-Ins folder to the Trash.
    Relaunch Safari to test.

  • Saved search issue with custom link

    Hi all,
    Generally we do have one opportunity search . But according to my requirement I have added one more opportunity search  for separate Opportunity type .
    I do have 2 different view configurations for regular search/result and newly added custom search/result.
    here the issue is with Archived Saved Search( those are saved in regular Opportunity Search)  is  not working properly when I am open custom Search and then open the saved Search( from Home Page) . Here again I need to open the regular opportunity Search and execute the Saved Search  then it is working.
    When I come out from custom search/result, then execute the Saved Search it is calling the configuration of Custom Search/result.
    here I need to destroy the custom configuration search/result when I come out or execute the saved search . already I tried the WD_DESTROY  method in Mainview set level. But it is not working .
    Regards.
    rama

    Solved my self.
    Below is the solution. Go to the Viewset implementation class ZL_BT111S_O_MAINVIEWSET_IMPL   and call the default configuration in method DO_CONFIG_DETERMINATION .
    CALL METHOD me->set_config_keys
       EXPORTING
         iv_object_type          = '<DEFAULT>'
         iv_object_sub_type      = '<DEFAULT>'
         iv_propagate_2_children = 'X'.
    regards,
    rama

Maybe you are looking for

  • Preview doesn't work anymore after update to Lion

    Preview doesn't work anymore after update to Lion. I cannot start it from dock nor from the programm folder. I always get a (very) long error message. Anyone else with this problem? Process:         Preview [207] Path:            /Applications/Previe

  • Some settings not saved in Presets file

    I'd like to setup my fme environment with preset Xml files (and with some dirty scripting hacks, we make the app load them automatically). Unfortunately, not all the Device settings are saved. There is a tuner specific Settings tab whose settings are

  • Why TTY doesn't work?

    i am learning jdb (very new), when i compile and execute example of TTY, error says "handle is not available". i use windows. i think i miss something because TTy code tries to load a file in user directory, but i don't have the file - if this is rea

  • How to UNDO a revert in Illustrator CC????

    Seriously Adobe!!!! Adding a shortcut that's close to cmd-Z that REVERTS your entire project!!! Just lost 2 hours of work!! How do I undo this revert????????????

  • Which is the best ad system to use?

    are any of them free and which one is the best?