Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Apress
committed
Oct 11, 2016
0 parents
commit e2b083d
Showing
480 changed files
with
48,924 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
connect sys as sysdba; | ||
create user bps identified by bps; | ||
alter user bps default tablespace users temporary tablespace temp; | ||
grant all privileges to bps; | ||
grant execute on SYS.DBMS_LOCK to BPS; | ||
set feedback off; | ||
set linesize 1000; | ||
set newpage 0; | ||
set pagesize 32767; | ||
set trimspool on; | ||
spool create_user.sub | ||
select 'grant select on '||view_name||' to bps;' | ||
from SYS.DBA_VIEWS | ||
where owner = 'SYS' | ||
and view_name like 'DBA\_%' escape '\' | ||
order by 1; | ||
select 'grant select on '||view_name||' to bps;' | ||
from SYS.DBA_VIEWS | ||
where owner = 'SYS' | ||
and view_name like 'V\_$%' escape '\' | ||
order by 1; | ||
spool off; | ||
set feedback on; | ||
set linesize 1000; | ||
set newpage 1; | ||
set pagesize 32767; | ||
set trimspool on; | ||
spool create_user_sub.txt; | ||
@create_user.sub | ||
spool off; |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.