Can we configure Oracle 10g xe so that it accept date in yyyy-mm--dd format

I am facing problem in inserting and updating data in oracle server through jdbc. its java.sql.Date class sends date in yyyy-mm-dd format while oracle requires date in dd-mmm-yy format. can we configure oracle server in such a way that we may send date in yyyy-mm-dd format to insert and update?

People should be sure of their information before
posting, even more so if they have an Oracle Ace
credential,as they're more likely to be believed. Not sure what you are saying.
The way I read it, Avi stated that overriding the NLS_DATE_FORMAT as an initialization parameter WILL NOT affect the way XE works, and you still need to set the parameter at the session level.
This is true.
As demonstrated here, where I
- startup my XE (SuSE 10.1 Pro/Linux),
- show the NLS setting,
- log on to a regular user, -
- show the system date,
- change the NLS_DATE_FORMAT system wide by updating my PFILE,
- restart the database
- show the NLS_DATE_FORMAT
- extract the system date.
As you see from the console session, the date still comes out in the format defined by the NLS_TERRITORY, in spite of what the global NLS_DATE_FORMAT indicates.
fcc@fuzzy:~> su - oracle
Password:
oracle@fuzzy:~> sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 6 08:06:05 2007
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area  448790528 bytes
Fixed Size                  1259400 bytes
Variable Size             134219896 bytes
Database Buffers          310378496 bytes
Redo Buffers                2932736 bytes
Database mounted.
show parameter nls_date
Database opened.
SQL>
NAME                                 TYPE        VALUE
nls_date_format                      string
nls_date_language                    string
SQL> connect test/test
Connected.
SQL> select sysdate from dual;
SYSDATE
06-JUL-07
SQL> alter session set nls_date_format='YYYY Mon DD';
Session altered.
SQL> select sysdate from dual;
SYSDATE
2007 Jul 06
SQL> connect / as sysdba
Connected.
SQL> select sysdate from dual;
SYSDATE
06-JUL-07
SQL> create pfile='/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/xe.pfile' from spfile;
File created.
SQL> !vi /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/xe.pfile
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup pfile=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/xe.pfile
ORACLE instance started.
Total System Global Area  448790528 bytes
Fixed Size                  1259400 bytes
Variable Size             134219896 bytes
Database Buffers          310378496 bytes
Redo Buffers                2932736 bytes
Database mounted.
Database opened.
SQL> connect test/test
Connected.
SQL> connect / as sysdba
Connected.
SQL> show parameter nls_date
NAME                                 TYPE        VALUE
nls_date_format                      string      YYYY Mon DD
nls_date_language                    string
SQL> connect test/test
Connected.
SQL> select sysdate from dual;
SYSDATE
06-JUL-07
SQL>                                                            

Similar Messages

  • Can not configure Oracle 10g form  on oracle 11g client

    Hi
    I need to install oracle 10g form in my system .
    Here is my system
    1. OS --XP
    2. 32 Bit
    4. Already oracle 11g release client installed ( I think that create the problem )
    I tried to install oracle 10g form , it installed but can cont configure net manager for it , Always it point to 11g client and hence I could not configure .
    Also I tried install Oracle Forms first then 11g client , But  I got same issue .
    I think if  I created multiplr home one for 11g client and other for forms , it may work out .
    Please  help me
    Debashis

    While deploying the example 'VacationRequest' in the oracle complete guide for 11g, i got an exception like this
    "12:08:15 PM] Deploying Application...
    [12:11:16 PM] [Deployer:149191]Operation 'deploy' on application 'VacationRequestTaskFlow' is initializing on 'soa_server1'
    [12:11:24 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application VacationRequestTaskFlow on soa_server1.: [Deployer:149145]Unable to contact 'bam_server1'. Deployment is deferred until 'bam_server1' becomes available.; nested exception is:
         java.rmi.UnknownHostException: Could not discover administration URL for server 'bam_server1'.
    [12:11:24 PM] [Deployer:149193]Operation 'deploy' on application 'VacationRequestTaskFlow' has failed on 'soa_server1'
    [12:11:24 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application VacationRequestTaskFlow on soa_server1.: Failed to load webapp: 'VacationRequestTaskFlow.war'.
    [12:11:24 PM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'VacationRequestTaskFlow.war'
    [12:11:24 PM] Caused by: java.lang.ClassNotFoundException: oracle.adf.library.webapp.ResourceServlet
    [12:11:24 PM] See server logs or server console for more details.
    [12:11:24 PM] weblogic.application.ModuleException: Failed to load webapp: 'VacationRequestTaskFlow.war'
    [12:11:24 PM] #### Deployment incomplete. ####
    [12:11:24 PM] Deployment Failed"
    Can anyone help in this.

  • Configure Oracle 10g in Netbeans 6.9

    Hello,
    How can we configure Oracle 10g Version of Oracle Database with Netbeans 6.9 IDE , So that we can directly connect database with the IDE

    First you will need the Oracle driver found in the file ojdbc16.jar.
    In NetBeans go to the Services tab and select the Databases->Drivers node in the tree. Right-click and select New Driver. Find the jar file above and it should recognize the driver class for you (if not it is oracle.jdbc.OracleDriver).
    Then right-click on the Databases tree node and select New Connection. Select the Oracle driver in Driver Name and fill in the connection parameters.

  • How to configure Oracle 10g to use 4GB memory

    I'm trying to configure Oracle 10g to use >4GB memory. Have configured server boot.ini with required flags (/3GB /PAE). Rebooted server then created standard database, then connected to db instance and changed oracle parameters DB_BLOCK_BUFFERS, USE_INDIRECT_DATA_BUFFERS as required. Restarted DB instance, DB fails to restarted with SGA memory error. According to oracle user docs the SGA is nolonger in effect due to previous settings. Can you provide example of SPFILE with parameters settings that do work and use >4GB memory. Current server has 8GB, 2 x Dual XEON core/processors (i.e. 8 processors)

    The recommended /3GB switches in the boot.ini file can only be used with the following operating systems editions (KB article 291988):
    Microsoft Windows 2000 Advanced Server
    Microsoft Windows 2000 Data Center Server
    Microsoft Windows Server 2003, Enterprise Edition
    Microsoft Windows Server 2003, Data Center Edition
    Microsoft Windows Small Business Server 2003
    Important: Windows 2000 and 2003 Server Standard Editions DO NOT SUPPORT /3GB Switch.
    So if your OS is listed above, then you cannot have a larger SGA.

  • How to configure Oracle 10g Advanced Security to use SSL concurrently with

    How to configure Oracle 10g Advanced Security to use SSL concurrently with database User names and passwords
    In Oracle Advanced Security Documentation it is mentioned that i can use SSL concurrently with DB user names and passwords. But when i configure the client certificate on the client my DB connection is getting authenticated using the certificate, which out passing user id or password.
    We want to connect to Oracle DB over SSL channel so that the data packets are not in clear text. Also we want the user to make a connection using user id and password.
    Basically we want SSL with out authentication.
    Need your expert advice

    Read the documentation (I have given following links assuming you are running a 32 bit architecture)
    Server installations:
    http://www.oracle.com/pls/db102/to_toc?pathname=install.102%2Fb14316%2Ftoc.htm&remark=portal+%28Books%29
    Client installations:
    http://www.oracle.com/pls/db102/to_toc?pathname=install.102%2Fb14312%2Ftoc.htm&remark=portal+%28Books%29
    You can find the required books (if not using 32 bit architecture) from
    http://www.oracle.com/pls/db102/portal.portal_db?selected=3

  • Maximim Number of process and session can set in oracle 10g

    my os is 32 bit windows and ram size is 10gb and i am using AWE_WINDOW_MEMORY setting and now my sga is 6 gb.what would be Maximim Number of process and session can set in oracle 10g database

    mithun wrote:
    my os is 32 bit windows and ram size is 10gb and i am using AWE_WINDOW_MEMORY setting and now my sga is 6 gb.what would be Maximim Number of process and session can set in oracle 10g databaseThe maximum number of sessions is controlled by your database's SESSIONS parameter. This value is most derived from the PROCESSES parameter. You cannot exceed this number of sessions unless you raise the parameter value.
    If your database is configured to handle enough sessions, then Oracle can literally handle thousands of simultaneous connections, provided your database server also has enough resources to handle this number of connections. You will want to implement Oracle's Shared Server connections so that multiple connections share a pool of processes on the database server. This minimizes the resource consumption used by the connections.
    Read the following document as well.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/manproc.htm
    Thanks

  • Configure Oracle 10g Forms 9i for XML

    How do I configure Oracle 10g Forms 9i to compile XML code? Is there a particular configuration file I need to update with .jar files that references XML processing or parsing?
    Thanks!

    There is a java utility that can take an XML file that you have generated from an fmb file previously and compile it back to an fmb file.
    Its called frmxml2f.bat. You'll find it in $Oracle_home/bin

  • How to configure Oracle 10g RAC on windown sever 2003

    hi all
    plz tell me
    how to configure Oracle 10g RAC on windown sever 2003 can any body help me , give be any link
    plz it is very necessary for me
    Regards

    Hello,
    There are a good doc written by Philip Newlan at www.jobcestbon.com/oracle/RacOnWindows.pdf
    Regards,
    Rodrigo Mufalani
    http://mufalani.blogspot.com

  • How can i install oracle 10g on linux cluster

    Dear all:
    please advice How can i install oracle 10g on linux cluster service ..
    thanks ,,

    Without RAC, you can only have one instance manage the database. One instance = one set of processes communicating via IPC.
    Unless you know of a way to have processes use memory-based IPC across nodes, you need to pick a node and install & run the database software on that node.

  • Can you install Oracle 10g on REDHAT LINUX ENTERPRISE WS?

    According to oracle documentation, it says you can install oracle10g on Redhat enterprise version 3 or 4, but it doesn't specify whether its Red Hat Enterprise Linux AS or WS. Can you install oracle 10g on Rehat Linux Enterprise WS?

    Oracle Certificaction Matrices says only RedHat AS/ES is supported for database. AFAIK WS means workstation.
    Also this link is very clear: http://kbase.redhat.com/faq/FAQ_61_1135.shtm
    Besides the above sentences... If the WS installation is providing all required packages (listed in installtion prerequisites) I belive that Oracle DB could be installed on WS but as I (and the above link) said it is not officialy supported.

  • Query can run in Oracle 10g but very slow in 11g

    Hi,
    We've just migrated to Oracle 11g and we noticed that some of our view are very slow (it takes seconds in 10g and takes 30 minutes in 11g), and the tables are using the local table.
    Do any of you face the same issue?
    This is our query:
    SELECT
    A.wellbore
    ,a.depth center
    ,d.MD maxbc
    ,d.XDELT xbc
    ,d.YDELT ybc
    ,e.MD minac
    ,e.XDELT xac
    ,e.YDELT yac
    from
    table_A d,table_A e, table_B a
    where a.wellbore = d.WELLBORE (+)
    and a.wellbore = e.WELLBORE(+)
    and d.MD = (select max(MD) from table_A b where b.MD < a.depth and
    d.wellBORE = b.wellBORE)
    and e.md = (select min(md) from table_A c where c.MD > a.depth and
    e.wellBORE = c.wellBORE);

    Thanks I will move to the correct one..
    Rafi,
    Build the Indexes and it is still slow. I am querying from a view from another database, which is in 10g instances.
    Moved: Query can run in Oracle 10g but very slow in 11g
    Edited by: 924400 on Apr 1, 2012 6:03 PM
    Edited by: 924400 on Apr 1, 2012 6:26 PM

  • I can't install Oracle 10g Client in x86-64(Intel EM64T)

    Dear All,
    Recently, I tried to install the Oracle 10g client in Redhat Enterprise Linux 4.0 with x86-64 (Intel EM64T) platform. As I know,that is either Oracle 9i or Oracle 10g has been certified to Redhat AS 3.0 operating system.
    How can I install Oracle 10g normally under all x86-64 platforms? Or, When does Oracle to release out the patch for all x86-64 versions?

    Please reffer to Installation section.
    Database Installation

  • Can I attend Oracle 10g DBA course & attempt DBA Certification for 11g

    Hi,
    I am already OCP-PLSQL and want to attempt OCP-DBA stream. I enquired at various oracle education centers and came to know that all are conducting courses for Oracle-10g.
    So can I attend Oracle 10g DBA course (Mandatory Course) and attempt DBA Certification for 11g. (1ZO-052 and 1ZO-053)
    Thanks,
    Vikrant Patil

    ukupatil wrote:
    Hi,
    I am already OCP-PLSQL and want to attempt OCP-DBA stream. I enquired at various oracle education centers and came to know that all are conducting courses for Oracle-10g.
    So can I attend Oracle 10g DBA course (Mandatory Course) and attempt DBA Certification for 11g. (1ZO-052 and 1ZO-053)
    Thanks,
    Vikrant PatilYou can do these thing, and Oracle will take your money for it, but you will receive neither 11g DBA OCP certication nor 10g DBA OCP Certification at the end of it. So it isnt what you would ant to do.
    Oracle Unviersity would provide the 11g DBA training courses ... No problem.
    however I suspect what you term oracle education centers are probaby institutes offering WDP Courses at 10g DBA (on the cheap). See http://workforce.oracle.com
    If you do 10g training then that will only be valid for 10g DBA OCP Certification .. so you would need to take 1z0-042 and 1z0-043 (I guess you already have an SQL Exam pass). Then 1z0-050 can upgrade it to 11g DBA OCP.
    (Note that it does not affect you, but the converse is typically true .... version X+1 training will often be acceptable for a version X certification.)

  • Can't uninstall Oracle 10g client

    Wow. I'm not sure this experience could have been any more frustrating. Now I can't uninstall oracle 10g client...
    Some of the components you selected cannot be deinstalled because they are installed using Installer version 10.2.0.1.0. Please use Installer version 10.2.0.1.0 or higher
    WHAT? Where do I find this new installer? I just want to revert back to 9i client so that hopefully my oledb connections to my oracle database will work again.
    UPDATE: Okay. I managed to uninstall Oracle 10g client. It didn't solve my problem :(
    I still get this error...
    ORA-12705: Cannot access NLS data files or invalid environment specified
    I just want to pretend like this whole upgrade episode never happened. What a nightmare.

    I just had to click on the same setup.exe icon i used to install it. i didn't realize there was an uninstall option in the setup application.
    As far as the error is concerned. When I installed 10g it set one of the registry values for 9i to "NA". Once I changed that registry value back to what it was it worked again. I guess Oracle changes the registry value of old installations in order to ensure they are not active anymore. Since I wanted a side-by-side installation of 10g and 9i I didn't want 9i deactivated. Everything is working fine now.
    Message was edited by:
    ferrethouse

  • TS4002 Can´t configure secondary e-mail. That is I have the icloud account and earlier bought an account för my wife. Now she can´t get it to work. Where the h--l do I configure this?

    Can´t configure secondary e-mail. That is I have the icloud account and earlier bought an account för my wife. Now she can´t get it to work. Where the h--l do I configure this?

    Welcome to the Apple community.
    If you are referring to adding a secondary account, to a single device, then you can do this at system preferences >mail, contacts & calendars.

Maybe you are looking for

  • "Buffer Utilization" in DataSocket Connections ?

    I am setting up a test situation using DataSockets. It will eventually be used between a host, and an RT board, but for right now, it's all in one VI. I use DS Open, DS Write, DS Read, and DS Close. I want the connection to buffer my data, as the two

  • HTTP request logger/simulator for flex app

    I have a server that provides input xml data to a flex app in a browser be displayed on the screen for editing over http. Can someone suggest a way to cache and simulate this server's response? I need the flex app in the browser to work even when the

  • SAP Web AS Connection Problem

    Hi Gurus, I am now facing one problem about creating a system in EP. My system is Netweaver 04s with AS,EP and BI with SP13. All run in one single server. I maintained the SAP Web AS, and tested the connection, got the following message: Test Details

  • Update CI_INFOBJECTS table

    Post Author: steerforth CA Forum: JAVA Hello, Iu2019m currently trying to find a way to update the passwords in the CI_INFOBJECTS table on the BOXI database.    In the code below I can get the reset the password for the InfoObject I retrieve from the

  • ORA-7445 when trying to call a function over JDBC

    Hi, We are trying to call a PL/SQL stored function which is in a package. When we call the procedure with SQLPlus or something different, it works fine, no error occurs. But when we try to call it over jdbc, we gat the following error plus an ORA-074