problem of format of date - ORA-01843: not a valid month beaked call OCIStmtExecu

Hello
I have a problem with the date format
in QAS I report with only 2 columns:
col1.date_test: casting (2999-12-31' AS DATE)
col2. Year

the result is:
CAST ('31-12-2999' AS DATE )  year
31-12-2999                    2011
When I run exactly the same on the PRD, I get the message:
message: ORA-01843: not a valid month in the OIC call OCIStmtExecute.

Obi version: 10.1.3.2.1 the two QAS/PRD
DB version: 10.2.0.5.0 the two QAS/PRD

I checked the following and they are exatly the same QAS and PRD: (checked via SQLPLUS)
NLS_Database_Parameters DD-MON-RR
v$ nls_parameters DD-MON-RR


the repostiory is the same, we moved to QAS for PRD;
the cast_supported is checked (but I checked the NQSConfig.INI anyway, the settings are identical in the two EPS)

IM out of ideas, what else can that check to see what the difference is in the configuration that causes the error above;
I have already followed the advice and checked what was possible, but it seems good;
http://gerardnico.com/wiki/dat/OBIEE/cast_as_date

ID appreciate advice;
Thank you
Rgds

Hello
I wasn't sure on the exact reason, but what we were doing we is alligned the format of the date in the following way:

NQSConfig:

DATE_TIME_DISPLAY_FORMAT = "dd-mm-yyyy hh ';
DATE_DISPLAY_FORMAT = "yyyy-mm-dd";


kmsgLanguageName_en
en
locale: en
,
.
,
-
:
AM
PM
SS tt
AAAA-MM-JJ - we fixed this line
DD MMMM yyyy
-#
DMY
victory: 0409
fake
.............

AAAA-MM-JJ - we fixed this line

in the repository, we have added the following command:
Log on to:
ALTER SESSION SET NLS_DATE_FORMAT = "DD-MM-YYYY

Now we know all the problems with dates;
I hope he stays this way :-)
Rgds

Tags: Business Intelligence

Similar Questions

  • ORA-01843: not a valid month - no dates on the form

    When I submit a form I get the error "ORA-01843: not one month valid." I've now removed all the date of the form fields, and there is no triggers or constraints on the table concerning the date fields, so I'm at a loss on how to solve this problem. Any help much appreciated.

    Edited by: Waggers April 11, 2012 03:38

    in lspq? a default value? in a select with to_date?

  • ORA-01843: not a valid month in sql loader

    Hello. I am trying to insert data at the time of the date column type and send it a message ORA-01843: not one month valid.

    My setup of ctl as follows:

    (EDT) 1 ' TO_DATE (SUBSTR (: (EDT) 1, 1, 19), "yyyy-mm-dd hh24:mi:ss"), "

    Nature of the data as follows:

    19:43:52.0000000

    Any help.

    Concerning

    Irfan

    SQL > select TO_TIMESTAMP ('19:43:52.0000000 ','hh24:mi:ss.ff ') of double;

    TO_TIMESTAMP ('19:43:52.0000000)

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

    01.11.13 19:43:52.000000000

    SQL >

    ----

    Ramin Hashimzade

  • Unable to compare date "ORA-01843: not one month valid."

    Hi all

    I'm trying to shoot under query, but it fails with the error. Please suggest.

    SELECT nom_de_colonne FROM tbl_name WHERE start_time < 1 January 2011 00:00:00 AM ';
    ORA-01843: not one month valid

    In the table the value of start_time is stored in format 16/02/2013 20:31:01.

    Kind regards
    Ankit

    Published by: 982193 on March 11, 2013 06:32

    You treat your date to a string rather than a date. This isn't how to treat data types, otherwise you will rely on implicit data type conversions and this means that Oracle will make assumptions about the data that you provide, such as what is the format of a date.

    You need something like...

    SELECT column_name FROM table_name  WHERE start_time < to_date('01/01/2011 00:00:00 AM','DD/MM/YYYY HH:MI:SS AM');
    
  • Data model (error: not a valid month)

    Hi all

    I develop a report of BI Publisher using data model where I FastInventory range date as start date and end Date. When I try to run the report I get the error as

    ORA-01843: not one month valid
    ORA-06512: at line 3 level

    In my default package, at the beginning of the model, I said start date and end date of. In the report, for date settings start date and end, I've given parameter as date type and date in the form MM/DD/YYYY format.

    The same report runs and if I use the model type of data as a sql query. But if I use the data model, I get the above error. I need to put the report using the data model. I can provide my data structure if necessary.

    Could someone help me?

    Thanks in advance...

    In case you haven't, try:

    AND trunc (NPP. NOTE_TIMESTAMP) BETWEEN to_date (: p_start_date, ' DD/MM/YYYY') AND to_date (: p_end_date, ' MM/DD/YYYY ' ")

  • Values for timestamp default XMLTable causes ORA-01843: not one month valid

    When I try to provide a default value for a timestamp value in the function XMLTABLE, I am greeted with an error - ORA-01843: not one month valid -no matter how to give this default value. If there is a value in the XML or not is irrelavant to this bug occurs. It seems to be an incomplete correction of bug number 9745897 (thread).

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ("< DOC > < DT > 2013-08-14T 15: 08:31 < /DT > < / DOC > '"))

    DT COLUMNS timestamp default sysdate) x;

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ("< DOC > < DT > 2013-08-14T 15: 08:31 < /DT > < / DOC > '"))

    By default systimestamp timestamp COLUMNS DT) x;

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ("< DOC > < DT > 2013-08-14T 15: 08:31 < /DT > < / DOC > '"))

    DT of COLUMNS timestamp default to_char (systimestamp, ' ' YYYY-MM-DD "T" HH24:MI:SS)) x;)

    Edit: somewhat more followed.

    It works:

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ("< DOC > < / DOC > '"))

    Date of the dt of COLUMNS by default sysdate) x;

    It works, too, with the exception of its just the date and not the time

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ("< DOC > < / DOC > '"))

    DT COLUMNS timestamp default sysdate) x;

    It does not work

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ("< DOC > < / DOC > '"))

    By default systimestamp timestamp COLUMNS DT) x;

    ORA-01861: literal does not match the format string

    Hello

    First of all, let's check the manual for the DEFAULT clause:

    Function SQL/XML XMLTABLE in Oracle XML DB

    The optional parameter DEFAULT clause specifies the value to use when the PATH expression results in an empty sequence (or NULL ). His expr is an XQuery expression that is evaluated to produce the default value.

    According to the documentation, the DEFAULT clause must specify an XQuery expression.

    However, is false, the implementation only expects an expression that matches a string, the content is not interpreted.

    Bottom line is, if we specify directly a string, the expression is implicitly converted into one, and everyone knows how things can go when implicit conversions appear, especially when the dates or timestamps are involved.

    Now let's focus on the impact of the DEFAULT clause on the evaluation of the query.

    When a DEFAULT clause is specified, Oracle has rewritten projection differently and does not use the native format of XS: DateTime to convert the value:

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ('))

    2013-08-14 T 15: 08:31
    ')

    DT of COLUMNS by default systimestamp timestamp

    ) x

    becomes:

    SELECT THE EXISTSNODE (VALUE(KOKBF$), '/ DOC/DT')

    WHEN 1 THEN LAUNCH (TO_TIMESTAMP (SYS_XQ_UPKXML2SQL (SYS_XQEXVAL (SYS_XQEXTRACT (VALUE(KOKBF$), '/ DOC/DT')), 50.1, 2)() as a timestamp)

    ELSE CAST (TO_TIMESTAMP (TO_CHAR (SYSTIMESTAMP (6)), 'SYYYY-MM-DD "T" HH24:MI:SSXFF') AS timestamp)

    END "DT".

    TABLE ("SYS". "XQSEQUENCE"(EXTRACT ("SYS"." XMLTYPE"(")

    2013-08-14 T 15: 08:31
    (((,'/ DOC'))) ' KOKBF$ '.

    See the red part: it does not use the format parameter, the conversion depends on NLS session parameters.

    When there is no DEFAULT clause, the TO_TIMESTAMP function uses an explicit format:

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ('))

    2013-08-14 T 15: 08:31
    ')

    Dt timestamp - default systimestamp COLUMNS

    ) x

    rewritten to:

    SELECT CAST)

    TO_TIMESTAMP)

    SYS_XQ_UPKXML2SQL (SYS_XQEXVAL (SYS_XQEXTRACT (VALUE(KOKBF$), '/ DOC/DT'), 0,0,20971520, 0), 50.1, 2)

    "SYYYY-MM-DD"T"HH24:MI:SSXFF"

    )

    BY timestamp - default systimestamp

    ) "DT".

    TABLE ("SYS". "XQSEQUENCE"(EXTRACT ("SYS"." XMLTYPE"(")

    2013-08-14 T 15: 08:31
    (((,'/ DOC'))) ' KOKBF$ '.

    So yes, maybe there is a bug here.

    Edit: somewhat more followed.

    It works:

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype (""))

    Date of the dt of COLUMNS by default sysdate) x;

    Actually no, it does not work. Certainly, maybe it produces no error, but the result is incorrect.

    As explained, the conversion is based on the NLS (NLS_DATE_FORMAT in this case) session:

    SQL > show nls_date_format settings

    VALUE OF TYPE NAME

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

    string of NLS_DATE_FORMAT JJ/MM/RR

    SQL >

    SQL > select sysdate to double;

    SYSDATE

    --------

    16/08/13

    SQL > select x.*

    2 from

    3 xmltable ('/ DOC' passing xmltype (""))

    4 COLUMNS dt date default sysdate) x;

    DT

    --------

    13/08/16

    Oracle first converts SYSDATE to a string using current NLS_DATE_FORMAT, having for result Aug 16, 13 '

    Then this string is converted to a DATE as XS: date is 'YYYY-MM-DD' leading 13/08/16 (13 August, 0016) which is incorrect.

    The obvious solution to this problem is to control how Oracle converts implicitly string to timestamp format:

    SQL > alter session set NLS_TIMESTAMP_FORMAT = "YYYY-MM-DD"T"HH24:MI:SS."

    Modified session.

    SQL > select x.*

    2 from

    3 xmltable ('/ DOC' from xmltype ('))

    2013-08-14 T 15: 08:31
    ')

    4 dt of systimestamp default timestamp COLUMNS

    (5) x;

    DT

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

    2013-08-14 T 15: 08:31

    SQL > select x.*

    2 from

    3 xmltable ('/ DOC' passing xmltype (""))

    4 dt of COLUMNS by default systimestamp timestamp) x;

    By default systimestamp timestamp COLUMNS DT) x

    *

    ERROR on line 4:

    ORA-01861: literal does not match the format string

    SQL > select x.*

    2 from

    3 xmltable ('/ DOC' passing xmltype (""))

    Cast of default timestamp COLUMNS dt (systimestamp timestamp) 4) x;

    DT

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

    2013 08-16 T 12: 32:58

  • java.sql.SQLDataException: ORA-01843: not one month valid

    We have deployed a custom page that is displayed correctly, but results in the error below when you try to run the search. This happens for all users except one. We have a user who is not the error message and can run the query and display the results.

    Everyone ran into an issue similar to this.


    Error page
    Details of the exception.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: 27122 Houston: SQL error in the preparation of the statement. Statement: SELECT * FROM (SELECT ContactEO.PERSON_ID,
    ContactEO.EMPLOYEE_NUMBER,
    ContactEO.FULL_NAME,
    ContactEO.JOB_CODE,
    ContactEO.LOCATION_NAME,
    ContactEO.SUPERVISOR_NAME,
    Decode (ManageContactEO.EMPLOYEE_ID, NULL, NULL, 'Y') AS FIRST_APPROVER,
    ManageContactEO.INVOICE_CONTACT_ID,
    ManageContactEO.INVOICE_CONTACT_CODE
    OF CSXXX_CS_EMPLOYEE_LIST_V ContactEO
    Join CSCUSTOM. CSXXX_CS_AP_INVOICE_CONTACTS ManageContactEO
    On ContactEO.PERSON_ID = ManageContactEO.Employee_ID (+)) QRSLT WHERE ((UPPER (LOCATION_NAME) as UPPER(:1) AND (LOCATION_NAME like: 2 OR LOCATION_NAME as: 3 OR LOCATION_NAME as: 4 OR LOCATION_NAME as: 5)))
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2978)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
    in OA. jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260)
    to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    # # 0 in detail
    java.sql.SQLDataException: ORA-01843: not one month valid

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:861)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3493)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection (unknown Source)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:743)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(OAWebBeanHelper.java:2334)
    at oracle.apps.fnd.framework.webui.OAQueryHelper.handleSubmitButton(OAQueryHelper.java:2871)
    at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequestAfterController(OAQueryHelper.java:1292)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:851)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
    at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequest(OAQueryHelper.java:1029)
    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1205)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2974)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
    in OA. jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260)
    to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    java.sql.SQLDataException: ORA-01843: not one month valid

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:861)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3493)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection (unknown Source)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:743)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(OAWebBeanHelper.java:2334)
    at oracle.apps.fnd.framework.webui.OAQueryHelper.handleSubmitButton(OAQueryHelper.java:2871)
    at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequestAfterController(OAQueryHelper.java:1292)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:851)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
    at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequest(OAQueryHelper.java:1029)
    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1205)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2974)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
    in OA. jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260)
    to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)

    java.sql.SQLDataException: ORA-01843: not one month valid

    Check the date format in THE CSXXX_CS_EMPLOYEE_LIST_V and make sure it is correct (or convert you it correctly).

    OERR: ORA 1843 a month not valid [19167.1 ID]

    Thank you
    Hussein

  • Query Builder session parameters as a resolve to ORA-01843 (not a month valid)

    Hi all! I am new to Oracle and RDBMS, sorry for a fake question.
    I'm doing a few queries to a tutorial (10 g XE) database with Query request Builder Express 2.1000039.
    I ask the column with id, order date and order status. in a column of the date as a condition command 'where' I've wrote:
     >= to_date('23-JUN-2006', 'DD-MON-RRRR') 
    and got an error "ORA-01843: not one month valid."

    Then I edited the line filter condition:
     >= to_date('23-JUN-2006', 'DD-MON-RRRR', 'NLS_DATE_LANGUAGE = american') 
    and got a decent result, BUT resulting table date format DD-MM-RR.

    So, here are a few questions:
    1. can I change settings of session (for example
    alter session set NLS_DATE_FORMAT = 'DD-MON-RRRR'
    ) so, to use it in the query designer, before you generate a request itself and do not write "NLS_DATE_LANGUAGE = american' whenever I am inserting data to a field of date data type?"
    2. I wonder why resulting table date format is "DD-MM-RRRR. How can I get a data exactly in a date format 'DD-MON-RRRR', how I am specifying in a query?

    My operating system is Windows 7 Home Basic Edition, NLS_DATE_FORMAT is DD-MON-YYYY in 2 cases, the register and, respectively, in the environment variable.

    SQL * Plus displays all tables in query mentionted correctly, corresponding to an "ALTER SESSION...". PARAMETERS.

    Hope for your help, guys. Thanks for the replies!

    >
    Can I change "Application Builder-> Application-> change security attributes" without creating applications?
    >

    No you need to create an application, and as I said application-level settings determine the application only, is not a solution. Furthermore, I'm not sure that this property is available in your version of the Apex.

    I tried to change the session using SQL commandsand then I went back to the Query Builder, but it doesn't change anything, it seems different sessions are used to connect to the database.

    Yes, I'm sorry, but I have no solution for you, maybe there is a way to change this somewhere in the admin part, but I have no rights admin here and I can't test anything.

    I hope that a few experts hops on the thread ;)

  • ORA-01843 not one month valid

    Hello

    I am trying to execute the sql and getting error ORA-01843 not valid for months to find the records that fall into the slot provided.

    SELECT ZIP_cde FROM T_ZIP_CODE where ZIP_CDE_END_DTE = 12/31/9999 ';

    Can you get it someone please let me know if something is wrong.

    Thank you!

    You must use to_date() with a suitable mask date or a date - literal example

    Select to_date (' 31/12/9999 ',' mm/dd/yyyy'), dates' 9999-12-31 to double;

  • I m facing a problem of 3 g data card is not connected to my windows 7

    I m facing a problem of 3 g data card is not connected to my window 7, the problem is that when I am connected to the data card in my pc, then click on connect to internet then a display of msg that "pls add a connection profile" when I go to Assisi and optional connection profile then click is no process I m unable to add the connection profile While this data card is correct in other window 7 and etc.

    Follow the steps in article

    http://www.ehow.co.UK/how_7257749_set-up-3G-Internet.html

  • ORA-01843: not valid month... you can help!

    Guys,
    Please help me with this query error... I can't find anything wrong with subparts...

    SELECT SUBPARTITION_NAME, TO_DATE (SUBSTR (SUBPARTITION_NAME-9), 'DD-MON-RR')
    OF ALL_TAB_SUBPARTITIONS
    WHERE TABLE_NAME = CP_FACT'
    AND TO_DATE (SUBSTR (SUBPARTITION_NAME-9), 'DD-MON-RR') < SYSDATE;

    *
    ERROR on line 4:
    ORA-01843: not one month valid

    SQL > SELECT * OF nls_session_parameters parameter WHERE = 'NLS_DATE_FORMAT;

    PARAMETER
    --------------------------------------------------------------------------------
    VALUE
    --------------------------------------------------------------------------------
    NLS_DATE_FORMAT
    DD-MON-RR


    Thank you.. Thank you!!!

    You can't assume order in which predicates are listed in the WHERE clause in the order they are applied. Subpartitions of the other tables on the assumption that all subparts of table CP_FACT not have 'DD-MON-RR' in the end, may not be. Therefore, if the condition TO_DATE (SUBSTR (SUBPARTITION_NAME-9), 'DD-MON-RR')< sysdate="" is="" evaluated="" first="" (which="" is="" most="" likely="" what="" happened="" in="" your="" case)="" it="" will="" fail.="">

    SELECT  SUBPARTITION_NAME,
            TO_DATE(SUBSTR(SUBPARTITION_NAME, -9),'DD-MON-RR')
      FROM  (
             SELECT  ROWNUM,
                     SUBPARTITION_NAME
               FROM  ALL_TAB_SUBPARTITIONS
               WHERE TABLE_NAME=CP_FACT'
            )
      WHERE TO_DATE(SUBSTR(SUBPARTITION_NAME, -9),'DD-MON-RR') < SYSDATE
    /
    

    SY.

  • REP-300: not a valid month select

    HELO!
    When I run a report on my OAS(10g) using a database (10 g) intall on Windows, there is no problem. but now I use an another database(10g) on Linux (RHEL5) and I get this error:
    REP-300: not a valid month select MAND_NUM DE_NUM, MAND_DE_NUM.
    can someone help me!

    can u comapre this sqls exit 2 on both your DB.

    Select * from NLS_SESSION_PARAMETERS, where the parameter as ' DATE % ";

    Select * from NLS_SESSION_PARAMETERS, where the parameter as ' TIME % ';

  • ORA: 01843 is not a valid month while running SDE_ORA_GLBalanceFact_Full

    While informatica run the select sql for this task, there is an exception, said the month is valid, the where condition them the sql is:
    PROM. LAST_UPDATE_DATE > =.
    TO_DATE ('2013-04-11 20:45:33 ',' ' HH24:MI:SS JJ/MM/AAAA)
    OR BY. LAST_UPDATE_DATE > =.
    TO_DATE ('2013-04-11 20:45:33 ',' ' HH24:MI:SS JJ/MM/AAAA)

    If I change the date for the format, then it will be ok
    PROM. LAST_UPDATE_DATE > =.
    TO_DATE ('2013-04-11 20:45:33 ',' ' YYYY/MM/DD HH24:MI:SS)
    OR BY. LAST_UPDATE_DATE > =.
    TO_DATE ('2013-04-11 20:45:33 ',' ' YYYY/MM/DD HH24:MI:SS)
    I'm confused, if the date wrong here or the date format is incorrect, how should I fix this problem?

    the entire sql is:

    SELECT
    PROM. LEDGER_ID,
    PROM. CODE_COMBINATION_ID,
    PROM. CURRENCY_CODE,
    LED. CURRENCY_CODE,
    BY. PERIOD_NAME,
    PROM. ACTUAL_FLAG,
    PROM. TRANSLATED_FLAG,
    PROM. CATEGORY,
    PROM. PERIOD_NET_DR,
    PROM. PERIOD_NET_CR,
    (BALL. BEGIN_BALANCE_DR + BALL. PERIOD_NET_DR),
    (BALL. BEGIN_BALANCE_CR + BALL. PERIOD_NET_CR),
    PROM. PERIOD_NET_DR_BEQ,
    PROM. PERIOD_NET_CR_BEQ,
    (BALL. BEGIN_BALANCE_DR_BEQ + BALL. PERIOD_END_BALANCE_DR_BEQ PERIOD_NET_DR_BEQ),
    (BALL. BEGIN_BALANCE_CR_BEQ + BALL. PERIOD_END_BALANCE_CR_BEQ PERIOD_NET_CR_BEQ),
    BY. START_DATE,
    BY. END_DATE,
    PROM. LAST_UPDATE_DATE AS LAST_UPDATE_DATE_BAL,
    PROM. LAST_UPDATED_BY AS LAST_UPDATED_BY_BAL,
    BY. LAST_UPDATE_DATE AS LAST_UPDATE_DATE_PERIODS,
    BY. LAST_UPDATED_BY AS LAST_UPDATED_BY_PERIODS,
    LED. LAST_UPDATE_DATE AS LAST_UPDATE_DATE_SOB,
    LED. LAST_UPDATED_BY AS LAST_UPDATED_BY_SOB,
    PROM. BUDGET_VERSION_ID AS BUDGET_VERSION_ID,
    BY. ADJUSTMENT_PERIOD_FLAG AS ADJUSTMENT_PERIOD_FLAG,
    BOX WHEN
    PROM. TRANSLATED_FLAG = 'Y', THEN 'TRANSLATED '.
    WHEN
    PROM. TRANSLATED_FLAG = 'R' THEN 'ENTERED_FOREIGN '.
    WHEN
    PROM. CURRENCY_CODE = 'STAT' THEN 'STAT '.
    WHEN
    (BALL. PERIOD_NET_DR_BEQ IS NULL) AND
    (BALL. PERIOD_NET_CR_BEQ IS NULL) AND
    (BALL. BEGIN_BALANCE_DR_BEQ IS NULL) AND
    (BALL. BEGIN_BALANCE_CR_BEQ IS NULL)
    THEN "BASE".
    'ENTERED_LEDGER' OTHER
    END CURRENCY_BALANCE_TYPE
    Of
    GL_BALANCES BALL
    GL_LEDGERS DEL
    , GL_PERIODS BY
    WHEN THE CONDUIT. LEDGER_ID = PROM. LEDGER_ID
    AND BY. PERIOD_SET_NAME = LED. PERIOD_SET_NAME
    AND PROM. PERIOD_NAME = PER. PERIOD_NAME
    AND PROM. PERIOD_TYPE = PER. PERIOD_TYPE
    AND NVL (BAL. TRANSLATED_FLAG, 'X') ('Y', 'X', 'R')
    AND PROM. ACTUAL_FLAG 'A ', ' B '.
    AND PROM. CATEGORY A NULL VALUE
    AND
    (
    PROM. LAST_UPDATE_DATE > =.
    TO_DATE ('2013-04-11 20:45:33 ',' ' YYYY/MM/DD HH24:MI:SS)
    OR BY. LAST_UPDATE_DATE > =.
    TO_DATE ('2013-04-11 20:45:33 ',' ' YYYY/MM/DD HH24:MI:SS)
    )
    AND DECODE ('Y', 'Y', LED. LEDGER_ID, 1) TO (2021,2123)
    AND DECODE ('Y', 'Y', LED. LEDGER_CATEGORY_CODE, 'NONE') ('PRIMARY', 'NONE')

    Can you please let me know if you did like it when implemented initial extract date.

    Would the DAC--> Design connection--> Source parameters system--> click on query and type EXTRACT

    Highlight on the $$ Initial_Extract_DATE and see if the format is like this

    Static

    Function is custom Format ' MM/DD/YYYY ". If this does not work for you then change the format of your required format.

    Do the same for $$ LAST_EXTRACT_DATE and change the format to the format you want.

    Then try to run EP mode full load.

    Let me know if it helps.

    Kind regards
    Rayan Vieira

  • Get ORA-01843 not a mistake of month valid

    I'm having the reservation Board. In this table departure date, column start time and both are varchar2 columns. Values are like that in these columns,

    Departure date = 21/05/15

    Start time = 22:55

    I am train to select this table records that have departure between sysdate + 30Hrs and sysdate + 31Hrs.

    Here's my query:

    Select *.

    of xx_booking

    where to_date(depdate ||) ' ' || deptime, "DD/MM/YY HH24:MI:SS") between sysdate + 30/24 and sysdate + 31/24

    Even I tried to select using relational operators (< and >). For less than ' < ' it gives result but for more than ' > ' it gives 'a month not valid' error

    Which gives the result:

    Select *.

    of xx_booking

    where to_date(depdate ||) ' ' || deptime, "DD/MM/YY HH24:MI:SS") < sysdate + 37/24

    Gives the error:

    Select *.

    of xx_booking

    where to_date(depdate ||) ' ' || deptime, "DD/MM/YY HH24:MI:SS") > sysdate + 37/24

    So I'm confused why this query works like this. Please show little light to solve this problem.

    Hi all

    I found the problem... it's because of a few empty spaces in these columns. After TRIM it works fine.

    Thank you

    PERI

  • The date function does not

    Hello
    I tried for hours to solve this problem.
    I can´t convert a date in year, month or day etc...



    Select sysdate, TO_DATE (sysdate, 'YYYY') of the double
    ORA-01830: date format picture ends before converting all of the input string
    01830 00000 - "date format picture ends before converting all of the input string.




    Select sysdate, TO_DATE (sysdate, 'MM') of the double
    ORA-01843: not one month valid
    01843 00000 - "not one month valid."


    Select sysdate, TO_DATE (sysdate, 'DD') of the double
    ORA-01830: date format picture ends before converting all of the input string
    01830 00000 - "date format picture ends before converting all of the input string.

    Please, if this is not the right category to post in just answer me the right one.
    Thank you

    Hello

    user12981132 wrote:
    OK, just to clarify. I am not the ADMINISTRATOR, nor have I not privileges for any manipulation of data. I came to a new job where my job is to analyze the data, I have a few sql experience of my old job where I don't have this kind of problems, because they stored a date as a date to lie. But now I have this problem.

    I understand that since they stored the date as a varchar I can´t all dates? because if I don't want to count the difference in months or days difference of sysdate for example he wouln´t works ¿right?

    You cannot use built-in DATE manipulation functions. or features such as arithmetic, on the channels of the dates.
    You can use TO_DATE to convert strings to DATEs in questions where you need to do things like calculate the difference in months. For example:

    SELECT     customer_id
    ,     order_date
    ,     MONTHS_BETWEEN ( SYSDATE
                     , TO_DATE ( order_date
                                 , 'YYYYMMDD'
                         )
                     )  AS months_ago
    FROM    orders
    ;
    

    Obviously, it will be slow, and you will get errors of execution if one of the chains do not represent valid dates.

Maybe you are looking for

  • Tecra M3 - Ubuntu Karmic WiFi driver

    Hello Recently, I built a dual boot M3 running a pure construction XP and an install of karmic Ubuntu 9.1. All installed ok apart from the pile of wifi (intel pro wireless 2200) which, at the present time, only pulls up through network connections an

  • Matrix problem

    A matrix that I calculate keeps display in an imaginary form i.e. 90 + 0i, 75 + 0i, even if I selected all mathematical operations which is the matrix to be "real matrix. Any ideas?

  • ACER Aspire R13 set up as an office

    I just bought an ACER ASpire R13 at costco and I try to use as my office too.  I wanted to know what kind of equipment is recommended to do this, docking station, additional external hard drive, etc. and tips/advice on the implementation.

  • If I update the calendar app, which will replace the old version?

    If I have installed the new version of the calendar is not crash on the old version of the calendar

  • How to change the color of the title bar on an application?

    Original title: Windows title bar I use Windows Vista Ultimate on a Sony Vaio. I've customized my Windows Vista Basic theme so that my title bar was black. I don't know what happened all of a sudden today. A program called HP Update did something and