Oracle looks after the settings in
current users environment
all users environment
registry
in that order.
I define the parameters in the shortcut definition.
Hans Erik Busk
Yours Hans Erik Busk
HTH,
Brian
> Our users have to access 2 databases, one for production and another for
> testing. Since the database name and client software path have to be
> specified in the windows registry, we provide them with two icons and use
> batch file to execute regedit to switch between the two environments.
> Recently, auditor request us to disable registry editing (we use windows nt
> v4.0 workstation). I like to know is the database switching method we use
> the right way to do? If not, what method do you use?
If you hardcoded your SID, so you can't specify it at
startup, than you can change tnsnames.ora.
E.g. if you hardcoded ORCL in your code, change
tnsnames.ora. If in tnsnames.ora ORCL point to DB1 and you
want it to point to DB2, create a batchfile to replace them.
> > Our users have to access 2 databases, one for
> production and another for
> > testing. Since the database name and client software
> path have to be
> > specified in the windows registry, we provide them
> with two icons and use
> > batch file to execute regedit to switch between the
> two environments.
> > Recently, auditor request us to disable registry
> editing (we use windows nt
> > v4.0 workstation). I like to know is the database
> switching method we use
> > the right way to do? If not, what method do you use?
> --
> ========================================
> Brian Peasland
> Raytheons Systems at
> USGS EROS Data Center
> These opinions are my own and do not
> necessarily reflect the opinions of my
> company!
> ========================================
> >Our users have to access 2 databases, one for production and another for
> >testing. Since the database name and client software path have to be
> >specified in the windows registry, we provide them with two icons and use
> >batch file to execute regedit to switch between the two environments.
> >Recently, auditor request us to disable registry editing (we use windows
nt
> >v4.0 workstation). I like to know is the database switching method we use
> >the right way to do? If not, what method do you use?
> Either set the correct parameters in the properties/shortcut of the
> desktop icon, or change the users environment parameters
> Oracle looks after the settings in
> current users environment
> all users environment
> registry
> in that order.
> I define the parameters in the shortcut definition.
> Hans Erik Busk
> Yours Hans Erik Busk
Production:
Testing:
then of course you have to define the proper connection to the two
databases in TNSNAMES.ORA
Yours Hans Erik Busk
1. Dynamically switching between databases in SQL 7.0?
I have an application in VB6 that I am converting from Access to SQL 7.0.
This application currently allows the user to switch between different but
structurally identical historical databases (.mdb's) dynamically by simply
re-linking the to the new database. I have no idea how this will work under
SQL or for that matter, how I can even make a duplicate copy and rename it.
Any help would be appreciated. Thanks.
3. Dynamically switching between databases using cursor
5. Dynamically switching between databases in SQL 7.0?
9. Switch 7.0 to 6.5 fails - appears to be in middle of switch process
10. How to Switch Database with USE
11. Switching between Access and SQL Server backend databases
12. switching database name in a stored procedure