用sys用户执行exp操作

 

[oracle@localhost ~]$ exp sys/abcdefg as sysdba full=y file=/tmp/full100.dmp
g5m0LRM-00108: invalid positional parameter value 'as'

EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
EXP-00000: Export terminated unsuccessfully

[oracle@localhost ~]$ exp \"sys/abcdefg as sysdba\"  full=y file=/tmp/full100.dmp

Export: Release 10.2.0.1.0 - Production on Tue Jul 8 09:27:56 2008

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


Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses WE8ISO8859P1 character set (possible charset conversion)

 

反斜杠加单引号也行

[oracle@localhost ~]$ exp \'sys/abcdefg as sysdba\'  full=y file=/tmp/full100.dmp

Export: Release 10.2.0.1.0 - Production on Tue Jul 8 09:28:54 2008

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

 

你可能感兴趣的:(数据库)