Restrict shudown database for a time interval

Hi,
I an using oracle10g in AIX..
Can i restrict the shutdown operation within a time intervall....say for eg: "Shutdown immediate" should not be accepted by sqlplus, if it is issued after 10am and before 6:00Pm....
Regards,
Jibu

why do you need something like this ? I am not sure but maybe a event trigger "BEFORE SHUTDOWN" can do that if you raise an application in it. like:
create or replace trigger shut_trig before shutdown on database
    begin
            if NOT sysdate between trunc(sysdate) - 1 + (18/24) and trunc(sysdate) + 10 /24 then
               RAise_application_error(-20000, 'you can not shutdown database');
            end if;
    end;not tested. I am not sure this code can work. just an idea

Similar Messages

  • How to change color of a button for specific time interval in jsp

    How to change color of a button for specific time interval in jsp.
    Please help.
    Thanks in advance.

    This was driving me crazy, too--and the previous answers did not seem to work. I eventually found that if I click one of the data symbols in the graph in exactly the right spot (see below), it selects only the data symbols and not the line. I can tell this because the little selection dots will be around each data symbol, but no selection dots will be on the line between the data symbols - like the graphic in Yvan's answer. Then and only then will the color symbol in the tool bar show the color of the data symbol, instead of the color of the line. I believe that you then have to first click on the color swatch in the toolbar and then select your color (or choose Show Colors and select from the color tool). Just clicking a color in the crayon box, for example, did not seem to work unless I first clicked on the color swatch in the toolbar, then clicked Show Colors on that dropdown, and +only then+ clicked the crayon or whatever.
    _The right spot to click_ seems to be just above the exact center of the data symbol, at least for the diamond shape symbol that I prefer. Sometimes it takes several tries to hit the right spot. If I miss it, the whole line is selected, which is indicated by the little selection dots on the line, between the data symbols. When I click the right spot, those selection dots go away, leaving only the data symbols selected. Then I can change the color, as described above.
    I hope this works for you too.

  • Restrict the report to a time interval containing current date

    hi all,
    we have a time dependent master data object, for which there are two records in the master data for two different time interval for example
    comp valid_to valid_from amount
    ab00  10/12/2006  01/01/100 100
    ab00  31/12/9999  11/12/2006 200
    now we want to show only those record for which the current date lies in the time interval (valid_to and valid_from) i.e only the second record should be present in the report.
    how can we achieve this at the query level.
    any help will be appreciated.
    thanks,
    Rk

    Hi RK,
    Use Query Key Date(give current date) then it will only pics data which falling into that perticulr interval(Valid from & Valid to).
    You can add Key Date, at Query Properties--> show variable.
    Please check : [Query Properties|http://help.sap.com/saphelp_nw04/Helpdata/EN/07/0ab63c71f41d5ce10000000a114084/content.htm]
    Hope it Helps
    Srini

  • SQL query for date & time interval

    Hello everyone,
    there is my problem
    I have to make a search for events that are taking place during inserted date & time .
    There's the table structure:
    event
    datefrom
    dateto
    timefrom
    timeto
    The problem is, when I try:
    select * from xyz where datefrom <= inserted_date and dateto >= inserted_date and timefrom <= inserted_time and timeto >= inserted time;
    then I don't get back all records.
    eg: user inserts date = 10.10.2010 and time 10:00 and in the table is event [abc 11:00 9.10.2010 -> 09:00 11.10.2010] stored following way:
    event         abdc
    datefrom   09.10.2010
    dateto        11.10.2010
    timefrom    11:00
    timeto         09:00
    => this event won't be found, because the sql logic compares only single parameters and not their context.
    Do you have any idea, how to solve this issue?
    Thank you.
    Lukas

    Hello Hubert,
    thank you very much for your proposal, but your code makes the same select as mine (but in a more user friendly look :).
    Table:
    datefrom 09.10.2010
    dateto 11.10.2010
    timefrom 11:00
    timeto 09:00
    Event date = 10.10.2010 and time 10:00.
    Your query:
    select * from xyz where 10.10.2010 between 09.10.2010 and 11.10.2010 (that's so far ok) and 10:00 between 11:00 and 9:00 (no return there, because 10:00 doesn't lie within interval 11:00 -> 9:00... actually no value lies there) ;
    Don't you have any other idea?
    Thank you
    Lukas

  • How to find all sql ran in the database for particular time

    Hi All,
    i need to find all sql ran in the database between 7am to 9am on may 22 2012 , i can generate AWR but i think it shows only top sql but i need all sql during this time
    is any views in oracle to get this information
    Thanks

    i need to find all sql ran in the database between 7am to 9am on may 22 2012 , i can generate AWR but i think it shows only top sql but i need all sql during this time use below view to get detail.
    V$active_session_history
    dba_hist_active_sess_history

  • Databases for Multi Time Zone

    We got two different SQL Server which are running SQL Server 2008 R2 and soon we are upgrading to one SQL Server 2012. Both are running in different time zone
    I been given a task that whether is it possible to publish databases on One Server with different Time Zone( just to reduce the cost).
    we got  1000+ SP's which uses Getdate() and GET date UTC function. 
    My Question is that, is it possible to publish databases on a single server with multi Time zone and if yes then how do i manage those. 
    Thanks

    Hi,
    Agree with the previous comments. The workaround is to use SWITCHOFFSET() function to calculate the time based on a time zone offset.
    The following example uses SWITCHOFFSET to display a different time zone offset than the value stored in the database.
    CREATE TABLE dbo.test
        ColDatetimeoffset datetimeoffset
    GO
    INSERT INTO dbo.test
    VALUES ('1998-09-20 7:45:50.71345 -5:00');
    GO
    SELECT SWITCHOFFSET (ColDatetimeoffset, '-08:00')
    FROM dbo.test;
    GO
    --Returns: 1998-09-20 04:45:50.7134500 -08:00
    SELECT ColDatetimeoffset
    FROM dbo.test;
    --Returns: 1998-09-20 07:45:50.7134500 -05:00
    See more details here:
    SWITCHOFFSET (Transact-SQL)
    http://msdn.microsoft.com/en-us/library/bb677244.aspx
    Using time zone data in SQL Server 2008
    http://blogs.msdn.com/b/sqlprogrammability/archive/2008/03/18/using-time-zone-data-in-sql-server-2008.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How to include Time Interval in crystal report

    Hi All,
           I have to create a  crystal report in  XI release 2. In the report I have 2 query side prompts "FromDate" and "ToDate" and one report side prompt "Time Interval". I have to show the data for each time interval between the two dates. means suppose if my "Fromdate" is 23 March 2010 and "Todate" is 25 march 2010 and time interval is 1 hour then I have to show data for each 1 hour time gap. means suppose my data in Db starts from 23 march 2010,11:25:25 then I must show data between 11:25:15 to 12:25:15 and so on...upto 25 march 2010.
         I am not able to retrieve the data accordingly. And how to use the timeinterval to retrieve data from db for that particular time interval.Please reply asap.
    Edited by: anushree2187 on May 21, 2010 7:28 AM
    Edited by: anushree2187 on May 21, 2010 7:37 AM

    you can create a group on the date field and then select how to group it by date, you can go up to the second.

  • Set Time Interval with custom fields in generic list with view(SPViewCollection.SPViewType.Calendar)

    I need to set time interval range with custom date fields in sharepoint view SPViewCollection.SPViewType.Calendar. How to do that?
    My code is this:
    System.Collections.Specialized.StringCollection viewFields = new System.Collections.Specialized.StringCollection();
    viewFields.Add("FechaInicio");
    viewFields.Add("FechaFin");
    string query = @"<Query>
    <Where>
    <DateRangesOverlap>
    <FieldRef Name=""FechaInicio"" />
    <FieldRef Name=""FechaFin"" />
    <FieldRef Name=""RecurrenceID"" />
    <Value Type=""DateTime"">
    <Week />
    </Value>
    </DateRangesOverlap>
    </Where>
    </Query>";
    SPView newView = reserva.Views.Add("CalendarView", viewFields, query, 0, true, true, SPViewCollection.SPViewType.Calendar, false);
    "FechaInicio" and "FechaFinal" ara datetime fields in my generic list.
    Thanks.

    Hi,
    According to your post, my understanding is that you want to see the calendar view begin and end time for the time interval.
    We can use the SharePoint Manager to view the internal name for the begin and end time for the time interval.
    Open SharePoint Manager 2013->click your site->click
    Lists->select your list name->click Views->select your calendar view name->click the
    Schema Xml to check the internal name for the time interval begin and end.
    We can download the SharePoint Manager in here:
    http://spm.codeplex.com/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Custom list - Calendar View - Time Interval

    Hi all,
    I have a custom list with "Project Start" and "Project End" columns. Then I have created a Calendar View. In the "Time Interval", I select "Project Start" for "Begin"
    and "Project End" for "End".
    In the programming code, how could I detect the column names that was chosen for "Begin" and "End" of the "Time Interval"? In this case, they are
     "Project Start" and "Project End".
    Thanks ^_^

    Hi,
    According to your post, my understanding is that you want to see the calendar view begin and end time for the time interval.
    We can use the SharePoint Manager to view the internal name for the begin and end time for the time interval.
    Open SharePoint Manager 2013->click your site->click
    Lists->select your list name->click Views->select your calendar view name->click the
    Schema Xml to check the internal name for the time interval begin and end.
    We can download the SharePoint Manager in here:
    http://spm.codeplex.com/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Restrict Select-Options for Logical Database field

    The way we restrict select options for custom defined select option fields on selection screen.. can we restrict select options for standard Logical Database fields?
    i.e. report uses PNPCE logical database and has field called PERNR. I want to restrict select options for this PERNR field so that it has options for 'Select single values' only.
    Thanks,
    Falguni
    Edited by: Falguni V on Nov 13, 2010 6:42 AM

    You can user AT SELECTION-SCREEN event, and check whether any record is having high value for PNPPERNR.

  • Setting the time interval for LEDs

    hello I am new to labview, I am trying to do something simple, but made it a lot more complicated than it needs to be. I need turn on an LED and turn it off, but in random intervals, such as turn it on for 1 second, then turn it off for 2 seconds, then turn it on for 2 seconds, then turn it off for one second, so no real pattern. I need to do this to the LED for a minute, I tried a really convoluted method with a time target and case strictures, but I can only program that to activate in specific intervals, I am not able to set them. Any help will be greatly appreciated. Here is a VI of my convoluted method that didn't work.
    Attachments:
    LED time interval test.vi ‏43 KB

    You have not tried to implement altenbach's suggestion of autoindexing an array of delays.
    The Reshape Array needs to be outside the for loop. You want to reshape the 3x4 2D array into a 12 element 1D array.  What you are doing is reshaping a 3 element 1D array into a 12 element 1D array. This results in the last nine elements always = zero.
    The Arduino expects an 8-bit unsigned integer. So the data in the arrays should also be U8.
    If the index to Replace Array Subset is negative or greater than the maximum index in the 2D array, it does nothing.  I am not sure exactly what you are trying to do with the array index manipulations so I did not try to fix it.  I added some indicators to show what is happening.
    When using autoindexing on a for loop, do not also wire to N.
    The Arduino Rseource wires and the error wires should be connected through the loop boundaries with shift registers, not tunnels, particularly not autoindexing tunnels.
    I do not have an Arduino, so I used Diagram Disable structures to disable the Arduino VIs for testing without getting errors.
    You seem to be allergic to straight wires. Actually the auto wiring tool is probably on and IT is allergic to straight wires.  I find it easier to understand a block diagram where the wires do not have excessive bends.
    Lynn
    Attachments:
    Project 1 with arduino.2.vi ‏23 KB

  • Error Message - "Time Interval is not valid for dummy activities"

    Friends,
    I am trying to create a planned order on a resource at a plant. However it shows up an error message.
    An application program called an LCA routine. The following error
    occurred:
    Time interval is not valid for dummy activities. Probable causes
    error are an extremely long processing duration or times that li
    outside the time interval (1.1.1970 + 30 sec, 1.1.2038 - 1 sec).
    Could anyone help pme out with this,
    Thanks in advance.
    -A

    Hi,
      Please check the control key  and activity type  in routing.
    Thanks,
    DV

  • Using time machine to recover iTunes database for metadata

    In short, when I go back beyond a week in time machine I cannot find any .itl or even any of the .itdb or .xml files on my mac that I can restore with time machine.  The only version that is there is for the current library which is missing 99.9% of the content.
    The context:
    1. I had itunes folder on my hard drive and an external with all of the content. Over the years the external must have been disconnected or what not as a sizeable media folder had also developed on the hard drive.
    2. In order to free up space on the hard drive I consolidated the media and moved the library to a second external that had much more free space.
    3. I ended up deleting the iTunes library on the hard disc on or around 6 april 2015. I believe I deleted the whole folder.
    no dramas - everything worked for weeks
    4. Today I noticed that the iTunes library was pretty much empty but for purchased music. All the podcasts, playlists and basically anything not purchased was gone.
    5. I look into the iTunes folder on the hard disc and I noticed that there is a music folder with two songs that my kid likes to play. It leo has all of the usual library xml files and the .itdb / .itl files (which to be honest I have never noticed before, I had only remembered ever seeing the .XML files).
    6. The "new" .itl file was created on Sunday 26 april at 5.30 pm.  The whole iTunes folder it sat in on my hard drive also did not exist before this time.
    7. If I use time machine and scroll back further in time than sunday there is no iTunes folder on my hard drive.
    8. I thought I would just need to find the .itl file that predated this new library that was created on Sunday. Trouble is I can't find one. On any disc, hard disc, the first external or the second external.  The only iTunes folder I can find with any of the database files needed is the one created on Sunday that is empty.
    9. I have all of the media organised on the second hard disc however I don't want to reimport and lose all the metadata that I have built up since 2001 at least.
    THE QUESTIONS
    A - where should I be looking for the old iTunes database files using time machine if I used the advanced features of iTunes to move the database to the new disc
    B - Can I perform some sort of system wide restore that would take me back in time to a point before last Sunday to get my old iTunes database back?
    Any ideas?
    Thanks in advance
    Len

    In short, when I go back beyond a week in time machine I cannot find any .itl or even any of the .itdb or .xml files on my mac that I can restore with time machine.  The only version that is there is for the current library which is missing 99.9% of the content.
    The context:
    1. I had itunes folder on my hard drive and an external with all of the content. Over the years the external must have been disconnected or what not as a sizeable media folder had also developed on the hard drive.
    2. In order to free up space on the hard drive I consolidated the media and moved the library to a second external that had much more free space.
    3. I ended up deleting the iTunes library on the hard disc on or around 6 april 2015. I believe I deleted the whole folder.
    no dramas - everything worked for weeks
    4. Today I noticed that the iTunes library was pretty much empty but for purchased music. All the podcasts, playlists and basically anything not purchased was gone.
    5. I look into the iTunes folder on the hard disc and I noticed that there is a music folder with two songs that my kid likes to play. It leo has all of the usual library xml files and the .itdb / .itl files (which to be honest I have never noticed before, I had only remembered ever seeing the .XML files).
    6. The "new" .itl file was created on Sunday 26 april at 5.30 pm.  The whole iTunes folder it sat in on my hard drive also did not exist before this time.
    7. If I use time machine and scroll back further in time than sunday there is no iTunes folder on my hard drive.
    8. I thought I would just need to find the .itl file that predated this new library that was created on Sunday. Trouble is I can't find one. On any disc, hard disc, the first external or the second external.  The only iTunes folder I can find with any of the database files needed is the one created on Sunday that is empty.
    9. I have all of the media organised on the second hard disc however I don't want to reimport and lose all the metadata that I have built up since 2001 at least.
    THE QUESTIONS
    A - where should I be looking for the old iTunes database files using time machine if I used the advanced features of iTunes to move the database to the new disc
    B - Can I perform some sort of system wide restore that would take me back in time to a point before last Sunday to get my old iTunes database back?
    Any ideas?
    Thanks in advance
    Len

  • Time interval for contoured move

    I have a interpolator and it output the interpolated data with time interval 1ms. When I do the experiment using stepper motor controlled by 7344 (contoured move). the time interval is much bigger the 1ms, resulting in very low velocity. How to solve this problem? Increasing the time interval of interpolator? Is there anyone has any ideas? Thanks a lot!

    In contouring mode you can set the time interval for the position buffer in the Configure Buffer function. Here is the parameter description:
    Requested Interval (10 ms) is additional data for the Position
    buffer type. The Position buffer type requires a Requested Interval parameter,
    and indicates the time between contouring data points in milliseconds. For all
    other buffer types, the Requested Interval parameter is ignored.
    The controller uses the closest value it can that is greater than
    or equal to the interval value you requested. Your time interval must be an even
    multiple of the PID rate. Refer to the description for the Actual
    Interval parameter for more information.
    When used with Breakpoint or High-Speed
    Capture, Requested Interval indicates how often, in
    milliseconds, the onboard data is updated from the hardware, and the value is a
    whole number.Please note that 10 ms is the fastest interval that you can set. If your data is sampled with a 1 ms time interval and you want to use the 10 ms time interval with your 7344 you simply should decimate your contouring data array by copying every 10th value to your contouring position array.
    Best regards,
    Jochen Klier
    National Instruments Germany

  • WRV200 Access Restriction on all ports for a time period?

    I have a system that needs to be restricted to only having internet access for a small window each day. I have been looking at the Access Restriciton tools for htis but it looks like I would need to block each possible port with its own policy. This seems very inefficient and complex. Is there a way to make a rule that blocks ALL ports for a time period?
    Thanks!

    Under Firewall>Access Restriction when you are creating an Access Policy under Blocked Services you can select TCP, UDP, or IP. If you select IP it will block everything instead of a specific port. You will have to create a rule for each IP on your network that you do not wish to have access outside of your selected window.

Maybe you are looking for