Proced i Mien to Transportable Table Spaces
-
Upload
juan-zarama -
Category
Documents
-
view
214 -
download
0
Transcript of Proced i Mien to Transportable Table Spaces
-
7/24/2019 Proced i Mien to Transportable Table Spaces
1/6
1. Extraer informacin relacionada con tablespaces, segmentos y datales
select tablespace_name, block_size, statusfrom dba_tablespaceswhere tablespace_name in
!ts1","ts#",$.%
select tablespace_name,le_name, le_id, bytes&1'#(&1'#( mb, status,online_statusfrom dba_data_leswhere tablespace_name in
!)s1", !ts#", $.%order by tablespace_name
select owner, segment_name, partition_name, segment_type,segment_subtype, tablespace_name, truncbytes%&1'#(&1'#( mbfrom dba_segmentswhere tablespace_name in !)s1", !ts#", $.
%order by segment_name
#. *alidar los datales del diskgroup en asm% guardar el listado de datales%,compararlos con las lista de datales de los tablespaces
set pages #''set lines +'select group_number, name, state from -asm_diskgroup/ 00 aca se obtienenumero del dg
set pages +''set lines +'col le_type format a#'
select c.group_number gn, a.name aname, c.type le_type,to_charcreation_date,yyyymmdd hh#(2mi2ss% fcre from -asm_alias a, -asm_le c where a.group_number 3 c.group_number
and a.le_number 3 c.le_numberand a.le_incarnation 3 c.incarnation
and c.group_number 3 4diskgorder by creation_date
-
7/24/2019 Proced i Mien to Transportable Table Spaces
2/6
+. 5acar la informacin de los de-ices 6ue componen el 7iskgroup
col path format a('col name format a('
select path, name, total_mb from -asm_disk where group_number 3 4gn
(. -alidar si el ts es self.contained
000 E8E9 sys.7:;5_))5.)5?@
-
7/24/2019 Proced i Mien to Transportable Table Spaces
3/6
export @:_#'111#, ;IT_?I@> =5EE9) % HH 9A< 1+% HH le3migHH4perHH .dmp HH 9A< 1+% HH log3migHH4perHH .log HH 9A< 1+% HH statistics3none
GE, -alidar los datales
select alter tablespace HHtablespace_nameHH oVine/ 00, statusfrom dba_tablespaces
where tablespace_name I> ;IT_;7
-
7/24/2019 Proced i Mien to Transportable Table Spaces
4/6
;IT_?G_:_#'111#, ;IT_?G_>:_#'111#, ;IT_?E
select le_name, status, bytes, online_statusfrom dba_data_leswhere tablespace_name I> ;IT_;7
-
7/24/2019 Proced i Mien to Transportable Table Spaces
5/6
imp parle3parimp.par
00 este es el parle eJemplo
userid3K& as sysdbaK
transport_tablespace3ytablespaces3)51, )5# $. %le3mig#'11'M.dmplog3mig#'11'Mimp.logtts_owners37
-
7/24/2019 Proced i Mien to Transportable Table Spaces
6/6
;IT_?G_:_#'111#, ;IT_?G_>:_#'111#%
1.uego del import -alidar los segmentos y tablespaces del source con eldestination