Timestamp formats that include literal data in quotes

Is there an alternate way to specify literal text in timestamp formats, other than to quote it with double quotes? I am trying to work around a bug in SQLDeveloper (described below).
The formats I am using are:
timestamp: YYYY-MM-DD"t"HH24:MI:SS.FF6
timestamp tz: YYYY-MM-DD"t"HH24:MI:SS.FF6TZH:TZM
These formats work fine in sqlplus and in my application:
SQL> alter session set nls_timestamp_format = 'YYYY-MM-DD"t"HH24:MI:SS.FF6';
Session altered.
But when I use these them in the Database->NLS Parameters section in Preferences, I get the following error:
ORA-02248: invalid option for ALTER SESSION
If I remove the "t" from the middle, there are no errors in SQLDeveloper and the formats work correctly in the sql worksheet.
SQLDeveloper: 1.1.2.25 on Windows XP Pro
Oracle server: 9.2.0.5.0, 64bit running on Solaris
Thanks,
Philip

Hi JW,
if you want to track changes, implement the how-to paper about "line-items" (see SAP Service Marketplace). BPS layout will always show the latest data (price) and to show the history, you can use a simple BW query with drill-down on the timestamp.
Regards
Marc
SAP NetWeaver RIG

Similar Messages

  • Access 2010 InfoPath Data Collection Export Fails Due to Date Format That Includes Time Zone

    I created an Access 2010 database that has multiple data collection (InfoPath) forms that were generated from Access and have been in use for about 1.5 years.  Starting in 2013 (for about a week now), the submitted data fails to Export due
    to a "data type conversion error" with the date fields.  Prior to 2013, the date string returned in the InfoPath form looked like this: "2013-01-07T00:00:00", but now it looks like this: "2013-01-07T00:00:00-05:00".  The time zone is appended
    to the string and it kills the Outlook Export feature.
    To test this, I created a new database with one table and one date time field.  I generated an InfoPath template and emailed it to myself.  I entered the date into the template and submitted it (tried manually entering the date as well as
    using the date time picker control - made no difference).  The InfoPath template now contains "2013-01-07T00:00:00-05:00" and will not Export from Outlook to Access.  I tried manually pasting the string into the Access table and it would take it,
    but would show "1/7/2013 5:00:00 AM" in the date time field (which isn't correct either but at least it took).  Note: This problem has appeared at my office (Win 7 with Office 2010), but my testing was done on my personal laptop using Win 8 with Office
    2010.
    It looks like Microsoft has created a bug and now all of my data collection forms are unusable.  Any help will be appreciated.

    Microsoft confirmed that the issue was introduced with MS12-066 as follows:
    ***Start Quote
    We have been able to identify that this issue was introduced with the change made for the hotfix detailed in KB 2687395. This update was included in the security update MS12-066 when you installed KB 2687417.
    2687395          Description of the InfoPath 2010 hotfix package (ipeditor-x-none.msp): August 28, 2012
    http://support.microsoft.com/kb/2687395/EN-US
    2687417           MS12-066: Description of the security update for InfoPath 2010 Service Pack 1: October 9, 2012
    http://support.microsoft.com/kb/2687417/EN-US
    Investigating workarounds I've only come up with using HTML forms or changing the datatype of the control to text.
    ***End Quote
    My own testing also indicates that if you are using InfoPath with SQL Server, you may be able to change the Date/Time picker control in InfoPath to a Date only picker control (if the SQL Server data
    type will support that).

  • Timestamp format for SQL Server data

    Hi all,
    I put this question on the PL/SQL forum but got no answer yet. Could anyone help me with the timestamp format for a timestamp data from SQL Server? I have this in the xml from SQL server,
    2006-06-20T00:00:00-05:00
    and I need to make it a date or timestamp data type in Oralce. I have looked at the docs and could not find the correct format for this. Please note there is a T in the middle and I don't know why it is there and what it is for.
    Thanks.
    Ben

    Actually the date is in the only form that is valid in the XML Schema spec and the RFC that the datetime formats are allowed to be in per the XML schema spec...
    The way to decode is to a timestamp with timezone
    SQL> select to_timestamp_Tz('2006-06-20T00:00:00-05:00','YYYY-MM-DD"T":HH24:MI:SSTZH:TZM') from dual;
    TO_TIMESTAMP_TZ('2006-06-20T00:00:00-05:00','YYYY-MM-DD"T":HH24:MI:SSTZH:TZ
    20-JUN-06 12.00.00.000000000 AM -05:00
    SQL>

  • Att Yahoo has a new format that includes highlighted, scrolling spam at the top of the in box

    Is there a way to get rid of the spam at the top of the inbox. The ads scroll and say sponsored on the far right. A call to att was not productive in returning to the previous format that did not have spam. They are calling this their "new and improved version." They have also changed the way email appears when it is sent and responses are made which show "me' as from and "me" as response which is not helpful in locating old email. Could use a referral for a better email server.

    You can look at the Adblock Plus extension if you want to block content.
    * Adblock Plus: https://addons.mozilla.org/firefox/addon/adblock-plus/
    You need to subscribe to a Filter list (e.g. the EasyList).
    * http://adblockplus.org/en/subscriptions
    * http://adblockplus.org/en/getting_started
    You can ask advice at the Adblock Plus forum if there are problems with this extension or with a filter list or if you need help to create a filter rule to block content.
    * https://adblockplus.org/forum/

  • Problem with select query that includes a date

    I've been fighting with this for about 4 hours - yes, quite literally... I've never been good with date stuff. I have a brain block.
    Anyway, here's the situation:
    I have an Access database that has a time/date field. There are no times, just a date in mm/dd/yyyy format.
    That table is a list of classes held for the past three years. I want to make a query that only shows the classes that have ended after January 1 of this year. I don't want to put 01/01/2010 in the query itself because I want it to still work next year.
    This is the current query:
    <cfquery name="classes" datasource="#DSN#" dbtype="ODBC">
    SELECT classesTitles.ClassTitle, classesTitles.ClassDesc, classCatagories.catagoryName, classes.classStart, classes.classEnd, classes.classNotes, owners.fName, owners.lName, classTime.timeSlot, classes.classID, classes.classLimit
    FROM classCatagories INNER JOIN (((classes INNER JOIN classesTitles ON classes.classTitle = classesTitles.classTitleID) INNER JOIN classTime ON classes.classTime = classTime.timeID) INNER JOIN owners ON classes.classInstructor = owners.ownerID) ON classCatagories.catagoryID = classesTitles.ClassType
    WHERE  classes.classEnd <  01/01/#DatePart("yyyy", now())#
    ORDER BY classes.classStart, classCatagories.catagoryName, classTime.timeSlot, classesTitles.ClassTitle
    </cfquery>
    I don't get any results, but I should get a list of every class that has an end date before January 1 of this year - about 200 records.
    When I swap around the where clause to:
    <cfquery name="classes" datasource="#DSN#" dbtype="ODBC">
    SELECT classesTitles.ClassTitle, classesTitles.ClassDesc, classCatagories.catagoryName, classes.classStart, classes.classEnd, classes.classNotes, owners.fName, owners.lName, classTime.timeSlot, classes.classID, classes.classLimit
    FROM classCatagories INNER JOIN (((classes INNER JOIN classesTitles ON classes.classTitle = classesTitles.classTitleID) INNER JOIN classTime ON classes.classTime = classTime.timeID) INNER JOIN owners ON classes.classInstructor = owners.ownerID) ON classCatagories.catagoryID = classesTitles.ClassType
    WHERE  classes.classEnd > 01/01/#DatePart("yyyy", now())#
    ORDER BY classes.classStart, classCatagories.catagoryName, classTime.timeSlot, classesTitles.ClassTitle
    </cfquery>
    I get EVERY class in the database, and I should only be getting about 50
    The classes are about 8 weeks long, the begin date and end date are in the database as date/time fields, so I need to show everything that ended in 2010, regardless of when it started.
    I'm sure it's something glaringly obvious, but it's escaping me.
    THANKS
    Michelle

    The format of your date field in access is irrelevent to the situation at hand.  Use proper date objects instead of trying to build a suitable string.  For the first of January of the current year, the coldfusion functions createdate(), year(), and now() are your freinds.  Then, in case Adam's post was not clear, use cfqueryparam with the resulting variable.

  • How do I create an automator variable for a path that includes a date?

    I like to use Image Capture to scan documents into a hierarchy of folders under my ~/Documents directory that are organized by year and document type.  For example, I have
    ~/Documents/archives/2011
         /Misc
         /Utilities
    and
    ~/Documents/archives/2012
         /Misc
         /Utilities
    for archiving miscellaneous docs and utilities bills. Now, switching folders in Image Capture is annoying so I want to use the Automator support built into that app to direct the scanned images to ~/Documents/archives/<Current Year>/Misc or ~/Documents/archives/<Current Year>/Utilities.  I was able to do this with separate Automator workflows, each with a hard-coded path to the destination folder.  For example,
    What I would like to do is use an Automator variable to dynamically determine ~/Documents/archives/<Current Year>/Misc.  I see variables for Home, Documents, and Current Year.   However, when I try to create a new path variable it only lets me choose a full path to a Finder folder.  How do I combine Documents and Current Year variables with the "archives" and "Misc" folder names to create a new path variable?

    Well now, you went and made me learn something today.  In the Variables Library, under Utilities, is a variable named AppleScript.  You can put a small script into this that evaluates to your path, for example:
    ((((path to documents folder) as text) & "archives:" & (year of (current date)) as text) & ":Utilities") as alias
    If the script evaluates to a proper path, it can be used wherever any other path can - you can experiment by looking at the results of a Get Value of Variable action.

  • How to find table that store real data for field 'BETRG' ?

    1) datasource  0HR_PY_1 include field 'BETRG' in R/3 source system; extract structure HRMS_BIW_PY1 for datasource 0HR_PY_1, however structure is not used for stroing data. Question: how can we find table which store real data for the field  'BETRG'?
    2) If I want to add one type call department leader type which already defined in one enhanced HR table, to calculate the total amount using field 'BETRG'  according to department leader type. Should I enhance datasource  0HR_PY_1 by adding department leader type or create new view based on enhanced HR table and another table that include 'BETRG' data, also create new datasource based on this view later on?
    Thanks!

    Hi,
    Check this for Payroll Data (Transaction Data) 0HR_PY_1
    http://help.sap.com/saphelp_nw70/helpdata/EN/a5/94e8288eec11d4b2fb00010220c65f/frameset.htm
    The extractor for payroll results reads data from payroll cluster PCL2, not from standard tables.
    thanks,
    JituK

  • PE9 "The file is damaged or is a format that cannot be included in the Organizer"

    I am trying to rebuild my Photoshop Elements 9 Organizer content after a previous computer was physically damaged beyond repair.
    I reinstalled PE9 and told it to import the image files from my HDD. It imported a large number but also rejected a large number with the message "The file is damaged or is a format that cannot be included in the Organizer".
    These are files which were happily resident and accessible in the previous PE9 installation on the now-dead computer and there is nothing special about them. They are almost all .JPG format (this is not a RAW or CR2 problem) and those that I have accessed by other means (e.g. with Irfanview) are not damaged.
    Can someone tell me why PS9 is not able to import these files ?
    Thank you.

    Hi pacman110,
    I was getting the same error message when importing a folder with only jpg images to PSE 9 Organizer (trial version).
    Since I read a couple of threads where corrupted EXIF data was a possible reason for import failures, I changed the EXIF data - in the Windows Explorer's file properties dialog (Win 7) - to some value, applied it and changed it back again. After that the import worked fine for that file.
    Later I figured out, that all images causing the error were previously tagged in Picasa 3 and later untagged - so these images actually had no tags at import. Tagging the image(s) again (in Picasa) also seemed to solve the issue.
    In my case it unfortunately didn't solve the problem, because I wanted to get rid of the Picasa Tag (IPTC keyword). Therefore I removed it using the file properties dialog.
    Picasa still shows the image as tagged though. Removing the - on the file non-existing - tag in Picasa results in the same issue as above. At this point the only workaround is to remove the tag in Picasa, close Picasa and set and remove some tag with Windows Explorer, which is pretty annoying regarding the amount of files.
    Conclusion: removing a tag with Picasa seems to make jpg images unimportable to PSE 9 Organizer.
    Workaround: Add the tag again or remove with Windows Explorer or remove tag with Picasa, close Picasa and then tag/untag the image(s) with Windows Explorer.
    Maybe this helps.

  • Using USB NI-6008 on LV7.1 the results data has to be in Excel. It looks as cluster data format that i can not insert into excel VI

    I am Using USB 6008 with LV 7.1. The application is voltage logger and i would like to use excel and upload the data . The Columns will be the channels and the rows will be the data.
    The data comes from the DAQmx vi not like a simple string or an number it is kind of cluster data
    which contains strings and numbers and more for each measurement.
    I tryed to work with spraedshit and it goes ok but it is not conveniant to convert later to excel.
    Do you have a solution for that please?
    (How to extract the data from the cluster type format that is used with USB6008).
    TX arik
    Attachments:
    USB-6008-r3.vi ‏80 KB

    Arik:
    I hope all is well. If you are trying to write data to a text file along with the header information, you could do the following:
    1. Open a reference to a file and write the header information right away.
    2. Do your continuous acquisition (in a loop) using the 6008 and write the data to a file everytime.
    3. With the proper formatting, your colums will represent channels and your rows data.
    Please take a look at the attached example and let me know if you have any other questions.
    Regards,
    Rudi N.
    Attachments:
    WriteFilewHeaders.vi ‏64 KB

  • To convert date dd/mm/yyyy in Timestamp format

    hi
    I want to convert date of format dd/MM/yyyy, which get from user by PropertyUtils.getSimplePropetrty(form, "startDate"); , into Timestamp format...........
    please help me in this regard.......
    1904

    ya mean it from java.sql.Timestamp
    and also I am using getTime() method but giving
    root cause:
    org.apache.commons.beanutils.ConversionException: Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff
    and
    Caused by: java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff
    at java.sql.Timestamp.valueOf(Timestamp.java:160)
    at org.apache.commons.beanutils.converters.SqlTimestampConverter.convert(SqlTimestampConverter.java:157)

  • Formatting an XML string that has a date

    Hi All - new to this forum!
    Not familiar with XML operations and seeking some advise. I have a field that contains XML text that has a date within that I want to extract and format appropriately for some reports.
    Getting to the date portion of the field is not pretty (original code below) and could desire some work itself, but the real problem lies in formatting the date once extracted; sometimes the date text is in the format of "Month DD YYYY" and other times "DD Month YYYY" so the below code fails if the latter is found.
    SELECT TO_DATE(RTRIM(SUBSTR(email_variables, INSTR(email_variables,'CHECKIN_DATE')+22,18),']]></CHECKIN_DATE><CHECKOUT_DATE>]'),'Month DD YYYY') CHECKIN_DATE,COUNT(*)
    FROM t_ecomm_relations_queue
    WHERE code_corr_ecat = 'PREA'
    AND status IN ('A', 'R')
    AND TO_DATE(RTRIM(SUBSTR(email_variables, INSTR(email_variables,'CHECKIN_DATE')+22,18),']]></CHECKIN_DATE><CHECKOUT_DATE>]'), 'Month DD YYYY') < TRUNC(SYSDATE) + 7
    AND TO_DATE(RTRIM(SUBSTR(email_variables, INSTR(email_variables,'CHECKIN_DATE')+22,18),']]></CHECKIN_DATE><CHECKOUT_DATE>]'), 'Month DD YYYY') >= TRUNC(SYSDATE)
    GROUP BY TO_DATE(RTRIM(SUBSTR(email_variables, INSTR(email_variables,'CHECKIN_DATE')+22,18),']]></CHECKIN_DATE><CHECKOUT_DATE>]'),'Month DD YYYY');
    Any ideas for more efficient code or options for formatting is appreciated.
    Thank you!

    The best thing to do with a date you want to report on, is to not store it corrupted inside XML.
    Multiple reasons why are discussed here.
    If you are stuck with the ugly inefficient design, then you are probably stuck with ugly inefficient code as a result.

  • "The file is damaged or is a format that cannot be included in the Organizer"

    I have been "repairing" or "restoring" an old photo using PSE 3.0. I scanned the photo to get it into my computer. I began by making 2 copies of the image in case I goofed and needed to start anew. I began "cleaning and cloning" [my terminology, not Adobe's] on a part time schedule. At the end of each sitting, I would close PSE and save the work back to the original file in "My Pictures". [I expect to get chided on this, so fire away.] After I had moved the image into and out of PSE a few times, I was presented with the phrase: "The file is damaged or is a format that cannot be included in the organizer." PSE will not re-open the image now. The Properties show the file to be "Adobe Photoshop Elements Image" and the file name ends with .PSD . I cannot remember precisely what steps I took to close PSE and save the results the last time I worked on the image. I have "restored" or "repaired" about a dozen other old images thus far with satisfactory results [ I may look back and marvel at the naivete of that statement later] and this never happened before. Is this image forever barred from being imported back to PSE for further work? Should I begin the project from scratch with one of the spare copies? I have been using "Adobe PSE 3.0 Classroom in a Book", and "The Missing Manual" [Barbara Brundage] as my guides. Do I need to use the Photo Organizer exclusively to store my "works in progress"? I am using Windows XP Home.

    Larry,
    >save the work back to the original file
    As long as you have a backup (as you do) and are not repeatedly saving as jpg which will progressively degrade the file there is nothing wrong with this procedure. (You should save as psd or tif.)
    I don't know what happened to corrupt the file but you may be able to save your work. Download the free Irfanview from here:
    http://www.irfanview.com/
    Try to open the corrupted psd. If successful save it to another name as psd and again as tif. Then see if either or both can be opened in PE3.
    >Do I need to use the Photo Organizer exclusively to store my "works in progress"?
    No. I never include some projects in Organizer unless I want to be able to find them easily later based on multiple criteria.
    Let us know how you make out.
    Bob

  • How can I generate a data merge that includes a barcode from excel spreadsheet to InDesign?

    Can you please advise if the following process is possible within InDesign CS 5.5? (Mac OS 10.8.2).
    We need to create a data merge that includes a barcode. The data merge is for several thousand records.
    We have a customer-supplied Excel spreadsheet that contains seven fields, one of which is a number that ultimately needs to print as a barcode when we make the data merge in InDesign.
    As you would expect, the conventional six fields data merge perfectly - but we can't find a way to make the barcode print correctly within the data merge.
    We have investigated several possible solutions without success.
    Some solutions suggest a plug-in for Excel to convert the number into a barcode whilst still in the spreadsheet - but this doesn't come across correctly when we import the CSV file into the InDesign data merge.
    We have investigated certain third party software applications but none provide the full solution we require. Some, for example, appear to create the barcode within the Excel spreadsheet but don't produce the barcode correctly when we data merge in InDesign; and some will allow us to create a one-off barcode within InDesign but have no automated way of retrieving the thousands of Excel numbers and turning them into barcodes.
    We have also come across possible 'font' solutions but have had no success with these either.
    For a previous job we needed to produce we outsourced to a specialist mailing company, who assured us they produced the whole job (very quickly) within InDesign. They, understandably, won't tell us how they did it. But, given the speed with which they produced the job for us, we imagine - with the correct software - the whole process is easy to do.
    Can you please advise?

    See second posting atHow do I generate a data merge in InDesign from an excel spreadsheet which includes a barcode

  • Aperture was not able to adjust the date and time of the master file "2008-06-22 at 14-41-14.jpg" because it has a format that does not permit date modification.

    I can't seem to find a way to update the date/time of a master file. There is a format issue but I can't seem to figure out how to correct it.
    Aperture was not able to adjust the date and time of the master file “2008-06-22 at 14-41-14.jpg” because it has a format that does not permit date modification.

    Can you post an ipconfig /all from the server and the DC?
    Robert Pearman SBS MVP
    itauthority.co.uk |
    Title(Required)
    Facebook |
    Twitter |
    Linked in |
    Google+

  • Can we configure Oracle 10g xe so that it accept date in yyyy-mm--dd format

    I am facing problem in inserting and updating data in oracle server through jdbc. its java.sql.Date class sends date in yyyy-mm-dd format while oracle requires date in dd-mmm-yy format. can we configure oracle server in such a way that we may send date in yyyy-mm-dd format to insert and update?

    People should be sure of their information before
    posting, even more so if they have an Oracle Ace
    credential,as they're more likely to be believed. Not sure what you are saying.
    The way I read it, Avi stated that overriding the NLS_DATE_FORMAT as an initialization parameter WILL NOT affect the way XE works, and you still need to set the parameter at the session level.
    This is true.
    As demonstrated here, where I
    - startup my XE (SuSE 10.1 Pro/Linux),
    - show the NLS setting,
    - log on to a regular user, -
    - show the system date,
    - change the NLS_DATE_FORMAT system wide by updating my PFILE,
    - restart the database
    - show the NLS_DATE_FORMAT
    - extract the system date.
    As you see from the console session, the date still comes out in the format defined by the NLS_TERRITORY, in spite of what the global NLS_DATE_FORMAT indicates.
    fcc@fuzzy:~> su - oracle
    Password:
    oracle@fuzzy:~> sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 6 08:06:05 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  448790528 bytes
    Fixed Size                  1259400 bytes
    Variable Size             134219896 bytes
    Database Buffers          310378496 bytes
    Redo Buffers                2932736 bytes
    Database mounted.
    show parameter nls_date
    Database opened.
    SQL>
    NAME                                 TYPE        VALUE
    nls_date_format                      string
    nls_date_language                    string
    SQL> connect test/test
    Connected.
    SQL> select sysdate from dual;
    SYSDATE
    06-JUL-07
    SQL> alter session set nls_date_format='YYYY Mon DD';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    2007 Jul 06
    SQL> connect / as sysdba
    Connected.
    SQL> select sysdate from dual;
    SYSDATE
    06-JUL-07
    SQL> create pfile='/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/xe.pfile' from spfile;
    File created.
    SQL> !vi /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/xe.pfile
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup pfile=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/xe.pfile
    ORACLE instance started.
    Total System Global Area  448790528 bytes
    Fixed Size                  1259400 bytes
    Variable Size             134219896 bytes
    Database Buffers          310378496 bytes
    Redo Buffers                2932736 bytes
    Database mounted.
    Database opened.
    SQL> connect test/test
    Connected.
    SQL> connect / as sysdba
    Connected.
    SQL> show parameter nls_date
    NAME                                 TYPE        VALUE
    nls_date_format                      string      YYYY Mon DD
    nls_date_language                    string
    SQL> connect test/test
    Connected.
    SQL> select sysdate from dual;
    SYSDATE
    06-JUL-07
    SQL>                                                            

Maybe you are looking for

  • How to set key fields in a Database view

    Hi guru's iam balaji,plz guide me with how to set key fields in a view.......that field is a non key field in the base table.... thanks in advance, Balaji.S

  • Error while accessing EJB method from JSP

    Hi, I am trying to access a bean from a JSP and have the foll. code piece: String url = "t3://localhost:7001"; public Context getInitialContext() throws Exception { Properties p = new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jnd

  • Helix 3701cto Windows 8.1 freezing

    Hi, I bought a Helix 3701cto about a year ago. It came with Windows 8, which had some issues but somehow worked. When the update to 8.1 came I reinstalled to have a clean system. With the small 128Gb ssd I absolutely needed the space. While working a

  • I'm changing of Mac, do I need to transfer my iPhone savings to the future mac ?

    So, I wanna know if I need to transfere my iPhone and iPad syncs to put them on my new mac, and if I don't, will I loose my contacts and Messages ? It's pretty urgent, thanks.

  • Itunes locking up when syncing phone

    Since upgrading to the most recent version of itunes I've had a problem trying to sync my iphone 3g. The software is utd on the phone as well. As on as I plug the phone in itunes starts up, (auto sync is turned off) and about 15 seconds later itunes