Every now and again I will need to create multiple rows of dummy data for whatever reason. The following will generate 10 rows that contain the rownumber and a random 10 character lowercase string:
select rownum, dbms_random.string('l',10) rand_string
connect by level <= 10;
A handy little function for quickly grabbing information about where code is running / who is running it.
Current User Name:
Current User SID:
Database Name (from Init Param):
More info can be found in the documentation
Welcome to my blog. I will try to post things that I find that may not be common knowledge to all or things that I wish I would have done differently in retrospect so hopefully someone else can avoid walking down the same path. This will be mostly for my own notes, but if someone else can benefit from me keeping them public then all the better.