Date post: | 07-Jul-2018 |
Category: |
Documents |
Upload: | maria-rios |
View: | 222 times |
Download: | 0 times |
of 11
8/19/2019 SOLUCIÓN TABLESPACES.docx
1/11
PRACTICAS TABLESPACES
1.1. Consultar los tablespaces que componen la BD. Comprobar los fcheros
que tiene caa uno e ellos. !Cu"les son #locales# $ cu"les no%2. Select t.tablespace_name "Tablespace",
3. SUBSTR(d.file_name,1,80) "Fice! de dats",#. t.$%tent_mana&ement "'cal". FR* +B_+T_F-'$S d, +B_TB'$S/$S t . $R$ t.tablespace_name d.tablespace_name4. 5RU B6 t.tablespace_name,
&. d.file_name, t.$%tent_mana&ement
'er qu( contiene el tablespace S)SA*+ $ el tama,o e caa uno esus -obetos/.
1.0. Crea el tablespace TBSCusrsoBsA2an3aas e tipo local4 en la rutaone est"n los em"s archi2os e atos4 con un tama,o e 5667b.
8/19/2019 SOLUCIÓN TABLESPACES.docx
2/11
Se crea el atafle con tama,o e 566 7B
8/19/2019 SOLUCIÓN TABLESPACES.docx
3/11
1.8. Consultar los tablespaces que componen la BD mostrano su tama,o.
8/19/2019 SOLUCIÓN TABLESPACES.docx
4/11
1.9. Reimensionar el tablespace TBSCusrsoBsA2an3aas a :667b !qu(ocurre $ por qu(%.A,airle otro atafle al tablespace TBSCusrsoBsA2an3aas e 0667b.
Se reimensiona a :66 7B
;ue ocurre< A i=erencia e tama,o inicial que era 566 7B4 se le a>re>a 0667B ) el tama,o total es e :66 7B
8/19/2019 SOLUCIÓN TABLESPACES.docx
5/11
Se crea el nue2o atafle e 066 7B
8/19/2019 SOLUCIÓN TABLESPACES.docx
6/11
EL resultao es que se le aumenta al tablespace 066 7B corresponiente altama,o el se>uno atafle creao
1.5. Consultar los tablespaces que componen la BD mostrano su tama,o.
8/19/2019 SOLUCIÓN TABLESPACES.docx
7/11
1.?. Crear un tablespace e -uno/ TBS*noCurso.
Se a>re>a un atafle e 166 7B
8/19/2019 SOLUCIÓN TABLESPACES.docx
8/11
Resultaos
1.:. Consultar los tablespaces que componen la BD mostrano su tama,o $ eltipo e tablespace.
S$'$/T b.tablespace_name, !7nd(b.B6T$S102#102#,0) taman, !7nd(b.7se!_B6T$S102#102#,0) taman_Usad,t./9T$9TS "T- TB'$S/$"FR* dba_data_files b-99$R :-9 dba_tablespaces t 9 b.tablespace_name t.tablespace_name
8/19/2019 SOLUCIÓN TABLESPACES.docx
9/11
1.&. Crear un tablespace temporal TBSTempCurso e 5667b.
8/19/2019 SOLUCIÓN TABLESPACES.docx
10/11
Resultao
8/19/2019 SOLUCIÓN TABLESPACES.docx
11/11
1.:. Consultar los tablespaces que componen la BD mostrano su tama,o $ eltipo e tablespace.
S$'$/T b.tablespace_name, !7nd(b.B6T$S102#102#,0) taman, !7nd(b.7se!_B6T$S102#102#,0) taman_Usad,t./9T$9TS "T- TB'$S/$"FR* dba_data_files b
-99$R :-9 dba_tablespaces t 9 b.tablespace_name t.tablespace_name
select ;f!m dba_temp_files