Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DBMS_RANDOM.STRING - Random String Possibilities in case of parallel processing ??

LazarJun 1 2020 — edited Jun 1 2020

Hi,

Im calling the SYS.DBMS_RANDOM.STRING package in one of my Stored Procedure and storing this random string value in different tables as primary key.

Inside this PROC, there are multiple occasions(Multiple DML operations) where im calling the same SYS.DBMS_RANDOM.STRING('X',30) to generate a unique value.

Im running this particular PROCEDURE in 40 different session parallely with some different procedural parameters based on business logics.

Will there be a possibility of same number generation occurance???? Need some advise here.

Code used to generate the random number inside the PROC as shown below:-

SYS.DBMS_RANDOM.STRING('X',30)

Regards,

Lazar

Comments
Post Details
Added on Jun 1 2020
8 comments
610 views