Created
December 29, 2014 05:43
-
-
Save whysoserious/aca430f4507947c2170d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
-- 1. Create 'schema' ;) | |
create tablespace test_user_ts | |
datafile 'test_user_tabspace.dat' | |
size 10M reuse | |
autoextend on next 500K; | |
create temporary tablespace test_user_ts_tmp | |
tempfile 'test_user.tabspace_temp.dat' | |
size 10M reuse | |
autoextend on next 500K; | |
create user test_user | |
identified by test_password | |
default tablespace test_user_ts | |
temporary tablespace test_user_ts_tmp; | |
grant create session to test_user; | |
grant all privileges to test_user; | |
-- 2. Connect to db as test_user | |
-- 3. Clean up | |
drop user test_user cascade; | |
drop tablespace test_user_ts_tmp; | |
drop tablespace test_user_ts; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment