To export models from an instance of Oracle Database 10g to a dump file, follow the instructions in "Exporting and Importing Mining Models".Before importing the models from the dump file, run the DMEIDMSYS
script to create the DMSYS
schema in Oracle Database 12c.
SQL>CONNECT / as sysdba;
SQL>@ORACLE_HOME\RDBMS\admin\dmeidmsys.sql
SQL>EXIT;
Note:
The TEMP
tablespace must already exist in the Oracle Database 12g database. The DMEIDMSYS
script uses the TEMP
and SYSAUX
tablespaces to create the DMSYS
schema.
To import the dump file into the Oracle Database 12c database:
%ORACLE_HOME\bin\impdp system\<password> dumpfile=<dumpfile_name> directory=<directory_name> logfile=<logfile_name> ..... SQL>CONNECT / as sysdba; SQL>EXECUTE dmp_sys.upgrade_models(); SQL>ALTER SYSTEM FLUSH SHARED_POOL; SQL>ALTER SYSTEM FLUSH BUFFER_CACHE; SQL>EXIT;
The upgrade_models
script migrates all data mining metadata objects and PL/SQL packages from DMSYS
to SYS
and then drops DMSYS
before upgrading the models.