RE: Re: how to generate create user script with password in TOAD

John Dorlon <[email protected]>
Newsgroups gmane.comp.db.oracle.toad.free
Message-ID <4120B436C765EC43A31CC3E2A13D36A6226BB9DD@ALVMBXW02.prod.quest.corp>
I just checked the source for 10.5 and that checkbox is there, so it should work.

After you make that grant, you’ll have to disconnect and then reconnect.  Toad only checks that privilege once in the duration of a connection.

And it won’t work unless that “If possible, include identify by values clause in 11g” checkbox is checked.


From: [email protected] [mailto:[email protected]] On Behalf Of Yong Zhang
Sent: Thursday, May 03, 2012 8:43 AM
To: [email protected]
Subject: Re: [toad] Re: how to generate create user script with password in TOAD


I granted select on sys.user$ to the user I am using to generate the script and still not be able to see the passoword. I may have to try with 10.6 to see if it works.
Thanks.


From: Bert Scalzo <[email protected]<mailto:[email protected]>>
To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Sent: Thursday, May 3, 2012 9:31 AM
Subject: RE: [toad] Re: how to generate create user script with password in TOAD


The DBA role was put in place for backwards compat with Oracle 7. It does not include what current DBA’s should want or need as it was only created for backward compat and is not recommened to be used. So saying I have DBA really means nothing. You need to create your own site specific DBA type role and decide which of the hundreds of privs it should have.

From: [email protected]<mailto:[email protected]> [mailto:[email protected]]<mailto:[mailto:[email protected]]> On Behalf Of Yong Zhang
Sent: Thursday, May 03, 2012 8:23 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: [toad] Re: how to generate create user script with password in TOAD


Hi John,
That is what I am using for 10g, but not working for 11g. I am using the user with dba privileges.
Thanks.

Yong


From: John Dorlon <[email protected]<mailto:[email protected]>>
To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Sent: Thursday, May 3, 2012 9:13 AM
Subject: RE: [toad] Re: how to generate create user script with password in TOAD


Toad 10.6 has an option to extract passwords on 11g if you have privileges.  I’m not sure offhand if the option is also on 10.5.1 but on the script dialog, go to the  “Script Options” tab, then “Users” sub-tab.  Check “If possible, include identify by values clause in 11g”.

It will be possible if you have the SELECT privilege on the sys.user$ table.

-John



From: [email protected]<mailto:[email protected]> [mailto:[email protected]]<mailto:[mailto:[email protected]]> On Behalf Of bscalzo
Sent: Wednesday, May 02, 2012 9:10 PM
To: [email protected]<mailto:[email protected]>
Subject: [toad] Re: how to generate create user script with password in TOAD


Actually there was a discussion on this very subject a short while ago by the toad developer who owns that code:

http://tech.groups.yahoo.com/group/toadbeta/message/37139

John talks about the 11g changes and where he gets the values ....

--- In [email protected]<mailto:toad%40yahoogroups.com>, Bert Scalzo <bert.scalzo@...<mailto:bert.scalzo@...>> wrote:
>
> Due to changes in 11G in the way passwords are done (in order to support case sensitive passwords) this is the way it has to work. Blame Oracle - they made changes in the data dictionary :)
>
> From: [email protected]<mailto:toad%40yahoogroups.com> [mailto:[email protected]<mailto:toad%40yahoogroups.com>] On Behalf Of Yong Zhang
> Sent: Wednesday, May 02, 2012 8:18 PM
> To: [email protected]<mailto:toad%40yahoogroups.com>
> Subject: [toad] how to generate create user script with password in TOAD
>
>
> Hi, Toad users,
> I am using TOAD 10.5.1.x version. When I connect to Oracle 10g R2 database using schema browser to generate create user script, it generate the following code:
> create user username
> identified by values 'somevalues'
> default tablespace users;
> which is very convenient for dbas to drop and recreate the users in the same or another database without having to know the passwords for a particular user.
> But when I connect to 11g database, it does not generate the password values:
> create user username
> identified by <password>
> default tablespace users;
> Does anyone know where to configure the TOAD to generate the same script as Oracle 10g? Or where do I have to tweak the parameters in Oracle 11g database?
> I would appreciate if someone can answer my questions or point me to some docs on the web. Please don't ask me why I have to do it this way, but I have to do it quite often.
> Regards.
>
> Yong
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.