Using query tunning

Hi all

It is the plan of the explanation of my request:

{code}

Hash value of 1 plan: 1914807434

2

3    --------------------------------------------------------------------------------------------------------------------------------------

4    | ID | Operation                                      | Name                        | Lines | Bytes | TempSpc | Cost (% CPU). Time |

5    --------------------------------------------------------------------------------------------------------------------------------------

6    |   0 | SELECT STATEMENT |                             |  3753.   747K |       |  3771 (2) | 00:00:29 |

7    |   1.  SORT ORDER BY |                             |  3753.   747K |  1016K |  3771 (2) | 00:00:29 |

8    |   2.   HASH GROUP BY.                             |  3753.   747K |  1016K |  3771 (2) | 00:00:29 |

9    |   3.    VIEW                                        |                             |  3753.   747K |       |  3432 (2) | 00:00:27 |

10.   4.     KIND OF WINDOW.                             |  3753.  1491K |  1592K |  3432 (2) | 00:00:27 |

11. * 5 |      OUTER HASH JOIN |                             |  3753.  1491K |  1488K |  3103 (2) | 00:00:24 |

12.   6.       VIEW                                     |                             |  3753.  1436K |       |   927 (2) | 00:00:08 |

13. * 7 |        HASH JOIN                               |                             |  3753.  1513K |       |   927 (2) | 00:00:08 |

14. * 8 |         FULL RESTRICTED INDEX SCAN FAST | PK_REQUIREMENT_YEAR |   942.  7536 |       |     3 (0) | 00:00:01 |

15.   9.         VIEW                                   |                             |   580.   229K |       |   924 (2) | 00:00:08 |

16.  10.          HASH GROUP BY.                             |   580.    99K |       |   924 (2) | 00:00:08 |

17. * 11 |           OUTER HASH JOIN |                             |   580.    99K |       |   923 (1) | 00:00:08 |

18.  12.            VIEW                                |                             |   580. 93380 |       |   558 (1) | 00:00:05 |

19.  13.             NESTED LOOPS |                             |   580.   105K |       |   558 (1) | 00:00:05 |

20.  14.              NESTED LOOPS |                             |   580.   105K |       |   558 (1) | 00:00:05 |

21. * 15 |               OUTER HASH JOIN |                             |   131. 22532 |       |   165 (2) | 00:00:02 |

22. * 16.                HASH JOIN |                             |   131. 20043 |       |    65 (2) | 00:00:01 |

23.  17.                 VIEW                           | the index $ _join$ _010 |   116.  1276 |       |     2 (0) | 00:00:01 |

24. * 18.                  HASH JOIN |                             |       |       |       |            |          |

25.  19.                   FULL RESTRICTED INDEX SCAN FAST | IDX_AVAILABILITY_TYPE |   116.  1276 |       |     1 (0) | 00:00:01 |

26.  20.                   FULL RESTRICTED INDEX SCAN FAST | PK_AVAILABILITY_TYPE |   116.  1276 |       |     1 (0) | 00:00:01 |

27. * 21.                 HASH JOIN |                             |   131. 18602 |       |    63 (2) | 00:00:01 |

28.  22.                  TABLE ACCESS FULL | PE                          |    23.   276.       |     3 (0) | 00:00:01 |

29. * 23.                  HASH JOIN |                             |   131. 17030.       |    60 (2) | 00:00:01 |

30. * 24.                   TABLE ACCESS BY INDEX ROWID | SHIP_SHEETS |   131.  9956.       |    50 (0) | 00:00:01 |

31. * 25.                    INDEX RANGE SCAN | NIDX_REQ_ID |  1597.       |       |     7 (0) | 00:00:01 |

32. * 26.                   HASH JOIN |                             |   422. 22788 |       |    10 (10) | 00:00:01 |

33.  27.                    THE MERGE JOIN.                             |    46.  1058.       |     5 (20) | 00:00:01 |

34.  28.                     TABLE ACCESS BY INDEX ROWID | COMPANY |     5.    35.       |     2 (0) | 00:00:01 |

35.  29.                      INDEX SCAN FULL | PK_ENTERPRISE |     5.       |       |     1 (0) | 00:00:01 |

36. * 30 |                     JOIN TYPE.                             |    46.   736.       |     3 (34) | 00:00:01 |

37.  31.                      VIEW                      | the index $ _join$ _006 |    46.   736.       |     2 (0) | 00:00:01 |

38. * 32 |                       HASH JOIN |                             |       |       |       |            |          |

39.  33.                        FULL RESTRICTED INDEX SCAN FAST | IDX_HULLCLASS_ENT |    46.   736.       |     1 (0) | 00:00:01 |

40.  34.                        FULL RESTRICTED INDEX SCAN FAST | IDX_HULLCLASS |    46.   736.       |     1 (0) | 00:00:01 |

41.  35.                    TABLE ACCESS FULL | HULL                        |   422. 13082.       |     5 (0) | 00:00:01 |

42.  36.                TABLE ACCESS FULL | TRAVEL | 53461 |   991K |       |    99 (2) | 00:00:01 |

43. * 37 |               INDEX RANGE SCAN | PK_SHIPSHEET_ANNUAL_PHASING |     4.       |       |     2 (0) | 00:00:01 |

44.  38.              TABLE ACCESS BY INDEX ROWID | SHIP_SHEET_ANNUAL_PHASING |     4.    60.       |     3 (0) | 00:00:01 |

45.  39.            TABLE ACCESS FULL | TRAVEL_OVERTIME |   245K |  3596K |       |   363 (2) | 00:00:03 |

46. * 40 |       TABLE ACCESS FULL | SHIP_SHEET_ANNUAL_PHASING |   500K |  7327K |       |  1458 (2) | 00:00:12 |

47    --------------------------------------------------------------------------------------------------------------------------------------

48

Predicate information 49 (identified by the operation identity card):

50    ---------------------------------------------------

51

5 52 - access ("P". "FISCAL YEAR" (+) = "RY" "." " THE EXERCISE' AND 'P '. "' SHIP_SHEETS_ID ' (+) ="SQ ". ("' SHIP_SHEETS_ID")

7 53 - access ("RY". "" REQ_ID '=' SQ. ("' REQ_ID")

54 8 - filter ("RY". "FY" > = 2014 AND 'RY' "." " (FY' < = 2020)

55-11 - access ("TRO". "FISCAL YEAR" (+) = "P1" "." " THE EXERCISE"AND"TRO ". "' TRAVEL_ID ' (+) ="T ". ("' TRAVEL_ID")

56 15 - access ("T". "' SHIP_SHEETS_ID ' (+) ="SS ". ("' SHIP_SHEETS_ID")

57 16 - access ("SS". "AVAILABILITY_TYPE_ID"= 'A'." AVAILABILITY_TYPE_ID')

58 18 - access (ROWID = ROWID)

59 21 - access ("SS". "PE_ID"="P" "." PE_ID')

60 23 - access ("SS". "HULL_ID"="H" "." HULL_ID')

61 24 - filter ("SS". ("NSA_WORKSITE_ID" = 11)

62 25 - access ("SS". ("REQ_ID" = 248)

63 26 - access ('H'. "" HULL_CLASS_ID "=" HC ". ("' HULL_CLASS_ID")

64 30 - access ("HC". "ENT_ID"="E" "." " ENT_ID')

filter 65 ("HC". "ENT_ID"="E" "." " ENT_ID')

66 32 - access (ROWID = ROWID)

67 37 - access ("P1". "SHIP_SHEETS_ID"="SS" "." " SHIP_SHEETS_ID')

68 40 - filters ("P". "FY" (+) > = 2014 AND 'P '. "FY" (+) (< = 2020) "

{code}

I see several FULL ACCESS TABLE, I want to improve the speed of this query because the running business manager pays 47% activity.

Can anyone guide my thru?

Thank you!

If the query takes 2 seconds to finish? How many times is the executed query? Do you think that 2 seconds too for this operation?

The query plan does not show errors in the optimizers cardinality estimates. Maybe the COMPLETE TABLE SCANs of 39 and 40 step could be avoided (and corresponding HASH joins replaced by NESTED LOOPS) if there were signs of adjustment - but this does not mean that a NL join with access index would provide a large performance gain.

Without the request, it is difficult to say but I think that access on SHIP_SHEET_ANNUAL_PHASING could use an index on SHIP_SHEET_ANNUAL_PHASING (SHIP_SHEETS_ID, FY) and access on TRAVEL_OVERTIME use an index on TRAVEL_OVERTIME (TRAVEL_ID, FY). So the first question is: these indices exist? The second question is: you can create additional indexes? (In view of the fact that these indices could influence other queries - and not necessarily in a positive way - and they will have a negative impact on DDL operations on the table)

Perhaps the first question is rather: do you need to improve performance at all? The other questions are 2. and 3.

Tags: Database

Similar Questions

  • How to use the tuner DVB - T in Qosmioplayer?

    Hello

    Can someone tell me how to use the tuner DVB - T in Qosmioplayer? It is very much in the media library, but on starting the Qosmioplayer I just get snow like the old analog TV. I can go to my sky box via composite inputs, but want to use TNT an antenna in the drive.

    Hello

    As far as I know the Qosmio player is not able to receive the digital channels.
    Unfortunately, it is not possible.

  • Toshiba 40L7335DG: small delay audio/video using the tuner internal

    Sometimes the video audio delay when you use the tv tuner internal.
    The delay is sometimes small and insignificant, sometimes reach approximately 500 ms.

    When some audio or video settings are set to different values to the default values stay worse.

    Other TV (LG) don't have the problem when using the same signal.

    Hello

    Have Hmm you tried to reset the TV to factory default?
    Do this. I read somewhere else that factory settings could help solve such audio problems.

    I had a similar problem with my TV from another manufacturer using a HiFi amplifier as part of s the TV HDMI port.
    But I could solve it an option in the menu of the amp which decreased the output of audio sync problems.

  • F25: Cannot use TV tuner we in Tuerkey

    Hello world

    I have a serious problem with qosmio f25. my friend bought it for me there are in the United States in a few days and he will bring it to me next week. I live in TURKEY/EUROPE and I'll use it in TURKEY. the problem is if I can use the TV in here or not. It is written that it has the property of NTSC but in my country, there must be a PAL.
    Please help me! I can solve this problem?

    Post edited by: saitemre

    Post edited by: saitemre

    Hello

    As far as I know that you can use the Tv tuner in this country where the phone was purchased. This theme has been discussed in this forum many times.
    Well, I've also read that it of possible to watch television in different countries in Europe on the new Qosmio units. But I m not 100% sure if this info is right.

    Best regards

  • identifier is too long: expdp filtering using QUERY off TABLES =.

    All,

    I run large expdp work using a .bat file.  An example of one of the lines is the following:

    expdp directory "" / as sysdba "" = IMPORT_DB dumpfile=vismag_brightness%%U.dmp logfile = vismag_brightness.log ALL TABLES = sat_cat_owner.vismag_brightness QUERY = sat_cat_owner.vismag_brightness = compression:'------"where exists (" select visual_magnitude_uuid in the sat_cat_owner.visual_magnitude where sat_cat_owner.visual_magnitude.visual_magnitude_uuid=sat_cat_owner.vismag_brightness.visual_magnitude_uuid)\ "')"

    Present the results of .bat to this:

    OracleExportDataPumpIssues.png

    I then tried to put it in a settings file.  As always, you can see in the picture above, he already gave me an error, but I corrected which and he always gave me the same error.  The application was the same as above, only had no slashes return of evasion.

    Now this is why I am sure that I am right escape.  Now, I just need to find the reason for the identifier is too long.

    Here's a picture showing other odd behavior, trying to simplify the query to see if its because the query is too long.  AND if it is because its too long..how for I can config so it can handle?

    OracleSimpler.png

    The difference in the image above, is that the first test has only \"...while the second is what worked for me before top (if I try without the single quotes, it fails on citing the issue for the important query).  So the second cmd, as I have said, has "\" instead of just \"...and it does not work!"  When he did above for the larger request, but it gives error separated.

    Help, please!  Thank you

    Hello

    Try this instead

    Query ='sat_cat_owner.vismag_brightness: "Where exists (select visual_magnitude_uuid from the sat_cat_owner.visual_magnitude where sat_cat_owner.visual_magnitude.visual_magnitude_uuid = ku$ .visual_magnitude_uuid)" "

    Ku$ is an alias of special for the object currently being extraction - I think that in case you want to use exists, you must use this syntax - give it a try and see what happens.

    Other than that can replace you an IN clause instead?

    See you soon,.

    Rich

  • Query Tunning

    Hi all

    I have the problem with the query. Can someone please help me with this...

    I have two tables namely xx_all and xx_lines_all

    xx_all has the following features

    flag of name alot_num

    1450 XXX Y

    1544 XYZ Y

    6598 ABC Y

    and xx_lines_all has the following features

    flag of field ext alot_num

    1450 1265 14 c Y

    1450 6541 15 c Y

    1450 7741 11A Y

    1544-1141-121 c Y

    1544 6541 14A Y

    I want to display the data as follows

    field of alot_num name ext

    1450 XXX 15547 14 c, 15 c, 11A

    1544 XYZ 7682 121C, 14A

    The ext above column is can be defined by group of sum (ext) (from table xx_lines_all) in alot_num (1265-6541-7741 = 15547 for alot_num = 1450)... And all the plots in xx_lines_all should come in one line for this particular alot_number as shown above, 14 c, 15 c, 11A to alot_num = 1450

    However, I am able to view the above format using functions but is at - it another way to display the format desired...

    Currently, there are in bulk records in the table causing delay to see the format for each line function call...

    I wrote functions just this one also check (if necessary)...

    Function to display the values of sum-

    CREATE OR REPLACE FUNCTION XX_EXT (P_ALOT_NUM NUMBER)

    RETURN NUMBER IS

    CURSOR CUR_PLOT_DAT

    IS

    PEX SELECT NVL (SUM (TO_NUMBER (ext)), 0)

    OF xx_lines_all

    WHERE LATEST_FLAG = 'Y '.

    AND ALOT_NUM = P_ALOT_NUM;

    REC_PLOT_DAT CUR_PLOT_DAT % ROWTYPE;

    L_EXT_AREA NUMBER: = 0;

    L_AREA NUMBER: = 0;

    BEGIN

    CUR_PLOT_DAT OPEN;

    LOOP

    EXTRACT THE CUR_PLOT_DAT IN L_EXT_AREA;

    WHEN THE OUTPUT CUR_PLOT_DAT % NOTFOUND;

    L_AREA: = L_EXT_AREA;

    END LOOP;

    CLOSE CUR_PLOT_DAT;

    RETURN (NVL(L_AREA,0));

    END XX_EXT;

    To view the track on one line...

    CREATE OR REPLACE FUNCTION XX_PLOT (P_ALOT_NUM NUMBER)

    RETURN VARCHAR2 IS

    CURSOR CUR_PLOT_DAT

    IS

    SELECT FIELD PEX

    OF XX_LINES_ALL

    WHERE LATEST_FLAG = 'Y '.

    AND ALOT_NUM = P_ALOT_NUM;

    REC_PLOT_DAT CUR_PLOT_DAT % ROWTYPE;

    L_SECTION VARCHAR2 (5000);

    L_PLOT VARCHAR2 (1000);

    BEGIN

    CUR_PLOT_DAT OPEN;

    LOOP

    EXTRACT THE CUR_PLOT_DAT IN REC_PLOT_DAT;

    WHEN THE OUTPUT CUR_PLOT_DAT % NOTFOUND;

    L_SECTION: = L_SECTION | REC_PLOT_DAT. PEX | «, » ;

    END LOOP;

    CLOSE CUR_PLOT_DAT;

    RETURN (NVL (L_SECTION,' '));

    END XX_PLOT;

    Please help me...

    Thanks in advance...

    for 11g:

    Select t1.alot_num, t1.name, sum (t2.ext), listagg (t2.plot) within the Group (order by rownum)

    of xx_all t1

    Join the t2 xx_lines_all

    On t1.alot_num = t2.alot_num

    -I forgot to group of

    T1.alot_num group, t1.name

    less than 11g watch "String aggregation"

    Re: 4. How can I convert rows to columns?

    ----

    Ramin Hashimzade

    Post edited by: Ramin Hashimzadeh

  • Beginner: cannot use query for CIGARS if a service has multiple PID!

    Hello

    I'm new to Hyperic, I'm stuck on a problem. When I set up a service for orders I get below the below error messages. Basically, what I'm trying to do is SIGAR to allows to run a qurey to see if a particular service is running. If a service has multiple PID I get the error message below. I tried to use the Pavilion parent, but still no luck. Can someone help me please?

    Nfsd nfsd, State.Name.Pne = State.Name.eq = nfsd or State.Name.eq =

    Error:

    The configuration has not been set for this resource due to: invalid configuration: error recovery value: impossible to call getProcCpu [State.Name.eq = nfsd]: query several (8) process mapping: State.Name.eq = nfsd

    Thank you

    Hmm, don't know how nfsd is implemented, but if you run the following:
    java-jar sigar.jar State.Name.eq pinfo = nfsd

    You'll see they all have the same parent pid (1 == init), so that the P indicator will not help the way it does for example httpd.
    You can simply use the Multiprocessue function instead, which works perfectly with State.Name.eq = nfsd

  • Unable to get the search using query RIDC idc on Protocol

    Hi all

    I'm having a strange problem when querying ucm using CRMI.

    When I use the connection of client for the idc as protocol below

    IdcClient idcClient = manager.createClient ("idc://abc.xyz.com: < port >");

    result is null.

    but when I use the connection of client for HTTP as below

    IdcClient idcClient = manager.createClient ("http://abc.xyz.com:16200/cs/idcplg"); ")
    game is not null. I get the content

    I use the weblogic user to create the connection that my code is as below

    IdcClientManager Manager = new IdcClientManager ();
    try {}

    Create a new connection to IdcClient idc on Protocol (i.e. connection socket for content server)
    IdcClient idcClient = manager.createClient ("idc://hostname:intradocserverport"); It does not work

    to use the connection through the web - start
    IdcClient idcClient = manager.createClient ("http://abc.xyz.com:16200/cs/idcplg"); ")
    UserContext IdcContext = new IdcContext ("weblogic", "weblogic1");
    DataBinder dataBinder = idcClient.createBinder ();
    dataBinder.putLocal ("IdcService", "GET_SEARCH_RESULTS");
    dataBinder.putLocal ("QueryText", "xRegionDefinition < match > 'NEWS_RD' < AND > xWebsiteObjectType < match >"Data file"");
    ServiceResponse response =
    idcClient.sendRequest (dataBinder, userContext);
    DataBinder responsed = response.getResponseAsBinder ();
    DataResultSet = myDataResultSet
    responsed.getResultSet ("SearchResults");
    int i = myDataResultSet.getRows () .size ();
    If (i == 0) {}

    System.out.println ("found content no.");
    } else {}
    System.out.println ("content is present");
    }

    } catch (IdcClientException e) {}
    System.out.println ("inside the exception" + e.getStackTrace ());
    }
    }

    I cannot understand why its happening.
    I spent we I could search using idc also, but then many use same AAU so someone might have changed some configurations that I can't understand

    Is your WLS server running and available to the managed server admin? Or you run the server managed mode the independence? If the server administrator is not available, applications via the Protocol of idc using "external" (like weblogic) users will fail. However the http requests will continue to work.

    One way to test this is to use "sysadmin" as the user when it connects using the Protocol of the idc. If it works, then this probably means that WLS server admin is unavailable.

  • Query Tunning of Sql performance

    Hello

    I have A table with size tables plus 120,000002 million are size 2 million on the Table B and less than 1 million on table C.

    I had created the Partition and parallel degree 4 on the table Created A. table B with parallel degree 2 and created table C with NOPARALLEL.

    My query is using above tables with joins and insertion in table D use INDICATOR / * + APPEND NOLOGGING * /.
    I ran the command explain on the above criteria, the cost is showing 20767.

    More later created the tables A, B and C with NOPARALLEL. Applied the TIP on Table D / * + APPEND NOLOGGING * /.
    and applied als HINT / * + PARALLEL(A, 4) select PARALLEL(B C, 2) on a query that uses to insert in table D.


    My question, which advised on the creation of PARALLEL degree at the level of the table or query:


    (a) create table with parallel (level 4)

    (b) applying HINT / * + PARALLEL (TABLE A, 4) * / at the level of the query

    Kind regards
    Prakash

    957901 wrote:
    Hello

    I have A table with size tables plus 120,000002 million are size 2 million on the Table B and less than 1 million on table C.

    I had created the Partition and parallel degree 4 on the table Created A. table B with parallel degree 2 and created table C with NOPARALLEL.

    My query is using above tables with joins and insertion in table D use INDICATOR / * + APPEND NOLOGGING * /.
    I ran the command explain on the above criteria, the cost is showing 20767.

    The cost is meaningless out of context.

    More later created the tables A, B and C with NOPARALLEL. Applied the TIP on Table D / * + APPEND NOLOGGING * /.
    and applied als HINT / * + PARALLEL(A, 4) select PARALLEL(B C, 2) on a query that uses to insert in table D.

    My question, which advised on the creation of PARALLEL degree at the level of the table or query:

    (a) create table with parallel (level 4)

    (b) applying HINT / * + PARALLEL (TABLE A, 4) * / at the level of the query

    According to what works best for you to reach.

    Which is another way of saying that you have not provided enough information for anyone here to take an informed decision or a suggestion for you.

    {message: id = 9360002}

    For performance issues/tuning queries, read two threads related to this FAQ: {message identifier: = 9360003}

  • Search without using query region page

    Dear all,

    I have an obligation to build a custom page of the OPS to search for employee information. But as you know that if I use the query region then the parameterized filed should be displayed. But here I should add a parameter "in Date" and which go between the Effective Date of start and end Date.

    Please let me know any solution as soon as possible.

    Thank you.


    Kind regards
    AD

    Adnan,

    Retrieve the value entered by user & even switch to the vo.

    Kind regards
    GYAN

  • using Query... three conditions

    Hi all

    I have a table with the following data

    EmpNo emptype empstatus
    best Active 1
    2 good fall
    3 best assets
    1 good cancel
    4 good left
    5

    This table consists of three columns
    EmpType has two distinct values - well, better
    Empstatus consists of a single State - Active for best type
    Empstatus is to cancel the State three - Drop, left for the right type.
    A PMC can get either one of these three State in good type

    The highest level of the type is best followed by good

    A PMC can get the types

    I need to get the highest level of the status achieved so far for an EMP
    For example, emp 1 has got two types of best and good
    Then exit to emp 1 will be

    EmpNo higheststatus
    1 active

    If the PGE did not have everything, it should display NULL.

    The output for the above data should be
    EmpNo higheststatus
    1 active
    2 drop
    3 assets
    4 left
    5

    Thank you very much for your help!

    I don't want to use ~ in the application mainly
    The min and max are so confused
    It has nothing to do with alphabetical order...

    It has everything to do with alphabetical order. "~" is just the character earlier in the sort order of the ascii characters - this is AFTER A... Z and a... z.

    The min and max are so confused

    As NVL, you should learn what they do. I used MAX in the solution below. You MUST use the Min or Max to search for the correct line when you have multiple lines to an empno.

    I wanted to use something like case / if else or simple method

    Your so-called 'easy' with CASE method is below. It took a lot more time to develop.

    I have no time now... I need to do today...

    Good luck!!! :-)

    create table emp
        (empno varchar2(5), emptype varchar2(7), empstatus varchar2(9) );
    Insert into emp values('1', 'best', 'Active');
    Insert into emp values('2', 'good', 'drop');
    Insert into emp values('3', 'best', 'Active');
    Insert into emp values('1', 'good', 'cancel');
    Insert into emp values('4', 'good', 'left');
    Insert into emp values('5',  null,   null);
    set feedback on
    select * from emp order by empno,emptype;
    
    EMPNO EMPTYPE EMPSTATUS
    ----- ------- ---------
    1     best    Active
    1     good    cancel
    2     good    drop
    3     best    Active
    4     good    left
    
    Column t_high format a6
    
    Select empno,
           Case when emptype='best'  then '3'
                when emptype='good'  then '2'
                when emptype is null then '0'
                else                      '1'
           End as t_high,
           emptype
           from emp
    order by empno;
    
    EMPNO T_HIGH EMPTYPE
    ----- ------ -------
    1     3      best
    1     2      good
    2     2      good
    3     3      best
    4     2      good
    5     0
    
    6 rows selected.
    
    column t_max format a6
    Select empno,
           Max(Case when emptype='best'  then '3'
                    when emptype='good'  then '2'
                    when emptype is null then '0'
                    else                      '1'
               End)   as t_max
      from emp
      group by empno
    order by empno;
    
    EMPNO T_MAX
    ----- ------
    1     3
    2     2
    3     3
    4     2
    5     0
    
    5 rows selected.
    
    select empno, empstatus
     from emp
     where ( empno,
             Case when emptype='best'  then '3'
                  when emptype='good'  then '2'
                  when emptype is null then '0'
                  else                      '1'
             End )
        IN (Select empno,
             Max(Case when emptype='best'  then '3'
                      when emptype='good'  then '2'
                      when emptype is null then '0'
                      else                      '1'
                 End )
             from emp
             group by empno )
     order by empno;
    
    EMPNO EMPSTATUS
    ----- ---------
    1     Active
    2     drop
    3     Active
    4     left
    5
    
    5 rows selected.
    
  • Fire of process on click of the link using query type

    APEX 3.2.0.0.27

    I have a report region based on a qry with links. Each line has a link to separate the region on the same page. I want a process to fire (manual data select the process for the region linked) when the link is clicked. The link is displayed as a button change. I set the link for an application. How to identify the application that should fire when the user clicks on the link. I also defined a separate button named: QRY. The actual process (after submit process) it's fire is conditionial on the express request = 1 IN the expression 1 column, I entered the name of the button (QRY).

    However the after submit the process is not fired.

    So, how to correlate the process consisting in fires when the user clicks on the link. Do not confuse the link which is represented by a button here, but in fact I have this link button, but also a 'normal' button which bears the name of QRY. When I click on the actual button named QRY then my process is triggered. However, it did not when the user clicks on the link 'button '.

    What I am doing wrong?

    So what you have is lines of report that can be presented in many ways, as well as the value of an other Item (Hidden)

    Can think of two ways

  • 1 concatenate the PK value with the request, use the PLSQL substr (substring) on demand to identify the type of demand but also to extract the value of the KP.

    JavaScript: doSubmit('SAVE_#PK_COLUMN_ALIAS#');

    Request: SUBSTR (: REQUEST, 1, INSTR(:REQUEST,'_')-1) and PK value is SUBSTR (: REQUEST, INSTR(:REQUEST,'_') + 1)
    Then assign the item suitable in a bidding process

  • Another method is to assign the item directly

    JavaScript: $s('','#PK_COLUMN_ALIAS#'); doSubmit('SAVE_#DEPT_NAME#');

    Replace the with the name of the page to put element
    Make sure that the item is not protected (this is the default option for the hidden items)

  • BSE response using query data mapping

    Hi all

    I have a BSCS forwarding service that calls a SOAP service sinchronously a return of the response of the deal. Do you know if there is a way to use map application data when you map the answer?

    I know that you can use the data of the request sent to the SOAP service using the ESBREQUEST variable but can you access the data received as a request for the routing service?

    Thanks in advance,
    Concerning

    Data enrichment is difficult to achieve because you cannot declare variables in Oracle ESB project to store temporary data. ALSB has such a mechanism.

    The ESBREQUEST parameter can solve this problem in some cases of BSE Oracle. However if you need to process the data of "all the time in your ESB flow" which will not. Some possibilities are: use BPEL instead of BSE to implement these composite services from BPEL can store data to process. However, this will give you a penalty of apreformance given that BSE is faster. Or use a hack where you disable the BSE payload validation (default value is already disabled), concatenate the XML data of origin for data entry service SOAP, and now you can access data of origin through ESBREQUEST. However, this is a hack (that you send an invalid XML according to the XSD of the SOAP service) and the XSL mapping tool will be able to visually display the mapping.

    Best regards, Ronald

  • should I use a tune up drive offered by my internet provider has a monthly fee

    I'm not sure if this is necessary.  have two computers laptop a dell inspiron which is getting old.  last years Toshiba model

    What is the beta?

    I'm not sure if this is necessary.  have two computers laptop a dell inspiron which is getting old.  last years Toshiba model

    MY HUMBLE OPINION

    Secure your money.

    UTC/GMT is 19:31 on Saturday, May 19, 2012

  • Using Query Confusion in group by

    Hello

    Oracle 11.2.0.1
    Windows XP

    create table custtran (number custno, zone number, prodid varchar2 (1));
    insert into custtran values (10.3, 'Z');
    insert into custtran values (20.4, 'R');
    insert into custtran values (12.2, 'K');
    insert into custtran values (21.4, 'K');
    insert into custtran values (39.3, ');
    insert into custtran values (5,3, 'X');
    commit;

    Power required: (control box, CustNo) Count: number of lines.
    CustNo    Area   Count   Prodid
    12        2      1       K
    5         3      3       X
    10        3      3       Z   
    39        3      3       M
    20        4      2       R
    21        4      2       K
    When I said the group by box, custno I am not able to get the number (only 1) and if I said domain group, he returned to County, but not all the custnos. Please help me.
    SQL> create table custtran(custno number,area number,prodid varchar2(1));
    
    Table created.
    
    SQL> insert into custtran values (10,3,'Z');
    
    1 row created.
    
    SQL> insert into custtran values (20,4,'R');
    
    1 row created.
    
    SQL> insert into custtran values (12,2,'K');
    
    1 row created.
    
    SQL> insert into custtran values (21,4,'K');
    
    1 row created.
    
    SQL> insert into custtran values (39,3,'M');
    
    1 row created.
    
    SQL> insert into custtran values (5,3,'X');
    
    1 row created.
    
    SQL> select custno
      2  ,      area
      3  ,      count(*) over (partition by area) cnt
      4  ,      prodid
      5  from   custtran;
    
        CUSTNO       AREA        CNT P
    ---------- ---------- ---------- -
            12          2          1 K
             5          3          3 X
            39          3          3 M
            10          3          3 Z
            20          4          2 R
            21          4          2 K
    
    6 rows selected.
    

Maybe you are looking for

  • Satellite Pro 4330: code error error IDE #1

    Hello I had old satellite pro 4330 but I got the IDE error #1 error code, what can I do? I need help please! Thanx

  • Re: Qosmio G30 - RAID of the problems when installing the OS

    I got my Qosmio G30-161 for half a year and he had thought should be time to reinstall everything, so I could get rid of things I didn't need (programs, viruses and uninteresting video clips). So I took my XP MCE Cd and tried to install, and I am gui

  • Can I share pictures and videos via Bluetooth to an android device?

    mini iPad - 12.7 GB capacity I can't find a Bluetooth icon when I click the button share. And I can't share a photo from an even android device with a paired device. It is a problem for Apple in Myanmar because the internet connection is not very goo

  • True and false - combinations

    Hello I have three Boolean values in my code, and another part of the combination of their values (true or false) control code. Since there are three Boolean types, and they can be true or false, I have 8 possible combinations (2 ^ 3). What should I

  • Under the factory warranty power adapter?

    Hey all,. I was wondering if anyone knows, is the original area covered by a factory warranty adapter?  I got it for a few months and unfortunately I already need to get a new one. Thank you -Rebecca