Home >Database >Mysql Tutorial >只把Oracle的存储过程或者函数全部迁移到其他的数据库中

只把Oracle的存储过程或者函数全部迁移到其他的数据库中

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:03:481538browse

在exp,imp中,没有只导出存储过程的语法。如果导出某个用户的数据,会导致该用户的所有对象(表、视图、索引、序列、函数、存储

在exp,imp中,没有只导出存储过程的语法。如果导出某个用户的数据,会导致该用户的所有对象(表、视图、索引、序列、函数、存储过程、触发器等等)。

如果只导出全部的存储过程。还是用PL/SQL Developer比较方便快速。

1、把存储过程导出成文本

在PL/SQL Developer中的"Tools"->"Export User Objects",可以选择该用户的所有存储过程,然后导出成一个文本文件。

2、导入另一个数据库中,就在sqlplus中用@\刚导出的文本文件  即可。

上面同样可用于只导出全部的视图、函数、触发器等等。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn