Export / import exp / imp commands Oracle 10gXE on Ubuntu
I have Oracle 10gXE installed on Linux 2.6.32-28-generic #55-Ubuntu, and I need soe help on how to export / import the base with exp / imp commands. The commands seems to be installed on */usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin* directory but I cannot execute them.
The error message I got =
No command 'exp' found, did you mean:
Command 'xep' from package 'pvm-examples' (universe)
Command 'ex' from package 'vim' (main)
Command 'ex' from package 'nvi' (universe)
Command 'ex' from package 'vim-nox' (universe)
Command 'ex' from package 'vim-gnome' (main)
Command 'ex' from package 'vim-tiny' (main)
Command 'ex' from package 'vim-gtk' (universe)
Command 'axp' from package 'axp' (universe)
Command 'expr' from package 'coreutils' (main)
Command 'expn' from package 'sendmail-base' (universe)
Command 'epp' from package 'e16' (universe)
exp: command not found
Is there something I have to do ?
Hi,
You have not set environment variables correctly.
http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25144/toc.htm#BABDGCHH
And of course that sciprt have small hickup, so see
http://ubuntuforums.org/showpost.php?p=7838671&postcount=4
Regards,
Jari
Similar Messages
-
Exp/Imp In Oracle 10g client
Hi All,
I want to take one schema export from Oracle 10g Client. I am in new Oracle 10g.
In oracle 9i, we can using exp/imp command for Export and Import from Client itself.
I heard about in Oracle 10g, we can use Expdb/Impdb in Server only. Is there any possibility to take exp/imp in Client also.
Pls help me...
Cheers,
Moorthy.GSTo add up to expdb from oracle client
NETWORK_LINK
Default: none
Purpose
Enables an export from a (source) database identified by a valid database link. The data from the source database instance is written to a dump file set on the connected database instance.
Syntax and Description
NETWORK_LINK=source_database_link
The NETWORK_LINK parameter initiates an export using a database link. This means that the system to which the expdp client is connected contacts the source database referenced by the source_database_link, retrieves data from it, and writes the data to a dump file set back on the connected system.
The source_database_link provided must be the name of a database link to an available database. If the database on that instance does not already have a database link, you or your DBA must create one. For more information about the CREATE DATABASE LINK statement, see Oracle Database SQL Reference.
If the source database is read-only, then the user on the source database must have a locally managed tablespace assigned as the default temporary tablespace. Otherwise, the job will fail. For further details about this, see the information about creating locally managed temporary tablespaces in the Oracle Database Administrator's Guide.
Restrictions
When the NETWORK_LINK parameter is used in conjunction with the TABLES parameter, only whole tables can be exported (not partitions of tables).
The only types of database links supported by Data Pump Export are: public, fixed-user, and connected-user. Current-user database links are not supported.
Example
The following is an example of using the NETWORK_LINK parameter. The source_database_link would be replaced with the name of a valid database link that must already exist.
expdp hr/hr DIRECTORY=dpump_dir1 NETWORK_LINK=source_database_linkDUMPFILE=network_export.dmp LOGFILE=network_export.log -
Execute exp&imp command by store procedure
Dear all,
I have some statements to run before and after exp&impdata.
Is there anyway to execute exp&imp command in store procedure,Pls show me.
example
CREATE OR REPLACE PROCEDURE test
BEGIN
update ....
exp user/passwd ....
delete ...
END ;
Oracle 10g on solaris10
Thank you for advance
CharaHi,
Since you are working with Oracle10gm you may check DBMS_DATAPUMP:
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_datpmp.htm
Or like any shell command, you can use java programs.
Saad,
http://saadnayef.blogspot.com -
Script request for exporting, importing, inserting entry to Oracle 9i LDAP
Do anyone has the scripts for exporting, importing, inserting entry to Oracle 9i LDAP server? Thanks for help.
you can use ldapsearch utility to generate ldif files. Perform a search on the node you want to export and specify the output to be in LDIF format ( -L - this is a ldapsearch option). Once you have the ldif file, you can import it to any LDAPv3 complaint server such as OID. for OID, use ldapadd/ldapmodify utility to import the data.
These utilities are present under IAS_HOME/bin or ORACLE_HOME/bin. -
I am being told that I can simply use the exp command on Oracle RDB to export a database, and use the imp command to import this database on HP-UX 9i.
Obviosuly this is not the system tables, just the application tables, but I cannot seem to get this confirmed or denied.
Please can someone point me in the right direction here....
I see there is a plugin for OEM now for RDB, so would this enable the port? Oracle Migration Workbench does not support the source as RDB, so I am hoping exp is supported.
Cheers
PeteI was looking for an answer to this question also.
Since this old thread didn't get properly closed off with a "this is how you do it", and since I poked around in VMS and found where you go to enter the command, I thought y'all might like me to post it here! :-)
The export command appears at the RDO prompt. Type RDO at the DCL $ prompt to get into RDO.
Then you can type the EXPORT command at the RDO> prompt as follows:
RDO> EXPORT 'DEPT3:PERS' INTO 'DISK2:PERSONNEL.RBR'
This is the example you are presented with if you type HELP EXPORT at the RDO> prompt. Of course, you would replace DEPT3: with the path to the database root file that you want to export, PERS with the database file name (this example refers to the file PERS.RDB, and the .RDB extension is assumed), DISK2: with the path to the output file, and PERSONNEL.RBR with the filename of the output file.
I haven't executed the command as yet, so I can't promise it will work, but I will do it and re-post here if it didn't work. So assume it does :-)
All the best,
Eldon -
How to use exp,imp in oracle 8i version....
Hi developer ...
I am using oracle 8i version in windows xp platform. Can you please explain how to export and import my tables in to export.txt file.
with
Regards
sure...:)--Hi,
Did you want to downgrade from 8i to 7.0, 7.3 and 8.0 ?
To downgrade, you need to use the export utility from the target database.
So, you will need three export files :
Run the 7.0 export to export from the 8i database, and import into a 7.0 database with the 7.0 import utility.
Same for 7.3 and 8.0 database.
More info into metalink note : Compatibility Matrix for Export & Import Between Different Oracle Versions - Note:132904.1
Nicolas. -
Export import - using TOAD FOR ORACLE and ORACLE DATABASE 10G EXPRESS or s
Hi all,
Could you please kindly help me?
I am using TOAD FOR ORACLE to export a table to flat file A. The tool just supports to distinguish fields by "spaces".
And the web page of ORACLE DATABASE 10G EXPRESS to import the data from flat file A to another database. To load data to a table from a text file, the web page bases on "comma" to distinguish fields.
So could you have any suggestion for me? I need to export data via TOAD FOR ORACLE. And then import it to another database by the home page of ORACLE DATABASE 10G EXPRESS or sqlplus.
Thank you so much for your help!Dont use TOAD for exporting your data. Use PL/SQL. Below is the code given in Asktom.com that does what you want.
create or replace function dump_csv( p_query in varchar2,
p_separator in varchar2 default ',',
p_dir in varchar2 ,
p_filename in varchar2 )
return number
is
l_output utl_file.file_type;
l_theCursor integer default dbms_sql.open_cursor;
l_columnValue varchar2(2000);
l_status integer;
l_colCnt number default 0;
l_separator varchar2(10) default '';
l_cnt number default 0;
begin
l_output := utl_file.fopen( p_dir, p_filename, 'w' );
dbms_sql.parse( l_theCursor, p_query, dbms_sql.native );
for i in 1 .. 255 loop
begin
dbms_sql.define_column( l_theCursor, i, l_columnValue, 2000 );
l_colCnt := i;
exception
when others then
if ( sqlcode = -1007 ) then exit;
else
raise;
end if;
end;
end loop;
dbms_sql.define_column( l_theCursor, 1, l_columnValue, 2000 );
l_status := dbms_sql.execute(l_theCursor);
loop
exit when ( dbms_sql.fetch_rows(l_theCursor) <= 0 );
l_separator := '';
for i in 1 .. l_colCnt loop
dbms_sql.column_value( l_theCursor, i, l_columnValue );
utl_file.put( l_output, l_separator || l_columnValue );
l_separator := p_separator;
end loop;
utl_file.new_line( l_output );
l_cnt := l_cnt+1;
end loop;
dbms_sql.close_cursor(l_theCursor);
utl_file.fclose( l_output );
return l_cnt;
end dump_csv;
/Here is the link to this thread in asktom.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:95212348059 -
Export / Import generates IMP-00020
Hi all.
Today, I exported a schema using exp file=xxxxx.dmp direct=y statistics=none owner=XXXXXX. Then I recreated the database (for testing purposes).
When I tried to import the generated file, it gave me the IMP-00020 error, and after that several tables were not created. It is the same ORACLE_HOME, the same CHARACTERSET, the same server, the same release. Just the DB encarnation is different.
O.S.: Oracle EL 5.6
Oracle 11.2.0.2 64bit
Any ideas? Already tried increasing the buffer size (first to 1000000, then to 50000000), but the error persists.
Thanks in advanceCInglez wrote:
Hi all.
Today, I exported a schema using exp file=xxxxx.dmp direct=y statistics=none owner=XXXXXX. Then I recreated the database (for testing purposes).
When I tried to import the generated file, it gave me the IMP-00020 error, and after that several tables were not created. It is the same ORACLE_HOME, the same CHARACTERSET, the same server, the same release. Just the DB encarnation is different.
O.S.: Oracle EL 5.6
Oracle 11.2.0.2 64bit
Any ideas? Already tried increasing the buffer size (first to 1000000, then to 50000000), but the error persists.
Thanks in advanceWhy don't you use Data Pump? -
JMS Message Export/Import XML on command line
I need a command line (JAVA or WLST) to reproduce the Weblogic consol JMS message export and import to migrate manually message from a queue to another (online without filestore).
There is an entry on the Weblogic console that export one or all message to an XML format file and the import command to reload this XML file.
any idea of a java code used by the console or a jython fonction ?The following might be enough to get you started:
For scripting and tracing examples, see the July 29th and August 10th 2009 newsgroup post with subject "Example using of getMessage(s) with JMS error queues?" [ here | http://forums.oracle.com/forums/thread.jspa?messageID=3657916] and the June 10th 2009 newsgroup post with subject "JMSDestinationRuntimeMBean - possible STATE values " [ here | http://forums.oracle.com/forums/thread.jspa?messageID=3531603 ]. Also take a look at the +Sept 23 2009 newsgroup posts with subject "Enable JMS - Queue/Topic Trace on console"+ [ here | http://forums.oracle.com/forums/thread.jspa?messageID=3782486].
+WARNING: Exporting too many messages at a time can cause out-of-memory errors.+
Tom -
I exported tables in 10g using exp(normal export)command
Can I user impdp(datapump) while doing importThere is no exclude or include option in the traditional export/import (exp/imp) utility. This is only given in datapump (expdp/impdp) to exclude or include the database objects while exporting or importing.
All you can do as work around is, create the structure of the table in the target database/schema, then do import, while import if the table is found in the target schema, then that table will not imported. So, don’t use ignore=y, if you use, even if the table is found during the import, the rows will be imported in fact. Hope you got what I mean.
Regards,
Sabdar Syed. -
Sir,
How Can I export one table from a oracle server and import the same table in another table by using exp/imp command by normal user who has read/write right.
AjitPost in the right thread, and perhaps you should at least attempt to read the documentation. Your answers are there.
Bazza -
Imp to Oracle 10.1.0.2.0
OS: SuSE Linux Enterprise Server 8
I am doing exp/imp from Oracle 7.3.4 to Oracle 10.1.0.2.0.
I have exported the dmp file from Oracle 7.3.4 and through FTP I put this file the following directory.
$ORACLE_HOME/bin
Now When I typed imp from command line following message comes up:
dhshrwits:/opt/oracle/product/10.1.0/db_1/bin # imp
bash: imp: command not found
Any idea why?
Thanks in advance
Regards,
DAnyway I did (exp/imp) whole process again
Getting errors on imp as below:
I ran imp from command line.
imp --- as a system/passwordConnected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 -
Production
With the Partitioning, OLAP and Data Mining options
Import
file: expdat.dmp > dn.dmp
Enter
insert buffer size (minimum is 8192) 30720>
Export file created by EXPORT:V07.03.04 via
conventional path
List contents of import file only (yes/no): no >
Ignore create error due to object existence (yes/no): no >
Import grants (yes/no): yes >
Import table data (yes/no): yes >
Import entire export file (yes/no): no >
Username: system
Enter table(T) or partition(T:P) names.
Null list means all tables for user
Enter table(T) or partition(T:P) name or . if done:
IMP-00015: following statement failed because the object already exists:
"CREATE TABLE "SRW_CMD_NAMES" ("CMD_NUM" NUMBER(5, 0), "CMD_NAME" VARCHAR2(3"
"0)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 10240 NE"
"XT 10240 MINEXTENTS 1 MAXEXTENTS 121 PCTINCREASE 50 FREELISTS 1 FREELIST GR"
"OUPS 1)
IMP-00017: following statement failed with ORACLE error 1917:
"GRANT DELETE ON "MENU_V_APPL_GRP" TO "WITS" WITH GRANT OPTION"
IMP-00003: ORACLE error 1917 encountered
ORA-01917: user or role 'WITS' does not exist
IMP-00003: ORACLE error 1917 encountered
ORA-01917: user or role 'CASEDICT' does not exist
IMP-00015: following statement failed because the object already exists:
"CREATE FORCE VIEW "SYSTEM"."MENU_V_OPTION" ("MENU_"
"NAME","APPLICATION_NAME","OPTION_NUMBER","SHORT_NAME","DISPLAYED","OPTION_T"
"EXT","OBJECT_TEXT_ID","COMMAND_TYPE","COMMAND_LINE") AS "
"SELECT "MENU_NAME","APPLICATION_NAME","OPTION_NUMBER","SHORT_NAME","DISPLAY"
"ED","OPTION_TEXT","OBJECT_TEXT_ID","COMMAND_TYPE","COMMAND_LINE" FROM MENU_"
"B_OPTION "
IMP-00017: following statement failed with ORACLE error 1917:
"GRANT DELETE ON "MENU_V_OPTION" TO "WITS" WITH GRANT OPTION"
IMP-00003: ORACLE error 1917 encountered
ORA-01917: user or role 'CASEDICT' does not exist
IMP-00015: following statement failed because the object already exists:
"CREATE FORCE VIEW "SYSTEM"."SRW_STE" ("OWNER","APP"
"ID","ITEMID","TYPE","NAME") AS "
"select "OWNER","APPID","ITEMID","TYPE","NAME" from system.srw__ste where ow"
"ner = user or appid in"
" (select appid from srw_granted)"
" with check option"
I also tried as follows
oracle@dhshrwits:~/product/10.1.0/db_1/rdbms/admin> ./catexp7.sql
bash: ./catexp7.sql: Permission denied
oracle@dhshrwits:~/product/10.1.0/db_1/rdbms/admin> su
Password:
dhshrwits:/opt/oracle/product/10.1.0/db_1/rdbms/admin # ./catexp7.sql
bash: ./catexp7.sql: Permission denied
Any feed back will be appreciated.
Regards,
D -
Export/Import Users.
My requirement is to create users with the same privileges in database B referencing database A. so Whatever users and their respective preveleges i need to have them exactly in database B what parameters should i specify in my exp/imp command just to export import the users and privileges. My requirement is not to export the objects of the users but just the usernames and their privileges.
Hi,
i tried to import the user database from one LMS server to another with the following command:
C:\CSCOpx>"C:\CSCOpx\bin\perl C:\CSCOpx\bin\AddUserCli.pl -import HTTP 172.18.3.
38 1741 admin ***"
The filename, directory name, or volume label syntax is incorrect.
I keep getting this error message and i don't have a clue why its not working.
I've imported the certificate from the source LMS Server into common services->peer server certificate setup.
Any hints are much appreciated. -
I have made some objects like type,type body and object tables and nested tables in a user..and then take the export...but while trying to import the same file in another user it gave me error for object tables and nested table...so I need to set some parameters or what should I do..Please guide me..
Viral,
Check out the online documentation on export/import at http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/server.817/a76955/toc.htm
Regards,
Geoff -
Import utility IMP-00009: abnormal end of export file.
IMP-00009: abnormal end of export file.
I have received a 34 GB dmp file exported using exp utility 9.2. and i am importing it into 10.2.0.1.0
1) Not sure wheher its exported from Unix or windows.. how to make out?
2)I imported using ...BIN>imp user1/pwd FILE=C:\exp.dmp
SHOW=y fromuser=user2 touser=user1 ROWS=Y IGNORE=y GRANTS=y Constraints=
y log=C:\exp.log
Note my login user and my to user are same and i have grant DBA to user1.
3)When i import, after an hour+ it terminates saying abruprt end of export file.
4)I am not aware of the command used for export whether its FULL DB or only user etc.... how to find out? from show = y i selected 1 username and used it as from user.
5)This file was sent to me through a FTP server from where i downloaded.
Plz help i need to import urgently, what should i be doing?I also read that FULL=Y is not supported when i import 9i dmp into 10g dmp. Is it true?False
It is an export of the Backup it seems. What difference does it make if we export from DB Backup and export from DB itself?There is nothing called export of a backup.The dump is created by an oracle binary called EXPORT.
You can execute this command against an oracle database
exp username/pwd@hoststring file=c:\oracle\bk\test.dmp fully=y....and so on
Maybe you are looking for
-
My ipad touch screen is not working
I've tried to hard restart but still not working, and I'm in a country which dont have apple store, I just bought it about a month and I never sync it before with itunes, the itunes that my Ipad ever sync before is at the store that I bought my Ipad
-
HT4528 after upgrading to IOS 7.1 the camera on my 5s no longer works
after upgrading to IOS 7.1 the camera on my 5s no longer works. Prior to the upgrade, I had no issues with the camera
-
Third party system throwing error " No Direct Postings can be made in G/L "
Dear all i have a problem, when doing third party ,In me21n purchase order screen i am getting an error " No direct postings can be made in G/L a/c 41201100 in CoCode ." and when i checked the G/l account tht G/L account stands for " Change in Stoc
-
When i try to load the website it takes a long time to load and when it does the layout is expanded and no images appear. The site has the same problems with IE and chrome. I did recently use Reginout.
-
X121e touch pad buttons stop working after a while
Hello everyone, I have a lenovo thinkpad x121e. The buttons above the touchpad (for right and left clicking) and also the trackpoint stop working after a while (about 45 min). Although the touchpad itself works without problems. If I reboot the opera