TIPS(16) : PROVIDING USERS WITH SESSION INFORMATION

제품 : SQL*PLUS
작성날짜 : 1996-11-12
TIPS(16) : Providing Users with Session Information
===================================================
rem
rem orasessn.sql
rem
rem
rem This script is used to provide users with information regarding their
rem oracle sessions.
rem The USER_SESSION view provides information related only to the
rem current session for a user; while the ALL_SESSIONS relates to all
rem sessions within the database for a user.
rem The DBA_SESSION can only be viewed by the
rem Oracle sys id (and anyone granted select on this view).
rem The DBA_SESSION lists all oracle sessions excluding the Oracle
rem generic processes (dbwr, pmon, smon, etc.).
rem The SID and SERIAL# can be used with killing sessions.
This script must be run from the Oracle sys id.
rem --------------------------------------------------------------------------
rem
set echo on;
spool orasessn;
rem
drop public synonym ALL_SESSIONS;
create or replace view ALL_SESSIONS
(USERNAME, OS_USER, SID, SERIAL#, STATUS, SERVICE, DATABASE,
CURSORS, MACHINE, TERMINAL, PROGRAM)
as
select substr(v1.username,1,20), substr(v1.osuser,1,12),
to_char(v1.sid,'999'), to_char(v1.serial#,'999999'),
v1.status, v1.server, substr(v3.value,1,10), v2.value,
substr(v1.machine,1,15), v1.terminal, v1.program
from v$session v1, v$sesstat v2, v$parameter v3
where v1.username = user
and v2.sid = v1.sid
and v2.statistic# = 3
and v3.name = 'db_name' ;
grant select on ALL_SESSIONS to PUBLIC;
create public synonym ALL_SESSIONS for ALL_SESSIONS;
rem
drop public synonym USER_SESSIONS;
create or replace view USER_SESSIONS
(USERNAME, OS_USER, SID, SERIAL#, STATUS, SERVICE, DATABASE,
CURSORS, MACHINE, TERMINAL, PROGRAM)
as
select substr(v1.username,1,20), substr(v1.osuser,1,12),
to_char(v1.sid,'999'), to_char(v1.serial#,'999999'),
v1.status, v1.server, substr(v3.value,1,10), v2.value,
substr(v1.machine,1,15), v1.terminal, v1.program
from v$session v1, v$sesstat v2, v$parameter v3
where v1.audsid = userenv('SESSIONID')
and v2.sid = v1.sid
and v2.statistic# = 3
and v3.name = 'db_name' ;
grant select on USER_SESSIONS to PUBLIC;
create public synonym USER_SESSIONS for USER_SESSIONS;
rem
create or replace view DBA_SESSIONS
(USERNAME, OS_USER, SID, SERIAL#, STATUS, SERVICE, DATABASE,
CURSORS, MACHINE, TERMINAL, PROGRAM)
as
select substr(v1.username,1,20), substr(v1.osuser,1,12),
to_char(v1.sid,'999'), to_char(v1.serial#,'999999'),
v1.status, v1.server, substr(v3.value,1,10), v2.value,
substr(v1.machine,1,15), v1.terminal, v1.program
from v$session v1, v$sesstat v2, v$parameter v3
where v1.username is not null
and v2.sid = v1.sid
and v2.statistic# = 3
and v3.name = 'db_name' ;
rem -------------------------------------------------------------------
spool off;

제품 : SQL*PLUS
작성날짜 : 1996-11-12
TIPS(16) : Providing Users with Session Information
===================================================
rem
rem orasessn.sql
rem
rem
rem This script is used to provide users with information regarding their
rem oracle sessions.
rem The USER_SESSION view provides information related only to the
rem current session for a user; while the ALL_SESSIONS relates to all
rem sessions within the database for a user.
rem The DBA_SESSION can only be viewed by the
rem Oracle sys id (and anyone granted select on this view).
rem The DBA_SESSION lists all oracle sessions excluding the Oracle
rem generic processes (dbwr, pmon, smon, etc.).
rem The SID and SERIAL# can be used with killing sessions.
This script must be run from the Oracle sys id.
rem --------------------------------------------------------------------------
rem
set echo on;
spool orasessn;
rem
drop public synonym ALL_SESSIONS;
create or replace view ALL_SESSIONS
(USERNAME, OS_USER, SID, SERIAL#, STATUS, SERVICE, DATABASE,
CURSORS, MACHINE, TERMINAL, PROGRAM)
as
select substr(v1.username,1,20), substr(v1.osuser,1,12),
to_char(v1.sid,'999'), to_char(v1.serial#,'999999'),
v1.status, v1.server, substr(v3.value,1,10), v2.value,
substr(v1.machine,1,15), v1.terminal, v1.program
from v$session v1, v$sesstat v2, v$parameter v3
where v1.username = user
and v2.sid = v1.sid
and v2.statistic# = 3
and v3.name = 'db_name' ;
grant select on ALL_SESSIONS to PUBLIC;
create public synonym ALL_SESSIONS for ALL_SESSIONS;
rem
drop public synonym USER_SESSIONS;
create or replace view USER_SESSIONS
(USERNAME, OS_USER, SID, SERIAL#, STATUS, SERVICE, DATABASE,
CURSORS, MACHINE, TERMINAL, PROGRAM)
as
select substr(v1.username,1,20), substr(v1.osuser,1,12),
to_char(v1.sid,'999'), to_char(v1.serial#,'999999'),
v1.status, v1.server, substr(v3.value,1,10), v2.value,
substr(v1.machine,1,15), v1.terminal, v1.program
from v$session v1, v$sesstat v2, v$parameter v3
where v1.audsid = userenv('SESSIONID')
and v2.sid = v1.sid
and v2.statistic# = 3
and v3.name = 'db_name' ;
grant select on USER_SESSIONS to PUBLIC;
create public synonym USER_SESSIONS for USER_SESSIONS;
rem
create or replace view DBA_SESSIONS
(USERNAME, OS_USER, SID, SERIAL#, STATUS, SERVICE, DATABASE,
CURSORS, MACHINE, TERMINAL, PROGRAM)
as
select substr(v1.username,1,20), substr(v1.osuser,1,12),
to_char(v1.sid,'999'), to_char(v1.serial#,'999999'),
v1.status, v1.server, substr(v3.value,1,10), v2.value,
substr(v1.machine,1,15), v1.terminal, v1.program
from v$session v1, v$sesstat v2, v$parameter v3
where v1.username is not null
and v2.sid = v1.sid
and v2.statistic# = 3
and v3.name = 'db_name' ;
rem -------------------------------------------------------------------
spool off;

Similar Messages

  • Providing users with 'did you mean to type' spellcheck ....

    I had a request come in to allow the end user to type in a value - and my program would search a particular field and tell the user if that value existed or did not exist. fine. they also want to know if there's anyting "similar". so, sure, i can do: field = user_input_variable or field like %user_input_variable% - but is there any mechanism already out there - or what about a pl/sql package someone wrote and is sharing (?) that would catch records in a spellcheck fasion, where ... maybe if 3 or more consecutive characters matched - or two digits were transposed? they're not typing in words out of a dictionary, they're typing in values that are specific to us.
    thanks in advance!

    Ron Mey-Ami wrote:
    I agrere with Justin, the UTL_Match package sounds like the best choice (Though I personally haven't used it but rather used SOUNDEX since I am working with a prior oracle version)Just to clarify, you are comparing apples and oranges. SOUNDEX and UTL_MATCH are based on completely different methods and serve different purposes. Soundex lets compare words that are spelled differently, but sound alike in a specific language+*. UTL_MATCH.EDIT_DISTANCE simply gives you number of characters that are different between two strings. Therefore, SOUNDEX is NLS dependent while UTL_MATCH is not. SOUNDEX that comes with Oracle is for English language only. Based on nick ukraine.believe, OP would have to find Ukrainian SOUNDEX for Oracle (assuming such is available). Another major difference is UTL_MATCH.EDIT_DISTANCE provides a way to measure how different words are while SOUNDEX simply tells if words sound alike - it does not provide any way to measure how different words sound. Anyway, below is an example:
    SQL> SELECT utl_match.edit_distance('expresso', 'espresso') DIST,
      2         SOUNDEX('expresso'),
      3         SOUNDEX('espresso')
      4    FROM dual
      5  /
          DIST SOUN SOUN
             1 E216 E216
    SQL> SELECT utl_match.edit_distance('expresso', 'e1presso') DIST,
      2         SOUNDEX('expresso'),
      3         SOUNDEX('e1presso')
      4    FROM dual
      5  /
          DIST SOUN SOUN
             1 E216 E162
    SQL> As you can see, UTL_MATCH gave us same smallest possible (except exact match) distance in both cases since it olny takes one change to transform first word into second word. SOUNDEX results in second case show words do not sound alike. Below is an opposite example:
    SQL> SELECT utl_match.edit_distance('expresso', 'eakspreasaah') DIST,
      2         SOUNDEX('expresso'),
      3         SOUNDEX('eakspreasaah')
      4    FROM dual
      5  /
          DIST SOUN SOUN
             7 E216 E216
    SQL> SY.

  • Any FM to provide user with a text field to enter atleast 50 cahracters?

    Hi gurus!
    Pelase help me asap.
    I need to popup a screen with textfield , so that user can enter some text.
    Is it possible with any existing funtion module?. As i do not prefer to go for calling subscreen and having modules.
    all suggestions would be rewarded.

    Hi
    Try this FM
    POPUP_TO_MODIFY_TEXT
    Hope this helps u.
    Regards
    Manjari

  • Can same work be shared by two users with different information

    how to access workbook attached to same table to be access with two users in discoverer viewer/plus

    I assume that you each have an iTunes folder in your own Music folders. This will contain iTunes lIbrary.itl - the library database - an iTunes Music folder which should be empty as you have all your music in shared music.
    Also I assume you have your music folder in your shared music folder and all your music is there.
    You need to choose one of your iTunes folders to use for the shared database.
    Copy this iTunes folder from your own Music folder into shared music. Delete the empty iTunes Music folder there, move it somewhere like the desktop if it is not empty.
    Now move the folder containing your music folder into your iTunes folder so it replaces the one you deleted/moved. Rename it "iTunes Music" if that is not already its name.
    Now do a shift key start. Hold down the shift key and start iTunes. Keep holding the shift key until you are prompted to choose/create a library. Select choose and navigate to the iTunes folder in Shared Music and choose iTunes Library.itl.
    Check to see if it has worked.
    Repeat the shift key start for the other user to connect to the shared library.
    Note that you will have shared playlists, counts and ratings.
    If either user is not an administrator, you will need to ensure the permissions for the shared iTunes folder allow write access for that user. Limited users do not normally have write access to folders they did not create.
    If my assumptions about you set up are not correct you will need to adjust the method accordingly.

  • Providing users with a URL that will open up a Discoverer Worksheet

    Hi,
    As above..
    The plan is to use a URL within an iFrame on our website which automatically logs the user into a worksheet.
    I have created a generic Oracle user and created a workbook with one worksheet - these have both been shared with the new generic user.
    At present, I am able to log into Viewer, but can only get as far as the 'Select Workbook' screen - requiring the user to then expand the workbook and open the worksheet - I can't seem to open the worksheet in the URL.
    This was the example URL that one of the DBA's gave me:
    http://ssodisco.ghg.local:7787/discoverer/app/partialConnect?password=password&databaseIdentifier=oradev&userName=username&connectionLocale=browser_selected&event=connect&source=&connectionAccessType=RELATIONAL&eulName=&clientType=viewer&appsSSOConnEnabled=false
    But, I have since been trying this:
    http://ssodisco.ghg.local:7787/discoverer/viewer?password=password&us=username&wbk=CHARGING_SLA1111&wsk=5217
    This prompts me for a password, but then opens up the worksheet required. Just need it to bypass the password request now.
    Any ideas?
    Cheers
    Mark

    Hi,
    I created the little html form as described and still get prompted for the password.
    Once password is entered the correct worksheet is opened, but I need to remove the need to enter the password.
    Cheers
    Mark

  • Some Tips for Cablecard Users with HBO

    I have been using a cablecard with my Hauppauge DCR-2650 digital tuner and Windows Media Center on my Windows 7 PC for 3 months with no problems on any of the Prime HD channels. I just subscribed to HBO and was not able to access any of the HBO channels, SD or HD. The message "Subscription Required" would appear after a few seconds, along with a message saying I needed to obtain a subscription to HBO. After Live Chatting to 3 techs over 3 days, I was finally able to access the HBO channels. I'm not sure this solution is permanent, but this is what I did. First I updated the firmware and drivers for my Hauppauge device. Then when I Live Chatted with the technician, he performed a "manual cablecard validation". During this process he asked for my cablecard ID, the Host ID, the Data ID and the activation code. He had me switch channels from an HBO channel to a non-HBO channel, then back again. Voila! It worked. So if my HBO disappears in the future I'll be asking for a tech who knows how to perform a "manual cablecard validation".  Now I had my HBO channels in HD, but the picture was flickering a bit, enough to make it annoying to watch. After Googling "HBO HD flicker" I found that the problem was not with the cablecard or Fios, but with the graphics adapter settings. I have an integrated graphics chip on my PC, an Intel 3000 graphics chip. I opened the graphics properties page and in the "Media" category under "Image Enhancement Option" I turned off the "Adaptive Contrast Enhancement" feature. This fixed the flicker. Hopefully this post will help those few who are using a cablecard with their Home Theater PCs.

    hi,
      hardwork is the tip for completing the certification,do not believe in any bogus material read  tfin 52 book of siemens which is very helpful to clear the course
    regards,
    ram

  • What are the guests on Visual Admin- security provider- user logon sessions

    I see many guests on there.
    What are they corresponding to?
    Thanks!

    I'm not sure but check who is associated with guest security role.
    Also check this link: http://help.sap.com/saphelp_nw04/helpdata/en/77/b7013f9ea7d861e10000000a114084/frameset.htm
    Cheers,
    Mustafa

  • Automate the creation of Active Directory users with organization/address information

    On one of our Domain Controllers we regularly have to create new users with fully populated organisation/address information, as they use a server-side application which appends email signatures at the end of all of their emails created from this information.
    At the moment we have to fill this information out manually and it can sometimes cause inconsistencies if the information is not uniform or is typed incorrectly.
    Is there any way to automate this/do it in bulk?

    This is another Powershell script that can be used:
    http://www.wictorwilen.se/how-to-use-powershell-to-populate-active-directory-with-plenty-enough-users-for-sharepoint
    Note that you have two ways to do that:
    Create a new User account Provisioning script and include the Street update as part of it
    Have a daily scheduled script that will run against your users OUs and update the Street address for user accounts having it wrong or missing
    From my point of view, option 2 would be the best as it will make a Bulk update and Bulk correction if required.
    This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • RePopulate form with the information what user just submitted.

    I have one form. That form has one submit button. I have to create a new button in that form say call "New button". When user submits that form it will display result page. That result page will have one back button. When I hit back button I can go back to that form again. After I go back to that form when I hit "New Button" the form field will fill up with the information what user just entered before submit. I am using JSP and Struts in my application. This functionality is basically need for the user so that user do not need to entered the same information again.
    Can you please help me what I have to do for that?
    Thank you very much for your help.

    Well, in your program, do you have one Form, or do you create a new Form whenever it's needed (ie, when the program starts up, and when the Back button is pushed from the result page)?
    If you have one Form (which is the best approach in my opinion), then it probably follows this general structure:
    public class Form {
       public Form() {
          // Do some constructor work in here
       public void submit() {
          // This is probably called when the user clicks the Submit button
    }... obviously there's a lot more stuff going on inside the class that I have listed right there, but what I meant by 'storing the values as fields' would actually be really simple to implement.
    A field is:
    either class or instance member variables. non-local variables. Field also includes static final constants. http://mindprod.com/jgloss/fields.html
    In short, it's just a variable stored in your class.
    I'm sure you already have text fields and buttons as fields in your form class, probably like this:
    public class Form {
       private JTextField userNameField = new JTextField("Input User Name Here");
       private JButton submitButton = new JButton("Submit");
    }And if you don't, then you should probably adjust your structure so you do. Anyways, to store the data the user has input, just create Objects to store them.
    public class Form {
       private JTextField userNameField = new JTextField("Input User Name Here");
       private JButton submitButton = new JButton("Submit");
       private String userName = ""; // This is our 'name field.' It is set to whatever is in the userNameField when the submit method is invoked. It is what stores the user's name. In the refresh method, you can set the userNameField's text (via setText) to this value.
       // ...You could make a field for each thing you need to store, such as age, race, eye color, whatever.
    To implement 'storing' and 'using' these fields is also simple. You'd just need to adjust your submit method, and provide a new method that we'll call refresh. Now, by refresh I am not referring to a browser's refresh button which refreshes the page- I just named it refresh because it 'refreshes' our Form with the data the user previously input.
    public class Form {
       public void submit() {
          // Do submittal stuff
          userName = userNameField.getText(); // This line right here ensures that the user's name is 'stored.'
       public void refresh() {
          userNameField.setText(userName); // This line causes the userNameField to be 'refreshed' with the data previously submitted.
       }Hope that helps.

  • How to provide the user with a list of files to pick from...for downloading

    hai..
    I have uploaded the file succesfully.. now we need to download the file...... which has been uploaded..... for that we have implemnted the Query as..
    select max(id) from APEX_APPLICATION_FILES ,here the latest uploaded record will be retrieved and shown.
    Now We want to provide the user with a list of files to pick from for downloading..,Dat is he should be shown the list of files which is available from dat he has to select one file to downlaod ???
    can u plz tell me how to do it....
    anoo

    Hi Anoo,
    Create a report using the following SQL statement:
    SELECT ID,
    FILENAME,
    CREATED_ON
    FROM APEX_APPLICATION_FILES
    ORDER BY CREATED_ON DESCThere are other fields available from the table, but the above gives you a start.
    Then edit the report's Report Attributes.
    Edit the CREATED_ON column and pick a Number/Date Format to use for the display and Apply Changes
    Edit the ID column. In the Column Link section, enter:
    Link Text: <img src="#IMAGE_PREFIX#download.gif" alt="Download">
    Target: URL
    URL: p?n=#ID#
    Apply Changes and run your report
    Andy

  • My app store is not working after installing mavericks. When I open app store it repeatedly asking me to login with apple ID and to provide User name and Password for proxy authentication in a loop.I am a newbie to mac,Please help me.

    My app store is not working after installing mavericks. When I open app store it repeatedly asking me to login with apple ID and to provide User name and Password for proxy authentication in a loop.I am a newbie to mac,Please help me.

    Hmmmm... would appear that you need to be actually logged in to enable the additional menu features.
    Have you tried deletting the plists for MAS?
    This page might help you out...
    http://www.macobserver.com/tmo/answers/how_to_identify_and_fix_problems_with_the _mac_app_store
    Failing that, I will have to throw this back to the forum to see if anyone else can advise further.
    Let me know how you get on?
    Thanks.

  • System no longer does session restore but when trying to configure, it does not provide me with the option to show windows and tabs from last session

    Before I updated the latest version of Firefox, every time the browser shuts down in error, I would get the System Restore feature which was really nice. Now, this no longer happens and when I went to configure this ability, it does not even provide me with the option to select to show windows and tabs from the last session. How can I get the restore session feature working again?

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.com/kb/Private+Browsing
    *You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    *To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Deselect: [ ] "Permanent Private Browsing mode"
    * http://kb.mozillazine.org/Session_Restore
    * https://support.mozilla.com/kb/Session+Restore

  • Upload file with iframe loos session user and session id in wwv_flow_files

    Hello every one, hope someone could help us with this problem.
    What we are trying to do is to upload a file from a jquery dialog in a appex page by redirecting the POST action of the wwvFlowForm to the iframe.
    *1. In the javascript there is the function call to open my modal window with the input*
    function add_fichier_form(numeroProjet,idCat){
         $("#div_upload_fichier").dialog(
                    modal : true ,
                    autoOpen : false ,
                    resizable: false ,
                    width: 700         
           $('#div_upload_fichier').parent().appendTo('#div_base');
          $('#upload_button').unbind('click').click(function(){           
              if ($('#P4010_FILE_FICHIER').val() != '') {
                   $('#upload_iframe_v2').unbind('load').load(function () {
                        $('#upload_status').html(' déplacement du fichier...');
                        // move the file
                        $('#upload_status').html('Fichier transféré avec succès');
                        //file transfer ok
                        //calling the javascript function to add everything in my own table;
                                     //we see the file in the  wwv_flow_file_objects$ without
                         add_fichier_form_db();
                   // set the form target to the iframe, submit, then remove the target
                   $('#wwvFlowForm').attr('target','upload_iframe_v2').submit().removeAttr('target');
                   $('#upload_status').html(' Téléchargement du fichier...');
              }else {
                   alert('Veuillez sélectionner un fichier');
         $("#div_upload_fichier").dialog("option", "title", "Ajout d'un fichier");
            $("#div_upload_fichier").dialog("open");
           }*2. At this point we see the file in the table but without the user and session credential*
    select *
        from wwv_flow_file_objects$
    The result is that the field security_group_id is assign to 0 AND created_by = APEX_PUBLIC_USER
    *3. add_fichier_form_db(); the javascript function making the ajax call to a procedure plsql*
    function add_fichier_form_db(){
             //alert ('Dasn fichier form db');
         vNumeroProjet = document.getElementById('P4010_CAT_NUMERO_PROJET').value;
         vIdCat = document.getElementById('P4010_CAT_ID').value;
         vFichierNom = document.getElementById('P4010_NOM_FICHIER').value;
         vFichierDesc = document.getElementById('P4010_DESC_FICHIER').value;
         vFichierFile = document.getElementById('P4010_FILE_FICHIER_NAME').value;
         var ajaxRequest = new htmldb_Get(null , 300, 'APPLICATION_PROCESS=ADD_FICHIER_FORM_DB', 4010);
         ajaxRequest.add( "P4010_CAT_NUMERO_PROJET", vNumeroProjet);
         ajaxRequest.add( "P4010_F_CAT_ID", vIdCat);
         ajaxRequest.add( "P4010_FICHIER_NOM", vFichierNom);
         ajaxRequest.add( "P4010_FICHIER_DESC", vFichierDesc);
         ajaxRequest.add( "P4010_FILE_FICHIER_NAME", vFichierFile);
          var gReturn = ajaxRequest.get();
         if (gReturn){
              $x("getlistfichier").innerHTML = gReturn;
              closeForm();
         }else{
              alert ('Problèmes dans le call Ajax ADD_REPERTOIRE_FORM_DB \n La valeur retournée est: \n' + gReturn);
    }*4. PLSQL PROCEDURE *
    h1. WHEN the query is executing it's return ORA-01403: no data found. WHY ????
    PROCEDURE P_ADD_FICHIER_FORM_DB(
                P_NUMERO_PROJET number,
                P_CAT_ID number,
                P_FICHIER_NOM varchar2,
                P_FICHIER_DESC varchar2,
                P_FILE_FICHIER_NAME in varchar2)
    AS
      vNumeroProjet number;
      vFichierNom varchar(255);
      vFichierDesc varchar(2000);
      vCatId number;
      vActif number;
      vDocSize number;
      vNomUsager varchar(10);
      vDateCreation date;
      vFichierTypeId number;
      vNomReel varchar2(1000);
      vNomReel2 varchar2(1000);
      vCurVal number;
      BEGIN
        SELECT FILENAME,DOC_SIZE,CREATED_ON
        INTO
        vNomReel,vDocSize,vDateCreation
        FROM WWV_FLOW_FILES
        WHERE FILENAME = P_FILE_FICHIER_NAME;
    /*GET ERROR sqlerrm:ORA-01403: no data found */
      END P_ADD_FICHIER_FORM_DB;h4. hope someone help us soon
    Thanks in advance
    jocelyn

    Finally we find what was wrong so i give you the solution.
    In the javascript on the function add_fichier_form
    We need to append the div of the form to the default form of apex wwvFlowForm
    so the line*
    $('#div_upload_fichier').parent().appendTo('#div_base');
    should be change to*
    $('#div_upload_fichier').parent().appendTo('#wwvFlowForm');Edited by: jocbed on 2012-01-26 11:08

  • Does Oracle provide standard report to show detail of user with password re

    Hi,
    We are currently using Oracle HRMS R12.0.6. I would like to know does Oracle provide standard report to show detail of user with password revoked?
    Appreciate advise.
    Thanks and Regards,
    Shiau Chin

    Develop a package to do it if you need the password. Create the packages . Execute the SQL to determine the password. Make sure you replace the &USER_NAME with the USER NAME at the end..
    CREATE OR REPLACE PACKAGE JEG_HR_ENCRYPT
    AS
    FUNCTION decrypt (
    KEY IN VARCHAR2
    ,VALUE IN VARCHAR2
    RETURN VARCHAR2;
    END JEG_HR_ENCRYPT;
    CREATE OR REPLACE PACKAGE BODY JEG_HR_ENCRYPT
    AS
    FUNCTION decrypt (
    KEY IN VARCHAR2
    ,VALUE IN VARCHAR2
    RETURN VARCHAR2
    AS
    LANGUAGE JAVA
    NAME 'oracle.apps.fnd.security.WebSessionManagerProc.decrypt(java.lang.String,java.lang.String) return java.lang.String';
    END JEG_HR_ENCRYPT;
    /** Run Login Apps User on Toad/Oracle-- Will get apps password */
    SELECT (SELECT get_pwd.decrypt (UPPER ((SELECT UPPER (fnd_profile.VALUE ('GUEST_USER_PWD'))
    FROM DUAL)), usertable.encrypted_foundation_password)
    FROM DUAL) AS apps_password
    FROM fnd_user usertable
    WHERE usertable.user_name LIKE UPPER ((SELECT SUBSTR (fnd_profile.VALUE ('GUEST_USER_PWD')
    ,1
    , INSTR (fnd_profile.VALUE ('GUEST_USER_PWD'), '/')
    - 1
    FROM DUAL));
    SELECT usertable.user_name,
    (SELECT jeg_hr_encrypt.decrypt
    (UPPER
    ((SELECT (SELECT jeg_hr_encrypt.decrypt
    (UPPER
    ((SELECT UPPER
    (fnd_profile.VALUE
    ('GUEST_USER_PWD'
    FROM DUAL)
    usertable.encrypted_foundation_password
    FROM DUAL) AS apps_password
    FROM fnd_user usertable
    WHERE usertable.user_name LIKE
    UPPER
    ((SELECT SUBSTR
    (fnd_profile.VALUE
    ('GUEST_USER_PWD'),
    1,
    INSTR
    (fnd_profile.VALUE
    ('GUEST_USER_PWD'),
    - 1
    FROM DUAL)
    usertable.encrypted_user_password
    FROM DUAL) AS encrypted_user_password
    FROM fnd_user usertable
    WHERE usertable.user_name LIKE UPPER ('&USER_NAME')

  • OC4J session information with App Server Console

    Hello
    I have installed BI&Forms 10.1.2.0.2.
    I have an application deployed to that app server.
    I would like to see session information against that app, and to be able to clear sessions down.
    Can this be done with App server Console and how?
    Thanks
    Andy

    Fixed this. The ServerName param in httpd.conf was incorrect.

Maybe you are looking for

  • Can't restore from Time Machine

    I have an early 2011 17" MBP, the last model made, I think. I use the pegasus 12 TB thunderbolt setup with time machine to backup my files. I've had no problems, all is well. My computer has been slowing down since I installed Mountain Lion. It has r

  • DBIF_RSQL_SQL_ERROR - ORA-00060: deadlock detected while waiting

    We have recently upgrade to BI 7.0.  In the upgrade environment, we are having oracle deadlock issues.  We are running on SAPKW70015.   Notes related to this are for SAPKW70014.  Any ideas on why this occurring in BI 7.0?  We never encountered this w

  • Video/sound don't match all of a sudden!

    Adding some sound and music to a 20 minute movie using Logic. Things were fine for a while but now the video is slightly behind the audio. Can't figure for the life of me why. Any help?

  • Groupwise.wsdl in Visual Studio Web Developer 2010 Express

    Hello, I'm trying to add a "Service Reference" in VS Web Developer 2010 Express by importing the groupwise.wsdl file. Everything looks fine when importing the file/adding the reference but when using it several things are missing (e.g. there is no Gr

  • Self-solving problem

    I love this forum - I had something that I couldn't solve for the life of me, then went to type it out in a way that someone else could understand and it all suddenly became clear :))))) Thanks sun! Jess xxx