Hello
I try tu use tcl scrpits during performance tests of my application and I'd like to insert some rows using a few virtual users. Because some of the values must be unique, I need to generate them with a random function. Could you help me and write how to change this part of the script:
set curn4 [oraopen $lda ]
set sql4 "INSERT INTO OSOBY(ID,IMIE,NAZWISKO,STATUS,ID_PRACOWNIKA,LOGIN,TYP_OSOBY) VALUES 1,:2,:3,:4,:5,:6,:7) "
orasql $curn4 $sql4 -parseonly
orabindexec $curn4 :4 {A} :5 {} :1 {572} :6 {D572} :2 {Bbbbb} :7 {D} :3 {Aa}
to make it put random number values into these two values
:1 {572} :6 {D572} ?
I try tu use tcl scrpits during performance tests of my application and I'd like to insert some rows using a few virtual users. Because some of the values must be unique, I need to generate them with a random function. Could you help me and write how to change this part of the script:
set curn4 [oraopen $lda ]
set sql4 "INSERT INTO OSOBY(ID,IMIE,NAZWISKO,STATUS,ID_PRACOWNIKA,LOGIN,TYP_OSOBY) VALUES 1,:2,:3,:4,:5,:6,:7) "
orasql $curn4 $sql4 -parseonly
orabindexec $curn4 :4 {A} :5 {} :1 {572} :6 {D572} :2 {Bbbbb} :7 {D} :3 {Aa}
to make it put random number values into these two values
:1 {572} :6 {D572} ?