Oracle 12C rman

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle 12C rman相关的知识,希望对你有一定的参考价值。

1.1. RMAN连接数据库
RMAN可通过操作系统认证和密码文件两种方式连接到一个目标数据库,使用RMAN备份恢复工具的用户需要具有SYSDBA或SYSBACKUP系统权限,如果用户需要连接到恢复目录,需要被授予RECOVERY_CATALOG_OWNER对象权限。
D:\instantclient_12_2>sqlplus sys/密码@clonepdb_plug as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Mon Jan 29 10:50:45 2018

Copyright (c) 1982, 2016, Oracle. All rights reserved.

Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

[email protected]_plugPDB> create user cndba identified by cndba
2 /

User created.

Elapsed: 00:00:01.30
[email protected]_plugPDB> grant sysbackup to cndba;

Grant succeeded.

Elapsed: 00:00:00.42
C:\Users\Administrator>rman

恢复管理器: Release 12.2.0.1.0 - Production on 星期一 1月 29 10:51:10 2018

Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.

RMAN> connect target "cndba/[email protected]_plug as sysbackup"

已连接到目标数据库: NEWTEST:CLONEPDB_PLUG (DBID=50957894)
C:\Users\Administrator>rman

恢复管理器: Release 12.2.0.1.0 - Production on 星期一 1月 29 10:55:35 2018

Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.

RMAN> connect target "cndba/[email protected] as sysbackup"

已连接到目标数据库: NEWTEST (DBID=1779551310)
D:\instantclient_12_2>sqlplus sys/密码@newtest as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Mon Jan 29 10:55:16 2018

Copyright (c) 1982, 2016, Oracle. All rights reserved.

Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

[email protected]CDB> create user c##cndba identified by c##cndba
2 /

User created.

Elapsed: 00:00:00.21
[email protected]CDB> grant sysbackup to c##cndba;

Grant succeeded.

Elapsed: 00:00:00.07
C:\Users\Administrator>rman

恢复管理器: Release 12.2.0.1.0 - Production on 星期一 1月 29 10:52:59 2018

Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.

RMAN> connect target "c##cndba/[email protected]_plug as sysbackup"

已连接到目标数据库: NEWTEST:CLONEPDB_PLUG (DBID=50957894)
C:\Users\Administrator>rman

恢复管理器: Release 12.2.0.1.0 - Production on 星期一 1月 29 10:53:54 2018

Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.

RMAN> connect target "c##cndba/[email protected] as sysbackup"

已连接到目标数据库: NEWTEST (DBID=1779551310)
说明sysbackup用户没有公用和本地用户区别

以上是关于Oracle 12C rman的主要内容,如果未能解决你的问题,请参考以下文章

oracle weblogic 11g和 12c的区别

CenOS7 部署 数据库 Oracle 12c + 启动阶段与关闭状态 [12.2 企业版]

关于 Oracle 12c 中的用户

从 oracle 12c 升级到 oracle 19c 导致查询性能下降

linux中安装oracle12c透明网关

使用 Oracle 12c 进行 Flyway 迁移