Professional Documents
Culture Documents
tp2 Dba
tp2 Dba
5/
select file_name from dba_data_files
where tablespace_name = 'TBL02';
with req as
2 (SELECT tablespace_name, COUNT(*) NB
3 FROM dba_temp_files
4 GROUP BY tablespace_name
5 union
6 SELECT tablespace_name, COUNT(*) NB
7 FROM dba_data_files
8 GROUP BY tablespace_name)
9 select req.tablespace_name,contents,NB from req, dba_tablespaces a
10 where req.tablespace_name = a.tablespace_name;
9/
SQL> select property_name, property_value
2 from database_properties
3 where property_name like '%TABLESPACE%';
Database altered.
Database altered.
10/
show user
USER is "SYSTEM"
SQL> connect sys/as sysdba
Enter password:
Connected.
SQL> /
Function created.
11/
User created.
12/
drop tablespace tbl02; => non
13/