简体   繁体   English

无许可证读取和更新 Oracle DB 的数据

[英]Reading and Updating data of Oracle DB without License

I've got to update the data of an Oracle DB but I'm not the owner and ain't got any Oracle License.我必须更新 Oracle 数据库的数据,但我不是所有者,也没有任何 Oracle 许可证。 The goal is to explain to my interlocutor how to create a dump from his Oracle DB, to find out how to restore this dump in a DB (a free version of Oracle or something else), update some data in some tables, and then make another dump to send it back to my interlocutor.目标是向我的对话者解释如何从他的 Oracle 数据库创建转储,找出如何在数据库(Oracle 或其他的免费版本)中恢复这个转储,更新一些表中的一些数据,然后使另一个转储将其发送回我的对话者。

So the differents questions I have are:所以我有不同的问题是:

1- Is it possible to create a dump (maybe in SQL format) without any specifics dependencies to Oracle? 1-是否可以创建一个转储(可能是 SQL 格式)而不依赖于 Oracle?

2- Is there a way to restore this dump in a free lightweight Oracle, or another kind of DB like Postgresql? 2-有没有办法在免费的轻量级 Oracle 或其他类型的数据库(如 Postgresql)中恢复此转储?

3- Does Oracle, is able to handle any kind of dump et restore it in an Oracle DB or is there any constraints to respect? 3- Oracle 是否能够处理任何类型的转储并将其还原到 Oracle 数据库中,或者是否有任何限制需要遵守?

I am very new to Oracle and ain't got, on my personal computer, any possibility to try out the dump/restore by myself;我是 Oracle 的新手,在我的个人电脑上没有任何可能自己尝试转储/恢复; that's why, any help will be appreciated !这就是为什么,任何帮助将不胜感激!

1- Is it possible to create a dump (maybe in SQL format) without any specifics dependencies to Oracle? 1-是否可以创建一个转储(可能是 SQL 格式)而不依赖于 Oracle?

Oracle offers Data Pump utilities (export and import) for such purposes. Oracle 提供用于此类目的的数据泵实用程序(导出和导入)。 You'd export table (or schema) - result is a ".dmp" file, readable by import utility.您将导出表(或模式)——结果是一个“.dmp”文件,可由导入实用程序读取。 You'd then move that file to your own server (see #2 for the rest)然后将该文件移动到您自己的服务器(其余部分请参见#2)


2- Is there a way to restore this dump in a free lightweight Oracle, or another kind of DB like Postgresql? 2-有没有办法在免费的轻量级 Oracle 或其他类型的数据库(如 Postgresql)中恢复此转储?

On your own server (which could be a laptop; no problem), you'd install a free Oracle Express Edition (XE) database.在您自己的服务器(可以是笔记本电脑;没问题)上,您可以安装一个免费的 Oracle Express Edition (XE) 数据库。 Currently, the last version is 21c, but some others should still be available in Oracle Technology Network's Download section.目前最新的版本是21c,其他的应该可以在Oracle技术网的下载区找到。


3- Does Oracle, is able to handle any kind of dump et restore it in an Oracle DB or is there any constraints to respect? 3- Oracle 是否能够处理任何类型的转储并将其还原到 Oracle 数据库中,或者是否有任何限制需要遵守?

XE database has its limits - from your point of view, the most important is that it can handle up to 12GB of user data. XE 数据库有其局限性——从您的角度来看,最重要的是它最多可以处理 12GB 的用户数据。 Therefore, if the.dmp file doesn't contain more data than that, you should be able to import it.因此,如果 .dmp 文件不包含比这更多的数据,您应该能够导入它。

Another constraint is the compatibility.另一个限制是兼容性。 Not all exports can be imported into all databases.并非所有导出都可以导入到所有数据库中。 There's a matrix which shows which versions match ;有一个矩阵显示哪些版本匹配 it is available on My Oracle Support site (but you have to have access to it, which you - as you said - don't. Though, generally speaking, "close" Oracle database versions can interchange.dmp files. It would be best if these two database versions match, of course.它可以在我的 Oracle 支持站点上找到(但您必须有权访问它,正如您所说的那样,您不能访问它。不过,一般来说,“关闭”Oracle 数据库版本可以互换.dmp 文件。这将是最好的当然,如果这两个数据库版本匹配。

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

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