PL/SQL package SYS.DBMS_BACKUP_RESTORE version 19.03.00.00 in TARGET database is not current
Posted 东南风
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PL/SQL package SYS.DBMS_BACKUP_RESTORE version 19.03.00.00 in TARGET database is not current相关的知识,希望对你有一定的参考价值。
安装完19.3后,然后打完补丁35042068(19.19),使用rman有如下的提示报错误:
[oracle@slnngk ~]$ rman target /
Recovery Manager: Release 19.0.0.0.0 - Production on Tue Apr 25 20:39:46 2023
Version 19.19.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
PL/SQL package SYS.DBMS_BACKUP_RESTORE version 19.03.00.00 in TARGET database is not current
PL/SQL package SYS.DBMS_RCVMAN version 19.03.00.00 in TARGET database is not current
connected to target database: SLNNGK (DBID=3553282077)
解决办法:
connect / as sysdba
@$ORACLE_HOME/rdbms/admin/dbmsrman.sql
@$ORACLE_HOME/rdbms/admin/prvtrmns.plb
@$ORACLE_HOME/rdbms/admin/dbmsbkrs.sql
@$ORACLE_HOME/rdbms/admin/prvtbkrs.plb
rman重新登录
[oracle@slnngk ~]$ rman target /
Recovery Manager: Release 19.0.0.0.0 - Production on Tue Apr 25 20:42:41 2023
Version 19.19.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
connected to target database: SLNNGK (DBID=3553282077)
PL/SQL 09 包 package
--定义包头
create or replace package 包名
as
变量、常量声明;
函数声明;
过程声明;
end;
--定义包体
create or replace package body 包名
as
函数实际代码;
过程实际代码;
end;
create or replace package pkg_school
as
stucount int;
procedure prc_getstucount;
end;
create or replace package body pkg_school
as
procedure prc_getstucount
as
begin
select count(*)
into stucount
from t_student;
dbms_output.put_line(‘人数为:‘||stucount);
end;
end;
以上是关于PL/SQL package SYS.DBMS_BACKUP_RESTORE version 19.03.00.00 in TARGET database is not current的主要内容,如果未能解决你的问题,请参考以下文章
执行函数时 PL/SQL Oracle Package 错误
如何在 Package Body oracle pl/sql 中添加第二个私有函数?
PL/SQL package SYS.DBMS_BACKUP_RESTORE version 19.03.00.00 in TARGET database is not current