Professional Documents
Culture Documents
Agenda
Transportable Tablespaces
Self Containment Check
Create table part_tab(id number) tablespace a
partition by range (id)
(partition low value less than (100) tablespace b,
partition hi values less than (1000) tablespace c);
Create index part_ind on part_tab.id tablespace d;
Transportable tablespace export requires all 4
tablespaces
(a, b, c, d)
DBMS_TTS.TRANSPORT_SET_CHECK procedure
to verify
accepts a comma separated list of tablespace names
SELECT * FROM transport_set_violations;
11
12
Filtering Metadata
13
14
DATABASE_EXPORT
SCHEMA_EXPORT
TABLE_EXPORT
TRANSPORTABLE_EXPORT
15
Exclude Example:
expdp system/manager schema=hr exclude=statistics
vs
expdp system/manager schema=hr exclude=
SCHEMA_EXPORT/TABLE/STATISTICS
select unique seq_num, full_path
from sys.datapump_paths
where het_type = 'SCHEMA_EXPORT' AND full_path like '%STATISTICS%
order by seq_num;
77
78
221
222
223
225
226
227
SCHEMA_EXPORT/TABLE/INDEX/STATISTICS
SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
SCHEMA_EXPORT/TABLE/INDEX/STATISTICS
SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP
SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
SCHEMA_EXPORT/TABLE/STATISTICS
SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
SCHEMA_EXPORT/TABLE/STATISTICS/USER_PREF_STATISTICS
16
Include Examples:
impdp system/manager tables=hr.employees
vs
impdp system/manager schemas=hr
include=table:\"= \'EMPLOYEES\'\"
Same results
Includes all objects that have table in the path
vs
impdp system/manager schemas=hr
include=table/table:\"= \'EMPLOYEES\'\
Only includes the table
Some of the TABLE object paths
SCHEMA_EXPORT/TABLE/TABLE
SCHEMA_EXPORT/TABLE/TABLE_DATA
SCHEMA_EXPORT/TABLE/GRANT
17
18
19
Restart command:
expdp system/manager attach=datapump_exp
Export> start_job
20
21
22
23
Nokia
Nokia is a world leader in mobility
Head office in Finland; R&D, production, sales, marketing
activities around the world
Worlds #1 manufacturer of mobile devices, with estimated
40% share of global device market in 2009
Mobile device volumes 468 million units
Net sales EUR 50.7 billion
Operating profit EUR 5.0 billion
128 445 employees at year end (including Nokia Siemens
Networks)
Strong R&D presence in 16 countries
R&D investment EUR 6.0 billion
Sales in more than 150 countries
24
24
Oracle @ Nokia
20 DBAs, 2300 databases
Grid Control: used for almost 5 years, #1 tool for all
DBAs
Applications:
OLTP: 50%, Hybrid databases: 40%, DW: 10% +
Teradata
About 1800+ Oracle; also MySQL 200+, MS SQL 300+
11g: 4%
10g: 80%
9i: 15%
8i: 1%
Host platforms:
Solaris: 35%
HP-UX: 35%
Linux: 20%
Windows 10%
25
25
Oracle @ Nokia
26
26
27
27
28
29
29
30
30
31
31
32
32
33
33
column_name -- which is to
be remapped.
schema2 -- with the PL/SQL
package for remapping
function. As a default, this is
the schema of the user doing
the export.
pkg -- the name of the
PL/SQL package with the
remapping function.
function -- the name of the
remap function in the PL/SQL
package
34
34
36
36
38
38
+3591234567
N8
+3589817654
N7
+3584834819
39
39
40
40
+35815499474
N8
+3584800578
N7
+3581247839
41
41
42
42
43
44
45
45
46
Questions?
47
48
49