日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

oracle重新编译package,如何有效的编译数据库中的失效对象(Package,trigger等)

發布時間:2023/12/4 数据库 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle重新编译package,如何有效的编译数据库中的失效对象(Package,trigger等) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在utlrp.sql腳本中,Oracle注釋到:

Rem utlrp.sql - UTiLity script Recompile invalid Pl/sql modules

Rem

Rem DESCRIPTION

Rem This is a fairly general script that can be used at any time to

Rem recompile all existing invalid PL/SQL modules in a database.

Rem

Rem If run as one of the last steps during migration/upgrade/downgrade

Rem (see the README notes for your current release and the Oracle

Rem Migration book), this script will validate all PL/SQL modules

Rem (procedures, functions, packages, triggers, types, views, libraries)

Rem during the migration step itself.

Rem

Rem Although invalid PL/SQL modules get automatically recompiled on use,

Rem it is useful to run this script ahead of time (e.g. as one of the last

Rem steps in your migration), since this will either eliminate or

Rem minimize subsequent latencies caused due to on-demand automatic

Rem recompilation at runtime.

Rem

Rem Oracle highly recommends running this script towards the end of

Rem of any migration/upgrade/downgrade.

這是一個通用腳本,可以在任意時候運行以重新編譯數據庫失效對象。

通常我們會在Oracle的升級指導中看到這個腳本,Oracle強烈推薦在migration/upgrade/downgrade之后,通過運行此腳本編譯失效對象。

但是注意,Oracle提醒,此腳本需要用SQLPLUS以SYSDBA身份運行,并且當時數據庫中最好不要有活動事物或DDL操作,否則極容易導致死鎖的出現(這是很容易理解的)。

如果仔細閱讀一下utlrcmp.sql腳本,大家就會知道Oracle的操作方式。

列在這里,作為一個提示,供參考。

歷史上的今天...

>>

2010-01-26文章:

2007-01-26文章:

2006-01-26文章:

創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎

總結

以上是生活随笔為你收集整理的oracle重新编译package,如何有效的编译数据库中的失效对象(Package,trigger等)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。