NLS_DATE_FORMAT in NLS_SESSION_PARAMETERS and USERENV is different

I have got two databases which were created by two different DBA teams.
When I run a package it ran successfully on ORASID1 but failed on ORASID2 with ORA-01861: literal does not match format string. I've found that the query in question is trying to apply a TO_DATE() function on a DATE type column.
Now, my question is: Why the same code didnot fail on SID1.
When I compared the NLS_DATABASE_PARAMETERS, NLS_INSTANCE_PARAMETERS, NLS_SESSION_PARAMETERS, then I did not find any difference.
But, when I checked the NLS parameters using the below query, I found that the NLS_DATE_FORMAT is different.
Note: I checked all the aforesaid settings from sqlplus prompt on the Unix box.
SELECT
SYS_CONTEXT('USERENV','NLS_TERRITORY') nls_territory,
SYS_CONTEXT('USERENV','NLS_DATE_FORMAT') nls_date_format,
SYS_CONTEXT('USERENV','NLS_DATE_LANGUAGE') nls_date_language,
SYS_CONTEXT('USERENV','NLS_SORT') nls_sort,
SYS_CONTEXT('USERENV','LANGUAGE') language
FROM DUAL;
ORASID1 NLS Settings:
NLS Territory:AMERICA
NLS Currency:$
NLS Date Format:DD-MON-RR
NLS Date Language:AMERICAN
NLS Sort:BINARY
Language:AMERICAN_AMERICA.UTF8
ORASID2 NLS Settings:
NLS Territory:AMERICA
NLS Currency:$
NLS Date Format:YYYY-MM-DD HH24:MI:SS
NLS Date Language:AMERICAN
NLS Sort:BINARY
Language:AMERICAN_AMERICA.UTF8
Could someone please explain how come the values in nls_session_parameters table are same but when the same value is checked from userenv it shows different results for NLS_DATE_FORMAT?
Thanks in advance.

To be precise, the result of your query was something like this:
ON ORASID1:
AMERICAN === DD-MON-RR
AMERICA === DD-MON-RR
$ === DD-MON-RR
AMERICA === DD-MON-RR
., === DD-MON-RR
GREGORIAN === DD-MON-RR
DD-MON-RR === DD-MON-RR
AMERICAN === DD-MON-RR
BINARY ==== DD-MON-RR
HH.MI.SSXFF AM === DD-MON-RR
DD-MON-RR HH.MI.SSXFF AM === DD-MON-RR
HH.MI.SSXFF AM TZR === DD-MON-RR
DD-MON-RR HH.MI.SSXFF AM TZR === DD-MON-RR
$ === DD-MON-RR
BINARY === DD-MON-RR
BYTE === DD-MON-RR
FALSE === DD-MON-RR
ON ORASID2:
AMERICAN === YYYY-MM-DD HH24:MI:SS
AMERICA === YYYY-MM-DD HH24:MI:SS
$ === YYYY-MM-DD HH24:MI:SS
AMERICA === YYYY-MM-DD HH24:MI:SS
., === YYYY-MM-DD HH24:MI:SS
GREGORIAN === YYYY-MM-DD HH24:MI:SS
YYYY-MM-DD HH24:MI:SS === YYYY-MM-DD HH24:MI:SS
AMERICAN === YYYY-MM-DD HH24:MI:SS
BINARY === YYYY-MM-DD HH24:MI:SS
HH.MI.SSXFF AM === YYYY-MM-DD HH24:MI:SS
DD-MON-RR HH.MI.SSXFF AM === YYYY-MM-DD HH24:MI:SS
HH.MI.SSXFF AM TZR === YYYY-MM-DD HH24:MI:SS
DD-MON-RR HH.MI.SSXFF AM TZR === YYYY-MM-DD HH24:MI:SS
$ === YYYY-MM-DD HH24:MI:SS
BINARY === YYYY-MM-DD HH24:MI:SS
BYTE === YYYY-MM-DD HH24:MI:SS
FALSE === YYYY-MM-DD HH24:MI:SS

Similar Messages

  • Problem with storing and retriving a different langauge font in mysql

    hi,
    i have problem with storing and retriving a different character set in
    mysql database ( for example storing kannada font text in database)
    it simply store what ever typed in JTextField in database in the
    formate ??????????? and it showing ???????? .
    please what can i do this problem.
    thanks
    daya

    MySQL does not know about what type of Font you use or store. that is applicatioon specific. All it knows is the character set that you are storing and the data type and data. THere are something you should know when working with database and Java:
    1. make sure you know what character set is used for the database table.
    2. make sure you know what character set is used by Java (default to UTF-8 ..
    sort off - there are few character that it cannot save). You can enforce the
    character set being sent to the database by the String's getBytes(String charsetName) method.
    3. make sure the application you use to view the table use the correct character set
    if it use a different character set, then any character that it does not recogized
    will be replaced with a quetion mark '?'....eventhough the data is correct.

  • Is it possible to have 2 icloud accounts on one pc?  My wife and I have 2 separate itunes accounts and we have different music stored on our iphones.  She just recently got an IPAD and I will be getting one soon.  We would like to share ibooks purchased f

    Is it possible to have 2 icloud accounts on one pc?  My wife and I have 2 separate itunes accounts and we have different music stored on our iphones.  She just recently got an IPAD and I will be getting one soon.  We would like to share ibooks purchased from itunes.  If she stored it them on icloud, can I download it onto my ipad?

    How to use multiple iPods, iPads, or iPhones with one computer
    http://support.apple.com/kb/HT1495
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

  • FLV Playback and Seekbar on different native windows in one Air application

    Hello Everyone.  I'm trying to make a simple video playback AIR application that utilizes the initial native window to house a transport control with a seekbar on it.  Once the application launches, it creates a second (new) window on my second screen and places a FLVPlayback instance on that new window.  Everything works just like it want it to except for one thing.  When the seekbar and FLVplayback instance are not located on the same window stage, the seekbar handle sticks to the mouse when trying to scrub through the video.
    I've added both the transport control and the FLVPlayback instance to the original native window as children and I have also added both of them to the new window as children and everything works just fine.  It's only when they are separated and located on different stages that the seekbar acts up.  When they are on the same stage, I can click on a point on the seekbar and the video jumps to that spot and continues to play and I can also scrub the seekbar, the video updates as I scrub, and when I release the mouse, the seekbar handle stays where I released the mouse.  When they on separate stages, the seekbar handle continues to follow the mouse movement without releasing it.  The video updates as the seekbar handle is moved due to it sticking to the mouse, but if I release the mouse, the handle is still moving with the mouse and the video is still being scrubbed.  Like I said, everything works great except for this and I have reached my limit with time spent on this issue.  Does anyone have any insight into this?
    Here's my code for the project.  This is my first AIR application, so I am coding it as I am learning, please be kind.
    import fl.video.*;
    import flash.display.*;
    import flash.desktop.*;
    import flash.events.*;
    import fl.video.MetadataEvent;
    import flash.geom.*;
    import flash.ui.Mouse;
    import flash.text.*;
    GLOBAL SETUP
    var flvControl:FLVPlayback;
    var MasterWindow = stage.nativeWindow;
    var screen1:Screen = Screen.screens[0];
    var screen2:Screen = Screen.screens[1];
    MASTER WINDOW SETUP
    this.loaderInfo.addEventListener(Event.COMPLETE,maximize);
    transControl.playPauseButt2.addEventListener(MouseEvent.CLICK, PlayButton);
    if (Screen.screens.length > 1){
              createVideoBKG();
              createVideoPlayer();
    GENERAL FUNCTIONS
    //Maximize the initial screen
    function maximize(e:Event) {
              MasterWindow.x = screen1.bounds.left
              MasterWindow.maximize();
              MasterWindow.stage.scaleMode = StageScaleMode.EXACT_FIT;
    //Hide Mouse Behind Video Window On Roll-Over
    function MouseRollOver(e:MouseEvent):void
              {          Mouse.hide()          }
    function MouseRollOut(e:MouseEvent):void
              {          Mouse.show()          }
    //Play-Pause Button Control
    function PlayButton(event:MouseEvent):void
                        if(transControl.playPauseButt2.currentFrame==1 ){
                                  transControl.playPauseButt2.gotoAndPlay(2);
                                  flvControl.play();
                        else {
                                  transControl.playPauseButt2.gotoAndPlay(1);
                                  flvControl.pause();
    function CloseWindow(e:MouseEvent):void
                        NativeApplication.nativeApplication.openedWindows[2].close();
    VIDEO BKG SETUP
    function createVideoBKG(e:Event = null):void{
              var newOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
              newOptions.type = NativeWindowType.LIGHTWEIGHT;
              newOptions.systemChrome = NativeWindowSystemChrome.NONE;
              newOptions.transparent = true;
              var videoBKG:NativeWindow = new NativeWindow(newOptions);
              if (Screen.screens.length > 1){
                        videoBKG.x = screen2.bounds.left;
              videoBKG.maximize();
              chromeSetup(videoBKG);
              videoBKG.activate();
    //Video BKG Chrome Setup
    function chromeSetup(currentWindow):void {
              var vidBKG = new video_bkg();
              vidBKG.name = "video_bkg2";
              vidBKG.addEventListener(MouseEvent.ROLL_OVER, MouseRollOver);
              vidBKG.addEventListener(MouseEvent.ROLL_OUT, MouseRollOut);
              currentWindow.stage.addChild(vidBKG);
    VIDEO Player SETUP
    function createVideoPlayer(e:Event = null):void{
              var newOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
              newOptions.type = NativeWindowType.LIGHTWEIGHT;
              newOptions.systemChrome = NativeWindowSystemChrome.NONE;
              newOptions.transparent = true;
              var videoPlayer:NativeWindow = new NativeWindow(newOptions);
              if (Screen.screens.length > 1){
                        videoPlayer.x = screen2.bounds.left;
                        videoPlayer.y = screen2.bounds.top;
                        videoPlayer.width = screen2.bounds.width;
                        videoPlayer.height = screen2.bounds.height;
                        videoPlayer.stage.scaleMode = StageScaleMode.NO_SCALE;
              videoPlayer.alwaysInFront = true;
              var DVR = new DVR_Player();
              DVR.name = "DVR";
              DVR.x = 0;
              DVR.y = 0;
              DVR.addEventListener(MouseEvent.ROLL_OVER, MouseRollOver);
              DVR.addEventListener(MouseEvent.ROLL_OUT, MouseRollOut);
              videoPlayer.stage.addChild(DVR);
                flvControl = DVR.display2;
              flvControl.width = 1280;
              flvControl.height = 720;
              flvControl.skin = null;
              flvControl.autoPlay=false;   
              flvControl.isLive=false;
              flvControl.fullScreenTakeOver = false;
              flvControl.align = VideoAlign.CENTER;
              flvControl.scaleMode = VideoScaleMode.NO_SCALE;
              flvControl.source = "olympics.f4v";
              flvControl.seekBar = transControl.seekbarContainer2.seeker;
              videoPlayer.activate();

    Does anyone have any ideas about this?

  • How do I share photos and music between different user accounts on the same macbook

    How do I share photos and music between different user accounts on the same Macbook? i.e. I want all to be able to access family photos when logged into their respective accounts. Same goes for the iTunes library. Hope this is possible...
    Thanks!

    To give other users read-only access to your iTunes library, use the Sharing features of iTunes. Sharing works over the local network as well as on the same computer. See the built-in help for details.
    To give others selective access to your iPhoto library, you have the option of using iCloud Photo Sharing, if the privacy implications don't bother you. The images will be stored temporarily on Apple servers.
    If you want to give full read/write access to more than one user, see the support articles linked below.
    iTunes: How to share music between different accounts on a single computer
    iPhoto: Sharing libraries among multiple users
    There is a way to share the library without moving it to a secondary volume. If you really need to do that, ask for instructions.

  • IPhoto and Aperture crash, different computers same, have rebuilt

    I have a newer model iMac with lots of extra memory. Hardware shouldn't be an issue, and my drives all check out as fine.  All formatted correctly.  But after working in iPhoto for about 10 minutes (just renaming things, not even editing), it will crash, and on reload there will be grayed out events, sometimes with pictures in them that I can duplicate so it fixes everything and sometimes just empty, and photos are missing permanently.   I am on a UPS, and I have current versions of all programs, most likely no conflicting software, no add ons.  (I only use apple software and Diablo.)
    I have tried rebuild, repair, permissions, etc. several times.  I have tried running the library off a different drive, and on a different computer with a different user.  Same problem. I tried the same thing with Iphoto Library Manager.  It rebuilt fine, but then crashed after use.
    I bought aperture thinking that might solve the issue, but it crashes too (far less often, like every hour or so instead of every 10 minutes) BUT even when not crashing it takes about 30 seconds of beachball just to rename a photo.
    I bought a jpeg checker program to see if there were issues, and it found 10 or so corrupted photos.  Not sure how to deal with this as you aren't supposed to modify the library directly in Finder, and I couldn't find the photos in iPhoto (same names as many other photos so not sure which is corrupt).
    ANY SUGGESTIONS? 
    iPhoto had no problems about 6 months ago, but have been having serious problems last two months.  Hadn't used it in between.
    My library is very large (59,000 photos).

    Next time it crashes post the crash log on here.

  • HT5622 My wife and I have different Apple ID's and passwords but I want to share the music library which is on iCloud under my Apple ID.  How do I set her up to share the music library that exists in iCloud?

    My wife and I have different Apple ID's and passwords but I want to share our music library which is on iCloud under my Apple ID.  How do I set her up to share the music library that resides on the iCloud under my Apple ID?

    You would need to go to Settings>iTunes & App Store, tap her ID, sign out, then sign back in with your ID.  However, if she has turned on automatic downloads, download previous purchases or signed into an iTunes Match account using her current ID, she would have to wait 90 days from when she first did this to change to another ID.  She can, of course, sync your music to her device using iTunes without changing her ID association.

  • My wife and I have different Apple ID, can we share our music on the two devices

    My wife and I have different Apple ID, can we share our music on the two devices

    You do not need to ask the same question twice. Stick with the first post that you started here.
    https://discussions.apple.com/message/21121337#21121337

  • I have made a burn folder with photos exported from I-photo.  It now shows in information, that the date is created and modified is different from the original digitized date.  How can I get the original date to show in the info from Finder?

    I have made a burn folder with photos exported from I-photo.  It now shows in information, that the date  created and modified is different from the original digitized date.  How can I get the original date to show in the info from Finder?

    The Finder reports File information. The date and time of the photo are in the Photo's Exif metadata. The Finder has no awareness of this. All photos apps on any system do.
    Regards
    TD

  • Itunes and iphone have different apple id. how do i change my phone settings to match itunes ID?

    itunes and iphone have different apple id. how do i change my phone settings to match itunes ID?

    Settings>Store...tap the ID shown...sign out...sign back in with the ID you want to use.

  • How long should I let Safe Mode startup run? I keep getting the "disk0s2 i/o error" message and I'm just not sure when to give up and try a different method. I already ran disk utility in Recovery Mode and it said there were no repairs needed.

    How long should I let Safe Mode startup run? I keep getting the "disk0s2 i/o error" message and I'm just not sure when to give up and try a different method. I already ran disk utility in Recovery Mode and it said there were no repairs needed but it still kept getting stuck on the apple loading screen.

    You have limited opportunity to attempt to create a backup of your created files.
    That is what the SafeBoot or safemode appears to allow you -- at the moment.
    Since the hard disk drive exhibits signs of failure or other major issues, plan
    on a replacement in the near future. You may be able to get the computer to
    start up in a regular full OS X (not safe mode) but consider its hours are limited.
    An externally enclosed hard disk drive (with own power supply, not relying on
    Mac ports to run it) is a good basic means of which to use a disk utility to make
    a copy or a Clone of the current OS X. This may help retrieve an archive that
    could be used along with a Time Machine backup, to restore your Mac once you
    get a new hard drive installed inside.
    Good luck & happy computing!

  • I have a macbook pro, and i want to transfer my hard drive from my macbook, but the display drivers and such are different.  How do i do this?

    I have a macbook pro, and i want to transfer my hard drive from my macbook (500g), but the display drivers and such are different.  How do i do this and is it possible?
    The Macbook Pro has Mac OS X 10.4.11 (70g hard drive)
    The Macbook has Mac OS X 10.6.8 (500g hard drive)

    The MacBook's hard drive lacks the necessary hardware drivers to boot the MacBook Pro even though it has a much newer OS on it; that's why simply moving it into the Pro doesn't work. Presumably you have a very old MB Pro, because only the very first MB Pro model (produced January to May 2006) was ever offered with an 80GB hard drive. Are you sure you want to move your big drive into such an old machine? The MacBook must be newer, because the first MacBook was introduced just as the first Pro model was discontinued.

  • HT202213 My wife and I have different iTune accounts.  How do we share purchaed content between our ipads and iphones?

    My wife and I have different iTune accounts.  How do we share purchaed content between our ipads and iphones?

    iTunes- How to share music between different user accounts on a single computer
    You cannot merge two separate libraries across user accounts. Photos does not have the function of merging different Photos.library files. If you have Aperture then you can merge the two before migrating over to Photos.

  • Can i keep my music when I make a new account? my wife and i have different taste in music an it is getting to be too much

    My wife and I have different taste in music and I have been using her apple account to buy all my music. Well needless to say we are filling up our ipads, ipods, and iphones with each others music. I just got a new computer for my birthday (thanks to my wife who is sick of me using hers) and would like to keep all of the music I purchased on my new account. I am still using her for this question:) Can this be done? I have spent a lot of money on this music and don't want to lose it all. Please help:(

    What does "what was already downloaded to my wife's computer " refer to?  If its music that's been bought as digital downloads (e.g., from the iTunes store) then the issue I referred to earlier applies (plus, in the case of iTunes purchase, it may not be playable if you're using a different Apple ID in iTunes).  The approach of copying content from your wife's computer to yours is valid if it is the result of importing your music from your CDs into iTunes.

  • When opening a pdf document in Adobe Reader the font of the original document is changed....It becomes a mix of the original font and a new different font. How can i fix this

    When opening a pdf document in Adobe Reader the font of the original document is changed....It becomes a mix of the original font and a new different font. How can i fix this

    This issue occurs with most of the PDFs that I open up. I am using the latest version of adobe reader on my windows based machine and it is a general PDF. I saw a similar post online stating that if you look at the fonts used in the document and it doesn't say (Embedded) next to it, then Adobe Reader will try to pull the font(s) from your computer and if it doesn't find that font then it will replace it which makes it look funny.

Maybe you are looking for

  • JMS Correlation Issue

    Hello I actually stole some of the text of this question from a previous post. The post hasn't had any activity for over a month, so I thought I would repost as I need a solution. I have modified it to my situation. I need to implement following scen

  • Viewing clip in full screen mode

    I have not figured out how to view a clip that I have imported into FCE in the full screen format like you can do in imovie. Anyone have any suggestions? Thanks TimHA

  • GPS (Lat Lng) Format Problem

    Hi, I'm having a problem with GPS coordinates being rounded. I'm working on an application that receives a set off lat lng coordinates and then uses the MkMapView control to display the placemark. Most of the time everything seemed ok, however I noti

  • Configuration Management Software

    Hi all, I'm putting it out there early. In two weeks (Dec 14th) I am going to release rConfig. This free and open source software has been over a year in the making and is specifically designed by a highly expereinced network engineer (Me!) for netwo

  • Can you set disk usage limits for user accounts?

    i work in the media department at my college and were trying to set up disk limits for our classes. we have powermacs with 6 class login accounts. we want to limit each account to occupy up to 20gbs of disk space. can this be done? i should add too t