switching of database

switching of database

Post by Sende » Sun, 31 Dec 1899 09:00:00



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?
 
 
 

switching of database

Post by I hate Spa » Sun, 31 Dec 1899 09:00:00



>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


 
 
 

switching of database

Post by Brian Peaslan » Sun, 31 Dec 1899 09:00:00


If they are using two databases, why don't you just set up two different
entries in their TNSNAMES file? That way, they can connect to both
databases without having to switch anything. This should work in most
situations unless I've missed something in your question.

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?

--
========================================
Brian Peasland
Raytheons Systems at
  USGS EROS Data Center
These opinions are my own and do not
necessarily reflect the opinions of my
company!
========================================
 
 
 

switching of database

Post by Chi » Sun, 31 Dec 1899 09:00:00


Indeed. We are using 5 databases with different SID.
At login you just specify the SID you want. It's not
neccesary to change the registery.

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.



> If they are using two databases, why don't you just
> set up two different
> entries in their TNSNAMES file? That way, they can
> connect to both
> databases without having to switch anything. This
> should work in most
> situations unless I've missed something in your
> question.
> 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?
> --
> ========================================
> Brian Peasland
> Raytheons Systems at
>   USGS EROS Data Center
> These opinions are my own and do not
> necessarily reflect the opinions of my
> company!
> ========================================

* Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping.  Smart is Beautiful
 
 
 

switching of database

Post by Sende » Sun, 31 Dec 1899 09:00:00


Thanks. But how about the Developer 2K client path? We need to switch
between production executable and testing executable. As an alternative, is
there a way we can concatinate 2 path so that the system search for
executable from one path and, if not found, search another?




> >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


 
 
 

switching of database

Post by I hate Spa » Sun, 31 Dec 1899 09:00:00



>Thanks. But how about the Developer 2K client path? We need to switch
>between production executable and testing executable. As an alternative, is
>there a way we can concatinate 2 path so that the system search for
>executable from one path and, if not found, search another?

Place to shortcut on the desktop, one for production, one for testing
in the shurtcut/proporties/target box you put the strings

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.

2. transaction isolation?

3. Dynamically switching between databases using cursor

4. dbSQLPassThrough

5. Dynamically switching between databases in SQL 7.0?

6. looping-selfjoin problem

7. switching from databases

8. Without Cursors?

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

13. How to switch database