Re: Force users to use Active DG for reporting

From: Andrew Kerber <andrew.kerber_at_gmail.com>
Date: Mon, 31 Mar 2014 12:27:36 -0500
Message-ID: <CAJvnOJZdOxYq0KGqZKAiVWx-PSYTBsaQErY58g5EHS7S2erDcA_at_mail.gmail.com>



I would create a read only service accessible only on the standby, and modify their tnsnames to connect to the RO service, and then setup typical failover entry listing both servers, but specifying the RO service, so that if for some reason the standby goes down they will connect to the primary once you switch the service back. I wrote a trigger for this a couple of times, basically if the database is open RW you start the rw service and if it is open read only you start the RO service.

On Mon, Mar 31, 2014 at 12:18 PM, Neil Chandler <neil_chandler_at_hotmail.com>wrote:

> You could always write an on-login trigger which identifies the user
> logging on, checks against the db_unique_name and raises a nice exception
> if the user is in an inappropriate db.
>
> Don't kill them, just don't let them in with a nice raised error message
> telling them where they went wrong.
>
> Regs
>
> Neil Chandler
> _at_chandlerDBA
> >
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>

-- 
Andrew W. Kerber

'If at first you dont succeed, dont take up skydiving.'

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Mar 31 2014 - 19:27:36 CEST

Original text of this message