NLS_DATE_FORMAT setting on my local pc

Hello, I am running into a small problem and need some expertise on how to fix it. I am making the following SP call from my Database server:
SQL> exec SP_STAGED_CUSTOMER_PROCESS;
PL/SQL procedure successfully completed.
As you can see, it works fine.
The NLS_DATE_FORMAT on the server is set to
DD-MM-YYYY HH24:MI:SS
When I run the same SP on my local machine against the same database, I get the following error:
SQL> exec SP_STAGED_CUSTOMER_PROCESS;
BEGIN SP_STAGED_CUSTOMER_PROCESS; END;
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "CRM.SP_STAGED_CUSTOMER_PROCESS", line 479
ORA-20001: Error processing Additional Info query "UPDATE CUSTOMER SET
ANNIVERSARY_DATE='19-May-01' WHERE CUSTOMER_ID = 10009": -1843:ORA-01843: not a
valid month:50001001510100000230
ORA-06512: at line 1
If I do a select SYSDATE from DUAL on my local pc, it is in the following format:
09/19/2006 09:56:21
I need it to be the same as the Database server setting of:
DD-MM-YYYY HH24:MI:SS
Is there somewhere on my local pc that I can specify this or have it use the server side value. I can not be doing an alter session each time to correct this. There must be a config file somewhere where I can define this.
David

It seems the NLS_DATE_FORMAT setting on your server and the database are different. If it's not explicitly set in the database, the default value is dictated by the NLS_TERRITORY setting. If you set the format in the server environment, the default format is overwritten by this environment variable. However, when you call a SP from a client, there is no environment variable setting, so the database format comes into play. Make sure why you need to set the environment variable. If you don't need it, remove it and modify the SP to accept the date value according to the database format. Then it should work whether you run the program from the server or the client.

Similar Messages

  • How do I set up a local testing server?

    Hey again everyone. I am trying to figure out how to set up a local testing server. I've read a couple different tutorials online and i still can't figure it out. I added a new server, named it test server, I'm connecting using local/network, my server folder is C:\Users\Jake\Website\testfolder, and my web URL is http://localhost/. My server model is PHP/MySQL.
    My site's root folder is C:\Users\Jake\Website\. I have also downloaded XXAMP. It downloaded and that was it though, I'm not sure if I need to apply it somehow to Dreamweaver. When I try to preview my pages I get a message that asks me if I want to update copy on testing server. If I choose yes, another message comes up and asks me if I want to put dependent files. Whether I choose yes or no it just says IE cannot display the web page.
    Any help would be appreciated, thanks!

    Site Name: PHP Test Site
    Local Site Folder: C:\xampp\htdocs\php_test\
    Server Name: Local Testing
    Connect Using: Local/Network
    Server Folder: C:\xampp\htdocs\php_test
    Default Images Folder: C:\xampp\htdocs\php_test\Images\
    Web URL: http://localhost/php_test/Server Model: PHP MySQL
    Is that everything you need to know? Note that I do not have a remote testing site set up yet.

  • How to set up a local testing server with local-only access

    Hi folks,
    I've reached the point where I need to do some simple server-side scripting in my Dreamweaver work. I work remotely pretty often, so I want to be able to preview my work without having to go back and forth to the production server. It seems to me the solution would be to install a little web server on my laptop, BUT I'm concerned about security. Is there any way I can set up a local webhost but not make it accessible to the outside world?
    I'm really pretty clueless about this stuff, so I'd appreciate any advice. Thanks!
    -Kim

    I would recommend using XAMPP Lite.  It's very lightweight and portable when installed on a USB drive or flash stick. 
    http://www.howtogeek.com/howto/14998/
    Nancy O.

  • To use a router to set up a local wifi network. Would this system be suitable to use with an Apple TV or is internet access require

    I'm considering using Apple TV to connect to a projector in a church hall which does not have any internet access. I intend to use a router to set up a local wifi network. Would this system be suitable to use with an Apple TV or is internet access require

    Welcome to the Apple Community.
    Yes, that will be fine providing you don't want to play any protected content.

  • How to set password for Local are connection?

    How to set password for Local are connection?

    do you mean the 802.1x authentication?
    check out links below:
    http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2950/software/release/12-1_9_ea1/configuration/guide/scg/Sw8021x.html
    http://technet.microsoft.com/en-us/network/bb545365.aspx
    Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    IT Stuff Quick Bytes

  • Can I set the default locale for jvm

    Hi,
    Can I set the default locale for jvm?
    How to do it?
    Pan

    My windows default locale is chinese .I have thought of your opinion. But in
    windows nt , if I change the locale , all the environment will be
    destroyed(just like reinstall it , it's difficult for me) . So , Is there
    any other approach?
    Dimitri Rakitine <[email protected]> wrote in message
    news:[email protected]...
    Did you try to change the locale in the Windows control panel?
    (Control panel -> Regional Options -> Your locale)
    Pan YangBin <[email protected]> wrote:
    I have tried changing this system property and other properties such
    as -Duser.language=en -Dfile.encoding=Cp1252 , but all these properties
    did
    not changed, you can get this infomation from the log file .Maybe these
    system properties are readonly.
    Thanks very much.
    Pan
    Chris Halstead <[email protected]> wrote in message
    news:[email protected]...
    Try adding -Duser.region=US to the java command line used to start
    WebLogic...
    -chris
    "Pan YangBin" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    The problem exists in my project still exist.That is it.
    When I did not set weblogic.jsp.encoding to GB2312 in my web
    application(web.xml), and when the jsp file contain's chinese , the
    output
    will be error(error chinese) .And when I did not set it , the output
    is
    correct, but when I use request.getParameter("SomeFormElement")(theelement
    inputed chinese), the return value is error(still chinese error).And
    when
    I
    am in windows nt english version and do not set this property, all
    these
    two
    problems dispear. And I try to compare the java files those were
    generated
    by weblogic from the jsp file , there is only two additional clause
    in
    the
    java file. That's it:
    ((weblogic.servlet.jsp.JspWriterImpl)out).setEncoding("GB2312");
    response.setHeader("Content-Type", "text/html; charset=GB2312");
    (the web.xml has <context-param>
    <param-name>weblogic.jsp.encoding</param-name>
    <param-value>GB2312</param-value>
    </context-param> to be set
    So, I think maybe it works well if I change the default locale toenglish.
    And unfortunately, your method is also failed.(I have to use weblogic
    in
    chinese environment)
    Would you please help me to solve this problem?
    Pan
    Dimitri Rakitine <[email protected]> wrote in message
    news:[email protected]...
    Try java ... -Duser.language=en ...
    or mode con cp select=437 in the command prompt before running
    weblogic.
    Pan YangBin <[email protected]> wrote:
    I'm using weblogic server 5.1 sp6 in chinese environment, and I
    want
    weblogic compile my jsp with en_us locale . So I can't use
    Locale.setDefault(new Locale(...)) to set the default locale ,butI
    really
    want someway configure.
    Pan
    Dimitri Rakitine <[email protected]> wrote in message
    news:[email protected]...
    Locale.setDefault(new Locale(...)) ?
    Pan YangBin <[email protected]> wrote:
    Hi,
    Can I set the default locale for jvm?
    How to do it?
    PanDimitri
    Dimitri
    Dimitri

  • SET UPDATE TASK LOCAL

    hi,
    I understand that when we use CALL function in UPDATE TASK....all the modifcations/database updations that are done in that FM are commited only once , at the end of the FM . there in no explicit commit work required.
    I went through sap help and many other sdn threads for understading the funationality of SET UPDATE TASK LOCAL...however i could not understand. Can anybody let me know the exact funationality of this with an example

    Hi
    The idea to run processes in Update task is guarantee system high availability.
    For more details you can check [Update Task documentation|http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_UPDATE.htm]
    Best regards

  • To set up a local account in debug mode

    Hello,
    I am a beginner. I want to setup my local account in debug mode. My code is on the remote server. After setting up my local account in debug mode i want to use that code from a remote server . How should i do that? I am using eclipse. Running on Apache tomcat.Please advise.
    Thank you in advance.

    Huh!? "Local account in debug mode?" What does that mean? And "my code is on a remote server". What do you mean by that? Its in a Subversion repository or something?

  • Is there any BAPI calling only  ABAP command SET UPDATE TASK LOCAL

    Hi abapers
    we have a requirement to run SET UPDATE TASK LOCAL befor calling BAPI_ENTRYSHEET_CREATE command by JAVA through JCO.
    is there any BAPI that contains SET UPDATE TASK LOCAL command or simillar functionality.
    Thanks & Regards,
    Ramesh

    You could write a wrapper RFC function module which calls your BAPI and also the SET UPDATE TASK LOCAL.
    Regards,
    Rich Heilman

  • SET UPDATE TASK LOCAL Would this be an acceptable to improve performance

    Hi All
    This is the below code is already there
    FORM Main_call_bapi_create  USING    fp_wg_req TYPE ty_req.
      DATA: l_msg TYPE bapi_msg,        "Message
            l_ptype TYPE zzyproctype,   "Processing type
            l_nlines TYPE i,            "no of lines.
            l_return TYPE bapiret2.     "Return error
      FIELD-SYMBOLS <fl_return> TYPE bapiret2.   "error message
      REFRESH i_return.
      WAIT UP TO 2 SECONDS.
      CALL FUNCTION 'BAPI_PR_CREATE'
        EXPORTING
          prheader       = i_prheader
          prheaderx      = i_prheaderx
        TABLES
          return         = i_return
          pritem         = i_pritem
          pritemx        = i_pritemx
          pritemsource   = i_pritemsource
          praccount      = i_praccount
    Its causing the perofrmance issue due to wait upto 2 seconds.
    Is there any other alternate we can use?
    I heard about SET UPDATE TASK LOCAL how can we use in the above case?
    Regards
    Ravinagh Boni

    Hi,
    WAIT UP TO 2 SECONDS.
    Why do you write above statemet ?
    It also meaning less.
    SET UPDATE TASK LOCAL
    Set Update task local gives better performance in background jobs.
    But for single entry you can used it to Update task local will give better performance over call function module in update task

  • Can I set up a local network without being connected to internet?

    Can I set up a local network with Airport without being connected to internet?

    Yes. Your AirPort Express router, by default, will create an unsecured wireless network and does not need to be connected to the Internet to do so. Local clients can then connect to this wireless network and be able to "see" each other.

  • Set user preference Locale

    Dear all,
    I would like to set user preferences locale through a Java program.
    It seems that language locale is not part of the desktopsettings and I've not been able to find out what key to use with getProfileString (if any).
    Could you provide me an example of how to set the user preferences locale language? 
    Best regards,
    Francesco

    You can use "SI_LOCALE" as an argument to getProfileString() to retrieve a user's locale.

  • Setting a  Language/Locale to PortletlRenderRequest

    Hi,
    I would like to set the language/Locale of the PortletRenderRequest depending on the user input.
    e.g. if user enters "fr",then the language/locale of PortletRenderRequest should be modified so that resource bundle specific to that locale is picked and data displayed.
    Pls let me know,how can I achieve this?
    Regards
    Yash

    Thanks Tugdual,
    I have a portlet that display some text and I have some resource bundles for displaying the text in different languages. I ave followed the instructions in the following doc
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/HOW.TO.BUILD.A.MULTI.LANGUAGE.JAVA.PORTLET.USING.PDK.JAVA.V2.HTML
    Now i would like to test the same by specifying different languages.
    If I were to write a method to get the locale from the user and display the content accordingly,how would i do it??
    pls let me know where can I get the setLanguage portlet mentioned in the doc whose URL is specified above.
    Regards
    Yash

  • How can I put the contents of an array into a set of write local variable clusters?

    I have a set of controls that a user fills in. The controls are clustered by rows, then combined into a 1D array, then written to a file. When I read the file, I want to feed the array back into the clusters with write local variables. Is there a simple way to handle the numerous local variable clusters so I can stuff the array back into them?
    Is there a better way to handle the whole issue of storing and recovering the information?
    The rows are steps in a procedure, and each row (cluster) contains numerical as well as string controls.

    There are many ways of doing this
    You may convert all your data to strings and save as an ascii file (you have to pay attention to the file format, so you can read it properly.
    Or you can use the configuration vi's, it may work in your case.
    or you may use an invoke node to get all controls of the vi's, save it, then read it, without worrying about any format. I have attached a vi that uses this method.
    Attachments:
    Temp.vi ‏52 KB

  • Setting up a local ftp server for wireless photo transfers

    I am a semi-professional photographer who recently purchased a wireless unit that connects to my camera to transfer my images to my Mac. I have turned on the ftp services under Sharing on my Powermac G5 and set up a user account for the camera to log into. All of the transfers will be on the local side of my router, no outside (Internet) connections.
    I can get an IP address for the camera, so I know the connection to the router is ok, however I can not log into the user account on the G5 when ftp is initiated. I keep getting a 'Not Connected to Server' error message.
    The connection software on the camera is rather basic. It is ftp only. Do I need to do anything else on my G5 or router to help this along? In the camera, I can specify the IP address of the local ftp server, the account username, and password. Do I need to use passive mode?
    Should I use another ftp server program other than the one built into Tiger? The camera company recommends a product called Rumpus, but it is very expensive for my use. Any other suggestions for server software?
    Also, is there a way in Tiger to see who is currently logged into user accounts?
    Lots of questions, but I am determined to get this to work for me.
    Thanks.
    Jeff W.

    Also, is there a way in Tiger to see who is currently logged into user accounts?
    In Terminal just type 'last'. More ways to tell...
    http://www.osxfaq.com/tips/unix-tricks/week95/friday.ws
    I wonder if ftp might not mean some other file transer protocol like SMB... don't know for sure, but most use FAT16/32, which would need SMB I think.
    Try from the Finder... CMD+k, then type in smb://, then the IP of the Camera... or maybe ftp:// plus the IP.
    Most ftp programs are more funtional than the built in one... Cyberduck is popular, though I use TransmitX

Maybe you are looking for