如何使用存储过程备份oracle数据库 [英] how to backup oracle database using a stored procedure

查看:207
本文介绍了如何使用存储过程备份oracle数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于Web的客户端 - 服务器架构;服务器与持有oracle数据库的数据库服务器通信,我想让客户端触发备份操作;即,客户端上的用户只是向服务器发送命令,然后服务器将命令指向数据库服务器,其中所有工作都是自动完成的。客户端没有oracle工具来建立备份操作。我认为最好的解决方案是在数据库服务器上创建一个备份数据库的存储过程。那可能吗?如果是,那么如何?

谢谢。

I have a web-based client-server architecture; The server communicates with a database server holding oracle database, I want to enable the client to trigger the backup operation; i.e. the user on the client side just sends a command to the server which then directs it to the database server, where all the work is done automatically. The client has no oracle tools to establish the backup operation. I think the best solution is to create a stored procedure on the database server which backs up the database. Is that possible? and if so then how?
Thanks.

推荐答案

您可以使用数据泵API ... 此处的Oracle文档 [ ^ ]



有在存储过程中使用它的示例[ ^ ] - 你会需要更改示例以获取数据而不是模式
You could use the Data Pump API ... Oracle Documentation here[^]

There is an example of using it in a stored procedure here[^] - you'll need to change the example to get the data instead of the schema


这篇关于如何使用存储过程备份oracle数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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