Simple trigger to allow users to log on at certain times

I am trying to create a trigger that will allow certain users to only log into the database between 12am - 4 am.
Can I assign a trigger to a user or to a role or how do I parse it out. I dont think I have this trigger just right yet...
Or can this be set in the database it self? I looked at the user accounts, profiles, roles and dont see anything about connection times.
Oracle 10.2.0.4
I want to create a trigger that will only allow the user to log into the database between 12 and 4 am.
My next question is can I assign this trigger to the role that the user has been assigned to?
I have pulled some similar code that I would like to use but do not know how to modify it to be either assigned to a user: npq or to the role ntq_ro.
create or replace trigger logon_time after logon on database
begin
if to_char(sysdate,'HH24') between 4 and 24
then
raise_application_error(-20001,'Not allowed to logon database during this time');
end if;
end
/

yes, I would love to all by command line...
Bere in mind I change to to test...
SQL> CREATE OR REPLACE TRIGGER "SYS".LOGON_TIME_RESTRICTION_NPQ AFTER
2 LOGON ON DATABASE
3 BEGIN
4 if to_char(sysdate,'HH24') between '14' and '16' AND USER='NPQ' THEN
5 raise_application_error(-20001,'Not allowed to logon database during this time');
6 end if;
7 end;
8 /
Trigger created.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@kali ~]$ sqlplus
SQL*Plus: Release 10.2.0.4.0 - Production on Mon Jan 10 14:41:02 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Enter user-name: npq
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Alert log triggered errors:
Mon Jan 10 14:41:10 2011
Errors in file /u01/app/oracle/admin/NASARPT/udump/nasarpt_ora_17508.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-20001: Not allowed to logon database during this time
ORA-06512: at line 3
/u01/app/oracle/admin/NASARPT/udump/nasarpt_ora_17508.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1
System name: Linux
Node name: kali.mtsallstream.com
Release: 2.6.18-164.6.1.el5
Version: #1 SMP Tue Oct 27 11:28:30 EDT 2009
Machine: x86_64
Instance name: NASARPT
Redo thread mounted by this instance: 1
Oracle process number: 31
Unix process pid: 17508, image: [email protected] (TNS V1-V3)
*** ACTION NAME:() 2011-01-10 14:41:10.293
*** MODULE NAME:([email protected] (TNS V1-V3)) 2011-01-10 14:41:10.293
*** SERVICE NAME:(SYS$USERS) 2011-01-10 14:41:10.293
*** SESSION ID:(54.49496) 2011-01-10 14:41:10.293
Skipped error 604 during the execution of SYS.LOGON_TIME_RESTRICTION_NPQ
*** 2011-01-10 14:41:10.293
ksedmp: internal or fatal error
ORA-00604: error occurred at recursive SQL level 1
ORA-20001: Not allowed to logon database during this time
ORA-06512: at line 3
I also tried the setting for the to_num but it would not even compile:
SQL> CREATE OR REPLACE TRIGGER "SYS".LOGON_TIME_RESTRICTION_NPQ AFTER LOGON ON DATABASE
2 BEGIN
3 if to_num(to_char(sysdate,'hh24miss')) between '000001' and '040000' AND USER='NPQ' then
4 raise_application_error(-20001,'Not allowed to logon database during this time');
5 end if;
6 end;
7 /
Warning: Trigger created with compilation errors.
SQL>

Similar Messages

  • Allowing user to run an optional test

    I'm new to Teststand and Labview. Can anyone tell me a simple way for allowing users to run an optional test sequence at the end of another test sequence. I've played around with the message popup step, hoping that I could just call the optional sequence if the operator presses an 'OK' button or end the original test sequence if the operator presses a 'CANCEL' button, but haven't had much luck so far.
    Thanks in advance!

    Hi,
    Make use of the Precondition, an example of this is the Computer Motherboard Test.seq in the TestStand\examples\demo folder.
    This has diagnostics test sequence which it runs if any of the test steps fail.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Allow user to take survey multiple times, but do not allow the same response

    I have a requirement to allow users to take a survey multiple times, however, the answers to the survey can not be the same.
    So when a user takes the survey the first time they can take a second and a third but not have the same response.
    Using SharePoint 2007
    Thanks in advance

    As you denied yourself the Administration rights you cannot get it back in this account of course. Look to the right on this page and check the threads in "More like this".

  • My MacBook Pro will not allow me to log in at the user screen. It sits frozen and will not prompt me to input my password.

    My MacBook Pro will not allow me to log in at the user screen. It sits frozen and will not prompt me to input my password.

    If the normal restart doesn't work, and you restart on the recovery hard drive, from the choices of things to do window that appears, select Terminal, and in the Terminal window type: resetpassword and then press enter.  You will have a window with the users to choose from to reset the password.  Select the one you want and you will be able to reset the password, double entry of course.

  • My screen will not allow me to log in " User profile servc failed the log "

    my screen will not allow me to log in it states " User profile servce failed the log in. User profile can not load"
    This question was solved.
    View Solution.

    Hi,
    You could try the following.
    Shut down the notebook.  Tap away at f8 as you start the notebook to enter Windows Recovery Console.  Use the arrow keys to select Safe Mode and hit enter.  If windows will load in this mode, from the Start Menu, click All Programs, click Accessories, click System Tools and launch System Restore.  Pick a restore point at least 24 hours before the log-on issue and then proceed with the restore process.  When complete, Windows will reboot as normal so check if you can now log in correctly.
    Another option if the above does not help is as follows.
    Shut down the notebook.  Tap away at f8 as you start the notebook to enter Windows Recovery Console.  Use the arrow keys to select 'Start Using Last Known Good Configuration' and hit enter.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • DC on VM Restored after crash - Does Not allow PCs to Join Domain, or Domain Users to Log in

    We currently had a RAID array crash and rebuilt our main server which housed VMs for our Web and DC.
    The main server was restored from a bare-metal backup from 6 months prior to the latest backup of the VMs (not sure if pertinent)
    Since the Restore, Domain computers cannot access file shares on the main server or VMs - "unspecified network error
    0x80004005
    Removed the main server from the Domain to re-join it due to some issues with logging in (even with a Domain Admin account) - Found that any PC removed from the domain was no longer able
    to rejoin - Receive (Network path was not found error)
    Domain Users cannot log in to their computers - Error reads "The trust relationship between this computer and the domain has been lost" - Domain Admin accounts can log in without
    problem.
    Have been working on it for two weeks and tried most of the things that I have found in others questions for related 
    DCDIAG results (run on DC VM) - More errors appear if run on the Server (Locator DcGetDcName(GC_Server_Required) call failed, error 1722 (same for PDC, TIME, GOOD_TIME, and KDC)
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       Home Server = DC1
       * Identified AD Forest. 
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\DC1
          Starting test: Connectivity
             ......................... DC1 passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\DC1
          Starting test: Advertising
             ......................... DC1 passed test Advertising
          Starting test: FrsEvent
             There are warning or error events within the last 24 hours after the
             SYSVOL has been shared.  Failing SYSVOL replication problems may cause
             Group Policy problems. 
             ......................... DC1 failed test FrsEvent
          Starting test: DFSREvent
             ......................... DC1 passed test DFSREvent
          Starting test: SysVolCheck
             ......................... DC1 passed test SysVolCheck
          Starting test: KccEvent
             ......................... DC1 passed test KccEvent
          Starting test: KnowsOfRoleHolders
             ......................... DC1 passed test KnowsOfRoleHolders
          Starting test: MachineAccount
             ......................... DC1 passed test MachineAccount
          Starting test: NCSecDesc
             ......................... DC1 passed test NCSecDesc
          Starting test: NetLogons
             ......................... DC1 passed test NetLogons
          Starting test: ObjectsReplicated
             ......................... DC1 passed test ObjectsReplicated
          Starting test: Replications
             ......................... DC1 passed test Replications
          Starting test: RidManager
             ......................... DC1 passed test RidManager
          Starting test: Services
             ......................... DC1 passed test Services
          Starting test: SystemLog
             A warning event occurred.  EventID: 0x80040022
                Time Generated: 01/15/2015   19:32:28
                Event String:
                The driver disabled the write cache on device \Device\Harddisk0\DR0.
             A warning event occurred.  EventID: 0x80040022
                Time Generated: 01/15/2015   19:32:28
                Event String:
                The driver disabled the write cache on device \Device\Harddisk0\DR0.
             A warning event occurred.  EventID: 0x80040022
                Time Generated: 01/15/2015   19:32:28
                Event String:
                The driver disabled the write cache on device \Device\Harddisk0\DR0.
             A warning event occurred.  EventID: 0x000003F6
                Time Generated: 01/15/2015   19:32:52
                Event String:
                Name resolution for the name DC1.Home.xxx.com timed out after none of the configured DNS servers responded.
             An error event occurred.  EventID: 0xC00038D6
                Time Generated: 01/15/2015   19:33:25
                Event String:
                The DFS Namespace service could not initialize cross forest trust information on this domain controller, but it will periodically retry the operation. The return code is in the record data.
             A warning event occurred.  EventID: 0x00000420
                Time Generated: 01/15/2015   19:33:29
                Event String:
                The DHCP service has detected that it is running on a DC and has no credentials configured for use with Dynamic DNS registrations initiated by the DHCP service.   This is not a recommended security configuration.
     Credentials for Dynamic DNS registrations may be configured using the command line "netsh dhcp server set dnscredentials" or via the DHCP Administrative tool.
             A warning event occurred.  EventID: 0x00002724
                Time Generated: 01/15/2015   19:33:33
                Event String:
                This computer has at least one dynamically assigned IPv6 address.For reliable DHCPv6 server operation, you should use only static IPv6 addresses.
             A warning event occurred.  EventID: 0x000727AA
                Time Generated: 01/15/2015   19:36:34
                Event String:
                The WinRM service failed to create the following SPNs: WSMAN/DC1.Home.xxx.com; WSMAN/DC1. 
             A warning event occurred.  EventID: 0x00001695
                Time Generated: 01/15/2015   19:59:52
                Event String:
                Dynamic registration or deletion of one or more DNS records associated with DNS domain 'Home.xxx.com.' failed.  These records are used by other computers to locate this server as a domain controller (if the specified
    domain is an Active Directory domain) or as an LDAP server (if the specified domain is an application partition).  
             A warning event occurred.  EventID: 0x00001695
                Time Generated: 01/15/2015   19:59:52
                Event String:
                Dynamic registration or deletion of one or more DNS records associated with DNS domain 'DomainDnsZones.Home.xxx.com.' failed.  These records are used by other computers to locate this server as a domain controller
    (if the specified domain is an Active Directory domain) or as an LDAP server (if the specified domain is an application partition).  
             A warning event occurred.  EventID: 0x00001695
                Time Generated: 01/15/2015   19:59:52
                Event String:
                Dynamic registration or deletion of one or more DNS records associated with DNS domain 'ForestDnsZones.Home.xxx.com.' failed.  These records are used by other computers to locate this server as a domain controller
    (if the specified domain is an Active Directory domain) or as an LDAP server (if the specified domain is an application partition).  
             A warning event occurred.  EventID: 0x00000420
                Time Generated: 01/15/2015   20:20:21
                Event String:
                The DHCP service has detected that it is running on a DC and has no credentials configured for use with Dynamic DNS registrations initiated by the DHCP service.   This is not a recommended security configuration.
     Credentials for Dynamic DNS registrations may be configured using the command line "netsh dhcp server set dnscredentials" or via the DHCP Administrative tool.
             A warning event occurred.  EventID: 0x00002724
                Time Generated: 01/15/2015   20:20:25
                Event String:
                This computer has at least one dynamically assigned IPv6 address.For reliable DHCPv6 server operation, you should use only static IPv6 addresses.
             ......................... DC1 failed test SystemLog
          Starting test: VerifyReferences
             ......................... DC1 passed test VerifyReferences
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test
             CrossRefValidation
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test
             CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
       Running partition tests on : Home
          Starting test: CheckSDRefDom
             ......................... Home passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Home passed test CrossRefValidation
       Running enterprise tests on : Home.xxx.com
          Starting test: LocatorCheck
             ......................... Home.xxx.com passed test LocatorCheck
          Starting test: Intersite
             ......................... Home.xxx.com passed test Intersite
    All PCs can ping the DC, and get name resolution.  Checked IPs, DNS on both WS and DC (DC points to its own IP address with no other DNS), Forwarders for DNS appear to be working,
    as normal DNS name resolution and internet access works on all PCs.  Have tried disabling NIC card and installing another NIC.  All searches keep pointing back at the same things that I have tried.  I feel like I am missing something stupid.
     Please help

    The backup you used is too old. That is why your clients are experiencing trust relationship failures: the computer passwords are no longer matching so they are failing to connect to AD. You need to disjoin and join them again.
    I understand that this is the only DC you have so please make sure that the DC is not multihomed, that it points to its private IP address as primary DNS server and 127.0.0.1 as secondary one. Also, you might need to rebuild your SYSVOL folder if you keep
    getting the SYSVOL errors: https://support.microsoft.com/kb/315457?wa=wsignin1.0
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Help! itunes 12 wont allow users to redownload past purchases all at once like it used to. Is there a way around this?

    Help! For some reason i-tunes 12 wont allow users to re-download past purchases all at once like it used to. Is there a way around this? It will only allow you to download what it calls "Recent Purchases" which in my case only would allow 250 items. I know i have at least 700 tracks if not substantially more possibly over 2000 tracks but I can't be sure. I don't know how to find that information, I've looked in itunes under the my account past purchases but id doesn't tell you how many total songs you have purchased or any relevant details. It only shows you small chunks of receipts by date but no total tracks purchased in an easy to view snapshot that I could find. The current support page says that if you have more then 2000 songs the "ALL SONGS" tab now listed above the left pan with all your purchased artists, will change to "Recent Purchases". IF apple changed this on purpose to stop user from downloading there entire library to cut down on bandwidth they have really upset me this time. At present the only way I can download all past purchases is by selecting each artist listed in the left pan one by one selecting the "Download ALL" button at the bottom right corner of the page at which point I have to input my apple password each time, which really slows things down. I have hundreds of artists and if this is the only way for customers to re-download there entire library this is ridiculous and really unnecessary to put customers through this kind hassle just to re-download all there past purchases when the whole idea of i-cloud is to make downloading and using your music simple, quick, and convenient on multiple devices. I know the old saying "your responsible for backing up your data" yeah I know that and I've been doing that for years when no one really should ever have had too. There is no reason a service that sells music digitally should not allow customers to be able to re download content purchased on there service regardless of the fact that people should just back up anyway as an extra precaution. Well sometimes backups fail like in my case and I have to re-download. No wonder paid subscription plans are so popular. You don't have to deal with any of these issues. I can only hope this is some kind of oversight by apple and will be fixed soon. Can anyone offer a quicker solution or any information about this issue? I would greatly appreciate any helpful assistance.
    Again this is for Windwos 8.1 x64 with Itunes 12.0.1.26

    After spending way too much time dealing with this issue myself, I discovered that you can:
    - Within "My Music", select all the songs you need to download (all w/ the cloud icon - use Shift-Click)
    - Right click and select download
    All songs will begin downloading from iCloud

  • CryptAcquireContext failing with ERROR_FILE_NOT_FOUND (2L) when user not logged on Windows 8.1

    I am having a hard time migrating a C++ CryptoAPI-based application that currently runs on Windows Server 2008 to Windows 8.1. The scenario is:
    This application is eventually triggered by WatchDog.exe, which in its turn is triggered when the computer is started by Windows' Task Scheduler.
    Task Scheduler uses the following rules to start the WatchDog.exe:
    A Administrator User Account;
    Run Whether user is logged on or not;
    UNCHECKED: Do not store password. The task will only have access to local resources;
    Run with Highest Privileges;
    Configure for Win 8.1;
    Triggered at system startup.
    The server sits there, nobody logged, until in a given scenario WatchDog.exe starts the application. Application log confirms that the owner of the process (GetUserName)
    is the very same user Task Scheduler used to trigger WatchDog.exe.
    It turns out that this application works fine in Windows Server 2008, but in windows 8.1 a call to CryptAcquireContext fails
    with return code ERROR_FILE_NOT_FOUND (2L). The odd thing is that the application will NOT fail if, when started, the user is physically logged
    on the machine, although it was not the user who started the application manually.
    I took a look at the documentation and
    found:
    "The profile of the user is not loaded and cannot be found. This happens when the application impersonates a user, for example, the IUSR_ComputerName account."
    I had never heard of impersonification, so I made a research and found the APIs LogonUser,ImpersonateLoggedOnUser and RevertToSelf.
    I then updated the application in this way:
    HANDLE hToken;
    if (! LogonUser(L"admin", L".", L"XXXXXXXX", LOGON32_LOGON_BATCH, LOGON32_PROVIDER_DEFAULT, &hToken))
    logger->log (_T("Error logging on."));
    else
    logger->log (PMLOG_LEVEL_TRACE, _T("Logged on."));
    if (! ImpersonateLoggedOnUser(hToken))
    logger->log (_T("Error impersonating."));
    else
    logger->log (_T("Impersonated."));
    err = XXXXXXXXX(); // calls function which will execute CryptAcquireContext
    if (! RevertToSelf())
    logger->log (_T("Error reverting."));
    else
    logger->log (_T("Reverted."));
    Excerpt with the call to CryptAcquireContext:
    // Get the handle to the default provider.
    if(! CryptAcquireContext(&hCryptProv, cryptContainerName, MS_ENHANCED_PROV, PROV_RSA_FULL, 0))
    DWORD e = GetLastError();
    _stprintf_s (logMsg, 1000, _T("Error %ld acquiring cryptographic provider."), e);
    cRSALogger->log (logMsg);
    return ERR_CCRYPT_NO_KEY_CONTAINER;
    cRSALogger->log (_T("Cryptographic provider acquired."));
    As the result, I got the log:
    [2015/01/08 20:53:25-TRACE] Logged on.
    [2015/01/08 20:53:25-TRACE] Impersonated.
    [2015/01/08 20:53:26-ERROR] Error 2 acquiring cryptographic provider.
    [2015/01/08 20:53:26-TRACE] Reverted.
    That seems to show that impersonation is working properly, but still I get Error 2 (ERROR_FILE_NOT_FOUND) on CryptAcquireContext.
    Summary:
    On Windows Server 2008, the very same application runs properly even without the calls to LogonUser/Impersonate/Revert.
    On Windows 8.1, the application, with or without the calls to LogonUser/Impersonate/Revert, will only work properly if the user is logged on (which
    is not acceptable).
    Any thoughts where I can run to in order to get this working on windows 8.1?
    Thank in advance,
    Dan

    There are a couple of issues.
    Based on the parameters being used in CryptAcquireContext().  A profile needs to be loaded and your app has to be running as the same user who created the keyset. (which is why it works when a user is logged on Windows 8.1) Also, impersonation
    does not load your user profile, you need to call LoadUserProfile().  It seems like you should be using a machine keyset for your scenario if you want to do this when nobody is logged on.
    Take a look at the following KB article for more information.
    https://support.microsoft.com/kb/238187?wa=wsignin1.0
    thanks
    Frank K [MSFT]

  • Copy select value in the textfield from LOV and allow user to edit it

    Hi,
    I have a datablock with 20 records and each record has comments (say field_comments) fields. I would like to allow user to choose predefined comments populated from LOV (say lov_comments) and to append some extra comments after they choose the value from LOV.
    I have created a LOV and added Return type “field_comments” in the column mapping properties. When user clicks on a button, LOV opens up. They select the value from the LOV and the value goes to “field_comment” field. The problem with this approach, user can’t add their comment after selecting from LOV.
    I tried this way too. I created another non-visible textbox (say dummy). In the LOV, I added “dummy” field as returntype. In the dummy field, I have created “POST-CHANGE” trigger which basically says :block. field_comments = :block. Dummy.
    But, the user has to click on other field to view the selected value from the LOV. The values in the “field_comments” is not updated as soon as user click on “OK” button in the LOV.
    I would appreciate it if somebody could give me some input and help to solve my issue. Thank you for your help.
    Thank.

    Well, I tried exactly what you posted and it allowed me to SELECT from LOV and then CHANGE/APPEND new text in front of returned value in the field. It saved to the database and queried without any problems.
    Is your item allowed to INSERT/UPDATE ? If not, then set "Update/Insert Allowed" properties to Yes and attach your LOV to the item and set "Validate from list" to No.
    You may also see if you have any validation being performed on WHEN-VALIDATE-ITEM or POST-CHANGE trigger which will fail since you are editing the values populated from LOV.
    Hope it helps!

  • What's the best way to check whether a user is logged in or not?

    I have a question about basic session handling.
    I'm running Tomcat 5.0.30 and have a web application where users can register with a username and password, and then log into a "member site".
    What is the best way of making sure that a user actually has logged in or not?
    What I've done in previous applications I've made is that I've just put a simple variable into the users session after he has successfully entered his password (i.e. Boolean loggedIn=true). Then I just test if this flag is true to grant him access to the member site. Is that a smart way of doing it?
    Are there any libraries I can use which handles sessions for me in a secure way?
    All comments and suggestions are appreciated!

    Maintain a flag using session attributes it to one when the user is logs in set it to value.... and change set it zero or invalidate that session... when the user is logged out...
    use something like this while user had logged in
    session.setAttribute("flag",<unique_number>);
    for checking whether the user had logged in or not...
    if(Integer.parseInt(session.getAttribute("flag").toString())=!<unique_number>){
    out.println("The session had expired");
    out.close();
    }

  • Only One Mobile User can Log In to Laptop

    I have a network account on my Mac Book Pro. I can log in no problem, access everything on the network, etc. but no one else can log in to this particular laptop. All of the other users can log into each other's identical Mac Book Pros, my account included. I have checked in my MBP's System Preferences > Accounts and the "Allow network users to login to this computer" checkbox is checked. The PDC is Leopard 10.5.6 running Open Directory.
    When one of the other network accounts tries to log in to my computer we get the following error:
    You are unable to login to the user account (username) at this time. Logging in to the account failed because of an error.
    I have googled that error but nothing seems to apply to this situation. Most of the postings found here and on the web are authenticating against Active Directory, and the assumption seems to be no one can log in, not just select accounts.
    I've done plenty of searching here and on Google but the description of the problem is hard to summarize so I'm posting my own question. Thank you in advance for any information you can provide.

    Is this a second hand phone? It sounds like the it is and the previous owner did not disable Activation Lock, the antitheft feature of iOS. If this is the case then the only solution is to get the previous owner to unlock it.

  • Flash app that allows users to create mini animations

    Hi,
    I am fairly new to flash, and was wondering if the community could point me in the right direction for my current project.
    I am looking to build an app that allows end users to draw and save mini animations (simple predetermined shapes that move in 2D).  So far I have a written a app that allows the user to draw a single frame using simple shapes and lines, but I am having some small troubles at this stage, and have not attempted to allow the user to animate or save the drawing.
    If anyone knows of a tutorial or some other resource to put me on the right path I would be very grateful.  I can also share what I have if anyone would be willing to give me some pointers (I am going to assume that as a newbie, my code could use a lot of improvement).
    Regards,
    Robbie Vos

    Hi Andei1,
    Thanks for the input.  I figured that the save functionality would be a little difficult. 
    However, if I can get the basic app going (allowing users to create mini animations) I think I should be able to get save going with some (ok, alot) of effort.
    Regards,
    Robbie Vos

  • List of users who logged into database

    Hi All.
    I want to know the list of users who logged in to database and the list of users for whom the password authentication is failed.
    I think we can get the logged in users information from v$session but i am trying to find the users list who failed to log in to the database with password authentication failure.
    Please help me...
    Thanks & Regards,
    Rajesh Amathi

    Hi,
    I suggest use trigger on system logon event. This is for general situation.
    Ex:
    create table user_log
    user_id varchar2(30),
    session_id number(8),
    host varchar2(30),
    last_program varchar2(48),
    last_action varchar2(32),
    last_module varchar2(32),
    logon_day date,
    logon_time varchar2(10),
    logoff_day date,
    logoff_time varchar2(10),
    elapsed_minutes number(8)
    create or replace trigger logon_audit_trigger
    AFTER LOGON ON DATABASE
    BEGIN
    insert into user_log values(
    user,
    sys_context('USERENV','SESSIONID'),
    sys_context('USERENV','HOST'),
    null,
    null,
    null,
    sysdate,
    to_char(sysdate, 'hh24:mi:ss'),
    null,
    null,
    null
    END;
    For unsuccessful logons:
    CREATE TABLE connection_audit (login_date DATE, user_name VARCHAR2(30));
    -- trigger to trap unsuccessful logons
    CREATE OR REPLACE TRIGGER logon_failures
    AFTER SERVERERROR
    ON DATABASE
    BEGIN
    IF (IS_SERVERERROR(1017)) THEN
    INSERT INTO connection_audit (login_date, user_name) VALUES(SYSDATE, 'ORA-1017');
    END IF;
    END logon_failures;
    Please refer for more several combination: http://psoug.org/reference/system_trigger.html
    Edited by: Ulfet Tanriverdiyev on Jul 7, 2010 10:49 PM

  • Can I use Remote Desktop Connection (windows server 2008) even if no user is logged in?

    I'm configuring a Server, running Windows Server 2008, to be accessed remotely. Suppose no user is logged in in the server (if it was just turned
    on, for instance). Can I use the "Remote Desktop Connection" feature to log in remotely in this case? Or is it always necessary to have a user locally logged in, to remotely log in to one of the users available?

    If its a fresh installation, RDM might not work at first.
    1. You need to check firewall and allow Remote Desktop. To be specific, communication to port 3389 TCP
    2. Right click My Computer --> Properties --> Remote tab
    Enable Remote Desktop
    Allow connections to this computer
    Click users and grant the permissions for the users. By default, Administrators do have the permission. An also, the users who are members of the 'Remote Desktop Users' security group also have the permission

  • [Forum FAQ] Group Policy Preferences Scheduled Tasks Item not working when the option Run whether user is logged on or not is selected

    Scenario:
    We use one of the following Group Policy Preferences Scheduled Tasks item to deploy a task to clients:
    Computer Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Scheduled Task (At least Windows 7)
    Computer Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Immediate Task (At least Windows 7)
    User Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Scheduled Task (At least Windows 7)
    User Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Immediate Task (At least Windows 7)
    (Note that on some platforms, "At least Windows 7" is replaced with "Windows Vista and later.")
    After designating a user account to run the task, we select “Run whether user is logged on or not” option, and “The Do not store password…”
    check box is automatically grayed out (See Figure 1).
    Figure 1
    After finishing configuring the task item, on a client, we run command
    gpupdate/force to forcefully update group policy. However, on the client, when we check if the task is listed in Task Scheduler snap-in, the task is not displayed, and when we run
    gpresult/h report.html to collect group policy result for troubleshooting, we see an error as similar as shown in the following figure (Figure 2).
    Figure 2
    Cause:
    To make the scheduled task run whether the user is logged on or not, we need to store the password of the designated user account. However, for the content of the scheduled
    task item is stored in Sysvol where it’s not safe to store passwords, this function has been deprecated.
    Workaround:
    We can run the task with system account
    NT Authority\System, or we can use specific user accounts to run the task when the given user is logged on. (See Figure 3)
    Figure 3
    Reference:
    MS14-025: Vulnerability in Group Policy Preferences could allow elevation of privilege: May 13, 2014
    http://support.microsoft.com/kb/2962486
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hello Everyone,
    Succeeded !!!!!!!
    Even i was struggling with this same Problem to execute a batch via Window scheduler and set the setting to "Run whether the user is logged in or not".
    I tried many time but the batch runs with " Run
    whether user is logged on" and not with "Run
    whether user is logged on or not".
    what i discovered is that there was one mapped drive
    path in my batch file which was not the complete path like y:/AR.qvw actually what i did i changed that map path to the complete path like \\servnamename\d$\AR.qvw and the batch executed successfully with the setting "Run
    whether user is logged on or not"
    The
    conclusion is that check the dependency of the script on external resources because when you check this option "Run
    whether user is logged on or not" It actually conflicts. This my discovery.
    If
    you have any question write me on [email protected]
    Thanks
    & Regards,
    Arun

Maybe you are looking for

  • BSP PDF not working in ECC 6.0

    Hello all, we are upgrading from 4.7 to ECC 6.0 and we have several BSP programs that create pdf reports by converting data from the r/3 spool.  This following code works fine in SAP 4.7 but in ECC 6.0, I am getting the error: 'File does not begin wi

  • With Apple TV 3 is there a photo detail

    I would like to have detail i.e. description, dates, places, etc on my photos in Apple TV 3 slide show, however cannot find setting similar to what is in i-photo. Thanks Norveb

  • My iCloud won't let me sign in on my Macbook Air

    My startup drive is full and I was wondering if I back up my videos, like films and tv shows from my itunes to my iCloud but when I sign into it on system prefrences it says the apple ID and password is invalid which is isnt because I check loads of

  • String to double conversion, but keeping leading zeros?

    Hopefully a simple one for you gurus, double theValue = Double.parseDouble(aString);works fine, but the input string is say, "08.00", then theValue = 8.0, I want 08.00, how would I go about implementing this? tia.

  • Raise statement in a package.

    I am just curious about the raise statement used in plsql. exception when others then dbms_application_info.set_module('', ''); dbms_application_info.set_client_info(''); x_err_code := sqlcode; x_err_message := sqlerrm; log_message(p_message => x_err