Conversion from RAW to this day!

Hi all
Im having a problem with the conversion of RAW data into type type Date. I have the column with the RAW type (1024) and the date value is converted to a byte value and the value of the byte is as
ACED0005737200126A6176612E73716C2E54696D657374616D702618D5C80153BF650200014900056E616E6F737872000E6A6176612E7574696C2E44617465686A81014B5974190300007870770800000126084D1B407800000000

Now. what I need convert the date value.

My data is lik this.

"Select * from test1 where processfile_ = ' 1909 ';

PROCESSFILE_ 1909
BYTES_ ACED0005737200126A6176612E73716C2E54696D657374616D702618D5C80153BF650200014900056E616E6F737872000E6A6176612E7574696C2E44617465686A81014B5974190300007870770800000126084D1B407800000000
INDEX_ 0

BYTES_ column is of type RAW (1024 char).

can someone help me on this?

Published by: user8891630 on January 13, 2010 01:24

What this sample?

scott@ORCL>
scott@ORCL>select * from v$version;

BANNER
--------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE    11.1.0.6.0      Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production

Elapsed: 00:00:00.14
scott@ORCL>
scott@ORCL>
scott@ORCL>with test
  2  as
  3    (
  4      select utl_raw.cast_to_raw('21-JAN-2010') cola,
  5             '21-JAN-2010' colb
  6      from dual
  7    )
  8  select cast(cola as raw(15)) cola,
  9         cast(utl_raw.cast_to_varchar2(cola) as varchar2(14)) string_cola,
 10         colb
 11  from test;

COLA                           STRING_COLA    COLB
------------------------------ -------------- -----------
32312D4A414E2D32303130         21-JAN-2010    21-JAN-2010

Elapsed: 00:00:00.03
scott@ORCL>

Note: External cast function is used to produce the result formatted way. You can use the other functions to do the same thing.

Kind regards.

LOULOU.

Tags: Database

Similar Questions

  • How can I transfer all licenses/product information from 2002 to this day with a new email/AdobeID account?

    I work on my Mac IIci (System 7), PowerMac G3 (MacOS 9), iMac G5 (Leopard), Intel, PowerBook (Tiger), Intel iMac (Snow Leopard) and Mac Mini (Snow Leopard). I do not put any new Apple garbage level based on how they treat the legacy clients, mangle and bug - infested computer and thrive on planned obsolescence.

    So, my live 2002 far Adobe products. I totally understand the changes that adobe did, and also how they support us software engineers "gray hair". On that note, I need a little help in two areas.

    (1) I dumped Comcast and created my own domain specifically for email and so need to transfer all the previous account, the license and product information in my new email address.

    (2) I do a full 'clean' reinstall on my Mac Mini (Snow Leopard) and cannot find my Adobe PSE6 under license or a disk file DMG to save. I couldn't not prevailed of pre-7 downloads.

    I have my license and product information s/n, as well as all the doublets of my previous account.

    Please notify. Thank you.

    C.Gray

    'frankfenderbender '.

    To change your email:

    Click here to access your account Adobe ID online and sign in with your Adobe ID and password.

    In the navigation pane that appears, click on Manage account to open the page to manage the account.

    (You may be prompted to check your password.)

    Use the tabs at the top of the page to view your plans & products, change your email and contact details, change your password or update your profile and communication preferences.

    The download links for the old PSE6 are no longer available online.

  • I just bought a nikon d5500 has been added LR 5 does not support the conversion of RAW files for my new camera, if I upgarde to the latest version of LR and Photoshop support the d5500 has been added? This camera came out February 2015

    I just bought a Nikon d5500 has been added LR 5 doesn't support conversion of RAW files for my new camera, if I upgarde to the latest version of LR and Photoshop support the d5500 has been added? This camera came out February 2015

    Yes.

  • strange color (red & green) spots appear after conversion of RAW files to JPEG, someone knows how to fix this?

    Strange color (red & green) spots appear after conversion of RAW files to JPEG, someone knows how to fix this? Thank you.

    Thank you all, I use rather than ProPhoto RGB sRGB and it's better now. Thanks again.

  • Issue of conversion from string to DateTime to subtract the duration of 1 day in the XSLT file

    Hello

    I need to subtract the duration 1 day after the date of entry which is in the format "yyyy-mm - ddT00:00:00"(data type = String)
    I tried to use the available function: subtract-dayTimeDuration-from - dateTime () but this function expects the entry in the datetime data type and so on use of this I get Null as the result of the transformation.

    I used to convert the input string, dateTime() but it doesn't seem to work because I get the error "Invalid Xpath expression (null).

    Please help identify any other way I can convert the string to dateTime format and then subtract the duration. Or another way to subtract the length of the day 1 of the string itself.

    Thanks for the help!

    Hello

    It should work with the date in the format that you have... Look at the code, there may be a typing error... In addition, in BPEL, you must use the xp20 functions...

    Take a look at this...
    https://blogs.Oracle.com/Reynolds/entry/whats_the_time_mr_bpel

    I hope this helps...

    See you soon,.
    Vlad

  • A design of query for the conversion of time difference in days, hours, Minutes

    Hi all

    A design of query for the conversion of time difference of time in number of days remaining remaining hours minutes and rest in seconds. Made this one till now. Please suggest for all modifications, until now, it seems to work very well, kindly highlight for any anomaly.

    WITH DATA (startDAte, EndDate, Datediff) AS (SELECT to_date ('2015-10-01 10:00:59 ',' yyyy-mm-dd hh24:mi:ss'), to_date ('2015-20-01 03:00:49 ',' yyyy-mm-dd hh24:mi:ss'), to_date('2015-10-01 10:00','yyyy-dd-mm hh24:mi:ss')-to_date('2015-20-01 03:00','yyyy-dd-mm hh24:mi:ss') FROM dual)

    UNION ALL SELECT to_date ('2015-10-01 10:00:39 ',' yyyy-mm-dd hh24:mi:ss'), to_date ('2015-20-01 03:00:40 ',' yyyy-mm-dd hh24:mi:ss'), to_date('2015-10-01 10:00','yyyy-dd-mm hh24:mi:ss')-to_date('2015-20-01 03:00','yyyy-dd-mm hh24:mi:ss') FROM dual

    UNION ALL SELECT to_date ('2015-11-01 10:30:45 ',' yyyy-mm-dd hh24:mi:ss'), to_date ('2015-11-01 11:00:50 ',' yyyy-mm-dd hh24:mi:ss'), to_date('2015-11-01 10:30','yyyy-dd-mm hh24:mi:ss')-to_date ('2015-11-01 11:00 ',' yyyy-mm-dd hh24:mi:ss') FROM dual

    UNION ALL SELECT to_date ('2015-11-01 09:00:50 ',' yyyy-mm-dd hh24:mi:ss'), to_date ('2015-11-01 10:00:59 ',' yyyy-mm-dd hh24:mi:ss'), to_date('2015-11-01 09:00','yyyy-dd-mm hh24:mi:ss')-to_date ('2015-11-01 10:00 ',' yyyy-mm-dd hh24:mi:ss') FROM dual

    UNION ALL SELECT to_date ('2015-11-01 08:30:49 ',' yyyy-mm-dd hh24:mi:ss'), to_date ('2015-11-01 09:30:59 ',' yyyy-mm-dd hh24:mi:ss'), to_date('2015-11-01 08:30','yyyy-dd-mm hh24:mi:ss')-to_date('2015-11-01 09:30','yyyy-dd-mm hh24:mi:ss') FROM dual

    )

    Select

    trunc ((EndDate-StartDate)) days.

    trunc (((enddate-startdate)-to_number (trunc ((enddate-startdate))) * 24) hours)

    trunc (to_number (((enddate-startdate)-to_number (trunc ((enddate-startdate))) * 24-trunc (((enddate-startdate)-to_number (trunc ((enddate-startdate))) * 24)) * 60) Minutes,))

    (to_number (((enddate-startdate)-to_number (trunc ((enddate-startdate))) * 24-trunc (((enddate-startdate)-to_number (trunc ((enddate-startdate))) * 24)) * 60 - trunc (to_number (((enddate-startdate)-to_number (trunc ((enddate-startdate))) * 24-trunc (((enddate-startdate)-to_number (trunc ((enddate-startdate))) * 24)) * 60)) * 60 seconds))))

    data;

    Thanks for the answers in advance.

    AHA!

    TO_TIMESTAMP expects a string as input, so it first makes an implicit conversion from DATE to a string, in the format of NSL_DATE_FORMAT.

    To convert the TIMESTAMP DATE independently NLS_DATE_FORMAT, use

    CAST ( AS TIMESTAMP)

  • Bug? Tags accessibility conversion from Word 2007

    This seems to be a minor problem, but it is one that could create a lot of frustration for a disabled person using a screen reader to read tabular data in a PDF document.

    As you know, Acrobat plays well with applications Office allowing users to create (structured) tags, accessible PDFs from MS Office files. I just created a simple docx file with a (attached) table, and when I converted it to PDF, I noticed a difference in the tags that it creates from the conversion of Word XP. As see you in the Word file, the table is very basic, but one of its column headings is divided into two cells. It's actually a very common technique for the presentation of the data in the table. To automatically mark as cells of table header < TH > header lines in the PDF file, I put the first two lines of "Repeat header lines."

    Conversion from Word 2007 with the "Save as Adobe PDF", or any other method that uses the Acrobat plugin, creates a tree of tag that is missing a < TH > tag. I found the problem when I was testing a file with the JAWS screenreading software. Using the JAWS "active cell" command (Ctrl-Alt-Numpad 5) to announce the column headings. It reads the wrong header for the active cell because of the < TH > missing. So, in my example file, he announced $2 and $5 as amount 2010 rather than 2009. This could be quite confusing for a user, to say the least screen reader.

    Then, I compared the result to the new feature "Save as PDF or XPS" from Word 2007. This feature of the tag of the file properly and header to the height columns.

    Compare the joint "save-as-adobe - pdf.gif" to "Save-as-pdf - xps.gif. Note the < TH > tag empty (but necessary) in the image of the latter.

    As a validation test, I had a colleague with Word XP the file convert. These tags were right too. So this must be a problem between Acrobat and Word 2007.

    Someone at - it further comments on this? I'll conduct accessibility training and at the present time, it seems that the use of the Word 2007 conversion feature is the way to go.

    I'm using Acrobat 9 Pro.

    Thank you

    Joe

    Hey Joe,

    I feel your frustration. For any organization that needs or wants to commit to providing accessible information online
    a serious logistics problem raises its head. PDF, HTML, what is the right way to do (and it's possible)
    requires more resources (training, knowledge, hardware, software, changes to work flow, perhaps some staff members more).
    Is not "work smarter with less & pump more" in this place.

    Yes, it is useful (and necessary) for 'being one' with the 'paragraphs' - WCAG 1.0 - WCAG 20 S508.
    However, as soon as someone starts to provide PDF files which must be 'accessible' the first, most important reference is ISO 32000.
    The references of PDF from Adobe, which preceded the PDF becomes an ISO standard are useful; but ISO 32000 is the norm.
    In this documentation, there is a full discussion of what he * needs to be done to provide an accessible PDF.
    Without a good understanding of this content, other information tend to bring about a de-escalation of focus opacity, which can
    contribute to conceptual errors important view accessible PDF.

    Entry blog of Leonard Rosenthol AUC provides a link to the ISO standard permitted version Adobe (free) of the ISO 32000-1.
    http://www.acrobatusers.com/blogs/leonardr/Adobe-posts-free-ISO-32000

    You will find additional information useful in these two documents:
    (1) - PDF Accessibility QAnywhere (from the Acrobat SDK add-on)
    https://Acrobat.com/#d=J7bWW4LvNoznh8fHCsfZDg

    (2) - reading the PDF through MSAA
    https://Acrobat.com/#d=uIOvkVTP74kag3bXFJLIeg

    On the JAWS - Yes, very used. However, not the exclusively used on demand.
    If I use Windows Eyes, NVDA, a braille reader or something else then what?
    JAWS * not * defined 'is available '...

    Re: (1) (1)
    "Match and if...". »
    Consider "Stop front right on red".
    '' Respect '' is stop on Red - turn right
    'Intent' (aka usability) is stop on Red - Look Good to come from traffic that has the right of way - performance - when clear, turn right.

    But, at least, we don't talk of the "left on red" 8 ^)

    Re: (2). (2)
    Just an observation. A defective product that claims to be 'everything' may enter a sticky wicket entities (individuals/businesses).
    Put a high volume of defective products on its same does increase the probability that a "shadow".
    Quantity replaces quality just isn't a precursor to success.
    Target species - and national judicial action class action that has been taken against him with regard to the "accessibility" of services information online.
    Resolved now - see the web site of the NFB.

    Re (3) (3)
    Ah, but what would say Judy justice or judge Marily?
    Efficiency does not provide a product of the "whole".
    I doubt it will ever be a "one-click" seamless between the dominant products of one of the software houses.
    They are competitors intense. That it is not others providing provide a product of 'whole', right?
    For example, if the organization wants to 'make accessible PDFS' label then it pays transport costs - Adobe Pro, training, workflow appropriate, etc.
    which allow the delivery of PDF files meet the standards to which formed a well containing the tag output is PDF (accessible is a subset of this).
    There is no other way for PDF.
    If this cannot be done so there are always HTML as an acceptable method (for some it's the way privileged and only 'true').

    However, HTML is 'right' for accessiblilty is just as demanding in its own way.

    With each version of TA / dot release, JAWS - Windows Eyes - NVDA & others hone in on using PDF ISO 32000 Standard closer.
    This means that if you deploy "accessible" PDF, you will need to provide PDFS who live ISO.
    Do not forget that the paragraphs of S508 began when, in fact, HTML was 'it '. In terms of software that has been there are geological ages.
    For contemporary AT effectively analyze the PDF, the PDF file must be a PDF containing the tag well trained with a format/layout that reflects a logical hierarchy.
    Creation of all that it should start in the environment of creation with the author of the content.
    PDF post-processing output then ensures that the elements (tags) PDF are of the correct type, have the required attributes, etc..
    Without this, AT will not be able to provide the use of effect for the end user of the PDF file.

    So, for AT correctly 'work' the PDF file, elements of * must * have set the Scope attribute, values of row value and scope of column defined, etc..

    Scope, line Span, range column, ID of the Table and headers must be added in the framework of the post-processing in a PDF using Acrobat Professional.
    An alternative is the plugin Netcentric CommonLook for Acrobat Professional. What it does, Acrobat Pro can do; However, the CommonLook
    provides a robust user interface. Disadvantage: some 1 k $ per seat is not 'cheap' and it has a * steep learning curve * (Sitka Pass?).

    Two related table resources run this AUC thread (in post 3 and 4). They can be of some use.

    http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=23178

    When the "smelly things" feeds into the Lair of the fan, it is prudent to not be directly downstream, huh.
    Consider the target and the situation, in which they began.
    Consider delivery of the PDF accessible agencies fedgov or stategov.
    They won't be in front of the fan if the ease of use of PDF files becomes a problem.
    It will be rather those submitting. After the Agency said "accessible".

    Better to slow down and right or loading ramp of resources in support of "Annex" as to the stake themselves as someones 'feed' tomorrow, no.?

    Ultimately, PDF, HTML, or any 'format', accessibility is the ease of use + compliance.

    Needed improvements in the professional development and training, software/equipment, * time *?
    Yes. But, all of this boils down to 'where the rub the road' - what tires are you on?
    It can be done. I do a little bit at a time all day. Often, this is what it takes.
    Products to be delivered are provided; but, with no bad labeling and advancement is identified, celebrated and everything continues until the
    the 'road' is filled correctly.
    Won't wash outs, bridge collapse or what not tomorrow .
    (But then I'm a fan of "Holmes on Homes", which can go a long way toward understanding my point of view when it comes to accessible PDF).

    Re: function() {Return...
    Good question.
    Write my guess - either to leave the cut & paste that I made at the start of the application I used to assemble and captures screen or something related to the Adobe Forum application.
    It may be that I am "special"; If that were the case we my Lotto occasional quick choice would have been a big winner $ ago.

    FWIW-
    You will find a number of "Accessible PDF" related to resources in discussions at the Forum of the accessibility of the AUC.
    http://www.acrobatusers.com/forums/aucbb/viewforum.php?id=18

    Two PDF Accessible related on demand seminars are also available.
    Search for Duff Johnson and Charlie Pike (at page 2) seminars.
    http://www.acrobatusers.com/learning_center/eseminars_on_demand

    Be well...

  • How can I transfer all the messages/conversations from my iphone to messages.app on my mac?

    Hi people,

    Maybe someone can help me:

    How can I transfer the entire contents of my messages app on my iphone to the messages on my mac app?

    the problem is, when I create in the messages app a new account with my appl ID (for example on a new mac) I also use with my iphone, so everything worked very well for the starting point of creation.

    BUT... some older posts, I have on my iphone will appear in the new messages.app - account on my mac.

    I have thousands of old messages and conversations, I now can only see on my phone or with some more or less useful third party apps. those who cannot vonert messages to a PDF file or som other format useful semi > but no one can transfer it in the messages app.

    • I learned that apple does not save my imessages for more than 72hours (which makes me happy because of the confidentiality of the data), so I can't take via imessages-servers.
    • I also learned that it is possible to transfer data from the library files to a previous account. but unfortunately, I've just accidentally deleted those files, so this solution won't help:
      • I had serious problems to enable the transfer of SMS on a second mac (I guess I failed it in between), I went in the ususal trial & error-process and disabled the account of messages on the mac.
      • After that, I deleted all caches using onyx. then I restarted the iphone and the macbook and restarted the messages app.
      • the app behave like the 'never used before': I entered my apple, app ID remind my cell phone number and all other settings from the old account, but THE MESSAGES WERE GONE alle.
      • I don't know I deleted the using onyx. but there should be a way to win back them?

    the system configuration:

    • Start "2011-17 - macbook pro with latest el capitan (10.11.6)"
    • iPhone 6 with latest iOS (9.3.5)

    PLEASE Please HELP me - even if I use third-party software...

    Hello

    Can't do.

    iMessages are pushed by the iMessages servers to devices recorded at this time there.

    They are not held on servers and are deleted as soon as receiving devices accept.

    (that is, it is not like electronic mail that can be left on the server (POP) or rest on the (IMAP) server to be retried by other devices that can identify you later).

    How the files/iMessages are stored on the iPhone and the way the Mac stores are not the same.

    It is possible to have the iPhone one store backup via iTunes on Mac.

    From there on, it is possible to use third party applications to read (check out them and make them as text files), but they cannot be forced into Messages.

    By copying and pasting entire conversations from one chat to another it's the Mac send s just like a long piece of text with few (not in use) formatting.

    Can also have problems with actually duplicate the whole file with space on the iPhone in the first place.

    19:44 Friday. September 2, 2016

     iMac 2.5 Ghz i5 2011 (El Capitan)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     iPhone and iPad (2)

  • Windows to this day does not work on my Windows 7.

    Original title: windows update

    Windows to this day does not work on my windows 7, the new facility. its valid correctly.

    Base on any relocation is to disable windows update search ("Never search updates", restart setting). Then install preferably a recent customer of update windows manually, KB3102810. From this point on windows update is used for the initial search.

    Best regards, VZ

  • How can I remove the sort of conversations from windows livemail, but keep the chronological order?

    How can I remove the sort of conversations from windows livemail, but keep the chronological order?  The standard options do not seem to understand my Inbox of sort by chronological order of!

    On the view tab, select Conversations > Off. Then click on display a line below the list of messages. Right-click on a column heading to select the column, drag a column header to reorder the columns, and click on a column heading to sort by that field.

    Windows Live Mail has its own support at the Windows Live Solution Centerforums. Please address any other question you may have on one of the forums on the right side of this page.

    Noel

  • Conversion from a physical to a virtual domain controller domain controller

    Hello everyone!

    I was wondering if you guys can help me. We are running a physical server Proliant DL 360 Gen 8 as our physical domain controller. The host runs HP VMware 5.5 Update 1, and the domain controller running Windows Server 2012

    I am looking to convert it to a virtual DC as a backup. I would like to add it to a host computer currently running three VM. I have a few questions.

    (1) is there a way where if the physical domain controller goes down, that the virtual server is brought online automatically?

    (2) are there caveats to a physical domain controller in a virtual domain controller?

    (3) is there a step by step guide on the process of conversion from a physical to a virtual domain controller domain controller?

    (4) what should I stop all services on the physical server during the conversion?

    (5) that I would be able to take the virtual domain controller and make like a secondary domain controller?

    Thank you

    No, you misunderstood. For additional availability, you must implement a 2nd DC as a virtual machine now and leave this race. Don't bother to put something automagic, just the 2nd DC easy running.

    Backups should always be done on a regular basis, because they might be useful if two domain controllers fail for some reason any.

  • Going from raw devices to ASMLib

    Hello, I decided to migrate from raw devices of ASMlib (Oracle 10.2.0.5, RHEL5). Seems to be that this is not a trivial task. Having 2 ocr, 3 voting and 1 data, all mapped as/dev/raw/rawX partititons.

    Thus, base of data of shutdown, and then click stop the ASM instance, after this attempt to run:

    /etc/init.d/oracleasm force-renamedisk/dev/sdb1 OCR1 (so this is a first disc OCR, which is now linked to/dev/raw/raw1), but still get an error:

    Rename the disk ' / dev/sdb1 ' to "OCR1": [FAILURE]

    Any ideas, what is the problem?


    Is NOT supported to install files Oracle Clusterware (Oracle Cluster registry) and the files on disc with right to vote in groups of disks ASM Oracle 11.1 and prerequisites.

    Is supported for install files Oracle Clusterware (Oracle Cluster registry) and voting disk files in Oracle 11.2 ASM disk groups and above.

    Just it.

    Check installation Docs from its release:

    Storage of General Considerations for Oracle Clusterware

  • Conversion from PDF to DOC in a special way...

    Conversion from PDF to DOC in a special way...

    I have a pdf form. I need to convert it to doc because I use Goldmine CRM to merge or insert fields in the doc.

    The easiest way for me is if I can simply consider each page of the PDF as an image and convert the pdf file into a word document composed by images. Each page of the word document is an image.

    Then I can use an overlay with transparent textbox to insert the fields at my convenience.

    You know a method to do this with the results and a good resolution?

    Best regards

    Export pages as images is possible via the file > save as menu in Acrobat, but I don't see why you want to do. Acrobat can save a PDF file as a Word document ordinary.

  • How to convert a decimal number to this day?

    select to_date('09:40:00','hh24:mi:ss')  - to_date('08:15:00','hh24:mi:ss') from dual;
    This code generates this number:.059027778
    I want this number to represent the difference between the two time in hours and minutes

    urgent please

    Thank you

    There is nothing urgent in this forum...

    select numtodsinterval (to_date('09:40:00','hh24:mi:ss')  - to_date('08:15:00','hh24:mi:ss'), 'day') from dual;
    
  • 'On this day' feature for pictures of mac, it exists?

    Hello

    I like the feature of Facebook "on this day" but would like to have on my mac instead of downloading my collection of entire photo on FB for this to work over one year, etc.. Does anyone know how to reproduce it in a script, 3rd party app etc.?

    There is no such feature in Photos

    You could do it with the help of a smart album

    LN

Maybe you are looking for