Four ways to modify the Oracle-nls_date_format time format

Source: Internet
Author: User

Four ways to modify the Oracle-nls_date_format time format change the display of the time display format in Oracle-nls_date_format in the following ways: 1.可以在用户环境变量中指定(LINUX)。 在用户的.bash_profile中增加两句: export NLS_LANG=AMERICAN       ---要注意这一句必须指定,不然下一句不生效。 export NLS_DATE_FORMAT= ‘yyyy/mm/dd hh24:mi:ss‘ 2.在SQLPLUS的glogin.sql文件增加一句: alter session set nls_date_format = ‘yyyy-mm-dd hh24:mi:ss‘ ; 3.直接修改当前会话的日期格式 : alter session set nls_date_format = ‘yyyy-mm-dd hh24:mi:ss‘ ; 4.修改数据库的参数,需要重启数据库后生效   SQL> alter system set nls_date_format= ‘yyyy-mm-dd hh24:mi:ss‘ scope=spfile;

Four ways to modify the Oracle-nls_date_format time format

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.