How to import and dump file to remote Oracle server?
Hi All,
I have a
instance which has a
. I need to import the dump file to the
r which is located at some remote location. I have installed the
on my machine and I am able to connect to the remote oracle server.
Now how to import the dump to the oracle server in order to create the database. What are the prerequisites for this??
Now how to import the dump to the oracle server in order to create the database. What are the prerequisites for this??
Could you please stay away from marking arbitrary words with "CODE"-tags, please? CODE-tags are for marking code (as the name suggests) and terminal output, not for highlighting. Consider using bold or italic text for this instead.
To answer your question: that depends on how the dump was created. If it was created with the "exp" utility and the database schema is included in the export:
create the user, grant rights (import, create session and imp_full_database), then import with the "imp" utility:
If the export was done with "expdp" then instead of the "imp" above use:
Could you please stay away from marking arbitrary words with "CODE"-tags, please? CODE-tags are for marking code (as the name suggests) and terminal output, not for highlighting. Consider using bold or italic text for this instead.
To answer your question: that depends on how the dump was created. If it was created with the "exp" utility and the database schema is included in the export:
create the user, grant rights (import, create session and imp_full_database), then import with the "imp" utility:
If the export was done with "expdp" then instead of the "imp" above use:
I hope this helps.
bakunin
Hi Bakunin,
The oracle server is at remote location. I have the oracle client to connect to the server.
Also I have installed the client using following commands:
Set environment variables in your ~/.bash_profile ORACLE_HOME=/usr/lib/oracle/11.2/client64
PATH=$ORACLE_HOME/bin:$PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib
export ORACLE_HOME
export LD_LIBRARY_PATH
export PATH
After this I am able to connect to the oracle server.
But the oracle client does not contains the /network/admin/ directory and also the tnsname.ora file.
So i created one to login to the server.
But the bin directory of oracle home contains adrci genezi sqlplus libraries. Whenever I try import, it never works.
Please help.
I think so I have not configured the client properly.
Log-out user and log-in again and now you're ready to use SQL*Plus and connect your server. Type in :
1. Connect to the database using RMAN
2. execute following command backup database
3. on target oracle instance recover database with command recover database;
1. The problem statement, all variables and given/known data:
are the oracle dump files compatible to direct import into db2?
I already tried many times but it always truncated results.
anyone can help/ advice or suggest?
2. Relevant commands, code, scripts, algorithms:
exp... (3 Replies)
Hi Guys,
I Just wanted your opinion/ suggestion/ Help on my unix script about db2 export data with deli file and import into oracle.
db2 connect to Tablename user id using psswrd
db2 "EXPORT TO '/cardpro/brac/v5/dev/dat/AAAAA.DEL' OF DEL select * FROM AAAAA"
db2 "EXPORT TO... (3 Replies)
Hi all,
i face a problem on (oracle database) installed on server Linux i need to export back as dump file, when i try to export give me the below error.
# expdp system/oracle directory=test dumpfile=Prodfb20150311.dmp logfile=Prodfb20150311.log FULL=y
Export: Release 11.2.0.1.0 -... (2 Replies)
Hi All,
I am facing one problem related to importing Oracle Dump file.
We have two different version of AIX boxes with oracle (version 10.2.0.4.0) installed.
On one AIX box (version 6.1) we are creating oracle dump file (*.dmp) using oracle exp utility and importing it onto another AIX box... (1 Reply)
Hi All,
I have a full oracle dump file that I have exported from a production server. I want to import a specific schema out of the full dump.
Is that possible in oracle. What will be the command for that? (6 Replies)
Hi,
I need to import more than 250K of records to another Database(Oracle).But I want particular column value to be changed in the destination table. Is it possible to do this during export or import process with out modifying data from original table.I do not want to run Update manually.
... (6 Replies)
Hi for all!
I need for my job one shell script very concrete about connection to oracle databases and writing to text file.
Well I tell you:
1.- I must read a file as parameter from linux interface:
> example.sh fileToRead
2.-I must read line to line in "fileToRead" and take a... (9 Replies)
Hi all,
Help needed urgently.
I am currently writing a shellscript to read data/record from a flat file (.txt) file, and import/upload the data to oracle database. The script is working fine, but it takes too long time (for 18000 records, it takes around 90 mins).
I guess it takes so long... (1 Reply)
Hi all,
I want to restore DB file in many mysql servers, i already using script for sending the dumpfile in all servers, but it's just annoying if i have to restore the dumpfile in all servers, i want just execute 1 script, and will restore in all remote mysql servers. I make script but not... (2 Replies)