如何在Java中连接到RMAN? [英] How to connect to RMAN in Java?

查看:244
本文介绍了如何在Java中连接到RMAN?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何用Java连接到RMAN.当我使用非SQL命令(例如RMAN等)时,简单的请求不起作用.我要制作"ORACLE Secure BackUP"之类的程序,但如何将它们连接到RMAN?

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??

推荐答案

我不相信除了命令行以外,没有发布过的API与RMAN进行交互.因此,如果要创建使用RMAN的Oracle Secure Backup之类的程序,则可能必须从Java调用RMAN可执行文件.这意味着您可能还必须解析各种RMAN命令的输出,以便向用户提供反馈.

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.

如果您想走这条路,那么您想使用Java中的Runtime类.这是从Java调用外部程序的示例.

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.

这篇关于如何在Java中连接到RMAN?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆