oracle 让sys用户执行exp导出操作

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

LRM-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)

About to export the entire database ...

. exporting tablespace definitions

. exporting profiles

. exporting user definitions

. exporting roles

. exporting resource costs

. exporting rollback segment definitions

. exporting database links

. exporting sequence numbers

. exporting directory aliases

. exporting context namespaces

. exporting foreign function library names

. exporting PUBLIC type synonyms

. exporting private type synonyms

. exporting object type definitions

. exporting system procedural objects and actions

. exporting pre-schema procedural objects and actions

. exporting cluster definitions

. about to export SYSTEM's tables via Conventional Path ...

. . exporting table DEF$_AQCALL 0 rows exported

. . exporting table DEF$_AQERROR 0 rows exported

. . exporting table DEF$_CALLDEST 0 rows exported

EXP-00091: Exporting questionable statistics.

EXP-00091: Exporting questionable statistics.

EXP-00091: Exporting questionable statistics.

反斜杠加单引号也行

[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.

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)

About to export the entire database ...

. exporting tablespace definitions

. exporting profiles

. exporting user definitions

. exporting roles

. exporting resource costs

. exporting rollback segment definitions

. exporting database links

. exporting sequence numbers

. exporting directory aliases

. exporting context namespaces

. exporting foreign function library names

以下是官方文档说明:

1. Command line.

Enclose the connect string with a single quote character:

Windows:

D:\> exp 'sys/change_on_install@instance as sysdba' tables=scott.emp

Unix (you need to 'escape' the single quote):

> exp \'sys/change_on_install@instance as sysdba\' tables=scott.emp

VMS (use [double_quote][single_quote]...[single_quote][double_quote]):

$ exp "'sys/change_on_install@instance as sysdba'" tables=scott.emp

Note that this VMS syntax is also a valid syntax on Unix and on Windows.

2. Interactive

Do not specify any connect string on the command line, so you will be prompted to enter it. E.g.:

> exp tables=scott.emp

Export: Release 10.2.0.3.0 - Production on Fri Jun 25 07:39:46 2004

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

Username: sys/change_on_install@instance as sysdba

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production

... etc.

3. Parameter file.

You can also specify the username in the parameter file. In this situation, you have to enclose the connect string with a double quote character. However, to prevent possible security breaches we advice you to stop using the USERID parameter in a parameter file.

File: exp.par

---------------

USERID="sys/change_on_install@instance as sysdba"

TABLES=scott.emp

Run export with:

> exp parfile=exp.par

4. Remarks.

Remark 1. If you have setup operating system authentication, it is not necessary to specify the SYS schema name, and password. E.g.:

> exp "'/@instance as sysdba'" tables=scott.emp

Remark 2. In addition, if you have set the environment variable TWO_TASK (on Unix) or LOCAL (on Windows) or on the server where the database is installed you have set ORACLE_HOME and ORACLE_SID, it is not necessary to specify the @instance. E.g.:

> exp "'/ as sysdba'" tables=scott.emp

Remark 3. The export parameters FLASHBACK_SCN and FLASHBACK_TIME cannot be used if the user that invoked the export is connected AS SYSDBA.

使用sys导出oracle,oracle 让sys用户执行exp导出操作相关推荐

  1. 【oracle】多个用户的对象 导出导入

    本例三个用户:YAFEISHI,TEST,TEST11 导出: C:\Users\Administrator>exp system/dang file=c:\multi_owner.dmp lo ...

  2. 导出坏块表oracle,obj$坏块情况下exp导出单个表解决方案

    在前面一篇(obj$坏块exp不能执行原因探讨)已经研究了在obj$出现坏块的情况下,导致exp导出单个表不能成功的原因,这篇给出解决方案 1.重新创建exu81javt视图 SQL> CREA ...

  3. Oracle创建表空间/用户及导入导出

    文章目录 一.SQL Plus登录 二.创建表空间,用户 1.创建文件夹 2.创建表空间 2.创建用户 3.用户绑定表空间 4.用户授权 三.Oracle导入导出 2.导出 3.导入 四.Navica ...

  4. oracle中查找某用户执行某张表的操作操作记录

    1,首先查找表的操作记录 select * from v$sqlarea a where a.SQL_TEXT like '%TB_ACCT_SYSDATE%'; 2,从上面的记录中找到update语 ...

  5. oracle exp导出很慢,oracleexp导出慢

    oracleexp导出慢 某客户数据库为10.2.0.4 RAC,运行在HP-UX平台上,如下所示: 某日,在使用exp进行本地全库逻辑导出时发现很慢,导出语句的主要语法如下: exp full=y ...

  6. Oracle——表空间、用户、权限、角色

    6.创建表空间和用户 概念:表空间是数据库中最大的逻辑单位,一个 Oracle 数据库至少包含一个表空间,就是名为SYSTEM的系统表空间 每个表空间是由一个或多个数据文件组成的,一个数据文件只能与一 ...

  7. Oracle对表空间、用户、用户权限的操作

    一.对表空间的操作 1.创建表空间(create tablespace) -- 'hpdb_tablespace' 指定表空间名称 -- 'e:\hpdb.dbf' 指定表空间数据文件名称 -- si ...

  8. linux exp 导出数据库命令,linux exp 导出数据库

    解决Linux系统下exp导入EXP-00028异常 问题描述: 在Linux系统中,对某个数据库用户进行exp导出备份时,出现下述异常: Oracle Database 11g Enterprise ...

  9. oracle expdp sys用户,Oracle基础教程:expdp时不能导出sys用户下的对象

    Oracle基础教程:expdp时不能导出sys用户下的对象 sys用户下的对象不支持导出 SQL> select owner,segment_name,tablespace_name from ...

最新文章

  1. oracle参数文件initorcl位置,ORACLE参数文件
  2. 一文看懂70年的人工智能简史
  3. 计算机工程 文章没有创新,【计算机基础论文】小议计算机专业人才创新力的培育(共1911字)...
  4. 170. Leetcode 135. 分发糖果 (贪心算法-两个维度权衡题目)
  5. try/ catch/ finally, 你不知道的细节,很骚!
  6. STM32 RTC实时时钟
  7. python3反转列表的三种方式
  8. C++new和delete实现原理(汇编解释)
  9. 【Ynoi2011】成都七中【树论】【点分树】【离线】【树状数组】
  10. 镜像电流源特点_模电中的电流源电路
  11. 洛谷 P3392 涂国旗
  12. 腾讯云连续四年排名中国音视频解决市场第一,头部厂商中RTC增速第一
  13. 构建官方CoreOS COSA 镜像并构建 CoreOS
  14. esp8266 防掉线方法_ESP8266-12F 中断
  15. DEBUG -- CLOSE BY CLIENT STACK TRACE问题的两种解决方案,整理自网络
  16. ODP.NET连接池性能计数器
  17. mysql redo/binlog 放在ssd盘或SAS盘性能差异测试
  18. RGB转YCbCr422_BT709颜色空间转换仿真
  19. 解析卷积神经网络学习笔记——魏秀参
  20. 如何清空c盘只剩系统_怎么清空c盘只保留系统文件 你值得一看的技巧

热门文章

  1. 视觉盛宴篇!推荐 12 个好用的 CSS 的开源项目,YYDS !
  2. yapi 事件创建、修改等接口事件监听
  3. 【收藏】基于QGIS的Google Earth Engine插件已发布
  4. Win10自带的邮件客户端配置腾讯企业邮箱账号
  5. 【网址收藏】VMware虚拟机安装Windows7
  6. Java synchronized的CPU层面实现细节
  7. JVM调优:jdk1.8新生代和老年代的比值是1:2
  8. Python爬虫开发:cookie的使用案例
  9. 物流项目宣传活动任务前台分页展示
  10. 吃下去的东西老是往上翻上来_这间日日火爆的面馆,当年海藻带宋思明吃过