Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get the oracle database version from dump file

I have a oracle dump file. I want to know the version of the oracle db that the dump file used. e.g. if the dump file is used oracle 11g or oracle 12c

like image 208
Felix Xie Avatar asked Oct 19 '22 19:10

Felix Xie


1 Answers

No, there is no direct way to get the database version directly from an exported dump file.

The database version should be known by the DBA/whoever did the export.

You could find the export utility version from the dump file or the export log though. However, not necessarily that the export utility version would be same as that of the database.

strings my_dump_file.dmp | head -n 5

For example, in Unix/Linux:

-sh-4.1$ strings expfull_DB.dmp|head -n 5
"SYS"."SYS_EXPORT_FULL_01"
x86_64/Linux 2.4.xx
PRIP
AL32UTF8
11.02.00.00.00

You can see the export utility version to be 11.02.

like image 161
Lalit Kumar B Avatar answered Nov 01 '22 11:11

Lalit Kumar B