NLS_DATE_FORMAT in PLSQL Developer differ from sqlplus

Hello

When you set the nls_date_format sqlplus at the session level, the results are as expected.Capture.JPG

Whereas, when you set the second level nls_date_format in PL/SQl developer, output the same format in both cases.

Capture1.JPG

help kindly on even...

Thank you to make clear... just ask out of curiosity, is possible for my session I modified my NLS_DATE_FORMAT and always the system reflecting the NLS_DATE_FORMAT substituted by the client software...

Means for my session how is it possible that without good privileges Client software replaces the format...

Why do you think that the output that you see in a GUI such as PLSQL Developer is determined by NLS session parameters? When the result set contains a date, then the proponent of the product is free to decide if it is displayed after the session or some settings settings in the tool preferences.

SELECT SYSDATE FROM dual;

ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD ";

SELECT SYSDATE FROM dual;

When I run the present into a toad, I get two different formats for the last statement in the manner which I run it:

F9 (run the statement): 10:26:08 09/01/2015

F5 (Exceute as a script): 2015-09-01

If the toad ignores the parameter when the developer thought that I don't know what I really want.

The same executions in SQL Developer shows 2015-09-01 both times. Here, the designer would think "Hey the user is a developer, that he or she will know what to do" or the designer has not thought to the problem and simply used the session settings.

Concerning

Marcus

Tags: Database

Similar Questions

  • Role of PLSQL developer in the process of upgrading the EBS?

    Hello

    One client is currently in the process of upgrading of the EBS from V11 to V12. They are looking for a PL/SQL Developer, migrate their paintings of previous version again. What would be the role of a pl/sql developer in such situation? I want to ask that position and looking for documents related to the post but could not find one. If there is someone who had experience with this migration scenario please help me.

    Thank you

    Siva.

    PLSQL developer should be involved in the code changes between 11i and R12 - please see these links/docs.

    Changes to model data identification between 12.1.3 EBS and EBS prior releases

    https://blogs.Oracle.com/stevenChan/entry/ebs_data_model_1213

    Report of comparison data EBS model [ID 1290886.1]

    Comparison of EBS seed data reports now available

    https://blogs.Oracle.com/stevenChan/entry/ebs_seed_data_comparison_reports

    eTRM

    http://ETRM.Oracle.com

    Thank you

    Hussein

  • Guaasian pic made results differ from other software fiitting results

    Hi, I do pic Gaussian fix as shown by the example of estimators of labview on an image. But when the same data are mounted by origin or Matlab results differ from that of Labview. Can someone tell me why this is happaning?

    The mismatch between the peak Gaussian Fit.vi and results Fit.vi of curve nonlinear is the limitations of default setting for the Fit.vi of peak Gaussian.  By default the limits force the setting of offset of 0.  Change the top and the bottom limit to + Inf and - Inf and change the tolerance to be ~ 1E-8 and the results between the two agree screws.

    -Jim

  • What is the difference between staging differ from the target

    Hello
    My question is what is the diffrence between staging differ from the target and staging of the same target area.

    To say:
    I'm loading the data from the file to the database table. Usually what happens is it will create temporary tables C$, I$, $ E. C$ table removes the information in the previous table and
    Create a new table, and then load the data staging I and then E$ for the error checking. So the question is if I select the option staged are same as target in this
    case if load us the data from the target moves or otherwise, to where the data is intended.


    Help me in this...
    THX,

    If you set a different transit area of target, and if the scheme of work is on one physical server other than your target schema, you will have more stages.

    I recommend your to create your interface twice and compare the generated steps by exploiting.

    In the first case (staging = target), the interface will do:
    * create and load C$ table in the schema of work related to your target schema
    * create and I charge $ table in the schema of work related to your target schema
    * load data since I have$ for the target table

    In the second case (different staging of target, and if the scheme of work is located on another server), you will have more steps ("export them")
    * create and load C$ table in the schema of work related to your "staging schema" you chose
    * create an ANOTHER C$ target table in the schema of work related to your schema. load of the first table of C$
    * create and I charge $ table in the schema of work related to your target schema
    * load data since I have$ for the target table

    In some cases, you must use "another area gathering that target." For example, your target is a flat file. (you cannot use the staging area of the technology of files, so you will choose a database schema)

  • The main module controls develop disappeared from the window to develop.  How can I get back them?

    The main module controls develop disappeared from the window to develop.  How can I get back them?  I work with Lightroom 5.3.  The missing controls are the sliders for exposure, clarity, contrast, etc.  I must have inadvertently clicked on something that made them disappear, but nothing I tried back them.  I've never had this experience over the years that I've been using Lightroom (since version 1.1).

    Right-click on any other element curve tone e.g., and tick on 'Basic' if that is what you are missing.

    If you miss the right click the full module to develop any other point Library for ex and put a check mark on develop

  • PLSQL developer - cannot run a script

    Hello

    I created a few scripts to create tables, triggers, and sequences. To run these scripts, I have another script that looks like:

    set echo on
    /

    Set of feedback on
    /

    coil < path >
    /

    @ < first script >
    @ < second script >
    so on, and at the end closed or completed the coil...

    I am trying to run this script in plsql developer, but it gives me an error... on each statement...

    Can any help me how to run this script...

    The actual scripts (something similar) would be a great help.
    But since we don't have I'll start with the basics

    Hope you are running those commands in the COMMAND Window and not sql window?
    

    Is this true?

    See you soon!
    Bobin

  • Copy develop settings from one photo to another: problems! Photo: getDevelopSettings LrDevelopController.setValue

    I've also attached the full code at the bottom of this message in case this is useful, but the summary

    I have a plugin of lua (rsjaffe MIDI2LR) who receives an application via a LrSocket MIDI messages. Everything works, but I tried to add copy/paste develop settings without success.

    In the following code, copy settings is:

    function copySettings()

    local photo = LrApplication.activeCatalog (:getTargetPhoto())

    parameters = photo: getDevelopSettings()

    end

    and paste the settings:

    function pasteSettings()

    applySettings (settings)

    end


    function applySettings (set) - still experimental

    If LrApplicationView.getCurrentModuleName () ~ = 'develop' then

    LrApplicationView.switchToModule ('develop')

    end

    for x, v to peers (set)

    -SERVER: send (string.format ("%s % d\n", x, develop_lerp_to_midi (v) "))

    -PARAM_OBSERVER [x] = v

    LrDevelopController.setValue (x, v)

    end

    end


    Functions called, but nothing happens to the picture of the target. I was also unable to attach a debugger (tried ZeroBrane studio as described in debugging Adobe Lightroom plugins with ZeroBrane Studio - ZeroBrane , but can not get Lightroom to load mobdebug.lrmodule.)


    Can someone point out where I'm wrong?

    Thank you.


    require "strict.lua" - catch some incorrect variable names

    require "Develop_Params.lua" - global table to develop params, we must observe

    local LrApplication = import "LrApplication".

    local LrApplicationView = import "LrApplicationView".

    local LrDevelopController = import "LrDevelopController".

    local LrFunctionContext = import "LrFunctionContext".

    local LrSelection = import "LrSelection".

    local LrShell = import "LrShell".

    local LrSocket = import "LrSocket".

    local LrTasks = import "LrTasks".

    local LrUndo = import "LrUndo".

    -File-local Consts

    local RECEIVE_PORT = 58763

    local SEND_PORT = 58764

    local PICKUP_THRESHOLD = 4

    -File-local vars

    Local CopyUUID

    local settings

    local LAST_PARAM = "

    local PARAM_OBSERVER = {}

    local PICKUP_ENABLED = true

    Local SERVER = {}

    -File-local work statements, advance declared to allow him to be in the scope of all calls.

    -When you define previously stated function, DO NOT USE local KEYWORD once again, it will define another local function.

    -These statement are intended to overcome certain Lua gotcha.

    local applySettings

    local copySettings

    local develop_lerp_to_midi

    local midi_lerp_to_develop

    local pasteSettings

    local processMessage

    local sendChangedParams

    local startServer

    local updateParam

    LOCAL = {}

    ['DecrementLastDevelopParameter'] is function () LrDevelopController.decrement (LAST_PARAM) end.

    ["VirtualCopy"] = function () LrApplication.activeCatalog ():createVirtualCopies() end,

    ['ToggleScreenTwo'] = LrApplicationView.toggleSecondaryDisplay,

    ['CopySettings'] = copySettings,

    ['PasteSettings'] = pasteSettings,

    }

    local TOOL_ALIASES = {}

    ["Magnifying glass"] = "magnifying glass."

    ["CropOverlay"] = "crop."

    ["SpotRemoval"] = "dust."

    ["Red eye"] = "red eye."

    ["GraduatedFilter"] = "degraded."

    ["RadialFilter"] = "circularGradient."

    ["AdjustmentBrush"] = "localized,"

    }

    local SETTINGS = {}

    ["Pick-up"] = function (enabled) PICKUP_ENABLED = (activated == 1) end.

    }

    function copySettings()

    local photo = LrApplication.activeCatalog (:getTargetPhoto())

    parameters = photo: getDevelopSettings()

    end

    function pasteSettings()

    applySettings (settings)

    end

    function midi_lerp_to_develop (param, midi_value)

    -map range from midday to develop the range of parameter

    local min, max = LrDevelopController.getRange (param)

    -If (param == 'Température') then

    -min = 3000

    -max = 9000

    -end

    local result = midi_value/127 * (max - min) + min

    Returns the result

    end

    function develop_lerp_to_midi (param)

    -map develop parameter range range midi

    local min, max = LrDevelopController.getRange (param)

    -If (param == 'Température') then

    -min = 3000

    -max = 9000

    -end

    local result = (LrDevelopController.getValue (param) - min) /(max-min) * 127

    Returns the result

    end

    function updateParam (param, midi_value)

    -This function performs a "Pick-up" check type

    -in other words, it will ensure the setting is close to develop

    -in what order entered value is before updating

    If LrApplicationView.getCurrentModuleName () ~ = 'develop' then

    LrApplicationView.switchToModule ('develop')

    end

    If ((not PICKUP_ENABLED) or (math.abs (midi_value - develop_lerp_to_midi (param)) < = PICKUP_THRESHOLD)) then

    PARAM_OBSERVER [param] = midi_lerp_to_develop (param, midi_value)

    LrDevelopController.setValue (param, midi_lerp_to_develop (param, midi_value))

    LAST_PARAM = param

    end

    end

    function applySettings (set) - still experimental

    If LrApplicationView.getCurrentModuleName () ~ = 'develop' then

    LrApplicationView.switchToModule ('develop')

    end

    for x, v to peers (set)

    -SERVER: send (string.format ("%s % d\n", x, develop_lerp_to_midi (v) "))

    -PARAM_OBSERVER [x] = v

    LrDevelopController.setValue (x, v)

    end

    end

    -message processor

    function processMessage (message)

    If (message) type == 'string' then

    -messages are in the format 'param value '.

    local _ param, value = string.find (message, '(%S+) %s(%d+)')

    If (ACTIONS [param] ~ = nil)-perform an action time

    If (ToNumber (value) == 127) then ACTIONS [param] (end)

    Else if (param:Find('Reset') == 1) then - reset other than those explicitly encoded in the ACTION items table

    If (ToNumber (value) == 127) then LrDevelopController.resetToDefault (param end:sub(6))

    Else if (param:Find('SwToM') == 1) then - perform a switch to the module

    If (ToNumber (value) == 127) then LrApplicationView.switchToModule (param end:sub(6))

    Else if (param:Find('ShoVw') == 1) then - change the display mode of the application

    If (ToNumber (value) == 127) then LrApplicationView.showView (param end:sub(6))

    Else if (param:Find('ShoScndVw') == 1) then - change the display mode of the application

    If (ToNumber (value) == 127) then LrApplicationView.showSecondaryView (param end:sub(10))

    ElseIf (TOOL_ALIASES [param] ~ = nil) then - switch to the desired tool

    If (ToNumber (value) == 127) then

    If (LrDevelopController.getSelectedTool () == TOOL_ALIASES [param]) then - switch between the tool/Magnifier

    LrDevelopController.selectTool ('magnifying glass')

    on the other

    LrDevelopController.selectTool (TOOL_ALIASES [param])

    end

    end

    ElseIf (PARAMETERS [param] ~ = nil) then

    Settings [param] (ToNumber (value))

    else - otherwise update a development parameter

    updateParam (param, tonumber (value))

    end

    end

    end

    -Send settings changed to MIDI2LR

    function sendChangedParams (Observer)

    for param in ipairs (DEVELOP_PARAMS), __________

    If (Observer [param] ~ = LrDevelopController.getValue (param)) then

    SERVER: send (string.format ("%s % d\n", param, develop_lerp_to_midi (param) "))

    Observer [param] = LrDevelopController.getValue (param)

    LAST_PARAM = param

    end

    end

    end

    function startServer (context)

    SERVER = {LrSocket.bind}

    functionContext = context,

    plugin = _PLUGIN,

    port = SEND_PORT,

    mode = "send."

    onClosed = function (socket) - this callback seems never called...

    -MIDI2LR closed the connection, allow reconnection

    -socket: reconnect()

    end,

    onError = function (socket, err)

    Socket: reconnect()

    end,

    }

    end

    -Main task

    LrTasks.startAsyncTask (function()

    LrFunctionContext.callWithContext ("socket_remote", function (context)

    LrDevelopController.revealAdjustedControls (true) - parameter reveal touched in the process of Panel

    -Add an observer to develop changes to the param

    LrDevelopController.addAdjustmentChangeObserver (context, PARAM_OBSERVER, sendChangedParams)

    local client = {LrSocket.bind}

    functionContext = context,

    plugin = _PLUGIN,

    port = RECEIVE_PORT,

    mode = "receive."

    onMessage = function (socket, message)

    processMessage (message)

    end,

    onClosed = function (socket)

    -MIDI2LR closed the connection, allow reconnection

    Socket: reconnect()

    -call SERVER: reconnect causes LR to hang for some reason any...

    SERVER: close()

    startServer (context)

    end,

    onError = function (socket, err)

    If err is 'timeout' then - reconnect if expired

    Socket: reconnect()

    end

    end

    }

    startServer (context)

    While true

    LrTasks.sleep (1/2)

    end

    client: close()

    SERVER: close()

    end)

    end)

    LrTasks.startAsyncTask (function()

    If (WIN_ENV) then

    LrShell.openFilesInApp ({_PLUGIN.path..' / Info.lua'},.. _PLUGIN.path' / MIDI2LR.exe')

    on the other

    LrShell.openFilesInApp ({_PLUGIN.path..' / Info.lua'},.. _PLUGIN.path' / MIDI2LR.app')-on Mac, it seems that the argument of files must include an existing file

    end

    end)

    This may be a correct way, it seems to work

    local settings

    function copySettings()

    LrTasks.startAsyncTask (function)

    local photo = LrApplication.activeCatalog (:getTargetPhoto())

    parameters = photo: getDevelopSettings()

    end)

    end

    function pasteSettings()

    If the parameters ~ = nil then

    LrTasks.startAsyncTask (function)

    Catalog = LrApplication.activeCatalog)

    Catalog: withWriteAccessDo ('pasteSettings', function()

    local photo = catalogue: getTargetPhoto()

    Photo: applyDevelopSettings (Settings)

    end)

    end)

    end

    end

  • Transfer files and to develop guidelines from one House to the other.

    I have a House on both sides and PC in every home where I installed CC.  I want to have the same files on each computer.  How can I transfer files from one PC to the other so that all the "setting instructions" are transferred with files.  I have a portable hard drive. Export, move, copy, save or import them.  I know how to get the original files not adjusted from one to the other, but I want to make sure that (the ' development' 'instructions') adjustments are transferred too.  I don't want to take the PC all from East to West in order to migrate.

    You must move the file catalog to computer 2 and ensure that the hierarchy of folders for the photos is EXACTLY the same on the 2nd computer as it is on the first computer.

    There is no export or import. If you export or import, you're doing it wrong.

    More details: http://www.lightroomqueen.com/how-move-lightroom-to-new-computer/

  • I have a Setup dual monitor.  When I paste develop settings from one image to the other, Lightroom going on the active window.

    Strange problem.  5.5 Lightroom.  Windows 8.1. Setting up dual monitor.

    I am processing a lot important photos.  I have #1 monitor set as my main to develop the window with #2 monitor configured only to display a larger version of the image, I work with. If I copy the parameters of development out of a picture and try to paste them on another image, Lightroom will increase from the #1 to the monitor #2 monitor in the main window to develop and does not display anything on the monitor #1.

    If I then try to paste develop settings on another image on the monitor #2, LR then displays a larger version of the image, I have been working with the #1 monitor.

    To work like I want to, I have to constantly drag my develop the window back to the #1 monitor whenever I try to paste the settings on a new image of development. How can I make this stop?

    I have similar (but different) problems dual monitor. Just posted this on my thread unanswered. It may be useful:

    Blessed excrement! After frustrating months of bi-ecrans LR questions and a month of waiting for an answer on this forum, I called Adobe technical support. Only five minutes before dialing, I had updated my PhotoShop CC application. When the useful Adobe tech classmate is online, I can't reproduce all the issues that had been plaguing me. It is a stretch... a biiiiig stretch... but he is feels/figure/seems that PhotoShop CC update has fixed my bi-ecrans LR problems! I'll keep track of what other programs I use and open while LR - ing to see if they are relaxing, but for now, everything is quite in front of two monitors.

  • OIF - what is only the diff. from the point of view of the users of the IDP/SP initiated SSO

    I use OIF Federated single on sign. I got the two SP and IIP launched SSO works. When I provide both URL to the client, how can I suggest one to use? from the perspective of the end user, both of them works in the similar workflow: type (click) URL-> redirect to the login page of IDP-> connection-> back to demand. only diff. seems the URL. most of the users did not even notice the diffrence between 2 URLs.

    Is that what some might give some suggestion when and what's the favorite.

    Thank you

    Try this http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html and then apply it to your own infrastructure

  • Fit Gaussian Peak and non-linear curve Fit on small data differ from the PEAK of origin made

    Hi all

    I'm developing a program in which I have to adjust the curve of Gauss on only 4 or 5 data points. When I use the Gaussian Ridge Fit or adjustment of the curve non-linear, it connects linearly all the points so that other editing software like origin's curve fitting of Gauss on the same set of data that I have attached two images is LabVIEW with Fit Gaussian of Peak and nonlinear adjustment and other is original.

    The data are

    X                       Y

    799.09857 257
    912.25256 641

    1026.00366 1516
    1137.92871 1118
    1253.43713 329

    Interesting.

    The initial default values assume all are NaN, which causes the LV calculate conjecture.  The default values for the parameter Bounds +/-Inf with the exception of the offset that are both zero. This, of course, forces the output zero offset.  It seems a strange fault, but they may have a good reason for it.

    Change the limits of compensation to something else translates the output being offset ~ 215 and the Center moves to ~ 1053.  These correspond the original result to 5 significant digits.

    Lynn

  • The digital results LV differ from country

    Hello

    Customers who use the exe in Europe reported that they receive results of NaN for numerical computations (pure mathmatical operations with use of optimization LV screws as LM floating-point).

    When I perform the same calculation using the same exe I don't get NaN.

    What could be the problem?  Any help is appreciated.

    Customers using W7 64 bit and developed in 2013 LV.

    I found this:

    http://www.copsmodels.com/gpcommapnt.htm

    Fortunately, there is a very simple solution. Assume that Windows 7 is configured to use Finnish conventions (including the decimal point), but ViewHAR is (wrongly) using decimal point.

    1. Open regional and Language Options
    2. Under 'Format' choose a different regional setting (for example: English (United States)).
    3. Press 'apply '.
    4. Under 'Format' choose your desired local origin (ie: Finnish)).
    5. Press OK.

    and the problem will be finally solved (simply by changing to something else, then back to the desired option, remember Windows 7 how it should behave).

  • Not able to connect from SQLPLUS

    Hi all

    I am able to connect to sqlplus.exe is db_home server but when try to connect since sqlplus.exe located in client_home, get the following error

    ORA-12560: TNS:protocol adapter error

    I tried 'C:\app\client_home\sqlplus.exe system/system@orcl' get following error

    ORA-12154: TNS: could not resolve the connect identifier specified.

    tnsping results:

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

    AMT Ping Utility for 64-bit Windows: Version 12.1.0.1.0 - Production on April 21, 2015 19:32:01

    Copyright (c) 1997, 2013, Oracle.  All rights reserved.

    Use settings files:

    C:\app\Administrator\product\12.1.0\dbhome_1\network\admin\sqlnet.ora

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = xxxxxx) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl140848)))

    OK (10 ms).

    Can anyone help on this.

    Kind regards

    Amar.

    I tried 'C:\app\client_home\sqlplus.exe system/system@orcl' get following error

    ORA-12154: TNS: could not resolve the connect identifier specified.

    Use settings files:

    C:\app\Administrator\product\12.1.0\dbhome_1\network\admin\sqlnet.ora

    You use SQL * more a directory ORACLE_HOME (C:\app\client_home) and tnsping off another house (C:\app\Administrator\product\12.1.0\dbhome_1). The SQL * Plus home isn't the file tnsnames.ora with the alias "orcl" but made the other House. Copy the file tnsnames.ora to another entry.

    HTH,
    Brian

  • Can you help me? My scrolling Parallax items differ from Safari to Chrome on Mac.

    Elements line up great in the preview, in safari and on an iPhone. Come in from the left and the Earth postion. But seen in Chrome on a Mac things are more aligned. Some items are 40 pixels higher than some other items like him come into their final, in position. And to demystify things more far, Chrome on mac and IE on Windows look even... the gap is the same... they both look also disabled. How can I fix it?

    Thanks in advance.

    Wes

    BTW: if you want to animate multiple elements in the diagram precisely together, then it's time to stop pushing the envelope of the Muse scrolling effectsand start using the appropriate as (legacy) Adobe Edge animate animation software or Tumult Hype. There are also Animer from Adobe, but maybe it's a little too much for these relatively simple animations.

  • Executing a dynamic script from SQLPLUS name?

    I have a script that will run in SQLPLUS.

    I need the script to query a table and assign the result value to a variable.  Then I have to call a second script showing the value of this variable.

    Here is an example of generic non-what I need to do.  I need to insert a value into the variable "scriptname" can run the script with this name.  Is this possible?  By the way the value of a file beats or something is not possible in this situation.

    DECLARE ScriptName VARCHAR2 (50);

    BEGIN

    -Get the name of the script

    SELECT NextScript IN GenericTable ScriptName;

    -Run the script

    @ScriptName

    END;

    /

    Not really possible.

    All PL/SQL code will be submitted to the database must be performed, so that the database can not run scripts back on the client SQL * more tool, as the control is not returned to SQL * more until that code PL/SQL completed.

    If the scripts are on the server, then you might have a PL/SQL code that loops through the script names and submits the work to be performed immediately using DBMS_SCHEDULER, he call sqlplus command line with the relevant script / etc paths, but if your going to go to all that trouble It would be easier to put scripts in packages/procedures etc. PL/SQL code and just call those that you need.

Maybe you are looking for