SJH,
If you wish to export an entire schema (including tables, index definitions, synonyms, stored procedures and functions, sequences, et cetera, et cetera, et cetera), then the best method to accomplish that is still (after 20 years) the Oracle "exp" utility, then the "imp" utility to bring those data back into an Oracle database.
Both the "exp" and "imp" commands have on-line help available. Both the help and the invocation of these commands occurs at your operating-system command prompt. The command sets are identical across operating systems. To obtain a briefing of command syntax and functionality, from a command prompt, issue the commands:
for a listing of "exp" and "imp" commands, respectively.
As an example, if I wanted to export a schema named "test", I would issue the following "exp" command and its parameters (all on a single line...no carriage return):
Code:
exp buffer=150000000 compress=n grants=y feedback=1000 consistent=y file=TEST.dump log=TEST_Exp.log statistics=none owner=TEST userid=TEST/TEST@dhunt
Here are the meanings of the "exp" parameters that I used in the example:
[tt]
exp : invoke the export utility
buffer=150000000 : allocate 150M ram for workarea
compress=n : do not store all data in 1 extent
grants=y : export obj. privileges
feedback=1000 : display a dot "." every 1K rows
consistent=y : ensure read-consistent image
file=TEST.dump : file to export
log=TEST_Exp.log : file to show exp progress
statistics=none : do not export statistics
owner=TEST : schema to export
userid=TEST/TEST@dhunt : username/password@Oracle-alias
[/tt]
Here is a sample "imp" command that I would use to read the dump file, above into the same schema name in another database:
Code:
imp buffer=150000000 grants=y feedback=1000 fromuser=TEST touser=TEST file=TEST.dump log=TEST_Imp.log userid=TEST/TEST@dhunt
Here are the meanings of the "imp" parameters that I used in the example:
[tt]
imp : invoke the import utility
buffer=150000000 : allocate 150M ram for workarea
grants=y : import obj. privileges
feedback=1000 : display a dot "." every 1K rows
fromuser : name of source schema
touser : name of target schema
file=TEST.dump : file to import
log=TEST_Exp.log : file to show imp progress
userid=TEST/TEST@dhunt : username/password@Oracle-alias
[/tt]
Let us know if this answers your question.
![[santa] [santa] [santa]](/data/assets/smilies/santa.gif)
Mufasa
(aka Dave of Sandy, Utah, USA)
[
Providing low-cost remote Database Admin services]
Click here to join
Utah Oracle Users Group on Tek-Tips if you use
Oracle in
Utah USA.