ORA-01858: a non-digit character was found here where was waiting for a digital

Hi friends,

Before posting inturn I have goggled on the question above, but looking forward for you suggestions.

I have the data in the table that consist of two columns of date below

Date Validation.PNG

when im trying to like

TO_NUMBER (ROUND (MONTHS_BETWEEN (TO_DATE (C22_LASTPAYDUEDATE, "YYYY-MM-DD HH24:MI:SS), TO_DATE (C23_FACGRANTDATE," YYYY-MM-DD HH24:MI:SS)))))))

Like the im getting the error ORA-01858: a non-digit character was found here where was waiting for a digital. How to solve this question friends.

Thanks in advance.

Kind regards

Saro

If C22_FACGRANTDATE and C23_LASTPAYDUEDATE are indeed 'two date columns', why are you doing a TO_DATE() on them? And why do you do a TO_NUMBER() to a value that will already be a number? Why not just do this:

ROUND (MONTHS_BETWEEN (C22_LASTPAYDUEDATE, C23_FACGRANTDATE))

If they are not the columns date (i.e. the DATE or TIMESTAMP data type columns), why are they not?

Tags: Database

Similar Questions

  • PLSQL procedure with the ORA-01858: a non-digit character was found where

    Hi friends,
    I'm pretty much back to the plsql programming. I am creating the plsql procedure that basically accepts the values of variables and controls difference of two columns if she's even if different it inserts values into the temporary table GTT_S_DOC_QUOTE, and then inserts data into another table in s_doc_quote please help me or correct my procedure.
    Since I'm getting below error ORA-01858: a non-digit character was found here where waiting a digital .my procedure is as below.
    CREATE OR REPLACE PROCEDURE QUOTE_STS)

    ROW_ID_IN GGATE_CT. GTT_S_DOC_QUOTE. ROW_ID % TYPE,
    STAT_CD_IN GGATE_CT. GTT_S_DOC_QUOTE. STAT_CD % TYPE,
    PREV_STS_CD_IN GGATE_CT. GTT_S_DOC_QUOTE. PREV_STS_CD % TYPE,
    BU_ID_IN GGATE_CT. GTT_S_DOC_QUOTE. BU_ID % TYPE,
    CREATED_IN GGATE_CT. GTT_S_DOC_QUOTE. CREATED % TYPE,
    X_CRRNT_TOT_AGRD_RMS_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_TOT_AGRD_RMS % TYPE,
    X_CRRNT_TOT_BLCKD_RMS_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_TOT_BLCKD_RMS % TYPE,
    X_CRRNT_TOT_PCKDUP_RMS_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_TOT_PCKDUP_RMS % TYPE,
    X_CRRNT_TOT_PCKDUP_AVGRT_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_TOT_PCKDUP_AVGRT % TYPE,
    X_CRRNT_TOT_BLCKD_AVGRT_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_TOT_BLCKD_AVGRT % TYPE,
    X_CRRNT_CNTRCT_SR_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_SR_REVN % TYPE,
    X_CRRNT_CNTRCT_FD_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_FD_REVN % TYPE,
    X_CRRNT_CNTRCT_BEV_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_BEV_REVN % TYPE,
    X_CRRNT_CNTRCT_RM_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_RM_REVN % TYPE,
    X_CRRNT_USD_EXCHNG_RT_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_USD_EXCHNG_RT % TYPE,
    X_CRRNT_CNTRCT_OTHR_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_OTHR_REVN % TYPE,
    X_CRRNT_CNTRCT_RSRC_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_RSRC_REVN % TYPE,
    LAST_UPD_IN GGATE_CT. GTT_S_DOC_QUOTE. LAST_UPD % TYPE)

    BEGIN

    IF (PREV_STS_CD == STAT_CD) then
    END if;
    INSERT INTO GTT_S_DOC_QUOTE)
    ROW_ID,
    STAT_CD,
    PREV_STS_CD,
    BU_ID,
    CREATED,
    X_CRRNT_TOT_AGRD_RMS,
    X_CRRNT_TOT_BLCKD_RMS,
    X_CRRNT_TOT_PCKDUP_RMS,
    X_CRRNT_TOT_PCKDUP_AVGRT,
    X_CRRNT_TOT_BLCKD_AVGRT,
    X_CRRNT_CNTRCT_SR_REVN,
    X_CRRNT_CNTRCT_FD_REVN,
    X_CRRNT_CNTRCT_BEV_REVN,
    X_CRRNT_CNTRCT_RM_REVN,
    X_CRRNT_USD_EXCHNG_RT,
    X_CRRNT_CNTRCT_OTHR_REVN,
    X_CRRNT_CNTRCT_RSRC_REVN,
    LAST_UPD
    )
    VALUES ('ROW_ID_IN',
    "STAT_CD_IN,"
    "PREV_STS_CD_IN,"
    "BU_ID_IN,"
    "CREATED_IN,"
    "X_CRRNT_TOT_AGRD_RMS_IN,"
    "X_CRRNT_TOT_BLCKD_RMS_IN,"
    "X_CRRNT_TOT_PCKDUP_RMS_IN,"
    "X_CRRNT_TOT_PCKDUP_AVGRT_IN,"
    "X_CRRNT_TOT_BLCKD_AVGRT_IN,"
    "X_CRRNT_CNTRCT_SR_REVN_IN,"
    "X_CRRNT_CNTRCT_FD_REVN_IN,"
    "X_CRRNT_CNTRCT_BEV_REVN_IN,"
    "X_CRRNT_CNTRCT_RM_REVN_IN,"
    "X_CRRNT_USD_EXCHNG_RT_IN,"
    "X_CRRNT_CNTRCT_OTHR_REVN_IN,"
    "X_CRRNT_CNTRCT_RSRC_REVN_IN,"
    'LAST_UPD '.
    );

    INSERT INTO S_DOC_QUOTE_CT
    (ROW_ID_OUT, STAT_CD_OUT, PREV_STS_CD_OUT, BU_ID_OUT, CREATED_OUT, X_CRRNT_TOT_AGRD_RMS_OUT, X_CRRNT_TOT_BLCKD_RMS_OUT, X_CRRNT_TOT_PCKDUP_RMS_OUT, X_CRRNT_TOT_PCKDUP_AVGRT_OUT,
    X_CRRNT_TOT_BLCKD_AVGRT_OUT, X_CRRNT_CNTRCT_SR_REVN_OUT, X_CRRNT_CNTRCT_FD_REVN_OUT, X_CRRNT_CNTRCT_BEV_REVN_OUT, X_CRRNT_CNTRCT_RM_REVN_OUT, X_CRRNT_USD_EXCHNG_RT_OUT, X_CRRNT_CNTRCT_OTHR_REVN_OUT,
    SELECT X_CRRNT_CNTRCT_RSRC_REVN_OUT ROW_ID), STAT_CD, PREV_STS_CD, BU_ID, CREATED, X_CRRNT_TOT_AGRD_RMS, X_CRRNT_TOT_BLCKD_RMS, X_CRRNT_TOT_PCKDUP_RMS, X_CRRNT_TOT_PCKDUP_AVGRT,.
    X_CRRNT_TOT_BLCKD_AVGRT, X_CRRNT_CNTRCT_SR_REVN, X_CRRNT_CNTRCT_FD_REVN, X_CRRNT_CNTRCT_BEV_REVN, X_CRRNT_CNTRCT_RM_REVN, X_CRRNT_USD_EXCHNG_RT, X_CRRNT_CNTRCT_OTHR_REVN,
    GGATE_CT X_CRRNT_CNTRCT_RSRC_REVN. GTT_S_DOC_QUOTE;

    COMMIT;
    end if;
    end QUOTE_STS;

    I was wondering why I get this error even if I stated the PREV_STS_CD

    What line do you think that you said PREV_STS_ID on? As far as I can see that the IF statement is the first mention of it in your code. My guess is that you mean PREV_STATS_ID_IN (goes the same for STAT_CD / STAT_CD_IN).

    If you write

    IF prev_sts_cd_in = stat_cd_in
    THEN
       NULL;
    END IF;
    
    do_something_here;
    

    then "do_something_here" will be processed regardless of the IF condition. I think what you probably wanted was something like

    IF prev_sts_cd_in = stat_cd_in
    THEN
       NULL;
    ELSE
       do_something_here;
    END IF;
    

    Is it possible for the prev_sts_cd and the stat_cd null? The test above would not handle this.

    Also, as others have mentioned, the first INSERT statement attempts to insert the strings like "ROW_ID_IN" you probably want to use the value of the ROW_ID_IN parameter, which is the reason why you get the error ORA-01858. I'm guessing here of course, but I took out the quotes.

    That would make your code something like this:

    CREATE OR REPLACE PROCEDURE quote_sts
        ( row_id_in                    ggate_ct.gtt_s_doc_quote.row_id%TYPE
        , stat_cd_in                   ggate_ct.gtt_s_doc_quote.stat_cd%TYPE
        , prev_sts_cd_in               ggate_ct.gtt_s_doc_quote.prev_sts_cd%TYPE
        , bu_id_in                     ggate_ct.gtt_s_doc_quote.bu_id%TYPE
        , created_in                   ggate_ct.gtt_s_doc_quote.created%TYPE
        , x_crrnt_tot_agrd_rms_in      ggate_ct.gtt_s_doc_quote.x_crrnt_tot_agrd_rms%TYPE
        , x_crrnt_tot_blckd_rms_in     ggate_ct.gtt_s_doc_quote.x_crrnt_tot_blckd_rms%TYPE
        , x_crrnt_tot_pckdup_rms_in    ggate_ct.gtt_s_doc_quote.x_crrnt_tot_pckdup_rms%TYPE
        , x_crrnt_tot_pckdup_avgrt_in  ggate_ct.gtt_s_doc_quote.x_crrnt_tot_pckdup_avgrt%TYPE
        , x_crrnt_tot_blckd_avgrt_in   ggate_ct.gtt_s_doc_quote.x_crrnt_tot_blckd_avgrt%TYPE
        , x_crrnt_cntrct_sr_revn_in    ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_sr_revn%TYPE
        , x_crrnt_cntrct_fd_revn_in    ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_fd_revn%TYPE
        , x_crrnt_cntrct_bev_revn_in   ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_bev_revn%TYPE
        , x_crrnt_cntrct_rm_revn_in    ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_rm_revn%TYPE
        , x_crrnt_usd_exchng_rt_in     ggate_ct.gtt_s_doc_quote.x_crrnt_usd_exchng_rt%TYPE
        , x_crrnt_cntrct_othr_revn_in  ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_othr_revn%TYPE
        , x_crrnt_cntrct_rsrc_revn_in  ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_rsrc_revn%TYPE
        , last_upd_in                  ggate_ct.gtt_s_doc_quote.last_upd%TYPE )
    IS
    BEGIN
        IF prev_sts_cd_in = stat_cd_in
        THEN
            NULL;
        ELSE
            INSERT INTO gtt_s_doc_quote
                 ( row_id
                 , stat_cd
                 , prev_sts_cd
                 , bu_id
                 , created
                 , x_crrnt_tot_agrd_rms
                 , x_crrnt_tot_blckd_rms
                 , x_crrnt_tot_pckdup_rms
                 , x_crrnt_tot_pckdup_avgrt
                 , x_crrnt_tot_blckd_avgrt
                 , x_crrnt_cntrct_sr_revn
                 , x_crrnt_cntrct_fd_revn
                 , x_crrnt_cntrct_bev_revn
                 , x_crrnt_cntrct_rm_revn
                 , x_crrnt_usd_exchng_rt
                 , x_crrnt_cntrct_othr_revn
                 , x_crrnt_cntrct_rsrc_revn
                 , last_upd )
            VALUES
                 ( row_id_in
                 , stat_cd_in
                 , prev_sts_cd_in
                 , bu_id_in
                 , created_in
                 , x_crrnt_tot_agrd_rms_in
                 , x_crrnt_tot_blckd_rms_in
                 , x_crrnt_tot_pckdup_rms_in
                 , x_crrnt_tot_pckdup_avgrt_in
                 , x_crrnt_tot_blckd_avgrt_in
                 , x_crrnt_cntrct_sr_revn_in
                 , x_crrnt_cntrct_fd_revn_in
                 , x_crrnt_cntrct_bev_revn_in
                 , x_crrnt_cntrct_rm_revn_in
                 , x_crrnt_usd_exchng_rt_in
                 , x_crrnt_cntrct_othr_revn_in
                 , x_crrnt_cntrct_rsrc_revn_in
                 , last_upd );
    
            INSERT INTO s_doc_quote_ct
                 ( row_id
                 , stat_cd
                 , prev_sts_cd
                 , bu_id
                 , created
                 , x_crrnt_tot_agrd_rms
                 , x_crrnt_tot_blckd_rms
                 , x_crrnt_tot_pckdup_rms
                 , x_crrnt_tot_pckdup_avgrt
                 , x_crrnt_tot_blckd_avgrt
                 , x_crrnt_cntrct_sr_revn
                 , x_crrnt_cntrct_fd_revn
                 , x_crrnt_cntrct_bev_revn
                 , x_crrnt_cntrct_rm_revn
                 , x_crrnt_usd_exchng_rt
                 , x_crrnt_cntrct_othr_revn
                 , x_crrnt_cntrct_rsrc_revn
                 , last_upd)
            SELECT row_id
                 , stat_cd
                 , prev_sts_cd
                 , bu_id
                 , created
                 , x_crrnt_tot_agrd_rms
                 , x_crrnt_tot_blckd_rms
                 , x_crrnt_tot_pckdup_rms
                 , x_crrnt_tot_pckdup_avgrt
                 , x_crrnt_tot_blckd_avgrt
                 , x_crrnt_cntrct_sr_revn
                 , x_crrnt_cntrct_fd_revn
                 , x_crrnt_cntrct_bev_revn
                 , x_crrnt_cntrct_rm_revn
                 , x_crrnt_usd_exchng_rt
                 , x_crrnt_cntrct_othr_revn
                 , x_crrnt_cntrct_rsrc_revn
                 , last_upd
            FROM   ggate_ct.gtt_s_doc_quote;
    
        END IF;
    END quote_sts;
    
  • ERR: a non-digit character was found here where was waiting for a digital

    Hello

    I'm trying to load data into an oracle from oracle table.

    I am getting following error:
    java.sql.SQLDataException: ORA-01858: a non-digit character was found here where was waiting for a digital

    When I run the sql code in the SQL Developer it gives me error like:

    Error report:
    SQL error: ORA-01858: a non-digit character was found here where was waiting for a digital
    01858 00000 - "a non-digit character found here where was waiting for a digital".
    * Cause: Input data to convert using a date format model has been
    incorrect answer. The input data did not contain a number where is a number
    required by the format model.
    * Action: Fix the input data or the date format model to ensure that the
    elements correspond to the number and the type. And then try the operation again.



    Please give me any suggestions...



    Thank you

    try to copy the code generated to the developer of Toad or sql and execute it. You will get the same error here.

    Now, try to give the date format according to your NLS parameter as to_date (source_coulumn, 'yyyymmdd') etc in the mapping target.

    Thank you.

  • a non-digit character was while digital was expected

    Hello


    I get the error from database when working with Oracle PLSQL code below.

    I come from a previous date Sunday in a variable and passing the date in the native dynamic SQL

    DECLARE
    v_sun_date DATE;
    v_sql varchar2(30);
    v_s1_date VARCHAR2(30);
    v_sql1  VARCHAR2(1000);
    v_date VARCHAR2(30);
    BEGIN
    
    
    --select to_char(next_day ( trunc (sysdate-5, 'iw') , 'Sunday'  ) ,'DD-MON-YY') into v_sun_date from dual;
    
    
    SELECT to_date(to_char(trunc(next_day(sysdate-5,'Sunday')),'MM/DD/YYYY'),'MM/DD/RRRR') into v_sun_date from dual;
    dbms_output.put_line('The sunday date is '||v_sun_date);
    
    
    --select TO_DATE(v_sun_date,'MM/DD/YYYY') into v_s1_date from dual;
    --dbms_output.put_line('The sunday date is '||v_s1_date);
    
    
    --v_sql := q'[drop table test_util]';
    --execute immediate v_sql;
    
    
    execute immediate q'[create table test_util as
    SELECT A.*
    From  HRBOSTF.TBL_STF_UTL_MAIN A, DIM_DATE
    where EMPLOYEE_NUMBER <> 'FILLER' and (A.PROVIDER_REGION = 'Own' or A.PROVIDER_REGION ='Inter SBU')
              and dim_date.Weekend_date <=  '||v_sun_date||'                             --to_date('11/01/2015','MM/DD/YYYY')  --- 1st feb sunday date
              and NVL(DIm_date.Note,'A') <> 'I'
              and COST_PA_PERIOD=DIm_date.Week_no
              and PROJECT_TYPE <> 'Public Holidays'
              and provdr_bu in ('CPRD','EUC','HTEC','IDS','MALS','CBS')
              and job_rank not in ('5 CN','05 SB','ZZ','NonEm','16','64 SU')
              and job_desc not in('Contractor', 'Supervising Associate')
              and job_class = 'CSS']';
    
    
    
    
    END;
    /
    

    If please appreciate your help and must pass the v_sun_date to immediate execution.

    Concerning

    What are you trying to do with this?

    To_date (to_char(some_date_expression,'MM/DD/YYYY'), ' DD/MM/RRRR')

    This is a verbose and inefficient way to TRUNC (some_date_expression), but your expression of date is already truncated so it is useless.

    Your problem however is that your immediate execution of the query compares Weekend_date with the literal string. v_sun_date | instead of the contents of the variable v_sun_date. The best solution would be to use a variable binding (although I agree with Paul that it is generally a bad idea to create tables on the fly like this):

    run immediately q'[create table test_util like

    SELECT A.*

    Of HRBOSTF. TBL_STF_UTL_MAIN A, DIM_DATE

    where EMPLOYEE_NUMBER <> 'FILL' and (A.PROVIDER_REGION = 'Clean') or A.PROVIDER_REGION = 'SBU Inter'

    and dim_date. Weekend_date <=> : 1

    and NVL (dim_date.note, 'A') <> 'I '.

    and COST_PA_PERIOD = DIm_date. Week_no

    and PROJECT_TYPE <> "holidays".

    and provdr_bu in ('SPCER', 'EUC', 'SACTH', 'ID', 'EVILS', 'CBS')

    and not job_rank ("' CN 5 ', '05', 'ZZ', 'NonEm' SB ', '16', ' SU 64 ')

    and not job_desc ("Entrepreneur", "supervision associated with")

    and job_class = 'CSS']'

    Using v_sun_date;

  • : Error: the port number you entered contains a non-digit character

    Hi all

    Nice day.

    After installation of the version 11g GRID on a Windows 2008 Server, now I tried to install the Agent on one of the servers which is a 64-bit solaris box.

    I read that silent installation is possible.

    I made the necessary changes in the additional_agent.rsp.
    OMS_HOST=xxx.43.xx.177
    OMS_PORT=4889
    AGENT_REGISTRATION_PASSWORD=xxxxx123
    The same thing has been changed in the staticports.ini
    Oracle Management Agent Port=4889
    The OMS_HOST contains the IP address where the grid and OMS_PORT is the port of the GRID.

    Then on run the below command, I get this error:
    -bash-3.00$ ./runInstaller -silent -responseFile /t5/oracle/grid_agent/solaris/response/additional_agent.rsp
    Starting Oracle Universal Installer...
    
    Checking Temp space: must be greater than 150 MB.   Actual 10602 MB    Passed
    Checking swap space: must be greater than 150 MB.   Actual 21941 MB    Passed
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-06-05_11-06-37PM. Please wait ...-bash-3.00$ *** Check for updates ***
    *** Select Installation Type ***
    *** Check Prerequisites ***
    *** Specify Oracle Management Service Location ***
    *** Customize Ports ***
    
    
    
    
    
    
    ERROR: Error:The port number you entered contains a non-numeric character.
    In the file journal below are comments:
    bash-3.00$ vi oraInstall2012-06-05_11-06-37PM.err
    "oraInstall2012-06-05_11-06-37PM.err" 16 lines, 1474 characters
    /etc/inittab does not seem to contain default runlevel information.
    oracle.sysman.install.oneclick.queries.AgentPortHandler$PortHandlerException: Failed to allocate free Enterprise Manager Central Console Port
    from Default Range 1830 to 1849. Please free a port from the Range and re-try the installation.
            at oracle.sysman.install.oneclick.queries.AgentPortHandler.getFreePort(AgentPortHandler.java:250)
            at oracle.sysman.install.oneclick.EMGCPortDlg.getPortDialogValues(EMGCPortDlg.java:388)
            at oracle.sysman.install.oneclick.EMGCPortDlg.m_createMainPanel(EMGCPortDlg.java:301)
            at oracle.sysman.install.oneclick.EMGCOMSConnectInfoForAgentInstall$PageValidationListener.wizardValidatePage(EMGCOMSConnectInfoForAge
    ntInstall.java:262)
            at oracle.bali.ewt.wizard.WizardPage.processWizardValidateEvent(Unknown Source)
            at oracle.bali.ewt.wizard.WizardPage.validatePage(Unknown Source)
            at oracle.bali.ewt.wizard.BaseWizard.validateSelectedPage(Unknown Source)
            at oracle.bali.ewt.wizard.BaseWizard._validatePage(Unknown Source)
            at oracle.bali.ewt.wizard.BaseWizard.doNext(Unknown Source)
            at oracle.bali.ewt.wizard.dWizard.DWizard.doNext(Unknown Source)
            at oracle.bali.ewt.wizard.dWizard.DWizard.goForward(Unknown Source)
            at oracle.sysman.install.oneclick.EMGCInstaller.prepareForSilentInstall(EMGCInstaller.java:952)
            at oracle.sysman.install.oneclick.EMGCInstaller.main(EMGCInstaller.java:1031)
    ERROR: Error:The port number you entered contains a non-numeric character.
    Please suggest how to

    Concerning
    KK

    A few things to check:

    -Check that the file/etc/hosts on the computer (agent) has a target entry valid for the host, especially its ip address. If necessary, run the following commands to cross check:
    Nslookup
    Nslookup

    Note: The recommended file/etc/hosts format is .

    -Check if there is a restriction of firewall on the range of ports from 1830 to 1849

    Kind regards
    -Loc

  • Licenses messed up, nobody is at home at Adobe and was waiting for help online for more than 10 minutes

    Updated 9-12 volume license (first mistake).  I was told we could keep volume licensing - went to write in the first person, and it is demanding an adobe ID to register and then does not recognize the license key.  Cannot talk to anyone at Adobe, because all no automated, it seems, no humans.  Any ideas?

    Also, the email addresses are confused for licenses.  Adobe 9 is under an e-mail and the upgrade is another.  Adobe doesn't have more than customer either only the sales of services.  I'm ready to call the dealer and tell him that she be reimbursed.

    Hi Robin,

    Adobe has the customer service...  The quick/more easier way to communicate with them is usually via live online chat, although it cannot be opened permanently.  Is that what you meant by "waiting on live help for 10 minutes"?

    Contact the customer service

    [Search "still need help? [Contact us" below]

    It is the right place to go, as this is a user forum and most of the people here do not have the power to fix the licensing issues.

  • ORA-01858

    I am trying to create a partition of the range and getting ORA-01858: a non-digit character was found here where was waiting for a digital

    SQL > create table range (order_date date) partition by range (order_date) (partition p1 values less than (to_date('01-JAN-2011','DD-MM-YYYY')));


    ERROR on line 1:
    ORA-01858: a non-digit character was found here where was waiting for a digital

    I've changed my session and changed NLS_DATE_FORMAT = DD-MON-YYYY HH24:MI:SS

    Any suggestions how to fix it?

    You insert "JAN" like months but the to_date wait the number of months, you need to change or modify "MM".
    create the table range (order_date date) partition by range (order_date) (partition p1 values less than (to_date('01-JAN-2011','DD-MM-YYYY')));

    Fix will be:

    create the table range (order_date date) partition by range (order_date) (partition p1 values less than (to_date('01-01-2011','DD-MM-YYYY')));

  • Error ORA - 01858 Apex report working / valid underlying the request

    After two days of searching for these forums and AskTom, I think I need to put the following problem.

    I have what seems to be a valid view of certain data that is created as follows (with apologies for the formatting - doesn't seem to be a way to use a fixed font here):

    CREATE OR REPLACE VIEW "PRICING_CAPABILITY" OF THE FORCE. "" POW_EXEC_SUMM010 "("Item",
    "Jul-09", "Aug-09", "Ms-09", "Oct-09", "Nov-09", "Dec-09", "Jan-10", "" "" "
    'Feb-10', '10-Mar', 'Apr-10', '10-may', 'Jun-10', 'CDA')
    AS
    SELECT
    "Item."
    Sum (decode("ItemMonth",'Jul-09',"ItemValue",0)) "Jul - 09,
    Sum (decode("ItemMonth",'Aug-09',"ItemValue",0)) "Aug - 09,
    Sum (decode("ItemMonth",'Sep-09',"ItemValue",0)) "Sep - 09,
    Sum (decode("ItemMonth",'Oct-09',"ItemValue",0)) "Oct - 09,
    Sum (decode("ItemMonth",'Nov-09',"ItemValue",0)) "Nov - 09,
    Sum (decode("ItemMonth",'Dec-09',"ItemValue",0)) "Dec - 09,
    Sum (decode("ItemMonth",'Jan-10',"ItemValue",0)) "Jan - 10,
    Sum (decode("ItemMonth",'Feb-10',"ItemValue",0)) "Feb - 10,
    Sum (decode("ItemMonth",'Mar-10',"ItemValue",0)) "Mar - 10,
    Sum (decode("ItemMonth",'Apr-10',"ItemValue",0)) "Apr - 10,
    Sum (decode("ItemMonth",'May-10',"ItemValue",0)) "may-10,
    Sum (decode("ItemMonth",'Jun-10',"ItemValue",0)) "Jun - 10."
    Sum ("ItemValueOptional") AS "CDA".
    Of
    (
    SELECT
    "Received new proposals" AS "Item."
    To_char(T1.scope_received,'Mon-RR') AS "ItemMonth."
    Count (*) AS "Valeurelement."
    10. AS 'SortOrder '.
    Of
    PRICING_CAPABILITY. POW_DATA t1
    WHERE
    T1.scope_received IS NOT NULL
    AND extract it (FROM AN t1.scope_received) IN (2009,2010)
    ' AND t1.scope_received > = July 1, 2009.
    GROUP BY
    «New proposals received.»
    To_char(T1.scope_received,'Mon-RR'),
    10
    UNION
    SELECT
    "New proposals complΘtΘ' AS"Item. "
    To_char(T2.pricing_approval,'Mon-RR') AS "ItemMonth."
    Count (*) AS "Valeurelement."
    20. AS 'SortOrder '.
    Of
    PRICING_CAPABILITY. POW_DATA t1
    JOIN PRICING_CAPABILITY. POW_LAST_HISTORY t2
    WE
    T1. POW_DATA_ID = t2. POW_DATA_ID
    WHERE
    T2.pricing_approval IS NOT NULL
    AND extract it (FROM AN t2.pricing_approval) IN (2009,2010)
    ' AND t2.pricing_approval > = July 1, 2009.
    GROUP BY
    "End of new proposals."
    To_char(T2.pricing_approval,'Mon-RR')
    )
    GROUP BY
    "Item."
    'SortOrder '.
    ORDER BY
    "SortOrder";

    This view works, IE produced good results by operating (i.e. select * from...) with SQL Developer and SQL Workshop of the Apex section.

    But when I try to produce an Apex report, use it as a data source, I get the following error:

    ORA-01858: a non-digit character was found here where was waiting for a digital

    The error is displayed before that appear part any report itself, that is to say the header of the region is displayed and then the error message.

    So far, everything I could find on the forums or AskTom suggests that this is probably due to a problem. But the goal here is to summarize records dated by month, so I've extracted the elements year and date values, convert them to strings (using TO_CHAR) and then using the resulting chains of "MON - YY" to group the results.

    If there is a better way, I'm interested.

    But I do not understand why the Apex seems to be rejecting what appears to be valid results from a query of valid work.

    Any ideas? Suggestions?

    See you soon,.

    Peter

    You hit some implicit date conversion problem, probably caused by the preferred language of the browser in combination with the use of literals in the query.
    It's a bad idea to use literals as July 1, 2009"in an environment like Apex, which may have different date forrmats according to the preferences of the user.

    At the beginning of the rendered page Apex performs a SESSION of ALTER to change various NLS parameters.
    You can see this by turning on debugging, look for NLS in the resulting output and take a look at the settings that the Apex is application.
    The literal 1 July 2009"means the format DD-MON-YYYY mask, but regional settings applied through Apex may involve a different date format mask.

    Flavio

    ------
    http://oraclequirks.blogspot.com

  • ORA-01858 on TOAD

    Hi all


    When running this Toad sqlplus query, it works fine... but when am with toad is a failure with

    ORA-01858: a non-digit character was found here where was waiting for a digital


    SELECT TRUNC(TRANSDATE) , CALLEDHOMECODE DESTINATION,
    (SELECT DESTINATION_DESC FROM dbm.DBM_DESTINATION WHERE DESTINATION_CODE =A.CALLEDHOMECODE AND ROWNUM <2) country,
    CALLTYPE,COUNT( DISTINCT SUBNO) NOOFSUB,COUNT(*) NOOFCALLS,SUM(CALLDURATION) ACT_DURATION,SUM(BILLAMOUNT)  FROM TABSBGR.ROAMING_PREP_CALLS A
    where calltype in ('001','031')
    AND  TRANSDATE BETWEEN TO_DATE('17-OCTOBER-2009 000000','DD-MM-YYYY HH24MISS') AND TO_DATE('23-OCTOBER-2009 235959','DD-MM-YYYY HH24MISS')
    AND CALLEDHOMECODE <> '965'
    AND TRUNC((length(trim(b_subno))+7)/8)<>1
    AND ROWID IN
    (SELECT MIN(ROWID) FROM TABSBGR.ROAMING_PREP_CALLS WHERE CALLTYPE IN ('001','031')
    GROUP BY TRANSDATE, SUBNO, B_SUBNO, CHARGINGTIME, CALLTYPE, CHARGINGTYPE, CALLDURATION, BILLAMOUNT, PREBALANCE, POSTBALANCE, CHARGINGPARTYNO)
    GROUP BY  TRUNC(TRANSDATE),CALLEDHOMECODE,CALLTYPE;
    Any idea?


    Kai

    Hello

    The date and the format mask does not match.

    AND  TRANSDATE BETWEEN TO_DATE('17-OCTOBER-2009 000000','DD-MM-YYYY HH24MISS') AND TO_DATE('23-OCTOBER-2009 235959','DD-MM-YYYY HH24MISS')
    

    You use the month completely ("OCTOBER"), but the format is given in the form "MM".
    Change the above to

    AND  TRANSDATE BETWEEN TO_DATE('17-OCTOBER-2009 000000','DD-MONTH-YYYY HH24MISS')
                                       AND TO_DATE('23-OCTOBER-2009 235959','DD-MONTH-YYYY HH24MISS')
    

    Arun-

  • RMAN-03009 and ORA-01858 everything by backing up archiving logs

    Hello!

    Since today, I get the above errors to backup the fra tape archiving logs. I tried the following: error ORA-01858 in RMAN during backup backupset format ' / test/rman/%U'
    If I manually do the backup for a client, it works!

    environment:
    Server: windows 2008 standard server
    Oracle: 10.2.0.4.0

    configuration of RMAN:
    CONFIGURE RETENTION POLICY TO THE 5 DAY RECOVERY WINDOW;
    CONFIGURE BACKUP OPTIMIZATION
    SET UP DEFAULT DISK DEVICE TYPE; # by default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
    SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
    CONFIGURE ENCRYPTION OF DATABASE # by default
    CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY; # by default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\SNCFAPEX. ORA'; # by default

    Error log:
    Recovery Manager: Release 10.2.0.4.0 - Production on Thu Oct 1 04:30 2009

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    connected to target database: APEX (DBID = 1331326226)
    connected to the recovery catalog database

    RMAN > sql 'alter system archive log current;
    2 > run {}
    3 > #-> drive backup
    4 > backup archivelog all;
    5 > # FRA-> band
    6 > allocate channel ch1 type 'sbt_tape '.
    7 > PARMS = "BLKSIZE = 262144, ENV = (CvClientName = ora5neu, CvInstanceName = Instance001)"; "
    8 > save the recovery area.
    {9 >}
    10 >
    SQL statement: alter system archive log current

    From backup 1st October 09
    Current archived log
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = devtype 81 = DISK
    skip the log file archive D:\FRA\APEX\ARCHIVELOG\2009_09_10\O1_MF_1_2720_5BKO9BOL_. ARC; already saved 1 time
    ...
    skip the log file archive D:\FRA\APEX\ARCHIVELOG\2009_10_01\O1_MF_1_2981_5D7PZDXX_. ARC; already saved 1 time
    channel ORA_DISK_1: from archive newspaper backupset
    channel ORA_DISK_1: specification of archive log backup set
    archive log entry thread = 1 sequence = 2733 recid = 2733 stamp = 697286083
    archive log entry thread = 1 sequence = 2734 recid = 2734 stamp = 697293002
    archive log entry thread = 1 sequence = 2735 recid = 2735 stamp = 697293004
    archive log entry thread = 1 sequence = 2856 recid = 2856 stamp = 698142602
    archive log entry thread = 1 sequence = 2857 recid = 2857 stamp = 698142603
    archive log entry thread = 1 sequence = 2982 recid = 2982 stamp = 699078603
    archive log entry thread = 1 sequence = 2983 recid = 2983 stamp = 699078605
    channel ORA_DISK_1: starting piece 1 to October 1 09
    channel ORA_DISK_1: finished piece 1 to October 1 09
    piece handle = D:\FRA\APEX\BACKUPSET\2009_10_01\O1_MF_ANNNN_TAG20091001T043006_5D8520K4_. Tag BKP = comment TAG20091001T043006 = NONE
    channel ORA_DISK_1: complete set of backups, time: 00:00:03
    Backup finished on 1st October 09

    From control file and SPFILE Autobackup 1st October 09
    piece handle = D:\FRA\APEX\AUTOBACKUP\2009_10_01\O1_MF_S_699078626_5D8522W8_. Comment BKP = NONE
    File control finished and SPFILE Autobackup to on 1 October 09

    output channel: ORA_DISK_1
    allocated channel: ch1
    channel ch1: sid = 81 = SBT_TAPE devtype
    channel ch1: CommVault Systems for Oracle: Version 7.0.0 (BUILD76)

    From backup 1st October 09
    specification does not match any data file copy in the repository
    skip the log file archive D:\FRA\APEX\ARCHIVELOG\2009_09_10\O1_MF_1_2720_5BKO9BOL_. ARC; already saved 4 times
    ...
    jump key 5203 backupset; already saved 1 time
    channel ch1: from archive newspaper backupset
    channel ch1: specification of archive log backup set
    archive log entry thread = 1 sequence = 2982 recid = 2982 stamp = 699078603
    archive log entry thread = 1 sequence = 2983 recid = 2983 stamp = 699078605
    channel ch1: starting piece 1 to October 1 09
    channel ch1: finished piece 1 to October 1 09
    piece handle = i2kqm5vv_1_1 tag = comment TAG20091001T043031 = API 2.0, MMS Version 7.0.0.76 Version
    channel ch1: complete set of backups, time: 00:00:16
    entry count = 4670 stamp = 699064230 = creation_time backupset 1st October 09
    channel ch1: starting piece 1 to October 1 09
    RMAN-03009: failure of the backup command on channel ch1 at 2009-10-01 04:31:19
    ORA-01858: a non-digit character was found here where was waiting for a digital
    continue other job steps, not a not working will not re-run
    entry count = 4672 stamp = 699078622 = creation_time backupset 1st October 09
    channel ch1: starting piece 1 to October 1 09
    channel ch1: backup D:\FRA\APEX\BACKUPSET\2009_10_01\O1_MF_ANNNN_TAG20091001T043006_5D8520K4_ piece. BKP
    piece handle = i0kqm5uu_1_2 comment = API Version 2.0, Version MMS 7.0.0.76
    channel ch1: finished piece 1 to October 1 09
    channel ch1: complete set of backups, time: 00:00:07
    entry count = 4673 stamp = 699078626 = creation_time backupset 1st October 09
    channel ch1: starting piece 1 to October 1 09
    output channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03009: failure of the backup command on channel ch1 at 01/10/2009 04:31:35
    ORA-01858: a non-digit character was found here where was waiting for a digital

    Complete recovery manager.

    Thanks for your help!

    Ciao,.
    Christian

    See my note of the Support of Oracle:

    Subject: RMAN backup fails with RMAN-03009 ORA-01858 ORA-01861
    DOC - ID: 744047.1 Type: PROBLEM
    Modification date: 20 March 2009 status: MODERATE

    This could be a NLS_DATE_FORMAT / NLS_LANG questioned.

  • ATML Reporting: "an invalid character was found in text content."

    When you use ATML and including non-ASCII characters (code decimal 128 and more), the generated report is not viewable in Internet Explorer (or Firefox, in fact), producing the error "an invalid character was found in text content." I think it's because TestStand isn't actually encoding the content of the report to the UTF-8 format. The same sequence produces a clickthrough report XML declaration. It seems that this issue has been found (and fixed) for the XML declaration but many years back.

    If you open the attached XML file in UTF-8 compatible text editor (I used the Notepad) and re-save specifically in UTF-8 format, IE will happily consider subsequently report. The part that really confuses me is that TestStand generates successfully the temporary HTML version of the report for the integrated report viewer (also attached), the parser used internally by TestStand must be a bit more lenient than IE.

    I've included an example with a VI sequence, which returns only a string of ReportText of these problematic characters.

    ASBO-

    Thank you for bringing This problem to our attention. This will be fixed in a future version of TestStand. In the meantime, you can fix this problem with your current version of TestStand by editing the reportgen_atml.seq file. I've attached an example of how you could modify the reportgen_atml.seq file to fix it in this position. Please, note that this is simply an example of correct behaviour and may not be the final implementation included in future versions of TestStand. I recommend that you do not replace or delete your reportgen_atml.seq file and save the version annexed to your \Components\Models directory.

    I hope this helps. Thanks again for this bring to our attention.

  • SmartView: XML load error: an invalid character was found in text content.

    Hello

    IM using hyperion 11.1.2.1 with SmartView installed with Office 2007. Many forms are works good about it, but we've entered data on a number of them recently and we are unable to open in SmartView either through the icon and menu options in the workspace or via the smartview Panel in excel 2007. The error we get is "XML load error: an invalid character was found in text content.".

    See you soon,.

    Imran

    Take a look at the Oracle Support - "SmartView XML load error:"Year Invalid character was found in text content"[968808.1 ID]".
    It may be the same problem you are having.

    See you soon

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

  • Data load rule for BefImport script getting failed due to the error Code ORA-01858

    Hello guys,.

    I'm trying to load some data from the views created in EBS to HFM using FDMEE with the help of the BefImport Script. To do this, I wrote script below:

    _________________________________________________________________________________________________________________________________________________

    import java.sql SQL

    import sys

    batchName = "Batch_" + str (fdmContext ["LOCNAME"])

    insertStmt = «»

    stmtRS = «»

    If (fdmContext ["LOCNAME"] is "LOC_OIA_FA_CORP1"):

    "insertStmt = '"

    INSERT INTO AIF_OPEN_INTERFACE)

    BATCH_NAME

    YEAR

    PERIOD

    PERIOD_NUM

    CURRENCY

    COL04

    COL05

    COL07

    COL08

    COL09

    COL10

    COL11

    QUANTITY

    ) (VALUES

    ?

    ,?

    ,?

    ,?

    ,?

    ,?

    ,?

    ,?

    ,?

    ,?

    ,?

    ,?

    ,?

    )

    """

    sourceConn = sql. DriverManager.getConnection ("jdbc:oracle:thin:@ebsr12dbcnvgl.abc.com:1541:avc", "pppp", "nnnnn");

    # Limiting the number of rows to 5 during the test runs.

    selectStmt = 'SELECT TEMP_VIEW. PERIOD_YEAR, TEMP_VIEW. PERIOD_NAME, TEMP_VIEW. PERIOD_NUM, TEMP_VIEW. CURRENCY_CODE, TEMP_VIEW. SEGMENT1, TEMP_VIEW. SEGMENT2, CONCAT (TEMP_VIEW. SEGMENT3, TEMP_VIEW. "SEGMENT4) AS SEGMENTX, TEMP_VIEW.SEGMENT5, TEMP_VIEW.SEGMENT6, TEMP_VIEW.SEGMENT7, TEMP_VIEW.SEGMENT8, TEMP_VIEW.NETBAL FROM TEMP_VIEW WHERE THE QUAD IS NOT NULL.

    stmt = sourceConn.prepareStatement (selectStmt)

    stmtRS = stmt.executeQuery)

    batchName = "Batch_" + str (fdmContext ["LOCNAME"])

    While (stmtRS.Next ()):

    params = [batchName, stmtRS.getString("PERIOD_YEAR"),

    stmtRS.getString ("PERIOD_NAME"),

    stmtRS.getString ("PERIOD_NUM"),

    stmtRS.getString ("CURRENCY_CODE"),

    stmtRS.getString ("SEGMENT1"),

    stmtRS.getString ("SEGMENT2"),

    stmtRS.getString ("SEGMENTX"),

    stmtRS.getString ("SEGMENT5"),

    stmtRS.getString ("SEGMENT6"),

    stmtRS.getString ("SEGMENT7"),

    stmtRS.getString ("SEGMENT8"),

    stmtRS.getBigDecimal ("NETBAL")]

    fdmAPI.executeDML (insertStmt, params, False)

    fdmAPI.commitTransaction)

    stmtRS.close)

    stmt. Close()

    sourceConn.close)

    _________________________________________________________________________________________________________________________________________________

    But my DLR gets failed. When I checked the ODI journal for this, I found that it is said: stmtRS = stmt.executeQuery () and display and error code problem:

    java.sql.SQLDataException: java.sql.SQLDataException: ORA - 01858: a nonnumeric character where waiting a digital.

    What is the problem? Kindly help.

    Thank you

    Concerning

    Nishant

    Nishant

    small Question... What version you use.  the latest Patch is now universal data adapter that allows for a direct import of the tables and views without the need to use the Interface open to scene data table

    If you're not on current patch.100 then you should look at the data types for the OpenInterface table... you can see the number.  I guess it's the column YEAR or PERIOD_NUM giving you seizures

    If you run your code in Eclipse before you deploy I'd print our your insertStmt SQL and then try to run in SQLDeveloper.

    Hope this helps

    Wayne

  • ORA-19580: backup non-active conversation

    I started a backup in my work and the backup fails with the following error:

    From control file and SPFILE Autobackup 30 January 2013 05:37:40
    output channel: t1
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03009: failure of command of file control and SPFILE Autobackup on channel t1 at the 30/01/2013 05:37:42
    ORA-19580: backup non-active conversation

    Complete recovery manager.


    I've seen several articles on the Web and not found workaround. Anyone know the solution or a step on this problem?


    Kind regards
    Bruno Reis

    You start this instance of SPFILE, and then remove this SPFILE? If so, then that is the problem, the backup is trying to save the SPFILE and default. Recreate the SPFILE from PFILE.

    Thank you

    Rich

  • ORA-01882: zone schedule region %s not found

    What executeing what follows a query using sqldeveloper Version 2.1.0.63, the request is never ending.
    Select * from dba_scheduler_jobs;

    I see the following message is displayed above the query result window. "Execting: select * from dba_scheduler_jobs seconds en.219.

    The query does not complete, and there is no error in the log.



    Run the SQL query caused the following error.
    SQL > select * from dba_scheduler_jobs;
    ERROR:
    ORA-01882: zone schedule region %s not found

    After seeing this error in sqlplus our DBA executed actions listed on metalink notes 414590.1 . It has now fixed the problem from sqlplus, but the original problem in sqldeveloper persists even after the change in the database.



    What causes the error ORA-01882 and how I can fix?

    It was a bug in 2.1.0; Download 2.1.1 to solve.

    Have fun
    K.

Maybe you are looking for

  • used to synchronize nano

    Used to synchronize nano 4 GB. Cannot add or remove music nano via a computer usb port to nano!

  • Guard Satellite Pro stopping suddenly.

    My laptop is suddenly stop - and do not restart."It happens esp if I try to do a scan Mcafee - when it comes down to a ' 1386 file" on the C: drive it stops! (but it also stopped at another time).I've defragmented it and cleaned up the cookies etc. I

  • You get pay to use the online chat support?

    I'm trying to make a reservation for the genius bar, but the only options that appear are either make a phone call for technical assistance or to support chat online. I accidentally did a chat session support appointment and then quickly closed the c

  • back to Compaq Presario CQ60-214EM lost

    I need help please!  Stupid me lost my back upwards before save, can someone help me please to get and save on USB?  Thanking you kindly

  • Performance index Windows sides my RAM at 5.5, how can I increase this score.

    I have Windows 7 Home Premium 32 bit, and the performance index scores my RAM to 5.5 (lowest score).  I have 4 GB of RAM installed, which is the maximum 32-bit windows can use.  Because a maxed out what's a low score? -Mike