Operations on the date

I want to enlarge the value of the variable types date to 1 hour
but value of =CurrentDate()+1/24 is current date - no next hour
how to perform operations on variables of type date

Something like this:
    SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy");
    Date date = sdf.parse("04-JAN-2009");
    Calendar calendar = new GregorianCalendar();
    calendar.setTime(date);
    calendar.add(Calendar.DAY_OF_MONTH, 7);
    System.out.println(sdf.format(calendar.getTime()));
    // OUTPUT:
    // 11-Jan-2009

Similar Messages

  • Upgrade OM 2012 to SP1 Beta - Version of SQL Server for the Operational Database and the Data Warehouse

    Hello,
    When I try to verify the prerequisites to upgrade my SCOM 2012 UR2 Platform to SP1 Beta, I have these errors :
    The installed version of SQL Server is not supported for the operational database.
    The installed version of SQL Server is not supported for the data warehouse.
    But when I execute this query Select @@version on my MSSQL Instance, the result is :
    Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)   Jun 17 2011 00:54:03   Copyright (c) Microsoft Corporation  Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7600: ) (Hypervisor) 
    But
    here, we can see that :
    Microsoft SQL Server: SQL Server SQL 2008 R2 SP1, SQL Server 2008 R2 SP2, SQL Server 2012, SQL Server 2012 SP1, are supported.
    Do I need to pach my MSSQL Server with a specific cumulative update package ?
    Thanks.

    These are the requirements for your SQL:
    SQL Server 2008 and SQL Server 2012 are available in both Standard and Enterprise editions. Operations Manager will function with both editions.
    Operations Manager does not support hosting its databases or SQL Server Reporting Services on a 32-bit edition of SQL Server.
    Using a different version of SQL Server for different Operations Manager features is not supported. The same version should be used for all features.
    SQL Server collation settings for all databases must be one of the following: SQL_Latin1_General_CP1_CI_AS, French_CI_AS, Cyrillic_General_CI_AS, Chinese_PRC_CI_AS, Japanese_CI_AS, Traditional_Spanish_CI_AS, or Latin1_General_CI_AS.  No other collation
    settings are supported.
    The SQL Server Agent service must be started, and the startup type must be set to automatic.
    Side-by-side installation of System Center Operations Manager 2007 R2 reporting and System Center 2012 Service Pack 1 (SP1), Operations Manager reporting on the same server is not supported.
    The db_owner role for the operational database must be a domain account. If you set the SQL Server Authentication to Mixed mode, and then try to add a local SQL Server login on the operational database, the Data Access service will not be able to start.
    For information about how to resolve the issue, see
    System Center Data Access Service Start Up Failure Due to SQL Configuration Change
    If you plan to use the Network Monitoring features of System Center 2012 – Operations Manager, you should move the tempdb database to a separate disk that has multiple spindles. For more information, see
    tempdb Database.
    http://technet.microsoft.com/en-us/library/jj656654.aspx#BKMK_RBF_OperationsDatabase
    Check the SQL server agent service and see whether it is set to automatic AND started. This got me confused at my first SP1 install as well. This is not done by default...
    It's doing common things uncommonly well that brings succes.

  • Descriptor query manager and custom PL/SQL call for the data update

    hi all,
    in the application, I'm currently working on, the operations for the data INSERT/UPDATE /DELETE are allowed only by means of PL/SQL function. Using the descriptor's query manager I'm trying to modify default behavior of TopLink and execute PL/SQL when there is a request to modify the data.
    DescriptorQueryManager entityQueryManager = session.getClassDescriptor(MyEntity.class).getQueryManager();
    StoredFunctionCall call = new StoredFunctionCall();
    call.setUsesBinding(true);
    call.setProcedureName("merge_record");
    call.setResult("id", Integer.class);
    call.addNamedArgument("cbic_id", "id"); // MyEntity.getId() – works!
    call.addNamedArgument("publication_flag", "publicationFlag"); // MyEntity.getPublicationFlag () – works!
    call.addNamedArgument("routing_id", "routing"); // MyEntity.getRouring() – works!
    call.addNamedArgument("issue_id", "issue"); // MyEntity.getIssue() – works!
    call.addNamedArgument("country_id", "country"); // MyEntity.getCountry() – works!
    entityQueryManager.setInsertCall(call);
    entityQueryManager.setUpdateCall(call);
    entityQueryManager.setDeleteCall(call);
    the problem:
    when I call: MyEntity savedObject = (MyEntity) UnitOfWork.deepMergeClone(entity);
    the binding doesn’t happen and I see following logs:
    [TopLink Finest]: 2008.02.01 02:51:41.534--UnitOfWork(22937783)--Thread(Thread[AWT-EventQueue-0,6,main])--Merge clone xxx.Entity[id=2000]
    [TopLink Warning]: 2008.02.01 02:51:41.550--ClientSession(8454539)--Thread(Thread[AWT-EventQueue-0,6,main])--Missing Query parameter for named argument: id null will be substituted. (There is no English translation for this message.)
    [TopLink Warning]: 2008.02.01 02:51:41.550--ClientSession(8454539)--Thread(Thread[AWT-EventQueue-0,6,main])--Missing Query parameter for named argument: publicationFlag null will be substituted. (There is no English translation for this message.)
    [TopLink Warning]: 2008.02.01 02:51:41.565--ClientSession(8454539)--Thread(Thread[AWT-EventQueue-0,6,main])--Missing Query parameter for named argument: routing null will be substituted. (There is no English translation for this message.)
    [TopLink Warning]: 2008.02.01 02:51:41.565--ClientSession(8454539)--Thread(Thread[AWT-EventQueue-0,6,main])--Missing Query parameter for named argument: issue null will be substituted. (There is no English translation for this message.)
    [TopLink Warning]: 2008.02.01 02:51:41.565--ClientSession(8454539)--Thread(Thread[AWT-EventQueue-0,6,main])--Missing Query parameter for named argument: country null will be substituted. (There is no English translation for this message.)
    [TopLink Fine]: 2008.02.01 02:51:41.565--ClientSession(8454539)--Connection(6233000)--Thread(Thread[AWT-EventQueue-0,6,main])--BEGIN ? := merge_record(cbic_id=>?, publication_flag=>?, routing=>?, issue=>?, country=>?); END;
    bind => [=> id, null, null, null, null, null] – WHY?
    Calling straight forward the same PL/SQL block using:
    DataModifyQuery updateQuery = new DataModifyQuery();
    updateQuery.setCall(call);
    updateQuery.shouldBindAllParameters();
    and passing parameters as Vector works very well.
    Could you please help me to fix the binding problem when I’m using the PL/SQL with Query Manager?
    regards,

    Hello,
    This is fairly common. Since the database is case insensitive (mostly) field names passed in don't really matter much. Unfortunately, java string comparisons are case sensitive, so if you db column for the getId() property is defined as uppercase "ID" it will not match to the lower case "id" defined in the
    call.addNamedArgument("cbic_id", "id");
    This will cause TopLink to get null when it looks for the "id" field in the row it builds from your MyEntity instance.
    Matching the case exactly will resolve the issue.
    Best Regards,
    Chris

  • "the finder cannot complete the operation because some data in [name of iMovie file] could not be read or written (Error Code 26)

    Hi all,
    I have an iMovie project in iMovie HD 6.0.3. (Mac OS 10.5.8)
    It plays, but I cannot copy the file (including saving it to a flash drive). I get either a message
    "the finder cannot complete the operation because some data in [name of
    iMovie file] could not be read or written (Error Code 26)" or the
    message "A project file is missing. The file [name of the QuickTime
    movie inside the project.dv] couldn't be opened and is being skipped."
    This happened suddenly, I was able to save a backup version numerous
    times while working on the project.
    I followed some of Karl Petersen's advise on apple discussions. I opened
    the package contents, and everything seems to be there. The source file
    (original QuickTime movie) is there and can be opened and played. I
    replaced the current project file with the backup in the package
    contents, but that did not change anything. I was able to export the
    movie timeline into a new project as a single clip, but would like to be
    able to copy the current project.
    Thanks for any ideas..

    Make sure all drives are formatted as "Mac OS Extended". (Journalling preferred, but not necessary).

  • Error in SQL Query The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query

    hi Experts,
    while running SQL Query i am getting an error as
    The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    T2.LineText
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,T2.LineText
    how to resolve the issue

    Dear Meghanath,
    Please use the following query, Hope your purpose will serve.
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    CAST(T2.LineText as nvarchar (MAX))[LineText]
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,CAST(T2.LineText as nvarchar (MAX))
    Regards,
    Amit

  • Cannot move any files into trash to delete them. I get a Trash warning box saying "The Finder cannot complete the operation because some data in 'file name' could not be read or written.(Error code - 36)".Macbook has so much data it is almost not working

    Cannot move any files into trash to delete them. I get a Trash warning box saying "The Finder cannot complete the operation because some data in 'file name' could not be read or written.(Error code - 36)".Macbook has so much data it is almost not working.
    I have tried reseting to factory settings by removing battery and holding down the power switch for more than 5 sec but this does nothing.
    Any ideas would be greatly appreciated as I think with so much unwanted data on the desktop and other places the whole os will crash very soon.
    Thanks, Rick

    The hard drive may be dying anyway, or the directory damaged because it is so full.  You should never let the hard drive get over 85% full.
    A -36 error is a read/write error.
    All you did with the power is reset the SMC.  Does nothing to reset everything to factory settings. 
    Do you have your original 10.4 installer discs for the MacBook?
    Is your data backed up?

  • Error while invoking the commit operation in a data control

    JDeveloper 11.1.2
    When we invoke the commit operation exposed thru the data control, sometimes we get the following error:
    Caused by: java.lang.NullPointerException
    at oracle.jbo.server.DBTransactionImpl.addPendingEvent(DBTransactionImpl.java:5751)
    at oracle.jbo.server.DBTransactionImpl.sendOrQueueEventForSharedTrans(DBTransactionImpl.java:6659)
    at oracle.jbo.server.DBTransactionImpl.fireTransactionStateEvent(DBTransactionImpl.java:6693)
    at oracle.jbo.server.DBTransactionImpl.doAfterCommit(DBTransactionImpl.java:2301)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2159)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
    This issue is intermittent but occurs many times.
    I am NOT able to find any issues with the code.
    Any pointers on resolving the issue.
    Thanks,
    Navaneeth

    My problem is special, we change the AM configuration to EJB (2.1 stateful, let's put performance issue aside) and deploy remotely, however, there's a NullPointerException occurred at the same line number as your case when we change the task flow id of the dynamic region, because the ADF framework always calls Rollback during region refresh, this Rollback cause the NullPointerException. Even if I caught and ignore this error, there will be always a NullPointerException thrown the next time we do any VO attribute update (kind of same as the blog entry described below).
    http://adfbugs.blogspot.com/2011/08/rollback-is-executed-when-region-is.html
    I am not sure if we could benefit from fixing of your SR by Oracle. Please share if you have any hints, thank you!
    Edited by: codeplay on Mar 30, 2012 9:42 AM

  • ORA-22288: file or LOB operation FILEOPEN failed (The data is invalid)

    Dear All,
    I am trying to insert a image file (gif) to one of my field.
    1. Here is my table structure and trying to insert gif image file to PIC file.
    SQL> desc cis2.david_pic
    Name Null? Type
    ID VARCHAR2(5)
    PIC BLOB
    2. I using sql command to create directory and the path is pointing where the DB
    server was installed.
    SQL> create or replace directory MY_FILES as '\\hkqaa-db1\TEXT_IMPORT';
    3. Written a script to insert empty blob first and than trying to use the dbms_lob.fileopen
    to upload the gif file.
    SQL> declare
    2 l_blob blob;
    3 l_bfile bfile;
    4 begin
    5 insert into cis2.david_pic values ( '1', empty_blob())
    6 returning pic into l_blob;
    7 l_bfile := bfilename('MY_FILES', 'bess_signature.gif');
    8 dbms_lob.fileopen(l_bfile);
    9 dbms_lob.loadfromfile(l_blob, l_bfile, dbms_lob.getlength(l_bfile));
    10 dbms_lob.fileclose(l_bfile);
    11 end;
    12 /
    4. After I ran my script I got this error message.
    declare
    ERROR at line 1:
    ORA-22288: file or LOB operation FILEOPEN failed
    The data is invalid.
    ORA-06512: at "SYS.DBMS_LOB", line 475
    ORA-06512: at line 8
    Can any tell me what wrong? is this the way to insert image?
    Thanks

    Know this is an old post: (for sharing sake.)
    Please try avoiding
    1. the 'hyphen' in between the path (hkqaadb1 instead of hkqaa-db1)
    2. Give direct path like 'C:\TEXT_IMPORT' instead of network path.
    create or replace directory MY_FILES as '\\hkqaa-db1\TEXT_IMPORT'; -- Not working.
    create or replace directory MY_FILES as 'C:\hkqaadb1\TEXT_IMPORT'; -- Working.
    and this worked fine.
    Edited by: Arunan.KL on Mar 23, 2011 5:04 PM

  • Hi guys, an empty folder is stuck in my trash & I get this message: "The Finder can't complete the operation because some data in the folder can't be read or written. (Error code -36). It won't shift no matter how I try to Secure Empty trash. Any ideas?

    Hi guys, an empty folder is stuck in my trash & I get this message: "The Finder can’t complete the operation because some data in the folder can’t be read or written. (Error code -36). It won't shift no matter how I try to Secure Empty trash. Any ideas?

    The Time Machines Backup is formated as Mac OS Extended (Case Sensitive, Journaled), my mac is formated as Mac OS Extended (Journaled).
    The names on the file are all Uppercase
    When I try to copy the Aperture file, it copies about 70% of the file (it's about 33GB in size), and halfway through I get this error.
    I'm able to copy 99.99% of all of the images if I open the Aperture Folder using the "show package contents" under the backups using finder (Time Machine Backups>Backups.backupdb>CQ Macbook Air>2012-04-30-070933>HD.....>Pictures>Aperture Library). The only file I can't copy is that picture, which I'm totally ok with deleting, but Finder won't delete it for me. If nothing else works, I could copy the individual masters and re-create the folders, however I'd hate to do this as I would have to go through 10,000+ pics

  • I have been exporting lightroom webgaleries to my iweb site without any problem.  Suddenly I get the error message "finder can't complete the operation because some data can't be read or written" - error code -36 - thoughts?

    i have been exporting lightroom web galleries to my iweb site without any problem.  Suddenly I get the error message "finder can't complete the operation because some data can't be read or written" - error code -36 - and the move to the sites folder on my idisk fails..... thoughts?

    Try this community: MobileMe on my Mac: MobileMe: Apple Support Communities.
    And you can continue to use iWeb for some time to come. The following will explain:
    It's now confirmed that iWeb and iDVD have been discontinued by Apple. This is evidenced by the fact that new Macs are shipping with iLife 11 installed but without iWeb and iDVD.
    On June 30, 2012 MobileMe will be shutdown. HOWEVER, iWeb will still continue to work but without the following:
    Features No Longer Available Once MobileMe is Discontinued:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    ◼ MobileMe Gallery
    All of these features can be replaced with 3rd party options.
    I found that if I published my site to a folder on my hard drive and then uploaded with a 3rd party FTP client subscriptions to slideshows and the RSS feed were broken.  If I published directly from iWeb to the FPT server those two features continued to work correctly.
    There's another problem and that's with iWeb's popup slideshows.  Once the MMe servers are no longer online the popup slideshow buttons will not display their images.
    Click to view full size
    However, Roddy McKay and I have figured out a way to modify existing sites with those slideshows and iWeb itself so that those images will display as expected once MobileMe servers are gone.  How to is described in this tutorial: #26 - How to Modify iWeb So Popup Slideshows Will Work After MobileMe is Discontinued.
    In addition the iLife suite of applications offered on disc is now a discontinued product and the remaining supported iApps will only be available thru the App Store from now on.
    HOWEVER, the iLife 11 boxed version that is still currently available at the online Apple Store (Store button at the top of the page) and those copies still on the shelves of retailers will include iWeb and iDVD.

  • Help with "The Finder can't complete the operation because some data in "iPhoto Library" can't be read or written. (Error code -36)" Any ideas on how to fix this?

    While trying to copy my iPhoto Library (49.61 GB) to an external hard drive, I receive the error message "The Finder can’t complete the operation because some data in “iPhoto Library” can’t be read or written. (Error code -36)"
    I need to move my library because I have no more disk space.  This was going to be step 1 followed by backing up to another EHD.
    More details: iPhoto version 9.6 (910.29) OX X Yosemite Version 10.10.1 (Mid 2011 Mac Book Air).  EHD= WD Elements 1 TB (purchased at B&H Photo where the sales associate formatted it for a Mac).
    Any step by step ideas for help are appreciated!  I've read through a few threads but need more step by step directions.

    That error message is an I/O error which can mean a number of things, among them a bad file.  Here's a couple of fixes you can try:
    1 - use the free version of  iPhoto Library Manager  to rebuild the library with the rebuild being created on the  EHD as follows:
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.>Click on the Add Library button,
    2 -  select the library you want to add from those in the selection window.
    3 - make sure that in the rebuild window the checkbox  "Scavange orphaned photos" is checked.
    4 - now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option
    5 - in the next  window name the new library and select the location you want it to be placed. Click on the Create button.
    Note 1: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments. However, books, calendars, cards and slideshows will be lost.
    Note 2:  Your current library will be left untouched for further attempts at a fix if so desired.
    When iPLM finishes it will display a log file entry showing which files it was unable to use in the rebuild.  Open the old library with iPhoto, locate and delete the photos that iPLM listed in its log.  Then try dragging the library to the EHD again.
    If the above fails continue with:
    2 - create a new, empty library on the EHD.  Use the paid version of iPhoto Library Manage to copy the events (1-2 at a time) to the new library on the EHD.  At one point iPLM may run into the bad file and be unable to copy the event.  You can check iPLM's log to see what file it is.  Then open that library, delete the file and either try to copy the entire library by dragging and dropping or contine with the copying of events from the old library to the new library.

  • "The Finder can't complete the operation because some data in "For Desta 008 SUR-BPBO-00019.tif" can't be read or written. (Error code -36)

        i'm trying to backup MacBook white 10.6.3 manually to my external HD but it gives me this error,"The Finder can’t complete the operation because some data in “For Desta 008 SUR-BPBO-00019.tif” can’t be read or written. (Error code -36). i tried taking the HD out, but it gives me the same error, so pls tell me what to do, i need the backup fast.

    Aint you quick to jump to conslusions? So becasue one thing isn't working of the hundreds of things I donwloaded doesnt work, my drivers are broken?
    Ok then, let me download some other things to make sure
    Minecraft: it worked ✓
    Firefox: it worked✓
    Synthesia: it worked✓
    iExplorer: it worked✓
    Pencil: it worked✓
    Flash: it worked✓
    Synfig was made in 2006, so it's not unlikely that it might not work for some people. By 'some people', I mean me. I was just asking if it was something on my side, but if that's all you got, I think it's highly unlikely that it's my fault. I don't even want it anymore, I got Flash Professional. I was just wondering. I could have sworn you used to write more detailed answers before jumping striaght to conclusions. 'Did this happen to you on anything else?' or maybe even 'Why don't you complain to them?' would have been fine.

  • The finder can't complete the operation because some data on iPhoto Library can't be read or written. Error code -36

    Hi,
    Installed a new startup drive and cannot access my photos. While copying/pasting iPhoto library from old to new drive I get,
    The finder can't complete the operation because some data on iPhoto Library can't be read or written.
    Getting help from Apple senior advisor caused more problems, was unable to boot up for a while. Back up now but still can't transfer iPhoto Library.
    Anyone seen this before?
    Thank you

    Linc and Larry, could you please have a look at this thread? Sorry, it is in German:
              Re: Fehlermeldung beim Verschieben von iPhoto
    The OP is trying to copy the iPhoto library to an external drive and getting "The finder can't complete the operation because some data on iPhoto Library can't be read or written. Error code -36". This happens even when copying to the same drive.  The destination drive is correctly formatted.
    The Console is showing a message I don't understand:
    03.06.14 18:26:40,990 Finder[1154]: NSFileCoordinator: Sending of a providerCheckin message was interrupted. Details: Connection interrupted
    Any idea what this means?

  • The Finder can't complete the operation because some data in "Adobe Acrobat" can't be read or written. (Error code - 36)

    I recently did a clean install on a 2011 MacBook Pro with Mavericks. Went to install Adobe Acrobat 9 with the DVD media and about 3/4 of the way through the install, the install stopped and the following window appeared:  The Finder can't complete the operation because some data in "Adobe Acrobat" can't be read or written. (Error code - 36).  I've tried to install a few times and get the same message.  Is Adobe Acrobat 9 incompatible with Mavericks.  I've seen some posts on Apple Support Communities indicating that it is indeed compatible, but no explanation why the error pops up. 

    The hard drive may be dying anyway, or the directory damaged because it is so full.  You should never let the hard drive get over 85% full.
    A -36 error is a read/write error.
    All you did with the power is reset the SMC.  Does nothing to reset everything to factory settings. 
    Do you have your original 10.4 installer discs for the MacBook?
    Is your data backed up?

  • The Finder can't complete the operation because some data in "Chronicles" can't be read or written. (Error code -36)

    The Finder can’t complete the operation because some data can’t be read or written.
    (Error code -36)
    What does this error code mean?

    I faced the same problem and i fixed it by going to applications - utility - disk utility and fixing the errors.

Maybe you are looking for

  • XML Publisher showing extra spaces

    We are building a huge report using XML publisher , After building a custom report using (XML Publisher & Microsoft Document2007) , the requirement was to Show/Hide some Layouts like Table of data and Total Column depending on flag values, The soluti

  • I tried to update my iPad but when I switched it on it was in recovery mode?

    I don't know what to do now. I just pressed 8.0.2 update because I wanted to get an app that required it, and then the screen went black. I turned it on again, and tried updating it again, but it still did the same thing. Then, the next time, I switc

  • SCORM file in LMS showing score

    I have a captivate 4 file that has quiz slides but they are designed to be knowledge checks and not scoreable.  However, when I publish the SCORM file to my LMS, after completing the presentation, the LMS is showing a score.  Does anyone know how to

  • Black Magic Intensity Pro not shown in CS 5.5

    Hi i need some help,before i use a CS5.5 i tested CS5 with Black Magic Intensity Pro and all go Ok. And then when CS5.5 shows up i instal CS5.5 but i can,t see a bin to edit with  Black Magic  i see all other various bin to edit but not with  Black M

  • Export to desktop?

    Hello, Am just experimenting with the online digital publishing and have noticed they is an Export button underneath the Publish button (screenshot below illustrates what i'm on about) is it possible to export a folio online to my desktop? if so how