简体   繁体   English

如何在Java中连接到RMAN?

[英]How to connect to RMAN in Java?

I don't know how to connect to RMAN in Java. 我不知道如何用Java连接到RMAN。 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?? 当我使用非SQL命令(例如RMAN等)时,简单的请求不起作用。我要制作“ ORACLE Secure BackUP”之类的程序,但是它们如何连接到RMAN?

I don't believe that there is a published API for interacting with RMAN other than the command line. 我不相信除了命令行以外,还没有发布与RMAN交互的API。 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. 因此,如果要创建使用RMAN的Oracle Secure Backup之类的程序,则可能必须从Java调用RMAN可执行文件。 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. 这意味着您可能还必须解析各种RMAN命令的输出,以便向用户提供反馈。

If you want to go down this path, you'd want to use the Runtime class in Java. 如果您想走这条路,则需要使用Java中的Runtime类。 Here is an example of calling an external program from Java . 这是一个从Java调用外部程序的示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM