Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

YOGA BHAVESH AND SHELTON PRESENTATION LERNINGS

You can change the default data format within Oracle by adjusting
the nls_date_format initialization parameter.

Changing the default date format can be done at the session or system level.
ALTER SESSION SET NLS_DATE_FORMAT='DD/MM/YYYY';

ALTER SYSTEM SET NLS_DATE_FORMAT='DD/MM/YYYY' scope=both;

You can change the default date format at startup time with a login trigger to
change the nls_date_format:

CREATE OR REPLACE TRIGGER CHANGE_DATE_FORMAT


AFTER LOGON ON DATABASE
call
DBMS_SESSION.SET_NLS('NLS_DATE_FORMAT','YYYYMMDD');

Sequence

If maxvalue is violated it reports exception

create sequence s1

minvalue 1

maxvalue 3

start with 1

increment by 1

cache 2/no cache;

cycle/no cycle -to do cycle operation

You might also like