Session problem

I create and populate the table below in the HR schema:
create or replace
function get_user
return varchar2
is
  name varchar2(50);
begin
  select user into name from dual;
  return name;
end;

set serveroutput on;
begin
  dbms_output.put_line(get_user);
end;

create user my_user identified by my_user;
create user my_user2 identified by my_user2;

grant execute on get_user to my_user;
grant execute on get_user to my_user2;

connect my_user/my_user;

set serveroutput on;
begin
  dbms_output.put_line(hr.get_user);
end;


connect my_user2/my_user2;

set serveroutput on;
begin
  dbms_output.put_line(hr.get_user);
end;
And the output is
HR

MY_USER

MY_USER2
My question is the get_user function is in the HR schema right? So this function runs in human resources. Because it is not declared authid current_user, however she runs as in the schema of the invoker (session) why?

Although he has not been declared authid current_user, but he behaves like this?

The important thing is when I call this function as a password, then, where it will run? in my session or session define?

Thanks for your help.

Published by: 944258 on 11.Tem.2012 13:14

Published by: 944258 on 11.Tem.2012 13:27

944258 wrote:
My question is the get_user function is in the HR schema right?

Fix.

So this function runs in human resources.

What does it mean for you, for a function to execute in a schema? The function is defined in the HR schema. It runs with the privileges of the current user.

Because it is not declared authid current_user, however she runs as in the schema of the invoker (session) why?

But it is defined as authid current_user

Although he has not been declared authid current_user, but he behaves like this?

The function is a DEFINER rights or rights a stored procedure to an applicant, the USER-defined function returns the currently logged in user. It has nothing to do with the schema that belongs to the function or the privileges of the service runs as.

The important thing is when I call this function as a password, then, where it will run? in my session or session define?

Whether a stored procedure DEFINER rights or the rights of a plaintiff stored procedure, it will run in your session. It runs with the privileges of the user to define either with your privileges.

Justin

Tags: Database

Similar Questions

  • Blocking session problem

    Hi all

    I have a stored procedure that is called in specific reports and this report running much different to the user in the application. When this report is by many users running it start blocking the session. Instant Oracle showing locked held by another session and all the beginning of session resource pending, but never published by session, what is the error in this stored procedure

    For the analysis of the functioning and to block queries run the suite of scripts

    1.       Query about sessions that are either blocked or blocking other sessions.

    Select s1.username. '@' || S1.machine | ' (SID =' | s1.sid |) blocking ') ' | S2. UserName | '@' || S2.machine | ' (SID =' | s2.sid |) ') ' AS blocking_status

    v $ lock l1, v$ lock l2, v$ session s1 and s2 from v$ session where s1.sid = l1.sid and s2.sid = l2.sid and l1. BLOCK = 1 and l2.request > 0

    and l1.id1 = l2.id1 and l2.id2 = l2.id2;

    BLOCKING_STATUS

    [email protected] (SID = 158) blocks [email protected] (SID = 375)

    [email protected] (SID = 416) blocks [email protected] (SID = 329)

    [email protected] (SID = 416) blocks [email protected] (SID = 369)

    [email protected] (SID = 416) blocks [email protected] (SID = 385)

    [email protected] (SID = 416) blocks [email protected] (SID = 429)

    [email protected] (SID = 416) blocks [email protected] (SID = 443)

    [email protected] (SID = 416) blocks [email protected] (SID = 451)

    2.       Can be found objects that are blocked by above sessions by running the following issue:

    Select do.object_name, row_wait_obj #, row_wait_file #, row_wait_block #, row_wait_row #, dbms_rowid.rowid_create (1, ROW_WAIT_OBJ #, ROW_WAIT_FILE #, ROW_WAIT_BLOCK #, ROW_WAIT_ROW #)

    v $ session s, dba_objects do where sid =: sid and s.ROW_WAIT_OBJ # = do. OBJECT_ID;

    3.       The request for running SQL against SID

    Select sql_text

    de v$ sqlarea

      (address, hash_value) in

    (select sql_address sql_hash_value )

    de session $ v

            where sid like '&sid');

    4.       Next statement is blocking other sessions:

    UPDATE gl_je_lines l

       SET CONTEXT = NULL,

    attribute1 = NULL,

    attribut2 = NULL,

    attribut3 = NULL,

    attribute4 = NULL,

    attribute5 = NULL,

    Description = NULL

    WHERE l. je_header_id = :b2 AND l. je_line_num = :b1


    Here's the code for SPplz help me

    CREATE OR REPLACE PROCEDURE APPS. () LESCO_IOTSSCHQ_UPDATE_DFF

    P_AS_ON VARCHAR2)

    IS

    -TO UDPATE CHECK NUMBER OF DISTRIBUTIONS

    CURSOR CUR_SSCHQ

    IS

    SELECT HELPED SEPARATE. INVOICE_DISTRIBUTION_ID DISTRIBUTION_ID,

    AIDA. INVOICE_ID

    OF AIDA AP_INVOICE_DISTRIBUTIONS_ALL,.

    GL_CODE_COMBINATIONS_V CC

    WHERE CC. CODE_COMBINATION_ID = AIDA. DIST_CODE_COMBINATION_ID

    AND CC. SEGMENT4 = '530103'

    AND AIDA. ACCOUNTING_DATE < = FND_DATE. CANONICAL_TO_DATE (P_AS_ON)

    AND AIDA. ATTRIBUTE_CATEGORY = "Debitable.

    AND AIDA. ATTRIBUT3 IS NULL.

    -ITO FOR CASH

    CURSOR CUR_IOTCASH

    IS

    SELECT HELPED SEPARATE. INVOICE_DISTRIBUTION_ID DISTRIBUTION_ID,

    AIDA. INVOICE_ID

    OF AIDA AP_INVOICE_DISTRIBUTIONS_ALL,.

    GL_CODE_COMBINATIONS_V CC

    WHERE CC. CODE_COMBINATION_ID = AIDA. DIST_CODE_COMBINATION_ID

    AND CC. SEGMENT4 = '530102'

    AND AIDA. ACCOUNTING_DATE < = FND_DATE. CANONICAL_TO_DATE (P_AS_ON)

    AND AIDA. ATTRIBUTE_CATEGORY = 'transfer of the letter references '.

    AND AIDA. ATTRIBUTE8 IS NULL.

    CURSOR CUR_INV_DISTD

    IS

    SELECT THE RIF. JE_HEADER_ID,

    GIR. JE_LINE_NUM,

    AIDA. INVOICE_DISTRIBUTION_ID DISTRIBUTION_ID

    OF GL_JE_HEADERS H,

    GL_IMPORT_REFERENCES RIF,

    AP_AE_LINES_ALL AAELA,

    AIDA AP_INVOICE_DISTRIBUTIONS_ALL,.

    GL_CODE_COMBINATIONS_V CC

    GL_JE_LINES L

    WHERE H.JE_HEADER_ID = RIF. JE_HEADER_ID

    AND GIR.GL_SL_LINK_ID = AAELA.GL_SL_LINK_ID

    AND AAELA. SOURCE_TABLE = "AP_INVOICE_DISTRIBUTIONS."

    AND AAELA. SOURCE_ID = AIDA. INVOICE_DISTRIBUTION_ID

    AND CC. CODE_COMBINATION_ID = AIDA. DIST_CODE_COMBINATION_ID

    AND CC. CHART_OF_ACCOUNTS_ID = 50268

    AND GIR. JE_HEADER_ID = L.JE_HEADER_ID

    AND GIR. JE_LINE_NUM = L.JE_LINE_NUM

    AND NVL(L.DESCRIPTION,'N/A') <>NVL (AIDA. ATTRIBUT3, "N/A")

    AND (CC.) SEGMENT4 IN ('530101', '530102','530103 ','530104 ')

    OR CC. SEGMENT4 IN

    (SELECT A.SEGMENT4 FROM XX_GL_APAR_COMP_REC_CC_V HAS)

    UNION ALL

    SELECT A.SEGMENT4 FROM XX_GL_APAR_COMP_PAY_CC_V HAS

    ))

    AND GIR.GL_SL_LINK_TABLE = 'APECL. '

    AND H.DEFAULT_EFFECTIVE_DATE < = FND_DATE. CANONICAL_TO_DATE (P_AS_ON)

    AND AIDA. ATTRIBUTE_CATEGORY = "Debitable.

    AND AIDA. ATTRIBUT2 IS NOT NULL;

    CURSOR CUR_INV_DISTT

    IS

    SELECT THE RIF. JE_HEADER_ID,

    GIR. JE_LINE_NUM,

    AIDA. INVOICE_DISTRIBUTION_ID DISTRIBUTION_ID

    OF GL_JE_HEADERS H,

    GL_IMPORT_REFERENCES RIF,

    AP_AE_LINES_ALL AAELA,

    AIDA AP_INVOICE_DISTRIBUTIONS_ALL,.

    GL_CODE_COMBINATIONS_V CC

    GL_JE_LINES L

    WHERE H.JE_HEADER_ID = RIF. JE_HEADER_ID

    AND GIR.GL_SL_LINK_ID = AAELA.GL_SL_LINK_ID

    AND AAELA. SOURCE_TABLE = "AP_INVOICE_DISTRIBUTIONS."

    AND AAELA. SOURCE_ID = AIDA. INVOICE_DISTRIBUTION_ID

    AND CC. CODE_COMBINATION_ID = AIDA. DIST_CODE_COMBINATION_ID

    AND CC. SEGMENT4 IN ('530101', '530102','530103 ','530104 ')

    AND GIR.GL_SL_LINK_TABLE = 'APECL. '

    AND CC. CHART_OF_ACCOUNTS_ID = 50268

    AND GIR. JE_HEADER_ID = L.JE_HEADER_ID

    AND GIR. JE_LINE_NUM = L.JE_LINE_NUM

    AND ((L.DESCRIPTION, 'N/a') <>NVL NVL (AIDA. ATTRIBUTE9, "N/A")

    (OR)

    CASE

    WHEN CC. SEGMENT4 = '530102'

    THEN NVL(L.ATTRIBUTE1,'N/A')

    END) <>NVL (AIDA. ATTRIBUTE7, N / 'A'))

    AND H.DEFAULT_EFFECTIVE_DATE < = FND_DATE. CANONICAL_TO_DATE (P_AS_ON)

    AND AIDA. ATTRIBUTE_CATEGORY = 'transfer of the letter references '.

    AND AIDA. ATTRIBUTE8 IS NOT NULL;

    CURSOR CUR_TRX_DIST

    IS

    SELECT THE RIF. JE_HEADER_ID,

    GIR. JE_LINE_NUM,

    D.CUST_TRX_LINE_GL_DIST_ID DISTRIBUTION_ID

    OF GL_JE_HEADERS H,

    GL_IMPORT_REFERENCES RIF,

    AR_AEL_GL_INV_V T,.

    RA_CUST_TRX_LINE_GL_DIST_ALL D,.

    GL_CODE_COMBINATIONS_V CC

    GL_JE_LINES L

    WHERE H.JE_HEADER_ID = RIF. JE_HEADER_ID

    AND GIR. JE_HEADER_ID = T.JE_HEADER_ID

    AND GIR. JE_LINE_NUM = T.JE_LINE_NUM

    AND CC. CHART_OF_ACCOUNTS_ID = 50268

    AND D.CUST_TRX_LINE_GL_DIST_ID = T.SOURCE_ID

    AND T.SOURCE_TABLE = 'CTLGD. '

    AND CC. CODE_COMBINATION_ID = D.CODE_COMBINATION_ID

    AND (CC.) SEGMENT4 IN ('530101', '530102','530103 ','530104 ')

    OR CC. SEGMENT4 IN

    (SELECT A.SEGMENT4 FROM XX_GL_APAR_COMP_REC_CC_V HAS)

    UNION ALL

    SELECT A.SEGMENT4 FROM XX_GL_APAR_COMP_PAY_CC_V HAS

    ))

    AND GIR. JE_HEADER_ID = L.JE_HEADER_ID

    AND GIR. JE_LINE_NUM = L.JE_LINE_NUM

    AND NVL(L.DESCRIPTION,'N/A') <>NVL(D.ATTRIBUTE3,'N/A')

    AND H.DEFAULT_EFFECTIVE_DATE < = FND_DATE. CANONICAL_TO_DATE (P_AS_ON)

    AND D.ATTRIBUTE_CATEGORY = 'Debitable.

    AND D.ATTRIBUTE2 IS NOT NULL;

    CURSOR CUR_MISC_DIST

    IS

    SELECT THE RIF. JE_HEADER_ID,

    GIR. JE_LINE_NUM,

    AMCDA. MISC_CASH_DISTRIBUTION_ID DISTRIBUTION_ID

    OF GL_JE_HEADERS H,

    AR_DISTRIBUTIONS_ALL ADA,

    AR_MISC_CASH_DISTRIBUTIONS_ALL AMCDA,

    GL_IMPORT_REFERENCES RIF,

    GL_CODE_COMBINATIONS_V CC

    WHERE H.JE_HEADER_ID = RIF. JE_HEADER_ID

    AND TO_CHAR (AMCDA. POSTING_CONTROL_ID) = (RIF. REFERENCE_1)

    AND GIR. REFERENCE_10 = "AR_MISC_CASH_DISTRIBUTIONS".

    AND ADA. SOURCE_TABLE = "MCD".

    AND ADA. SOURCE_ID = AMCDA. MISC_CASH_DISTRIBUTION_ID

    AND AMCDA. CODE_COMBINATION_ID = CC. CODE_COMBINATION_ID

    AND TO_CHAR (ADA. LINE_ID) = (RIF. REFERENCE_3)

    AND (CC.) SEGMENT4 IN ('530101', '530102','530103 ','530104 ')

    OR CC. SEGMENT4 IN

    (SELECT A.SEGMENT4 FROM XX_GL_APAR_COMP_REC_CC_V HAS)

    UNION ALL

    SELECT A.SEGMENT4 FROM XX_GL_APAR_COMP_PAY_CC_V HAS

    ))

    AND H.DEFAULT_EFFECTIVE_DATE < = FND_DATE. CANONICAL_TO_DATE (P_AS_ON)

    AND AMCDA. ATTRIBUTE_CATEGORY = "Debitable.

    AND AMCDA. ATTRIBUT2 IS NOT NULL;

    -PROJECTS

    CURSOR CUR_PROJ

    IS

    SELECT L.JE_HEADER_ID,

    L.JE_LINE_NUM,

    H.PERIOD_NAME,

    L.ENTERED_DR,

    L.ENTERED_CR,

    SUM (PCDLA. DIST_AMNT AMOUNT).

    PCDLA.PA_DATE

    OF GL_JE_HEADERS H,

    GL_JE_LINES L,.

    GL_CODE_COMBINATIONS_V CC

    PA_COST_DISTRIBUTION_LINES_ALL PCDLA

    WHERE H.JE_HEADER_ID = L.JE_HEADER_ID

    AND PCDLA. BATCH_NAME = L.REFERENCE_1

    AND L.CODE_COMBINATION_ID = CC. CODE_COMBINATION_ID

    AND L.REFERENCE_3 ('COST', 'Responsibility')

    AND H.PERIOD_NAME = PCDLA.GL_PERIOD_NAME

    AND H.DEFAULT_EFFECTIVE_DATE < = FND_DATE. CANONICAL_TO_DATE (P_AS_ON)

    AND CC. SEGMENT4 IN ('530103')

    AND L.DESCRIPTION = "created log import'

    L.JE_HEADER_ID GROUP,

    L.JE_LINE_NUM,

    H.PERIOD_NAME,

    L.ENTERED_DR,

    L.ENTERED_CR,

    PCDLA.PA_DATE

    SAW (NVL(L.ENTERED_CR,0) = SUM (PCDLA. AMOUNT)

    OR NVL(L.ENTERED_CR,0) = SUM (PCDLA. AMOUNT));

    NUMBER OF CHECK_NUM;

    BEGIN

    C IN CUR_SSCHQ

    LOOP

    BEGIN

    SELECT ACA. CHECK_NUMBER

    IN CHECK_NUM

    OF ACA AP_CHECKS_ALL,.

    AP_INVOICE_PAYMENTS_ALL LAIP

    WHERE ACA. CHECK_ID = AIPA. CHECK_ID

    AND ACA. STATUS_LOOKUP_CODE <>"CANCELLED."

    AND AIPA. INVOICE_ID = C.INVOICE_ID;

    UPDATE AP_INVOICE_DISTRIBUTIONS_ALL AIDA

    SET ATTRIBUT2 =

    CASE

    WHAT AMOUNT > 0

    THEN "SS received cheque".

    ELSE "SS cheque".

    END,

    ATTRIBUT3 = CHECK_NUM

    WHERE AIDA. INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID;

    EXCEPTION

    WHILE OTHERS THEN

    NULL;

    END;

    END LOOP;

    C IN CUR_IOTCASH

    LOOP

    -FOR THE DELIVERY OF INVOICES THAT ARE NOT CANCELED LINES

    UPDATE AP_INVOICE_DISTRIBUTIONS_ALL AIDA

    SET ATTRIBUTE9 =

    (SELECT THE AIA. INVOICE_NUM

    OF AP_INVOICES_ALL AIA

    WHERE AIA. INVOICE_ID = AIDA. INVOICE_ID

    ),

    attribute8 =

    CASE

    WHAT AMOUNT > 0

    THEN "ITO issued cash."

    ELSE "IOT receipts."

    END

    WHERE AIDA. INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID;

    -FOR THE DELIVERY OF INVOICES THAT ARE CANCELLED LINES

    UPDATE AP_INVOICE_DISTRIBUTIONS_ALL AIDA

    SET ATTRIBUTE9 =

    (SELECT THE AIA. INVOICE_NUM

    OF AP_INVOICES_ALL AIA

    WHERE AIA. INVOICE_ID = AIDA. INVOICE_ID

    ),

    attribute8 =

    CASE

    WHEN AMOUNT < 0

    THEN "ITO issued cash."

    ELSE "IOT receipts."

    END

    WHERE AIDA. INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID

    AND AIDA. CANCELLATION_FLAG = 'Y ';

    END LOOP;

    C IN CUR_INV_DISTD

    LOOP

    -The Sub statement is commented because of server performance low as indicated by the DBA as dated: 06-MAY-2014

    / * UPDATE GL_JE_LINES L

    SET CONTEXT = NULL,

    ATTRIBUT1 = NULL,

    ATTRIBUT2 = NULL,

    ATTRIBUT3 = NULL,

    ATTRIBUTE4 = NULL,

    ATTRIBUTE5 = NULL,

    DESCRIPTION = NULL

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    UPDATE GL_JE_LINES L

    GAME CONTEXT = "Debitable."

    ATTRIBUT1 = (SELECT D.ATTRIBUTE1 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUT2 = (SELECT D.ATTRIBUTE2 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUT3 = (SELECT D.ATTRIBUTE3 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    DESCRIPTION = (SELECT D.ATTRIBUTE3 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUTE4 = "pay."

    ATTRIBUTE5 = (SELECT I.INVOICE_NUM AP_INVOICE_DISTRIBUTIONS_ALL D, AP_INVOICES_ALL I WHERE I.INVOICE_ID = D.INVOICE_ID AND D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID)

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM; * /.

    UPDATE GL_JE_LINES L

    SET

    (

    CONTEXT,

    ATTRIBUTE1,

    ATTRIBUT2,

    ATTRIBUT3,

    DESCRIPTION,

    ATTRIBUTE4,

    ATTRIBUTE5

    )

    =

    (SELECT 'Debitable',

    D.ATTRIBUTE1,

    D.ATTRIBUTE2,

    D.ATTRIBUTE3,

    D.ATTRIBUTE3,

    "Payable",.

    I.INVOICE_NUM

    AP_INVOICE_DISTRIBUTIONS_ALL D,.

    AP_INVOICES_ALL I

    WHERE I.INVOICE_ID = D.INVOICE_ID

    AND D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID

    )

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID

    AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    END LOOP;

    C IN CUR_INV_DISTT

    LOOP

    -The Sub statement is commented because of server performance low as indicated by the DBA as dated: 06-MAY-2014

    / * UPDATE GL_JE_LINES L

    SET CONTEXT = NULL,

    ATTRIBUT1 = NULL,

    ATTRIBUT2 = NULL,

    ATTRIBUT3 = NULL,

    ATTRIBUTE4 = NULL,

    ATTRIBUTE5 = NULL,

    DESCRIPTION = NULL

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    UPDATE GL_JE_LINES L

    GAME CONTEXT = "Debitable."

    ATTRIBUT1 = (SELECT D.ATTRIBUTE7 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUT2 = (SELECT D.ATTRIBUTE8 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUT3 = (SELECT D.ATTRIBUTE9 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    DESCRIPTION = (SELECT D.ATTRIBUTE9 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUTE4 = "pay."

    ATTRIBUTE5 = (SELECT I.INVOICE_NUM AP_INVOICE_DISTRIBUTIONS_ALL D, AP_INVOICES_ALL I WHERE I.INVOICE_ID = D.INVOICE_ID AND D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID)

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM; * /.

    UPDATE GL_JE_LINES L

    SET

    (

    CONTEXT,

    ATTRIBUTE1,

    ATTRIBUT2,

    ATTRIBUT3,

    DESCRIPTION,

    ATTRIBUTE4,

    ATTRIBUTE5

    )

    =

    (SELECT 'Debitable',

    D.ATTRIBUTE7,

    D.ATTRIBUTE8,

    D.ATTRIBUTE9,

    D.ATTRIBUTE9,

    "Payable",.

    I.INVOICE_NUM

    AP_INVOICE_DISTRIBUTIONS_ALL D,.

    AP_INVOICES_ALL I

    WHERE I.INVOICE_ID = D.INVOICE_ID

    AND D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID

    )

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID

    AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    END LOOP;

    C IN CUR_TRX_DIST

    LOOP

    -The Sub statement is commented because of server performance low as indicated by the DBA as dated: 06-MAY-2014

    / * UPDATE GL_JE_LINES L

    SET CONTEXT = NULL,

    ATTRIBUT1 = NULL,

    ATTRIBUT2 = NULL,

    ATTRIBUT3 = NULL,

    ATTRIBUTE4 = NULL,

    ATTRIBUTE5 = NULL,

    DESCRIPTION = NULL

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    UPDATE GL_JE_LINES L

    GAME CONTEXT = "Debitable."

    ATTRIBUT1 = (SELECT D.ATTRIBUTE1 FROM RA_CUST_TRX_LINE_GL_DIST_ALL D WHERE D.CUST_TRX_LINE_GL_DIST_ID = C.DISTRIBUTION_ID).

    ATTRIBUT2 = (SELECT D.ATTRIBUTE2 FROM RA_CUST_TRX_LINE_GL_DIST_ALL D WHERE D.CUST_TRX_LINE_GL_DIST_ID = C.DISTRIBUTION_ID).

    ATTRIBUT3 = (SELECT D.ATTRIBUTE3 FROM RA_CUST_TRX_LINE_GL_DIST_ALL D WHERE D.CUST_TRX_LINE_GL_DIST_ID = C.DISTRIBUTION_ID).

    DESCRIPTION = (SELECT D.ATTRIBUTE3 FROM RA_CUST_TRX_LINE_GL_DIST_ALL D WHERE D.CUST_TRX_LINE_GL_DIST_ID = C.DISTRIBUTION_ID).

    ATTRIBUTE4 = "receive."

    ATTRIBUTE5 = (SELECT I.TRX_NUMBER RA_CUST_TRX_LINE_GL_DIST_ALL D, RA_CUSTOMER_TRX_ALL I WHERE I.CUSTOMER_TRX_ID = D.CUSTOMER_TRX_ID AND D.CUST_TRX_LINE_GL_DIST_ID = C.DISTRIBUTION_ID)

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM; * /.

    UPDATE GL_JE_LINES L

    SET

    (

    CONTEXT,

    ATTRIBUTE1,

    ATTRIBUT2,

    ATTRIBUT3,

    DESCRIPTION,

    ATTRIBUTE4,

    ATTRIBUTE5

    )

    =

    (SELECT 'Debitable',

    D.ATTRIBUTE1,

    D.ATTRIBUTE2,

    D.ATTRIBUTE3,

    D.ATTRIBUTE3,

    "Receive."

    I.TRX_NUMBER

    RA_CUST_TRX_LINE_GL_DIST_ALL D,.

    RA_CUSTOMER_TRX_ALL I

    WHERE I.CUSTOMER_TRX_ID = D.CUSTOMER_TRX_ID

    AND D.CUST_TRX_LINE_GL_DIST_ID = C.DISTRIBUTION_ID

    )

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID

    AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    END LOOP;

    C IN CUR_MISC_DIST

    LOOP

    -The Sub statement is commented because of server performance low as indicated by the DBA as dated: 06-MAY-2014

    / * UPDATE GL_JE_LINES L

    SET CONTEXT = NULL,

    ATTRIBUT1 = NULL,

    ATTRIBUT2 = NULL,

    ATTRIBUT3 = NULL,

    ATTRIBUTE4 = NULL,

    ATTRIBUTE5 = NULL,

    DESCRIPTION = NULL

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    UPDATE GL_JE_LINES L

    GAME CONTEXT = "Debitable."

    ATTRIBUT1 = (SELECT D.ATTRIBUTE1 FROM AR_MISC_CASH_DISTRIBUTIONS_ALL D WHERE D.MISC_CASH_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUT2 = (SELECT D.ATTRIBUTE2 FROM AR_MISC_CASH_DISTRIBUTIONS_ALL D WHERE D.MISC_CASH_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUT3 = (SELECT D.ATTRIBUTE3 FROM AR_MISC_CASH_DISTRIBUTIONS_ALL D WHERE D.MISC_CASH_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    DESCRIPTION = (SELECT D.ATTRIBUTE3 FROM AR_MISC_CASH_DISTRIBUTIONS_ALL D WHERE D.MISC_CASH_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUTE4 = "receive."

    ATTRIBUTE5 = (SELECT I.RECEIPT_NUMBER AR_MISC_CASH_DISTRIBUTIONS_ALL D, AR_CASH_RECEIPTS_ALL I WHERE I.CASH_RECEIPT_ID = D.CASH_RECEIPT_ID AND D.MISC_CASH_DISTRIBUTION_ID = C.DISTRIBUTION_ID)

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM; * /.

    UPDATE GL_JE_LINES L

    SET

    (

    CONTEXT,

    ATTRIBUTE1,

    ATTRIBUT2,

    ATTRIBUT3,

    DESCRIPTION,

    ATTRIBUTE4,

    ATTRIBUTE5

    )

    =

    (SELECT 'Debitable',

    D.ATTRIBUTE1,

    D.ATTRIBUTE2,

    D.ATTRIBUTE3,

    D.ATTRIBUTE3,

    "Receive."

    I.RECEIPT_NUMBER

    AR_MISC_CASH_DISTRIBUTIONS_ALL D,.

    AR_CASH_RECEIPTS_ALL I

    WHERE I.CASH_RECEIPT_ID = D.CASH_RECEIPT_ID

    AND D.MISC_CASH_DISTRIBUTION_ID = C.DISTRIBUTION_ID

    )

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID

    AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    END LOOP;

    C IN CUR_PROJ

    LOOP

    -The Sub statement is commented because of server performance low as indicated by the DBA as dated: 06-MAY-2014

    / * UPDATE GL_JE_LINES L

    SET CONTEXT = NULL,

    ATTRIBUT1 = NULL,

    ATTRIBUT2 = NULL,

    ATTRIBUT3 = NULL,

    ATTRIBUTE4 = NULL,

    ATTRIBUTE5 = NULL,

    DESCRIPTION = NULL

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM; * /.

    UPDATE GL_JE_LINES L

    GAME CONTEXT = "Debitable."

    ATTRIBUT1 = "STORE MATTER."

    Attribut2 = "SS cheque."

    ATTRIBUT3 =

    CASE

    WHEN TO_CHAR (C.PA_DATE, 'DD') BETWEEN 1 AND 15

    THEN C.PERIOD_NAME

    |' / F.N. IST'

    WHEN TO_CHAR (C.PA_DATE, 'DD') BETWEEN 16 AND 31

    THEN C.PERIOD_NAME

    |' / F.N. 2 '

    ELSE "Import Journal created"

    END,

    DESCRIPTION =

    CASE

    WHEN TO_CHAR (C.PA_DATE, 'DD') BETWEEN 1 AND 15

    THEN C.PERIOD_NAME

    |' / F.N. IST'

    WHEN TO_CHAR (C.PA_DATE, 'DD') BETWEEN 16 AND 31

    THEN C.PERIOD_NAME

    |' / F.N. 2 '

    ELSE "Import Journal created"

    END,

    ATTRIBUTE4 = 'projects ', he said.

    ATTRIBUTE5 = L.REFERENCE_1

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID

    AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    END LOOP;

    COMMIT;

    END;

    /


    The error in the stored procedure, it is that it is badly written - by using the line by line (= slow-by-slow) cursor loops, in the middle of which he

    are updated.

    This causes the locking will be held longer than necessary.

    If rewrite you it with focus on game updates, that will be faster, it will alleviate your problem.

    To completely remove it, you will need to discover why a report made updates and why she strives to update the same rows.

    BTW: also remove this bad Ngen.exe.

  • Session problems

    I seem to have a little problem with session variables, and I managed to reduce the cause until the CFLOCATION tag. I have currently a page have been the user enters information, which is then sent to a page of type the information in a database, as well as creating two session variables and possibly redirect a new action page. As I said earlier, I have reduced the problem to this area of my code:

    < cfset session.loggedIn = "yes" >
    < cfset session.userID = "#Form.username #" >
    < cflocation url = "" profile.cfml? #Form.username # ' addToken = "No" > "

    When the user is redirected to the new page, it calls session.userID. However, instead it creates just an error saying "user name is not defined in the session. I put comment the CFLOCATION tag and replaced by a CFOUTPUT to see if session variables were actually at work. It turns out that they are. It is obvious that the CFLOCATION tag seems to be the origin of the problem, but I see no reason why.

    Anyone got any ideas?

    You should name the rename to: Application.cfm. It should contain only


    applicationTimeout = "#createTimespan (1,0,0,0) #
    sessionManagement = "yes".
    sessionTimeout = "#createTimeSpan (0,0,20,0) #
    setClientCookies = "true" >

    Omit the code between the tags from cfscript. It is an equivalent to this alternative. You will only use if you use Application.cfc instead of Application.cfm.

  • Wrapped connections, and proxy sessions problem

    Hello!

    We went to Weblogic 10.3.5, and my impression is that the behavior of the wrappers of connection changed handling about proxy sessions.

    We use the SecurityServicesJDBC to get a connection, which is a wrapper of the OracleConnection.
    We then use the connection wrapper to log proxy with username and password to check if the given credentials are valid.

    Very probably since the upgrade to 10.3.5 the password is ignored. Effect is that all users are connected successfully, regardless of passwords.

    Workaround is to get the connection from the supplier of the package, and then open the proxy on this session.

    I wonder why the wrapper removes the password and it does not pass. If there is a wrapper, shouldn't the method works like the same method on the connection to the seller?
    It worked like a charm in 10.3.4 as far as I can tell. If something has changed in the wrappers?

    Kind regards

    Sascha

    I think you mean wls 10.3.3 worked before. SO Yes, you want a patch for a bug recently found that WLS will swallow the exception.

  • How can I pass on set to the next page with protection of session?

    Hey, guys:

    I have a problem of protection of session problem. In a report page I created a 'map' link column, so I can pass several parameters extracted from this line to the new page where I can see the map. I used javascript popup2 and it worked fine.
    javascript:popUp2('f?p=&APP_ID.:3006:&SESSION.::&DEBUG.::P3006_H_OFFENDER_NAME,P3006_H_OFFENDER_ID,P3006_H_ADDRESS_LATITUDE,P3006_H_ADDRESS_LONGITUDE,P3006_H_PHYSICAL_LATITUDE,P3006_H_PHYSICAL_LONGITUDE,P3006_H_ADDRESS,P3006_H_PHYSICAL_ADDRESS:#Offender Name#,#Offender ID#,#Address Latitude#,#Address Longitude#,#Physical Latitude#,#Physical Longitude#,#Address#,#Physical Address#','650','450');
    However, I am required to set all pages, elements with protection session now. After that, I had problem like:

    Try to save point P3006_H_OFFENDER_NAME in session state when the treatment of show, no internal protection.
    Contact your administrator for the application.

    So I changed it as redirect a page in the application and try to spend less settings and other parameters of query, but I had the similar problem:


    Try to save point P3006_H_OFFENDER_ID in session state when the treatment of show, no internal protection.
    Contact your administrator for the application.


    I notice that most of the solutions would turn the session protection as without restriction for these items, but I'm not allowed to do. Is it possible that I can pass parameters of a line in a report while the session protection is turned on?


    Thank you very much!

    Sam

    Sam,

    The best way I've found is just to create an element hidden with the PREPARE_URL and then refer to this element in your javascript. The following example calls a page in another application, but it should work the call from one page to another in a single application:

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

    EXAMPLE:

    Because we generally use checksums to level session on URLs, the URLS must be prepared with a checksum for the current session.

    Say that we have to deal with page 2. Page 2 has a hidden item (for example, P2_PREPARED_URL_WITH_CKSUM_1) to organize the preparation of the "Source of value or an expression, for example:

    APEX_UTIL. PREPARE_URL('f?p=9002:3:&session.::no::G_CALLING_APP_ID,G_CALLING_APP_NAME,G_CALLING_APP_PAGE_ID:&APP_ID.,&G_APP_NAME.,&APP_PAGE_ID.','SESSION');

    The hidden element is then used within the "URL target" button to open the corresponding page in the other application:

    JavaScript:popUp2('&P2_PREPARED_URL_WITH_CKSUM_1.',1200,1000)

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

    Note in the example above, I've hard-coded the app id 9002. You want to probably use & APP_ID. bind variables syntax.

    See the long thread: https://forums.oracle.com/forums/thread.jspa?messageID=10394152. He points out a way (for now) even to call a page in an application in a different workspace, but this ability that is apparently a bug and should be fixed.

    Christian Neumueller has been a great help.

    Chris

  • forgotten that my bad startup password 3 times computer laptop reboot how to reset

    forgotten that my bad startup password 3 times computer laptop reboot how to reset

    Hello

    In this case, you can use windows system restore to return the machine to a point in time before this prompt syskey occurred using the following method.

    Use another PC to create a Windows 7 repair CD.  Download the ISO from the link below.

    Windows 7 64 bit

    You must use an app like ImgBurn ( Note: you can deselect additional software during installation of ImgBurn options) to burn the ISO to a CD - a guide on the use of ImgBurn to write an ISO on a disc is here.

    Once created, type away at the esc key when you launch Notepad to open the Start Menu.

    Insert the CD to repair.

    Select the Boot Manager option ( f9 ).  Use the arrow keys to select the CD/DVD drive and press ENTER - if you are prompted to "press any key to continue...". ", do.

    Select 'Repair your computer' and follow Option 2 in the guide here to run the Windows system restore - choose a restore point at least 48 hours before the opening of session problem occurred.

    Kind regards

    DP - K

  • "Unknown error" whenever I try to access the properties of the network connection

    Hi all

    whenever I try to access the properties of a network connection (e.g. via right click on 'Network'-> properties-> right click on a connection-> properties), type of connection according to what is, I get a message "Unknown error" box and I can't move forward.

    As a result, any setting of any network connection is not editable, more. For example, I wanted to force the IP of the local network of "assigned to DHCP" to "static" with an address fixed IP, but I can't.

    Another weird thing is that I even can't delete one of the existing network connections, even if there are a couple that are not in use for a long time...

    It should be noted that, apart from that, the network of connections work.

    What can cause this behavior, and that might be the way to solve the problem?

    I want to upgrade the system to SP3 but I am reluctant to take the plunge with such an "alive"... error
    As you may have already guessed, the system is running XP SP2.

    Thanks in advance,

    Concerning

    Yes, I am facing the same problem too. The error message says "an unexpected error has occurred." This problem started out with me a few weeks back and I was under the assumption that it was due to a virus attack. But even after a thorough cleaning session problem continues to exist.

    The problem - as mentioned above by the Bell, we can neither open the properties of a connection (i.e. Dial-up/LAN/WLAN), or remove or add a new connection. If you try to open the connection properties, all you get is the message "an unexpected error has occurred" and if you try to delete or add a connection - the system does not respond!

    Surely, this link worked for me. I hope it works for you Bell. Check it out.

    http://wdbuc.com/blog/2010/02/03/an-unexpected-error-occurred-when-you-right-click-on-a-network-connection-in-Windows-XP/

  • HP - Pavilion x 360: black screen

    My laptop turns on request for password goes through the process making known but then goes black, but I can see the mouse cursor and can move even the pop-up to renew my virus software rises and the Task Manager works but except that it stays black it happened when trying to download Spotify, when 2 trying to turn it on market and everything came and my spyware virus made a scan and deleted the program I had downloaded a reset and when she came back he was black.

    Hello

    Try the following.

    Boot the computer normally and log.

    Black screen, old the ctrl and alt keys and press delete.

    Select Task Manager.

    Click on file and select the new task.

    Type rstrui - also enter a tick in the box for "create this task with administrative privileges" - and click on Ok.

    When the system restore interface is loaded, choose a restore point at least 48 hours before the opening of session problem occurred initially and then proceed to the system restore.

    Kind regards

    DP - K

  • ATG 11 ForgotPassword Oracle question

    Hi all

    I use ATG 11 and trying to send email when the user clicks the component ForgotPassword.

    The email is sent, but I can't get param newPassword.

    My TemplateEmailSender is configured as:

    contextPathPrefix ^ = / Constants.null

    fillFromTemplate = false

    ForgotPasswordhandler:

    templateEmailSender = / atg, userprofiling, email, TemplateEmailSender

    profileTools = / atg/userprofiling/ProfileTools

    templateEmailInfo = / atg/userprofiling/ForgotPasswordEmailInfo

    fillFromTemplate = false

    ForgotPasswordEmailInfo:

    templateURL=/context/emailtemplate/forgotPasswordEmailTemplate.jsp

    messageSubject = forgotten password Email

    messageFrom =[email protected]

    contentProcessor = / atg, userprofiling, email, HtmlContentProcessor

    In my model, I try to use < dsp:valueof param = "newpassword" / >

    Looking at the database, the new password is stored properly.

    Any help or suggestion?

    Thanks in advance

    Hello Prateek G,.

    Thanks for the reply.

    We could finally solve the problem. It was a session problem, caused by a session of atg personalization.

    Returning to our customization, it starts working again.

    Thanks for any help.

  • syntax of hyperlinks

    Hi guys,.

    Im very new to APEX.

    normally, I write my html and php by hand.

    so the question I would ask is: How do you write a hyperlink in APEX?

    That's what I have so far:

    < a href = "f? "p = 125:1: & APP_SESSION" > link hyper text < /a >

    When 125 is the application number, 1 is the page number.

    I think it's the & bit APP_SESSION is not working.

    the manual says to use "& APP_SESSION ' but it does not give an example of how to use it. so ive just write down what they said.

    at this point I would already be logged in, and if I use the Navigation bar to navigate I am able to navigate between the pages. If I click on the hyperlink as above, im caught in the log in page [odd - but suggestion perhaps a session problem] and when I connect to [new] im drawn to the correct page link.

    Thanks for reading,

    Paul

    Hello

    the hyper link text

    Here is absent.

    &APP_SESSION.">the hyper link text

    Please try and let me know... Hope it will work...

    See also this link, the Syntax of URL of understanding

    Thank you

    Lacombe

  • Username blocking which is held on the database at the time

    Hello

    Using oracle 11.2.0.3 and concluding that on sat morning (03:30 a table cannot be updated due to an exclusive lock.

    merge into the affected table.

    Nothing else, we are aware to access the table at the moment because of some process must be because of the ORA-00054 - busy resource.

    Is there a way that we can identify what caused the blocking / causing the lock - happenening each week.

    Thank you

    You get it in history, when you get the lock again and then query the table mentioned above.  In addition, to check any kind of blocking session problem use this query.

    Select b.session_id, a.SERIAL #, «blocker details» a.username

    session $ v has, dba_lock b

    where b.session_id = a.sid

    and b.blocking_others = 'block ';

    Concerning

    Asif Kabir

  • Problem with the difficulty of opening the old tabs settings and save files when a new session is opened

    Hello
    Since 2 weeks I have a problem: I always set my settings to restore the previous session with all my tabs and I choose that Firefox asks me where I want to save my downloaded files. Now, every time I close Firefox and I open it again, it is not taken into account and 3 tabs are opened: Firefox, Google, and thanks to install Zotero! I spare it, but every time it opens these tabs and not man. Ditto for saving the files. It goes back automatically to open the start page and save my file in the downloads. Even if I spare, it's the same.
    I've desinstalled CCleaner (I thought it might be that), but nothing changes!
    Help, please. Thank you very much!
    Martha

    Here's what I'll try:

    • Reset Firefox - that should solve the problem, but it will change the settings like where files are downloaded and what tabs open at startup back to their default values.
    • Then change your download and back session restore preferences to how you like them.

    Here's how:

    1. Go to help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.
    5. Open the window of options - tools > Options > general
    6. In the general Panel set Firefox to open your tabs from last time and set Firefox to ask you where to save downloads.
    7. Click OK

    That should do it. Let me know if it worked.

    Thank you

    Michael

  • Hello, I have a big problem with Firefox: Session Manager &amp; Undo Closed Tab addons don't work, synchronization is not working do not. The story works. How to solve this problem?

    Firefox remembers the story, but doesn't remember the closed tabs, sessions.
    It happened after the Fox update to v. 19.0.2 on a single computer.

    In Options of Firefox is set to use Custom Settings For History, everything is checked except always use Private Browsing Mode. So I'm not in private browsing.

    When I press to Undo Closed button nothing happens, & in the Manager session Save Session button is grayed. I tried to install other add-ons that remembers the tabs. tried to reinstall/disable these 2 modules. Did ' t help. On my 2nd computer I have same modules, same settings and they work normally. the 3rd closed computer undo works tabs also. How to solve this problem? I decided to ask before Firefox Reset...

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

    Sync is a separate issue. It works, but quite often it connects me sync account. Then I can connect only using the recovery key password and long (option choice I have no device with me because he does not accept the key to pairing device).

    Thanks for reading.

    In case you use "clear history of Firefox closing:

    • do not erase browsing history

    Note that compensation "Preferences of Site" clears all exceptions for cookies, images, windows pop up, installation of software and passwords.

  • session restore problems

    A few weeks ago, for some reason, FF 8.0.1 stopped working on my machine of OS X. (I used 7 and now 9beta as get around it). Since that time, I had a whole list of problems. One problem is that everytime I open FF it tries to open the session that crashed, no matter what I tried, it won't go away.

    This includes unselecting them the tabs before the restoration; This allows to load the tabs and then close them individually. I followed this with a good FF quit.

    Everything is up-to-date (software, FF, etc) so I'm not sure what's going on...

    It is possible that there is a problem with the sessionstore.js and sessionstore.bak files in the Firefox profile folder.

    Delete the sessionstore.js file [2] and files possible sessionstore-# .js [3] with a number and sessionstore.bak in the Firefox profile folder.

    Delete sessionstore.js will cause App Tabs and tab groups and opened and closed the tabs (back) to get lost, so you will need to create them again (take note or bookmarks).

    See also:

  • Problem restoring last Session in Firefox. It restores the last session without asking for password

    whenever computer stops because of the cut to the top or any other reason while you work in Mozilla Firefox as the use of Facebook. When you turn on the computer and open Firefox it stores the session, without asking for password or username that the effects seriously privacy.i has been using Facebook on Mozilla and my computer shuts down after a few minutes, another has turned on the computer and it went into my account on Facebook because of the last session of restoration. Please, do something about it. This is a larger problem in Firefox

    You can set the browser.sessionstore.privacy_level pref 2 (never) or 1 (no HTTPS, default in the Firefox 3 versions) on the topic: config page to disable the registration of cookies via session restore.

    To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.

    If you see a warning then you can confirm that you want to access this page.

    • Use the filter at the top bar of the on: page config to more easily spot a preference.
    • Preferences that have changed see the bold (user set).
    • Preferences you can restore the default value or change via the context menu.

Maybe you are looking for