Escolar Documentos
Profissional Documentos
Cultura Documentos
No se puede crear.
Tablespace created.
Tablespace created.
d. RONLY para tablas de solo lectura con almacenamiento por defecto. NO HAGA el
tablespace en solo lectura para este momento.
SQL> CREATE TABLESPACE ronly
2 DATAFILE 'D:\ORACLASS\ORADATA\u01\ronly01.dbf' SIZE 1M;
Tablespace created.
FROM
v$datafile
WHERE
NAME
BYTES
CREATE_BYTES
STATUS
-------------------------------------------------- ------D:\ORACLASS\ORADATA\u01\system01.dbf
SYSTEM
D:\ORACLASS\ORADATA\u02\undotbs01.dbf
ONLINE
D:\ORACLASS\ORADATA\u03\users01.dbf
D:\ORACLASS\ORADATA\u03\indx01.dbf
ONLINE
ONLINE
D:\ORACLASS\ORADATA\u02\sample01.dbf
ONLINE
D:\ORACLASS\ORADATA\u01\querydata01.dbf
D:\ORACLASS\ORADATA\u04\data01.dbf
ONLINE
ONLINE
D:\ORACLASS\ORADATA\u03\data02.dbf
ONLINE
D:\ORACLASS\ORADATA\u02\index01.dbf
D:\ORACLASS\ORADATA\u01\ronly01.dbf
OFFLINE
ONLINE
13 rows selected.
SQL> host move D:\ORACLASS\ORADATA\u02\index01.dbf
D:\ORACLASS\ORADATA\u06\index01.dbf
SQL> ALTER TABLESPACE index01
2
3
RENAME DATAFILE
'D:\ORACLASS\ORADATA\u02\index01.dbf' TO
'D:\ORACLASS\ORADATA\u06\index01.dbf';
Tablespace altered.
SQL> ALTER TABLESPACE index01 ONLINE;
Tablespace altered.
- continua -
STATUS
-------------------------------------------------- ------D:\ORACLASS\ORADATA\u01\system01.dbf
SYSTEM
D:\ORACLASS\ORADATA\u01\sysaux01.dbf
SYSTEM
D:\ORACLASS\ORADATA\u02\undotbs01.dbf
ONLINE
D:\ORACLASS\ORADATA\u03\users01.dbf
ONLINE
D:\ORACLASS\ORADATA\u03\indx01.dbf
ONLINE
D:\ORACLASS\ORADATA\u02\sample01.dbf
ONLINE
D:\ORACLASS\ORADATA\u02\example01.dbf
ONLINE
D:\ORACLASS\ORADATA\u01\querydata01.dbf
ONLINE
D:\ORACLASS\ORADATA\u04\data01.dbf
ONLINE
D:\ORACLASS\ORADATA\u03\data02.dbf
ONLINE
D:\ORACLASS\ORADATA\u06\index01.dbf
ONLINE
D:\ORACLASS\ORADATA\u01\ronly01.dbf
ONLINE
D:\ORACLASS\ORADATA\u03\users01.dbf
ONLINE
13 rows selected.
ENABLED
STATUS
READ
READ
READ
READ
WRITE
WRITE
WRITE
WRITE
SYSTEM
SYSTEM
ONLINE
ONLINE
D:\ORACLASS\ORADATA\u03\indx01.dbf
D:\ORACLASS\ORADATA\u02\example01.dbf
D:\ORACLASS\ORADATA\u02\sample01.dbf
D:\ORACLASS\ORADATA\u01\querydata01.dbf
READ ONLY
D:\ORACLASS\ORADATA\u04\data01.dbf
D:\ORACLASS\ORADATA\u03\data02.dbf
D:\ORACLASS\ORADATA\u06\index01.dbf
D:\ORACLASS\ORADATA\u01\ronly01.dbf
READ ONLY
D:\ORACLASS\ORADATA\u03\users01.dbf
13 rows selected.
ONLINE
ONLINE
INC
YES
YES
3 USERS
4 INDX
YES
YES
5 SAMPLE
YES
2 TEMP
6 QUERY_DATA
YES
YES
7 DATA01
8 DATA02
YES
YES
9 INDEX01
YES
10 rows selected.
SQL> host dir D:\ORACLASS\ORADATA\u01\*
D:\ORACLASS\ORADATA\u01\control01.bak
D:\ORACLASS\ORADATA\u01\querydata01.dbf
D:\ORACLASS\ORADATA\u01\control01.ctl
D:\ORACLASS\ORADATA\u01\system01.dbf
------------SYSTEM
UNDOTBS
USERS
INDX
SAMPLE
TEMP
QUERY_DATA
DATA01
DATA02
INDEX01
DATA03
INC
--YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
11 rows selected.
SQL> host dir D:\ORACLASS\ORADATA\u05
ora_data03_xg17n9nd.dbf