oracle-04045,Oracle ORA-04045 errors during recompilation/revalidation

About UTLRP.SQL

===============

+ What is UTLRP.SQL?

This script recompiles invalid PLSQL modules.

NOTE: This script DOES NOT Invalidate any PLSQL modules like utlirp.sql and utlip.sql

+ What this script does?

This script recompiles all existing invalid PL/SQL modules in a database.

This is a fairly general script that can be used at any time to recompile all existing invalid PL/SQL modules in a database If run as one of the last steps during migration/upgrade/downgrade this script will validate all PL/SQL modules (i.e. procedures, functions, packages, triggers, types, views, libraries) during the migration step itself.

+ Any other script called within UTLRP.SQL?

Yes. It invokes utlrcmp.sql

+ When it is best to run UTLRP.SQL?

Although invalid PL/SQL modules get automatically recompiled on use, it is useful to run this script ahead of time (e.g. as one of the last steps in your migration), since this will either eliminate or minimize subsequent latencies caused due to on-demand automatic recompilation at runtime. Oracle highly recommends running this script towards the end of any database migration/upgrade/downgrade.

About UTLIRP.SQL

===============

+ What is UTLIRP.SQL ?

This is a SQL script which Invalidates PL/SQL modules viz.,procedures, functions, packages, types, triggers, views in a database This script expects standard.sql, dbmsstdx.sql files to be available in the current directory.

There should be no other DDL on the database while running the script.

+ What UTLIRP.SQL does?

In 9i:

The utlirp.sql script recompiles existing PL/SQL modules in the FORMAT required by the NEW DATABASE with the below steps:

A. This script first alters certain dictionary tables.

B. Then, it reloads package STANDARD and DBMS_STANDARD,which are necessary for using PL/SQL.

C. Finally, it triggers a recompile of all PL/SQL modules, such as packages,procedures, types, and so on. Primarily used for WORD-SIZE conversion

In 10g and higher:

The utlirp.sql script recompiles existing PL/SQL modules in the FORMAT required by the NEW DATABASE with the below steps:

A. This script first alters certain dictionary tables.

B. Then, it reloads package STANDARD and DBMS_STANDARD, which are necessary for using PL/SQL. All DDL Triggers are compiled at this time as well.

C. Unlike in 9i, the database must be restarted and UTLRP.SQL run to recompile the remaining invalid objects.

+ Any other script called within UTLIRP.SQL?

Yes. It invokes utlip.sql and utlrp.sql

+ When it is best to run UTLIRP.SQL?

A) Must during WORD-SIZE conversion where it first Invalidates PLSQL modules and then recompiles PLSQL modules in the FORMAT required by the NEW DATABASE. This situation makes sense because an action was taken that caused the old code's format to be inconsistent with what it's supposed to be. e.g., when migrating a 32 bit database to a 64 bit database or vice-versa

B) Can also be run whenever UTLRP.SQL needs to be run to validate invalid objects as this script only invalidates and then validates all the PLSQL modules.

About UTLIP.SQL

==============

+ What is UTLIP.SQL

This script Invalidates PL/SQL modules. This script can be used to invalidate all existing PL/SQL modules (i.e. procedures, functions, packages, types, triggers, views) in a database so that they will be FORCED to be RECOMPILED LATER on either automatically or deliberately. Run this script connected as SYSDBA from SQL*PLUS. This script expects the following files to be available in the current directory: standard.sql, dbmsstdx.sql, dbmssql.sql, prvtssql.plb, prvtsql.plb, plitblm.sql

There should be no other DDL on the database while running the script.

+ What UTLIP.SQL does?

This script regenerates the compiled code because an action was taken that caused the old code's format to be inconsistent with what it's supposed to be. e.g., when migrating a 32 bit database to a 64 bit database or vice-versa. THIS IS THE ACTUAL SCRIPT WHICH DOES THE REGENERATION OF COMPILED CODE. The actual series of steps can be checked reading the script which has a few step by step operations

+ Any other script called within UTLIP.SQL?

Yes. It calls standard, dbmsstdx

+ When it is best to run UTLIP.SQL?

The best would be during WORD-SIZE conversion from 32bit to 64bit and vice-versa.

Where are these SCRIPTS located?

============================

The scripts are found in the standard admin directory of the Oracle Home.

$ORACLE_HOME/rdbms/admin

Which script is better?

=================

-> UTLIP.SQL - This is the actual script which does the regeneration of compiled code.

-> UTLRP.SQL - Validates all invalid objects and can be run anytime. (this in-turn is called by utlirp.sql) -> UTLIRP.SQL - Simply calls utlip.sql and utlrp.sql(9i only) which MUST be run during WORD-SIZE conversion (If utlip.sql is not run manually) and during normal validating of invalid objects. (if utlrp.sql is not run) Summary ======== The best would be to run UTLIRP.SQL which would do both regeneration of compiled code of PL/SQL modules (which UTLIP.SQL does) and then Recompiles all Invalid PL/SQL modules again. (which UTLRP.SQL does)

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/555800.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

分布式和微服务是什么?二者的区别又是什么?

一、分布式系统 在《分布式系统原理与范型》一书中有如下定义: “分布式系统是若干独立计算机的集合,这些计算机对于用户来说就像单个相关系统”; 分布式系统是由一组通过网络进行通信、为了完成共同的任务而协调工作的计算机节点组成的系统…

SpringCloud 超详细个人笔记

文章目录SpringCloud1、常见面试题2、微服务概述2.1、什么是微服务2.2、微服务和微服务架构2.3、微服务优缺点2.4、微服务技术栈有哪些?2.5、为什么选择SpringCloud 作为微服务架构2.5.1、选型依据2.5.2、当前各大IT公司用的微服务架构有哪些?2.5.3、各微…

oracle的存储设置默认参数,oracle初始化参数设置

该Oracle教程将告诉诸位学习Oracle的朋友:oracle初始化参数设置。 ALTER DATABASE DATAFILEd:\ORANT\DATABASE\USER1ORCL.ORA RESIZE 1000M;CREATE TABLESPACE INDEX_DATA DATAFILEd:\ORANT\DATABASE\INDEX_DATA SIZE 500M;ALTER DATABASE DATAFILEd:\ORANT\DATABAS…

oracle server process,Oracle体系结构及备份(四)server-process

一 什么是服务器进程 除了 Oracle 的后台进程外,还有一些进程是代表用户的,称为服务器进程。这些服务器进程负责按照用户的要求检索数据,并将结果返回给用户。此外,还负责为用户修改缓冲区高数缓存中的数据。 当用户连接到 Oracle…

潘多拉路由器搭建php,MT7620A 无线路由 极路由 1S 定制版 OPERWRT 潘多拉 中继 营销...

定制版 机器 非原版极路由 1S原版极路由下面连接购买https://item.taobao.com/item.htm?id527531952640这个机器是大客户 定制版 营销路由 硬件和极路由 1S 完全相同,只简化了 SD卡座更换为塑胶外壳可以自己DIY 增加USB 接口和SD卡座电源接口为 MICRO USB接口&…

c 将txt导入oracle,如何把文本数据导入Oracle中?

1、首先,服务器端的侦听服务必须已经开启。测试方法:Dos 下输入C:\>sqlplus username/passwordserviceName2、然后使用 Oracle 的 sqlldr 命令进行数据的导入前期条件1)Oracle 数据库端必须已经建好了需要导入的数据表的结构2)一个数据源文件 下面例子…

linux close 头文件,Linux open close read write lseek函数的使用

我们经常需要在Linux中进行文件操作,今天我就来分享下文件操作用到的一些函数1 open所需头文件:函数原型:int open(const char *pathname,flags,int perms)pathname:被打开的文件名,可包含路径flag :文件打…

mac同步linux文件夹在哪里设置,Linux和Mac上的一些特殊文件将不再同步

近日有用户报告, Mac/Linux上创建的某些文件, 无法成功同步到Windows平台上. 我们对这个问题进行了修正. 这个修正可能会影响到Linux和Mac用户中的极少数, 大概为数百位用户.简单总结: 如果你是Linux和Mac用户, 并且注意到最近”Nutstore”文件夹中存在两个名字类似, 内容完全…

顺序表的实现(头插、尾插、头删、尾删、查找、删除、插入)

目录 一. 数据结构相关概念​ 二、线性表 三、顺序表概念及结构 3.1顺序表一般可以分为: 3.2 接口实现: 四、基本操作实现 4.1顺序表初始化 4.2检查空间,如果满了,进行增容​编辑 4.3顺序表打印 4.4顺序表销毁 4.5顺…

linux系统分区扩展,linux系统扩展根分区容量大小

#查看新增加的磁盘[rootcentos002 ~]# fdisk -lDisk /dev/sda: 21.5 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylindersUnits cylinders of 16065 * 512 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 5…

linux命令 socket,如何从linux中的命令行向socket.io websocket发送消息?

是否可以使用linux中的命令行向我的localhost服务器(节点)发送socket.io消息?我不确定这是否可行……从稀缺的谷歌搜索结果来看,我猜这不可能或不复杂……我的socket.io代码如下所示:var io require(socket.io);var socket;socket io.listen(server, {…

Linux编译soci库,Soci库linux下的编译方法

Soci库的linux编译方法1、下载soci库源码2、在目标机器上配置数据库环境以oracle为例:(其他数据库只需要简单安装客户端即可)A)下载oracle客户端安装包oracle-instantclient-basic-12.1.0.5-1.i386.rpmoracle-instantclient-devel-12.1.0.5-1.i386.rpmoracle-instan…

为什么有了接口还要增加一层抽象类?

文章目录接口:抽象类:区别:表象:深层次理解:类图使用抽象类前使用抽象类后为什么有了接口还要增加一层抽象类?接口: 接口里的方法和抽象类中的方法一样,它的方法是抽象的&#xff0…

linux iptables 编译,Linux下编译安装iptables

Linux下如何编译安装iptables实例:先卸载系统已经安装的iptables,卸载前需备份三个文档:iptables启动脚本,iptables-config配置文档,以及已经建立好的iptables规则文档[rootlinuxidc ~]# cp /etc/init.d/iptables ~/ip…

【java基础】——java枚举类型基本介绍

枚举enum类型是Java 5新增的特性,它是一种新的类型,允许用常量来表示特定的数据片断,而且全部都以类型安全的形式来表示。 1、常量的使用 在JDK1.5之前,我们定义常量都是:public static fianl…。现在好了&#xff0…

linux密文解密工具,Linux之加密解密工具openssl的用法以及自建CA

在Linux下的安全工具openssl【安全特性】1、保密性:数据保密性、隐私性2、完整性:数据完整性、系统完整性3、可用性4、真实性:确保数据发送方不是被替换的5、可追溯性【安全***】被动***:窃听主动***:伪装、重播、消息…

Windows远程连接的用户名和密码怎么设置?

1、首先,打开A电脑的控制面板,点击系统和安全进入,设置电脑允许远程访问; ] 2、查看A电脑的ip地址,再次打开控制面板,在“网络和Internet”里面点击查看网络状态和任务。 ] 3、在访问类型连接网络里面点…

linux系统date s使用,简述Linux下date命令的使用方法与实例

在Linux环境中,不管是编程还是其他维护,时间是必不可少的,也经常会用到时间的运算,熟练运用date命令来表示自己想要表示的时间,肯定可以给自己的工作带来诸多方便。1.命令格式:date [参数]... [格式]2.命令…

Arrays.asList()使用时的注意事项,这个结论同可适用于Stream.of()___Arrays.stream和Stream.of

Arrays.asList()使用时的注意事项,这个结论同可适用于Stream.of() Arrays.asList的参数不能是基本数据类型的数组 Array.asList()的作用是把数组变成一个列表,但是它不能使用 八种基本类型的数组参数,也就是说如 int[], byte[], char[],sho…

linux虚拟化技术 教程,Linux云计算-虚拟化技术视频教程

目录6 c: Z! r3 a k r/ ]├─1、虚拟化概述. [2 W# Q6 ~! q* b│ ├─1.Linux云计算-虚拟化技术 - 虚拟化概述│ │ ├─1.Linux云计算- 虚拟化技术 - 引入虚拟化的必要性 - 2.mp4. 4 _0 l& ^- j9 A5 r k4 }│ │ ├─2.Linux云计算- 虚拟化技术 - 虚拟化的分类.mp4│…