Date format in Oracle 10g XE

I'm using Oracle 10g XE on Windows Vista and I'm curious as to what determines the date format.
According to the globalization section in the Oracle installation guide the NLS_DATE format is dependent on the NLS_LANGUAGE setting. In my database the NLS_LANGUAGE is American, the NLS_TERITORY is America and all other NLS_* parameters are blank (default).
From that I would expect the default date format to be mon-dd-yyyy.
However when I run SELECT sysdate FROM dual the date is reported as dd/mm/yyyy and this was the default format when I used SQL Developer and when I used the command line SQL*Plus. Obviously something else is determining the date format, but what?

Your settings are dependent on NLS_LANG on the client.
They are derived from (assuming Windows) the regional settings of the O/S.
This means in Western Europe the default 'American_America.WE8MSWIN1252'.
This makes the default NLS_DATE_FORMAT dd-mm-yy.
You can override this in the registry, or set up an after logon trigger.
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • How we create new data base in oracle 10g express edition

    hello every body.. i student of B tech n new user of oracle so please help me how we creat new data base in oracle 10g express edition

    Hello, Oracle XE can not create more than one instance, the other editions yes, but like other editions XE allows you to create database schemas, schemas logically grouped objects like tables, views, indexes created by a user. By creating an Oracle user is associated with a schema of the same name.
    Using SYS or system accounts for creating user accounts.
    Syntax to create a user:
    create user Your_user
    IDENTIFIED BY password
    default tablespace users;
    grant connect, resources to your_user;
    Edited by: rober584812 on Jun 25, 2010 9:03 PM

  • J2ee Web application exploded format in oracle 10g

    Hi,
    I am trying to develop a simple j2ee application in Exploded Format
    in oracle 10g AS. i have created a new OC4J instance called
    TestOC4j for this. A .war file works fine in this instance.
    I have placed the application under applications directory of TestOC4j.
    I have made entries in server.xml, oc4j_mod.conf,
    default-web-site.xml,http-web-site.xml and application.xml in META-INF
    of the application.
    The application get deployed with no errors.gets created in
    application-deployments too.
    But the url http://server-ipaddress:7778/test_app is not working.
    Please help.
    The folder struture is as follows:
    test_app
    --META-INF
    -----application.xml
    --test_web
    -----pages
    -------welcome.jsp
    -----WEB-INF
    -------web.xml
    -------lib
    -------src
    The entries in server.xml is as follows:
    <application name="test_app" path="../applications/test_app" auto-start="true" />
    <web-site path="./http-web-site.xml" />
    The entries in application.xml is as follows :
    <module>
    <web>
    <web-uri>test_web</web-uri>
    <context-root>/test_app</context-root>
    </web>
    </module>
    The entries in default-web-site.xml is as follows:
    <web-app application="test_app" name="test_web" load-on-startup="true" root="/test_app" />
    The entries in http-web-site.xml is as follows:
    <web-app application="test_app" name="test_web" load-on-startup="true" root="/test_app" />
    The entries in oc4j_mod.conf is as follows:
    Oc4jMount /test_app TestOC4j
    Oc4jMount /test_app/* TestOC4j
    Regards,
    Roopa

    Roopa, it looks like there is no problem with the deployment of your application in exploded format. Have you accessed http://server-ipaddress:7778/test_app/pages/welcome.jsp? Any problem access http://server-ipaddress:7778/j2ee/, the default home page of the default-web-app ?
    When you say the url http://server-ipaddress:7778/test_app is not working, what is the error message if any on the browser, on server console, in the server.log and http-web-access.log of ORACLE_HOME/j2ee/home/log/, ORACLE_HOME/j2ee/home/application-deployments/test_app/application.log?

  • I want convert string to date format in Oracle

    Dear All
    I want convert string to date format in Oracle,Format is given below
    'Friday, 02 March 2012 2:44 PM' to '02/03/2012 2:44 PM'

    >
    Hi Parwez,
    I want convert string to date format in Oracle,Format is given below
    'Friday, 02 March 2012 2:44 PM' to '02/03/2012 2:44 PM'SELECT TO_DATE('Friday, 02 March 2012 2:44 P.M.', 'DAY, DD MONTH YYYY HH:MI A.M.') from dual;
    As well as what the other poster suggested, look here: http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements004.htm#i34924
    HTH,
    Paul...

  • Configuring date format in Oracle 8.1.7

    I have just unloaded records from tables into an sql script file with insert statements. However, the date format for the records that I have unloaded is MM/DD/YYYY. When I try to run this sql script, oracle gives an error, saying it's not a valid month.
    Oracle date format is DD-MMM-YY. How can I change the date format in oracle, so that I could insert these records in?

    If your script does not have explicit TO_DATE conversions (which it should, by the way), like:
    insert into t values (to_date('11/21/2002', 'mm/dd/yyyy'));then you can set the default date format to match the format in your script. So, if your script looks like:
    insert into t values ('11/21/2002');then:
    alter session set nls_date_format = 'mm/dd/yyyy';prior to running the script.

  • Problem with date format from Oracle DB

    Hi,
    I am facing a problem with date fields from Oracle DB sources. The date format of the field in DB table is 'Date base type is DATE and DDIC type is DATS'.
    I mapped the date fields to Date characters in BI. Now the data that comes to PSA is in weird format. It shows like -0.PR.09-A
    I have changing the field settings in DataSource  to internal and external and also i have tried mapping these date fields to text fields with out luck. All delivers the same format.
    I have also tried using conversion routines like, CONVERSION_EXIT_IDATE_INPUT to change format. It also delivers me the same old result.
    If anybody of you have any suggestions or if anybody have you experienced such probelms, Please share your experience with me.
    Thanks in advance.
    Regards
    Varada

    Thanks for all your reply. I can only the solutions creating view in database. I want some solution to be done in BI. I appreciate if some of you have idea in it.
    The issue again in detail
    I am facing an issue with date fields from oracle data. The data that is sent from Oracle is in the format is -0.AR.04-M. I am able to convert this date in BI with conversion routine in BI into format 04-MAR-0.
    The problem is,  I am getting data of length 10 (Output format) in the format -0.AR.04-M where the month is not in numericals. Since it is in text it is taking one character spacing more.
    I have tried in different ways to convert and increased the length in BI, the result is same. I am wondering if we can change the date format in database.
    I am in puzzle with the this date format. I have checked other Oracle DB connections data for date fields in BI, they get data in the format 20.081.031 which will allow to convert this in BI. Only from the system i am trying creating a problem.
    Regards
    Varada

  • Date Format in Oracle 11g XE

    Hello everyone,
    I have installed Oracle11XE and noticed that it has the following date format:
          SQL> SHOW PARAMETER NLS_DATE_FORMAT
          NAME                                 TYPE        VALUE
          nls_date_format                      string      RR-MM-DD
    I know that I can change the format for the session, like this:
         alter session set nls_date_format = 'DD-MON-YY';
    I also know that to change the system parameter I need to do the following:
         alter system set nls_date_format = 'DD-MON-YY' scope=spfile; 
         then restart the database.
    However, after I do the latter, the date format is still:
         SQL> select sysdate from dual;
         SYSDATE
         14-11-19
    Could someone tell me why this is happening and correct this?..
    Thanks.

    goodluck247 wrote:
    Hello everyone,
    I have installed Oracle11XE and noticed that it has the following date format:
          SQL> SHOW PARAMETER NLS_DATE_FORMAT
          NAME                                 TYPE        VALUE
          nls_date_format                      string      RR-MM-DD
    I know that I can change the format for the session, like this:
         alter session set nls_date_format = 'DD-MON-YY';
    I also know that to change the system parameter I need to do the following:
         alter system set nls_date_format = 'DD-MON-YY' scope=spfile;
         then restart the database.
    However, after I do the latter, the date format is still:
         SQL> select sysdate from dual;
         SYSDATE
         14-11-19
    Could someone tell me why this is happening and correct this?..
    Thanks.
    NLS_DATE_FORMAT is set at
    system
    client OS
    client oracle session.
    system setting is weakest because it is over-ridden by any other setting.
    See - But I want to store my date as ...

  • Problems inserting date values in Oracle 10g

    Hi All,
    I'm having SERIOUS problems trying to insert a simple date value in my oracle.
    I did this one million times before in xMII 11.5, but now it appears that doesn't work anymore!
    Here are some info:
    Data Server Config:
    Date Prefix: TO_DATE('
    Date_Sufix: ', 'MM/DD/YYYY HH24:MI:SS')
    Internal Date Format: yyyy-MM-dd HH:mm:ss
    In my Query Template:
    Date and Time Format: MM/dd/yyyy HH:mm:ss
    In my Transaction
    Parameter: datefromxmlformat(datenow, "MM/dd/yyyy HH:mm:ss")
    I also tried change the parameter to datenow, no success.
    I tried to change the Query Template format, no success.
    Finally, I tried to change my Date prefix & sufix, no success too.
    I really don't know what else I can do. I would appreciate some help.
    PS: I'm using xMII 12.0.1 with ojdbc14.jar
    Thanks in advance.
    Pedro Sena

    Pedro,
    The Data Server config for InternalDateFormat should be:  MM/dd/yyyy HH:mm:ss
    This is because it is used in conjunction with the DatePrefix and DateSuffix whenever you use the DateColumn or  the [SD] and [ED] tokens in a query template.
    If you are inserting a date field with an arbitrary parameter (not a date token like above) then you need to use the TO_DATE wrapper pieces around your date field string.
    The DateFormat in the query template controls the format of the StartDate and EndDate buttons in the applet toolbar if using an iChart/iSPCChart/iGrid and a time sensitive query, but when you build the string for an insert parameter you must manage the whole format yourself.
    If you really just want datenow and the xMII server time is sufficient for your insert query then you can leverage the Data Server config settings like: INSERT INTO TABLE VALUES([ED)
    This way the default query template time settings will use 'now' for the end date of the query and when the string is sent to Oracle it will actually look like:
    INSERT INTO TABLE VALUES(TO_DATE('10/19/2007 08:41:00', 'MM/DD/YYYY HH24:MI:SS'))
    Regards,
    Jeremy

  • Looking for a Web Interface for Editing Data in an Oracle 10g Database

    Greetings all!
    My organization is implementing Oracle 10g Release 2 Enterprise version. We have an employee who will need to edit data in the database which will hold staff phone numbers, email addresses, and other contact information. This employee will never need to administer the database or develop tables, queries, etc. They will only need to add and remove rows of data and edit text values stored in a database table.
    Does Oracle 10g have a built-in, browser-based tool that can be used to edit data in a table via a friendly user interface? If no, can you please recommend an easy to use tool for editing data in an Oracle database?
    Thanks for any help you can provide!
    Rachel

    Justin,
    Thanks very much for the tip!
    Do you know if Oracle 10g has any kind of built-in tool for editing data? I have heard of "The Vault", but that appears to be a tool for administering database users, reports, etc. I am looking for some kind of tool that shows the data in a grid layout (like Microsoft Excel) and allows someone to edit and save data in that grid. A web-based tool would be best, but a desktop tool (especially if it's already part of Oracle 10g) would also be good.
    Thanks again,
    Rachel

  • Migrate existing data base to oracle 10g and cluster it

    hi
    we are currently using sql server 2000 and due to some servere dead locks in the application and due to some load issues we wanted to migrate it to oracle 10g.
    At the same time we wanted to have clustered environment in the same server
    That is windows server.
    Can any one suggest how migration can be done..easily ie..by oracle migration work bench or what...
    At the same time can any one suggest how to cluster data base in windows server
    Thanks
    vkumar

    This is re-engineering from one database platform to another.
    You will have to take into consideration several aspects of your application, from SQL comptability to the application performance (SQL) in the Oracle environment.
    There is no magic to this puzzle, the amount of task involved in moving from one database to another depends on complixity of the application and how many database operations will have to be changed. I would suggest /recommend that you should start with a POC on a specific module /area (probably the most complex) of your application and this should give you some idea in the efforts of doing so.

  • Oracle Data Provider for Oracle 10g

    We have an application certified on the ODP 9.2.0.2102, Oracle Client and Oracle ODBC 9.2.0.6. We have a client who is moving to Oracle 10g client within the next few months but will still be hitting an Oracle 9.2 backend.
    My question is: Is the 9.2.0.2102 ODP compatible with the 10g client, or do we need to certify against a newer version of the ODP? And if the latter, what version of ODP is recommended?
    We plan to certify against the latest of both this year, but for now, we need the path of least resistence.
    Thanks for your help.
    Todd

    It is not "hard" to create your own geocoding schema though you will need to know how to create tables (with Oracle Spatial columns) in Oracle and before you do create the tables you should read through the documentation to be certain you have all of the required data and metadata.
    Navteq, a data provider, also has sample geocoding data (http://www.oracle.com/technology/products/spatial/htdocs/spatial_partners_data.html) as well as data for sale. Downloading and importing the Navteq data might give you a good idea about what you will need to do if you were to build your own geocoding schema using your data.
    I hope this helps.
    -Justin

  • Flexible Audit_Trail output Format in Oracle 10g

    Dear Friends ,
    I have to configure audit_trail in oracle 10g , using
    "audit_trail = xml"
    or "audit_trail = xml,extended"
    or "audit_trail = os"
    Here I want to keep my user log in OS format not into DB format . But In the OS format I use the above options ("xml" , "xml,extended" , "OS" ) which are not actually not so easy format or a lengthy output format . I want a format where it is shown only "username", "HostIP","Timestamp", "Sql_text" .
    Can I make it manually ? Or is there any other option to make it easy ?
    plz inform ... ...
    Waiting for ur kind reply .. ..

    You could set audit_trail=DB and then write your own SQLs to extract information
    from the dba_audit_% views to flat files.

  • Gis data uploading in oracle 10g database

    hello everybody ,
    i am new to oracle 10g ,but i am working in gis field for sometime now.i wanted to know whether there is any method present to upload a gis (shape file)data,and the erdas imagine data, in oracle spatial without going to buy the hefty ,arc sde license.
    thanks in adavance,
    vipul soni

    They are permitted.
    Pproperly designed 'cartridges' use the published Oracle spec. If they live within the restrictions of XE (size, CPU, and no Java stored procedures) they should work.
    Oracle Locator is an example of a properly designed cartridge. So is intermedia.
    Locator does not have any Java SPs and works in XE.
    intermedia does use Java SPs and does not work in XE.

  • How to maintain Data availability in Oracle 10g RAC when LOADING the data?

    Hi
    we are having Oracle 10g server on Sun Solaris(64 bit) with 8 GB RAM.
    We are in need of moving the database to "Oracle 10g RAC". (Real Application Clusters)
    Our doubt is when loading the data into RAC server, will it affect the application?
    coz' we heared that RAC server should be down when we load the data.
    Is this correct?
    If yes, then How to maintain High data availability when we load the data in RAC server?? Please help me.
    Thanks.

    First, is this the same question that a colleague of yours posted in this thread?
    Data Load in RAC
    Second, are other sessions querying the table that you're loading data into? If so, how are you loading the data?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Four GB of user data Limitation in Oracle 10g XE

    Hi Mates!
    There is one limitation in oracle XE which is:
    It stores up to four GB of user data.
    I am planning to migrate my database from Oracle 9i to Oracle 10g XE. My queries are below:
    1. Is it possible to migrate from Oracle 9i to Oracle 10g XE?
    2. I am confused regarding Four GB of user data Limitation. I don't understand nothing much about this. Presently If I prepare a dump (export) file in oracle 9i the size becomes around 250MB. If I switch to oracle 10g XE, how long will I be able to use my database?
    Rgds,
    Luther

    Hi Mates!
    There is one limitation in oracle XE which is:
    It stores up to four GB of user data.
    I am planning to migrate my database from Oracle 9i
    to Oracle 10g XE. My queries are below:
    1. Is it possible to migrate from Oracle 9i to Oracle
    10g XE?this is a simple test case, you can install XE, export from 9i and import to XE. I did it before, it worked for me, but this does not mean it will for you, testing is only way to be sure.
    There are lots of limitation of XE mentioned in the Licensing Information Guide.
    http://www.oracle.com/pls/xe102/homepage?remark=tahiti
    2. I am confused regarding Four GB of user data
    Limitation. I don't understand nothing much about
    this. Presently If I prepare a dump (export) file in
    oracle 9i the size becomes around 250MB. If I switch
    to oracle 10g XE, how long will I be able to use my
    database?My XE is ~3,3 GB total, datafile + tempfile size, apex applications are working without problem. But consider all syatem + user data as a total, so 250 MB user data won't be a problem, most probably.
    Rgds,
    Luther

Maybe you are looking for