Created
July 2, 2014 21:31
-
-
Save mujahidk/0d00712f0277e86488f5 to your computer and use it in GitHub Desktop.
Drop and create oracle user/schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--connection as dba | |
connect <system>/<password> as sysdba; | |
--drop oracle user/schema | |
drop user <user_name> cascade; | |
--create a new user and schema | |
create user <user_name> identified by <password>; | |
--grant dba, other roles and privileges | |
grant dba to <user_name>; | |
grant connect to <user_name>; | |
grant resource to <user_name>; | |
grant all privileges to <user_name>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment