Date: 13-MAR-2006
This How-To details how to apply policies and set date formats to your connection when using Oracle SQL Developer.
PoliciesYour policies are now set for that connection. The same session is used for all actions for a specified connection (navigating Connections, running reports and using the SQL Worksheet). Using the Connection navigation to view Tables and the data within those tables plus issuing SQL and PL/SQL commands in a SQL Worksheet will use your policies. If you disconnect or exit the tool and startup again you will need to perform these actions again.
Date Formatsalter session set nls_date_format = 'MM/DD/YYYY';
or
alter session set nls_date_format = 'MM/DD/YYYY HH24:MI:SS';
Your date format is now set for that connection. As mentioned above, the same session is used for all actions against a specified connection. If you disconnect or exit the tool and startup again you will need to perform these actions again. More information on NLS Parameters can be found within the SQL Developer help text, Help > Table of Contents > Working in a Global Environment > Setting up the Globalization Support Environment > Setting NLS Parameters.
Discuss this how-to in the OTN Oracle SQL Developer Forum.