大佬教程收集整理的这篇文章主要介绍了如何在Oracle中以普通用户身份运行dbms_crypto函数?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我使用sqlplus作为“sys / passwd as sysdba”连接到数据库服务器,
然后我安装了DBMS_crypto包:
@/home/Oracle/app/Oracle/product/11.2.0/dbhome_1/rdbms/admin/dbmsobtk.sql @/home/Oracle/app/Oracle/product/11.2.0/dbhome_1/rdbms/admin/prvtobtk.plb Grant execute on DBMS_crypto to PUBLIC; Grant execute on DBMS_sqlhash to PUBLIC; Grant execute on DBMS_obfuscation_toolkit to PUBLIC; Grant execute on DBMS_obfuscation_toolkit_ffi to PUBLIC; Grant execute on DBMS_crypto_ffi to PUBLIC;
一切看起来都不错,所以我测试了hash()函数:
sql> SELEct DBMS_crypto.hash(utl_raw.cast_to_raw('zorg'),3) from dual; DBMS_CRYPTO.HASH(UTL_RAW.CAST_TO_RAW('ZORG'),3) -------------------------------------------------------------------------------- 60C440F9954CA4744204cda9CC93567059C1EC82
我作为普通用户断开并连接到该数据库,但后来我收到错误:
sql> SELEct DBMS_crypto.hash(utl_raw.cast_to_raw('zorg'),3) from dual; SELEct DBMS_crypto.hash(utl_raw.cast_to_raw('zorg'),3) from dual * ERROR at line 1: ORA-06521: pl/sql: Error mapPing function ORA-06512: at "MN.DBMS_CRYPTO_FFI",line 131 ORA-06512: at "MN.DBMS_CRYPTO",line 72
为什么我不能像普通用户一样使用此功能?如何让其他用户使用它?
我合作:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
>连接使用:
sqlplus / as sysdba
>安装包:
@/home/Oracle/app/Oracle/product/11.2.0/dbhome_1/rdbms/admin/dbmsobtk.sql @/home/Oracle/app/Oracle/product/11.2.0/dbhome_1/rdbms/admin/prvtobtk.plb
>以普通用户身份连接并使用DBMS_crypto包中的函数.
以上是大佬教程为你收集整理的如何在Oracle中以普通用户身份运行dbms_crypto函数?全部内容,希望文章能够帮你解决如何在Oracle中以普通用户身份运行dbms_crypto函数?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。