Query works well in an environment, but not in the other environment

Hello

I have a question that I am trying to run in two different environments.

Test: - Oracle Database 11 g Release 11.2.0.1.0 - 64 bit Production
Prod: - Oracle Database 11 g Release 11.2.0.1.0 - 64 bit Production

Now the query runs fine in one environment and fails in the other environment.
It gives following error.


ORA-01861: literal does not match the format string
01861 00000 - "literal does not format string.

The query is too long and contains CHAR-DATE and DATE-CHAR conversions.

The same query works very well on the TEST environment and the PROD environment.

Any help related to it would be appreciated.

Thank you
Mahesh

MaheshGx wrote:
Hello

I have a question that I am trying to run in two different environments.

Test: - Oracle Database 11 g Release 11.2.0.1.0 - 64 bit Production
Prod: - Oracle Database 11 g Release 11.2.0.1.0 - 64 bit Production

Now the query runs fine in one environment and fails in the other environment.
It gives following error.

ORA-01861: literal does not match the format string
01861 00000 - "literal does not format string.

The query is too long and contains CHAR-DATE and DATE-CHAR conversions.

The same query works very well on the TEST environment and the PROD environment.

Any help related to it would be appreciated.

Thank you
Mahesh

This is called a bug. One caused by the person who developed the code. They relied on an implicit conversion between strings and dates when
production quality code will always use the function to_char and to_date with a format mask.

Tags: Database

Similar Questions

  • I have an overlay in the "Develop" Module but not in the other modules. What can I do?

    I have an overlay in the "Develop" Module but not in the other modules. What can I do?

    The GPU acceleration works on some computers and not on others. If everything works properly with disabled GPU acceleration should be the parameter, you must use. The function does not in Lightroom automatically faster. I don't have a dedicated in my computer graphics. But I understand that the main advantage of having the GPU acceleration for users who have monitors high resolution.

  • where can I find the Vijaya police? I have it in CS5 in a PC, but not in the other.

    where can I find the Vijaya police? I have it in CS5 on a PC but not on the other. How can I get? Thank you

    Vijaya is a typeface that was designed for Microsoft and came with Windows 7 and 8. https://www.Microsoft.com/typography/fonts/family.aspx?FID=386

    It has nothing to do with Adobe products.

  • Can connect to Skype with a single account, but not with the other

    I am able to connect to Skype with my own login but not with the credentials of my friend on his pc. I can however connect with her details as well as mine on my pc?

    You need to upgrade your Internet Explorer to the latest version of IE8 for Windows XP.

    http://filehippo.com/download_internet_explorer_xp/

  • FancyBox - Working in Live View mode, but not in the preview

    Hello!

    I searched the forums for some answers, but I can't just understand what I am doing wrong. I'm really a beginner with Dreamweaver and coding, so I think I'm just something wrong. I hope that someone will be able to point me in the right direction! Anyway, here's my problem...

    I could not get the Fancybox to work properly. When I test my page through Live View, it seems to work very well. However, Fancybox does not work as expected when I test through various browsers in preview. Instead of bring the image in a Fancybox object, it transfers me to a page that contains only the image. I've read several posts that have raised the same issue, but I can't simply solve this problem on my own.

    In order to understand this point, I created a simple test page that contains only the content of my Fancybox and a single image. I'll list the code below:

    <! doctype html >

    < html >

    < head >

    < meta charset = "UTF-8" >

    < title > FancyBox Test < /title >

    <! - load jquery - >

    " < script type =" text/javascript"src =" http://code.jQuery.com/jQuery-latest.min.js "> < / script > .

    <!--> fb style sheet

    "< link rel ="stylesheet"href="/fancybox/source/jquery.fancybox.css "type =" text/css"media ="screen"/ >

    <!-pack jquery fb->

    "< script type =" text/javascript"src="/fancybox/source/jquery.fancybox.pack.js "> < / script >

    < / head >

    < body >

    < a class = "fancybox" rel = "group1" href = "images/Illustration_1.png" > < img src = "images/Illustration_1.png" width = "620" class = "fancybox image" height = "662" / > < / a > "

    < script type = "text/javascript" >

    {$(document) .ready (function ()}

    $(".fancybox").fancybox ();

    });

    < /script >

    < / body >

    < / html >

    I kept all the Fancybox files in a folder called 'fancybox' in my root directory. I know that I do not need to place the image in a group, since I don't currently have more than one image, but finally, I would like to have multiple images, so I went ahead and assigned to a group. I added the class 'fancybox-image' to the image so that I was messing around and it seemed to make it work inside of Live View, but I does nothing for me when I use an excerpt.

    I tested in several browsers, but I tend to use Firefox to test the most. Using the Firefox web developer tools, I found some fundamental questions. The Console gives me the following error: "TypeError: $(...).» FancyBox is not a function"and the Style Editor told me that the style sheet can be loaded. I thought this might give me enough information to solve this problem on my own, but I'm obviously missing something here. Any help would be greatly appreciated!

    Is your folder fancybox on the same level of your images folder directory in your site definition?

    If so, just get rid of the bar oblique leader in your links to the fancybox scripts.

  • Mouse freezing on the administrator account, but not on the other 8 portable computer user accounts windows

    Hi I have a Toshiba laptop, it's only a few months. This is the second time I had this problem the first time I had to delete the user account and to set up a new.

    I was on the laptop and all of a sudden the mouse wouldn't move. I pressed the Start button of windows and door to the top of the start screen. I was able to move with the keyboard, but the mouse did not work. So I pressed CTRL + ALT + DELETE and disconnected.
    When I clicked on one my friends login it worked fine no problems with the mouse so I logged in my own but the mouse is still stuck.
    I restarted my laptop and check the updates, but my laptop is fully updated.
    I have not used my account for a few days and I just connected again and the mouse worked. I opened an excel file and started working on it for about ten minutes when the mouse froze again. I am now logged in on my friends account and it works fine.
    Any ideas? I don't really want again to delete my account!

    Nothing extraordinary. I do not use many standard only apps provided with the operating system. I upgraded to 8.1 after posting the question, it seems to have done the trick... for now... If all goes well!

  • why there are gaps in the product on this catalogue page, but not on the other catalogues?

    dapper5. BusinessCatalyst.com

    There are strange empty spaces on this page http://dapper5.businesscatalyst.com/polo-style-shirts

    Any ideas what could happen.  Other pages are ok http://dapper5.businesscatalyst.com/greg-norman-collection

    This is the html code for the overall layout module:

    < div id = "sidebar" >

    < div class = "box" >

    < div class = "main topic" >

    Catalogues of < h2 > < / h2 >

    < / div >

    < div class = "categories" >

    {module_cataloguelistdump-1}

    < / div >

    < / div >

    < div class = "box" >

    < div class = "main topic" >

    Recommended < H2 > < / h2 >

    < / div >

    < div class = "product list" > {Default module_productfeaturelist, recommended, 4, true} < / div >

    < / div >

    < / div >

    < div id = "content" >

    < div class = "webshop-header" >

    < div class = "bread crumbs" >

    {module_menu, 1211169}

    {tag_cataloguebreadcrumbs}

    < / div >

    < div class = "webshop-nav" >

    {module_menu, 1211155}

    < / div >

    < / div >

    < div class = "webshop-block" >

    < div class = "product list" > {tag_productlist, 4, true} < / div >

    < / div >

    < / div >

    Thank you

    Hi there, because you have no defined height on your objects.

    If you notice that one working has the names of product on two lines, on the one that does not work there is a on a single line and so shorter in height, then the others.

  • Query that works well as a toad, but not in forms 6i

    I now coding at the time press the triger

    declare
    CURSOR C1 (year number, month number) IS
    SELECT ITM_NO, ITM_NAME, XAQ QTY XAQ * TP VAL, gp
    Of
    (
    Select ci.itm_no ITM_NO, ci.itm_name ITM_NAME, cpg.group_id gp, xaq, ALLIED. CORP_PRIC_TP (ci.itm_no) TP of
    (
    Select prod_no, sum (xaq) * 1 xaq
    Of
    (
    Select prod_no, sum (nvl(xrd_sqty,0)) Xaq
    of allied.mrk_01_02
    where year = f_prd = month and year
    and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
    Prod_no group
    Union of all the
    Select prod_no, sum (nvl(xrd_sqty,0)) Xaq
    of allied.mrk_02_02
    where year = f_prd = month and year
    and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
    Prod_no group
    Union of all the
    Select prod_no, sum (nvl(xrd_sqty,0)) Xaq
    of allied.mrk_03_02
    where year = f_prd = month and year
    and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
    Prod_no group
    Union of all the
    Select prod_no, sum (nvl(xrd_sqty,0)) Xaq
    of allied.mrk_04_02
    where year = f_prd = month and year
    and area_id in (10200,10400,10100,10300,10500,20500,20300,20100,20200,20400,30100,30400,30300,30200)
    Prod_no group
    )
    Prod_no group
    ) A, allied.corp_inv, c01, c02, GIC, vpg allied.v_prod_grp allied.corp_prod_group allied.corp_01_02 allied.corp_01_01
    where this .itm_no = a.prod_no
    and this .itm_no = c02.itm_no
    and c01.grp_id = c02.grp_id
    and in c01.grp_id (55,56,57,58,59)
    and vpg.prod_no = ci.itm_no
    and vpg.group_id = cpg.group_id
    )
    where XAQ <>0;

    Begin
    delete from fiaz.tmp_topten_prod;
    because me in c1(:year,:month)
    loop
    insert into fiaz.tmp_topten_prod
    values (i.itm_no, i.itm_name, i.QTY, i.Val, i.GP, 0);
    end loop;
    standard.Commit;
    message ("inserted into temp'");
    exception when others then
    message (dbms_error_text);
    message (dbms_error_text);
    End;

    Same works of query (as used in cursor c1) fine in Toad but gives bad result of forms... and the problem is xaq field i.e returns incorrect quantity...
    I guess that the union clause does not work in this situation...
    Please suggest me the appropriate changes in the query to work much of the form as well...
    combination: Forms 6i, Oracle 8.0.6
    Kind regards
    Usman Afzal

    Did you get the grant on your mrk_01_02 of the table through a role? If so you would need a direct subsidy:

    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:1065832643319

    see you soon

  • Executable work on a laptop, but not on the other

    Hi all

    I have a project of labview in which the main program calls the second program, I use the shared variable to share information between these programmes and made an executable file, the problem I am facing is that works execuatble on the machine where it is made, but on another machine. Y at - it no problem using variables shared in the executables. ? Please let me know.

    Thank you

    Ankit


  • ePrint works when using DHCP. But, not at the time static IP enterred

    It's frustrating to no end.

    Today, I swapped the routers to see if that will solve the problems of ePrint, that I got with my HP8600 A-I-O.

    If I put the network configuration IPv4 use automatic IP, ePrint works very well. However, if I put it to use a static IP address, it fails.

    Then I set up my router to serve a particular IP address to the MAC address of the printer and set the printer to automatic IP. It connects to the IP address you want very well.

    The problem is that I went to enter the IP address manually in the IPv4 configuration because the printer lost its network connection after being on the network for several hours, and I would have to back the printer power cycle to get

    on the network.

    FWIW, the new router is a D-Link DIR - 860L

    After you change the default gateway setting in the settings manual Ipv4 to the IP address of the router, it is allowing me to use ePrint and update of the printer.

    This really should be a bit more clear in the documentation.

  • hitTestObject works for a mc but not for the other

    Hi - I've given instance names to two movieclips for 'bee' and 'energy '. When I sling the 'ball' upward and it hits the bee runs all the code but when I sling and hit energy, nothing happens. Thanks for any help.

    function onMyEnterFrame(evt:Event):void

    {

    Bee.x += 1;

    If (bee.hitTestObject (energy))

    {

    trace ("Energy");

    beeHit = true;

    Energy.Visible = false;

    Power.x = energy.x

    Power.y = energy.y

    this.addChild (power);

    }

    If (bee.hitTestObject (ball) & & beeHit == false)

    {

    trace ("Gotcha");

    beeHit = true;

    Bee.Visible = false;

    pop_mc.x = bee.x

    pop_mc.y = bee.y

    this.addChild (pop_mc);

    }

    }

    You might be experienciung some confusion with your names in the coding.  I don't see anywhere where the ball is checked to a hitTest with energy... the first conditional tests if bee hit energy, no ball.

  • Address bar works on a user account and not on the other

    Hello

    I searched on through so many forums to find an answer to my problem - it is perhaps quite unique.

    A year ago, stopped my firefox address bar AutoComplete works not at all. I have the latest version and I tried all the stuff around dumping cache etc. Anyway, I got a new Mac yesterday and I opened Firefox and everything worked as it should - great.

    However, I moved all my files/settings/applications etc in front of my ole mac via migration assistant and now firefox is not working properly on this user account. So, I have two user accounts on the same mac, both running the same software applications. The user account with all the old files etc is that I want to continue to use, but Firefox will not properly work on this subject.

    I uninstalled and reinstalled, updated, deleted version cache... all I can think.

    I'm sick of Chrome crashing on me.

    Can anyone help?

    This may be a problem with the places.sqlite file that stores the bookmarks and history.

  • Visible PunchOut at iproc responsibilities but not in the other the responsibility

    Hello

    I implemented the drooping store / catalog iprocurement catalog admin, responsibility. I can see this PunchOut in iprocurement responsibility and am able to navigate successfully through it, but when I go to other available as preparer iprocurement responsibilities I don't see my drooping it in iprocurement shopping screen. What can be the problem. How to punch out visible in all the responsibilities that have iprocuement homepage.


    Thank you

    Hello

    Your system probably uses "kingdoms" to give access to different stores (PunchOut catalogs) to the different responsibilities/users. Please add the catalog store/punchout missing the realm assigned responsibility when you are not able to display the store.

    Please see the following article for more details http://tenthsense.blogspot.com/2011/09/oracle-iprocurement-realms.html

    Thank you
    Franck

  • display problem in bridge on a computer but not on the other

    Hello

    I'm having a problem with tif and psd (and I see now, it's on some jpg) images display correctly on my desktop XP SP3. The thumbnail looks ok, but the preview image appeared wrinkled,

    and none of the original image is noticeable.

    I use extended PSCS4. I looked on my laptop Vista Ultimate SP2, and for the same program images display properly.

    The Adobe programs on the desktop are up-to-date.

    The images in question on the desktop appear well in Photoshop or IrfanViewer. I copied on them to the laptop and to the bridge on the laptop it seems in good condition.

    I'm assuming that somewhere, Adobe Bridge has got corrupted on the desktop.

    Is it possible to cleanly reinstall just bridge?

    Thanks to the one who is kind and wise enough to advise

    in Bridge, go to Edition-> Preferences-> advanced, and then select make software to use

  • RAISE_APPLICATION_ERROR work on A schema, but not on the diagram B

    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Prod
    PL/SQL Release 10.2.0.5.0 - Production
    CORE Production 10.2.0.5.0
    AMT for Linux: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production

    Hi, I'm working on this link: http://kamranagayev.com/2009/10/04/block-developers-from-using-toad-and-other-tools-on-production-databases/
    CONNECT / AS SYSDBA;
     
    CREATE OR REPLACE TRIGGER block_tools_from_prod
      AFTER LOGON ON DATABASE
    DECLARE
      v_prog sys.v_$session.program%TYPE;
    BEGIN
      SELECT program INTO v_prog
        FROM sys.v_$session
      WHERE  audsid = USERENV('SESSIONID')
        AND  audsid != 0  -- Don't Check SYS Connections
        AND  ROWNUM = 1;  -- Parallel processes will have the same AUDSID's
     
      IF UPPER(v_prog) LIKE '%TOAD%' OR UPPER(v_prog) LIKE '%T.O.A.D%' OR -- Toad
         UPPER(v_prog) LIKE '%SQLNAV%' OR     -- SQL Navigator
         UPPER(v_prog) LIKE '%PLSQLDEV%' OR -- PLSQL Developer
         UPPER(v_prog) LIKE '%BUSOBJ%' OR   -- Business Objects
         UPPER(v_prog) LIKE '%EXCEL%'       -- MS-Excel plug-in
      THEN
         RAISE_APPLICATION_ERROR(-20000, 'Development tools are not allowed here.');
      END IF;
    END;
    /
    The problem is that RAISE_APPLICATION_ERROR (-20000, "Development tools are not allowed here.");
    are you working on a scheme A, but not on the schema B. thanks in advance.

    infotools wrote:
    for the USER sys, she also success.

    Any user who has the privilege of the ADMINISTRATION DATABASE TRIGGERS you connect successfully even if the trigger generates an error. This is to avoid a bug in your trigger to prevent the ADMINISTRATOR to connect to the difficulty of the trigger. If user B in your example received this privilege, the logon trigger will do nothing.

    As has been pointed out, it is trivial to work around - there is very little logic to try to limit what a user can use the tool. I can always find another client tool to use (for example, SQL or SQL Developer * more). And I can always change my client tool to send a different program to the database name.

    Justin

Maybe you are looking for

  • Unknown icon makes me crazy

    Someone at - it a graphic list if icons, I have a notification in the bar and have no idea of its significance. Hoped I would be able to upload screenshot but don't think that I can, it looks like a circle and a small square with low circle to the ri

  • BSOD after installing HD Graphics 3000 (Yes, goes again...)

    Hey Hey community,. I have a problem (bug gold!) old or when I try to install the intel HD Graphics 3000 on Windows 7 64 bit, the laptop restarts only a BSOD at logon message 'welcome. ' I tried several combinations, many drivers, I don't know what t

  • PC crashes after loading the service pack 1 for my Vista Home premium PC.

    My system crashed after I loaded service pak 1. It damaged my recovery partion and I can't boot into Vista Home Premium operatining system. I have a Compaq Presario F572US

  • Cannot play music files in the car

    original title: music files Hi player I have in my car will not play some music files on a flash drive, the files are wma and are compatible with the player, he plays some wma files, can anyone help please.

  • BlackBerry smartphone email address import

    When you import contacts into the address book everything except the email is downloaded. How can I retrieve the email addresses?