question about the DATE

I have two questions:

1.I tried these six instructions:
select to_date(11*2,'hh24miss') from dual
select to_date(11*2,'hh24ssmi') from dual  --error
select to_date(11*2,'mihh24ss') from dual
select to_date(11*2,'misshh24') from dual  --error
select to_date(11*2,'sshh24mi') from dual
select to_date(11*2,'ssmihh24') from dual  --error
some mask format returned error, while others do not. someone knows why?

2. the default date format database storage Oracle via SQL Developer directly affected by the NLS parameter in tools-> Preferences-> database-> NLS?
because this statement:
select to_date('24-jun-10') from dual
return on 24 June 10 when I updated NLS me-jj-aaaa and return June 24, 2010 when NLS is set to dd-MON-rrrr.

I use SQL Developer 2.1.1.64. Thank you

some mask format returned error, while others do not. someone knows why?

Online documentation will tell you...
http://www.Oracle.com/pls/db102/search?word=date&PartNo=

Tags: Database

Similar Questions

  • Questions about the data reporting PowerCLI store

    Hello

    I have a problem with a script that I use and I'm looking for an idea on the problem.

    I have a script that gathers pretty much all the information on the virtual machine in my cluster. (Disk size, free disc, data store).

    Most of the time, it works very well. But there is something that bothers me little. It doesn't report the data store that each VM is linked to. It works for most, but on a select few, it's not.

    I wonder if there is something in my script which is the first cause, or if it is a question of VSphere.

    My script and the output is attached.

    Thanks in advance for the help.

    -Aaron

    I was able to get the warehouses of missing data as well.

    That's when the VMDK are stored on more than 1 data store for a specific virtual machine.

    In this case, the line

        $myDS = Get-Datastore | Where { $_.Id -eq $VM.Datastore}
    

    nothing will store in $myDS because $VM. Data store is an array of MoRefs.

    In fact you try to map the partitions in the guest OS with data warehouses that host the VMDK files.

    There is no easy solution for that I fear (there are number of threads in this community who are trying to do the same thing).

    I fear that there is no real solution for this problem

  • Question about the dates of the file download.

    Why the dates of creation, 'last change' and especially 'last opening' all appear as a date a month when I just downloaded Mozilla for the first time on my Mac? Edit

    It's information from the database that you downloaded
    the file from.

  • Questions about the data form

    Hi guys,.
    just a general question: when we do a 'big' data form, it leads to overall performance problems or crashes. My question is, which is to limit the size of data? Is it the fact that Essbase has pull up a lot of data at once? Is it the fact that web applications are limited in quality? I would just get the thoughts of people on this general issue.

    Another General, somewhat vague question: IF I didn't make a huge data form, say just 10 departments, 400 accounts by cost on the lines and the period, some scenarios and years on the columns, it would help if I created a machine dedicated to planning web app? Increase RAM/CPU help?

    Take a peek on "My Oracle Support" there is an article "Hyperion Planning data form Design Considerations [ID 779502.1].
    I think that should answer most of your questions.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • question about the date as output parameter

    Hello
    I tried the following procedure to extract the out parameter as DD/MM/YYYY
    CREATE or replace PROCEDURE p1 (p IN NUMBER, x OUT date, y OUT date) 
    IS 
    BEGIN    
    x := to_date(to_char(sysdate,'dd/mm/yyyy'),'dd/mm/yyyy') ;
    y:=  to_date(to_char(sysdate+1,'dd/mm/yyyy'),'dd/mm/yyyy') ;
    END P1; 
    
    declare    
    foo date;    
    bar date; 
    begin    
    p1(5,foo,bar);    
    dbms_output.put_line(foo || ' ' || bar); 
    end; 
    
    And the output is   17-AUG-12 18-AUG-12   , instead of   17/08/2012   18/08/2012  
    The nls_date_format is: DD - MON - RR

    How can I get the output as dd/mm/yyyy format parameter.
    Thank you

    Published by: Smile on August 17, 2012 08:31

    Because your data type is date, the default output is the NLS_DATE_FORMAT.

    You can set NLS_DATE_FORMAT jj/mm/aaaa, but in reality, it would be better to do the following:

    Declare your out parameters as varchar2
    Convert date to be returned to your format of binding and value the more parameetrs to have this value

  • Question about the Date and TO_CHAR fields

    I ran into a date format today I need to replicate but I don't default with. I work with a based REST webservice that wants its dates and hours of formatting to ' 2009 - 09-29T 17: 00:00 - 04:00 '. When is 2009-09-29 17:00 et. Is there an easy way to reproduce this output in oracle, so I can feed him in the web service?

    You are looking for:

    with my_tab as (select to_timestamp_tz('2009-09-29T17:00:00-04:00', 'yyyy-mm-dd"T"hh24:mi:ssTZH:TZM') col from dual)
    select to_char(col, 'yyyy-mm-dd"T"hh24:mi:ssTZH:TZM') ts_col
    from   my_tab;
    
    TS_COL
    -------------------------
    2009-09-29T17:00:00-04:00
    

    Published by: Boneist on October 6, 2009 16:59
    Realized it's timestamp-> tank you were after, not the reverse. Fixed!

  • question about the date of

    Hi all

    S guy in a form i m having a point is to say refdate, now I want to work like that
    I can insert data to date in DDMMYY format and when I press tab or switch to another element my date should come the
    format dd/mm/yyyy to the point refdate

    Please help me...

    Published by: Christine Konditamde on July 27, 2009 22:08

    Navdeep,

    I wrote JJ/MM/RRRR not DD/MM/YYYY. If you use RRRR instead of YYYY, then the user can enter the 2 digits of the year, and it will automatically convert the 4 digits of the year.

    Kind regards

    Manu.

    If this answer is useful or appropriate, please mark. Thank you.

  • A few questions about the use of data and Cliq

    I have the cliq, however I chose to not get 3G (so I bought full fare). So I have a few questions about the phone and the use of 3G / 2 G/Edge:

    1 - is possible to disable completely the 2G / 3 G/Edge? I know you can switch between them, but are anyway just tell the phone to stop using them altogether since I'm not subbed to the service?

    2. when the update takes place, I guess we'll have to reconnect motoblur and etc, but if I don't have 3 G will I have motoblur connection problems after the update? Or he keeps the latest wifi settings so that it would connect to wifi to connect. When I first got my phone it was not a problem b/c I had 3G for the first month.

    I hope that makes sense, thanks!

    To stop all the data, I would like to download an application called APNDroid. He cut them all down. When you log on to blur you have 3G or WIFI doe this without getting a timeout error. During the process of setting up your Blur account, you can press the menu button and set up your wifi to work, this will connect you to Blur and your phone will be connected to the blur. If I were you I would be rethinking to do a data plan since you are really losing out on most of your main features of phones. It's your choice, however.

  • I have a simple question about the meta-data.

    Hello. It is a simple question about the meta-data. How can I get the video bitrate of a flv or mp4 (video playing via NetStream file) file

    right now I have this:

    Code
    var netClient:Object = new Object();
    netClient.onMetaData = function(meta:Object)
    {
    for (var in meta props) {}
    trace (props + ":" + meta [props]);
    }
    MovieClip (root) .durations = meta.duration;
    trace (MovieClip (root) .durations);
    };
    NS.client = netClient;

    And my output is:

    videocodecid: avc1
    audiocodecid: m4as
    aacaot: 2
    Width: 960
    AudioChannels: 2
    videoframerate: 23.976
    TrackInfo: [object Object], [object Object]
    moovposition: 32
    avcprofile: 77
    audiosamplerate: 48000
    avclevel: 31
    seekpoints: [object Object], [object Object], [object Object], [object Object]
    height: 540
    Duration: 221.312

    As you can see, there is nothing of video bitrate.

    I know that the video bitrate of my videos, but then I have to manually type each number of bitrate into my flash project, and it would be such a fuss when I have a lot of videos. Would be nice if flash can detect the video bitrate.

    It's for my online portfolio.

    Why you divide by 8?  If you want to convert bytes into bits, multiply by 8.

  • Just a quick question about the appearance of the cluster

    Hello, this is Matthew, just a quick question about the appearance of the cluster

    Is there anyway to rearrange the order of the elements? I know cutting automatic resizing, I could move the items by hand. But if I use the cluster somewhere else, I have to move the items again...

    What I want is of the order of "Mx My Mz Ax Ay Az Temp voltage CS".

    Is there a quicker way to deal with?

    THz so much!

    You can right-click the border of the cluster and choose "arrange control cluster...". "The user interface is not as intuitive as it could be, but it will allow you to reorder items. If you use the cluster in several places, you should make the cluster in a type definition and replace all current uses of the latter with the type definition, so that they all match. They will also update automatically when you make changes to the type definition. Otherwise, you could have a situation where you have multiple groups with the same data types, but with elements in a different order, and your data will be getting a new denominated, when wire you the whole clusters. The data will be in the same order, but given that the item labels are in a different order, you can't get the data you want, when ungroup you by name.

  • Recently bought a laptop computer; A few questions about the offer Upgrade to Windows 8

    I have a few questions about the Upgrade of Windows 8 offer for new computers.  I recently bought a Toshiba Satellite S855-S5268 of amazon.com, which came with Windows 7 Home Premium.  Toshiba already has a beta version of drivers and utilities for Windows 8 for the S855 on their Web site.

    (1) I bought my laptop in July of this year, and I've not yet registered for 8 Windows Upgrade offer with Microsoft.  Am I still eligible to receive the upgrade, if I sign up soon?
    (2) if I buy the upgrade through this offer, I'll be able to download an ISO file so I can burn the installation media, or do I need to upgrade to Windows 7?
    (3) if I will be able to burn the installation media, I'll be able to erase my hard drive and do a clean install of Windows 8 (which I'd rather do, I have a lot of backups of my data).  I am aware that I would probably need to provide my product key Windows 7 Home Premium 64-bit OEM during the new installation, because it is an upgrade and not a full version; This isn't a big deal, because my Windows 7 Home Premium 64-bit OEM product key is stuck at the bottom of my laptop.
    (4) my current copy of Windows 7 is activated by seeing my BIOS (I have a traditional BIOS, not a UEFI).  If I had to switch to Windows 8 and decide then I'd rather back in Windows 7, for example, a few months later, I'll be able to do that (I burned recovery of Windows 7 with the Toshiba utility disks, which I did), and Windows 7 will continue to activate by seeing my BIOS, even after the installation (and later remove) Windows 8?
    Thank you very much!

    I have a few questions about the Upgrade of Windows 8 offer for new computers.  I recently bought a Toshiba Satellite S855-S5268 of amazon.com, which came with Windows 7 Home Premium.  Toshiba already has a beta version of drivers and utilities for Windows 8 for the S855 on their Web site.

    (1) I bought my laptop in July of this year, and I've not yet registered for 8 Windows Upgrade offer with Microsoft.  Am I still eligible to receive the upgrade, if I sign up soon?
     
    Yes, the registration period is between June 2, 2012 to January 31, 2013.
    (2) if I buy the upgrade through this offer, I'll be able to download an ISO file so I can burn the installation media, or do I need to upgrade to Windows 7?
     
    Yes, the Upgrade Wizard of Windows 8 will allow you to create a bootable DVD or you can grab the ESD file and save it.
    (3) if I will be able to burn the installation media, I'll be able to erase my hard drive and do a clean install of Windows 8 (which I'd rather do, I have a lot of backups of my data).  I am aware that I would probably need to provide my product key Windows 7 Home Premium 64-bit OEM during the new installation, because it is an upgrade and not a full version; This isn't a big deal, because my Windows 7 Home Premium 64-bit OEM product key is stuck at the bottom of my laptop.
     
    Yes and there are better ways to reinstall Windows 8 without using the installation disc, you can use the reset and refresh.
     
     

    These steps will take you through refreshing your PC:

    · Press the Windows key + C on your keyboard to show the charms (if you use a touch screen: touch the right edge of your screen and drag your finger to the left)

    · Click settings

    · Click change PC settings

    · Click general in the left column

    · Under refresh your PC without affecting your files, click Start

    Then follow the instructions that will be provided on-screen to cool your PC.

    (4) my current copy of Windows 7 is activated by seeing my BIOS (I have a traditional BIOS, not a UEFI).  If I had to switch to Windows 8 and decide then I'd rather back in Windows 7, for example, a few months later, I'll be able to do that (I burned recovery of Windows 7 with the Toshiba utility disks, which I did), and Windows 7 will continue to activate by seeing my BIOS, even after the installation (and later remove) Windows 8?
     
    As long as you have a recovery disk which you should create or use the construction in the recovery partition, Yes, it will self activate.
    Thank you very much!
  • Questions about the management of specific nodes in different hierarchies

    Hi all

    I have a question about the specific management of some particular set nodes, which are located in different hierarchies within a same version.

    I want to know if there is any editing made to certain properties of these specific nodes or if the nodes are deleted/moved/edited approval to be triggered for the data manager.

    or should not allow users to edit (adding/moving/deleting/changing property values) or those specific members.


    According to my understanding of the nodes of domain prevents the removal of nodes, but I don't want my Member prefix/suffix, domain is the only way to prevent the change.




    Thanks and greetings

    Madhu

    We have an obligation to not allow a node to remove or deleted without the approval of the admin, so I created a Boolean property AllowDelete is false, which is substitutable, default and is available only in a category of property Admin, for which most of the users do not have access.  Then, I created a validation of PropRemove with an error message that tells the user to contact a user admin to remove or delete the node.  The admin can change the AllowDelete to true, then can either remove himself or to allow the user to do.

  • Questions about the implementation of clusters of storage and DTS on active cluster

    I have a few questions about the implementation of clusters of data store and SRS storage in VSphere 5.1.

    We have a data center with about 15 HP blades and a few servers non-lame.  The hosts are all either VSphere 5.0 or 5.1.  Our back-end storage is an EMC VNX 5700 with about 20 stores of data.  All the VMWare is managed by VCenter 5.1 running on a dedicated physical machine.

    Currently, each data store is used individually; No piles of data store are put in place.  When a new virtual machine is created, the administrator usually chooses the data with the most space store.  Periodically, we will go back and manually storage vMotion machines to balance the load.

    Recently, we have expanded the VNX storage, so we now have LUNS in different pools, with different levels of performance.

    What I would do is set up for the data store clusters, so that us when a virtual machine is created, the administrator must not know what data store is in which pool.  Also take advantage of the DRS storage so that the burden of storage will be "refine" himself a little.

    I know the setting up of a cluster of storage in a 'clean' environment is quite simple, but my concern is creation/conversion data warehouses existing in active production in the cluster, while they are used.

    If I access the screen "data warehouses and store data from clusters ', right-click on the data center and create a cluster, and then move the various data stores in the new cluster, will there be an interruption in the production running systems?

    I also wonder about activation of storage i/o control.  It is not currently enabled on data warehouses.  I know it's useful for the StorageDRS, but will be allowing any negative impact on the system?  If I turn on the warehouses of data, is there anything else I should do or set in addition to all that allows him?

    Finally, we are in the process of Site Recovery Manager configuration.  SRS has an impact on the configuration of the data clusters and DTS store?

    Thanks in advance for your comments.

    Mike O.

    Gregg Robertson wrote:

    Hello

    Clusters of data and using DTS store doesn't impact RS even if you create a cluster of data store for storage of replicated data and another for everyone else, this way you machines virtual you want to replicate are not moved on warehouses of data that are not replicated , but will still have the ability to move if there is a conflict.

    Gregg

    With all due respect but SRM and DTS don't go together. SRM does not at all support the use of DTS. So if you are configuring SRM forget DTS for now.

    Reason for this is that SRM knows no DTS and VMs can be in flight when a failover should occur, and bad things can happen. Also, the protection breaks when a virtual computer is moved between data warehouses in a cluster data store.

    In short: don't go there.

  • A question about the insertion of the localTimeStamp returned the value into a timestamp with time zone column

    Hello

    Oracle version: Enterprise Edition Release 12.1.0.1.0 - 64 bit

    OS: CentOS 4.6 X86_64                  

    I have a question about the localTimeStamp function. According to the documentation for this function is
    the same thing as current_TimeStamp except that the returned value does not include the time zone.

    Consider the following example:

    SQL > create table tmptab (colval timestamp with time zone not null);

    Table created.

    SQL > insert into tmptab (colval) values (localTimeStamp);

    1 line of creation.

    SQL > select t1.colval, tmptab from t1;

    COLVAL

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

    24 JANUARY 14 09.45.42.253732 H + 01:00

    SQL >

    Why introduce the foregoing did not fail? the data type of the column in my table colval expects a timestamp with time zone

    during each which inserts as I understand (correct me if I'm wrong) is not provided by the localTimeStamp function.

    Could someone kindly tell me what I misunderstood?

    Thanks in advance,

    dariyoosh wrote:

    Hello

    Oracle version: Enterprise Edition Release 12.1.0.1.0 - 64 bit

    OS: CentOS 4.6 X86_64                  

    I have a question about the localTimeStamp function. According to the documentation for this function is
    the same thing as current_TimeStamp except that the returned value does not include the time zone.

    Consider the following example:

    SQL > create table tmptab (colval timestamp with time zone not null);

    Table created.

    SQL > insert into tmptab (colval) values (localTimeStamp);

    1 line of creation.

    SQL > select t1.colval, tmptab from t1;

    COLVAL

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

    24 JANUARY 14 09.45.42.253732 H + 01:00

    SQL >

    Why introduce the foregoing did not fail? the data type of the column in my table colval expects a timestamp with time zone

    during each which inserts as I understand (correct me if I'm wrong) is not provided by the localTimeStamp function.

    Could someone kindly tell me what I misunderstood?

    Thanks in advance,

    Then, when you do

    create table t (neck DATE);

    Insert into t (to_date ('1st January 2014', ' mon-dd-yyyy "");)

    Are you surprised that it works? After all a DATE column contains a time component, you do not provide: but he

    works and gives you 00:00:00 as the component "hour".

    Similarly, the timezone component is being developed to automatically with, I think, time zone of your system.

  • Technical question from the data store

    Hello everyone.

    I have a question that you can maybe answer:

    "Is it possible to have a WARNING message (check) before formatting a LUN (EMC)?"

    Let me explain:

    We currently have a datastore composed of 12 LUN (of 236 GB), and even if this isn't in the best practices of VMware, I made a mistake (und) when creating a new data store.

    Indeed, I used a logic unit number which was attached directly to a virtual machine (in Raw Device) pour set up my new data store.

    Would you have a solution that makes a data control (on the logic unit number) and which could see us the partition proposed pour extend the data store contains data!

    Thanks in advance for your answer!

    J. Gaspoz

    Hi Julien

    Nice to see you on communities

    The vCenter will list all LUNS that are not already in the "Add storage" wizzard data warehouses, and by definition, a RDM en of is not formatted VMFS, since the lun belongs to the VM and it met with filesystem clean so son.

    There is therefore no direct way to pour do what you're asking (UN ESX knows nothing about the data on a non-vmfs LUNs).

    Personally, plug-in a simple way: the LUN ID. All the LUNs that will be used in RDMS are presented to my ESX with UN LUN ID between 50 and 70 (f.ex.). So I know whether or not a lun is RDM.

    Otherwise maybe third-party products (rv maybe tools) can get out a report listing the VM using the RDM.

    I hope that helps!

    Best regards.

    Stéphane Grimbuhler

    Senior consultant virtualization & storage (VCP / VCAP-DCA)

    VMware instructor (VCI)

    My Blog: www.virtualgeek.ch

Maybe you are looking for

  • Problem with auto-scroll.

    (Sorry for my bad English, it is not my native language)Hello, it's been several months I have a problem with Firefox auto-scrollKeep the pressure on the mouse wheel can slide in all directions of the web page, very useful for long pages as well as f

  • How can I get rid of the parameter/folder synchronization and storage

    In our account settings, we have a parameter/folder synchronization & storage how do I get rid of it

  • Stop email shared calendar alerts

    I use the latest Macbook Pro and the latest software as of today on all equipment. I use the calendar to our small home business. My partner and I share our calendars between them. Ever time I either she or I a new calendar entry in our own calendar,

  • Size of minimum score HD Win7?

    I'm upgrading from Vista Home Premium to Win7 Home Premium.  I have a 500 GB HD and we'll add a second 1 TB HD.  I'd like to partition the 500 GB for the OS and the photos, what is the size of minimum/optimum partition for just the OS Win7 Home Premi

  • How to fill in the blanks on the forms I scanned on my computer

    Is there a program of mild wear I can get so I can fill out forms scanned thatI virgins in my * address email is removed from the privacy *.