Date format does not not in 11G?

Hi all

I'm using Oracle 11 g on windows 7

I try to run this date format not allways show me same format

Select To_date (' 02 / 02/2012 ', ' DD/MONTH/YYYY') twice; (when I want to record on column date) but the error is NOT VALID MONTH
Select To_date (' 02 / 02/2012 ', ' DD/MM/YYYY') twice; (when I want to record on column date) it's OK



Also, when I want to display the date
Select To_char (' 02 / 02/2012 ', ' DD/MM/YYYY') twice; (when I want to record on column date) error NUMBER INVALID

Select To_char (' 02 / 02/2012 ', ' DD/MONTH/YYYY') twice; (when I want to record on column date) error NUMBER INVALID
Select To_char (' 02 / 02/2012 ',' MON/DD/YYYY "") double; (when I want to record on column date) error NUMBER INVALID

I try to get NLS_DATE_FORMAT in windows registery under oracle but not found I have try to search in the registry, but not found.

using regedit in cmd

concerning

Isabelle wrote:
It's good, but I want the output like this JJ/MM/AAAA allways

Date of some time

09/12/2012
12 OCTOBER 2012

How can I give him standard format?... because the user enter different format, so I want to convert it to standard format.

.

with t as
(
select '12/09/2012' d from dual
union all
select '12/OCT/2012' from dual
)
select to_char(to_date(d,'dd-mm-rr'),'dd-mm-yyyy') d from t;

D
12-09-2012
12-10-2012

Tags: Database

Similar Questions

  • Date format does not not in SP

    Hi all

    I wrote a procedure and I had date as input and the output should be in varchar.

    Please find the procedure

    create or replace procedure UP_REPORT_DATE (inDate as)

    is

    Val varchar2 (20);

    Start

    Select to_char (last_day (to_date(inDate,'DD-MON-YYYY')), 'DDMMYYYY') in double val;

    dbms_output.put_line (Val);

    -update t_rep_date set reporting_date = val;

    end up_report_date;

    Result

    SQL > set serveroutput on;

    SQL > execute up_report_date('20-JAN-2015');

    31010015

    PL/SQL procedure successfully completed

    The result should be 31012005 but its 31010015 display.

    Kindly help me on this.

    Hello

    your entry is not a date, then try this

    create or replace procedure UP_REPORT_DATE (inDate in varchar2)
    is
      val varchar2(20);
    begin
       dbms_output.put_line(inDate);
       dbms_output.put_line(                  to_date(inDate,'DD-MON-YYYY')  );
       dbms_output.put_line(         last_day(to_date(inDate,'DD-MON-YYYY')) );
       dbms_output.put_line( to_char(last_day(to_date(inDate,'DD-MON-YYYY')),'DDMMYYYY') );
    end up_report_date;
    /
    
    exec UP_REPORT_DATE ('20-JAN-2015');
    

    You run a to_date on a date column (inDate) so you first convert implicit return your inDate in a varchar and then a conversion explicitly to this day.

    concerning

    Kay

  • I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not display in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not appear in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    You must save the spreadsheet containing the new date as a model format and use this custom template for each new spreadsheet where you want that this date format personalized at your disposal.

  • Why do write can not be performed because the number of data channels does not match number of channels in the task.

    Possible reasons:

    Scripture cannot be performed because the number of data channels does not match number of channels in the task.

    When writing, provide data for all channels in the task. You can also change the task so that it contains the same number of channels as the written data.

    Number of job channels: 8
    Number of data channels: 1

    Lama says:

    The DAQmx vi writing gives me the error. If I run a single channel, isn't a problem. Multichannel gives me error.

    You are funny! Why tie yourself to work VI (single channel) instead of one that gives you errors (multichannel)?

    (If your car does not work, you bring car your wives to the mechanic, right!)

    What is the exact text in the multichannel 'physical channels' when you do the AO control?

    Lama says:

    I did a sequence to ensure that each function has been run in the correct order. Wouldn't a race condition.

    All you have to do is wire the 'start of task' error at the entrance of error of the DAQ assistant and then back to 'stop task' and things will run in order. Guaranteed! Think the stream! Everything else can run in parallel or the order is irrelevant.

    First convert the sequence stacked to a sequence of plate, remove the flat sequence and add the mentioned son. Now, do a "cleaning pattern.

    A when stacked with the inhabitants of the sequence is one of the worst construction you can possibly do. It makes the code difficult to follow, impossible to maintain, difficult to debug.

  • the windows boot configuration data file does not contain a valid entry os

    Hello

    I got this message when recovery... I can't get the windows... I have the CD recovery, but when I boot it... It gives me this message

    the windows boot configuration data file does not contain a valid entry os

     


    How do I solve this problem

    Hello

    Assuming that it's just a problem with the recovery media, here's another solution, you can try.

    Before you try the following, make sure that you can always read the character product activation key 25 on your label Windows COA (5 blocks of 5 alphanumeric games).

    An example of a COA label can be seen here.

    You can create a Windows 7 installation disc yourself using another PC - just download the good Disk Image ( it must be the same version that originally shipped with your laptop - IE if your laptop comes with Windows 7 Home Premium, that is the file you need to download ) from the link below and use an app like ImgBurn to burn the ISO correctly file on a blank DVD - a guide on the use of ImgBurn to write an ISO on a disc is here.  The source of the Image is - Digital River.

    Images of Windows 7.

    Use the disk to perform the installation, enter the activation key of Windows on the label of the COA at the request and once the installation is complete, use ' 'phone Method' described in detail in the link below to activate the operating system -this made method supported by Microsoft and is popular with people who want to just have a new installation of Windows 7 without additional software load normally comes with OEM installations.

    http://www.kodyaz.com/articles/how-to-activate-Windows-7-by-phone.aspx

    All pilots additional and the software you may need are located by entering your full model number or Nr here.

    Kind regards

    DP - K

  • Error: 0 x 87160129 the file may be corrupted or in a format does not recognize this Director

    Try to make a video about windows live movie maker... and download the photos to my computer and I get this message!

    Error: 0 x 87160129 the file may be corrupted or in a format does not recognize this Director

    It's a Windows vista... Home (64-Bit operating system)

    Thanks for any input.

    Hi BrendaKennedy,

    When you use Windows Live Movie Maker and the question you have posted is related to Windows Live, so it would be better suited in the Windows Live community. Please visit the link below to find a community that will provide the best support.

     

    Movie Maker Portal

    http://windowslivehelp.com/product.aspx?ProductID=5

    I hope this helps.

  • Why my Muse formatting does not disappear when I open the site in DW CS6? I need to change the PayPal shopping cart code to account for my shipping options. I exported the Muse test in a folder and then created a new Site in DW using this file, so any CSS

    Why my Muse formatting does not disappear when I open the site in DW CS6? I need to change the PayPal shopping cart code to account for my shipping options. I exported the Muse test in a folder and then created a new Site in DW with the help of this file, so all CSS should be there, but I don't see on the page about the elements without formatting, any stop to the left. Thank you!

    PS: Muse will be the most impressive program ever when they fix these bugs or drop because not every user will be paying through the nose for Business Catalyst. Grrrrrrrrr.

    Best approach would be not to use the PayPal widget and instead copy and paste the PayPal code embedded in an object > object to insert the HTML in Muse. This way you can edit the HTML code to embed PayPal code from Muse and without having to modify the exported code.

  • Round trip for formatting does not

    My problem is that when I open an XML file in FrameMaker, the formatting does not use my application that I put in place. I don't know where this is controlled.

    That's what I did. I made a copy of the folder Structure\xml\DITA to create Structure\xml\MyDITA. I converted my documents to DITA and updated the application model and ESD (formatting only) in the MyDITA folder. I did not the DTD.

    When I save my file in XML format I get no errors, but when I open the XML file on the FM band, the formatting does not my model of the MyDITA.

    When I open the selected file XML in FM and StructureTools > structured Application set and it has the value DITA_1.2_topic. When I put in MyDITA has no effect on the formatting.

    What is control what application to use when the XML file is opened? I have a custom XML application that works very well. The Doctype in my XML file is:

    <! Topic DOCTYPE PUBLIC "-//OASIS//DTD DITA topic / / IN" "topic.dtd".

    I hope it's an easy question to answer. Thank you!

    Gman

    HEY gman...

    Using the command set the structured Application is not "permanent", when used on an XML file. You can use it to check the application currently assigned to a file, but don't bother setting it.

    You must assign the appropriate on the open file application. This is done by ensuring that you have a valid structure for your application application definition (in the definition of Application Structure file) AND ensuring that this application definition is correctly configured in the dialog box Options of DITA (section mapping of the application). It seems that the DITA 1.2 app is still selected in the Options.

    In Options of DITA, select the "DITA v1.1" option, then click the button «...» "to the right of the associated drop-down list. In the mapping Manager dialog box, choose new mapping in the mapping of tag list, give it a name ("MyDITA 1.1 Mapping') and choose APP_MAPPING_DITA_1.1 from the mapping Type list. Now, in the mapping Manager dialog box, enter the doctype for your app... "section" (according to your example), then enter the name of the "MyDITA" application, then select the "CATEGORY" Type (in this case). Now, choose Add/Edit. If your application supports other types of items, you will need to add them to the list of mapping. When you are done click OK. Options of DITA, you can now select your application mapping in the list (or it may already be selected).

    In theory it should "work"... you will need to exit and restart FM to do properly defined.

    Yes... It is not easy or straight forward, and the docs are pretty weak.

    No pressure... but have you looked in (or heard of) DITA-FMx? It simplifies the whole process considerably (although the application development is still a bit of a learning curve) and makes DITA book.

    http://leximation.com/DITA-FMX/

    See you soon,.

    .. .Scott

    Scott Prentice

    Leximation, Inc..

    www.leximation.com

  • Error #3606: Sampler 0 format does not match the format of texture.

    Hello

    I try to use a cube texture but I got this error:

    Error #3606: Sampler 0 format does not match the format of texture.

    with this fragment of AGAL:

    ft0.w MOV, FC0 .x

    FT1.xyzw Tex, v0 .xzy, fs0
    Mul ft0.xyz, fc1.xyz, ft1.xyz
    MOV OC.xyzw, ft0.xyzw

    Apparently glsltoagal does not write the < parameters > fs0 is a problem or it has default values?

    Can I create textures to Cube in a specific way?

    I did a mistake using a faulty method, it was

    createCubeTexture

  • OfficeJet 7500 a large format does not connect via Timecapsule

    I have a Mac Book Pro running Mac OS X 10.7.5 (just updated all the software).

    I connect my MacBook to the internet through my Apple Time Capsule (wired connection). I use version 6.1 (610-31) Airport utility and I just updated the version of the firmware to 7.6.1

    I use a local wireless through my Time Capsule.

    I just bought a large format HP Officejet 7500 a (model name: C9309A).

    The printer has been set up to detect my wireless LAN and initially he worked for printing and scanning, but it has recently discontinued. I tried to uninstall (purification) the software of my laptop HP, all my software update and reinstall the HP software on my laptop, but it still does not work.

    The printer is connected to my time capsule via an ethernet cable and a USB cable. It also includes Wi - Fi connection generates my time capsule. I have preferthe printer plugged into the router (time capsule) rather than a WiFi connection I print large files.

    I can install the printer on my computer mac laptop (settings/printers & scanners). I added it as a wireless and a wired connection through my time capsule (it shows that the connection is done by the time capsule). However when I print, there is a long delay, the printer now says "printing", but I get the error on my laptop screen "can not write print data: ÿ * xˇ.» A few minutes later a blank page or a page with a single line is ejected from the printer.

    If I go into the configuration of the HP printer, it says I'm under pilot 3.4.1. If I try to open the printer utility I get a message "utility HP does not work with the devices connected to the airport. Try to connect the camera directly to your Mac to work with her. " I tried to connect directly to my Mac via the USB cable and which does not work either. I prefer that the printer is not connected directly to my laptop I have few USB ports.

    In my view, this printer is supposed to be compatible with my system.

    Is there something more, that I can do or this printer is not compatible with my MacBook Pro or my Time Capsule?

    Hi marion_13,

    Turn it on wireless and then try to access the EWS - embedded Web server by typing the IP address of printers in the browser's address bar Safari. I would like to know if you are able to access the built-in Web server?

    Document below will also help you get the printer installed on your wireless computer.

    http://support.HP.com/us-en/document/c02239420

  • EL Capitan automatic date time does not work

    People

    I use an El Capitan 10.11.5 MacBook Air version.

    I noticed that the data and time does not work even though it was set to auto to time.asia.apple.com.

    I ran these commands on a terminal

    $ping-c 5 time.asia.apple.com

    Ping: impossible to solve the time.asia.apple.com: Unknown host

    $ping-c 5 time.nist.gov

    PING ntp1.glb.nist.gov (64.113.32.5): 56 bytes

    64 bytes from 64.113.32.5: icmp_seq = 0 ttl = time 44 = 386,629 ms

    64 bytes from 64.113.32.5: icmp_seq = 1 ttl = time 44 = 307,532 ms

    tell me ping works but not for the server ntp - time.asia.apple.com

    $nslookup time.asia.apple.com

    Server: 192.168.1.254 address: 192.168.1.254 #53

    Non-authoritative answer: time.asia.apple.com canonical name = time - ios.g.aaplimg.com.

    time - ios.g.aaplimg.com canonical name = site time.apple.com.

    Site Time.Apple.com canonical name = time - osx.g.aaplimg.com

    $cat /etc/ntp.conf

    Server time.asia.apple.com.

    $ ntpq Pei

    No returned ID association

    Please, back up all data.

    Open the window of network preferences, if necessary, by clicking on the padlock icon in the lower left corner and entering your password. Cllck advanced, open the DNS tab and change the addresses of the servers as follows:

    8.8.8.8

    8.8.4.4

    It's Google DNS. Click OK, and then apply.

    In Safari, select

    ▹ Safari preferences... ▹ Confidentiality ▹ Remove All site data

    and confirm. If you use another browser, clear the cache memory. Test. Any difference?

    Notes:

    1. If you lose Internet access after the above change is made to your network settings, remove the Google servers in the network preferences pane, then click on the TCP/IP tab, then click on renew the DHCP lease. That should restore the original DNS settings; otherwise restore them yourself. Remember that you must click on apply so that the changes take effect.

    2. I do not use Google DNS myself, but I tested it, and I do not recommend it or any other provider DNS; the addresses of the servers are only available for testing purposes. There may be privacy and technical issues involved in the use of this service, that you should personally study before deciding whether to retain the settings. Other public DNS services exist.

  • Images and formatting does not not for some sites

    I noticed problems with some sites Web does not image or page formatting. These sites have worked in the past.

    Two examples:

    www.theoatmeal.com - site will load all images (png and .jpgs). I checked the options recommended for images is not displayed and you've run through all except Firefox reset to the factory settings.

    www.patheos.com - site displays only the basic text on a white background. It displays however images (.jpgs). It also displays a message at the top of the screen that I'm running an outdated version of Internet Explorer.

    Reload Web pages and ignore the cache to refresh potentially stale or corrupt.

    • Hold SHIFT and click reload.
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Cmd + Shift + R' (MAC)

    Start Firefox in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

    Have you checked for possible exceptions of image?

    You can try to use "Clear recent history" to clear all "Site preferences".

    Note that compensation "Preferences of Site" clears all exceptions for cookies, images, windows pop up, installation of software and passwords.

    Is he missing pictures then make sure you are not block images from certain domains.

    • Check the permissions for the domain in the active tab in "tools > Page Info > Permissions.
    • Check that the images are enabled: Tools > Options > content: [X] loading images automatically
    • Check exceptions in "tools > Options > content: Load Images > Exceptions.
    • See the tab "tools > Page Info > media ' for blocked images (scroll all the images with the cursor key).

    If an image in the list is grayed out and there is a check mark in the box "block Images of..." and remove this mark to unlock the images from this area.

    Make sure that you do not block the images of third parties, the pref permissions.default.image must be 1.

    There are also extensions (Tools > Modules > Extensions) and security software (firewall, antivirus) that can block images.

    See also:

  • 6361 versatile usb data acquisition does not automatically detect the SCXI chassis/accessories

    versatile usb data acquisition 6361 will detect automatically SCXI chassis and accessories?

    Hello kdCMC,

    As far as I know that the SCXI-1600 USB Module is able to auto-detect SCXI Modules.
    This is also mentioned on page 11 and 12 of the following SCXI to start document:
    http://www.NI.com/PDF/manuals/373236m.PDF

    All data (including USB-variants such as the NI USB-6361) have only a 68 pin shielded cable (IO) between the DAQ hardware and the SCXI chassis.
    This cable does not auto-detect opportunities since it basically just "transfers analog and digital signals" between SCXI chassis and DAQ hardware.

    Is there a specific document that created the confusion on this subject?

  • Restore not working - the option to restore on my machine does not work. I've highlighted the dates. Does not work in safe mode

    Original title: restoration works not

    The weight restoration on my machine does not work. I've highlighted the dates but I get... impossible to restore messages. I tried switching off my virus checker (Norton) but with the same result.

    Some tools Anti Virus 'protect' your system so that they will not allow a restore of the system work properly.
    For example, if you use Norton/Symantec products, you will see a message like this:
    Restoration incomplete. Your computer cannot be restored...
    It is also a popular Symantec problem (well, I'll be polite and call an "undocumented feature"...), they wrote an article about it:
    According to what you use for malware protection, you may need to disable the product temporarily, do the system restore and then turn the products light up again when the system restore is complete.
    Sometimes you need start your system in Mode safe and so that your protection programs are not running, and then do the system restore.

    Tips from Microsoft in some of their articles that if the system restore does not restore your computer, start in Safe Mode, and then run the system restore.

    It works for some configurations.

  • enforcement of data protection does not allow me to install itunes

    whenever I try to install Itunes appears a panel titled data execution protection, aand does not allow me to load Itunes. ???

    Hello

    1. What is the exact error message do you get?

    2. what version of iTunes you are trying to install?

    3. are you able to install other programs on the computer?

    4. How do you try to install it?

    DEP is a security feature that can help prevent damage to your computer from viruses and other security threats. DEP can help protect your computer by analyzing the programs to ensure that they use the system safely memory. If a program tries to code running (also known as the execution) of memory in an incorrect way, DEP closes the program.

    Method 1: I suggest to uninstall any old version of this iTunes on the computer and then download and install the latest version of iTunes, then check if the problem persists. You can check the help below link.

    To remove, and then reinstall iTunes from windows XP:

    http://support.Apple.com/kb/HT1925

    Method 2: Problem installing iTunes or QuickTime for Windows: http://support.apple.com/kb/ht1926

    For your reference: Solve the problems installing and uninstalling the programs on Windows computers. http://support.Microsoft.com/kb/2438651

    You can also view the resources specific to iTunes. You can get in touch with the community of Apple or the support Web site for additional assistance on the issue:
    http://www.Apple.com/support/iTunes/

    Hope this information is useful.

Maybe you are looking for

  • How to change background on the address bar and search - it ruins my characters

    I'm addicted to personas however the address bar and search bar are in glaring white instead of transparent like the rest of the top page. This completely destroys the continuity of the photo. I want to make these bars, and everything above the upper

  • IMAQdx gencam

    Hello I have used labview 8.5 gigabit 4 gencam I have a parallel loop 4 and it works well with grab imaqdx funcion the problem that i got't when I lossed communication with one of these radars it effect anther which means the time loop of each are lo

  • EliteBook 745 keyboard backlight

    My keyboard backlight does not work I do not know if has been disabled or not.  How do I turn it back on any ideas?

  • Imaging system with a 8 GB flashdrive

    I have a HP Mini laptop 210-4000 with MS Windows 7 Starter. Can I create system image with a 8 GB capacity flash drive? pls help.

  • Your pc could not start properly

    The application or the operating system could not be loaded because a required file is missing or contains errors. File: \windows\system32\winload.efi Error code: 0-xC0000001 Help, please! I have Sony Vaio E Series with Windows 8.1