12c RMAN: convert between endian formats


09.04.2015
by Kamil Stawiarski

There is a great new feature related to the 12c database. The feature that will resolve a lot of problems with migrating databases between endian formats. And thanks to our new partner – Omnitec, who agreed to share with their SPARC resources – I will be able to demonstrate you this powerful solution.

Oracle has prepared a perl scripts presented in metalink note 1389592.1 to perform a migration from big endian to little endian (for example from Solaris SPARC to Exadata).

To reduce the amount of downtime required for XTTS, Oracle has enhanced RMAN’s ability to roll forward datafile copies using incremental backups, to work in a cross­platform scenario. By using a series of incremental backups, each smaller than the last, the data at the destination system can be brought almost current with the source system, before any downtime is required. The downtime required for datafile transfer and convert when combining XTTS with Cross Platform Incremental Backup is now proportional to the rate of data block changes in the source system.

In this article I will show you how to combine the full transportable option with incremental backup convertion to perform a nice and quite quick migration from database 11.2.0.4 (Solaris SPARC) to 12.1.0.2 (Solaris x86_64)

I have prepared my own bash scripts to help with this process.
You can download them from here:
http://www.ora-600.pl/oinstall/migrate.tar.bz2

At first, I will set appropriate parameters in my properties file on the source (11.2.0.4 SPARC):

1oracle@ldom01:~/migrate$ cat migrate.properties
2## parallel degree on source platform
3src_parallel_degree=2
4 
5## backup destination on source platform
6src_backup_dest=/u01/app/oracle/bkp
7 
8## source platform name
9src_platform_name='Solaris[tm] OE (64-bit)'
10 
11## backup destination on the target platform
12target_backup_dest=/export/home/oracle/bkp
13 
14## datafile destination directory on the target platform
15target_datafile_dest=/u01/app/oracle/oracle/skiper
16 
17## parallel degree on target platform
18target_parallel_degree=2

Now, let’s create level 0 backup of all non system tablespaces (11.2.0.4 SPARC):

1oracle@ldom01:~/migrate$ ./prepare_backup0.sh
2run {
3allocate channel c1 device type disk;
4allocate channel c2 device type disk;
5backup as compressed backupset incremental level 0 datafile 5 format '/u01/app/oracle/bkp/example01_2015.04.09_14.18.18';
6backup as compressed backupset incremental level 0 datafile 4 format '/u01/app/oracle/bkp/users01_2015.04.09_14.18.18';
7}
8run {
9allocate channel c1 device type disk;
10allocate channel c2 device type disk;
11restore from platform 'Solaris[tm] OE (64-bit)' foreign datafile 5 format '/u01/app/oracle/oracle/skiper/example01.dbf' from backupset '/export/home/oracle/bkp/example01_2015.04.09_14.18.18';
12restore from platform 'Solaris[tm] OE (64-bit)' foreign datafile 4 format '/u01/app/oracle/oracle/skiper/users01.dbf' from backupset '/export/home/oracle/bkp/users01_2015.04.09_14.18.18';
13}
14 
15Recovery Manager: Release 11.2.0.4.0 - Production on Thu Apr 9 14:18:18 2015
16 
17Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
18 
19connected to target database: SKIPER (DBID=2999793859)
20 
21RMAN> run {
222> allocate channel c1 device type disk;
233> allocate channel c2 device type disk;
244> backup as compressed backupset incremental level 0 datafile 5 format '/u01/app/oracle/bkp/example01_2015.04.09_14.18.18';
255> backup as compressed backupset incremental level 0 datafile 4 format '/u01/app/oracle/bkp/users01_2015.04.09_14.18.18';
266> }
277>
28using target database control file instead of recovery catalog
29allocated channel: c1
30channel c1: SID=20 device type=DISK
31 
32allocated channel: c2
33channel c2: SID=144 device type=DISK
34 
35Starting backup at 09-APR-15
36channel c1: starting compressed incremental level 0 datafile backup set
37channel c1: specifying datafile(s) in backup set
38input datafile file number=00005 name=/u01/app/oracle/oradata/skiper/example01.dbf
39channel c1: starting piece 1 at 09-APR-15
40channel c1: finished piece 1 at 09-APR-15
41piece handle=/u01/app/oracle/bkp/example01_2015.04.09_14.18.18 tag=TAG20150409T141820 comment=NONE
42channel c1: backup set complete, elapsed time: 00:00:07
43Finished backup at 09-APR-15
44 
45Starting backup at 09-APR-15
46channel c1: starting compressed incremental level 0 datafile backup set
47channel c1: specifying datafile(s) in backup set
48input datafile file number=00004 name=/u01/app/oracle/oradata/skiper/users01.dbf
49channel c1: starting piece 1 at 09-APR-15
50channel c1: finished piece 1 at 09-APR-15
51piece handle=/u01/app/oracle/bkp/users01_2015.04.09_14.18.18 tag=TAG20150409T141827 comment=NONE
52channel c1: backup set complete, elapsed time: 00:00:01
53Finished backup at 09-APR-15
54released channel: c1
55released channel: c2
56 
57Recovery Manager complete.

My script has created two files:

  • initial_backup.rman
  • initial_restore.rman

First one is used to create actual level 0 backupsets for the datafiles.
The second one will be used to restore all datafiles and convert them between endians.

So now let’s copy backupsets and scripts to the target platform (12.1.0.2 x86_64)

1oracle@ryba:~$ rsync -e ssh -avz oracle@10.230.9.30:~/migrate .
2Password:
3receiving incremental file list
4migrate/
5migrate/initial_backup.rman
6migrate/initial_restore.rman
7migrate/migrate.properties
8migrate/prepare_backup0.sh
9migrate/prepare_backup1.sh
10 
11sent 110 bytes  received 2,167 bytes  650.57 bytes/sec
12total size is 5,034  speedup is 2.21
13oracle@ryba:~$ rsync -e ssh -avz oracle@10.230.9.30:/u01/app/oracle/bkp .
14Password:
15receiving incremental file list
16bkp/
17bkp/example01_2015.04.09_14.18.18
18bkp/users01_2015.04.09_14.18.18
19 
20sent 53 bytes  received 20,698,418 bytes  1,009,681.51 bytes/sec
21total size is 23,158,784  speedup is 1.12

Now I can perform an initial restore, using provided scripts:

1oracle@ryba:~/migrate$ rman target / @initial_restore.rman
2 
3Recovery Manager: Release 12.1.0.2.0 - Production on Thu Apr 9 17:46:01 2015
4 
5Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.
6 
7connected to target database: SKIPER (DBID=2999750723)
8 
9RMAN> run {
102> allocate channel c1 device type disk;
113> allocate channel c2 device type disk;
124> restore from platform 'Solaris[tm] OE (64-bit)' foreign datafile 5 format '/u01/app/oracle/oradata/skiper/example01.dbf' from backupset '/export/home/oracle/bkp/example01_2015.04.09_14.18.18';
135> restore from platform 'Solaris[tm] OE (64-bit)' foreign datafile 4 format '/u01/app/oracle/oradata/skiper/users01.dbf' from backupset '/export/home/oracle/bkp/users01_2015.04.09_14.18.18';
146> }
157>
16using target database control file instead of recovery catalog
17allocated channel: c1
18channel c1: SID=8 device type=DISK
19 
20allocated channel: c2
21channel c2: SID=123 device type=DISK
22 
23Starting restore at 09-APR-15
24 
25channel c1: starting datafile backup set restore
26channel c1: specifying datafile(s) to restore from backup set
27channel c1: restoring foreign file 00005
28channel c1: reading from backup piece /export/home/oracle/bkp/example01_2015.04.09_14.18.18
29channel c1: restoring foreign file 5 to /u01/app/oracle/oradata/skiper/example01.dbf
30channel c1: foreign piece handle=/export/home/oracle/bkp/example01_2015.04.09_14.18.18
31channel c1: restored backup piece 1
32channel c1: restore complete, elapsed time: 00:00:16
33Finished restore at 09-APR-15
34 
35Starting restore at 09-APR-15
36 
37channel c1: starting datafile backup set restore
38channel c1: specifying datafile(s) to restore from backup set
39channel c1: restoring foreign file 00004
40channel c1: reading from backup piece /export/home/oracle/bkp/users01_2015.04.09_14.18.18
41channel c1: restoring foreign file 4 to /u01/app/oracle/oradata/skiper/users01.dbf
42channel c1: foreign piece handle=/export/home/oracle/bkp/users01_2015.04.09_14.18.18
43channel c1: restored backup piece 1
44channel c1: restore complete, elapsed time: 00:00:02
45Finished restore at 09-APR-15
46released channel: c1
47released channel: c2
48 
49Recovery Manager complete.

Meanwhile I will do some changes in the source database (11.2.0.4 SPARC):

1SQL> alter user hr account unlock identified by hr;
2 
3User altered.
4 
5SQL> conn hr/hr
6Connected.
7SQL> create view emp_sal4000 as select * from employees where salary>=4000;
8 
9View created.
10 
11SQL> update employees
12  2  set last_name='Dupa'
13  3  where employee_id=200;
14 
151 row updated.
16 
17SQL> commit;
18 
19Commit complete.

And now I will create some incremental backups on the source database (11.2.0.4 SPARC)

1oracle@ldom01:~/migrate$ ./prepare_backup1.sh
2run {
3allocate channel c1 device type disk;
4allocate channel c2 device type disk;
5backup as compressed backupset incremental level 1 datafile 5 format '/u01/app/oracle/bkp/example01_2015.04.09_14.44.25';
6backup as compressed backupset incremental level 1 datafile 4 format '/u01/app/oracle/bkp/users01_2015.04.09_14.44.25';
7}
8run {
9allocate channel c1 device type disk;
10allocate channel c2 device type disk;
11recover from platform 'Solaris[tm] OE (64-bit)' foreign datafilecopy  '/u01/app/oracle/oradata/skiper/example01.dbf' from backupset '/export/home/oracle/bkp/example01_2015.04.09_14.44.25';
12recover from platform 'Solaris[tm] OE (64-bit)' foreign datafilecopy  '/u01/app/oracle/oradata/skiper/users01.dbf' from backupset '/export/home/oracle/bkp/users01_2015.04.09_14.44.25';
13}
14 
15Recovery Manager: Release 11.2.0.4.0 - Production on Thu Apr 9 14:44:26 2015
16 
17Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
18 
19connected to target database: SKIPER (DBID=2999793859)
20 
21RMAN> run {
222> allocate channel c1 device type disk;
233> allocate channel c2 device type disk;
244> backup as compressed backupset incremental level 1 datafile 5 format '/u01/app/oracle/bkp/example01_2015.04.09_14.44.25';
255> backup as compressed backupset incremental level 1 datafile 4 format '/u01/app/oracle/bkp/users01_2015.04.09_14.44.25';
266> }
277>
28using target database control file instead of recovery catalog
29allocated channel: c1
30channel c1: SID=147 device type=DISK
31 
32allocated channel: c2
33channel c2: SID=15 device type=DISK
34 
35Starting backup at 09-APR-15
36channel c1: starting compressed incremental level 1 datafile backup set
37channel c1: specifying datafile(s) in backup set
38input datafile file number=00005 name=/u01/app/oracle/oradata/skiper/example01.dbf
39channel c1: starting piece 1 at 09-APR-15
40channel c1: finished piece 1 at 09-APR-15
41piece handle=/u01/app/oracle/bkp/example01_2015.04.09_14.44.25 tag=TAG20150409T144428 comment=NONE
42channel c1: backup set complete, elapsed time: 00:00:01
43Finished backup at 09-APR-15
44 
45Starting backup at 09-APR-15
46channel c1: starting compressed incremental level 1 datafile backup set
47channel c1: specifying datafile(s) in backup set
48input datafile file number=00004 name=/u01/app/oracle/oradata/skiper/users01.dbf
49channel c1: starting piece 1 at 09-APR-15
50channel c1: finished piece 1 at 09-APR-15
51piece handle=/u01/app/oracle/bkp/users01_2015.04.09_14.44.25 tag=TAG20150409T144429 comment=NONE
52channel c1: backup set complete, elapsed time: 00:00:01
53Finished backup at 09-APR-15
54released channel: c1
55released channel: c2
56 
57Recovery Manager complete.

Please notice that the above script has created files, which will be executed in the proper order by do_recover.sh

1oracle@ldom01:~/migrate$ ls -al inc_recover*
2-rw-r--r--   1 oracle   oinstall     458 Apr  9 14:44 inc_recover1.rman
3-rw-r--r--   1 oracle   oinstall     458 Apr  9 15:00 inc_recover2.rman
4-rw-r--r--   1 oracle   oinstall     458 Apr  9 15:00 inc_recover3.rman

Now I will copy the incremental backups and appropriate scripts. After that I will perform a recovery with endian convertion on the target platform (12.1.0.2 x86_64)

1oracle@ryba:~$ rsync -e ssh -avz oracle@10.230.9.30:~/migrate .
2Password:
3receiving incremental file list
4migrate/
5migrate/do_recover.sh
6migrate/inc_backup.rman
7migrate/inc_recover1.rman
8migrate/inc_recover2.rman
9migrate/inc_recover3.rman
10 
11sent 110 bytes  received 1,387 bytes  427.71 bytes/sec
12total size is 6,849  speedup is 4.58
13oracle@ryba:~$ rsync -e ssh -avz oracle@10.230.9.30:/u01/app/oracle/bkp .
14Password:
15receiving incremental file list
16bkp/
17bkp/example01_2015.04.09_14.44.25
18bkp/example01_2015.04.09_15.00.02
19bkp/example01_2015.04.09_15.00.11
20bkp/users01_2015.04.09_14.44.25
21bkp/users01_2015.04.09_15.00.02
22bkp/users01_2015.04.09_15.00.11
23 
24sent 129 bytes  received 3,638 bytes  837.11 bytes/sec
25total size is 23,404,544  speedup is 6,213.05
26oracle@ryba:~$ cd migrate/
27oracle@ryba:~/migrate$ ./do_recover.sh
28 
29Recovery Manager: Release 12.1.0.2.0 - Production on Thu Apr 9 17:59:56 2015
30 
31Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.
32 
33connected to target database: SKIPER (DBID=2999750723)
34 
35RMAN> run {
362> allocate channel c1 device type disk;
373> allocate channel c2 device type disk;
384> recover from platform 'Solaris[tm] OE (64-bit)' foreign datafilecopy  '/u01/app/oracle/oradata/skiper/example01.dbf' from backupset '/export/home/oracle/bkp/example01_2015.04.09_14.44.25';
395> recover from platform 'Solaris[tm] OE (64-bit)' foreign datafilecopy  '/u01/app/oracle/oradata/skiper/users01.dbf' from backupset '/export/home/oracle/bkp/users01_2015.04.09_14.44.25';
406> }
417>
42using target database control file instead of recovery catalog
43allocated channel: c1
44channel c1: SID=8 device type=DISK
45 
46allocated channel: c2
47channel c2: SID=123 device type=DISK
48 
49Starting restore at 09-APR-15
50 
51channel c1: starting datafile backup set restore
52channel c1: specifying datafile(s) to restore from backup set
53channel c1: restoring foreign file /u01/app/oracle/oradata/skiper/example01.dbf
54channel c1: reading from backup piece /export/home/oracle/bkp/example01_2015.04.09_14.44.25
55channel c1: foreign piece handle=/export/home/oracle/bkp/example01_2015.04.09_14.44.25
56channel c1: restored backup piece 1
57channel c1: restore complete, elapsed time: 00:00:01
58Finished restore at 09-APR-15
59 
60Starting restore at 09-APR-15
61 
62channel c1: starting datafile backup set restore
63channel c1: specifying datafile(s) to restore from backup set
64channel c1: restoring foreign file /u01/app/oracle/oradata/skiper/users01.dbf
65channel c1: reading from backup piece /export/home/oracle/bkp/users01_2015.04.09_14.44.25
66channel c1: foreign piece handle=/export/home/oracle/bkp/users01_2015.04.09_14.44.25
67channel c1: restored backup piece 1
68channel c1: restore complete, elapsed time: 00:00:01
69Finished restore at 09-APR-15
70released channel: c1
71released channel: c2
72 
73Recovery Manager complete.

We are almost done 🙂 Now we have to make tablespaces in READ ONLY mode on the source database (11.2.0.4 SPARC) and create final incremental backups, transfer them to destination platform (12.1.0.2 x86_64) and perform recover.

MAINTENANCE WINDOW STARTS

SOURCE (11.2.0.4 SPARC):

1SQL> alter tablespace example read only;
2 
3Tablespace altered.
4 
5SQL> alter tablespace users read only;
6 
7Tablespace altered.
1oracle@ldom01:~/migrate$ ./prepare_backup1.sh
2run {
3allocate channel c1 device type disk;
4allocate channel c2 device type disk;
5backup as compressed backupset incremental level 1 datafile 5 format '/u01/app/oracle/bkp/example01_2015.04.09_15.31.51';
6backup as compressed backupset incremental level 1 datafile 4 format '/u01/app/oracle/bkp/users01_2015.04.09_15.31.51';
7}
8 
9(...)

TARGET (12.1.0.2 x86_64)

1oracle@ryba:~$ rsync -e ssh -avz oracle@10.230.9.30:/u01/app/oracle/bkp .
2Password:
3receiving incremental file list
4bkp/
5bkp/example01_2015.04.09_15.31.51
6bkp/users01_2015.04.09_15.31.51
7 
8sent 53 bytes  received 1,487 bytes  440.00 bytes/sec
9total size is 23,486,464  speedup is 15,250.95
10oracle@ryba:~$ rsync -e ssh -avz oracle@10.230.9.30:~/migrate .
11Password:
12receiving incremental file list
13migrate/
14migrate/inc_backup.rman
15migrate/inc_recover4.rman
16 
17sent 59 bytes  received 806 bytes  247.14 bytes/sec
18total size is 7,307  speedup is 8.45
1oracle@ryba:~/migrate$ ./do_recover.sh
2 
3Recovery Manager: Release 12.1.0.2.0 - Production on Thu Apr 9 18:24:30 2015
4 
5Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.
6 
7connected to target database: SKIPER (DBID=2999750723)
8 
9RMAN> run {
102> allocate channel c1 device type disk;
113> allocate channel c2 device type disk;
124> recover from platform 'Solaris[tm] OE (64-bit)' foreign datafilecopy  '/u01/app/oracle/oradata/skiper/example01.dbf' from backupset '/export/home/oracle/bkp/example01_2015.04.09_14.44.25';
135> recover from platform 'Solaris[tm] OE (64-bit)' foreign datafilecopy  '/u01/app/oracle/oradata/skiper/users01.dbf' from backupset '/export/home/oracle/bkp/users01_2015.04.09_14.44.25';
146> }
157>
16using target database control file instead of recovery catalog
17allocated channel: c1
18channel c1: SID=8 device type=DISK
19 
20allocated channel: c2
21channel c2: SID=123 device type=DISK
22 
23Starting restore at 09-APR-15
24 
25channel c1: starting datafile backup set restore
26channel c1: specifying datafile(s) to restore from backup set
27channel c1: restoring foreign file /u01/app/oracle/oradata/skiper/example01.dbf
28channel c1: reading from backup piece /export/home/oracle/bkp/example01_2015.04.09_14.44.25
29released channel: c1
30released channel: c2
31RMAN-00571: ===========================================================
32RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
33RMAN-00571: ===========================================================
34RMAN-03002: failure of restore command at 04/09/2015 18:24:34
35ORA-19870: error while restoring backup piece /export/home/oracle/bkp/example01_2015.04.09_14.44.25
36ORA-19639: file /u01/app/oracle/oradata/skiper/example01.dbf is more current than this incremental backup
37ORA-19642: start SCN of incremental backup is 905115
38ORA-19641: backup datafile checkpoint is SCN 906080 time 04/09/2015 14:44:28
39ORA-19640: datafile checkpoint is SCN 907114 time 04/09/2015 15:00:13
40 
41(...)
42 
43RMAN> run {
442> allocate channel c1 device type disk;
453> allocate channel c2 device type disk;
464> recover from platform 'Solaris[tm] OE (64-bit)' foreign datafilecopy  '/u01/app/oracle/oradata/skiper/example01.dbf' from backupset '/export/home/oracle/bkp/example01_2015.04.09_15.31.51';
475> recover from platform 'Solaris[tm] OE (64-bit)' foreign datafilecopy  '/u01/app/oracle/oradata/skiper/users01.dbf' from backupset '/export/home/oracle/bkp/users01_2015.04.09_15.31.51';
486> }
497>
50using target database control file instead of recovery catalog
51allocated channel: c1
52channel c1: SID=8 device type=DISK
53 
54allocated channel: c2
55channel c2: SID=123 device type=DISK
56 
57Starting restore at 09-APR-15
58 
59channel c1: starting datafile backup set restore
60channel c1: specifying datafile(s) to restore from backup set
61channel c1: restoring foreign file /u01/app/oracle/oradata/skiper/example01.dbf
62channel c1: reading from backup piece /export/home/oracle/bkp/example01_2015.04.09_15.31.51
63channel c1: foreign piece handle=/export/home/oracle/bkp/example01_2015.04.09_15.31.51
64channel c1: restored backup piece 1
65channel c1: restore complete, elapsed time: 00:00:01
66Finished restore at 09-APR-15
67 
68Starting restore at 09-APR-15
69 
70channel c1: starting datafile backup set restore
71channel c1: specifying datafile(s) to restore from backup set
72channel c1: restoring foreign file /u01/app/oracle/oradata/skiper/users01.dbf
73channel c1: reading from backup piece /export/home/oracle/bkp/users01_2015.04.09_15.31.51
74channel c1: foreign piece handle=/export/home/oracle/bkp/users01_2015.04.09_15.31.51
75channel c1: restored backup piece 1
76channel c1: restore complete, elapsed time: 00:00:01
77Finished restore at 09-APR-15
78released channel: c1
79released channel: c2
80 
81Recovery Manager complete.

The error messages are caused by the recovery of the data files, using backups which are already applied to those data files. You can safely ignore this error message.

Now I will use the full transportable export/import to finalize the migration. The whole feature is described here:
http://www.oracle.com/technetwork/database/enterprise-edition/full-transportable-wp-12c-1973971.pdf

1oracle@ldom01:~$ expdp full=y transportable=always directory=dir_oracle dumpfile=skiper_transport.dmp version=12 exclude=statistics metrics=y logfile=skiper_transport.dmp.log
2 
3Export: Release 11.2.0.4.0 - Production on Thu Apr 9 15:47:04 2015
4 
5Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
6 
7Username: / as sysdba
8 
9Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
10With the Partitioning, OLAP, Data Mining and Real Application Testing options
11Starting "SYS"."SYS_EXPORT_FULL_01":  /******** AS SYSDBA full=y transportable=always directory=dir_oracle dumpfile=skiper_transport.dmp version=12 exclude=statistics metrics=y logfile=skiper_transport.dmp.log
12Startup took 2 seconds
13Estimate in progress using BLOCKS method...
14 
15(...)
16 
17******************************************************************************
18Dump file set for SYS.SYS_EXPORT_FULL_01 is:
19  /export/home/oracle/skiper_transport.dmp
20******************************************************************************
21Datafiles required for transportable tablespace EXAMPLE:
22  /u01/app/oracle/oradata/skiper/example01.dbf
23Datafiles required for transportable tablespace USERS:
24  /u01/app/oracle/oradata/skiper/users01.dbf
25Job "SYS"."SYS_EXPORT_FULL_01" completed with 2 error(s) at Thu Apr 9 15:54:10 2015 elapsed 0 00:07:03

So nothing left to do, but importing our metadata on the target system (12.1.0.2 x86_64)

1oracle@ryba:~$ impdp directory=dir_oracle dumpfile=skiper_transport.dmp logfile=skiper_transport.dmp.log transport_datafiles='/u01/app/oracle/oradata/skiper/users01.dbf','/u01/app/oracle/oradata/skiper/example01.dbf' metrics=y
2 
3Import: Release 12.1.0.2.0 - Production on Thu Apr 9 19:05:12 2015
4 
5Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.
6 
7Username: / as sysdba
8 
9Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
10With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
11Startup took 0 seconds
12Master table "SYS"."SYS_IMPORT_TRANSPORTABLE_01" successfully loaded/unloaded
13Starting "SYS"."SYS_IMPORT_TRANSPORTABLE_01":  /******** AS SYSDBA directory=dir_oracle dumpfile=skiper_transport.dmp logfile=skiper_transport.dmp.log transport_datafiles=/u01/app/oracle/oradata/skiper/users01.dbf,/u01/app/oracle/oradata/skiper/example01.dbf metrics=y
14Processing object type DATABASE_EXPORT/PRE_SYSTEM_IMPCALLOUT/MARKER
15ORA-39342: Internal error - failed to import internal objects tagged with DATAPUMP due to ORA-00955: name is already used by an existing object.
16 
17(...)

You will see a lot of errors while importing but most of them are: "Dependent object type %s skipped, base object type %s already exists" – they can be safely ignored.

Other errors may concern for example an old apex schema like "APEX_030200″. This user can be dropped after the import.

The import messages, that will need your attention and some manual steps, looks like this:

1ORA-39139: Data Pump does not support XMLType objects in version "OE"."WAREHOUSES".  will be skipped.

The above error can cause dependent problems:

1ORA-39112: Dependent object type OBJECT_GRANT:"OE" skipped, base object type TABLE:"OE"."WAREHOUSES" creation failed
2ORA-39112: Dependent object type OBJECT_GRANT:"OE" skipped, base object type TABLE:"OE"."WAREHOUSES" creation failed
3ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."WAREHOUSES" creation failed
4ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."WAREHOUSES" creation failed
5ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."WAREHOUSES" creation failed
6ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."WAREHOUSES" creation failed
7ORA-39112: Dependent object type INDEX:"OE"."WAREHOUSES_PK" skipped, base object type TABLE:"OE"."WAREHOUSES" creation failed
8ORA-39112: Dependent object type INDEX:"OE"."WHS_LOCATION_IX" skipped, base object type TABLE:"OE"."WAREHOUSES" creation failed
9ORA-39112: Dependent object type CONSTRAINT:"OE"."WAREHOUSES_PK" skipped, base object type TABLE:"OE"."WAREHOUSES" creation failed

Those errors have to be resolved manually.

After the import you will see some compilation problems in the SYSMAN schema. Since this user is no longer present in standard 12c installation, you can safely remove it.

MAINTENANCE WINDOW ENDS


Contact us

Database Whisperers sp. z o. o. sp. k.
al. Jerozolimskie 200, 3rd floor, room 342
02-486 Warszawa
NIP: 5272744987
REGON:362524978
+48 508 943 051
+48 661 966 009
info@ora-600.pl

Newsletter Sign up to be updated