Locked objects while importing dump file - oracle12c

I am trying to import a dump file using impdp Data Pump command. Unfortunately I have a few locked objects.
How can I unlock them and proceed with the import ?
Thanks in advance.
Nikola Neykov

Related

Import data in gzip archive to mongodb

I have data stored in gzip archive folders, every archive contains a big file that includes json in the following format:
{key:value, key:value}
{key:value, key:value}
{key:value, key:value}
I need to import the data to MongoDB. What is the best way to do that? I can't extract the gzip on my PC as each file (not archived) is about 1950MB.
You can unzip the files to STDOUT and pipe the stream into mongoimport. Then you don't need to safe the uncompressed file to your local disk:
gunzip --stdout your_file.json.gz | mongoimport --uri=<connection string> --collection=<collection> --db=<database>
I've imported tens of billions of lines of CSV and JSON to MongoDB in the past year, even from zipped formats. Having tried them all to save precious time, here's what I would like to recommend:
unzip the file
pass it as an argument to mongoimport
create the index on the fields you want, but ONLY at the end of the entire data insert process.
You can find the mongoimport documentation at: https://www.mongodb.com/docs/database-tools/mongoimport/
If you have a lot of files, you may want to do a for in bash that unzips and passes the filename as an argument to mongoimport.
If you are worried about not having enough disk space you can also delete the unzipped file at the end of each single import of mongoimport.
Hope it helped!

Converting .dmp to .sql file for importing in postgres sql

I have a file called post.dmp file . I have to import that file into postgresql to access that data. Please help me how to go forward

Import dataset into MongoDB

I am trying to insert this database into MongoDB using Studio 3T. I can import the bson without any issues (the countries and timezones) by selecting the parent folder and using BSON - mongodump folder option. However I cannot figure out how to import the split cities dataset.
I have tried all the options available on Studio3T and attempted to change the filename to gz however it always fails to import. I don't know what file format the cities are in.
Normally I do not have any issue importing but I cannot figure out how to do this. How would I achieve this?
The source DB is here https://github.com/VinceG/world-geo-data
This data is nothing but a big .bson file that has been gzipped up and split into various parts. I was not able to import the .bson file successfully. However, I could unzip the file at least without an error using the following commands and GZip for Windows
copy /b city_split_aa+city_split_ab+city_split_ac+city_split_ad+city_split_ae cities.bson.gz
gzip -d cities.bson

Exporting sqlite2 database to SQL

Hi I'd like to export data from a sqlite2 database into SQL to import into phpMyAdmin. Thanks.
After searching I found sqlite2
http://www.sqlite.org/sqlite-2_8_17.zip
And to export it to SQL you do:
sqlite database.db .dump > output.txt
To stop an error in phpMyAdmin you need to delete the first line: "BEGIN TRANSACTION;"

Using batch script to import a registry tree (winXP)

I've backed up the registry tree containing the disk cleanup parameters ([HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches]), and I want to be able to restore that registry tree via a batch script.
Can it be done in this manner?
reg import
http://technet.microsoft.com/en-us/library/cc742021(WS.10).aspx