Connect only during working hours

Hello people,

Is there a way of to warn the user that connects in the PB after hours of work, for example?

Should this be done with the code? (for example a function)? If you have found something similar, please provide a link.

My db is 9i

Thank you in advance.

Hello

It would be possible with trigger + connection event at the DB level.
Make sure that the user and the time if allow you it, proceed with other session trigger the application error - he'll get session have left.

Example-

CREATE OR REPLACE TRIGGER my_after_logon
AFTER LOGON ON DATABASE
DECLARE
   usernm VARCHAR2(50);
   sid    NUMBER;
   serial NUMBER;
   e_nologon EXCEPTION;
BEGIN
   -- Get username
   SELECT user INTO usernm FROM dual;
   -- Get SID and SERIAL# of this current session
   SELECT sid,serial# INTO sid,serial
      FROM v$session WHERE
audsid=SYS_CONTEXT('userenv','sessionid');
   -- Do we drop this user?
   IF usernm='DROPME' THEN
      RAISE e_nologon;
   END IF;
EXCEPTION
   WHEN e_nologon THEN
      RAISE_APPLICATION_ERROR(-20001,'This user not
allowed to login');
END;
/ 

Your job would add condition to check the hours of work according to your time
-Pounet N

Published by: Pavan Kumar February 22, 2011 16:03

Tags: Database

Similar Questions

  • Can I View Manager 3.0 to 3.1.1 during work hours?

    Hi all

    is it possible to improve my manager view of 3.0 to 3.1.1 during the working hours (08:00-17:00)? The upgrade process breaks the connection between client and server?

    See, View client agent and server connection to view, that we should I update first?

    Thanks in advance.

    hihiy

    I recommend you to upgrade:

    (1) login server

    (2) view composer

    (3) view Agent

    (4) customer view

    There will be some downtime due to the upgrade of services. Also, you will need some downtime to redial when you update the view in the picture Agent parent.

    I hope this helps.

    Jason Silva

    blog: http://silvaecs.com

  • flight simulator 2004 will not load or run during hours of daylight Simulator, will ONLY during the hours of darkness.

    I've been using fs9 since 2005 and did not have any problem of an uninstall and the recharge could not or would not fix so far. I am running Windows XP Professional on a card, Gigabyte, AMD triple core cpu, NVIDIA 9400GT and 2 gig of ram graphics card. Last week so that on a flight simulated Auora Oregon in Livermore, California the program during the final approach simply broke back to high office as if the program had never been launched. The flight was at night and since then, the program will not allow a flight during the day (simulator time) it will allow selection of aircraft, flight planning and will start the loading of the field but will break back into high office again as if the program had not been launched. I rebooted fs9 several times as well as several other pieces of software (ultimate field real extreme weather events, mega city) but the problem persists. NO error messages are given or shown. Other than this problem embarrassing and extremely embarrassing performance of the software is superior. ANY THOUGHTS ON THE ISSUE?

    Hello randams,

    I suggest you do a system restore on your computer, choose a restore point when the Flight Simulator was working fine.

    a. Click Start, type system restore in the search box and then in the list click on the system restore program.

    b. If you are prompted for an administrator password or a confirmation, type your password or click on continue.

    (c) in the System Restore dialog box, click on choose a different restore point and then click Next (choose are the restore time when it was working fine).

    d. in the list of restore points, click a restore point created before you started having the problem, and then click Next.

    e. click Finish.

    If you still have the same problem, I suggest you post your question in the Forum of Flight Simulator, which is a forum dedicated to Flight Simulator:

    http://www.Microsoft.com/products/games/FSInsider/community/pages/default.aspx

    Thank you
    Irfan H, Engineer Support Microsoft Answers. Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to contact Adobe technical support outside of my working hours?

    I'm trying to contact Adobe about a billing issue.  Basically they'll more than the agreed amount and the current price on the UK for Adobe CC site.  I had no warning of a rise in prices, and there is no explanation why.

    Unfortunately, it seems that the only way to contact Adobe support in the United Kingdom today is by phone or live chat, between 09:00 and 17:00 (that is, while I'm at work).  As the subscription of the CC has nothing to do with the work, it would be very difficult to expect from live chat (not sure about our firewall would allow anyway), or for the phone for a response (I can't make calls not working at my office), during working hours.

    How do I just send them a message, or make contact outside working hours?  If the answer is "you can't" then I'm sorry, but it is quite unreasonable and unacceptable service level

    No email address I knew

    Find an answer by a member of staff in a message... hover over their name... you can then click the Message option in the pop-up window to send a message private via the Forum software

    As the person in response #2 in message American trying to subscribe to Thailand

  • Satellite C660 - 115 WLan connection only works when the power cable is connected

    Hello

    A few weeks ago, I bought a Satellite C660-115. I want to surf the internet anywhere in my house without any son/cables.
    On the first day, I had this problem: when I disconnect _power_ cable, the wireless connection will stop working.

    The Web page on my screen will always be there, but a new page loading is a problem.
    It is sometimes useful to recharge (by pressing F5), - sometimes not. It is always useful to "ip address of repair", but not for long.

    The only solution is to atach regardless of how much power the battery has still the power cord.
    When I do, it is no problem whith the connection at all.
    I went back to the store where I bought it, they related to their own wireless network and they have had the same problem after a few minutes. In the shop too attach the power cable solved the problem.

    So the problem must be in my lap top, not in my network (modem or almost).

    Doesn't this all seem familiar, and if so, how can I solve this?

    I hope that my English is understandable, I live in Holland.
    Thanks in advance!

    Here is the solution:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=59177

    Change options for saving for the Wlan in Windows 7 power management

  • Wi-fi/lan connection only works on some devices

    Hello... I have problem with wi-fi/lan connection. I work in a school with about 100 children. The problem is that some computers/phones/laptops can connect normally to a connection wi-fi/lan but some cant. The internet icon actually shows normal connection, but you cannot browse the internet. When this happen the only thing I can do to help temporarily change the mac address of the device with software changing Mac and which usually resolves it. So maybe the problem is that too many devices are connected at the same time or mac addreses interfere with each other or something. I have tried almost everytnig, reseting routers, change the settings of the router, changing channels, etc. of mac filtering... It was working fine before. Maybe you can help. P.S. Sorry for my bad English :)

    Hi Mark,

    I suggest you to ask your question in the TechNet Forums, where we are the support technicians who are well equipped with the knowledge on networks.

    You can check this link to post this request.

    https://social.technet.Microsoft.com/forums/en-us/home?Forum=w7itpronetworking&filter=AllTypes&sort=lastpostdesc

    Please do not hesitate to answer, in the case where you are facing in the future other problems with Windows.

  • Connect only works if I change my preferred language to English

    Since yesterday, that Connect only works if I change my preferred language to English. I can't create meetings if the selected language is Spanish (the language I work with), nor the students have had access with the link I created last week and missed the class.

    But if I change in my profile/change my preferences/language/English, while everything works perfectly. Thank you!!

    We deployed the fix. Please check and let us know if you still having the problem.

  • Photoshop CC was supposed to be able to use without an internet connection if I worked online at least once a month...  I tried to work offline at home after working online for a while. The sign came and said ' no Internet connection /- and the options we

    Photoshop CC was supposed to be able to use without an internet connection if I worked online at least once a month...

    I tried to work offline at home after working online for a while. The sign came and wrote

    «No Internet connection / - and the options have been - try again or continue offline "and I could not work no prob. by choosing «continue in offline mode»

    However, I've used photoshop for a few hours yesterday and I brought my laptop home from my photographer friend to share the work of editing... and I couldn't open Photoshop.

    "The network is not connected TRYagain.

    It was the only option, does not allow me to continue offline...

    You have an idea why I couldn't?

    An Internet connection is required the first time you install and your creative Cloud of license applications.

    You can use the applications in offline mode, but must be online from time to time to validate your software licenses. Please see this link for more details: CC help | Creative cloud / Common Questions

  • I can't manage my account from firefox sign only says: 'work' infinitely. That is what it is?

    Just installed firefox on my server/gamer tyan s7025 and I no longer can synchronize or connect my account on any of my machines. I have 2 laptops, a desktop computer and 4 servers. Is there a limit on the number of devices that I have with this account? When I try to log in, the page only says: 'work' and never connects all continues to say 'work' for as long as I leave. Up to 30 hours before I get aggravated and just shut it down. Help?

    Hi sesmith6464, sorry person tried to answer your question.

    I hope that we will be able to give a good answer or an opinion shortly, in the meantime, thank you to follow this advice that I posted in a thread with a similar topic.

    John99 said

    Personally, I don't like to use Sync or have a good understanding of it, so I hope someone will take the chip at the same time: If you can get a screenshot of the Console, it may be useful. Like giving a Council general Sync: 1/2 hour if he says he's working just in case it solves it self with enough time. What are the elements that you define Sync for syncing? And what you synchronize with another computer or an Android phone for example. Please look at

  • The battery lasts only about 10 hours

    I have my having problems with my Apple Watch and the battery, it lasts only about 10 hours a day, it changed to recentlay don't know why to see screenshot.

    What can I do to solve the problem?

    Thank you

    Carlo

    Hello

    Battery life varies depending on use and other factors.

    During tests, for example, Apple has reached 18 hours of battery life with the next use: 90 time checks, 90 notifications, 45 minutes of usage of the app and a workout of 30 minutes with Apple Watch Bluetooth music playback. Other examples of the life of the battery when using different are available here:

    If your watch is shorter battery life than would suggest examples of Apple that you should expect, try the following steps, which have helped to solve the problems of the battery life for some users:

    • If you have ever used the soft training and/or any third party fitness tracking workouts Records (for example, Strava) apps on your watch, check on your watch to see if there is currently activity paused in the any of these applications. If there is, put an end to this activity of this application on your watch (not on your iPhone).
    • Under earlier versions of the software, some users have reported problems with battery life in the framework using profiles and/or Exchange calendars. If you use an Exchange calendar, can help to one or more of the following:
      • Check your Exchange calendar for all items before today.
      • Delete / delete all old messages related to the prompt calendar Inbox (accept and refuse notifications).
      • Create a rule in your email account Outlook moves future all accept and reject responses as they are received, in a separate e-mail folder that will not sync with your iPhone and Apple Watch.
      • Consult your Exchange calendar to find errors.
    • Finally, it can help to remove all third-party applications on your watch and then monitor the performance of the battery after you have added back, one at a time. It is the same regarding complications of watch face.

    After trying the above steps, if your watch continues discover much shorter battery life than suggest examples of Apple you should expect, contact Apple support (mail service may be available) or make a Genius Bar reservation in order to have your watch checked, if recommended by Apple (warranty, if it qualifies):

    To check your warranty status (the serial number is on the back of your watch):

    More information:

    http://www.Apple.com/watch/battery.html

  • Vista goes to 50% CPU usage and connects the computer for hours after the beginning

    Original title: Vista processor

    Stupid Vista goes to 50% CPU usage and connects the computer for hours after the start.  Cannot run anything with any request of CPU without getting bogged down and crashing.  It is not windows defender, I suspend this service and the machine is ok for another 1/2 hour, them I'm up to 50% of the CPU.  The idle process said Task Manager is > 90%, still indicates 50% CPU usage and the cooling fan looks like a 747 taking off.  Should I just pull the machine and go for Linux, or what?  Cannot run games or whatever it is, totally disgusted with vista of POS and microsoft can it Deep and do not get windows 7, it is probably worse.  Is that all I can turn off to get the same performance than, say, windows 3.1?  It would be preferable to the current situation.  MSCKMA.

    Hello

    What antivirus/antispyware/security products do you have on the machine? Be one you have NEVER
    on this machine, including those you have uninstalled (they leave leftovers behind which can cause
    strange problems).

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

    Follow these steps:

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

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

    After the foregoing:

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135
    How to troubleshoot performance issues in Windows Vista
    http://support.Microsoft.com/kb/950685

    Optimize the performance of Microsoft Windows Vista
    http://support.Microsoft.com/kb/959062
    To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
    Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
    reference (if you have a small box at the bottom left - show for all users, then check that).

    How to check and change Vista startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    A quick check to see that load method 2 is - using MSCONFIG then put a list of
    those here.
    --------------------------------------------------------------------

    Tools that should help you:

    Process Explorer - free - find out what files, key of registry and other objects processes have opened.
    What DLLs they have loaded and more. This exceptionally effective utility will show you even who has
    each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Autoruns - free - see what programs are configured to start automatically when you start your system
    and you log in. Autoruns also shows you the full list of registry and file locations where applications can
    Configure auto-start settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
    Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    There are many excellent free tools from Sysinternals
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

    -Free - WhatsInStartUP this utility displays the list of all applications that are loaded automatically
    When Windows starts. For each request, the following information is displayed: Type of startup (registry/Startup folder), Command - Line String, the product name, Version of the file, the name of the company;
    Location in the registry or the file system and more. It allows you to easily disable or remove unwanted
    a program that runs in your Windows startup.
    http://www.NirSoft.NET/utils/what_run_in_startup.html

    There are many excellent free tools to NirSoft
    http://www.NirSoft.NET/utils/index.html

    Window Watcher - free - do you know what is running on your computer? Maybe not. The window
    Watcher says it all, reporting of any window created by running programs, if the window
    is visible or not.
    http://www.KarenWare.com/PowerTools/ptwinwatch.asp

    Many excellent free tools and an excellent newsletter at Karenware
    http://www.KarenWare.com/

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

    Vista and Windows 7 updated drivers love then here's how update the most important.

    This is my generic how updates of appropriate driver:

    This utility, it is easy see which versions are loaded:

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system.
    For each driver in the list, additional useful information is displayed: load address of the driver,
    Description, version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - device - Graphics Manager - note the brand and complete model
    your video card - double - tab of the driver - write version information. Now, click on update
    Driver (this can do nothing as MS is far behind the certification of drivers) - then right-click.
    Uninstall - REBOOT it will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party
    with their own software and drivers and all other main drivers that you have.

    Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
    Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
    BIOS, Chipset and software updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
    each installation.

    Always check in the Device Manager - drivers tab to be sure the version you actually install
    presents itself. This is because some restore drivers before the most recent is installed (sound card drivers
    in particular that) so to install a driver - reboot - check that it is installed and repeat as
    necessary.

    Repeat to the manufacturers - BTW in the DO NOT RUN THEIR SCANNER device - check
    manually by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver under Windows
    Updates, that leaves about Windows updates but it will not install the drivers that will be generally
    older and cause problems. If updates offers a new driver and then HIDE it (right click on it), then
    get new manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

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

    Refer to these discussions because many more excellent advice however don't forget to check your antivirus
    programs, the main drivers and BIOS update and also solve the problems with the cleanboot method
    first.

    Problems with the overall speed of the system and performance
    http://support.Microsoft.com/GP/slow_windows_performance/en-us

    Performance and Maintenance Tips
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/19e5d6c3-BF07-49ac-a2fa-6718c988f125

    Explorer Windows stopped working
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/6ab02526-5071-4DCC-895F-d90202bad8b3

    Hope these helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Wired connection only connect to 100MB instead of 1 GB

    Lenovo T60p Widescreen; Windows XP; direct connection to the gigabit switch

    Driver cable; 20/04/06; 9.2.50.0 (before the upgrade TVT)

    Wireless driver; Atheros; 12/13/06; 6.02.75 (before the upgrade TVT)

    -It is that this laptop connects only to 100 MB instead of 1 GB via wired connection.

    -Initially thought it was somehow to do with IE, because TI o/s behaved slowly until I killed the process IE

    Rebooted - no difference

    A ran full TVT updates, including BIOS and not restarted - no difference

    Question: what gives with LAN speed 100 MB vs. 1 GB single connection - it worked OK before.

    Note: The things I kept my eye on are Symantec Antivirus; Symantec Firewall; Internet Explorer, but LAN speed is confusing.

    My apologies if this has been resolved somewhere else and please ask questions of me to clarify anything.

    Thank you.

    Paul

    This chalk up to my alter ego - Dopus Maximus.

    I checked the wiring and found that the user has connected a 100MB switch on the wall socket - which is connected to a switch of 1 GB.  This explains the drop in speed.

    Paul

  • I'cant connect. The wheel continues to roll and never connect. Internet works fine.

    I'cant connect. The wheel continues to roll and never connect. Internet works fine.

    If you are still having the same issue, follow the procedure below and check it once.

    N ° 1)

    Temporarily disable anti-virus and firewall.

    Step 2)

    (1) open Control Panel and then click on the network and Internet"" option.

    2) click on Internet options, click on the tab "connections".

    (3) in the 'Connections' tab, select 'LAN' settings, you will be able to view the LAN settings box.

    (4) check the box-"automatically detect settings" and then "uncheck" all the other boxes as "configuration Script auto use", "Use a proxy server," proxy server ", then click on the ok button."

    5) click on the "Network settings" button once again, make sure that "Automatically detect settings" is the only option you select, the window of properties of LAN so clear.

    Step 3)

    Complete all Adobe processes as creative cloud, CoreSync, AAMUpdater... etc from the Task Manager.

    Press Windows button (located between Ctrl and Alt buttons) with the key R together at once, you will get a command window.

    Type below command and press the enter"" key.

    AppData

    It will open the Appdata folder.

    Then navigate to local > Adobe > OOBE. Open the OOBE folder and delete "' Opm.db ' file."

    Once you had deleted Opm.db file, launch Adobe Creative Cloud application and try to connect again.

    Always the same?

    1) go to C:\Windows\System32\drivers\etc and locate the file named Hosts inside the folder etc.

    Copy 2) host of the file to the desktop and open the same with Notepad.

    Check if you can see all Adobe related as entries in the Hosts file 127.0.0.1 activate.adobe.com... etc?

  • Hello everyone, after correctly installed the creative cloud adobe now I want to update, the program also tells me to do. But the problem is that connection only goes up to 2% and stops, every time freaking. Weeks before. What is the problem? And Yes

    Hello everyone, after correctly installed the creative cloud adobe now I want to update, the program also tells me to do. But the problem is that connection only goes up to 2% and stops, every time freaking. Weeks before. What is the problem? And Yes, there is an internet connection

    Good afternoon

    Thank you for your response. It was the right solution, but I missed something in your response. I had to start several times to download / update. Throw/delete (or the procedure of the description) files don't get past not like you described, but I tried something myself and it worked finally.

    But I have to ask: If this problem continues, of course, that a workaround is available, why is this a problem in the software persists, exist?

    Maybe you can't give answers, but I'm just wondering, well thanks for your help.

    Green eyes greeting

  • Calendars Primavera / calculation of monthly working hours

    IM in some ways out of the database of the p6, im trying the monthly hours based on a calendar computer.
    If the timetable says 8 hours a day, some months have more working days others like some have 31 days/30 days/5 weeks.

    any ideas?

    The Schedule table contains both global schedules and resources.

    In it, you will see hours per day, week, month and year.

    The questions, is that some of the details on a calendar are stored in a field called clndr_data which is a coded field. This code field contains DaysOfWeek, view and Exceptions that is, not the calendar of work / vacation.

    If you need only an estimate of the number of working hours for a given month, you could use the day_hr_cnt for a given calendar and multiply it against the number of working days in a given month. Found this at

    http://www.SQLServerCentral.com/articles/advanced+querying/calculatingworkdays/1660/

    DECLARE @StartDate DATETIME
    DECLARE @EndDate DATETIME
    SET @StartDate = ' 2013-01-01'
    SET @EndDate = ' 2013-01-31'

    SELECT
    (DATEDIFF (dd, @StartDate, @EndDate) + 1).
    -(DATEDIFF (wk, @StartDate, @EndDate) * 2)
    -(BOX WHEN DATENAME (dw, @StartDate) = 'Sunday' THEN 1 ELSE END 0)
    -(BOX WHEN DATENAME (dw, @EndDate) = 'Saturday' THEN 1 ELSE END 0)

    Gene

Maybe you are looking for