How can I disable a user after two month on the inactivity in my application?

I'm looking a parameter to check or query to run in a State, to list all the users connected in the last two months at my request.

Thanks for some tips

Massimo

Hello

You can check the APEX APEX_USER_ACCESS_LOG view

for example query below can give you all the details of the user with their last access date

SELECT LOGIN_NAME, MAX(ACCESS_DATE) latest_access_date
FROM  APEX_USER_ACCESS_LOG
WHERE APPLICATION = :application_id
GROUP BY LOGIN_NAME

You can use it to allow users who have not accessed to the last X days

WITH T AS (SELECT LOGIN_NAME, MAX(ACCESS_DATE) latest_access_date
FROM  APEX_USER_ACCESS_LOG
WHERE APPLICATION = :application_id
GROUP BY LOGIN_NAME)
SELECT T.LOGIN_NAME
FROM T
WHERE T.latest_access_date < TRUNC(SYSDATE) - :X

You can OUTER JOIN this request with the list of users to see who has not accessed to the last x days.

Now, you can install some jobs (using http://docs.oracle.com/cd/E11882_01/appdev.112/e40758/d_sched.htm) to see the list and disable users.

Kind regards

Hari

Tags: Database

Similar Questions

  • How can I disable hierarchical keywording in LR 5?  The preference of the interface for the AutoComplete is turned off and I still get California &gt; United States &gt; country.  I want to just Caliofrnia.

    How can I disable hierarchical keywords in Lightroom?  The preference of the Interface for full Auto is already disabled, but I still get California > United States > North America when all I need is the California.

    You must be signed in order to respond to messages.

    One of the reasons why you can see the hierarchical format for the key words are you have the word 'California' duplicate key in your keyword list.

    Lightroom display these files directly with.< parent-keywords"="" appended="" to="" the="">

    IE California< state="">< country ="" and="" california="">< united="">

    If you re - keyword photos so that they use only one version and then delete it key word duplicate of your keyword list and then she displays just "California".

    Bruce

  • How can I disable these very annoying keys mapped to the F keys. I want normal F keys!

    I play a little my surprise (for me) 4 Gig HP Pvillion g6 powerful i3 laptop (W7 64-bit, integrated :() graphics I am more than happy with it.) HOWEVER! There is one thing that finally pushed now a few minutes ago, and it's shortcut keys of STUPID pre mapped keys f. WHY have buttons F have F BUTTONS DON'T WORK? It is causing me a lot of stress in the world of the imaginary game that I often live and we cannot have just that. Rant on (not a real favorite hangover that I promise you! Just a little Catharsis) Please help oh ye enlightened internet folk!

    EDIT: I should have clarified that I mean keys F # but I have faith in your intelligence to help a friend. Overcome my simple ignorance, and bring me the knowledge of the ancients! Can do you so soon? I wan't to play Far Cry 3 without a hitch

    Seems that HP has made these keys just active in them pressed (nowhere did he clear how long this interval is).
    BUT (and now comes the good news), they can be disabled in the BIOS so that they operate strictly as keys 'F' (page 38):
    "An action key performs an assigned function. The icon on each of the f1 through f4 and f6 keys
    by f12 keys shows the function assigned to this key.
    To use a function key to action, press in and hold the key.
    The main feature of the action is enabled in the factory. You can disable this feature in the configuration utility (BIOS).
    See Using Configuration Utility (BIOS) and the system on page 68 Diagnostics for instructions on opening
    Setup Utility (BIOS) and then follow the instructions at the bottom of the screen. »

    Then, after it is disabled in the BIOS, they only work as 'special' according to Mr. Clement keys, pressing the Fn key in combination with her:
    "To enable the function assigned after deactivation of the key feature of the action, you must press the fn key in.
    combination with the appropriate action button. »

    Here is a link to the manual for more information:
    http://h10032.www1.HP.com/CTG/manual/c03271200.PDF>

    If you still have a problem with her due to the proximity of the Fn key, then I believe that you can turn it off completely by stopping HP Quick Launch in the Task Manager. Test it offline before game to ensure that the judgment it does not affect other functions of the keyboard that you need.
    Game on, my friend!

    SC Tom

  • How can I remove a user name to appear on the list because he's wrong my password added to it.

    I want my user name appears when I start typing, so I don't have to type it every time. But I typed in my password error before that the username has been entered, and now a username with my password appears in the list when I enter the first letter. How can I delete this entry without removing the history of usernames?

    See:

  • PP - How can I disable "split view" when moving clips on the timeline?

    In Premiere Pro, whenever I have move some clips, this split view appears and for some reason that it makes my computer stall for 2 minutes each time. Imagine how long it takes to make a video then!
    The program does not crash, the only thing I can't do when it stalls is to get a preview of the video (reading timeline)

    Nothing happens when I press play, up to 2 minutes later.

    Udklip.PNG

    Many times this error pops up when it starts to work again:

    Udklip2.PNG

    Maybe disable split view will fix it, or maybe there's a more legitimate solution?

    To turn off this display, disable the Composite preview at Trim

    MtD

  • How can I disable groups of tabs? It requires the same tabs to reopen at the next session

    I upgraded to 6.0.1 and experimented with tab groups. Now I can not turn off. It seems to force the same tabs open with the next session. I had (and still have) the warn me when I close the multiple tabs. She replaces this option if I click on the window is closed. Just, it closes the window of firefox and will reopen all the tabs with the next session. This cancels the best feature that firefox has more chrome.

    Please help me to recover my old Firefox...

    Okay, it's stupid, but simple. Go to tools > Options > general. then in the options switch box to "show my windows and tabs from last time" to "show my home page". I entirely agree that tabgroups are pretty useless and the fact that there are already speaks volumes on their apparent worth questions upward around the Mozilla forums, but also the YAnswers about disabling, or its absence.

  • How can I access my user account if I receive the message, the service user profile Service has no connection. User brightness cannot be loaded.

    We have access to our user account for children, but ours is the administrative account.  We tried to access through their account, but it's not accept any administrative password possible to alow access.

    Here is the tutorial that everyone will offer you when you have this problem to logon:

    http://support.Microsoft.com/kb/947215

    I have a little more to add...

    The user profile Service has not the user of the connection failed to load profile

    See if the suite you can get an admin account...

    Go to Safe Mode...

    Restart your computer > immediately and repeatedly pressing the F8 key until you see a black and white screen. The top/down arrow and select Mode safe mode with networking.

    Now, while in safe mode, you perform one of the following?

    1 can connect to your account admin without the error message?
    If so, do. Then do a system restore. Choose a date when you were free to login to your account admin as your restore point.

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    If the system restore does not slove the problem, then use this tutorial

    http://support.Microsoft.com/kb/947215

    2. If you are unable to log in to your account administrator in safe mode, you see another administrator next to your account?
    If so, you are lucky. This is the built-in Administrator account.
    There is, by default, no password.
    It could connect and do system restore by using the link given above.

    If the system restore is not enough, then perform the tutorial even as above:
    http://support.Microsoft.com/kb/947215

    If you can't do or of what precedes, I'm afraid you will have to re - install your Vista.

  • How can I block a user to download files on the web?

    I use Microsoft parental control for a few months, I dig several times to find t somehow I can block the user to download files? Like the way that we have the ability to "Block downloads of files on the web" in Web filtering.

    If this isn't the case, using the parental control of Microsoft, y at - it another way I can prevent users from downloading files?

    BTW, I'm on Windows 7 x 64.

    Hello

    Thanks for posting your question in the Microsoft Community forum.

    We understand that you want to block the user to download files using the parental control. However, please be informed that this is not possible, since it is by design. Family Safety allows you to block downloads of files from the web, but not to download files:

    For more information, you can visit this Wiki link:

    Family Safety: frequently asked Questions

    http://answers.Microsoft.com/en-us/Windows/wiki/windows_other-security/family-safety-frequently-asked-questions/5672f7b2-e3c0-498a-9a6c-c9cab39f68e5

    Hope this information helps. If you need help with Windows, let us know and will be happy to help you.

  • How can I start "Motion tween" after 24 frames in the timeline?

    Hello

    I want that my object to animate using motion tween in the timeline. I did it. But it begins to animate to image1. Instead I would like to start the animation of the 25 frame. I don't want anything to liven up to 24 images. How can I do?

    Help, please.

    Hello

    Unfortunately, you have not added details as to how you have configured your flash project.

    I assume that you have created a MovieClip and placed on frame 1. The MC that you created has its own timeline.

    So, if you have placed the MC on frame 1 of your time line of root, it will start playing immediately.

    If what you have done, is as above, you need to change your MC, properties of chart in box 1, so it shows just the first frame of this MC.

    In frame 24 of your main timeline, create another instance of the same MC and change its properties to MovieClip. Also add a stop() in frame 24 image, so your main timeline stops Syrians and you can listen to the MC there.

    Hope that helps

  • How can I disable popup system after clicking on add to cart

    Can you get it someone please let me know how I can disable the system pop-up message which reads «1 item (s) added to cart»

    What I want to do is to change the style of the message popup to something little alittle easier for eyes and possibly, some links "continue shopping" + "go to cart".

    Thank you

    Hello

    It is a browser based launched the Script alert and integrated in the BC basic features where its function also manages stock controls and much more.

    You need to replace the custom alert - it is javacript stuff and you can google that.

    Nothing more you need to rebuild and to reproduce with more BC script features.

  • How can I disable creative cloud after than windows?

    Hello everyone,

    Ive following problem that crashed my second PC and restored Windows itself. Unfortunately he deleted half of the creative cloud programms. My problem now is that I can't reinsert Photoshop and Aftereffects because he always says that all permits are already in use. So is it possible to delet ore disconnect me a license without beeing installed program more.

    I would be really grateful for any help.

    See you soon

    Forster F

    Hi Forster,

    Welcome to the Adobe Forum,

    The CC has been activated twice, so please proceed as described above, you will be launching & try sign in after install, you will be asked to turn off from the previous machine.

    There will be an option to turn it off there, too, if your previous machine are accessible United Nations so you can choose the option to turn off of here & now it will allow to sign & activate.

    Please let us know if it worked.

    Kind regards

    Baudier

  • How can I disable a movieclip after clicking on it?

    Hello

    I am very new to Flash, and I would appreciate your help with my Web site. I use Adobe Flash CS5, Action Script 3.0, and I want to disable my movieclip "House" once it has been clicked, so that there is a certain color or design which cannot be clicked more. I have already created the _up, _down, anime_survol, _disabled in the 'home' timeline, and I don't know what to do after that... I tried home.enabled = false, but it is already disabled when I go to it. Here is my code so far:

    Stop();

    Home.Stop ();

    home.buttonMode = true;

    home.addEventListener (MouseEvent.CLICK, click_home);

    function click_home (e): void {}

    gotoAndStop ("home");

    }

    Thank you very much and hope to hear from someone

    Cedrik-

    the code that I have shown will be your non-fonction button after top.  If you want your button also don't like it is clickable, use:

    Stop();

    Home.Stop ();

    home.buttonMode = true;

    home.addEventListener (MouseEvent.CLICK, click_home);

    function click_home (e): void {}

    home.removeEventListener( MouseEvent.CLICK, click_home );home.buttonMode=false;home.alpha=.5
    

    gotoAndStop ("home");

    }

  • How can I add a sentence of two words to the index

    I am trying to speed up the process of adding the Latin names of plants and animals to an index using Indesign CS4. It's about two sentences of Word (kind + species) that must be put in the level 1 heading and level 2 of the theme of the new dialog boxes reference page (Index). [Using Ctrl 7 to call puts her just everything that is selected in Topic1 in dialogue and using the keys Shift + Ctrl + Alt +] adds an index entry of "own name" (name, first name) is not that good. When the information has been entered, a simple nested index can be produced, sorted by type and species.

    I'm used to programming using vb in MS Office, but I'm totally new to javascript and it took two days to reach this day. The first problem is that if the user only places an insertion point in the first word (like), I can't understand how to move to the second word (species) to save it to a variable.

    So I have:

    var myTopic1 = ""; heading level 1, which is of type

    var myTopic2 = ""; level 2, i.e. species theme

    myIP = app.selection [0];

    myTopic1 = myIP.words [0] .silence;

    It works on an insertion point in any word, or if a sentence is highlighted will be the first word.

    Is there a simple way to copy the second word after the insertion point to myTopic2? I have tried different methods but can't get anything to work. I thought it would be a simple matter of adding 1 to the index of the paragraph containing or history.

    I've got round this in a very long-winded way by asking the user to choose the kind integer + chain species, then work the position of dividing it space and rebuild the genus and the species character by character:

    var myString = ""; selected by the user string: kind + species

    myString = myIP.contents

    myStringlen = myIP.contents.length

    var xposn = myString.indexOf(""); gives the character space (first) within the selected channel number

    var yposn = 0; beginning of the string

    myTopic1 = myString.charAt (yposn);

    While (yposn < (xposn-1))

    {

    myTopic1 = myTopic1 + myString.charAt (yposn + 1);

    yposn ++;

    }

    While (xposn < myStringlen)

    {

    myTopic2 = myTopic2 + myString.charAt (xposn + 1);

    xposn ++;

    }

    show results:

    Alert ("Topic1 =" + myTopic1 + ".") Section 2 = "+ myTopic2);

    If at this point, I need to understand how to call the new dialog box reference page with informed Topic1 and section 2? I would like to than the ability to override the format of the page reference 'Number of Style Override' characters, if prefer to conclude the script with the left side of the open dialog box. Is it possible using script, or do I need a custom dialog box? Moreover, it would also be good just automatically save Topic1 and Topic2 and insert the mark of index at the point of selection without invoking the dialog boxes. I am really struggling to get anywhere with this, can someone please help! Thank you very much. Sorry for the long post.

    Jump, which is horribly slow in most cases (i.e., the text with more than a few thousand characters).

    It is much faster. "The index" of a Word is its offset from the beginning of its history. Similarly, the 'index' of its container, paragraph is the offset from the first character in the paragraph. Subtract, and you have the position of the word in this paragraph. Knowing that and the length of the original Word and adding a '1' for the next space, you can use 'fit' to enter the right word after that:

    word1 = app.selection[0].words[0].contents;
    par = app.selection[0].paragraphs[0];
    word2 = par.contents.substr(app.selection[0].words[0].index-par.words[0].index+word1.length+1).match(/\w+/);
    alert ('['+word1+' '+word2+']');
    
  • How can I disable those ANNOYING rattling when I use the keyboard of my Samsung Galaxy Mega?

    Please help me! I can't understand how to do this, and these clicking noises are driving me crazy

    brosa5080 wrote:
    Please help me! I can't understand how to do this, and these clicking noises are driving me crazy

    Maybe ask in a Samsung forum might be a better idea?

    WyreNut

  • How can I disable my driver to disconnect me from the internet?

    HP G72 laptop product # XN517UA #ABA

    Windows 7 64 bit

    no error but the difficulty to keep the internet connection. I have T-mobile web connector and went wrong w/t-mobile, and they claimed that my driver is disconnect the internet connection.

    I made no changes to my laptop and all udaptes are up to date.

    deeR504 wrote:

    When I use a LAN connection I don't waste connection. It is only when I use my web connector that I lose the connection online. I just need to know if it's my web connector or the drivers. As I've mentioned before that I called T-monbile and they say this isn't the web connector because it has no problem connecting to the internet, it's the fact that he cannot keep a bc driver connection disables the web connector.

    I have the T-mobile 4 g rocket

    I have Windows 7 Home Premium version 6.1 (64-bit)

    If there is no connectivity problem with the connection to the local network, then the problem is most likely to be the firmware / software driver and/or web interface provided by T-Mobile with their dongle.

    Have you been to the T-Mobile forums to see if others are having problems?

    I found that other people know the firmware problems and connectivity. You are not alone. If your normal edge wireless works very well and the local network connection (wired) has no problems T-Mobile dongle is the problem. The dongle come with a warranty.

Maybe you are looking for

  • Apple Watch not work with iOS 10

    Hello I currently have an iPhone 6 more, will the iPhone Plus 7 Friday, but I decided to go and download iOS10 on my iPhone 6 Plus.  After that, I noticed that my Apple Watch was no longer in harmony with my iPhone.  I did several automatic reboots a

  • Recovery disk not recognize in my Satellite M70

    Hello I own a Toshiba Satellite M70. Recently, I installed Ubuntu and in the process of formatting my drive hard completely ended.I tried to run the recovery disk I got with the computer I want to run Windows XP on it again. However, the recovery dis

  • Current inaccurate measurement using Shunt resistance

    Hello I try to measure the power of a pressure sensor 4-20 my using the PCI - 6251 DAQ and 249 Ohm shunt resistance.  The measurements taken by the DAQ card are slightly lower than expected.  Performed by a digital multimeter measures appear to be mo

  • How to identify the T400 high Nit display

    Can someone tell me how to identify high-Nit display of T400? On ebay, I find some LTN141AT09, but it seems to be that there is more then one version. concerning

  • Stop error SCSI/RAID Host Controller Windows 7 upgrade

    Hey, I hope someone can help me here. I get the following error message when you try to upgrade to Windows 7 Home Premium 64-bit Vista Home Premium 64-bit: The upgrade of Windows will affect the following programs or devices: These devices may not wo