Re: ARH-How syncronize database passwords

From: joel garry <joel-garry_at_home.com>
Date: Wed, 14 Jan 2009 10:45:37 -0800 (PST)
Message-ID: <7fccf9e9-35ad-4cb6-abc3-6bfcda0be0aa_at_o11g2000yql.googlegroups.com>



On Jan 14, 6:33 am, Mark D Powell <Mark.Pow..._at_eds.com> wrote:
> On Jan 13, 2:34 pm, joel garry <joel-ga..._at_home.com> wrote:
>
>
>
>
>
> > On Jan 13, 4:28 am, "ahanj..._at_gmail.com" <ahanj..._at_gmail.com> wrote:
>
> > > I have around 40 odd oracle 10g databases that use the same username/
> > > password through the application. Now I need to synchronize these
> > > passwords anytime someone changes it on 1 database and this has to
> > > happen in near/real time for my requirement to be met.
> > > How can I do this completely or partially through Oracle?
>
> > You may be able to use the alter user ... identified by values sql.  I
> > don't think this is documented, but you can grep for it in an old-
> > style exp full=y rows=n to see the usage and value, or see the value
> > in dba_users.  Naturally, this is an extremely bad idea from a
> > security viewpoint.  I believe 11g doesn't allow this.  You might
> > break things if something requires a password file (which I would hope
> > wouldn't be the case, but there are all sorts of weirdo apps out
> > there, especially those that require the password to be hardcoded).
>
> > The value is the same across databases, that's how exp/imp does it.
>
> > jg
> > --
> > _at_home.com is bogus.
> > Hope I die before I get... wait a minute...http://www3.signonsandiego.com/stories/2009/jan/13/1n13social001926-h...
>
> I see two problems using exp/imp.  The first is the time delay.  In
> fact the time dely in propogation of the password change is a
> potential problem no matter which method is finally chosen if the
> application is constantly making new connections to one or more
> databases.  In fact where is the application picking up the pasword to
> be used.  Definite timing issue.
>
> The second potential problem with exp/imp is that if the application
> usernamne is also an object owner then you are going to be exporting
> and the potentially importing objects that you do not want between
> databases.  I am not familiar enought with the newer expdp/impdp
> options to know if I can just export the user definition and no other
> objects.

Sorry for the miscommunication, I just meant to look in the dump file to see how exp does it!

>
> An alternate that would allow you to export the user password without
> knowing what it is might be to use the dbms_metadata package to
> generate the create user and then format the password into an alter
> user statement.  The alter user statement could be applied using the
> method that follows or following other approaches to propogating
> commands.
>
> I think the best approach is to not allow the password to be changed
> except during scheduled maintenance periods when a coordinated task
> can be ran.  A simple script that connects to all 40 database
> instances and issues the alter user identified by command would then
> work plus the application password source file would also need
> updating.
>

Agreed.

jg

--
_at_home.com is bogus.
Internet not dangerous for kids, film at 11.
http://www.nytimes.com/2009/01/14/technology/internet/14cyberweb.html?_r=1
Received on Wed Jan 14 2009 - 12:45:37 CST

Original text of this message