Hi,
Has anyone encountered problems with the format of the timestamp column that is displayed in the SQL Window (or any other window) - in particular it not returning the milliseconds value?
I cannot seem to get the format to show the same values as the NLS_TIMESTAMP_FORMAT (which is the default format that should be used). I do not have an explicit value set for this in my Oracle home part of the registry but checking the NLS session settings the correct value is being returned.
For example the following SQL:
SELECT parameter, value, systimestamp from nls_session_parameters where parameter like '%TIME%'
returns:
NLS_TIME_FORMAT HH24.MI.SSXFF 13/02/2008 11:01:48
NLS_TIMESTAMP_FORMAT DD-MON-RR HH24.MI.SSXFF 13/02/2008 11:01:48
NLS_TIME_TZ_FORMAT HH24.MI.SSXFF TZR 13/02/2008 11:01:48
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH24.MI.SSXFF TZR 13/02/2008 11:01:48
I have tried issuing an "ALTER SESSION " command to modify the timestamp format but this made no difference. The only way I can currently get the fractional seconds value to be returned from a timestamp column it to apply the TO_CHAR function to it.
I believe this problem to be completely environmental but cannot see a way to resolve it. I have both 9.2.0.7 and 10.2.0.3 installed locally with the 10g home being the default.
The following is an extract of the Help/support info output:
Homes
OraDb10g_home1 (C:\oracle\product\10.2.0\db_1)
OraHome92 (C:\oracle\ora92)
DLLs
C:\oracle\product\10.2.0\db_1\bin\oci.dll
TNS File
C:\oracle\product\10.2.0\db_1\Network\Admin\tnsnames.ora
Using
Home: OraDb10g_home1
DLL: C:\oracle\product\10.2.0\db_1\bin\oci.dll
OCI: version 9.2
Oracle9i Enterprise Edition Release 9.2.0.7.0
Character Sets
Character size: 1 byte(s)
CharSetID: 31
NCharSetID: 2000
Unicode Support: True
NLS_LANG: ENGLISH_UNITED KINGDOM.WE8MSWIN1252
NLS_CHARACTERSET: WE8ISO8859P1
NLS_NCHAR_CHARACTERSET: AL16UTF16
If anyone has managed to resolve an issue similar to this I would appreciate your feedback.
Thanks,
Anand.
Has anyone encountered problems with the format of the timestamp column that is displayed in the SQL Window (or any other window) - in particular it not returning the milliseconds value?
I cannot seem to get the format to show the same values as the NLS_TIMESTAMP_FORMAT (which is the default format that should be used). I do not have an explicit value set for this in my Oracle home part of the registry but checking the NLS session settings the correct value is being returned.
For example the following SQL:
SELECT parameter, value, systimestamp from nls_session_parameters where parameter like '%TIME%'
returns:
NLS_TIME_FORMAT HH24.MI.SSXFF 13/02/2008 11:01:48
NLS_TIMESTAMP_FORMAT DD-MON-RR HH24.MI.SSXFF 13/02/2008 11:01:48
NLS_TIME_TZ_FORMAT HH24.MI.SSXFF TZR 13/02/2008 11:01:48
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH24.MI.SSXFF TZR 13/02/2008 11:01:48
I have tried issuing an "ALTER SESSION " command to modify the timestamp format but this made no difference. The only way I can currently get the fractional seconds value to be returned from a timestamp column it to apply the TO_CHAR function to it.
I believe this problem to be completely environmental but cannot see a way to resolve it. I have both 9.2.0.7 and 10.2.0.3 installed locally with the 10g home being the default.
The following is an extract of the Help/support info output:
Homes
OraDb10g_home1 (C:\oracle\product\10.2.0\db_1)
OraHome92 (C:\oracle\ora92)
DLLs
C:\oracle\product\10.2.0\db_1\bin\oci.dll
TNS File
C:\oracle\product\10.2.0\db_1\Network\Admin\tnsnames.ora
Using
Home: OraDb10g_home1
DLL: C:\oracle\product\10.2.0\db_1\bin\oci.dll
OCI: version 9.2
Oracle9i Enterprise Edition Release 9.2.0.7.0
Character Sets
Character size: 1 byte(s)
CharSetID: 31
NCharSetID: 2000
Unicode Support: True
NLS_LANG: ENGLISH_UNITED KINGDOM.WE8MSWIN1252
NLS_CHARACTERSET: WE8ISO8859P1
NLS_NCHAR_CHARACTERSET: AL16UTF16
If anyone has managed to resolve an issue similar to this I would appreciate your feedback.
Thanks,
Anand.