随着Oracle 12c的普遍推广和使用,某系统基础软件进行升级,包括数据库和中间件升级,其中最重要和关键的是数据库升级至12c。
通过此次升级实现数据库由Oracle 10g到12c,保证应用正常可用,系统运行稳定,各项业务正常运转。同时,结合12c多租户特性将分散的数据库集中起来,腾退部分资源,提高资源使用率。


整个实施过程分以下几个阶段:



使用 Oracle Data Pump 迁移 - 示例
Step1: 在源库 10g 执行 expdp
expdp xfadmin/Ocm_123@orwdb dumpfile=orw%U.dmp schemeas=oraw,orarep,orwetl,orwcfg parallel=4 exclude=statistics logfile=expdporw20190901.log
Step2: 在 目标 库 12.1 RAC 环境下使用 dbca 创建 pdb



Step3: 在 pdb 下创建表空间
sys@pdb>create tablespace hfxf_tbs datafile '+data/cdboraw/pdborw/hfxf_tbs01.dbf' size 16g;
Step4: 在 pdb 下创建用户并授权
sys@pdborw>create user hfxf identified by hfxf default tablespace hfxf_tbs quota unlimited on hfxf_tbs profile app_profile password expire; User created. sys@pdb>grant connect,resource to hfxf;

Step5:
在
pdb
下用户权限确认
sys@pdborw >select * from dba_sys_privs;
Step6:
在
pdb
下使用进行按用户进行数据导入
impdp xfadmin/Ocm_123@orwdb dumpfile=orw%U.dmp schemeas=oraw,orarep,orwetl,orwcfg parallel=4 logfile=expdporw20170901.log logtime=all Import: Release 12.1.0.1.0 - Production on Tue Sep 15 13:33:16 2013 Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
15-Sep-13 13:33:19.192
: Starting
TEST.SYS_IMPORT_SCHEMA_01;:
xfadmin
/********
logtime
=all
directory=
dump_dir
15-Sep-13 13:33:19.347
: Estimate in progress using BLOCKS method...
...
15-Sep-13 13:33:46.884
: . . imported TEST 0 KB 0 rows ... ...
(未完待续)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28373936/viewspace-2675853/ ,如需转载,请注明出处,否则将追究法律责任。