Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bob swift (SQL for Confluence): How to set new nls_date_language as default?

LEM
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 13, 2016

In the initialSQL<n> we must set the NLS_DATE_LANGUAGE, so that the ISO-week is not "American", but "German" (we need to start the week on Monday, not Sunday).

So prior to every SQL, we have to set the following to change it:

alter session set NLS_DATE_LANGUAGE = 'GERMAN'

Is there a way to set that as default?

 

2 answers

0 votes
Bob Swift
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 16, 2016

Yes, you can add things like this to a customized profile - see Data Source Profiles. Here is a related reference that shows you the techniques you can use - How to implement role based security for SQL queries.

0 votes
Reece Bailey September 13, 2016

Bob swift has its own Q & A at: https://bobswift.atlassian.net/wiki/cq/askquestion.action

I've found them to be very responsive in the past.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events