How to connect to RMAN in Java?

只谈情不闲聊 提交于 2019-12-11 19:23:06

问题


I don't know how to connect to RMAN in Java. Simple request don't work when I use command non-SQL, like RMAN etc... I'm gonna to make program like "ORACLE Secure BackUP", but how they connected to RMAN??


回答1:


I don't believe that there is a published API for interacting with RMAN other than the command line. So if you wanted to create a program like Oracle Secure Backup that used RMAN, you'd probably have to invoke the RMAN executable from Java. Which means that you'd probably also have to parse the output of the various RMAN commands in order to provide feedback to the user.

If you want to go down this path, you'd want to use the Runtime class in Java. Here is an example of calling an external program from Java.



来源:https://stackoverflow.com/questions/4762706/how-to-connect-to-rman-in-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!