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

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

oracle存储过程无效字符_ORA-20003 , procedure存储过程失效问题

發(fā)布時(shí)間:2023/12/16 编程问答 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle存储过程无效字符_ORA-20003 , procedure存储过程失效问题 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

.[@more@]

a. 修改存儲(chǔ)過(guò)程調(diào)用的table結(jié)構(gòu)會(huì)造成procedure 需用重新編譯 (10g 會(huì)自動(dòng)編譯,不需要人為) 。

b. 存儲(chǔ)過(guò)程調(diào)用另外一個(gè)存儲(chǔ)過(guò)程,另外一個(gè)修改了其中的object,那么兩個(gè)存儲(chǔ)過(guò)程都需要重新編譯 (10g 會(huì)自動(dòng)編譯,不需要人為) 。

c. 存儲(chǔ)過(guò)程中調(diào)用的table如果他的同義詞有其他object同名,修改了同名的objects 也注意導(dǎo)致procedure invalid .應(yīng)當(dāng)盡量避免創(chuàng)建與PUBLIC同義詞 同名的對(duì)象

臨時(shí)解決方法:

把 alter pro_name compile 賦給一個(gè)字符串變量, 然后在程序中 EXECUTE IMMEDIATE (類似于執(zhí)行SQL一樣) 。

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

Subject:ORA-20003: ORU-10036 WHEN CALLING ODESSP() OR DBMS_DESCRIBE.DESCRIBE_PROCEDURE

Note:1011930.6Type:PROBLEM

Last Revision Date:15-OCT-2007Status:PUBLISHEDChecked for relevance on 15-Oct-2007.

Problem Description:

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

You are getting ORA-20003 and ORU-10036 when using the packaged

procedure DBMS_DESCRIBE.DESCRIBE_PROCEDURE or the Oracle

Call Interface (OCI) function odessp() to describe the parameters of a

PL/SQL stored procedure or function. The associated error message

is "object X is invalid and can not be described".

Example:

Here is an example of using DBMS_DESCRIBE.DESCRIBE_PROCEDURE.

SQL> declare

2 overload dbms_describe.number_table;

3 position dbms_describe.number_table;

4 levl dbms_describe.number_table;

5 argument_name dbms_describe.varchar2_table;

6 datatype dbms_describe.number_table;

7 default_value dbms_describe.number_table;

8 in_out dbms_describe.number_table;

9 length dbms_describe.number_table;

10 precision dbms_describe.number_table;

11 scale dbms_describe.number_table;

12 radix dbms_describe.number_table;

13 spare dbms_describe.number_table;

14 begin

15 dbms_describe.describe_procedure(

16 'P1',

17 null,

18 null,

19 overload,

20 position,

21 levl,

22 argument_name,

23 datatype,

24 default_value,

25 in_out,

26 length,

27 precision,

28 scale,

29 radix,

30 spare);

31

31 dbms_output.put_line('overload ' ||

32 'position ' ||

33 'argument ' ||

34 'level ' ||

35 'datatype ' ||

36 'length ' ||

37 'prec ' ||

38 'scale ' ||

39 'rad ');

40 dbms_output.put_line('-------------------------' ||

41 '-------------------------' ||

42 '-------------------------');

43 for counter in 1..2 loop

44 dbms_output.put_line( overload(counter) || ' ' ||

45 position(counter) || ' ' ||

46 argument_name(counter) || ' ' ||

47 levl(counter) || ' ' ||

48 datatype(counter) || ' ' ||

49 length(counter) || ' ' ||

50 precision(counter) || ' ' ||

51 scale(counter) || ' ' ||

52 radix(counter) );

53 end loop;

54 end;

55 /

declare

*

ERROR at line 1:

ORA-20003: ORU-10036: object P1 is invalid and cannot be described

ORA-06512: at "SYS.DBMS_DESCRIBE", line 83

ORA-06512: at line 15

Solution Description:

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

The status of the procedure or function is INVALID.

Recompile the procedure/function.

The command

ALTER PROCEDURE COMPILE;

will recompile a stand-alone stored procedure.

The command

ALTER FUNCTION COMPILE;

will recompile a stand-alone store function.

The command

EXECUTE DBMS_UTILITY.COMPILE_SCHEMA();

will recompile all stored packages, procedures and functions in the

specified schema. The objects are compiled in dependency oder.

To see if the status is invalid, check the USER_OBJECTS table.

Example:

This example selects procedure P1 from the USER_OBJECTS table.

As you can see, the status of P1 is INVALID.

SQL> select * from user_objects where object_name='P1';

OBJECT_NAME

------------------------------------------------------------------------------

--

OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_

---------- ------------- --------- ---------

TIMESTAMP

---------------------------------------------------------------------------

STATUS

-------

P1

2114 PROCEDURE 20-SEP-95 20-SEP-95

1995-09-20:10:11:00

INVALID

Solution Explanation:

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

For more information about the ALTER PROECEDURE or ALTER

FUNCTION commands, see the Oracle7 Server SQL Reference.

For more information about DBMS_UTILITY.COMPILE_SCHEMA(),

see the file dbmsutil.sql. On Unix platforms, this file can be

found in the $ORACLE_HOME/rdbms/admin directory.

For more information about DBMS_DESCRIBE.DESCRIBE_PROCEDURE()

see the Oracle7 Server Application Developer's Guide Release 7.2

pages 6-48 to 6-51. You can also find information in the file

dbmsdesc.sql which can be found in the $ORACLE_HOME/rdbms/admin

directory on Unix platforms.

總結(jié)

以上是生活随笔為你收集整理的oracle存储过程无效字符_ORA-20003 , procedure存储过程失效问题的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 五月天综合婷婷 | 荷兰女人裸体性做爰 | 椎名由奈在线观看 | 五月情网 | 国模无码大尺度一区二区三区 | 私人av | 干日本少妇首页 | 超碰在线公开免费 | 午夜第一页 | a级一级黄色片 | 四虎影视网 | 真人一及毛片 | 国产亚洲精品精品精品 | 手机av免费观看 | 欧美日韩一区二区视频观看 | 欧美性猛交99久久久久99按摩 | 亚洲乱仑 | 在线视频综合网 | 丁香色欲久久久久久综合网 | 成人毛片100部免费看 | 97在线观看免费视频 | 亚洲色图欧美另类 | 大吊一区二区三区 | 色视频网站 | 免费看一级黄色大全 | 污网站在线播放 | 国产又大又黑又粗免费视频 | 亚洲同性gay激情无套 | 91黄免费| 欧美日韩一区二区三区国产精品成人 | 久久伊人爱| 性生活视屏 | wwwwxxx日本 | 男人的天堂2018 | 天天爽天天搞 | av五月天在线 | 伊人一区二区三区 | 一区成人 | 97在线观看免费视频 | 国产网站在线看 | 蜜桃视频日韩 | 伊人久久国产精品 | 国模精品一区二区三区 | 黄黄的视频在线观看 | 日本熟伦人妇xxxx | 91久久人澡人人添人人爽欧美 | 色多多视频在线 | 国产香蕉在线观看 | 中文字幕日韩精品亚洲一区小树林 | 朝鲜黄色片 | 潘金莲一级淫片aaaaa武则天 | 无码一区二区三区 | 鬼灭之刃柱训练篇在线观看 | 黄网av| 不卡一区二区在线 | 懂色av蜜臀av粉嫩av分享吧 | 天堂在线观看视频 | 亚洲精品一二三四 | 日韩免费视频观看 | 国产成人精品无码免费看夜聊软件 | 亚洲丁香花色 | 91插插插插 | 中文字幕在线播放一区 | 欧美一二三视频 | 中文字幕一区二 | 拍摄av现场失控高潮数次 | 亚洲精品久久久久久无码色欲四季 | 中文字幕国产综合 | 天天操天天干天天舔 | 中文字幕乱码人妻二区三区 | 中文字幕第3页 | 国产成人亚洲精品自产在线 | 九九热色 | 欧美日韩三级在线 | 深夜在线 | 免费看黄色片网站 | 精品一区二区三区蜜桃 | 欧美日韩亚洲综合 | 中文字幕性 | yy1111111| 精品乱子伦 | 7m精品福利视频导航 | 久久国语精品 | 告诉我真相俄剧在线观看 | 正在播放国产精品 | 美女喷液视频 | 国产在线欧美在线 | 国产精品毛片一区二区在线看 | 精品91视频 | 爱福利视频网 | 久久精品女人毛片国产 | 四虎国产在线 | 毛片999| 日韩av成人网 | 成人午夜影视在线观看 | 日本一级黄色大片 | 成人在线视频一区二区 | 国产精品偷拍 | 9999热视频 |