SV-24856r4_rule
V-3846
Oracle default tablespace assignment
DO0155-ORACLE11
CAT II
10
Create and dedicate tablespaces to support only one application.
Do not share tablespaces between applications.
Do not grant quotas to application object owners on tablespaces not dedicated to their associated application.
Run the queries:
alter database default tablespace <tablespace_name>;
alter database default temporary tablespace <temporary_tablespace_name>;
alter user <username> default tablespace <tablespace_name> temporary tablespace <temporary_tablespace_name>;
Replace <username> with the named user account.
Replace <tablespace_name> with the new default tablespace name.
Replace <temporary_tablespace_name> with the new default temporary tablespace name (typically TEMP).
Repeat the "alter user" for each affected user account.
Run the query:
select property_name, property_value
from database_properties
where property_name in
('DEFAULT_PERMANENT_TABLESPACE','DEFAULT_TEMP_TABLESPACE');
If either value is set to "SYSTEM", this is a finding.
Run the query:
select username from dba_users
where (default_tablespace = 'SYSTEM' or temporary_tablespace = 'SYSTEM')
and username not in
('LBACSYS','OUTLN','SYS','SYSTEM', 'MGMT_VIEW');
If any non-default account records are returned, this is a finding.
V-3846
False
DO0155-ORACLE11
Run the query:
select property_name, property_value
from database_properties
where property_name in
('DEFAULT_PERMANENT_TABLESPACE','DEFAULT_TEMP_TABLESPACE');
If either value is set to "SYSTEM", this is a finding.
Run the query:
select username from dba_users
where (default_tablespace = 'SYSTEM' or temporary_tablespace = 'SYSTEM')
and username not in
('LBACSYS','OUTLN','SYS','SYSTEM', 'MGMT_VIEW');
If any non-default account records are returned, this is a finding.
M
Database Administrator
1367