dbTalk Databases Forums  

configuration management

comp.databases.oracle comp.databases.oracle


Discuss configuration management in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bdj
 
Posts: n/a

Default configuration management - 12-14-2004 , 01:27 PM






Hello out there!
I wish to make package self-initializing, dependent of the environment
(production / test)
Is following a good design pattern?:

Package body my_ftp
.....
ipnr varchar2(100);

-- some procedures and functions

begin -- begin block in package body!
if this_is_production then
ipnr := 'external.domain.com';
else
ipnr := 'internal.domain.com';
end if;
end; -- package end!

-----------------------------------------
The begin-block will only be executed the first time I use something in the
package in the session.

Greetings
Bjørn



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.