Skip to content

Instantly share code, notes, and snippets.

@mujahidk
Created July 2, 2014 21:31
Show Gist options
  • Save mujahidk/0d00712f0277e86488f5 to your computer and use it in GitHub Desktop.
Save mujahidk/0d00712f0277e86488f5 to your computer and use it in GitHub Desktop.
Drop and create oracle user/schema
--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