Home » RDBMS Server » Server Utilities » Exporting User Schema
Exporting User Schema [message #249857] Fri, 06 July 2007 04:13 Go to next message
eric111498
Messages: 2
Registered: July 2007
Junior Member
Hi,

I want to export the user schema, I executed the command:

exp system/password


but, I want to have to record on a log file.

Export: Release 10.2.0.2.0 - Production on Fri Jul 6 17:03:57 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning and Data Mining options
Enter array fetch buffer size: 4096 > 100000

Export file: expdat.dmp >

(1)E(ntire database), (2)U(sers), or (3)T(ables): (2)U >

Export grants (yes/no): yes >

Export table data (yes/no): yes >

Compress extents (yes/no): yes > no

Export done in WE8DEC character set and AL16UTF16 NCHAR character set

About to export specified users ...
User to be exported: (RETURN to quit) >



I also try
exp system/password log=/tmp/export.log


but the execution doesn't ask me for users, it continues to export...

I also try to create a parfile with the paramter tables=[userid.%,eric.%] but it doesn't export the whole schema, only the data.

exp system/password log=/tmp/export.log parfile=/tmp/paramter.par


can anybody advise me?

Thank you!

Question
Re: Exporting User Schema [message #249873 is a reply to message #249857] Fri, 06 July 2007 06:27 Go to previous messageGo to next message
Michel Cadot
Messages: 68665
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
C:\>exp help=y

Export: Release 10.2.0.3.0 - Production on Ven. Juil. 6 13:27:17 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.



You can let Export prompt you for parameters by entering the EXP
command followed by your username/password:

     Example: EXP SCOTT/TIGER

Or, you can control how Export runs by entering the EXP command followed
by various arguments. To specify parameters, you use keywords:

     Format:  EXP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
     Example: EXP SCOTT/TIGER GRANTS=Y TABLES=(EMP,DEPT,MGR)
               or TABLES=(T1:P1,T1:P2), if T1 is partitioned table

USERID must be the first parameter on the command line.

Keyword    Description (Default)      Keyword      Description (Default)
--------------------------------------------------------------------------
USERID     username/password          FULL         export entire file (N)
BUFFER     size of data buffer        OWNER        list of owner usernames
FILE       output files (EXPDAT.DMP)  TABLES       list of table names
COMPRESS   import into one extent (Y) RECORDLENGTH length of IO record
GRANTS     export grants (Y)          INCTYPE      incremental export type
INDEXES    export indexes (Y)         RECORD       track incr. export (Y)
DIRECT     direct path (N)            TRIGGERS     export triggers (Y)
LOG        log file of screen output  STATISTICS   analyze objects (ESTIMATE)
ROWS       export data rows (Y)       PARFILE      parameter filename
CONSISTENT cross-table consistency(N) CONSTRAINTS  export constraints (Y)

OBJECT_CONSISTENT    transaction set to read only during object export (N)
FEEDBACK             display progress every x rows (0)
FILESIZE             maximum size of each dump file
FLASHBACK_SCN        SCN used to set session snapshot back to
FLASHBACK_TIME       time used to get the SCN closest to the specified time
QUERY                select clause used to export a subset of a table
RESUMABLE            suspend when a space related error is encountered(N)
RESUMABLE_NAME       text string used to identify resumable statement
RESUMABLE_TIMEOUT    wait time for RESUMABLE
TTS_FULL_CHECK       perform full or partial dependency check for TTS
TABLESPACES          list of tablespaces to export
TRANSPORT_TABLESPACE export transportable tablespace metadata (N)
TEMPLATE             template name which invokes iAS mode export

Export terminated successfully without warnings.

Do you see the OWNER option?

Btw, export is not a backup utility.

Regards
Michel

[Updated on: Fri, 06 July 2007 06:29]

Report message to a moderator

Re: Exporting User Schema [message #249987 is a reply to message #249873] Fri, 06 July 2007 12:33 Go to previous messageGo to next message
eric111498
Messages: 2
Registered: July 2007
Junior Member
Quote:
Btw, export is not a backup utility.
ooopppsss... sorry...
Quote:
Do you see the OWNER option?
I see the owner option, but we have user OPS$SIDADM, when I put this user id, it get an invalid variable SIDADM...
Re: Exporting User Schema [message #249988 is a reply to message #249987] Fri, 06 July 2007 12:35 Go to previous message
Michel Cadot
Messages: 68665
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
use OPS\$SIDADM or any escape character. Your shell is interpreting the $ sign.

Regards
Michel
Previous Topic: sqlloader number formatting
Next Topic: SQL Loader - problem loading data from csv files
Goto Forum:
  


Current Time: Wed Jun 26 14:06:39 CDT 2024