Forms 10g - Oracle 11g DB - Date Format Error - Urgent

Hi All,
We are migrating forms 6i to forms 10g.Data Base is 9i to 11g Migration.
In 10g forms pre-form trigger ,i have statement
:head.yr_st_dt := to_date(sc.get_property('ps.yr_st_dt'),'MON DD YYYY HH:MI:SSPM');
In 6i ,it is working fine,the :head.yr_st_dt=22-SEP-09.
In 1og forms with 11g Database, I am getting the below error
frm-40735:PRE-FORM trigger raised unhandled exception ORA-01843
It seems invalid month.
In 9i ,the NLS_DATE_FORMAT is DD-MON-RR.In 11g also same.
Thanks in Advance,
Regards,
Shan

user642745: In the list of forum topics, the fourth topic down is this:
    Before posting on this forum please read.   Within that post there is a recommendation:   "Also read the 10 Commandments on OTN forum posting." with this link:   http://blogs.oracle.com/shay/2007/03/02
Please read and follow step 6, "Get a name".
You now have 101 posts to your "user642745" name. When you write, it is difficult to distinguish between your post and the original poster's since you both have a similar number as your names.
user648338: It is clear you do not understand how Oracle handles dates. Depending on the NLS_DATE_FORMAT and NLS_LANG for the session you are running, you will get different results when you display your sc.get_property('ps.yr_st_dt') output.
The fact that you are even trying to execute the command:
select to_date('01-MAY-09','MON DD YYYY HH:MI:SSPM') from dual;shows that you do not understand standard date processing.
Internally, Oracle stores ALL dates in a 7-byte format that includes both date AND time.
The fact that you are getting results like 01-MAY-09 just means that your session is running with NLS_DATE_FORMAT set to DD-MON-YY. It does NOT mean that the date is stored that way.
Your entire problem is caused by the fact that the system on which your old Oracle 9i -- Forms 6i environment has its NLS_DATE_FORMAT (and possibly NLS_LANG) set differently than on your Oracle 11g -- Forms 10g environment.
If you can set your new environment the same as the old, your trouble will go away. Here is how you determine what the values of those environment variables are. Run this in SQL Plus:
select * from nls_session_parameters
  where parameter in('NLS_LANGUAGE','NLS_TERRITORY',
                     'NLS_DATE_FORMAT','NLS_DATE_LANGUAGE');Be aware, though, that it is possible for your Forms environment to change the settings only for the Forms sessions, so what you get from SQL Plus may not be the same.
Edited by: Steve Cosner on Sep 23, 2008 11:13 AM

Similar Messages

  • Date format error in LOV with dates. Jdeveloper 11.1.1.0.1

    We're facing a silly problem, which no one else seems to have... ?
    When creating a LOV on a date column (eg hr.employees.hiredate) populated from another DataSource (eg. hr.job_history.startDate), the Application Module is working fine when tested.
    Building a jspx on top of the Datacontrol picks up the LOV defined and creates a SelectOneChoice for hiredate. But for what ever value you select, it will complain about wrong date format "Error: The date is not in the correct format".
    I can see, that the "real" value selected from the SelectOneChoice is an index-value, and the "format checking code" builtin to Jdeveloper can't figure out how to get the datevalue for the selected index.
    Surely it must be me, who can't see the forest for the trees?
    Thanks in advance :)

    Its a bit tricky - but its doable... We have to abandon the "Oracle LOV model" to make it work.
    Surely its must be some kind of bug in the Oracle LOV model? ?
    The way to do it is like:
    In Model project:
    M1: Remove List Of Value binding from Model layer (Business components). Both entity and view if declared both.
    M2: Create a view for the "date list" - ie the datasource for possible values in list.
    M3: Secure that format mask (hint) for all dates involved are the same.
    In View project:
    V1: Drop datacontrol on jspx as normal input dates.
    V2:Go to bindings for the page, and add (+) a new TABLE binding (And from here an iterator) to the view containing the list.
    Modify the input dates you want to be list:
    V3: Select the input date and rightclick and choose "convert"
    V4: Select a SelectOneChoice component
    V5: Pick the right column (tree) value to show in the SelectOneChoice componet.
    Switch to source view:
    V6: Drop a ForEach item from the component Palette (ADF Faces -> operations) on the SelectOneChoice (easiest to drop in structure windows)
    V7: Drop a Select Item from the component Palette (ADF Faces -> common components) on the SelectOneChoice (easiest to drop in structure window).
    Modify the source:
    V8: Insert "items" and "var" attributes in ForEach like this: +"items="#{bindings.[[Here goes the name of the New TableBinding component you made in Step V2]].rangeSet}" var="li"+
    V9: Insert "value" attribute and change "label" attribute to reference your new list variable "li" like this: +label="#{li.[[here goes the name of the new TableBinding Component attribute (columnname) you made in Step V2]]}" value="#{li.Firstofmonth}"+
    V10: Insert/edit any converters/validators needed for input validation.
    Done....
    You should end up with a SelectOnChoice definition (in your jspx file) something like this one:
    +<af:selectOneChoice value="#{row.bindings.ActiveFrom.inputValue}"+
    +label="#{row.bindings.ActiveFrom.label}"+
    +required="#{bindings.McAccountsView1.hints.ActiveFrom.mandatory}"+
    +shortDesc="#{bindings.McAccountsView1.hints.ActiveFrom.tooltip}">+
    +<af:forEach items="#{bindings.FirstOfMonth1.rangeSet}" var="li">+
    +<af:selectItem label="#{li.Firstofmonth}" value="#{li.Firstofmonth}" />+
    +</af:forEach>+
    +<af:convertDateTime pattern="dd-MM-yyyy"+
    +messageDetailConvertDate="Its not possible to convert the date in {0} since its value {1} dont conform to the pattern {2}"+
    +secondaryPattern="yyyy-MM-dd"/>+
    +</af:selectOneChoice>+
    And a binding definition (in your pagedef file) something like this one:
    +<?xml version="1.0" encoding="UTF-8" ?>+
    +<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"+
    +version="11.1.1.52.5" id="McAccounts01PageDef"+
    +Package="solution">+
    +<parameters/>+
    +<executables>+
    +<iterator Binds="McAccountsView1" RangeSize="25"+
    +DataControl="dateLovEmailDataControl"+
    +id="McAccountsView1Iterator" ChangeEventPolicy="ppr"/>+
    +<searchRegion Binds="McAccountsView1Iterator" Criteria=""+
    +Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer"+
    +id="McAccountsView1Query"/>+
    +<iterator id="FirstOfMonth1Iterator" RangeSize="10" Binds="FirstOfMonth1"+
    +DataControl="dateLovEmailDataControl"/>+
    +</executables>+
    +<bindings>+
    +<tree IterBinding="McAccountsView1Iterator" id="McAccountsView1">+
    +<nodeDefinition DefName="dk.hammerJakobsen.Jdev.sample.model.McAccountsView">+
    +<AttrNames>+
    +<Item Value="EmployeeName"/>+
    +<Item Value="Id"/>+
    +<Item Value="BankAccount"/>+
    +<Item Value="StellarAccount"/>+
    +<Item Value="ActiveFrom"/>+
    +<Item Value="ActiveTo"/>+
    +</AttrNames>+
    +</nodeDefinition>+
    +</tree>+
    +<action IterBinding="McAccountsView1Iterator" id="CreateInsert"+
    +RequiresUpdateModel="true" Action="createInsertRow"/>+
    +<action IterBinding="McAccountsView1Iterator" id="Delete"+
    +RequiresUpdateModel="false" Action="removeCurrentRow"/>+
    +<action IterBinding="McAccountsView1Iterator" id="First"+
    +RequiresUpdateModel="true" Action="first"/>+
    +<action IterBinding="McAccountsView1Iterator" id="Last"+
    +RequiresUpdateModel="true" Action="last"/>+
    +<action IterBinding="McAccountsView1Iterator" id="Find"+
    +RequiresUpdateModel="true" Action="iteratorFind"/>+
    +<action IterBinding="McAccountsView1Iterator" id="Execute"+
    +RequiresUpdateModel="true" Action="iteratorExecute"/>+
    +<action id="Commit" RequiresUpdateModel="true" Action="commitTransaction"+
    +DataControl="dateLovEmailDataControl"/>+
    +<action id="Rollback" RequiresUpdateModel="false"+
    +Action="rollbackTransaction" DataControl="dateLovEmailDataControl"/>+
    +<table IterBinding="FirstOfMonth1Iterator" id="FirstOfMonth1">+
    +<AttrNames>+
    +<Item Value="Firstofmonth"/>+
    +</AttrNames>+
    +</table>+
    +</bindings>+
    +</pageDefinition>+
    this approach works... But... Its important to remember that the "two" values are different now. The value in the row, and the possible value from the list. When you select a new value for the row from the list, you'll have to commit the value before its in the row - even seen from Faces. You can't reference the value in the base table in a validator before the row is committed.
    For the same reason I'll advise, that you only use the model in Single row view, since its can behave a bit funny in table views, where there's a lot of PPR.

  • Bex Analyser : Date Format error.

    Hi All,
    We are facing date format error, while running the query in Bex analyzer.
    We have one column in report i.e Net Payment Date, so when we run the query in analyzer the single date like "5-6-2010 is getting swapped like 6-5-10 & year also showing two digits i.e instead of 2010 it shows 10" & date like "12-09-2010 is coming perfectly."
    Means the date which is in single digit we are facing this problem like 1 to 9 & the dates which are 10 & above showing perfectly.
    In RSRT the query showing proper result, so i don't think it's BI problem.
    The regional setting is DD-MM-YYYY & Date separator is '-' & we don't want to change this format.
    Is there any SAP note or any solution for this..??
    All the replays are gr8ly appreciated.
    Thanks,
    Santosh

    Hi Santosh,
    how about web display? is it ok? for me it seems more an Excel problem, so maybe you should check if there is special formatingin this.
    Regards,
    Anass

  • Home Page Date Format ERROR ...

    I installed language support on my Portal 3.0.9.8 with 3 different languages: us, i=italian, f
    but when i use the "i" language there are many problems with format date ...
    in the Portal Home Page i have a message like "date format not valid"
    and i have problems in the creation of the content area's items with the publish date.
    Any one have an idea ???

    HI All,
    I have check my own data date format.
    But when i tried to activate the cycle count under
    Menu path: 
    Materials Management > Inventory Management and Physical Inventory>Physical Inventory> Cycle Counting
    I will not put any date on it, that's why its weird that i get an date format error.
    Where this error came from?
    Thanks..

  • Oracle 11g Active Data Guard and SAP R3

    Hi All,
    I have a query regarding Oracle 11g Active Data Guard and SAP R3.
    Does the Oracle 11g R1/R2 Active Data guard feature supported with SAP R3?
    I appreciate your help to provide any link or document for the same.
    Thanks,
    Vihang

    I have a query regarding Oracle 11g Active Data Guard and SAP R3.
    Does the Oracle 11g R1/R2 Active Data guard feature supported with SAP R3?
    I appreciate your help to provide any link or document for the same.
    Oracle database 11g functionality certified by SAP, check below link
    http://www.oracle.com/us/solutions/sap/oradb11g-article-upd-1-323074.pdf
    http://www.oracle.com/technetwork/middleware/ias/downloads/osb-11gr1certmatrix.xls

  • How to debug BPEL in Oracle 10G / Oracle 11G

    Hi All,
    How can we debug BPEL in Oracle 10G / Oracle 11G .
    We are working on RosettaNet conversion in BPEL. We would like to debug BPEL
    Appreciate your help.
    Regards
    Vijay

    Hi
    I need to debug BPEL code in same manner how we debug Java Code ( Line by Line ) .
    We are working with Java CAPS and Glassfish ESB for last 5 yrs. In NetBeans we debug BPEL in the same manner how debug Plain Java CODE.
    Have a look at below link
    http://wiki.open-esb.java.net/Wiki.jsp?page=TestingAndDebuggingBPELProcesses
    I am looking for same sort of options to debug BPEL using Jdeveloper.
    Regards
    Vijay

  • How to debug a form module (Oracle 11G Forms) through URL

    How to debug a form module (Oracle 11G Forms) through URL.
    My server OS is Unix. So i could not able to do the Debug Forms from the Form Developer.
    It is displaying a message that "Cannot find the module". Becuase the system is trying find out the module in Unix system instead of ma local system(Windows).
    I need to debug ma module through URL.
    I can place the fmb and fmx in predefined form path in Server.
    Please help me out to solve this issue..

    This is a little unclear. If your goal is to use the Forms Builder Debugger while running your form on a Unix machine, this can be done. However, the form must first be in running order. So before trying to attach the debugger you must first be able to start it without the debugger. For example:
    http://yourServer:OHS_port_number/forms/frmservlet?form=yourFMX
    Once this is properly running you can turn on debugging. If your form won't even start, then using the Debugger isn't going to help you because it is designed to troubleshoot coding problems and not configuration problems.
    So, do this to use the Debugger:
    http://yourServer:OHS_port_number/forms/frmservlet?form=yourFMX&debug=yes
    This will display a dialog box with some information. Do not click on OK yet as you will need this information to enter into the Forms Builder. Now, open the Forms Builder and click on Debug > Attach Debug. You will be asked for the information displayed in the dialog where you attempted to start the form. Enter it here (in the Builder) then click on ok in both places. To display the Debugger (in the Builder), click on Debug > Debug Console. Then from its toolbar click on the buttons related to what you want to monitor. Including a break point in your application code is often a more helpful way to use the debugger.
    Most of this information is explained in the Forms Builder Online Help
    Forgot to mention...
    To debug runtime issues, refer to the Forms Deployment Guide here (this assumes you are using 11.1.2):
    http://docs.oracle.com/cd/E38115_01/doc.111210/e24477/appa.htm
    Edited by: Michael Ferrante (Oracle) on Feb 21, 2013 1:45 PM

  • Date Format Error During Cycle Count Activation

    Hi MM Guru's,
    Could you kindly help me with regards to my problem?
    I was trying to activate the cycle count for the newly plant i created under new company code.
    But im getting a date format error?
    Anyone who could help me regarding this?
    Thank you in advance.

    HI All,
    I have check my own data date format.
    But when i tried to activate the cycle count under
    Menu path: 
    Materials Management > Inventory Management and Physical Inventory>Physical Inventory> Cycle Counting
    I will not put any date on it, that's why its weird that i get an date format error.
    Where this error came from?
    Thanks..

  • Mailman - bounced "data format error" - Mailbox does not exist

    Hi gurus,
    All my mailing lists works great, except one of then...
    Its said: a lot of messages like this, several times:
    Mar 6 07:08:33 rossellimac postfix/pipe[2931]: 3F55D15F892: to=<[email protected]>, orig_to=<[email protected]>, relay=cyrus, delay=0.11, delays=0.04/0/0/0.07, dsn=5.6.0, status=bounced (data format error. Command output: alejandro: Mailbox does not exist )
    Also this error:
    3/6/09 8:18:20 AM lmtpunix[4844] AOD: user opts: get attributes for user: alejandro failed with error: -14479
    3/6/09 8:18:20 AM lmtpunix[4844] warning: unable to post message for user: alejandro, mail is not enabled for this user
    The computers halt for a minute... when I send an email to this list (general@) where "alejandro is a user"
    Please, some advice... I surf the web... and not always produce error...
    Thanks in advance.
    Message was edited by: alopezruiz

    ok

  • DATE Format Error in ODI-11g(11.1.1.3)

    I am using ETL transformations in ODI-11g. There's a dominant issue regarding date formattings when I map an ODI variable (storing date) with a TGT column(datatype=date) mappings.
    In all the src-tgt mappings I am formatting the date by using TO_DATE() functions. But still getting the error:
    "ORA-01830: date format picture ends before converting entire input string".
    A point to Note: The same ETL in other env are ruuning fine but in my new dev env it's giving this date error.
    I had checked with the DBA folks and they confirmed they set equal DATE settings in all the env.
    The ODI Variable is defined as an "Alphanumeric".
    Tx Used: #BUSINESS_CURRENT_DT=TO_DATE('Date','YYYY-MM-DD')
    Require some urgent advice...Please let me know

    Hi,
    W store name-value pair in the Control table from where we exctract our data. Both (param name and param value) are varchars.
    Well this looks pretty strange in 11g! Here's what we found out...
    If you are trying to retrieve a date variable by using TO_DATE() in the refresh query the ODI Java driver (JDK 1.6) would call java.sql.timestamp and gracefully attach HH:MI:SS.NS along with the date (YYYY-MM-DD HH:MI:SS.NS). My target ia a date always..!
    So, when I do: TO_DATE('20101010','YYYY-MM-DD) in the refresh query ODI stores it as '2010-10-10 00:00:00.0'
    For this the Load always fails as Oracle would not be able to interpret a timestamp by suing TO_DATE()
    The Java driver does this damage. However, it may be wise to store as a timestamp rather as a date if in case u do a Data capture and want the exact time credentials.
    Unfortunately not a req, as of now for us so I had to chop-off the timestamp..!
    Let me know if you find any other details...
    Thanks.!

  • Migration using data pump Oracle 10g - Oracle 11g

    HI all,
    1)
    Right now I`m using Oracle 11g. I have a plan to import data from Oracle 10g. I would like to know if its possible to import data which was exported by datapump on Oracle 10g ?
    Should I convert somehow expdp output from Oracle 10g to Oracle 11g format ?
    2)
    Next question is. If I will use expdp to create dump of complete database. May I use *.dmp to import selected users ? Or only full database can be restored ?

    Yes, you can import 10g dump into an 11g database.
    Maybe you should take some time and read the section on datapump in the fine Oracle® [Database Utilities|http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/dp_import.htm#i1007324] manual.
    :p

  • Need help regarding upgrading Oracle 10g Forms to Oracle 11g Fusion Middlew

    Hi All,
    I am trying to create a workshop on a VM for showing the migration / upgrading of Oracle Forms 10g to Oracle 11g FMW using the Upgrade Assistant tool available in <ORACLE_HOME>/bin/ua.bat.
    As per my understanding of pre-requisites:
    1)     I need to install Oracle SOA Suite 10g on my VM.
    2)     I also need to install Oracle SOA Suite 11g on my VM.
    3)     I need to install Oracle Forms/Reports Services 10g on my Oracle SOA Suite 10g installation.
    4)     I need to run Oracle Forms/reports installer on my Oracle SOA Suite 11g installation.
    5)     I need to run upgrade assistant tool on my VM to upgrade my form from source(Oracle SOA Suite 10g) to destination(Oracle SOA Suite 11g). Is it mandatory for this migration that I should have Oracle SOA Suite 10g and Oracle SOA Suite 11g on the same system ?
    Having all these software installed on one VM would be difficult. So just wanted to check can I avoid any software to install on VM ?
    If there is any alternative suggestion then please let me know.
    Regards,

    What do you want to do with the SOA-suite? At least for Froms10G is is not necessary.

  • Can not configure Oracle 10g form  on oracle 11g client

    Hi
    I need to install oracle 10g form in my system .
    Here is my system
    1. OS --XP
    2. 32 Bit
    4. Already oracle 11g release client installed ( I think that create the problem )
    I tried to install oracle 10g form , it installed but can cont configure net manager for it , Always it point to 11g client and hence I could not configure .
    Also I tried install Oracle Forms first then 11g client , But  I got same issue .
    I think if  I created multiplr home one for 11g client and other for forms , it may work out .
    Please  help me
    Debashis

    While deploying the example 'VacationRequest' in the oracle complete guide for 11g, i got an exception like this
    "12:08:15 PM] Deploying Application...
    [12:11:16 PM] [Deployer:149191]Operation 'deploy' on application 'VacationRequestTaskFlow' is initializing on 'soa_server1'
    [12:11:24 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application VacationRequestTaskFlow on soa_server1.: [Deployer:149145]Unable to contact 'bam_server1'. Deployment is deferred until 'bam_server1' becomes available.; nested exception is:
         java.rmi.UnknownHostException: Could not discover administration URL for server 'bam_server1'.
    [12:11:24 PM] [Deployer:149193]Operation 'deploy' on application 'VacationRequestTaskFlow' has failed on 'soa_server1'
    [12:11:24 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application VacationRequestTaskFlow on soa_server1.: Failed to load webapp: 'VacationRequestTaskFlow.war'.
    [12:11:24 PM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'VacationRequestTaskFlow.war'
    [12:11:24 PM] Caused by: java.lang.ClassNotFoundException: oracle.adf.library.webapp.ResourceServlet
    [12:11:24 PM] See server logs or server console for more details.
    [12:11:24 PM] weblogic.application.ModuleException: Failed to load webapp: 'VacationRequestTaskFlow.war'
    [12:11:24 PM] #### Deployment incomplete. ####
    [12:11:24 PM] Deployment Failed"
    Can anyone help in this.

  • Doubt with Windows and Oracle Forms 10G and 11g

    Hi
    I have some doubts in installing Oracle Client on Windows.
    a)Can we install Oracle Forms 10g and Reports 10g client on Windows 7?
    b)Can we install Oracle Forms 11g and Reports 11g client on Windows XP?
    c)If we have an Oracle Forms 11g and Reports 11g, can it connect to a 10g Server?
    d)If we have an Oracle Forms 10g and Reports 10g Client, can it connect to an 11g Server?
    Please, Can any one help me in this????

    a)yes it can be installed on win7, may have some issues on 64bit systems but they're solvable
    b)11g had some problems with windows 2000, but didn't see mention of any problems on XP
    c)if you mean a database server then yes - i managed to connect 11g to an 8i database, so v10 should not be a problem. If you mean a forms/reports server..well newer forms/reports builder might not want to run old forms/reports and vice versa, but I don't see the point of operating on the same files from different versions. You can still load old form/report source files with a newer builder and recompile them to run on the new server.
    d) the "client" is effectively your web browser with a java plugin, unless I misunderstood your question. What version was a form/report compiled with should not be an issue.

  • DeleteXml() causing xml data format error in database

    Hi, guys,
      I'm using the oracle  xml db 11g in my website application. Last week I found that using the deletexml() to delete a node in the xml may cause a terrible problem that the rest data in the database had wrong xml format. I wonder is it a bug when using binary xml storage.
      My xml data is describe below,
    <root>
         <nodes>
              <node id="1">
                   <name>John</name>
                   <age>16</age>
                   <hobby>football</hobby>
              </node>
              <node id="2">
                   <name>Alex</name>
                   <age>22</age>
                   <hobby>table tenisl</hobby>
             </node>
         <nodes>
    </root>
      I using deletexml() to delete just a node once time,
    "update projects set object_value=deletexml(object_value, '/root/nodes/node[@id="1"]')"
    Usually it successes and the rest data is as excepted, but sometime, I find that after deleting a node, any query in the database except "select * from projects" gets null. And the rest data has wrong format like below,
    <root>
         <nodes>
              <node id="1">
                   <name>John</name>
                   <age>/hobby>
              </node>
              <node id="2">
                   <name>Alex</name>
                   <age>22</age>
                   <hobby>table tenisl</hobby>
             </node>
         <nodes>
    </root>
    Just one format error causes the whole xml data valueless, but it seems that in most time the deletexml() works well, does anyone knows what happens?
    Thanks a lot.

    KnightOfBlueArmor wrote:
    The better idea is to use XMLPatch() if you can.
    XMLPatch?
    Do you use it yourself on a regular basis?
    Personally, I find it fun to use but the performance doesn't match my expectations (no piecewise update/streaming eval AFAIK).
    Message was edited by: odie_63

Maybe you are looking for