Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 116915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:15:13+00:00 2026-05-11T03:15:13+00:00

I have defined the global nls_date_format on Oracle 10.2 XE as follows: alter system

  • 0

I have defined the global nls_date_format on Oracle 10.2 XE as follows:

alter system set nls_date_format='YYYY-MM-DD HH24:MI:SS' scope=spfile; 

When connecting on Windows, the clients override it with session specific format, so I need to run this line at the beginning of every session:

alter session set nls_date_format='YYYY-MM-DD HH24:MI:SS'; 

However, I have some custom code that I can’t change (jdbc code, using ojdbc14.jar), so I can’t execute this line when receiving the connection. Is there a way to change the default value of nls_date_format for all jdbc connections? Perhaps adding something to the connection string, or some environment variable that I can use?

By the way, sqlplus and sqldeveloper also override the server’s format with their own, but I found out how to change their defaults, so the problem is only with jdbc connections.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:15:13+00:00Added an answer on May 11, 2026 at 3:15 am

    Set nls date format in an after logon trigger

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have defined a global object in a .js file. For example file1.js contains
I have a WPF application with several windows. I would like to define GLOBAL
Suppose I have a variables in the global scope. Suppose I wish to define
I have the following Route defined in Global.asax: routes.MapRoute( IncidentActionWithId, // Route name Incidents/{companyId}/{action}/{id},
Let's say we have an array defined as a global variable. int array[] =
$mainframe->redirect(‘XXXXXXXXXXXX’); not working in joomla although I have defined global $mainframe;
In my mvc4 project, I have the following routing defined in Global.asax: routes.MapHttpRoute( name:
My setup: Rails 3.0.9, Ruby 1.9.2 I have a global constant defined TYPES =
Imagine I have a property defined in global.asax. public List<string> Roles { get {
I have defined a series of Routes in Global.asax.cs: public static void RegisterRoutes(RouteCollection routes)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.