Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to alter the default profile for multiple users

831000Jan 13 2011 — edited Jan 13 2011
I am trying to alter the default profile assigned to users during user creation to a new profile. I know to change the profile for one user using the syntax

alter user abc profile profileabc

The issue I have is that there are 100's of users under default profile and changing for each of them manually would be difficult. The approach that I see is to write a shell script where I connect to the db and get a list of all the users with default profile. Then I loop through the file making connection to the db each time and executing the alter statement.

Please help if you think that there can be a more efficient approach to this.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 10 2011
Added on Jan 13 2011
1 comment
10,372 views