查询SYSDATE的值一直停留在2005-03-01 11:41:15。感觉很奇怪。
select current_date from dual; 的输出是正确的,而
select sysdate from dual; 却是不正确的。
猜测是某个参数导致了系统日期被固化,让他传来alert文件,果然发现了一个此前未注意到的参数: FIXED_DATE,
core_dump_dest = /u01/app/oracle/admin/unicode/cdump |
文档上的解释为:
FIXED_DATE
Parameter type | String |
Syntax |
|
Default value | There is no default value. |
Parameter class | Dynamic: |
FIXED_DATE
enables you to set a constant date that SYSDATE
will always return instead of the current date. This parameter is useful primarily for testing. The value can be in the format shown above or in the default Oracle date format, without a time.
找到了这个参数也就找到了答案!
how to reslove
alter system set FIXED_DATE=none ;
System altered.
select sysdate from dual ;
SYSDATE
-------------------
2010-03-12 09:59:08
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8337095/viewspace-1032116/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/8337095/viewspace-1032116/