Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Update is running long with temp transformation in execution plan

We have an update process that is running long and it seems like temp transformation plan lines are taking more time

UPDATE
        COMSYS.BRANCH_BONUS_DETAIL A
SET
        (
                EXCLUDE_FLAG,
                REASON      ,
                LAST_OSJ_DATE
        )
        =
        (
                SELECT
                        'Y',
                        A.REASON
                                ||'5 - CHANGED OSJ ON '
                                ||REP_LAST_OSJ_SWTCH_DT
                                ||'|',
                        REP_LAST_OSJ_SWTCH_DT
                FROM
                        COMSYS.REP_OSJ_SWITCH_VW_BRANCH_BONUS
                WHERE
                        REP_ID = A.REP_ID)
WHERE
        PAY_PERIOD = :B1
AND     EXISTS
        (
                SELECT
                        'X'
                FROM
                        COMSYS.REP_OSJ_SWITCH_VW_BRANCH_BONUS
                WHERE
                        REP_ID                 = A.REP_ID
                AND     REP_LAST_OSJ_SWTCH_DT >= :B2 )
AND     EXISTS
        (
                SELECT
                        'x'
                FROM
                        COMSYS.REP
                WHERE
                        REP_ID               = A.REP_ID
                AND     MASTER_BANK_ID IS NULL
                AND     NVL(MASTER_ID,REP_ID) NOT IN
                        (
                                SELECT DISTINCT
                                        MASTER_BANK_ID
                                FROM
                                        COMSYS.REP
                                WHERE
                                        MASTER_BANK_ID IS NOT NULL))





  

Comments

justsomeone

Hello

the compiler can not find the User class
for example in this line in your code
public void insertUsers(List < User > list)
insertUsers take list of User but it can not find the class User so to solve it

  1. import the class User
  2. if the class User are in the same package then you do not need to do anything
  3. if the class User are nested member (static inner class or inner class) then you do not need to anything also

but i guess this class are in other package maybe from the tutorial you mentioned it's mentioned in previous page or something

hope that help and have a nice day :)

1 - 1

Post Details

Added on Oct 2 2020
12 comments
972 views