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!

How can i identify the environment name or database name in the PL/SQL code

598296Mar 20 2008 — edited Mar 20 2008
Hi,

I am using UTL_FILE to genearate the files.,

My problem is, I have to design the common sql file , which can be executed in 2 diffrent environments ( Say QA & DEV ) , with no parameters. It has to identify the environment and based on the environment , it has to generate the concern files.,

The only change needs to be incorporated is , file names , which will change based on the environment.,

can nay one tell me , how can i identify the environment name or database name in the PL/SQL code ??

Raja
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 17 2008
Added on Mar 20 2008
12 comments
3,351 views