Identical query, unusable performance in one environment - please help

We are attempting to upgrade from 10.2.0.4 to 11.2.0.2 but one of our reporting queries is completely struggling (30 seconds in our current environment, 4000 seconds in our upgraded environment).
Note that the caveat is that it will be very difficult for me to modify the SQL (its coming from a different IT group, and their position is that it should not have to be modified given that it runs so well in the current production environment).
The query is exactly the same in both environments, and carries the same SQL_ID, but explain plans are different.
The environment in which the query works is version 10.2.0.4, and elapsed time per the trace is 30.15 seconds, 841 rows returned.
The new environment is 11.2.0.2, elapsed time is 4035 seconds, 841 rows returned.
The environments are comparable in terms of CPU/Memory/IO (both are writing to NFS mounts on our NetApp)
SGA_MAX/TARGET and PGA_AGGREGATE_TARGET are the same in both environments, as are HASH_AREA_SIZE and SORT_AREA_SIZE.
Underlying table data is identical, and all indexes are the same in both environments. Stats have been gathered and this behavior has persisted through multiple reboots of the databases.
I've run traces on the statements in both environments and the performance difference appears to be due to direct path read/write temp:
The SQL
SELECT DISTINCT
         a.emplid,
         a.name,
         rds.sa_get_stdnt_email_fn (a.emplid),
         a.req_term,
         a.req_term_ldesc,
         CASE
            WHEN (a.req_acad_plan = 'PKINXXXBBS' AND a.cum_gpa >= d.gpa)
            THEN
               NVL (c.num_met, 0) + 1
            WHEN (b.gpa >= d.gpa AND a.req_acad_plan <> 'PKINXXXBBS')
            THEN
               NVL (c.num_met, 0) + 1
            ELSE
               NVL (c.num_met, 0)
         END
            AS "Requirement Status",
         a.cum_total_passed AS "Cumulative Units",
         a.admit_term,
         a.admit_term_ldesc,
         a.acad_plan,
         a.acad_plan_ldesc,
         a.academic_level,
         a.academic_level_ldesc,
         TO_CHAR (a.rpt_date, 'MM/DD/YYYY') AS rpt_date,
         TO_CHAR (NVL (b.gpa, 0), '0.000') AS gpa,
         TO_CHAR (NVL (a.cum_gpa, 0), '0.000') AS cum_gpa
    FROM sa.rec_sm_stdnt_deg_completion a,
         (  SELECT DISTINCT
                   CASE
                      WHEN SUM (b_sub.units_earned) = 0 THEN 0
                      ELSE SUM (b_sub.grade_points) / SUM (b_sub.units_earned)
                   END
                      AS gpa,
                   b_sub.emplid,
                   b_sub.acad_career,
                   b_sub.acad_plan,
                   b_sub.req_acad_plan,
                   b_sub.req_term,
                   b_sub.academic_level,
                   b_sub.rqrmnt_group
              FROM sa.rec_sm_stdnt_deg_completion b_sub,
                   hrsa_extr.ps_rq_grp_tbl g3,
                   hrsa_extr.ps_rq_main_tbl m3
             WHERE     b_sub.req_acad_plan IS NOT NULL
                   AND b_sub.acad_career = 'UGRD'
                   AND b_sub.acad_prog = 'UBACH'
                   AND b_sub.acad_plan = b_sub.req_acad_plan
                   AND b_sub.grade <> 'IP'
                   AND b_sub.impact_flag = 'Y'
                   AND g3.effdt =
                          (SELECT MAX (g3_ed.effdt)
                             FROM hrsa_extr.ps_rq_grp_tbl g3_ed
                            WHERE     g3_ed.rqrmnt_group = g3.rqrmnt_group
                                  AND g3_ed.effdt <= b_sub.req_term_begin_date)
                   AND g3.rqrmnt_group = b_sub.rqrmnt_group
                   AND m3.effdt =
                          (SELECT MAX (m3_ed.effdt)
                             FROM hrsa_extr.ps_rq_main_tbl m3_ed
                            WHERE     m3_ed.requirement = m3.requirement
                                  AND m3_ed.effdt <= b_sub.req_term_begin_date)
                   AND m3.requirement = b_sub.requirement
          GROUP BY b_sub.emplid,
                   b_sub.acad_career,
                   b_sub.acad_plan,
                   b_sub.req_acad_plan,
                   b_sub.req_term,
                   b_sub.academic_level,
                   b_sub.rqrmnt_group) b,
         (  SELECT c_sub.emplid,
                   c_sub.acad_career,
                   c_sub.acad_plan,
                   c_sub.req_acad_plan,
                   c_sub.req_term,
                   c_sub.academic_level,
                   c_sub.rqrmnt_group,
                   COUNT (*) AS num_met
              FROM sa.rec_sm_stdnt_deg_completion c_sub,
                   hrsa_extr.ps_rq_grp_tbl g2,
                   hrsa_extr.ps_rq_main_tbl m2
             WHERE     c_sub.rqrmnt_line_status = 'COMP'
                   AND c_sub.grade <> 'IP'
                   AND c_sub.impact_flag = 'Y'
                   AND c_sub.acad_career = 'UGRD'
                   AND c_sub.acad_prog = 'UBACH'
                   AND c_sub.acad_plan = c_sub.req_acad_plan
                   AND g2.effdt =
                          (SELECT MAX (g2_ed.effdt)
                             FROM hrsa_extr.ps_rq_grp_tbl g2_ed
                            WHERE     g2_ed.rqrmnt_group = g2.rqrmnt_group
                                  AND g2_ed.effdt <= c_sub.req_term_begin_date)
                   AND g2.rqrmnt_group = c_sub.rqrmnt_group
                   AND m2.effdt =
                          (SELECT MAX (m2_ed.effdt)
                             FROM hrsa_extr.ps_rq_main_tbl m2_ed
                            WHERE     m2_ed.requirement = m2.requirement
                                  AND m2_ed.effdt <= c_sub.req_term_begin_date)
                   AND m2.requirement = c_sub.requirement
          GROUP BY c_sub.emplid,
                   c_sub.acad_career,
                   c_sub.acad_plan,
                   c_sub.req_acad_plan,
                   c_sub.req_term,
                   c_sub.academic_level,
                   c_sub.rqrmnt_group) c,
         hrsa_extr.ps_smo_rdr_imp_pln d,
         hrsa_extr.ps_rq_grp_tbl g,
         hrsa_extr.ps_rq_main_tbl m
   WHERE     a.acad_career = 'UGRD'
         AND a.acad_prog = 'UBACH'
         AND a.req_acad_plan IN (N'NUPPXXXBBS', N'NURPBASBBS', N'NURPXXXBBS')
         AND a.academic_level IN (N'10', N'20', N'30', N'40', N'50', N'GR')
         AND a.acad_plan = a.req_acad_plan
         AND a.impact_flag = 'Y'
         AND g.effdt =
                (SELECT MAX (g_ed.effdt)
                   FROM hrsa_extr.ps_rq_grp_tbl g_ed
                  WHERE     g_ed.rqrmnt_group = g.rqrmnt_group
                        AND g_ed.effdt <= a.req_term_begin_date)
         AND g.rqrmnt_group = a.rqrmnt_group
         AND m.effdt =
                (SELECT MAX (m_ed.effdt)
                   FROM hrsa_extr.ps_rq_main_tbl m_ed
                  WHERE     m_ed.requirement = m.requirement
                        AND m_ed.effdt <= a.req_term_begin_date)
         AND m.requirement = a.requirement
         AND a.emplid = b.emplid(+)
         AND a.acad_career = b.acad_career(+)
         AND a.acad_plan = b.acad_plan(+)
         AND a.req_acad_plan = b.req_acad_plan(+)
         AND a.academic_level = b.academic_level(+)
         AND a.req_term = b.req_term(+)
         AND a.rqrmnt_group = b.rqrmnt_group(+)
         AND a.emplid = c.emplid(+)
         AND a.acad_career = c.acad_career(+)
         AND a.acad_plan = c.acad_plan(+)
         AND a.req_acad_plan = c.req_acad_plan(+)
         AND a.academic_level = c.academic_level(+)
         AND a.req_term = c.req_term(+)
         AND a.rqrmnt_group = c.rqrmnt_group(+)
         AND d.acad_plan = a.req_acad_plan
ORDER BY 6 DESC, 2 ASC;New environment (11.2.0.2), takes 4000 seconds according to tkprof
Explain plan
PLAN_TABLE_OUTPUT
Plan hash value: 4117596694
| Id  | Operation                                 | Name                        | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT                          |                             |     1 |   314 | 15231   (1)| 00:03:03 |
|   1 |  SORT UNIQUE                              |                             |     1 |   314 | 15230   (1)| 00:03:03 |
|   2 |   NESTED LOOPS OUTER                      |                             |     1 |   314 | 15227   (1)| 00:03:03 |
|   3 |    NESTED LOOPS OUTER                     |                             |     1 |   285 | 15216   (1)| 00:03:03 |
|   4 |     NESTED LOOPS                          |                             |     1 |   256 | 15205   (1)| 00:03:03 |
|   5 |      NESTED LOOPS                         |                             |     1 |   241 | 15204   (1)| 00:03:03 |
|   6 |       NESTED LOOPS                        |                             |     1 |   223 | 15203   (1)| 00:03:03 |
|   7 |        NESTED LOOPS                       |                             |    17 |   731 | 15186   (1)| 00:03:03 |
|   8 |         VIEW                              | VW_SQ_3                     |   998 | 27944 | 15186   (1)| 00:03:03 |
|   9 |          HASH GROUP BY                    |                             |   998 | 62874 | 15186   (1)| 00:03:03 |
|  10 |           MERGE JOIN                      |                             | 29060 |  1787K| 15184   (1)| 00:03:03 |
|  11 |            SORT JOIN                      |                             |    26 |  1248 | 15180   (1)| 00:03:03 |
|  12 |             TABLE ACCESS BY INDEX ROWID   | REC_SM_STDNT_DEG_COMPLETION |    26 |  1248 | 15179   (1)| 00:03:03 |
|* 13 |              INDEX SKIP SCAN              | REC0SM_STDNT_DEG_IDX        |    26 |       | 15168   (1)| 00:03:03 |
|* 14 |            SORT JOIN                      |                             |  1217 | 18255 |     4  (25)| 00:00:01 |
|  15 |             INDEX FAST FULL SCAN          | PS3RQ_GRP_TBL               |  1217 | 18255 |     3   (0)| 00:00:01 |
|* 16 |         INDEX UNIQUE SCAN                 | PS_RQ_GRP_TBL               |     1 |    15 |     0   (0)| 00:00:01 |
|* 17 |        TABLE ACCESS BY USER ROWID         | REC_SM_STDNT_DEG_COMPLETION |     1 |   180 |     1   (0)| 00:00:01 |
|* 18 |       INDEX RANGE SCAN                    | PS_RQ_MAIN_TBL              |     1 |    18 |     1   (0)| 00:00:01 |
|  19 |        SORT AGGREGATE                     |                             |     1 |    18 |            |          |
|  20 |         FIRST ROW                         |                             |     1 |    18 |     2   (0)| 00:00:01 |
|* 21 |          INDEX RANGE SCAN (MIN/MAX)       | PS_RQ_MAIN_TBL              |     1 |    18 |     2   (0)| 00:00:01 |
|* 22 |      INDEX FULL SCAN                      | PS0SMO_RDR_IMP_PLN          |     1 |    15 |     1   (0)| 00:00:01 |
|* 23 |     VIEW PUSHED PREDICATE                 |                             |     1 |    29 |    11  (19)| 00:00:01 |
|  24 |      SORT GROUP BY                        |                             |     1 |    52 |    11  (19)| 00:00:01 |
|  25 |       VIEW                                | VM_NWVW_5                   |     1 |    52 |    10  (10)| 00:00:01 |
|* 26 |        FILTER                             |                             |       |       |            |          |
|  27 |         SORT GROUP BY                     |                             |     1 |   165 |    10  (10)| 00:00:01 |
|* 28 |          FILTER                           |                             |       |       |            |          |
|  29 |           NESTED LOOPS                    |                             |     1 |   165 |     7   (0)| 00:00:01 |
|  30 |            NESTED LOOPS                   |                             |     1 |   147 |     6   (0)| 00:00:01 |
|  31 |             NESTED LOOPS                  |                             |     1 |   117 |     5   (0)| 00:00:01 |
|* 32 |              TABLE ACCESS BY INDEX ROWID  | REC_SM_STDNT_DEG_COMPLETION |     1 |    90 |     4   (0)| 00:00:01 |
|* 33 |               INDEX RANGE SCAN            | REC1SM_STDNT_DEG_IDX        |     1 |       |     3   (0)| 00:00:01 |
|* 34 |              INDEX RANGE SCAN             | PS_RQ_GRP_TBL               |     1 |    27 |     1   (0)| 00:00:01 |
|  35 |               SORT AGGREGATE              |                             |     1 |    15 |            |          |
|  36 |                FIRST ROW                  |                             |     1 |    15 |     2   (0)| 00:00:01 |
|* 37 |                 INDEX RANGE SCAN (MIN/MAX)| PS_RQ_GRP_TBL               |     1 |    15 |     2   (0)| 00:00:01 |
|* 38 |             INDEX RANGE SCAN              | PS_RQ_MAIN_TBL              |     1 |    30 |     1   (0)| 00:00:01 |
|* 39 |            INDEX RANGE SCAN               | PS_RQ_MAIN_TBL              |     1 |    18 |     1   (0)| 00:00:01 |
|* 40 |    VIEW PUSHED PREDICATE                  |                             |     1 |    29 |    11  (19)| 00:00:01 |
|  41 |     SORT GROUP BY                         |                             |     1 |    32 |    11  (19)| 00:00:01 |
|  42 |      VIEW                                 | VM_NWVW_4                   |     1 |    32 |    10  (10)| 00:00:01 |
|* 43 |       FILTER                              |                             |       |       |            |          |
|  44 |        SORT GROUP BY                      |                             |     1 |   166 |    10  (10)| 00:00:01 |
|* 45 |         FILTER                            |                             |       |       |            |          |
|* 46 |          FILTER                           |                             |       |       |            |          |
|  47 |           NESTED LOOPS                    |                             |     1 |   166 |     7   (0)| 00:00:01 |
|  48 |            NESTED LOOPS                   |                             |     1 |   148 |     6   (0)| 00:00:01 |
|  49 |             NESTED LOOPS                  |                             |     1 |   118 |     5   (0)| 00:00:01 |
|* 50 |              INDEX RANGE SCAN             | PS_RQ_GRP_TBL               |     1 |    27 |     2   (0)| 00:00:01 |
|* 51 |              TABLE ACCESS BY INDEX ROWID  | REC_SM_STDNT_DEG_COMPLETION |     1 |    91 |     3   (0)| 00:00:01 |
|* 52 |               INDEX RANGE SCAN            | REC1SM_STDNT_DEG_IDX        |     1 |       |     2   (0)| 00:00:01 |
|* 53 |             INDEX RANGE SCAN              | PS_RQ_MAIN_TBL              |     1 |    30 |     1   (0)| 00:00:01 |
|* 54 |            INDEX RANGE SCAN               | PS_RQ_MAIN_TBL              |     1 |    18 |     1   (0)| 00:00:01 |
|  55 |          SORT AGGREGATE                   |                             |     1 |    15 |            |          |
|  56 |           FIRST ROW                       |                             |     1 |    15 |     2   (0)| 00:00:01 |
|* 57 |            INDEX RANGE SCAN (MIN/MAX)     | PS_RQ_GRP_TBL               |     1 |    15 |     2   (0)| 00:00:01 |
call     count       cpu    elapsed       disk      query    current        rows
Parse        1      6.59       6.66          0          0          0           0
Execute      1      0.00       0.00          0          0          0           0
Fetch        2   1521.36    4028.91    2256624  240053408          0         841
total        4   1527.95    4035.57    2256624  240053408          0         841
Elapsed times include waiting on following events:
  Event waited on                             Times   Max. Wait  Total Waited
  ----------------------------------------   Waited  ----------  ------------
  SQL*Net message to client                       2        0.00          0.00
  Disk file operations I/O                        3        0.07          0.11
  db file sequential read                     10829        0.12         16.62
  direct path write temp                      72445        0.30        293.71
  direct path read temp                       72445        0.58       2234.14
  asynch descriptor resize                       22        0.00          0.00
  SQL*Net more data to client                     9        0.00          0.00
  SQL*Net message from client                     2        0.84          1.25
********************************************************************************Current production (10.2.0.4), takes 30 seconds
PLAN_TABLE_OUTPUT
Plan hash value: 2178773127
| Id  | Operation                                | Name                        | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT                         |                             |     1 |   331 | 89446   (2)| 00:17:54 |
|   1 |  SORT UNIQUE                             |                             |     1 |   331 | 89445   (2)| 00:17:54 |
|   2 |   NESTED LOOPS                           |                             |     1 |   331 | 89440   (2)| 00:17:54 |
|   3 |    NESTED LOOPS                          |                             |     1 |   316 | 89439   (2)| 00:17:54 |
|*  4 |     HASH JOIN OUTER                      |                             |     1 |   298 | 89438   (2)| 00:17:54 |
|*  5 |      HASH JOIN OUTER                     |                             |     1 |   240 | 59625   (2)| 00:11:56 |
|   6 |       NESTED LOOPS                       |                             |     1 |   182 | 29815   (2)| 00:05:58 |
|*  7 |        TABLE ACCESS FULL                 | REC_SM_STDNT_DEG_COMPLETION |     1 |   167 | 29814   (2)| 00:05:58 |
|*  8 |        INDEX FULL SCAN                   | PS0SMO_RDR_IMP_PLN          |     1 |    15 |     1   (0)| 00:00:01 |
|   9 |       VIEW                               |                             |     1 |    58 | 29809   (2)| 00:05:58 |
|  10 |        HASH GROUP BY                     |                             |     1 |    71 | 29809   (2)| 00:05:58 |
|  11 |         VIEW                             |                             |     1 |    71 | 29809   (2)| 00:05:58 |
|* 12 |          FILTER                          |                             |       |       |            |          |
|  13 |           HASH GROUP BY                  |                             |     1 |   198 | 29809   (2)| 00:05:58 |
|  14 |            NESTED LOOPS                  |                             |     1 |   198 | 29806   (2)| 00:05:58 |
|* 15 |             HASH JOIN                    |                             |     1 |   171 | 29805   (2)| 00:05:58 |
|* 16 |              HASH JOIN                   |                             |     4 |   572 | 29802   (2)| 00:05:58 |
|* 17 |               TABLE ACCESS FULL          | REC_SM_STDNT_DEG_COMPLETION |     4 |   452 | 29798   (2)| 00:05:58 |
|  18 |               INDEX FAST FULL SCAN       | PS2RQ_MAIN_TBL              |  1035 | 31050 |     3   (0)| 00:00:01 |
|  19 |              INDEX FAST FULL SCAN        | PS2RQ_MAIN_TBL              |  1035 | 28980 |     3   (0)| 00:00:01 |
|* 20 |             INDEX RANGE SCAN             | PS_RQ_GRP_TBL               |     1 |    27 |     1   (0)| 00:00:01 |
|  21 |              SORT AGGREGATE              |                             |     1 |    15 |            |          |
|  22 |               FIRST ROW                  |                             |     1 |    15 |     2   (0)| 00:00:01 |
|* 23 |                INDEX RANGE SCAN (MIN/MAX)| PS_RQ_GRP_TBL               |     1 |    15 |     2   (0)| 00:00:01 |
|  24 |      VIEW                                |                             |     1 |    58 | 29813   (2)| 00:05:58 |
|  25 |       HASH GROUP BY                      |                             |     1 |    45 | 29813   (2)| 00:05:58 |
|  26 |        VIEW                              |                             |     1 |    45 | 29813   (2)| 00:05:58 |
|* 27 |         FILTER                           |                             |       |       |            |          |
|  28 |          HASH GROUP BY                   |                             |     1 |   199 | 29813   (2)| 00:05:58 |
|  29 |           NESTED LOOPS                   |                             |     1 |   199 | 29810   (2)| 00:05:58 |
|* 30 |            HASH JOIN                     |                             |     1 |   172 | 29809   (2)| 00:05:58 |
|* 31 |             HASH JOIN                    |                             |     8 |  1152 | 29805   (2)| 00:05:58 |
|* 32 |              TABLE ACCESS FULL           | REC_SM_STDNT_DEG_COMPLETION |     7 |   798 | 29802   (2)| 00:05:58 |
|  33 |              INDEX FAST FULL SCAN        | PS2RQ_MAIN_TBL              |  1035 | 31050 |     3   (0)| 00:00:01 |
|  34 |             INDEX FAST FULL SCAN         | PS2RQ_MAIN_TBL              |  1035 | 28980 |     3   (0)| 00:00:01 |
|* 35 |            INDEX RANGE SCAN              | PS_RQ_GRP_TBL               |     1 |    27 |     1   (0)| 00:00:01 |
|  36 |             SORT AGGREGATE               |                             |     1 |    15 |            |          |
|  37 |              FIRST ROW                   |                             |     1 |    15 |     2   (0)| 00:00:01 |
|* 38 |               INDEX RANGE SCAN (MIN/MAX) | PS_RQ_GRP_TBL               |     1 |    15 |     2   (0)| 00:00:01 |
|* 39 |     INDEX RANGE SCAN                     | PS_RQ_MAIN_TBL              |     1 |    18 |     1   (0)| 00:00:01 |
|  40 |      SORT AGGREGATE                      |                             |     1 |    18 |            |          |
|  41 |       FIRST ROW                          |                             |     1 |    18 |     2   (0)| 00:00:01 |
|* 42 |        INDEX RANGE SCAN (MIN/MAX)        | PS_RQ_MAIN_TBL              |     1 |    18 |     2   (0)| 00:00:01 |
|* 43 |    INDEX RANGE SCAN                      | PS_RQ_GRP_TBL               |     1 |    15 |     1   (0)| 00:00:01 |
|  44 |     SORT AGGREGATE                       |                             |     1 |    15 |            |          |
|  45 |      FIRST ROW                           |                             |     1 |    15 |     2   (0)| 00:00:01 |
|* 46 |       INDEX RANGE SCAN (MIN/MAX)         | PS_RQ_GRP_TBL               |     1 |    15 |     2   (0)| 00:00:01 |
call     count       cpu    elapsed       disk      query    current        rows
Parse        1      1.49       1.51          0          0          0           0
Execute      1      0.00       0.00          0          0          0           0
Fetch        2     18.25      28.63     463672     932215          0         836
total        4     19.75      30.15     463672     932215          0         836
Elapsed times include waiting on following events:
  Event waited on                             Times   Max. Wait  Total Waited
  ----------------------------------------   Waited  ----------  ------------
  SQL*Net message to client                       2        0.00          0.00
  db file scattered read                      14262        0.31         13.13
  latch: shared pool                              1        0.01          0.01
  db file sequential read                         7        0.00          0.00
  direct path write temp                        493        0.00          0.00
  direct path read temp                         493        0.00          0.00
  SQL*Net more data to client                    40        0.00          0.00
  SQL*Net message from client                     2        0.83          1.23
********************************************************************************Edited by: ngilbert on Jun 26, 2012 4:40 PM
Edited by: ngilbert on Jun 26, 2012 4:41 PM

Sorry - you're right, no significance, very new to this - based on this article i assumed the hash algorithm to get SQL_ID from SQL text would be the same across different instances:
http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/
Trying again:
Current environment, 10.2.0.4, 30 seconds for all rows, explain plan with predicate information
PLAN_TABLE_OUTPUT
Plan hash value: 2178773127
| Id  | Operation                                | Name                        | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT                         |                             |     1 |   331 | 89446   (2)| 00:17:54 |
|   1 |  SORT UNIQUE                             |                             |     1 |   331 | 89445   (2)| 00:17:54 |
|   2 |   NESTED LOOPS                           |                             |     1 |   331 | 89440   (2)| 00:17:54 |
|   3 |    NESTED LOOPS                          |                             |     1 |   316 | 89439   (2)| 00:17:54 |
|*  4 |     HASH JOIN OUTER                      |                             |     1 |   298 | 89438   (2)| 00:17:54 |
|*  5 |      HASH JOIN OUTER                     |                             |     1 |   240 | 59625   (2)| 00:11:56 |
|   6 |       NESTED LOOPS                       |                             |     1 |   182 | 29815   (2)| 00:05:58 |
|*  7 |        TABLE ACCESS FULL                 | REC_SM_STDNT_DEG_COMPLETION |     1 |   167 | 29814   (2)| 00:05:58 |
|*  8 |        INDEX FULL SCAN                   | PS0SMO_RDR_IMP_PLN          |     1 |    15 |     1   (0)| 00:00:01 |
|   9 |       VIEW                               |                             |     1 |    58 | 29809   (2)| 00:05:58 |
|  10 |        HASH GROUP BY                     |                             |     1 |    71 | 29809   (2)| 00:05:58 |
|  11 |         VIEW                             |                             |     1 |    71 | 29809   (2)| 00:05:58 |
|* 12 |          FILTER                          |                             |       |       |            |          |
|  13 |           HASH GROUP BY                  |                             |     1 |   198 | 29809   (2)| 00:05:58 |
|  14 |            NESTED LOOPS                  |                             |     1 |   198 | 29806   (2)| 00:05:58 |
|* 15 |             HASH JOIN                    |                             |     1 |   171 | 29805   (2)| 00:05:58 |
|* 16 |              HASH JOIN                   |                             |     4 |   572 | 29802   (2)| 00:05:58 |
|* 17 |               TABLE ACCESS FULL          | REC_SM_STDNT_DEG_COMPLETION |     4 |   452 | 29798   (2)| 00:05:58 |
|  18 |               INDEX FAST FULL SCAN       | PS2RQ_MAIN_TBL              |  1035 | 31050 |     3   (0)| 00:00:01 |
|  19 |              INDEX FAST FULL SCAN        | PS2RQ_MAIN_TBL              |  1035 | 28980 |     3   (0)| 00:00:01 |
|* 20 |             INDEX RANGE SCAN             | PS_RQ_GRP_TBL               |     1 |    27 |     1   (0)| 00:00:01 |
|  21 |              SORT AGGREGATE              |                             |     1 |    15 |            |          |
|  22 |               FIRST ROW                  |                             |     1 |    15 |     2   (0)| 00:00:01 |
|* 23 |                INDEX RANGE SCAN (MIN/MAX)| PS_RQ_GRP_TBL               |     1 |    15 |     2   (0)| 00:00:01 |
|  24 |      VIEW                                |                             |     1 |    58 | 29813   (2)| 00:05:58 |
|  25 |       HASH GROUP BY                      |                             |     1 |    45 | 29813   (2)| 00:05:58 |
|  26 |        VIEW                              |                             |     1 |    45 | 29813   (2)| 00:05:58 |
|* 27 |         FILTER                           |                             |       |       |            |          |
|  28 |          HASH GROUP BY                   |                             |     1 |   199 | 29813   (2)| 00:05:58 |
|  29 |           NESTED LOOPS                   |                             |     1 |   199 | 29810   (2)| 00:05:58 |
|* 30 |            HASH JOIN                     |                             |     1 |   172 | 29809   (2)| 00:05:58 |
|* 31 |             HASH JOIN                    |                             |     8 |  1152 | 29805   (2)| 00:05:58 |
|* 32 |              TABLE ACCESS FULL           | REC_SM_STDNT_DEG_COMPLETION |     7 |   798 | 29802   (2)| 00:05:58 |
|  33 |              INDEX FAST FULL SCAN        | PS2RQ_MAIN_TBL              |  1035 | 31050 |     3   (0)| 00:00:01 |
|  34 |             INDEX FAST FULL SCAN         | PS2RQ_MAIN_TBL              |  1035 | 28980 |     3   (0)| 00:00:01 |
|* 35 |            INDEX RANGE SCAN              | PS_RQ_GRP_TBL               |     1 |    27 |     1   (0)| 00:00:01 |
|  36 |             SORT AGGREGATE               |                             |     1 |    15 |            |          |
|  37 |              FIRST ROW                   |                             |     1 |    15 |     2   (0)| 00:00:01 |
|* 38 |               INDEX RANGE SCAN (MIN/MAX) | PS_RQ_GRP_TBL               |     1 |    15 |     2   (0)| 00:00:01 |
|* 39 |     INDEX RANGE SCAN                     | PS_RQ_MAIN_TBL              |     1 |    18 |     1   (0)| 00:00:01 |
|  40 |      SORT AGGREGATE                      |                             |     1 |    18 |            |          |
|  41 |       FIRST ROW                          |                             |     1 |    18 |     2   (0)| 00:00:01 |
|* 42 |        INDEX RANGE SCAN (MIN/MAX)        | PS_RQ_MAIN_TBL              |     1 |    18 |     2   (0)| 00:00:01 |
|* 43 |    INDEX RANGE SCAN                      | PS_RQ_GRP_TBL               |     1 |    15 |     1   (0)| 00:00:01 |
|  44 |     SORT AGGREGATE                       |                             |     1 |    15 |            |          |
|  45 |      FIRST ROW                           |                             |     1 |    15 |     2   (0)| 00:00:01 |
|* 46 |       INDEX RANGE SCAN (MIN/MAX)         | PS_RQ_GRP_TBL               |     1 |    15 |     2   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   4 - access("A"."EMPLID"="C"."EMPLID"(+) AND "A"."ACAD_CAREER"="C"."ACAD_CAREER"(+) AND
              "A"."ACAD_PLAN"="C"."ACAD_PLAN"(+) AND "A"."REQ_ACAD_PLAN"="C"."REQ_ACAD_PLAN"(+) AND
              "A"."ACADEMIC_LEVEL"="C"."ACADEMIC_LEVEL"(+) AND "A"."REQ_TERM"="C"."REQ_TERM"(+) AND
              "A"."RQRMNT_GROUP"="C"."RQRMNT_GROUP"(+))
   5 - access("A"."EMPLID"="B"."EMPLID"(+) AND "A"."ACAD_CAREER"="B"."ACAD_CAREER"(+) AND
              "A"."ACAD_PLAN"="B"."ACAD_PLAN"(+) AND "A"."REQ_ACAD_PLAN"="B"."REQ_ACAD_PLAN"(+) AND
              "A"."ACADEMIC_LEVEL"="B"."ACADEMIC_LEVEL"(+) AND "A"."REQ_TERM"="B"."REQ_TERM"(+) AND
              "A"."RQRMNT_GROUP"="B"."RQRMNT_GROUP"(+))
   7 - filter("A"."ACAD_PLAN"="A"."REQ_ACAD_PLAN" AND "A"."ACAD_PROG"='UBACH' AND "A"."ACAD_CAREER"='UGRD' AND
              "A"."IMPACT_FLAG"='Y' AND "A"."REQUIREMENT" IS NOT NULL AND (SYS_OP_C2C("A"."REQ_ACAD_PLAN")=U'NUPPXXXBBS'
OR
              SYS_OP_C2C("A"."REQ_ACAD_PLAN")=U'NURPBASBBS' OR SYS_OP_C2C("A"."REQ_ACAD_PLAN")=U'NURPXXXBBS') AND
              (SYS_OP_C2C("A"."ACAD_PLAN")=U'NUPPXXXBBS' OR SYS_OP_C2C("A"."ACAD_PLAN")=U'NURPBASBBS' OR
              SYS_OP_C2C("A"."ACAD_PLAN")=U'NURPXXXBBS') AND (SYS_OP_C2C("A"."ACADEMIC_LEVEL")=U'10' OR
              SYS_OP_C2C("A"."ACADEMIC_LEVEL")=U'20' OR SYS_OP_C2C("A"."ACADEMIC_LEVEL")=U'30' OR
              SYS_OP_C2C("A"."ACADEMIC_LEVEL")=U'40' OR SYS_OP_C2C("A"."ACADEMIC_LEVEL")=U'50' OR
              SYS_OP_C2C("A"."ACADEMIC_LEVEL")=U'GR'))
   8 - access("D"."ACAD_PLAN"="A"."REQ_ACAD_PLAN")
       filter((SYS_OP_C2C("D"."ACAD_PLAN")=U'NUPPXXXBBS' OR SYS_OP_C2C("D"."ACAD_PLAN")=U'NURPBASBBS' OR
              SYS_OP_C2C("D"."ACAD_PLAN")=U'NURPXXXBBS') AND "D"."ACAD_PLAN"="A"."REQ_ACAD_PLAN")
  12 - filter("M3"."EFFDT"=MAX("M3_ED"."EFFDT"))
  15 - access("M3_ED"."REQUIREMENT"="M3"."REQUIREMENT")
       filter("M3_ED"."EFFDT"<="B_SUB"."REQ_TERM_BEGIN_DATE")
  16 - access("M3"."REQUIREMENT"="B_SUB"."REQUIREMENT")
  17 - filter("B_SUB"."REQ_ACAD_PLAN" IS NOT NULL AND "B_SUB"."ACAD_PLAN"="B_SUB"."REQ_ACAD_PLAN" AND
              "B_SUB"."ACAD_PROG"='UBACH' AND "B_SUB"."ACAD_CAREER"='UGRD' AND "B_SUB"."IMPACT_FLAG"='Y' AND
              "B_SUB"."REQUIREMENT" IS NOT NULL AND "B_SUB"."GRADE"<>'IP')
  20 - access("G3"."RQRMNT_GROUP"="B_SUB"."RQRMNT_GROUP")
       filter("G3"."EFFDT"= (SELECT MAX("G3_ED"."EFFDT") FROM "HRSA_EXTR"."PS_RQ_GRP_TBL" "G3_ED" WHERE
              "G3_ED"."EFFDT"<=:B1 AND "G3_ED"."RQRMNT_GROUP"=:B2))
  23 - access("G3_ED"."RQRMNT_GROUP"=:B1 AND "G3_ED"."EFFDT"<=:B2)
  27 - filter("M2"."EFFDT"=MAX("M2_ED"."EFFDT"))
  30 - access("M2_ED"."REQUIREMENT"="M2"."REQUIREMENT")
       filter("M2_ED"."EFFDT"<="C_SUB"."REQ_TERM_BEGIN_DATE")
  31 - access("M2"."REQUIREMENT"="C_SUB"."REQUIREMENT")
  32 - filter("C_SUB"."ACAD_PLAN"="C_SUB"."REQ_ACAD_PLAN" AND "C_SUB"."ACAD_PROG"='UBACH' AND
              "C_SUB"."RQRMNT_LINE_STATUS"='COMP' AND "C_SUB"."IMPACT_FLAG"='Y' AND "C_SUB"."ACAD_CAREER"='UGRD' AND
              "C_SUB"."REQUIREMENT" IS NOT NULL AND "C_SUB"."GRADE"<>'IP')
  35 - access("G2"."RQRMNT_GROUP"="C_SUB"."RQRMNT_GROUP")
       filter("G2"."EFFDT"= (SELECT MAX("G2_ED"."EFFDT") FROM "HRSA_EXTR"."PS_RQ_GRP_TBL" "G2_ED" WHERE
              "G2_ED"."EFFDT"<=:B1 AND "G2_ED"."RQRMNT_GROUP"=:B2))
  38 - access("G2_ED"."RQRMNT_GROUP"=:B1 AND "G2_ED"."EFFDT"<=:B2)
  39 - access("M"."REQUIREMENT"="A"."REQUIREMENT")
       filter("M"."EFFDT"= (SELECT MAX("M_ED"."EFFDT") FROM "HRSA_EXTR"."PS_RQ_MAIN_TBL" "M_ED" WHERE
              "M_ED"."EFFDT"<=:B1 AND "M_ED"."REQUIREMENT"=:B2))
  42 - access("M_ED"."REQUIREMENT"=:B1 AND "M_ED"."EFFDT"<=:B2)
  43 - access("G"."RQRMNT_GROUP"="A"."RQRMNT_GROUP")
       filter("G"."EFFDT"= (SELECT MAX("G_ED"."EFFDT") FROM "HRSA_EXTR"."PS_RQ_GRP_TBL" "G_ED" WHERE
              "G_ED"."EFFDT"<=:B1 AND "G_ED"."RQRMNT_GROUP"=:B2))
  46 - access("G_ED"."RQRMNT_GROUP"=:B1 AND "G_ED"."EFFDT"<=:B2)
106 rows selected.New environment, 11.2.0.2, 4000 seconds for all rows:
PLAN_TABLE_OUTPUT
Plan hash value: 4117596694
| Id  | Operation                                 | Name                        | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT                          |                             |     1 |   314 | 15231   (1)| 00:03:03 |
|   1 |  SORT UNIQUE                              |                             |     1 |   314 | 15230   (1)| 00:03:03 |
|   2 |   NESTED LOOPS OUTER                      |                             |     1 |   314 | 15227   (1)| 00:03:03 |
|   3 |    NESTED LOOPS OUTER                     |                             |     1 |   285 | 15216   (1)| 00:03:03 |
|   4 |     NESTED LOOPS                          |                             |     1 |   256 | 15205   (1)| 00:03:03 |
|   5 |      NESTED LOOPS                         |                             |     1 |   241 | 15204   (1)| 00:03:03 |
|   6 |       NESTED LOOPS                        |                             |     1 |   223 | 15203   (1)| 00:03:03 |
|   7 |        NESTED LOOPS                       |                             |    17 |   731 | 15186   (1)| 00:03:03 |
|   8 |         VIEW                              | VW_SQ_3                     |   998 | 27944 | 15186   (1)| 00:03:03 |
|   9 |          HASH GROUP BY                    |                             |   998 | 62874 | 15186   (1)| 00:03:03 |
|  10 |           MERGE JOIN                      |                             | 29060 |  1787K| 15184   (1)| 00:03:03 |
|  11 |            SORT JOIN                      |                             |    26 |  1248 | 15180   (1)| 00:03:03 |
|  12 |             TABLE ACCESS BY INDEX ROWID   | REC_SM_STDNT_DEG_COMPLETION |    26 |  1248 | 15179   (1)| 00:03:03 |
|* 13 |              INDEX SKIP SCAN              | REC0SM_STDNT_DEG_IDX        |    26 |       | 15168   (1)| 00:03:03 |
|* 14 |            SORT JOIN                      |                             |  1217 | 18255 |     4  (25)| 00:00:01 |
|  15 |             INDEX FAST FULL SCAN          | PS3RQ_GRP_TBL               |  1217 | 18255 |     3   (0)| 00:00:01 |
|* 16 |         INDEX UNIQUE SCAN                 | PS_RQ_GRP_TBL               |     1 |    15 |     0   (0)| 00:00:01 |
|* 17 |        TABLE ACCESS BY USER ROWID         | REC_SM_STDNT_DEG_COMPLETION |     1 |   180 |     1   (0)| 00:00:01 |
|* 18 |       INDEX RANGE SCAN                    | PS_RQ_MAIN_TBL              |     1 |    18 |     1   (0)| 00:00:01 |
|  19 |        SORT AGGREGATE                     |                             |     1 |    18 |            |          |
|  20 |         FIRST ROW                         |                             |     1 |    18 |     2   (0)| 00:00:01 |
|* 21 |          INDEX RANGE SCAN (MIN/MAX)       | PS_RQ_MAIN_TBL              |     1 |    18 |     2   (0)| 00:00:01 |
|* 22 |      INDEX FULL SCAN                      | PS0SMO_RDR_IMP_PLN          |     1 |    15 |     1   (0)| 00:00:01 |
|* 23 |     VIEW PUSHED PREDICATE                 |                             |     1 |    29 |    11  (19)| 00:00:01 |
|  24 |      SORT GROUP BY                        |                             |     1 |    52 |    11  (19)| 00:00:01 |
|  25 |       VIEW                                | VM_NWVW_5                   |     1 |    52 |    10  (10)| 00:00:01 |
|* 26 |        FILTER                             |                             |       |       |            |          |
|  27 |         SORT GROUP BY                     |                             |     1 |   165 |    10  (10)| 00:00:01 |
|* 28 |          FILTER                           |                             |       |       |            |          |
|  29 |           NESTED LOOPS                    |                             |     1 |   165 |     7   (0)| 00:00:01 |
|  30 |            NESTED LOOPS                   |                             |     1 |   147 |     6   (0)| 00:00:01 |
|  31 |             NESTED LOOPS                  |                             |     1 |   117 |     5   (0)| 00:00:01 |
|* 32 |              TABLE ACCESS BY INDEX ROWID  | REC_SM_STDNT_DEG_COMPLETION |     1 |    90 |     4   (0)| 00:00:01 |
|* 33 |               INDEX RANGE SCAN            | REC1SM_STDNT_DEG_IDX        |     1 |       |     3   (0)| 00:00:01 |
|* 34 |              INDEX RANGE SCAN             | PS_RQ_GRP_TBL               |     1 |    27 |     1   (0)| 00:00:01 |
|  35 |               SORT AGGREGATE              |                             |     1 |    15 |            |          |
|  36 |                FIRST ROW                  |                             |     1 |    15 |     2   (0)| 00:00:01 |
|* 37 |                 INDEX RANGE SCAN (MIN/MAX)| PS_RQ_GRP_TBL               |     1 |    15 |     2   (0)| 00:00:01 |
|* 38 |             INDEX RANGE SCAN              | PS_RQ_MAIN_TBL              |     1 |    30 |     1   (0)| 00:00:01 |
|* 39 |            INDEX RANGE SCAN               | PS_RQ_MAIN_TBL              |     1 |    18 |     1   (0)| 00:00:01 |
|* 40 |    VIEW PUSHED PREDICATE                  |                             |     1 |    29 |    11  (19)| 00:00:01 |
|  41 |     SORT GROUP BY                         |                             |     1 |    32 |    11  (19)| 00:00:01 |
|  42 |      VIEW                                 | VM_NWVW_4                   |     1 |    32 |    10  (10)| 00:00:01 |
|* 43 |       FILTER                              |                             |       |       |            |          |
|  44 |        SORT GROUP BY                      |                             |     1 |   166 |    10  (10)| 00:00:01 |
|* 45 |         FILTER                            |                             |       |       |            |          |
|* 46 |          FILTER                           |                             |       |       |            |          |
|  47 |           NESTED LOOPS                    |                             |     1 |   166 |     7   (0)| 00:00:01 |
|  48 |            NESTED LOOPS                   |                             |     1 |   148 |     6   (0)| 00:00:01 |
|  49 |             NESTED LOOPS                  |                             |     1 |   118 |     5   (0)| 00:00:01 |
|* 50 |              INDEX RANGE SCAN             | PS_RQ_GRP_TBL               |     1 |    27 |     2   (0)| 00:00:01 |
|* 51 |              TABLE ACCESS BY INDEX ROWID  | REC_SM_STDNT_DEG_COMPLETION |     1 |    91 |     3   (0)| 00:00:01 |
|* 52 |               INDEX RANGE SCAN            | REC1SM_STDNT_DEG_IDX        |     1 |       |     2   (0)| 00:00:01 |
|* 53 |             INDEX RANGE SCAN              | PS_RQ_MAIN_TBL              |     1 |    30 |     1   (0)| 00:00:01 |
|* 54 |            INDEX RANGE SCAN               | PS_RQ_MAIN_TBL              |     1 |    18 |     1   (0)| 00:00:01 |
|  55 |          SORT AGGREGATE                   |                             |     1 |    15 |            |          |
|  56 |           FIRST ROW                       |                             |     1 |    15 |     2   (0)| 00:00:01 |
|* 57 |            INDEX RANGE SCAN (MIN/MAX)     | PS_RQ_GRP_TBL               |     1 |    15 |     2   (0)| 00:00:01 |
Predicate Information (identified by operation id):
PLAN_TABLE_OUTPUT
  13 - access("A"."ACAD_CAREER"='UGRD' AND "A"."ACAD_PROG"='UBACH' AND "A"."IMPACT_FLAG"='Y')
       filter("A"."ACAD_PLAN"="A"."REQ_ACAD_PLAN" AND "A"."ACAD_PROG"='UBACH' AND "A"."IMPACT_FLAG"='Y' AND
              "A"."ACAD_CAREER"='UGRD')
  14 - access(INTERNAL_FUNCTION("G_ED"."EFFDT")<=INTERNAL_FUNCTION("A"."REQ_TERM_BEGIN_DATE"))
       filter(INTERNAL_FUNCTION("G_ED"."EFFDT")<=INTERNAL_FUNCTION("A"."REQ_TERM_BEGIN_DATE"))
  16 - access("ITEM_5"="G"."RQRMNT_GROUP" AND "G"."EFFDT"="MAX(G_ED.EFFDT)")
  17 - filter("SYS_ALIAS_2"."ACAD_PLAN"="SYS_ALIAS_2"."REQ_ACAD_PLAN" AND "SYS_ALIAS_2"."ACAD_PROG"='UBACH' AND
              "SYS_ALIAS_2"."ACAD_CAREER"='UGRD' AND "SYS_ALIAS_2"."IMPACT_FLAG"='Y' AND "SYS_ALIAS_2"."REQUIREMENT" IS N
OT
              NULL AND (SYS_OP_C2C("SYS_ALIAS_2"."REQ_ACAD_PLAN")=U'NUPPXXXBBS' OR
              SYS_OP_C2C("SYS_ALIAS_2"."REQ_ACAD_PLAN")=U'NURPBASBBS' OR
              SYS_OP_C2C("SYS_ALIAS_2"."REQ_ACAD_PLAN")=U'NURPXXXBBS') AND
              (SYS_OP_C2C("SYS_ALIAS_2"."ACAD_PLAN")=U'NUPPXXXBBS' OR SYS_OP_C2C("SYS_ALIAS_2"."ACAD_PLAN")=U'NURPBASBBS'
OR
              SYS_OP_C2C("SYS_ALIAS_2"."ACAD_PLAN")=U'NURPXXXBBS') AND (SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'10'
OR
              SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'20' OR SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'30' OR
              SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'40' OR SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'50' OR
              SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'GR') AND "G"."RQRMNT_GROUP"="SYS_ALIAS_2"."RQRMNT_GROUP")
  18 - access("M"."REQUIREMENT"="SYS_ALIAS_2"."REQUIREMENT")
       filter("M"."EFFDT"= (SELECT MAX("M_ED"."EFFDT") FROM "HRSA_EXTR"."PS_RQ_MAIN_TBL" "M_ED" WHERE
              "M_ED"."EFFDT"<=:B1 AND "M_ED"."REQUIREMENT"=:B2))
  21 - access("M_ED"."REQUIREMENT"=:B1 AND "M_ED"."EFFDT"<=:B2)
  22 - access("D"."ACAD_PLAN"="SYS_ALIAS_2"."REQ_ACAD_PLAN")
       filter((SYS_OP_C2C("D"."ACAD_PLAN")=U'NUPPXXXBBS' OR SYS_OP_C2C("D"."ACAD_PLAN")=U'NURPBASBBS' OR
              SYS_OP_C2C("D"."ACAD_PLAN")=U'NURPXXXBBS') AND "D"."ACAD_PLAN"="SYS_ALIAS_2"."REQ_ACAD_PLAN")
  23 - filter("SYS_ALIAS_2"."REQ_TERM"="B"."REQ_TERM"(+))
  26 - filter("M3"."EFFDT"=MAX("M3_ED"."EFFDT"))
  28 - filter('UGRD'="SYS_ALIAS_2"."ACAD_CAREER" AND "SYS_ALIAS_2"."REQ_ACAD_PLAN"="SYS_ALIAS_2"."ACAD_PLAN")
  32 - filter("SYS_ALIAS_2"."REQ_ACAD_PLAN" IS NOT NULL AND
              "SYS_ALIAS_2"."REQ_ACAD_PLAN"="SYS_ALIAS_2"."REQ_ACAD_PLAN" AND
              "SYS_ALIAS_2"."ACADEMIC_LEVEL"="SYS_ALIAS_2"."ACADEMIC_LEVEL" AND "SYS_ALIAS_2"."IMPACT_FLAG"='Y' AND
              "SYS_ALIAS_2"."REQUIREMENT" IS NOT NULL AND (SYS_OP_C2C("SYS_ALIAS_2"."REQ_ACAD_PLAN")=U'NUPPXXXBBS' OR
              SYS_OP_C2C("SYS_ALIAS_2"."REQ_ACAD_PLAN")=U'NURPBASBBS' OR
              SYS_OP_C2C("SYS_ALIAS_2"."REQ_ACAD_PLAN")=U'NURPXXXBBS') AND (SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'
10'
              OR SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'20' OR SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'30' OR
              SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'40' OR SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'50' OR
              SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'GR') AND "SYS_ALIAS_2"."GRADE"<>'IP')
  33 - access("SYS_ALIAS_2"."EMPLID"="SYS_ALIAS_2"."EMPLID" AND
              "SYS_ALIAS_2"."ACAD_PLAN"="SYS_ALIAS_2"."REQ_ACAD_PLAN" AND "SYS_ALIAS_2"."ACAD_CAREER"='UGRD' AND
              "SYS_ALIAS_2"."ACAD_PROG"='UBACH' AND "SYS_ALIAS_2"."RQRMNT_GROUP"="SYS_ALIAS_2"."RQRMNT_GROUP")
       filter("SYS_ALIAS_2"."RQRMNT_GROUP"="SYS_ALIAS_2"."RQRMNT_GROUP" AND "SYS_ALIAS_2"."ACAD_PROG"='UBACH'
              AND "SYS_ALIAS_2"."ACAD_CAREER"='UGRD' AND (SYS_OP_C2C("SYS_ALIAS_2"."ACAD_PLAN")=U'NUPPXXXBBS' OR
              SYS_OP_C2C("SYS_ALIAS_2"."ACAD_PLAN")=U'NURPBASBBS' OR SYS_OP_C2C("SYS_ALIAS_2"."ACAD_PLAN")=U'NURPXXXBBS')
  34 - access("G3"."RQRMNT_GROUP"="SYS_ALIAS_2"."RQRMNT_GROUP")
       filter("G3"."RQRMNT_GROUP"="SYS_ALIAS_2"."RQRMNT_GROUP" AND "G3"."EFFDT"= (SELECT MAX("G3_ED"."EFFDT")
              FROM "HRSA_EXTR"."PS_RQ_GRP_TBL" "G3_ED" WHERE "G3_ED"."EFFDT"<=:B1 AND "G3_ED"."RQRMNT_GROUP"=:B2))
  37 - access("G3_ED"."RQRMNT_GROUP"=:B1 AND "G3_ED"."EFFDT"<=:B2)
  38 - access("M3"."REQUIREMENT"="SYS_ALIAS_2"."REQUIREMENT")
  39 - access("M3_ED"."REQUIREMENT"="M3"."REQUIREMENT" AND "M3_ED"."EFFDT"<="B_SUB"."REQ_TERM_BEGIN_DATE")
  40 - filter("SYS_ALIAS_2"."REQ_TERM"="C"."REQ_TERM"(+))
  43 - filter("M2"."EFFDT"=MAX("M2_ED"."EFFDT"))
  45 - filter("G2"."EFFDT"= (SELECT MAX("G2_ED"."EFFDT") FROM "HRSA_EXTR"."PS_RQ_GRP_TBL" "G2_ED" WHERE
              "G2_ED"."EFFDT"<=:B1 AND "G2_ED"."RQRMNT_GROUP"=:B2))
  46 - filter('UGRD'="SYS_ALIAS_2"."ACAD_CAREER" AND "SYS_ALIAS_2"."REQ_ACAD_PLAN"="SYS_ALIAS_2"."ACAD_PLAN")
  50 - access("G2"."RQRMNT_GROUP"="SYS_ALIAS_2"."RQRMNT_GROUP")
  51 - filter("SYS_ALIAS_2"."REQ_ACAD_PLAN"="SYS_ALIAS_2"."REQ_ACAD_PLAN" AND
              "SYS_ALIAS_2"."ACADEMIC_LEVEL"="SYS_ALIAS_2"."ACADEMIC_LEVEL" AND "SYS_ALIAS_2"."RQRMNT_LINE_STATUS"='COMP'
AND
              "SYS_ALIAS_2"."IMPACT_FLAG"='Y' AND "SYS_ALIAS_2"."REQUIREMENT" IS NOT NULL AND
              (SYS_OP_C2C("SYS_ALIAS_2"."REQ_ACAD_PLAN")=U'NUPPXXXBBS' OR
              SYS_OP_C2C("SYS_ALIAS_2"."REQ_ACAD_PLAN")=U'NURPBASBBS' OR
              SYS_OP_C2C("SYS_ALIAS_2"."REQ_ACAD_PLAN")=U'NURPXXXBBS') AND (SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'
10'
              OR SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'20' OR SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'30' OR
              SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'40' OR SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'50' OR
              SYS_OP_C2C("SYS_ALIAS_2"."ACADEMIC_LEVEL")=U'GR') AND "SYS_ALIAS_2"."GRADE"<>'IP')
  52 - access("SYS_ALIAS_2"."EMPLID"="SYS_ALIAS_2"."EMPLID" AND
              "SYS_ALIAS_2"."ACAD_PLAN"="SYS_ALIAS_2"."REQ_ACAD_PLAN" AND "SYS_ALIAS_2"."ACAD_CAREER"='UGRD' AND
              "SYS_ALIAS_2"."ACAD_PROG"='UBACH' AND "SYS_ALIAS_2"."RQRMNT_GROUP"="SYS_ALIAS_2"."RQRMNT_GROUP")
       filter("SYS_ALIAS_2"."RQRMNT_GROUP"="SYS_ALIAS_2"."RQRMNT_GROUP" AND "SYS_ALIAS_2"."ACAD_PROG"='UBACH'
              AND "SYS_ALIAS_2"."ACAD_CAREER"='UGRD' AND (SYS_OP_C2C("SYS_ALIAS_2"."ACAD_PLAN")=U'NUPPXXXBBS' OR
              SYS_OP_C2C("SYS_ALIAS_2"."ACAD_PLAN")=U'NURPBASBBS' OR SYS_OP_C2C("SYS_ALIAS_2"."ACAD_PLAN")=U'NURPXXXBBS')
AND
              "G2"."RQRMNT_GROUP"="SYS_ALIAS_2"."RQRMNT_GROUP")
  53 - access("M2"."REQUIREMENT"="SYS_ALIAS_2"."REQUIREMENT")
  54 - access("M2_ED"."REQUIREMENT"="M2"."REQUIREMENT" AND "M2_ED"."EFFDT"<="C_SUB"."REQ_TERM_BEGIN_DATE")
  57 - access("G2_ED"."RQRMNT_GROUP"=:B1 AND "G2_ED"."EFFDT"<=:B2)Edited by: ngilbert on Jun 26, 2012 5:00 PM
Edited by: ngilbert on Jun 26, 2012 5:05 PM

Similar Messages

  • Query running fine in one environment but failing in other environment

    Hi,
    I have a query which i am trying to execute in two different environments.
    Test :- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Prod:- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Now query executes finely in one environment and fails in other environment.
    It gives following error.
    ORA-01861: literal does not match format string
    01861. 00000 - "literal does not match format string"
    The query is too long and contains CHAR-DATE and DATE-CHAR conversions.
    The same query works fine on TEST environment and and fails on PROD environment.
    Any help related to it would be appreciated.
    Thanks,
    Mahesh

    MaheshGx wrote:
    Hi,
    I have a query which i am trying to execute in two different environments.
    Test :- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Prod:- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Now query executes finely in one environment and fails in other environment.
    It gives following error.
    ORA-01861: literal does not match format string
    01861. 00000 - "literal does not match format string"
    The query is too long and contains CHAR-DATE and DATE-CHAR conversions.
    The same query works fine on TEST environment and and fails on PROD environment.
    Any help related to it would be appreciated.
    Thanks,
    MaheshThat's called a bug. One caused by the person who developed the code. They relied on implicit conversion between strings and dates when
    production quality code will always use to_char and to_date functions with a format mask.

  • I installed lightroom 5 with a 30 day trial and it finished. Yesterday I installed cc and when I open LR5 I need a serial number. What do I do/how do I get one? Please help Tank you

    I installed lightroom 5 with a 30 day trial and it finished.
    Yesterday I installed cc and when I open LR5 I need a serial number.
    What do I do/how do I get one?
    Please help, Thank you.

    Your photos remain in place, the catalog you have been using will remain. After you install Lightroom from the CC, all you have to do is open your existing catalog and continue right where you left off.

  • I need to pass a query in form of string to DBMS_XMLQUERY.GETXML package...the parameters to the query are date and varchar ..please help me..

    I need to pass a query in form of string to DBMS_XMLQUERY.GETXML package...the parameters to the query are date and varchar ..please help me build the string .Below is the query and the out put. ( the string is building fine except the parameters are with out quotes)
    here is the procedure
    create or replace
    procedure temp(
        P_MTR_ID VARCHAR2,
        P_FROM_DATE    IN DATE ,
        P_THROUGH_DATE IN DATE ) AS
        L_XML CLOB;
        l_query VARCHAR2(2000);
    BEGIN
    l_query:=  'SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
          ||'mi''), ''00:'
          ||'00'',''24:'
          ||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
          ||'mi'')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = '
        ||P_MTR_ID||
       ' AND s_mtrch   = ''1''
        AND s_datetime BETWEEN TO_DATE('
        ||P_FROM_DATE||
        ',''DD-MON-YY'') AND (TO_DATE('
        ||P_THROUGH_DATE||
        ',''DD-MON-YY'') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = '
        ||P_MTR_ID||
        ' AND s_mtrch   = ''2''
        AND s_datetime BETWEEN TO_DATE('
        ||P_FROM_DATE||
        ',''DD-MON-YY'') AND (TO_DATE('
        ||P_THROUGH_DATE||
        ','' DD-MON-YY'') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)';
    SELECT DBMS_XMLQUERY.GETXML('L_QUERY') INTO L_XML   FROM DUAL;
    INSERT INTO NK VALUES (L_XML);
    DBMS_OUTPUT.PUT_LINE('L_QUERY IS :'||L_QUERY);
    END;
    OUTPUT parameters are in bold (the issue is they are coming without single quotes otherwise th equery is fine
    L_QUERY IS :SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),'9999999.000') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),'$9,999,999.00') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),'9999999.000') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,'mm/dd/yyyy') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,'hh24:mi'), '00:00','24:00', TO_CHAR(s_datetime+.000011574,'hh24:mi')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = N3165 AND s_mtrch   = '1'
        AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,'DD-MON-YY') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = N3165 AND s_mtrch   = '2'
        AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,' DD-MON-YY') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)

    The correct way to handle this is to use bind variables.
    And use DBMS_XMLGEN instead of DBMS_XMLQUERY :
    create or replace procedure temp (
      p_mtr_id       in varchar2
    , p_from_date    in date
    , p_through_date in date
    is
      l_xml   CLOB;
      l_query VARCHAR2(2000);
      l_ctx   dbms_xmlgen.ctxHandle;
    begin
      l_query:=  'SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
          ||'mi''), ''00:'
          ||'00'',''24:'
          ||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
          ||'mi'')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = :P_MTR_ID
        AND s_mtrch   = ''1''
        AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
                           AND (TO_DATE(:P_THROUGH_DATE,''DD-MON-YY'') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = :P_MTR_ID
        AND s_mtrch   = ''2''
        AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
                           AND (TO_DATE(:P_THROUGH_DATE,'' DD-MON-YY'') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)';
      l_ctx := dbms_xmlgen.newContext(l_query);
      dbms_xmlgen.setBindValue(l_ctx, 'P_MTR_ID', p_mtr_id);
      dbms_xmlgen.setBindValue(l_ctx, 'P_FROM_DATE', to_char(p_from_date, 'DD-MON-YY'));
      dbms_xmlgen.setBindValue(l_ctx, 'P_THROUGH_DATE', to_char(p_through_date, 'DD-MON-YY'));
      l_xml := dbms_xmlgen.getXML(l_ctx);
      dbms_xmlgen.closeContext(l_ctx);
      insert into nk values (l_xml);
    end;

  • Do you know of an app like a weekly planner/ diary that I can see and edit in my phone and my boyfriend can on his? Been looking on the app store but can't seem to find one! Please help! :)

    Do you know of an app like a weekly planner / diary that I can see and edit in my phone and my boyfriend can on his? Been looking on the app store but can't seem to find one! Please help!

    Welcome to the Apple Community.
    How about calendar, you can share calendars.

  • I have bought the whole CC and it says my trial has expired. But when i go to license the software, it asks for a serial number and i dont have one. Please help.

    I have bought the whole CC and it says my trial has expired. But when i go to license the software, it asks for a serial number and i dont have one. Please help.

    Sign out from Creative Cloud and sign in again using email ID using which you had purcahsed subscription:
    https://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    Then launch CC apps which is asking for serial number and check.
    Still asks for serial number check the hosts file for Adobe entries , if present remove it and try to activate.
    1) Right click on the Finder icon on dock and select "Go-To Folder" option.
    2) You will get a text box, type-in below mentioned command and then hit 'Return' key.
    /etc
    3) It will open the etc folder, please look for file named "hosts" and copy the same to Desktop screen.it
    4)Double click on Hosts file , it will open it with TextEdit, If present Delete Adobe entries present inside Hosts file like 127.0.0.1 activate.adobe.com.......etc
    5)Copy and paste the Hosts file back to "Etc" folder.
    When asked Authenticate with your Mac password.
    Make sure to select "Replace" option when prompted.
    Then launch CC apps which is asking for serial number and check.

  • I have iOS 6 on my iPhone. i have linked my contacts with facebook and yahoo, which has doubled or triplicated some of the contacts. how can i integrate them into one? please help. it is getting on my nerves. thanks :)

    I have iOS 6 on my iPhone. i have linked my contacts with facebook and yahoo, which has doubled or triplicated some of the contacts. how can i integrate them into one? please help. it is getting on my nerves. thanks

    click on the contact which you want to integrate, click the edit button scroll down u will find a option called link contacts use it to link it to the duplicate contact

  • I have been trying to get the full version of lightroom after using a trial version but it says something about "GB" ? And i need to log into different account or set up a new one? Please help?

    I have been trying to get the full version of lightroom after using a trial version but it says something about "GB" ? And i need to log into different account or set up a new one? Please help?

    I would love to give you more information but i cannot access that page again? i can add Lightroom to my cart but when i go into my cart it says there is nothing in there? I have a red bubble above "my cart" with a number 4 in it to show there is something there but there is not? It just wont let me buy anything?

  • I am working on big project and in accidentally flatten the file and i saved it as PSD in then I exited Photoshop. the next time when i open the file it is merged on one page. please help!

    I am working on big project and in accidentally flatten the file and i saved it as PSD in then I exited Photoshop. the next time when i open the file it is merged on one page. please help!

    Flattening and merging are very similar. The main difference is merging keeps the transparent areas, whereas flattening removes all transparent areas by giving it a white background. A good example of flattening is a jpg image.
    Since you have closed the file by closing photoshop, that means that the history is now gone, no way of undoing.
    So that leaves you with two choices.
    You can either recreate the whole document.
    Or you can make selections of areas you are keeping and moving them one at a time to new layers. Keep each object on a separate layer. Then redo the area behind those objects.

  • Lightroom 5 slowdown, my post processing times have tripled and the develop tasks take multiple seconds for one adjustment, Please Help. . . .

    my post processing times have tripeled and the develop tasks take multiple seconds for one adjustment, Please Help. . . .

    my post processing times have tripeled and the develop tasks take multiple seconds for one adjustment, Please Help. . . .

  • Need help with query that can look data back please help.

    hi guys i have a table like such
    CREATE TABLE "FGL"
        "FGL_GRNT_CODE" VARCHAR2(60),
        "FGL_FUND_CODE" VARCHAR2(60),
        "FGL_ACCT_CODE" VARCHAR2(60),
        "FGL_ORGN_CODE" VARCHAR2(60),
        "FGL_PROG_CODE" VARCHAR2(60),
        "FGL_GRNT_YEAR" VARCHAR2(60),
        "FGL_PERIOD"    VARCHAR2(60),
        "FGL_BUDGET"    VARCHAR2(60)
      )and i have a data like such
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','1','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','2','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7470','4730','02','10','2','200');I bascially need to get the total of the budget column. however its not as simple as it sound(well atleast not for me.) the totals carry over to the new period. youll noticed the you have a period column. basically what im saying is that
    fgl_grant_year 10 period 1 = for account 7600 its $100 and $100 for period 2 you see 100 dollars again this is not to be added this is the carried over balance. which remains $100.
    so im trying to write a query that basically does the following.
    im given a period for the sake of this example lets say period 1 i get nothing else. I have to find the greates grant year grab the amount for period 14(which is the total from the previous year) and add it to the amount of the current period. in this case period 1 grnt_year 11
    so the expected outcome should be $700
    240055     240055     7240     4730     02     10     14     200
    240055     240055     7600     4730     02     10     14     100
    240055     240055     7600     4730     02     11     1     400keep in mind that im not given a year just a period.
    any help that you guys can offer would be immensely appreciated. I have been trying to get this to work for over 3 days now.
    finally broke down and put together this post
    Edited by: mlov83 on Sep 14, 2011 8:48 PM

    Frank
    wondering if you can help me modify this sql statement that you provided me with .
    table values have been modified a bit.
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','00','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7200','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7600','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','2','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','11','2','600');i need to take one more thing into consideration. if the greatest year has a value on period 00 i need to ignore the period 14 and the current period total would be
    the current period +(current period - greatest year 00)
    hope that makes sense so in other words with the new data above. if i was querying period two of grant year 11. i would end up with $800
    because the greatest year is 11 it contains a period 0 with amount of $400 so my total should be
    period 2 amount $ 600
    period 0 amount $ 400 - period 2 amount of $600 = 200
    600+200 = $800
    if i query period 1 of grant 360055 i would just end up with 800 of grnt year 10.
    i have tried to modify that query you supplied to me with no luck. I have tried for several day but im embarrased to say i just can get it to do what im trying to do .
    can you please help me out.
    Miguel

  • Mainatining two LST in differnt chanel for one customer please help

    dear gurus
    i ve the following problem
    i ve one customer maruti in two distribution channel with customer no4005 for both
    can i maintain two diferent LST fro both
    like i need to maintain 12.5%  for one distribution channel and 4%for other
    but sytems taking identical for both of it
    so wat ll be the solution to maintain two diffent LST
    in customer master
    please help
    subrat

    in this way its not happening suggested by u saurav but i think the NP has given a good suggession
    actually i dont want to have same customer no in both the distribution channel so it ll better to do it in this way
    thanks
    both of u...
    Message was edited by:
            subrat panda

  • Quey Performance Issue !! Please help.

    Hi All
    I am new to query tuning, so please ignore if I ask some bad questions !
    I have a huge table M with 4,48,42,682 records in Oracle 9.2 PROD database. Its partitioned on a column M_c1, date column. There are 62 partitions. It has several indexes and indexes are partitioned as well.
    There is a query which uses this table and gives following explain plan.
    As it can be seen, there are 3 full table access for M. Lookup table is having 2000 rows only, so is not a major concern, i believe. Lookup table is accessed via views.
    | Id | Operation | Name | Rows | Bytes | Cost | Pstart| Pstop | TQ |IN-OUT| PQ Distrib |
    | 0 | SELECT STATEMENT | | 3 | 225 | 11562 | | | | | |
    | 1 | WINDOW BUFFER | | 3 | 225 | 11562 | | | | | |
    | 2 | SORT ORDER BY | | 3 | 225 | 11562 | | | 92,16 | P->S | QC (ORDER) |
    | 3 | VIEW | | 3 | 225 | 11559 | | | 92,15 | P->P | RANGE |
    | 4 | SORT UNIQUE | | 3 | 345 | 11559 | | | 92,15 | PCWP | |
    | 5 | UNION-ALL | | | | | | | 92,14 | P->P | HASH |
    | 6 | SORT GROUP BY | | 1 | 113 | 1043 | | | 92,14 | PCWP | |
    | 7 | SORT GROUP BY | | 1 | 113 | 1043 | | | 92,11 | P->P | HASH |
    |* 8 | HASH JOIN | | 1 | 113 | 1036 | | | 92,11 | PCWP | |
    | 9 | MERGE JOIN CARTESIAN | | 1 | 64 | 48 | | | 92,00 | S->P | BROADCAST |
    | 10 | MERGE JOIN CARTESIAN | | 1 | 44 | 36 | | | | | |
    | 11 | MERGE JOIN CARTESIAN | | 1 | 24 | 24 | | | | | |
    | 12 | VIEW | view          | 1 | 12 | 12 | | | | | |
    | 13 | SORT ORDER BY | | 1 | 91 | 12 | | | | | |
    |* 14 | FILTER | | | | | | | | | |
    |* 15 | TABLE ACCESS FULL | lookup table          | 1 | 91 | 6 | | | | | |
    | 16 | BUFFER SORT | | 1 | 12 | 24 | | | | | |
    | 17 | VIEW | view | 1 | 12 | 12 | | | | | |
    | 18 | SORT ORDER BY | | 1 | 91 | 12 | | | | | |
    |* 19 | TABLE ACCESS FULL | lookup tabl | 1 | 91 | 6 | | | | | |
    | 20 | BUFFER SORT | | 1 | 20 | 24 | | | | | |
    | 21 | VIEW | view | 1 | 20 | 12 | | | | | |
    | 22 | SORT ORDER BY | | 1 | 91 | 12 | | | | | |
    |* 23 | TABLE ACCESS FULL | lookup tabl | 1 | 91 | 6 | | | | | |
    | 24 | BUFFER SORT | | 1 | 20 | 36 | | | | | |
    | 25 | VIEW | | 1 | 20 | 12 | | | | | |
    | 26 | SORT ORDER BY | | 1 | 91 | 12 | | | | | |
    |* 27 | TABLE ACCESS FULL | lookup table | 1 | 91 | 6 | | | | | |
    | 28 | PARTITION RANGE ITERATOR| | | | | KEY | KEY | 92,11 | PCWP | |
    |* 29 | TABLE ACCESS FULL | M | 18149 | 868K| 988 | KEY | KEY | 92,11 | PCWP | |
    | 30 | SORT GROUP BY | | 1 | 116 | 5258 | | | 92,14 | PCWP | |
    | 31 | SORT GROUP BY | | 1 | 116 | 5258 | | | 92,12 | P->P | HASH |
    |* 32 | HASH JOIN | | 1 | 116 | 5251 | | | 92,12 | PCWP | |
    |* 33 | HASH JOIN | | 1 | 96 | 5239 | | | 92,12 | PCWP | |
    |* 34 | HASH JOIN | | 8 | 608 | 5227 | | | 92,12 | PCWP | |
    |* 35 | HASH JOIN | | 116 | 7424 | 5215 | | | 92,12 | PCWP | |
    | 36 | VIEW | view | 1 | 12 | 12 | | | 92,01 | S->P | BROADCAST |
    | 37 | SORT ORDER BY | | 1 | 91 | 12 | | | | | |
    |* 38 | TABLE ACCESS FULL | lookup tabl | 1 | 91 | 6 | | | | | |
    |* 39 | HASH JOIN | | 3489 | 177K| 5203 | | | 92,12 | PCWP | |
    | 40 | VIEW | view | 1 | 12 | 12 | | | 92,02 | S->P | BROADCAST |
    | 41 | SORT ORDER BY | | 1 | 91 | 12 | | | | | |
    |* 42 | FILTER | | | | | | | | | |
    |* 43 | TABLE ACCESS FULL| lookup tabl | 1 | 91 | 6 | | | | | |
    | 44 | PARTITION RANGE ALL | | | | | 1 | 62 | 92,12 | PCWP | |
    |* 45 | TABLE ACCESS FULL | M               | 111K| 4361K| 5191 | 1 | 62 | 92,12 | PCWP | |
    | 46 | VIEW | view | 1 | 12 | 12 | | | 92,03 | S->P | BROADCAST |
    | 47 | SORT ORDER BY | | 1 | 91 | 12 | | | | | |
    |* 48 | TABLE ACCESS FULL | lookup tabl | 1 | 91 | 6 | | | | | |
    | 49 | VIEW | view | 1 | 20 | 12 | | | 92,04 | S->P | BROADCAST |
    | 50 | SORT ORDER BY | | 1 | 91 | 12 | | | | | |
    |* 51 | TABLE ACCESS FULL | lokup table | 1 | 91 | 6 | | | | | |
    | 52 | VIEW | view | 1 | 20 | 12 | | | 92,05 | S->P | BROADCAST |
    | 53 | SORT ORDER BY | | 1 | 91 | 12 | | | | | |
    |* 54 | TABLE ACCESS FULL | lookup tabl | 1 | 91 | 6 | | | | | |
    | 55 | SORT GROUP BY | | 1 | 116 | 5258 | | | 92,14 | PCWP | |
    | 56 | SORT GROUP BY | | 1 | 116 | 5258 | | | 92,13 | P->P | HASH |
    |* 57 | HASH JOIN | | 1 | 116 | 5251 | | | 92,13 | PCWP | |
    |* 58 | HASH JOIN | | 1 | 96 | 5239 | | | 92,13 | PCWP | |
    |* 59 | HASH JOIN | | 8 | 608 | 5227 | | | 92,13 | PCWP | |
    |* 60 | HASH JOIN | | 116 | 7424 | 5215 | | | 92,13 | PCWP | |
    | 61 | VIEW | view | 1 | 12 | 12 | | | 92,06 | S->P | BROADCAST |
    | 62 | SORT ORDER BY | | 1 | 91 | 12 | | | | | |
    |* 63 | TABLE ACCESS FULL | lookup tabl | 1 | 91 | 6 | | | | | |
    |* 64 | HASH JOIN | | 3489 | 177K| 5203 | | | 92,13 | PCWP | |
    | 65 | VIEW | view | 1 | 12 | 12 | | | 92,07 | S->P | BROADCAST |
    | 66 | SORT ORDER BY | | 1 | 91 | 12 | | | | | |
    |* 67 | FILTER | | | | | | | | | |
    |* 68 | TABLE ACCESS FULL| lookup tabl | 1 | 91 | 6 | | | | | |
    | 69 | PARTITION RANGE ALL | | | | | 1 | 62 | 92,13 | PCWP | |
    |* 70 | TABLE ACCESS FULL | M | 111K| 4361K| 5191 | 1 | 62 | 92,13 | PCWP | |
    | 71 | VIEW | view | 1 | 12 | 12 | | | 92,08 | S->P | BROADCAST |
    | 72 | SORT ORDER BY | | 1 | 91 | 12 | | | | | |
    |* 73 | TABLE ACCESS FULL | lookup tabl | 1 | 91 | 6 | | | | | |
    | 74 | VIEW | view | 1 | 20 | 12 | | | 92,09 | S->P | BROADCAST |
    | 75 | SORT ORDER BY | | 1 | 91 | 12 | | | | | |
    |* 76 | TABLE ACCESS FULL | lookup tabl | 1 | 91 | 6 | | | | | |
    | 77 | VIEW | view | 1 | 20 | 12 | | | 92,10 | S->P | BROADCAST |
    | 78 | SORT ORDER BY | | 1 | 91 | 12 | | | | | |
    |* 79 | TABLE ACCESS FULL | lookup tabl | 1 | 91 | 6 | | | | | |
    1) What is the meaning of * in first ID column of explain plan above ?
    2) In so many operations, how to start reading the plan ? Can u tell me which one is first line to read ?
    3) Well, above query is taking 30 mins approx to give only 13 rows at last. Need to find pain points and tune this query.
    Can you please help me in this ? From where do I start for tuning this ?
    Thanks.

    Your plan is unreadable, because you have not enclosed it within code tags.
    The access and predicate information (which is what the *s refer to) is missing.
    The SQL statement itself is missing.
    As a minumum, provide the information like this:orcl>
    orcl> explain plan for
      2  select * from emp where empno=1000;
    Explained.
    orcl> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 2949544139
    | Id  | Operation                   | Name   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |        |     1 |    38 |     1   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| EMP    |     1 |    38 |     1   (0)| 00:00:01 |
    |*  2 |   INDEX UNIQUE SCAN         | PK_EMP |     1 |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("EMPNO"=1000)
    14 rows selected.
    orcl>

  • Trying to delete file from trash but get this: The operation can't be completed because the item "File name" is in use. All other files delete except this one. Please help

    Trying to delete file from trash but get this: The operation can’t be completed because the item “File name” is in use. All other files delete except this one. Please help

    Maybe some help here:
    http://osxdaily.com/2012/07/19/force-empty-trash-in-mac-os-x-when-file-is-locked -or-in-use//

  • Is there anyway to transfer my money on my old Apple ID to my new one? please help (:

    so I made a new Apple ID because i forgot my security question on my old Apple ID. but I had just redeemed an iTunes gift card on my old account and it doesn't let me buy music. so is there anyway to transfer my money on my old Apple ID to my new one?? I tried to gift it but it won't let me. please help! (:

    You need to contact Apple to get the questions reset. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    Contacting Apple is also necessary to get the money moved if it's possible at all, and it's probably better to have them reset the questions.
    (95310)

Maybe you are looking for

  • How to show processing screen while the submitted request is in progress?

    Hi SIM Experts, I have couple of requirements in SIM7.1.1.9, i.e. 1. Whenever i submit a request, i need to show a *'Processing Screen'* (i.e. form indicating that my request is in progress) when my request is in progress. 2. Once my request is compl

  • Problem in the internal table of open dataset statement

    Hi abapers, I am using the open dataset command to download my file at application server into an internal table. But some colums of the internal table are string since i do not want to truncate any of the long text present in the file. The open data

  • Geforce GTX model for Premiere Pro CS 6

    Hello all, I might overstress this topic a bit, cause it is probably asked too many times already. Please, be patient with me ;-). But I'm a bit confused, what I found on the community board so far, or the responses are already too old. The official

  • How to set up junk mail filtering in mac mail

    Is there a new way to set up junk mail filtering? I have been getting an increased amount of junk mail which the filter seems to allow through. Also, when I select emails and mark them as junk, when I delete them, they "reappear" still marked as junk

  • Queue naming convention

    Can anyone let me know, how the naming convention for a middleware dynamic queue is determined. For example for BDoc type PODUCT_MAT the inbound queue name in our system is R3AD_MATERIA<Material No.>. I couldn't find any configuration where this conv