Oracle12c迁移-某风险报告类系统升级暨迁移至12c-1

一、背景

随着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 /oracle@orwdb dumpfile = orw%U.dmp schemeas = oraw,orarep,orwetl,orwcfg parallel=4 logfile=expdporw20190901.log logtime =all

Import: Release 12.1.0.1.0 - Production
Copyright © 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 … …

(未完待续)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值