关于Remote Dependencies

最近在看ORACLE认证的147 SG最后一章dependencies的时候发现一个有意思的地方:

SG中对于Remote Dependencies有这么一段话:

The first time a recompiled remote subprogram is invoked by a local subprogram, you get an execution error and the local subprogram is invalidated; the second time it is invoked, implicit automatic recompilation takes place.

但是我在9.2.0.6环境下测试,结果有点不一样: 文中说的invoke只有在重开session再invoke, 才是文中结果. 但是若没有重开session, 结果却如下(我的测试是本地package调用远程package 更改远程的package spec, 导致远程pacakge body invalid):

第一次invoke: 返回错误信息, 说timestamp变掉

第二次invoke: 提示本地pacakge为invalid状态, 不能call(查看package body确实为invalid)

的三次: 本地pacakge中任何代码都不执行了, 也不返回任何错误(查看package已被recompile).

后面还做了其他一些case的测试, 也没有得出最终有规律的结果, 反正就是再一个session过程中, 远程package被改掉, 本地session试图多次调用远程的pacakge的时候会出现一些意想不到的奇怪结果.

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/767125/viewspace-995446/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/767125/viewspace-995446/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用\[1\]:\[ERROR\] Failed to execute goal on project ssm_dao: Could not resolve dependencies for project org.example:ssm_dao:jar:1.0-SNAPSHOT: Could not find artifact org.example:ssm_utils:jar:1.0-SNAPSHOT -> \[Help 1\] 。 引用\[2\]:2、The repository you have configured requires authentication and Maven failed to provide the correct credentials to the server. In this case, make sure your ${user.home}/.m2/settings.xml contains a declaration whose matches the of the remote repository to use. See the Maven Settings Reference for more details. **2、你已经配置了请求权限给该库和maven不能提供正确的凭证(权限)给这个服务器–意思就是你配置的请求权限有问题。 举个例子:** 确保你的${user.home}/.m2/settings.xml该库的路径包含了 <server> 服务器的申明,并且该服务器的 <id>匹配你远程仓库的 <id>。如何引用maven的设置看如下: 。 引用\[3\]:安全和部署settings文件 1. <settings> 2. . 3. . 4. <servers> 5. <server> 6. <id>repo1</id> 7. <username>repouser</username> 8. <!-- other optional elements: 9. <password>my_login_password</password> 10. <privateKey>/path/to/identity</privateKey> (default is ~/.ssh/id_dsa) 11. <passphrase>my_key_passphrase</passphrase> 12. --> 13. </server> 14. </servers> 15. . 16. . 17. </settings> 。 问题:Could not resolve dependencies for project com.example 回答: 根据引用\[1\]的错误信息,这个问题是由于无法解析项目的依赖关系导致的。具体来说,错误信息中提到找不到artifact org.example:ssm_utils:jar:1.0-SNAPSHOT。根据引用\[2\]和引用\[3\]的内容,这个问题可能是由于Maven配置的权限问题导致的。你需要确保你的${user.home}/.m2/settings.xml文件中包含了正确的服务器声明,并且该服务器的id与远程仓库的id匹配。你还可以参考Maven的设置文档来获取更多详细信息。 #### 引用[.reference_title] - *1* [Could not resolve dependencies for project](https://blog.csdn.net/weixin_46809332/article/details/117339162)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [管理工具---Maven系列(一)编译问题Could not resolve dependencies for project](https://blog.csdn.net/wolf_love666/article/details/72625465)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值