How to remove the last session of the user of the SQL backend?

Sometimes the user session gets closed between some of the work for any reason.

When the next time that the user logs on P6, he gets an error or special functionaly dosen't work for this user or the system hangs.

In this case if I decided to clear the history of the last session of this user from the databases, how to write the SQL query?

I don't want to remove all user sessions in the table USESSION and USESSAUD, I just want to remove the last session of the user to particular user (e.g., XYZ).

You can consult Re: currently connected users

Tags: Oracle Applications

Similar Questions

  • How to remove the sql statement in the output of the coil?

    Hi gurus,

    If my spool request is like that
    set feedback off
    set verify off
    set trimspool on
    set heading off
    
    spool c:\test\test.csv
     select * FROM test;
     spool off
    I get my file csv as like this:
    SELECT * FROM test1
    
    SSO                  
    -------------------- 
    shsrgh               
    dehrerdh             
    wtw55hd              
    dhdfhdfh             
    hdhdh                
    
    
    SET SPOOL OFF;
    What should I change in my SQL query such that I won't include these lines:
    SELECT * FROM test1
    
    SSO                  
    -------------------- 
    
    SET SPOOL OFF;
    Thank you

    user10679113 wrote:

    What should I change in my SQL query such that I won't include these lines:

    SELECT * FROM test1
    
    SSO
    -------------------- 
    
    SET SPOOL OFF;
    

    You cannot change anything in your SQL query to exclude these lines.
    These lines refer to the client you are using i.e. SQL * more and have nothing to do with the SQL language as such.

    You could put all of these SQL * more commands in a script file and run this SQL script file *, as shown below:

    test@ORA10G>
    test@ORA10G> -- show contents of the script: c:\test.sql
    test@ORA10G> host type c:\test.sql
    set feedback off
    set trimspool on
    set heading off
    set echo off
    spool c:\test.log
    select ename from emp;
    spool off
    set echo on
    set heading on
    set feedback on
    
    test@ORA10G>
    test@ORA10G> -- run the script
    test@ORA10G> @c:\test.sql
    
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    test@ORA10G> set heading on
    test@ORA10G> set feedback on
    test@ORA10G>
    test@ORA10G> -- show contents of the spooled file: c:\test.log
    test@ORA10G> host type c:\test.log
    
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    
    test@ORA10G>
    

    HTH,
    isotope

  • a date column, with timestamp... How to remove the timestamp

    Hello

    I have a table name WRESTLING, with one of its fieldnamed DATE, using the DATE data type.
    The date format incudes timestamp, can someone help me how to remove the timestamp part.
    I want only the part of date only. I tried this:

    Update DATE is to_char(date,'DD-MON-YYYY') set of CATCH;.
    but the result of all the date inside the table always have timestamp.

    can I use this:
    Update DATE is to_date(date,'DD-MON-YYYY') set of CATCH;.
    and still the same result.

    Can anyone advice on this? pls.
    Thank you

    user9353110 wrote:
    Thank you very much.. If this is the case, we can remove the timestamp when creating view for this table?

    No, you can never remove the component "hour" of a DATE.

    If you do not want to display a date in time (display purposes only!), use TO_CHAR to "transform" the DATE to a string with the format mask

    SQL> alter session set nls_date_format = 'dd-mm-yyyy hh24:mi'
      2  /
    
    Session altered.
    
    SQL> select sysdate
      2    from dual
      3  /
    
    SYSDATE
    ----------------
    17-03-2010 09:28
    
    SQL> select to_char (sysdate, 'dd-Mon-yyyy')
      2    from dual
      3  /
    
    TO_CHAR(SYSDATE,'
    -----------------
    17-Mar-2010
    
    SQL> select to_char (sysdate, 'yyyy-MON-dd')
      2    from dual
      3  /
    
    TO_CHAR(SYSDATE,'
    -----------------
    2010-MAR-17
    
    SQL> 
    

    NOTE: the example of last two are not DATEs! They are STRING

  • How to remove the SEND the COMMENTS tab on the bottom of the screen in 10.02

    One with ideas on how to remove the pesky "Send Feedback button in the lower r/corner of the window of Firefox 10.02.

    Hello

    Please try this: click on the "+" after the last tab and Customize. You can now click, hold and drag the widget customize. Customization of

  • How to remove the DV6-7029WM flange to replace the LCD

    For the life of me I can't understand how to remove the front panel. I got the top removed, but the lower part will not move around the hinges. It seems to be not overlooked, but at this point I'am not sure. I removed the front screens and I didn't have any problems, but it baffled me.

    Thanks for any help.

    Hello

    It is the last link:

    http://h10032.www1.HP.com/CTG/manual/c03582006.PDF

    I hope this helps.

  • I have just re installed Windows XP. Windows installed after three attempts. When I turn on the computer there are three choices of Windows XP. Only the first works how to remove the other two?

    I have just re installed Windows XP. Windows installed after three attempts. When I turn on the computer there are three choices of Windows XP. Only the first works how to remove the other two?

    I have a hard drive. At least two partitions. C: 74.7 GB with 63.3 freespace
    D: 74.2 GB with 70.6 freespace
    These are my original specifications of the hard drive: 160 GB (7200 RPM) SERIAL ATA HARD DRIVE WI
    So I suspect there are at least one or more partitions hidden leaving 11.1 GB for hidden partitions!
    Windows is present on both drives C: & D:. In the directory windows on C:, the oldest entry is 19.12.12, 21.43 last 21.12.12, 22.50
    The first entry in the directory windows on D: is 19.12.12, 18.42 the last 21.12.12, 22.40
    I hope that makes sense to someone, any help gratefully received!

    As long as you have verified you dΘmarrez done on the c: / partition, Yes, you can reformat the drive D: / partition using Windows 'disk management '.

    J W Stuart: http://www.pagestart.com

  • How to remove the default for a limited only account gateway (with static ip address)

    I have 1 pc with 4 accounts 1 account administrator and user the rest is limited accounts. I use a static ip address and the question is how to remove the default gateway on these limited account so that they cannot access the internet

    The entry door is fixed to the adapter and selectively cannot set properties of the different adapter for different users, all users use the same adapter.

    With Internet Explorer (does not work with other browsers), you can configure a proxy server with a fake address, you can do this through Group Policy, or you can do it manually for each individual user through the Internet Options settings.  You can set the proxy server address map of loopback (127.0.0.1) or you can set it to a bogus address of your private address range (usually the range 192.168.xxx.xxx)

    If you are using other browsers, you can use NTFS permissions to deny access to the Explorer or the program directory or you can use software restriction policies to deny access to specific programs.

    Alternatively, you can use a logon script to activate the network connection service when you open a session and the other to turn it off when you log, but if you do this you will disable the entire network for limited users if it cannot be a solution for them.  The script can be a simple two-line script:

    Logon script:

    SC config Netman start = demand
    net start netman

    Logoff script:

    net stop netman
    SC config Netman start = disabled

    These can be useful:

    http://www.howtonetworking.com/Internet/restrictie11.htm
    http://www.christianblog.com/blog/abelajohnb/disable-Internet-access-in-Windows-for-specific-user-accounts/

    John

  • How to remove the lid of the scanner on the Photosmart 5520?

    Manual to insist that the lid of the scanner of the Photosmart 5520 (model #CX042A) can be removed.

    When I try however, it does seem it Peel, as if a force is applied over it feels like it will break.

    I contacted HP technical support per session chat, and after about half an hour the technician finally dropped and referred me to the store where I bought it.  I went to Office Max, where I bought and asked them.  They were also puzzled with a right to the camera in front of us, they could not figure out how to remove the cover.  They were also afraid to break if they tried to remove it.

    Are there instructions indicating how to remove it so that the lid or the hinge is not destroyed in the process?

    The manual is not wrong.  You can remove the cover on a 5110.  I was just trying to do the right way the first time.  This post told me how to do it.  As far as I know, the only things that have changed since the 5510-5520 are the firmware and internal control.  The shell of the printer must be roughly the same.

  • How to remove the upgrade Windows 7 Professional of D:-drive?

    I bought Windows 7 Professional Upgrade from Windows Vista Home Basic. HUGE MISTAKE! On the Microsoft Store is a nightmare. Finally, I just received a refund. Now, how do the Windows 7 on my D drive where is where idiots to the Microsoft sortore had me download in the first place. now I have vista on drive c and one broke * windows 7 on drive d. HELP, apparently, not a microsoft support t know how?

    If the Visa is still functions (you can load a running Vista), then install EasyBCD and follow the instuctions for EasyBCD listed below. When you are finished with the removal of Windows 7 in the boot (according to instructions) menu, then you can reformat the D: partition, which is where you said Windows 7 was installed.

    ================================================

    EasyBCD - how to remove the invalid entry:
    http://NeoSmart.NET/DL.php?id=1

    When you run EasyBCD, you will see the following great tabs/buttons on the left.

    (1) the display settings: displays the number of entries (bootable version valid and is no longer valid to Windows). The one marked 'default' in the version of Windows that starts if you sit and wait 30 seconds without making a selection using the keyboard. The entrance of remaining are classified by 'Name' (unless renamed all entires will call Windows 7). Drive letter represents the partition that version. If everything that you installed multiple copies of Windows 7 and Vista the path "Bootloader" will always be the same.

    (2) menu of Boot edit: four options 'Up', 'Down', 'Rename' (is very convenient if you want to see a significant name when you first start (I have 5 versions of Windows on one of my test systems, so I reamed the plain jane "Windows 7" "Windows 7 Pro 64-bit" and "Windows 7 Home Premium 32 - Bt, etc." ").)
     
    The last option is "Delete", click on the entry of is no longer valid (for highlight), and click 'delete '.

    You will also see a check mark in the "default" (when 30 timeout expires) version of Windows (vista in your case), the computer will start to place a check mark to one you want to keep.

    Located at the bottom of 'edit Boot Menu' page is the time-out value, if you want automatically to your only remaining version of Windows just place a check mark in the box "Skip boot menu."

    When your done with your changes, be sure to 'Save Settings'.

    J W Stuart: http://www.pagestart.com

  • How to remove the mouse? What is the Quiz Manager?

    I think I found an answer. Click on the Blank. Right?  :-)

    1. I still don't know how to remove the '' mouse. '' Help, please.

    2. I inserted a Question slide and specified as a poll. How can I deselect the 'right answer '? Or, why the second slide that is the result should be added even if it is investigated. Or, how can I get the result of the survey? (this can be advanced skills?)

    3. I deleted the second slide added automatically and a message that says: "if wanting to come back, go to the Quiz Manager. What is the Quiz Manager? Where is he?

    I really appreciate your help.

    ...................................

    > I'm a beginner.

    > I dragged a jpg image she draws on a blade. I got to know that he is sitting on a background. I have found a way to replace it with different images, but cannot find a way to remove it. Could you help me?

    > another Q is, how can I remove mouse? I can move it around, but cannot be removed. THX.

    Post edited by: winnn123

    Post edited by: winnn123

    Sorry I have not responded to your last questions, but we live in different time zones, and I was asleep.

    I am pleased to have been useful. Feel free to ask questions. Captivate deserves to take some time to learn it. I have tried many other software to develop active learning and finally CP has become my absolute favorite. So I want to help the starters as much as possible...

  • How to remove the permission of pc

    How to remove the permission of pc

    On the latest version of iTunes: account > permissions > Deauthorise This Computer (store > Deauthorise computer on older iTunes) on this computer: Deauthorize your computer using iTunes - Apple Support

  • How to remove the calendar program in the e-mail section because I hate and that everything he did to the e-mail page

    all this happened on my email page yesterday and I clicked it, but I don't like it. and then all of a sudden Besides my collected email addresses and my personal address book now there's a "address book all the" I don't like it as it is constantly changing for it and I don't want that. I want my program to return to how it was three or four days ago, when I didn't have this program and the additional topics, etc.

    How to remove the calendar program

    Open the Add-ons - Extensions Manager, search for 'Flash' and press the 'delete '.

  • How to remove the automatic locking of the IPad 2

    How to remove the automatic locking in the iPad 2

    Are you talking about the time it takes the device "go to sleep?

    Settings > general > auto lock > set to 'never '.

  • How to remove the message "not using current Version" boring?

    For months, my Firefox home page included a note that I do not have the latest version and provides a link to update. When I use the link I said "Congratulations, you are using the latest version." Adding insult to injury, there are not 20 minutes, I downloaded 27, and the message is still there. Almost the end of the world, but at this point, it is very annoying. How to remove the message?

    The old page of Google-Firefox has not changed since Firefox 4 is released, please disregard the information updated on this page.

  • Please tell me exactly how to remove the AVG search function

    Please tell me exactly how to remove the AVG search function

    edited by a moderator for clarity

    You need not repeat dozens of times or use profanity to get help.

    (1) disable all non-essential or unrecognized extensions on this tab. Don't know what it does? When in doubt, turn off:

    Firefox orange (or the Tools menu) button > addons > Extensions category

    Use the links above a disabled extension to restart Firefox if some seem to.

    (2) restore your Google search engine:

    https://addons.Mozilla.org/en-us/Firefox/addon/SearchReset/

    (3) check a user.js file (before the release of Firefox, otherwise the parameters in this file can cancel your cleaning) as described in this article: How to fix preferences that will not save.

    (4) If AVG search took over your page to the new tab (Ctrl + t), which changes as follows:

    (A) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (B) in the filter box, type or paste newtab and make a pause so that the list is filtered

    (C) double-click the preference browser.newtab.url and enter the desired value for your favorite page:

    thumbnails (i) (default) Page = > subject: newtab

    (ii) blank tab = > subject: empty

    Firefox homepage integrated (iii) = > topic: welcome

    (iv) any other page = > full URL of the page

    IMPORTANT: If you have AVG software in your Windows Control Panel, you need to remove it.

Maybe you are looking for

  • I can't the elements removed from the Awesome Bar

    For the latest versions of Firefox, I always wanting to old URLS will appear in the Awesome bar. No matter what I try to delete them, they do not disappear. I did everything suggested (delete history, erase cache, reload with a version of Firefox, et

  • Flickering window Chrome after reboot

    Earlier, I restarted my Mac (Yosemite 10.10.5) to install an update from Microsoft.   Apparently, the following was also installed yesterday: XProtectPlistConfigData: Versjon: 1.0 Source: Apple installation Date: 20.05.16, 18.56 Now, the window Chrom

  • I lost "All" my toolbars. How to make a comeback?

    The toolbar only I left on Firefox is the 'personal bar', how come others?And right clicking has no effect. This has happened Just once or twice Today is when the mice dropped on the ground.

  • Folders in hotmail

    Anyone know if there is a way to get folders other than the Inbox, sent, deleted and garbage to replicate to the Bravo with Hotmail? Seems a little ridiculous that this is not available. It worked fine on my OLD phone. Thank you Ken

  • E-mail message from Apple Inc.

    When I send a message via e-mail, the message appears in the account of the receiver as coming from Apple Inc.. Any idea what I need to change to fix this?