SYS_GUID FUNCTION RETURNING SAME VALUE [message #644906] |
Thu, 19 November 2015 12:20 |
|
jarockiadoss
Messages: 9 Registered: November 2015
|
Junior Member |
|
|
Hello,
I have a function called "newguid" which is used everywhere in the application which returns sys_guid() value. Recently we found that it is returning same id & causing problem.
We are having this problem in testing server, but the same function is working fine (fetching different values) in production database. Help me on this please.
CREATE OR REPLACE FUNCTION NEWGUID
RETURN RAW
AS
BEGIN
RETURN SYS_GUID();
END NEWGUID;
SQL> select newguid from dual
2 /
NEWGUID
--------------------------------------------------------------------------------
24E6B70E01F52B84E053F3F0558C63BB
SQL> /
NEWGUID
--------------------------------------------------------------------------------
24E6B70E01F52B84E053F3F0558C63BB
SQL> /
NEWGUID
--------------------------------------------------------------------------------
24E6B70E01F52B84E053F3F0558C63BB
SQL>
1. Production & test database versions are same.
2. If I run sys_guid function (select sys_guid()) from dual) is returning different values every time
3. If I run the function "newguid" (select newguid()) from dual) is returning same value again and again.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|