I get .dmp files every so often that I need to load in a database. Some of them are created with datapump and some with exp. Is there a simple way to tell them apart that I could put in a script?
2
There are 2 best solutions below
0
DCookie
On
Looks to me like the EXP format file contains the string EXPORT:V in the first "line". I don't see such a string in the data pump file. Use grep to tell the difference.
Another option is to attempt to load using IMP, check the return code, and if it fails (which you should know fairly quickly), try with IMPDP.
Related Questions in ORACLE
- sqlplus myusername/mypassword@ORCL not working with Oracle on Docker
- Oracle setting up on k8s cluster using helm charts enterprise edition
- Oracle Managed Data Access Client can't work from IIS but work for local debug environment
- If composite indexing created - indexing is called?
- Oracle Http server ISNT-07551
- why here not creating table?
- Data migration from Oracle Database Clob to GCP Bucket
- SQL Alchemy custom type, forcing blob bind parameter
- How to send message to syslog agent in plsql
- Whatever the data available in previous record it should add to the new record
- I have an Oracle SQL query that is giving me a "ORA-00918: column ambiguously defined" error on a line that is a comment line
- 'ORA-12170: TNS:Connect timeout occurredORA-12170: TNS:Connect timeout occurred' ERROR while working on oracle with laravel
- Is their any way i can open parallel query tabs
- VSCode Libraries not showing for New Java Project
- I can't ssh to my instance, Connection refused
Related Questions in EXP
- Use gcc to compile multiple c files, ml (masm) to compile multiple assembly files and link with extern linker: Undefined reference to '__main'
- Does the same error guarantee of Java's Math.exp also apply to StrictMath.exp?
- Writing CORDIC routines for log2 and exp2
- raise x to y where y is negative and with decimals
- React-Native DateTimePicker in InputField
- Issue connecting Express.js API in Elastic Beanstalk to MongoDB Atlas during autoscaling
- How to implement vectorize "exp" and "log" base-2 functions using AVX-512
- EXP DATASTORE SCRIPT ROBLOX
- exp() function in Matlab yields different results that exp() in python
- Non-linear equations in Cplex
- What are the difference between 'rexp(1000, 1)' and 'replicate(1000, rexp(1,1))' in R?
- do a power-up in the theme editor in wordpress
- why i get promise rejection when picking an image with expo-image-picker?
- SSRS Expression to add two column from two dataset in single cell in tablix
- must be real number, not TensorVariable
Related Questions in DATAPUMP
- Oracle script for cleaning a database during a Bambo datapump process
- Oracle datapump metadata_filter
- Data Migration options from Exadata to non-exadata system
- Exporting data via External Table - Parallel Not Working
- How to stop Oracle database before performing a Data-PUMP?
- Oracle Data Pump: special characters in schema name + bash variable substitution
- How to Import some data into a different table name in Oracle database
- Oracle data pump export issue ORA-31655: no data or metadata objects selected for job
- How to take the export of Schema all objects metadata with N rows from each table in Oracle DataPump?
- Importing data from unknown file format to Oracle XE
- Unable to use data pump utility in Oracle to import data to another server
- I am getting error while importing dump file in oracle 19c
- a question concerning Oracle's data pump import
- Data refresh from one oracle db to another oracle db
- Procedure to move oracledb export to s3 bucket fails when ran in a job
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Get an example of each and look at them in a hex editor such as HxD. Each type probably has header or something else at the start of the file that identifies what it is. Open the file and check for which it is.