Problem in executing to_date

Hello


Under query is not executed: error: ORA-01858: a non-digit character was found here where was waiting for a digital

Select to_date (SYSDATE, 'yyyyMMdd') of double;

Published by: Balajiraam on February 28, 2011 10:05

Balajiraam wrote:
How do I get the date in the specified format without changing the NLS_PARAMETERS as shown below:

Select double to_date('20090912','MMDDYYYY');

As others have already pointed out, a date is not a format. You can't get a date in a specified format.

If you want a character string that represents a date, you use the function TO_CHAR. In this case, it is not supposed to do since you already have the channel by hand. But you might

SELECT to_char( to_date( '20090912', 'MMDDYYYY' ),
                'MMDDYYYY' )
  FROM dual

Justin

Tags: Database

Similar Questions

  • potential problems with executable files using VISA

    Hi, I have a LV 2012 SP1 source code developed under Windows 7. The source code uses VISA for serial communication. I built from this source code executables that work without problems on a PC with Windows 7.
    Now I use Windows 8 and build the executables from the same source code, I have used before. However, when you use the new executables (under Windows 8) on the same PC with Windows 7 as before, I get an error in the communication of VISA.

    The error is: property node (arg 1) in .vi VISA set up a Serial Port (Instr)

    Once again: 1. executables built under Windows 7 work on a PC under Windows 7

    2. executables built under Windows 8 will not work on a Windows 7 PC (error VISA)

    the source code is the same

    Suggestions, which could be at the origin of this are most welcome.

    An EXE that uses the VISA must be the VISA installed runtime.  It is like not having not drivers for your program.  Create a Setup program using the similar project about how you made an EXE file.  Include the exe in the installation program and under additional installers choose the software that is required by the EXE.  This will usually include the runtime LabVIEW and VISA.  From 2013 the additional installers will try to predict the software needed by the EXE.

  • Problem with executable RT

    It seems that if I've been down this road before.  I have a great application that is the engine of two different instruments in a single PXI chassis.  I am able to build the application for the two individual instruments, compile them and get a correct behavior when run as an executable of RT.  I am also able to draw the two instruments of a single VI using the debugging environment (I place essentially two individual applications in particular while loops configured to run once in parallel on the diagram).  However, when I build the build the VI containing the two applications into a single exe RT, I do not get a correct behavior (i.e. does not behave as it did in the debug environment).  I tried running both as two separate called in the rtexe screws (using the two methods described here), as well as their execution from one VI who calls them as described above. I hope that's not too vague, but does anyone have any ideas as to why I could be able to run the combined VI of the workstation but not an executable?

    Thanks, Matt

    Definitely looks like a similar problem.  However, I wonder if this isn't just a quirk that is not altogether unexpected.  Where I got everything to work in the end is to disconnect the typedefs from these two variables that were causing a problem.  I am not sure that real typedefs have been used on the server side, so they would not have appeared in the dependencies.  In this case, the typedef (believe me) would have been lost and the OAS would not know what to do with the data.  Just a thought.  Would have been nice if an error was thrown somewhere.

    Peace, Matt

  • Problem with executing data prevention

    Help!  When I watch a video on Youtube and try clicking on the icon that says "Watch this video in a new window", then Data Execution Prevention stopped and will not open it.  I want to go back to IE7.  I use Vista Home Premium at the moment.

    http://support.Microsoft.com/default.aspx/KB/957700

    "How to uninstall or remove Internet Explorer 8?

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    As I do.

    How to uninstall IE8 > change update settings > hide the IE8 update:

    Click Start > right click on computer > properties > Windows updates down the lower left corner > updates installed in the lower left corner in the next window

    > then click the one that you don't want > uninstall will appear at the top > uninstall it.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    In addition, on the page where you clicked "Installed updates", click on change settings at the top left corner it

    > Change update settings in the next page of AutoUpdate to "check for updates but let me choose etc" > OK ".

    When you take a look at pending updates, you can either download/install them one at the time, namely the update causing you problems.

    > or if you do not need an individual (IE8) > right click > UAC prompt > hide it

    See you soon.

    Mick Murphy - Microsoft partner

  • Problem when executing the processors in the nodes with disabled local storage

    Hello world

    We test the coherence JSR107 (a.k.a. JCache) implementation of Yannis (https://github.com/yannis666/Coherence-JSR-107) and we found the following issue when you work with a local storage where distributed cache node is disabled (using - Dtangosol.coherence.distributed.localstorage = false). Yannis implementation uses several EntryProcessors for the execution of operations get() or put () in the cache. For example, the following code is used to update a value in the cache:

    / public class PutProcessor implements InvocableMap.EntryProcessor {}

    @Override
    public Object process (input InvocableMap.Entry) {}
    BEntry entry = (BinaryEntry) BinaryEntry;
    return bEntry.isPresent ()? bEntry.getBinaryValue (): null;
    }

    }

    And put operatino is taken from the following code:

    namedCache.invoke (key, CPU)

    where processor argument contains a reference to the PutProcessor object.


    When we call JSR107 performs surgery put in the cache and code above we get following exception:

    java.lang.NullPointerException
    to com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ Storage.invoke (PartitionedCache.CDB:10)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onInvokeRequest(PartitionedCache.CDB:52)
    to com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ InvokeRequest.run (PartitionedCache.CDB:1)
    at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:12)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:34)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:662)

    Of course we have previously started another node in the cluster with local storage enabled.

    It seems that, as no storage card is present at the node, a NullPointerException is thrown when you try to insert the entry.

    Could someone give advice on this problem and how to overcome? This implementation is based on the processor is not compatible with the knots of localstorage cache disabled?

    Thank you in advance,

    Daniel C.

    Hello

    It sounds like COH-7180 - demand deserialization failure results in a cryptic NullPointerException, that has been fixed in one of the 3.7.1 patches. The real problem is that your entryprocessor cannot be deserialized.

  • Problems when executing transition to Oracle 11 g

    Hi all

    I use version 11.2.0.1.0 Oracle.

    I have a primary-Physical Standby (Test environment) Setup. I'm the stage swapping them.

    I followed the steps below: -.

    Primary on: -.

    SQL > select switchover_status from database v$.

    SWITCHOVER_STATUS
    ------------------------------------------------------------
    IN THE STANDBY MODE

    SQL > alter database validation to the transition to physical standby mode;

    Database altered.

    SQL > shutdown immediate;
    ORA-01507: database not mounted


    ORACLE instance stops.
    SQL > bootable media.
    ORACLE instance started.

    Total System Global Area 2054373376 bytes
    Bytes of size 2214856 fixed
    1174406200 variable size bytes
    872415232 of database buffers bytes
    Redo buffers 5337088 bytes
    Mounted database.
    SQL > select switchover_status from database v$.

    SWITCHOVER_STATUS
    ------------------------------------------------------------
    AT THE ELEMENTARY LEVEL

    SQL > select database_role from database v$.

    DATABASE_ROLE
    ------------------------------------------------
    PHYSICAL STANDBY

    On the other side, I'm trying to set up the database pending phyical primary: -.

    First, I checked the switchover_status on the standby database.

    SQL > select switchover_status from database v$.

    SWITCHOVER_STATUS
    ------------------------------------------------------------
    PENDING FAILOVER

    SQL > alter database validation at the grade crossing;
    change the database for validation at the crossing elementary school
    *
    ERROR on line 1:
    ORA-16139: media recovery required


    Now I'm in a situation where I have converted my primary eve physically but primary physical standby does not occur...

    Please advice me on this. I checked the journal report archive for both boxes before the digital switchover and they have been synchronized...

    Your suggestions are required here.

    Kind regards
    Aalami

    Hello

    With the above approach there may be loss of minor transaction & had to rebuild stby, but you can do standby DB up as main.

    With the current senario, check if suggested sequence is generated in primaries & try to save it to stby

    Also check if FAL_ * is solved

    Looks like the problem of sync you should have restarted two DB before you start the digital switchover as a best practice with 2/3 switches

    Thank you
    Ajay more
    http://moreajays.blogspot.com

  • Problem in executing Type

    Hi gurus,

    I created the following Type

    create or replace type discount_price_obj As Object
    (
    discount_rate number (10.4).
    price number (10,2).

    Public STATIC FUNCTION new_price
    (
    i_price number,
    i_discount_rate in the ISSUE by defaut.1) RETURN NUMBER
    )
    CANNOT BE INSTANTIATED
    FINAL;

    My discount_price_obj is created successfully

    but when I run the following statement I got the following error:

    SQL > exec dbms_output.put_line (discount_price_obj.new_price (75));

    ERROR on line 1:
    ORA-04067: not running, type body 'SCOTT. DISCOUNT_PRICE_OBJ' does not exist
    ORA-06508: PL/SQL: called program unit is not found: 'SCOTT. DISCOUNT_PRICE_OBJ ".
    ORA-06512: at line 1

    Please help me solve this problem

    You have created the specification of the object, but you have not created the body of the object. If you don't tell Oracle how to implement new_price function.

    If you create the body

    SQL> ed
    Wrote file afiedt.buf
    
      1  create or replace type body discount_price_obj
      2  as
      3    static function new_price( i_price in number,
      4                               i_discount_rate in number default .1)
      5      return number
      6    is
      7    begin
      8      return i_price * (1-i_discount_rate);
      9    end;
     10* end;
    SQL> /
    
    Type body created.
    

    Then, you can call the function

    SQL>  exec dbms_output.put_line(discount_price_obj.new_price(75));
    67.5
    
    PL/SQL procedure successfully completed.
    

    Justin

  • Problem in executing a Business Service personalized

    Hello world
    I have the following problem: I created a business with a method in Siebe Tools. When I am trying to run this service of Windows Firewall or simply to simulate it in Siebel Client I get the error
    "Error call service 'Slavi Test One,' method 'manipulateDate' in step 'Business Service 0'. (SBL-RPR-00162)
    --
    The 'manipulateDate' method is not supported on business ' <>? (SBL-DAT-00323) »

    Kind regards
    Slavi

    Hi Slavi,

    The custom method error unsupported comes when you call a custom bs and not put a return (CancelOperation) in your finished script execution of your logic.
    Generally, you write as follows:

    function Service_PreInvokeMethod (MethodName, inputs, outputs)
    {
    Try
    {
    If (MethodName is "manipulateDate")
    {
    / * Script logic is here * /.

    Return (CancelOperation);
    }

    }
    catch (e)
    {
    Throw (e);
    }
    Finally
    {
    / * Destroy objects here * /.
    }
    return (ContinueOperation);
    }

    Return (CancelOperation) returns control to siebel once your script is run. This is why it is very essential to add on the other, you encounter the error message even if the script runs successfully.

    Hope this helps with your problem.
    With respect,
    Yassine jegou

  • Forms 10 g problem with executing poplist

    Hi, I have a problem with the item of poplist displaying when running.

    I improved a form developed in 6i and improved to 10g. In the version 6i, we had 2 items that initially were not displayed until you have clicked on a text field. When you have clicked on the text field, it displays the poplist via SET_ITEM_PROPERTY commands element. The element's Visible property is set to no and the Enabled is set to Yes. When the user clicks on the text field, there is a manual SET_ITEM_PROPERTY and use the DISPLAYED property to display the poplist. Well, in forms 6i, it worked fine when running. Forms 10g, I get an error that displays a message FRM that says: cannot set the attribute's POSTER.

    Is this is a bug or there is a patch that solves what all is aware of the problem? I've never noticed before. today

    The version of the forms I use on my local machine is 10.1.2.3.0 (32-bit version).

    I spun my wheels and cannot find a way around it. It used to work fine.

    Thanks for the help!

    Chris

    Hello!

    First of all, I would like to try

    message ( 'Cursor is in ' || :system.cursor_item || ' - Trigger item is: ' || :system.trigger_item );
    

    in your trigger ONCE - NEW - ITEM - INSTANCE of the text element.

    If all goes as planned, you can rename the "QUEST. QUEST_LIST' to ' QUEST. QUEST_LIST_OLD' and
    create a new list of pop ' QUEST. QUEST_LIST' and try again.

  • Problem when executing a stored procedure

    Hello
    im a beginner, using v (10.2.0.1.0) of Oracle 10 g on a linux machine.
    Cannot run after the procedure through query iSQLPLUS im interface.

    create or replace procedure (pd_hr)
    PNO varchar2,
    PDT date default sysdate,
    PHR number,
    perr_msg out varchar2
    ) as
    Start
    PHR: = 2;
    end pd_hr;

    Number of phr VARIABLES;

    Perr_msg VARIABLE VARCHAR2 (250);

    run pd_hr('pno',,phr,perr_msg).

    It flashes the following error when I try to execute the stored procedure:
    ERROR on line 1:
    ORA-06550: line 1, column 44:
    PLS-00201: identifier "PHR" must be declared.
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    I ran the following query through DBA connection before performing the procedure:
    GRANT EXECUTE ANY PROCEDURE 'SCOTT ';

    Any form of assistance will be invaluable!

    Peter

    Hi, Peter,.

    Put a colon (': ') before binding variable names except when declaring:

    -- No colons here:
    VARIABLE phr number;
    VARIABLE perr_msg VARCHAR2(250);
    
    -- Colons needed here
    execute pd_hr ('pno', NULL, :phr, :perr_msg);
    
  • Problem with executing a table of mixing and pregnant at the same time

    I have a Behringer mixer table I plug it into my computer via the USB port to record music. However, every time I try and play any music, none of my speakers work. I tried to run external speakers, those built in my laptop and headphones connected to the console itself. However, as long as the mixer is plugged into my computer, no music will play. When it is unplugged, the music plays very well. And, in the Panel, it shows that there is music through my speakers (or anything that is plugged into the audio jack). My old computer can run a table mixer and speakers very well. Any ideas on how to run the two?

    Jared

    Your best bet is to contact Behringer (but then you knew that already) to see if they have a driver updated, patch, etc.

    We support MS products here and only they would have expertise on the product.

  • Problem with executing SQL in SQLDEV tool

    Select * from SYS. DOUBLE

    /

    Select * from ap_suppliers

    If I don't give it "/" Ctrl + Enter does not work to run the SQL query. If I gave "/" it works very well and it is very boring, it's how the delivered product? Y at - it no alternative workaround?

    Capture.jpegCapture2.jpeg

    You need to end your queries with a semicolon. This is the qualifier of queries and DDL statements.

    Slash is the delimitation of the PL/SQL blocks.

    Line breaks are not delimiters, the following would run fine if you do Ctrl + enter while the cursor is on the word "select".

    Select

    *

    Of

    Double where 1 = 1;

  • Problem in executing view mast via dblinks

    HI Experts,

    I'm refreshing MAT_VIEW via dblinks. But during the refresh I get below error.

    I tried both with Complete and fast. The two get errors.

    Seems I missed some privileges.

    Please help me here...

    With Fast option
    *===========*

    SQL > exec dbms_mview.refresh('CDS_BANK_BRANCH_NLD',*'F'*);
    BEGIN dbms_mview.refresh ('CDS_BANK_BRANCH_NLD', 'F'); END;

    *
    ERROR on line 1:
    ORA-12018: following error encountered during code generation for
    "ACCOUNT INFORMATION". "" CDS_BANK_BRANCH_NLD ".
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS." DBMS_SNAPSHOT", line 2256
    ORA-06512: at "SYS." DBMS_SNAPSHOT", line 2462
    ORA-06512: at "SYS." DBMS_SNAPSHOT", line 2431
    ORA-06512: at line 1

    With full Option
    --------------------------------

    SQL > exec dbms_mview.refresh('CDS_BANK_BRANCH_NLD',*'C'*);
    BEGIN dbms_mview.refresh('CDS_BANK_BRANCH_NLD','C'); END;

    *
    ERROR on line 1:
    ORA-12018: following error occurred during the generation of code for "account INFORMATION". "" CDS_BANK_BRANCH_NLD ".
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS." DBMS_SNAPSHOT", line 2256
    ORA-06512: at "SYS." DBMS_SNAPSHOT", line 2462
    ORA-06512: at "SYS." DBMS_SNAPSHOT", line 2431
    ORA-06512: at line 1

    ;)

    You can use something like:
    DBMS_MVIEW. REFRESH@DBLINK ('MW_VIEW', 'F');

  • Including a dependent dll in an executable

    I'm creating an executable on my windows development system (LV2011) and want to run it on one of my windows target systems, which is the execution engine proper (2011) installed.

    In general I don't usually have problems running executables on the target, but in this case the executable on the target system generates an error because of a dll missing (NiFpgaLv.dll).

    I see no way to make the build script includes this dll (which is listed as a dependency on my development computer and works well running on it.

    This executable on the windows target is designed to interface with a desktop system RT containing a PCIe-7852, where the NiFpgaLv.dll dependency.

    Once I have overcome this problem, I'm sure I'll run into problems loading up to the bitfile FPGA of the target computer.

    I think my question is: is there a procedure to deploy an executable on a windows target computer that will control a desktop machine RT containing FPGA (PCIe-7852) card.

    Someone at OR need to train their service people to not post links that point to ae.natinst.com, because it is a server OR internal is not available outside, and happens frequently.  You can usually get the article itself by copying the number of the document to the end of the URL and then adding what he http://digital.ni.com/public.nsf/allkb/.  In this case, the item you want is http://digital.ni.com/public.nsf/allkb/17EA4DD6AAECD50A862570A7004B6146

  • Win 7 update problems

    25/08/10 Windows updates create once more questions for my computer.  My PC updated 8/25, rebooted and hung "Starting Windows".  I was able to restore back a few days but now I'm worried about the installation of these updates.

    HiAlexpinca,

    Method 1:

    First try to install the updates using updates of windows one after the other and check.

    Reference:

    Install Windows updates
    http://Windows.Microsoft.com/en-us/Windows7/install-Windows-updates

    If you encounter any problem in executing the step above, you can install the updates one by one on your computer manually and check if the problem reappears.

    Download and save the Setup on your desktop package and try to install the same one by one and check what update is causing the problem.

    To do this, you must enter the number of the Windows Update in the search field in the link provided below.

    Link Download Center

    http://www.Microsoft.com/downloads/en/default.aspx

    Method 2:

    You can also use Event Viewer to search for information on the problem.

    Here is an article on how to do it:

    The display of the error messages in the event viewer
    http://support.Microsoft.com/kb/947321

    You can see for more information on the issue at the time where it occurred.

    You can post this information here to help us narrow down where the focus.

    Thank you, and in what concerns:
    I. Suuresh Kumar - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for