Set the 'Not available' application via the SQL statement

Hi, I am trying to automate the deployment of applications and wonder if anyone knows how I could define the "Unavailable" via a SQL script application. In the views of the APEX_030200 scheme, there is a view called "APEX_APPLICATIONS" with "AVAILABILITY_STATUS" and "UNAVAILABLE_TEXT" columns What I want to do is to run a statement that sets the 'Not AVAILABLE' application before you run the import script.
Thanks, J

Hello:

You can use the 'wwv_flow_api' to set the State of the application

DECLARE
ws_id number;
BEGIN
select max( workspace_id) into ws_id from apex_applications ;
wwv_flow_api.set_security_group_id(ws_id);

wwv_flow_api.set_flow_status (
    p_flow_id => :app_id,
    p_flow_status => 'UNAVAILABLE',
    p_flow_status_message  =>'Application being updated...')
    ;
end;

The valid values for p_flow_status are
'AVAILABLE. '
"AVAILABLE_W_EDIT_LINK,"
"AVAILABLE_W_INLINE_EDIT,"
"DEVELOPERS_ONLY,"
"UNAVAILABLE_URL,"
"UNAVAILABLE_PLSQL,"
"RESTRICTED_ACCESS,"
"UNAVAILABLE".

CITY

Tags: Database

Similar Questions

  • Setting the SQL SQL Developer

    Hello all: I have a small question:

    What exactly is the SQL tuning advisor advising me to do?  Usually he will specify to create an index or something similar, but I'll have trouble deciphering the underside of deliberation.

    Thanks for your help and have a great day!

    Aqua

    Profile search SQL (see explain the plans below)

    --------------------------------------------------------

    A potentially better execution plan found for this statement.

    Recommendation (estimated delivery < = 10%)

    ---------------------------------------

    -Consider accepting the recommended SQL profile.

    run dbms_sqltune.accept_sql_profile (task_name = > 'staName20789',)

    replace = > TRUE);

    ------------------------------------------------------------------------------

    EXPLAIN SECTION PLANES

    -------------------------------------------------------------------------------

    1 original

    -----------

    Hash value of plan: 2311080268

    ------------------------------------------------------------------------------------------------------------
    | Id  | Operation                       | Name             | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    ------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                |                  |  1052 |    99K|       |   730   (3)| 00:00:09 |
    |   1 |  HASH GROUP BY                  |                  |  1052 |    99K|       |   730   (3)| 00:00:09 |
    |*  2 |   HASH JOIN OUTER               |                  |  1052 |    99K|       |   729   (2)| 00:00:09 |
    |*  3 |    FILTER                       |                  |       |       |       |            |          |
    |*  4 |     HASH JOIN OUTER             |                  |   572 | 40040 |       |   275   (3)| 00:00:04 |
    |*  5 |      HASH JOIN RIGHT ANTI       |                  |   362 | 20634 |       |   223   (4)| 00:00:03 |
    |   6 |       VIEW                      | MEDICAL_LEAVE    |   125 |   625 |       |   103   (4)| 00:00:02 |
    |   7 |        VIEW                     |                  |   125 |  6625 |       |   103   (4)| 00:00:02 |
    |*  8 |         FILTER                  |                  |       |       |       |            |          |
    |*  9 |          HASH JOIN OUTER        |                  |   125 |  8750 |       |   103   (4)| 00:00:02 |
    |  10 |           VIEW                  |                  |    94 |  5358 |       |    69   (3)| 00:00:01 |
    |* 11 |            FILTER               |                  |       |       |       |            |          |
    |* 12 |             HASH JOIN OUTER     |                  |    94 |  2632 |       |    69   (3)| 00:00:01 |
    |* 13 |              TABLE ACCESS FULL  | EMP_LEAVE        |    60 |   900 |       |    17   (6)| 00:00:01 |
    |  14 |              TABLE ACCESS FULL  | EMP_CONTRACT     | 11156 |   141K|       |    52   (2)| 00:00:01 |
    |  15 |           TABLE ACCESS FULL     | POSITION_OFFERED |  9420 |   119K|       |    33   (4)| 00:00:01 |
    |* 16 |       HASH JOIN                 |                  |   376 | 19552 |       |   119   (2)| 00:00:02 |
    |* 17 |        TABLE ACCESS FULL        | POSITION_OFFERED |   376 |  6392 |       |    33   (4)| 00:00:01 |
    |* 18 |        TABLE ACCESS FULL        | AMPEMP           |  2579 | 90265 |       |    86   (2)| 00:00:02 |
    |  19 |      TABLE ACCESS FULL          | EMP_CONTRACT     | 11156 |   141K|       |    52   (2)| 00:00:01 |
    |  20 |    VIEW                         |                  |  4572 |   120K|       |   453   (2)| 00:00:06 |
    |  21 |     HASH GROUP BY               |                  |  4572 |   825K|  1992K|   453   (2)| 00:00:06 |
    |  22 |      VIEW                       |                  |  4572 |   825K|       |   265   (2)| 00:00:04 |
    |  23 |       MERGE JOIN PARTITION OUTER|                  |  4572 |   263K|       |   265   (2)| 00:00:04 |
    |  24 |        SORT JOIN                |                  |    18 |   774 |       |     4  (25)| 00:00:01 |
    |  25 |         TABLE ACCESS FULL       | LU_MED_IMMUNO    |    18 |   774 |       |     3   (0)| 00:00:01 |
    |* 26 |        SORT PARTITION JOIN      |                  |  2731 | 43696 |       |     6  (17)| 00:00:01 |
    |  27 |         TABLE ACCESS FULL       | MED_IMMUNO       |  2731 | 43696 |       |     5   (0)| 00:00:01 |
    ------------------------------------------------------------------------------------------------------------
    

    Name of the query block / Alias object (identified by the operation identity card):

    -------------------------------------------------------------

    1 SALT$ DD824119

    6 SALT$ 12 / ML@SEL$7

    7 - SALT$ CCA5E655 / from$_subquery$_020@SEL$12

    8 SALT$ CCA5E655

    10 - SALT$ A0D20652 / from$_subquery$_018@SEL$11

    11 SALT$ A0D20652

    13 SALT$ A0D20652 / EL@SEL$9

    14 SALT$ A0D20652 / EC@SEL$8

    15 SALT$ CCA5E655 / PO@SEL$10

    17 SALT$ DD824119 / PO@SEL$3

    18 SALT$ DD824119 / AE@SEL$4

    19 SALT$ DD824119 / EC@SEL$5

    20 SALT$ 16 / BT@SEL$1

    21 SALT$ 16

    22 - SALT$ 15 / from$_subquery$_003@SEL$16

    23 SALT $15

    25 SALT$ 15 / LMI@SEL$15

    27 SALT$ 15 / MI@SEL$15

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    2 - access("AE".") EMP_ID '=' BT '. "EMP_ID" (+)) "

    3 - filter("EC".") (ACTUAL_END"IS NULL)

    4 - access("AE".") EMP_ID '=' EC '. "EMP_ID" (+)) "

    5 - access("AE".") EMP_ID '=' ML '. ("' EMP_ID ')

    8 - filter("PO".") (ACTUAL_END"IS NULL)

    9 - access("PO".") EMP_ID' (+) = 'EL '. ("' EMP_ID ')

    11 - filter("EC".") (ACTUAL_END"IS NULL)

    12 - access("EC".") EMP_ID' (+) = 'EL '. ("' EMP_ID ')

    13 - filter("EL".") LEAVE_END' IS NULL AND 'EL '. "LEAVE_TYPE"= 6)

    16 - access("AE".") EMP_ID '=' PO '. ("' EMP_ID ')

    17 - filter("PO".") ACTUAL_END' IS NULL AND 'PO '. ("' HOUSED <>' 30)

    18 - filter("AE".") (CITIZENSHIP", <>1)

    26 - access("LMI".") WITH THE ID '=' MI '. ("' IMM_REC")

    filter ("LMI". "WITH THE '=' MI' ID '." " IMM_REC')

    Projection of the column information (identified by the operation identity card):

    -----------------------------------------------------------

    1 (#keys = 3) "AE". "CLOCK_NUMBER" [VARCHAR2, 11], "Æ" "." " LAST_NAME ' [VARCHAR2, 45],

    "AE". "FIRST NAME" [VARCHAR2, 35], MAX (DECODE (TO_CHAR ("BT" "."))) " ID'), '1', TO_CHAR (INTERNAL_FUNCTION ("BT". "MY

    ((XDATE'), 'DD-MON-YYYY'), NULL)) [11], MAX (DECODE (TO_CHAR ("BT". "' ' 'ID'), '2', TO_CHAR (INTERNAL_FUNCTION ("BT"." ""

    (('MAXDATE'), 'DD-MON-YYYY'), NULL)) [11], MAX (DECODE (TO_CHAR ("BT". "ID"), "3", TO_CHAR (INTERNAL_FUNCTION ("B

    « « « T ». » ((MAXDATE'), 'DD-MON-YYYY'), NULL)) [11], MAX (DECODE (TO_CHAR ("BT". "' ' 'ID'), '5', TO_CHAR (INTERNAL_FUNCTION" ""

    ('BT'. (((("' MAXDATE '), 'DD-MON-YYYY'), NULL)) [11], MAX (DECODE (TO_CHAR ("BT". "ID"), "6", TO_CHAR (INTERNAL_FUNCT

    ION ("BT". "MAXDATE'), 'DD-MON-YYYY')(, NULL)) [11], MAX (DECODE (TO_CHAR ("BT"." ID"),"8", TO_CHAR (INTERNAL_FU

    FUNCTION ("BT". "MAXDATE'), 'DD-MON-YYYY')(, NULL)) [11],"

    MAX (DECODE (TO_CHAR ("BT". "ID"), "9", TO_CHAR (INTERNAL_FUNCTION ("BT"." ((MAXDATE'), 'DD-MON-YYYY'), NULL)) [11

    ], MAX (DECODE (TO_CHAR ("BT". "' ' 'ID'), '10', TO_CHAR (INTERNAL_FUNCTION ("BT"." "" (MAXDATE'), 'DD-MON-YYYY'), NULL)

    ) [11].

    2. (#keys = 1) "AE". "LAST_NAME" [VARCHAR2, 45], "Æ" "." " FIRST NAME ' [VARCHAR2, 35],

    "AE". "CLOCK_NUMBER" [VARCHAR2, 11], 'BT' "." " MAXDATE "[DATE, 7], 'BT'". "" ID '[NUMBER, 22].

    3. "AE". "EMP_ID" [NO.22], "Æ" "." " LAST_NAME "[VARCHAR2, 45],"Æ"". "" FIRST NAME ' [VARCHAR2, 35],

    "AE". "CLOCK_NUMBER" [VARCHAR2, 11].

    4. (#keys = 1) "AE". "EMP_ID" [NO.22], "Æ" "." " LAST_NAME ' [VARCHAR2, 45],

    "AE". "FIRST NAME" [VARCHAR2, 35], "Æ" "." " CLOCK_NUMBER "[VARCHAR2, 11], 'CBS'". "" ACTUAL_END "[DATE, 7].

    5 (#keys = 1) "AE". "EMP_ID" [NO.22], "Æ" "." " FIRST NAME ' [VARCHAR2, 35],

    "AE". "CLOCK_NUMBER" [VARCHAR2, 11], "Æ" "." " LAST_NAME ' [VARCHAR2, 45].

    6 ' ML '. ' EMP_ID '[NUMBER, 22].

    7. "EL". ' EMP_ID '[NUMBER, 22].

    8. "EL". ' EMP_ID '[NUMBER, 22].

    9. (#keys = 1) 'EL '. "EMP_ID" [NO.22], "PO" "." " ACTUAL_END "[DATE, 7].

    10. "EL". ' EMP_ID '[NUMBER, 22].

    11. "EL". ' EMP_ID '[NUMBER, 22].

    12. (#keys = 1) 'EL '. "EMP_ID" [NO.22], 'CBS' "." " ACTUAL_END "[DATE, 7].

    13. "EL". ' EMP_ID '[NUMBER, 22].

    14. 'EC '. "EMP_ID" [NO.22], 'CBS' "." " ACTUAL_END "[DATE, 7].

    15. "PO." "EMP_ID" [NO.22], "PO" "." " ACTUAL_END "[DATE, 7].

    16. (#keys = 1) "AE". "EMP_ID" [NO.22], "Æ" "." " CLOCK_NUMBER ' [VARCHAR2, 11],

    "AE". "LAST_NAME" [VARCHAR2, 45], "Æ" "." " FIRST NAME ' [VARCHAR2, 35].

    17 "IN." ' EMP_ID '[NUMBER, 22].

    18. "AE". "EMP_ID" [NO.22], "Æ" "." " CLOCK_NUMBER "[VARCHAR2, 11],"Æ"". "" LAST_NAME ' [VARCHAR2, 45],

    "AE". "FIRST NAME" [VARCHAR2, 35].

    19. "EC". "EMP_ID" [NO.22], 'CBS' "." " ACTUAL_END "[DATE, 7].

    20. "BT". "EMP_ID" [NO.22], 'BT' "." " ID "[NO.22], 'BT'". "" MAXDATE '[DATE, 7].

    21. (#keys = 6) "MI". "EMP_ID" [NO.22], "LMI" "." " ID "[NO.22],"LMI"". "" IMM_DESC ' [VARCHAR2, 55],

    "LMI". "DRUG" [VARCHAR2, 55], "LMI" "." " SERIES "[VARCHAR2, 55],"LMI"". "" DSB "[NO.22], MAX ("IMM_DATE") [7]"

    22. "MI". "EMP_ID" [NO.22], "LMI" "." " ID "[NO.22],"LMI"". "" IMM_DESC ' [VARCHAR2, 55],

    "LMI". "DSB" [NO.22], "LMI" "." " DRUG "[VARCHAR2, 55],"LMI"". "" SERIES "[VARCHAR2, 55],"IMM_DATE "[DATE, 7]"

    23. (#keys = 0) "LMI". "ID" [NO.22], 'MI' "." " EMP_ID "[NO.22],"LMI"". "" SERIES "[VARCHAR2, 55],

    "LMI". "IMM_DESC" [VARCHAR2, 55], "LMI" "." " DSB "[NO.22],"LMI"". "" DRUG "[VARCHAR2, 55],

    "MI". "IMM_DATE"[DATE, 7].

    24. (#keys = 1) "LMI". "ID" [NO.22], "LMI" "." " SERIES "[VARCHAR2, 55],"LMI"". "" IMM_DESC ' [VARCHAR2, 55],

    "LMI". "DSB" [NO.22], "LMI" "." " DRUG "[VARCHAR2, 55].

    25. "DIA." "ID" [NO.22], "LMI" "." " IMM_DESC "[VARCHAR2, 55],"LMI"". "" DSB '[NUMBER, 22],

    "LMI". "DRUG" [VARCHAR2, 55], "LMI" "." " SERIES "[VARCHAR2, 55].

    26. (#keys = 1) "MI". "EMP_ID" [NO.22], 'MI' "." " IMM_REC "[NO.22], 'MI'". "" IMM_DATE "[DATE, 7].

    27. "MI". "EMP_ID" [NO.22], 'MI' "." " IMM_REC "[NO.22], 'MI'". "" IMM_DATE "[DATE, 7].

    2 original with adjusted

    ------------------------------

    Hash value of plan: 2311080268

    ------------------------------------------------------------------------------------------------------------
    | Id  | Operation                       | Name             | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    ------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                |                  |   151 | 14647 |       |   730   (3)| 00:00:09 |
    |   1 |  HASH GROUP BY                  |                  |   151 | 14647 |       |   730   (3)| 00:00:09 |
    |*  2 |   HASH JOIN OUTER               |                  |   151 | 14647 |       |   729   (2)| 00:00:09 |
    |*  3 |    FILTER                       |                  |       |       |       |            |          |
    |*  4 |     HASH JOIN OUTER             |                  |    14 |   980 |       |   275   (3)| 00:00:04 |
    |*  5 |      HASH JOIN RIGHT ANTI       |                  |     9 |   513 |       |   223   (4)| 00:00:03 |
    |   6 |       VIEW                      | MEDICAL_LEAVE    |    21 |   105 |       |   103   (4)| 00:00:02 |
    |   7 |        VIEW                     |                  |    21 |  1113 |       |   103   (4)| 00:00:02 |
    |*  8 |         FILTER                  |                  |       |       |       |            |          |
    |*  9 |          HASH JOIN OUTER        |                  |    21 |  1470 |       |   103   (4)| 00:00:02 |
    |  10 |           VIEW                  |                  |   332 | 18924 |       |    69   (3)| 00:00:01 |
    |* 11 |            FILTER               |                  |       |       |       |            |          |
    |* 12 |             HASH JOIN OUTER     |                  |   332 |  9296 |       |    69   (3)| 00:00:01 |
    |* 13 |              TABLE ACCESS FULL  | EMP_LEAVE        |   210 |  3150 |       |    17   (6)| 00:00:01 |
    |  14 |              TABLE ACCESS FULL  | EMP_CONTRACT     | 11156 |   141K|       |    52   (2)| 00:00:01 |
    |  15 |           TABLE ACCESS FULL     | POSITION_OFFERED |  9420 |   119K|       |    33   (4)| 00:00:01 |
    |* 16 |       HASH JOIN                 |                  |   376 | 19552 |       |   119   (2)| 00:00:02 |
    |* 17 |        TABLE ACCESS FULL        | POSITION_OFFERED |   376 |  6392 |       |    33   (4)| 00:00:01 |
    |* 18 |        TABLE ACCESS FULL        | AMPEMP           |  2579 | 90265 |       |    86   (2)| 00:00:02 |
    |  19 |      TABLE ACCESS FULL          | EMP_CONTRACT     | 11156 |   141K|       |    52   (2)| 00:00:01 |
    |  20 |    VIEW                         |                  |  4572 |   120K|       |   453   (2)| 00:00:06 |
    |  21 |     HASH GROUP BY               |                  |  4572 |   825K|  1992K|   453   (2)| 00:00:06 |
    |  22 |      VIEW                       |                  |  4572 |   825K|       |   265   (2)| 00:00:04 |
    |  23 |       MERGE JOIN PARTITION OUTER|                  |  4572 |   263K|       |   265   (2)| 00:00:04 |
    |  24 |        SORT JOIN                |                  |    18 |   774 |       |     4  (25)| 00:00:01 |
    |  25 |         TABLE ACCESS FULL       | LU_MED_IMMUNO    |    18 |   774 |       |     3   (0)| 00:00:01 |
    |* 26 |        SORT PARTITION JOIN      |                  |  2731 | 43696 |       |     6  (17)| 00:00:01 |
    |  27 |         TABLE ACCESS FULL       | MED_IMMUNO       |  2731 | 43696 |       |     5   (0)| 00:00:01 |
    ------------------------------------------------------------------------------------------------------------
    

    Name of the query block / Alias object (identified by the operation identity card):

    -------------------------------------------------------------

    1 SALT$ DD824119

    6 SALT$ 12 / ML@SEL$7

    7 - SALT$ CCA5E655 / from$_subquery$_020@SEL$12

    8 SALT$ CCA5E655

    10 - SALT$ A0D20652 / from$_subquery$_018@SEL$11

    11 SALT$ A0D20652

    13 SALT$ A0D20652 / EL@SEL$9

    14 SALT$ A0D20652 / EC@SEL$8

    15 SALT$ CCA5E655 / PO@SEL$10

    17 SALT$ DD824119 / PO@SEL$3

    18 SALT$ DD824119 / AE@SEL$4

    19 SALT$ DD824119 / EC@SEL$5

    20 SALT$ 16 / BT@SEL$1

    21 SALT$ 16

    22 - SALT$ 15 / from$_subquery$_003@SEL$16

    23 SALT $15

    25 SALT$ 15 / LMI@SEL$15

    27 SALT$ 15 / MI@SEL$15

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    2 - access("AE".") EMP_ID '=' BT '. "EMP_ID" (+)) "

    3 - filter("EC".") (ACTUAL_END"IS NULL)

    4 - access("AE".") EMP_ID '=' EC '. "EMP_ID" (+)) "

    5 - access("AE".") EMP_ID '=' ML '. ("' EMP_ID ')

    8 - filter("PO".") (ACTUAL_END"IS NULL)

    9 - access("PO".") EMP_ID' (+) = 'EL '. ("' EMP_ID ')

    11 - filter("EC".") (ACTUAL_END"IS NULL)

    12 - access("EC".") EMP_ID' (+) = 'EL '. ("' EMP_ID ')

    13 - filter("EL".") LEAVE_END' IS NULL AND 'EL '. "LEAVE_TYPE"= 6)

    16 - access("AE".") EMP_ID '=' PO '. ("' EMP_ID ')

    17 - filter("PO".") ACTUAL_END' IS NULL AND 'PO '. ("' HOUSED <>' 30)

    18 - filter("AE".") (CITIZENSHIP", <>1)

    26 - access("LMI".") WITH THE ID '=' MI '. ("' IMM_REC")

    filter ("LMI". "WITH THE '=' MI' ID '." " IMM_REC')

    Projection of the column information (identified by the operation identity card):

    -----------------------------------------------------------

    1 (#keys = 3) "AE". "CLOCK_NUMBER" [VARCHAR2, 11], "Æ" "." " LAST_NAME ' [VARCHAR2, 45],

    "AE". "FIRST NAME" [VARCHAR2, 35], MAX (DECODE (TO_CHAR ("BT" "."))) " ID'), '1', TO_CHAR (INTERNAL_FUNCTION ("BT". "MY

    ((XDATE'), 'DD-MON-YYYY'), NULL)) [11], MAX (DECODE (TO_CHAR ("BT". "' ' 'ID'), '2', TO_CHAR (INTERNAL_FUNCTION ("BT"." ""

    (('MAXDATE'), 'DD-MON-YYYY'), NULL)) [11], MAX (DECODE (TO_CHAR ("BT". "ID"), "3", TO_CHAR (INTERNAL_FUNCTION ("B

    « « « T ». » ((MAXDATE'), 'DD-MON-YYYY'), NULL)) [11], MAX (DECODE (TO_CHAR ("BT". "' ' 'ID'), '5', TO_CHAR (INTERNAL_FUNCTION" ""

    ('BT'. (((("' MAXDATE '), 'DD-MON-YYYY'), NULL)) [11], MAX (DECODE (TO_CHAR ("BT". "ID"), "6", TO_CHAR (INTERNAL_FUNCT

    ION ("BT". "MAXDATE'), 'DD-MON-YYYY')(, NULL)) [11], MAX (DECODE (TO_CHAR ("BT"." ID"),"8", TO_CHAR (INTERNAL_FU

    FUNCTION ("BT". "MAXDATE'), 'DD-MON-YYYY')(, NULL)) [11],"

    MAX (DECODE (TO_CHAR ("BT". "ID"), "9", TO_CHAR (INTERNAL_FUNCTION ("BT"." ((MAXDATE'), 'DD-MON-YYYY'), NULL)) [11

    ], MAX (DECODE (TO_CHAR ("BT". "' ' 'ID'), '10', TO_CHAR (INTERNAL_FUNCTION ("BT"." "" (MAXDATE'), 'DD-MON-YYYY'), NULL)

    ) [11].

    2. (#keys = 1) "AE". "LAST_NAME" [VARCHAR2, 45], "Æ" "." " FIRST NAME ' [VARCHAR2, 35],

    "AE". "CLOCK_NUMBER" [VARCHAR2, 11], 'BT' "." " MAXDATE "[DATE, 7], 'BT'". "" ID '[NUMBER, 22].

    3. "AE". "EMP_ID" [NO.22], "Æ" "." " LAST_NAME "[VARCHAR2, 45],"Æ"". "" FIRST NAME ' [VARCHAR2, 35],

    "AE". "CLOCK_NUMBER" [VARCHAR2, 11].

    4. (#keys = 1) "AE". "EMP_ID" [NO.22], "Æ" "." " LAST_NAME ' [VARCHAR2, 45],

    "AE". "FIRST NAME" [VARCHAR2, 35], "Æ" "." " CLOCK_NUMBER "[VARCHAR2, 11], 'CBS'". "" ACTUAL_END "[DATE, 7].

    5 (#keys = 1) "AE". "EMP_ID" [NO.22], "Æ" "." " FIRST NAME ' [VARCHAR2, 35],

    "AE". "CLOCK_NUMBER" [VARCHAR2, 11], "Æ" "." " LAST_NAME ' [VARCHAR2, 45].

    6 ' ML '. ' EMP_ID '[NUMBER, 22].

    7. "EL". ' EMP_ID '[NUMBER, 22].

    8. "EL". ' EMP_ID '[NUMBER, 22].

    9. (#keys = 1) 'EL '. "EMP_ID" [NO.22], "PO" "." " ACTUAL_END "[DATE, 7].

    10. "EL". ' EMP_ID '[NUMBER, 22].

    11. "EL". ' EMP_ID '[NUMBER, 22].

    12. (#keys = 1) 'EL '. "EMP_ID" [NO.22], 'CBS' "." " ACTUAL_END "[DATE, 7].

    13. "EL". ' EMP_ID '[NUMBER, 22].

    14. 'EC '. "EMP_ID" [NO.22], 'CBS' "." " ACTUAL_END "[DATE, 7].

    15. "PO." "EMP_ID" [NO.22], "PO" "." " ACTUAL_END "[DATE, 7].

    16. (#keys = 1) "AE". "EMP_ID" [NO.22], "Æ" "." " CLOCK_NUMBER ' [VARCHAR2, 11],

    "AE". "LAST_NAME" [VARCHAR2, 45], "Æ" "." " FIRST NAME ' [VARCHAR2, 35].

    17 "IN." ' EMP_ID '[NUMBER, 22].

    18. "AE". "EMP_ID" [NO.22], "Æ" "." " CLOCK_NUMBER "[VARCHAR2, 11],"Æ"". "" LAST_NAME ' [VARCHAR2, 45],

    "AE". "FIRST NAME" [VARCHAR2, 35].

    19. "EC". "EMP_ID" [NO.22], 'CBS' "." " ACTUAL_END "[DATE, 7].

    20. "BT". "EMP_ID" [NO.22], 'BT' "." " ID "[NO.22], 'BT'". "" MAXDATE '[DATE, 7].

    21. (#keys = 6) "MI". "EMP_ID" [NO.22], "LMI" "." " ID "[NO.22],"LMI"". "" IMM_DESC ' [VARCHAR2, 55],

    "LMI". "DRUG" [VARCHAR2, 55], "LMI" "." " SERIES "[VARCHAR2, 55],"LMI"". "" DSB "[NO.22], MAX ("IMM_DATE") [7]"

    22. "MI". "EMP_ID" [NO.22], "LMI" "." " ID "[NO.22],"LMI"". "" IMM_DESC ' [VARCHAR2, 55],

    "LMI". "DSB" [NO.22], "LMI" "." " DRUG "[VARCHAR2, 55],"LMI"". "" SERIES "[VARCHAR2, 55],"IMM_DATE "[DATE, 7]"

    23. (#keys = 0) "LMI". "ID" [NO.22], 'MI' "." " EMP_ID "[NO.22],"LMI"". "" SERIES "[VARCHAR2, 55],

    "LMI". "IMM_DESC" [VARCHAR2, 55], "LMI" "." " DSB "[NO.22],"LMI"". "" DRUG "[VARCHAR2, 55],

    "MI". "IMM_DATE"[DATE, 7].

    24. (#keys = 1) "LMI". "ID" [NO.22], "LMI" "." " SERIES "[VARCHAR2, 55],"LMI"". "" IMM_DESC ' [VARCHAR2, 55],

    "LMI". "DSB" [NO.22], "LMI" "." " DRUG "[VARCHAR2, 55].

    25. "DIA." "ID" [NO.22], "LMI" "." " IMM_DESC "[VARCHAR2, 55],"LMI"". "" DSB '[NUMBER, 22],

    "LMI". "DRUG" [VARCHAR2, 55], "LMI" "." " SERIES "[VARCHAR2, 55].

    26. (#keys = 1) "MI". "EMP_ID" [NO.22], 'MI' "." " IMM_REC "[NO.22], 'MI'". "" IMM_DATE "[DATE, 7].

    27. "MI". "EMP_ID" [NO.22], 'MI' "." " IMM_REC "[NO.22], 'MI'". "" IMM_DATE "[DATE, 7].

    3. using SQL profile

    --------------------

    Hash value of plan: 1010297951

    ------------------------------------------------------------------------------------------------------------
    | Id  | Operation                       | Name             | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    ------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                |                  |   151 | 14647 |       |   704   (2)| 00:00:09 |
    |   1 |  HASH GROUP BY                  |                  |   151 | 14647 |       |   704   (2)| 00:00:09 |
    |*  2 |   HASH JOIN OUTER               |                  |   151 | 14647 |       |   703   (2)| 00:00:09 |
    |*  3 |    FILTER                       |                  |       |       |       |            |          |
    |   4 |     NESTED LOOPS OUTER          |                  |    14 |   980 |       |   250   (3)| 00:00:03 |
    |*  5 |      HASH JOIN RIGHT ANTI       |                  |     9 |   513 |       |   223   (4)| 00:00:03 |
    |   6 |       VIEW                      | MEDICAL_LEAVE    |    21 |   105 |       |   103   (4)| 00:00:02 |
    |   7 |        VIEW                     |                  |    21 |  1113 |       |   103   (4)| 00:00:02 |
    |*  8 |         FILTER                  |                  |       |       |       |            |          |
    |*  9 |          HASH JOIN OUTER        |                  |    21 |  1470 |       |   103   (4)| 00:00:02 |
    |  10 |           VIEW                  |                  |   332 | 18924 |       |    69   (3)| 00:00:01 |
    |* 11 |            FILTER               |                  |       |       |       |            |          |
    |* 12 |             HASH JOIN OUTER     |                  |   332 |  9296 |       |    69   (3)| 00:00:01 |
    |* 13 |              TABLE ACCESS FULL  | EMP_LEAVE        |   210 |  3150 |       |    17   (6)| 00:00:01 |
    |  14 |              TABLE ACCESS FULL  | EMP_CONTRACT     | 11156 |   141K|       |    52   (2)| 00:00:01 |
    |  15 |           TABLE ACCESS FULL     | POSITION_OFFERED |  9420 |   119K|       |    33   (4)| 00:00:01 |
    |* 16 |       HASH JOIN                 |                  |   376 | 19552 |       |   119   (2)| 00:00:02 |
    |* 17 |        TABLE ACCESS FULL        | POSITION_OFFERED |   376 |  6392 |       |    33   (4)| 00:00:01 |
    |* 18 |        TABLE ACCESS FULL        | AMPEMP           |  2579 | 90265 |       |    86   (2)| 00:00:02 |
    |  19 |      TABLE ACCESS BY INDEX ROWID| EMP_CONTRACT     |     2 |    26 |       |     3   (0)| 00:00:01 |
    |* 20 |       INDEX RANGE SCAN          | EC_INDEX1        |     2 |       |       |     1   (0)| 00:00:01 |
    |  21 |    VIEW                         |                  |  4572 |   120K|       |   453   (2)| 00:00:06 |
    |  22 |     HASH GROUP BY               |                  |  4572 |   825K|  1992K|   453   (2)| 00:00:06 |
    |  23 |      VIEW                       |                  |  4572 |   825K|       |   265   (2)| 00:00:04 |
    |  24 |       MERGE JOIN PARTITION OUTER|                  |  4572 |   263K|       |   265   (2)| 00:00:04 |
    |  25 |        SORT JOIN                |                  |    18 |   774 |       |     4  (25)| 00:00:01 |
    |  26 |         TABLE ACCESS FULL       | LU_MED_IMMUNO    |    18 |   774 |       |     3   (0)| 00:00:01 |
    |* 27 |        SORT PARTITION JOIN      |                  |  2731 | 43696 |       |     6  (17)| 00:00:01 |
    |  28 |         TABLE ACCESS FULL       | MED_IMMUNO       |  2731 | 43696 |       |     5   (0)| 00:00:01 |
    ------------------------------------------------------------------------------------------------------------
    

    Name of the query block / Alias object (identified by the operation identity card):

    -------------------------------------------------------------

    1 SALT$ DD824119

    6 SALT$ 12 / ML@SEL$7

    7 - SALT$ CCA5E655 / from$_subquery$_020@SEL$12

    8 SALT$ CCA5E655

    10 - SALT$ A0D20652 / from$_subquery$_018@SEL$11

    11 SALT$ A0D20652

    13 SALT$ A0D20652 / EL@SEL$9

    14 SALT$ A0D20652 / EC@SEL$8

    15 SALT$ CCA5E655 / PO@SEL$10

    17 SALT$ DD824119 / PO@SEL$3

    18 SALT$ DD824119 / AE@SEL$4

    19 SALT$ DD824119 / EC@SEL$5

    20 SALT$ DD824119 / EC@SEL$5

    21 SALT$ 16 / BT@SEL$1

    22 SALT$ 16

    23 - SALT$ 15 / from$_subquery$_003@SEL$16

    24 SALT $15

    26 SALT$ 15 / LMI@SEL$15

    28. THE SALT $15 / MI@SEL$15

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    2 - access("AE".") EMP_ID '=' BT '. "EMP_ID" (+)) "

    3 - filter("EC".") (ACTUAL_END"IS NULL)

    5 - access("AE".") EMP_ID '=' ML '. ("' EMP_ID ')

    8 - filter("PO".") (ACTUAL_END"IS NULL)

    9 - access("PO".") EMP_ID' (+) = 'EL '. ("' EMP_ID ')

    11 - filter("EC".") (ACTUAL_END"IS NULL)

    12 - access("EC".") EMP_ID' (+) = 'EL '. ("' EMP_ID ')

    13 - filter("EL".") LEAVE_END' IS NULL AND 'EL '. "LEAVE_TYPE"= 6)

    16 - access("AE".") EMP_ID '=' PO '. ("' EMP_ID ')

    17 - filter("PO".") ACTUAL_END' IS NULL AND 'PO '. ("' HOUSED <>' 30)

    18 - filter("AE".") (CITIZENSHIP", <>1)

    20 - access("AE".") EMP_ID '=' EC '. "EMP_ID" (+)) "

    27 - access("LMI".") WITH THE ID '=' MI '. ("' IMM_REC")

    filter ("LMI". "WITH THE '=' MI' ID '." " IMM_REC')

    Projection of the column information (identified by the operation identity card):

    -----------------------------------------------------------

    1 (#keys = 3) "AE". "CLOCK_NUMBER" [VARCHAR2, 11], "Æ" "." " LAST_NAME ' [VARCHAR2, 45],

    "AE". "FIRST NAME" [VARCHAR2, 35], MAX (DECODE (TO_CHAR ("BT" "."))) " ID'), '1', TO_CHAR (INTERNAL_FUNCTION ("BT". "MY

    ((XDATE'), 'DD-MON-YYYY'), NULL)) [11], MAX (DECODE (TO_CHAR ("BT". "' ' 'ID'), '2', TO_CHAR (INTERNAL_FUNCTION ("BT"." ""

    (('MAXDATE'), 'DD-MON-YYYY'), NULL)) [11], MAX (DECODE (TO_CHAR ("BT". "ID"), "3", TO_CHAR (INTERNAL_FUNCTION ("B

    « « « T ». » ((MAXDATE'), 'DD-MON-YYYY'), NULL)) [11], MAX (DECODE (TO_CHAR ("BT". "' ' 'ID'), '5', TO_CHAR (INTERNAL_FUNCTION" ""

    ('BT'. (((("' MAXDATE '), 'DD-MON-YYYY'), NULL)) [11], MAX (DECODE (TO_CHAR ("BT". "ID"), "6", TO_CHAR (INTERNAL_FUNCT

    ION ("BT". "MAXDATE'), 'DD-MON-YYYY')(, NULL)) [11], MAX (DECODE (TO_CHAR ("BT"." ID"),"8", TO_CHAR (INTERNAL_FU

    FUNCTION ("BT". "MAXDATE'), 'DD-MON-YYYY')(, NULL)) [11],"

    MAX (DECODE (TO_CHAR ("BT". "ID"), "9", TO_CHAR (INTERNAL_FUNCTION ("BT"." ((MAXDATE'), 'DD-MON-YYYY'), NULL)) [11

    ], MAX (DECODE (TO_CHAR ("BT". "' ' 'ID'), '10', TO_CHAR (INTERNAL_FUNCTION ("BT"." "" (MAXDATE'), 'DD-MON-YYYY'), NULL)

    ) [11].

    2. (#keys = 1) "AE". "FIRST NAME" [VARCHAR2, 35], "Æ" "." " CLOCK_NUMBER ' [VARCHAR2, 11],

    "AE". "LAST_NAME" [VARCHAR2, 45], 'BT' "." " MAXDATE "[DATE, 7], 'BT'". "" ID '[NUMBER, 22].

    3. "AE". "EMP_ID" [NO.22], "Æ" "." " FIRST NAME "[VARCHAR2, 35],"Æ"". "" CLOCK_NUMBER ' [VARCHAR2, 11],

    "AE". "LAST_NAME" [VARCHAR2, 45].

    4. (#keys = 0) 'AE '. "EMP_ID" [NO.22], "Æ" "." " FIRST NAME ' [VARCHAR2, 35],

    "AE". "CLOCK_NUMBER" [VARCHAR2, 11], "Æ" "." " LAST_NAME "[VARCHAR2, 45], 'CBS'". "" ACTUAL_END "[DATE, 7].

    5 (#keys = 1) "AE". "EMP_ID" [NO.22], "Æ" "." " FIRST NAME ' [VARCHAR2, 35],

    "AE". "CLOCK_NUMBER" [VARCHAR2, 11], "Æ" "." " LAST_NAME ' [VARCHAR2, 45].

    6 ' ML '. ' EMP_ID '[NUMBER, 22].

    7. "EL". ' EMP_ID '[NUMBER, 22].

    8. "EL". ' EMP_ID '[NUMBER, 22].

    9. (#keys = 1) 'EL '. "EMP_ID" [NO.22], "PO" "." " ACTUAL_END "[DATE, 7].

    10. "EL". ' EMP_ID '[NUMBER, 22].

    11. "EL". ' EMP_ID '[NUMBER, 22].

    12. (#keys = 1) 'EL '. "EMP_ID" [NO.22], 'CBS' "." " ACTUAL_END "[DATE, 7].

    13. "EL". ' EMP_ID '[NUMBER, 22].

    14. 'EC '. "EMP_ID" [NO.22], 'CBS' "." " ACTUAL_END "[DATE, 7].

    15. "PO." "EMP_ID" [NO.22], "PO" "." " ACTUAL_END "[DATE, 7].

    16. (#keys = 1) "AE". "EMP_ID" [NO.22], "Æ" "." " CLOCK_NUMBER ' [VARCHAR2, 11],

    "AE". "LAST_NAME" [VARCHAR2, 45], "Æ" "." " FIRST NAME ' [VARCHAR2, 35].

    17 "IN." ' EMP_ID '[NUMBER, 22].

    18. "AE". "EMP_ID" [NO.22], "Æ" "." " CLOCK_NUMBER "[VARCHAR2, 11],"Æ"". "" LAST_NAME ' [VARCHAR2, 45],

    "AE". "FIRST NAME" [VARCHAR2, 35].

    19. "EC". "ACTUAL_END"[DATE, 7].

    20. "EC". ROWID [ROWID, 10]

    21. "BT". "EMP_ID" [NO.22], 'BT' "." " ID "[NO.22], 'BT'". "" MAXDATE '[DATE, 7].

    22. (#keys = 6) "MI". "EMP_ID" [NO.22], "LMI" "." " ID "[NO.22],"LMI"". "" IMM_DESC ' [VARCHAR2, 55],

    "LMI". "DRUG" [VARCHAR2, 55], "LMI" "." " SERIES "[VARCHAR2, 55],"LMI"". "" DSB "[NO.22], MAX ("IMM_DATE") [7]"

    23. "MI". "EMP_ID" [NO.22], "LMI" "." " ID "[NO.22],"LMI"". "" IMM_DESC ' [VARCHAR2, 55],

    "LMI". "DSB" [NO.22], "LMI" "." " DRUG "[VARCHAR2, 55],"LMI"". "" SERIES "[VARCHAR2, 55],"IMM_DATE "[DATE, 7]"

    24. (#keys = 0) "LMI". "ID" [NO.22], 'MI' "." " EMP_ID "[NO.22],"LMI"". "" SERIES "[VARCHAR2, 55],

    "LMI". "IMM_DESC" [VARCHAR2, 55], "LMI" "." " DSB "[NO.22],"LMI"". "" DRUG "[VARCHAR2, 55],

    "MI". "IMM_DATE"[DATE, 7].

    25. (#keys = 1) "LMI". "ID" [NO.22], "LMI" "." " SERIES "[VARCHAR2, 55],"LMI"". "" IMM_DESC ' [VARCHAR2, 55],

    "LMI". "DSB" [NO.22], "LMI" "." " DRUG "[VARCHAR2, 55].

    26 "DIA." "ID" [NO.22], "LMI" "." " IMM_DESC "[VARCHAR2, 55],"LMI"". "" DSB '[NUMBER, 22],

    "LMI". "DRUG" [VARCHAR2, 55], "LMI" "." " SERIES "[VARCHAR2, 55].

    27. (#keys = 1) "MI". "EMP_ID" [NO.22], 'MI' "." " IMM_REC "[NO.22], 'MI'". "" IMM_DATE "[DATE, 7].

    28. "MI". "EMP_ID" [NO.22], 'MI' "." " IMM_REC "[NO.22], 'MI'". "" IMM_DATE "[DATE, 7].

    -------------------------------------------------------------------------------

    The SQL Profiler are actually implementation plans.  Sometimes the tuning Advisor will find a best execution plan when the problem sql statement.  If so, then it will tell you what you have posted above.    If you accept the profile sql recommended for the tuned sql statement, it will always use this same by the profile of sql execution plan agreed.

    Several times, including peoplesoft, plans of execution applications change all the time depending on the amount of data gets added/updated / deleted on a weekly or monthly basis, etc...   For this reason a sql statement can perform very well at the beginning, but a month or 2 later, it is a poor performance due to the optimizer oracle modifying execution plan.

    If the sql statement has a sql profile agreed to do this, it will always use the same execution plan.   Note however that over time, the profile sql may not have the optimal execution plan more, they do not work forever, unless your database is not change and/or development...

    The pl/sql tuning advisor came back with in your original post is what you need to perform to implement sql profile.  I never implement if the improvement by setting Advisor is 90% or more (I noticed yours was)<= 10,="" which="" is="" pretty="">

    I also always force_match-online set to true when you implement a sql profile, it's so if there are values of variables of different data values/identification, profile sql will always be used for iterations of the same sql statement.

    Here is the syntax (I added the force below the end of your original)

    run dbms_sqltune.accept_sql_profile (task_name-online 'staName20789', replace-online TRUE, force_match-online true);

  • How to set the initial state to hide/show buttons on opening PDF files?

    InDesign offering a wonderful object multi-state capacity which unfortunately does not work in PDF files. It took a bit of research for me to come with this information, the UI program itself gives indications that this should work. (Why not maybe another forum of discussion.)

    So, I create an interactive PDF using buttons to hide/show specific paragraphs (which are also implemented as buttons because only the buttons and forms can be hidden or shown, AFAIK).

    I've set up a PDF created via InDesign using the six control keys and seven paragraphs - one of these paragraphs is the initial state that I want to see when the document is opened. As long as the PDF file that I create is distributed, that's how it works: an initial paragraph appears, buttons can be clicked and the stuff of Heroes appears the mark.

    However, a colleague thoughtfully saved the PDF file (so it could rename something more to his liking). When he does this, he left one of the displayed subsidiary paragraphs, rather than the initial paragraph I intended... and of course, this is the version that came out to the customer.

    Question: Is there a way to set the initial state to hide/show buttons when a PDF document is opened first, regardless of the State in which he could let or saved? I guess it's sort of ON OPEN event that would allow me to define an initial state as a safety net to the way I save the original document. Obviously, the PDF AS I DELIVER IT will pave the way, I want it, but I'm trying to overcome the appearance of the Murphy's law of a document that can be re-recorded in another State. An event which OPENED on that cure.

    Thank you.

    in this case you would have been better if you had locked the PDF file in order to prevent changes ANDS record as actions...

  • the SQL statements used to create views

    Hello
    How can I see the full text (with table) to create a sql view:
    SQL> select text from dba_views where rownum=1;
    
    TEXT
    --------------------------------------------------------------------------------
    select "LIB_IDX","LIB_NAME","VENDOR_NAME","PROTOCOL_NUM","VERSION_NUM","PATH_NAM
    Thank you.

    Try the following in the SQL * faster before executing the SQL statement:

    SET LONG 1000
    

    If this does not work, increase it if necessary.

  • How can I pass a condition of the table in the sql statement?

    For example, in the table in the COND Varchar2 column (200) there is the value ' VAR > 10'.

    | COND |

    |' VAR > 10' |

    where VAR is the name of the table column. I would like to make statement CASE WHEN VAR > 10 AND 0... I tried with as subquery

    WHEN BOX (SELECT COND FROM TABLE WHERE...) THEN 0, but it does not work.

    Hello

    You can do this by using dynamic SQL.

    that is to say:

    declare
      v_stm      varchar2(4000);
      v_cond      varchar2(100);
      v_result    integer;
    begin
      select cond
        into v_cond
        from yourtable
      where a=1;
    
      v_stm := 'select case when '||v_cond||' then 0 ...';
    
      -- dynamic sql
      execute immediate v_stm
        into v_result;
    
    end;
    /
    

    Remember that, in general, dynamic SQL has a performance degradation that SQL static and should be avoided when possible.

    Storage condition or the SQL statements in the tables is not a good practice.

    Kind regards.

    Alberto

  • Identify the SQL statements that are executed frequently

    I would like to identify SQL statements that are executed may times (e.g., > 1000 times) during an interval AWR.

    I am aware of coloring a SQL_ID with exec ('...') dbms_workload_repository.add_colored_sql; but then the SQL ID must be known.

    Is it also possible to do the same for the (not yet known) SQL statements that are executed > 1000 times? I think that the SQL statements that run very quickly (for example 1 s <) won't be captured automatically in a CWA even if those statements are frequently performed.

    Version 11.2.0.4 on SLES11

    Try this...

    fixed lines 155

    execs from collar to 999 999 999

    Col min_etime to 999,999.99

    Col max_etime to 999,999.99

    Col avg_etime to 999,999.999

    Col avg_lio to 999,999,999.9

    Col norm_stddev to 999,999.9999

    Col begin_interval_time to a30

    node of col to 99999

    break on plan_hash_value on startup_time skip 1

    Select * from)

    Select sql_id, sum (execs), min (avg_etime) min_etime, max (avg_etime) max_etime stddev_etime/min (avg_etime) norm_stddev

    de)

    Select sql_id, execs, plan_hash_value, avg_etime,

    StdDev (avg_etime) on stddev_etime (sql_id partition)

    de)

    Select sql_id, plan_hash_value,.

    Sum (NVL(executions_delta,0)) execs,

    (sum (elapsed_time_delta) /decode (sum (nvl(executions_delta,0)), 0.1, sum (executions_delta)) / 1000000) avg_etime

    -sum ((buffer_gets_delta/decode (nvl(buffer_gets_delta,0), 0.1, executions_delta))) avg_lio

    DBA_HIST_SQLSTAT s, DBA_HIST_SNAPSHOT SS

    where ss.snap_id = S.snap_id

    and ss.instance_number = S.instance_number

    and executions_delta > 0

    Group of sql_id, plan_hash_value

    )

    )

    Group of sql_id, stddev_etime

    )

    where norm_stddev > nvl (to_number('&min_stddev'), 2)

    and max_etime > nvl (to_number('&min_etime'),.1)

    order of norm_stddev

    /

  • Get the SQL statement error programmatically

    Hello

    error SQL in the FORMS, you can display the erroneous SQL statement pressing (shift) (Ctrl) E on the screen. Is there a way to get the text of the SQL statement in a PL/SQL function for logging purposes?

    I get the error using SQLERRM, it's not a problem. But how can I get the SQL text of the statement?

    Thanks and regards,

    Sascha

    Sascha,

    You should be able to use the: SYSTEM. System LAST_QUERY variable forms.

    Craig...

  • copy and paste the sql statement into sql * more

    How do you paste the sql statement into sql * more... I tried the following options, get the windows interface for this sequel to the documentation below, but that did not work

    http://download.Oracle.com/docs/HTML/A88829_01/ch3.htm

    then I tried to create a simple .txt file with my sql statement and tried to run using @name (where name is the name of the file) and it gives me the following error SP2-0310: cannot open the file 'firstscriot.sql '.

    You name the file name.txt? Then you cannot start with @name, because SQL * PLUS will add the extension .sql

    Try instead the @name.txt or name the file name.sql

    And check if you have the correct path.

    Concerning
    Marcus

  • How the SQL statement

    In an interview, no one asked me a question. How the sql statement
    ex: select * from emp;

    I answered him as if the select statement is in the library cache then it will retrieve data from the cache, otherwise it will retrieve data from database files. On this, he asked to go. I could not years itself. Anyone like elobarate me on the analysis?

    SMON,

    I would have preferred the official documents from Oracle, as suggested by

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e16508/sqllangu.htm#CHDFCAGA

    Concerning
    Peter

  • Tuning sql of a product to the seller without changing the sql statement

    Hello

    We have a product of the provider that generates the SQL statement. For a query, we get the answer in 15 seconds. But users are asking if we can bring it back to 5 seconds. Limitation is the query can not be changed. He used about 10 to 12 tables and bit complex query.

    What kind of options could be evaluated if we are to improve the performance of a query (not sure if she could never be reduced to 5 seconds)
    without making any change to the query.

    Database Version: Oracle 10.2.0.4

    Thank you
    Delphine

    Hello

    http://www.Oracle-base.com/articles/10G/AutomaticSQLTuning10g.php

    your software is enterprise or standard?

    Tuning Pack & pack diagnosis are extra cost option with the standard edition.

    & the useful note * automatic SQL Tuning - SQL [271196.1 ID] profiles *.

    http://www.Oracle.com/us/corporate/pricing/technology-price-list-070617.PDF

    Thank you

    Published by: CKPT November 5, 2010 11:12

  • Need help to resolve the error - below the SQL statement to execute cannot be

    Below is my CO as, which creates a callable statement.

    try {}
    OAApplicationModule oaapplicationmodule = (webBean) pageContext.getApplicationModule;
    OADBTransactionImpl t = (OADBTransactionImpl) oaapplicationmodule.getOADBTransaction ();
    OracleCallableStatement proc = (OracleCallableStatement) t.createCallableStatement (lquery,-1);
    proc. Execute();
    t.Commit ();


    }
    catch (SQLException sqlexception)
    {
    throw OAException.wrapperException (sqlexception);
    }




    After the execution of the page, get the below error... (Please find below stack error)

    I have referred the development guide but did not get something useful.

    Please give me clues about the same.

    Raghu cordially

    -- Error Stack ---------------------------------------------------------

    Error page


    Details of the exception.

    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: Houston-27123: SQL error in the preparation of the call statement. Statement: null
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2637)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
    in OA. jspService(OA.jsp:40)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)
    # # 0 in detail
    java.sql.SQLException: the SQL statement to execute cannot be empty or null
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
    at oracle.jdbc.driver.OracleConnection.privatePrepareCall(OracleConnection.java:1138)
    at oracle.jdbc.driver.OracleConnection.prepareCall(OracleConnection.java:1054)
    at oracle.jbo.server.DBTransactionImpl.createCallableStatement(DBTransactionImpl.java:3033)
    at cisco.oracle.apps.xxchr.element.server.webui.XXCHRElementSetSearchCO.processFormRequest(XXCHRElementSetSearchCO.java:343)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
    in OA. jspService(OA.jsp:40)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)
    java.sql.SQLException: the SQL statement to execute cannot be empty or null
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
    at oracle.jdbc.driver.OracleConnection.privatePrepareCall(OracleConnection.java:1138)
    at oracle.jdbc.driver.OracleConnection.prepareCall(OracleConnection.java:1054)
    at oracle.jbo.server.DBTransactionImpl.createCallableStatement(DBTransactionImpl.java:3033)
    at cisco.oracle.apps.xxchr.element.server.webui.XXCHRElementSetSearchCO.processFormRequest(XXCHRElementSetSearchCO.java:343)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
    in OA. jspService(OA.jsp:40)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)

    Published by: Rambeau on Oct 14, 2010 02:58

    check the code stuck by me again

    Connection Conn = pageContext.getApplicationModule (webBean) .getOADBTransaction () .getJdbcConnection ();

    Connection conn = oaapplicationmodule.getOADBTransaction().getJdbcConnection(); //Right one
    

    Thank you
    -Anil

  • How to analysis of the XML in the sql statement?

    Hi friends, I have a table that contains a column of type CLOB, stores in xml format. For example, the data are like that

    <Employees xmlns="http://TargetNamespace.com/read_emp">
       <C1>106</C1>
       <C2>Harish</C2>
       <C3>1998-05-12</C3>
       <C4>HR</C4>
       <C5>1600</C5>
       <C6>10</C6>
    </Employees>
    
    

    So how can I write the sql statement for the analysis of the data at the top

    create or replace procedure parsing_xml

    (

    clob trans_payload

    trans_dir varchar2

    )

    as

    Start

    if(trans_dir='inbound/emp')

    then

    insert into emp_proj

    (

    employee_id

    last_name

    hire_date

    job_id

    salary

    department_id

    )

    Select t1.c1

    t1.c2

    t1.c3

    t1.c4

    t1.c5

    t1.c6

    from xmltable

    (

    XmlNamespaces ('http://TargetNamespace.com/read_emp' as 'emp').

    ' / ' emp:Employees by the way of xmltype (trans_payload)

    columns

    whole path of C1 'emp:C1. "

    path of varchar2 (10) C2 'emp:C2. "

    C3 varchar2 (10) path "emp:C3."

    C4 varchar2 (10) path "emp:C4."

    whole path of C5 "emp:C5."

    C6 varchar2 (10) path 'emp:C6 '.

    ) t1;

    end if;

    commit;

    end;

  • Why the sql statement was extucted twice in shell script?

    I tried to test the rac load balancing using the shell script depending on suse 10 + oracle 10g rac.
    oracle@SZDB:~> more load_balance.sh
    #!/bin/bash
    for i in {1..20}
    do
    echo $i
    sqlplus -S system/oracle@ORA10G <<EOF
    select instance_name from v\$instance;
    /
    EOF
    sleep 1
    done
    exit 0
    After run the shell script, I got the result to follow.
    oracle@SZDB:~> ./load_balance.sh
    1
    
    INSTANCE_NAME
    ----------------
    ora10g2
    
    INSTANCE_NAME
    ----------------
    ora10g2
    
    2
    
    INSTANCE_NAME
    ----------------
    ora10g1
    
    INSTANCE_NAME
    ----------------
    ora10g1
    
    3
    
    INSTANCE_NAME
    ----------------
    ora10g1
    
    INSTANCE_NAME
    ----------------
    ora10g1
    Seem that the sql statement was run twice in each loop. If you help please take a look. Thanks in advance.

    Robinson

    Because you have one; and one.

  • CALL THE PROCEDURE IN THE SQL STATEMENT

    Why we cannot call a procedure inside the SQL statement?

    Hello

    Usually when you select an item should return you data. In the case of a procedure, you cannot return any return value from the procedure directly it has to be done through some settings and to access these settings, you cannot use a simple sql statement. Where as in a function, you must return one of data that can be easily obtained accordingly.

    see you soon

    VT

  • OSB: fn - bea: execute - sql () with the sql statement ' INSERT INTO...» »

    Dear Experts,

    I need a clarification. Is it possible to use the fn - bea: function execute sql (Oracle Service Bus) to perform an insert operation in a database with the data extracted from the message of the Organization (i.e. $body/Info/username)? If it is possible which is the right syntax?
    Any suggestion is appreciated.

    Kind regards
    Mike

    Published by: ITDeveloper on November 19, 2009 2.55

    Published by: ITDeveloper on November 19, 2009 3.01

    Hi Mike,.

    Please refer to my post for the same question to the fn - bea: sql performance with 'Insert INTO' the sql statement

    Thank you best regards &,.

    Vivek

Maybe you are looking for

  • How to print a bunch of MBOX files in PDF format?

    I have number of MBOX files exported from Thunderbird mailbox. Of these some MBOX files have critical evidence. I have to present that evidence to the Court in a PDF format. So need a solution on how to change the format of MBOX files? How can I prin

  • If I have iTunes game my music will take even up to 10 GB of my iCloud space?

    If I subscribe to Match iTunes my music will take still a part of my iCloud save the "cloud"? Music and photos do not count when iCloud is out, but after that work is suddenly wasn't. So now I have 20 GB backup and its almost full. I wish I had iTune

  • problem 2G Milestone XT720 United States

    Hello world. I just bought milestone XT 720 unlocked of the France. I thought that it could be used 2 G with At & t in the United States. (I know that it cannot be used with At & t 3 G in the United States) However, I can not access 2G now. If someon

  • Vice versa functional quick launch buttons?

    The functional quick launch keys work vice versa. For example: if I need to refresh the page (f5) I have to hold fn and then only, press f5. But if I need to turn off the sound, I simply press f11 (without the fn). is it ok? Can I reverse this some h

  • help to connect to the internet at home?

    I have comcast cable internet at home, but my computer (Dell, windows XP) cannot connect to it. The Cable Guy was able to connect on his Dell computer, and comcast tech said that the service was very good, but the IP address of the connection shows t