请教大家,具有exp_full_database角色的用户是不是不能按用户方式导出?

[复制链接]
查看11 | 回复6 | 2007-3-9 13:32:40 | 显示全部楼层 |阅读模式
J:\Documents and Settings\gh>sqlplus/nolog
SQL*Plus: Release 9.2.0.1.0 - Production on 星期日 3月 25 14:35:58 2007
Copyright (c) 1982, 2002, Oracle Corporation.All rights reserved.
SQL> conn /@winora as sysdba
已连接。
SQL> grant exp_full_database ,resource,connect to sb102006;
授权成功。
SQL> exit
从Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production中断开
J:\Documents and Settings\gh>exp sb102006/sb102006@winora
Export: Release 9.2.0.1.0 - Production on 星期日 3月 25 14:41:00 2007
Copyright (c) 1982, 2002, Oracle Corporation.All rights reserved.

连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
输入数组提取缓冲区大小: 4096 >
导出文件: EXPDAT.DMP> c:\sb.dmp
(1)E(完整的数据库),(2)U(用户) 或 (3)T(表): (2)U > u
导出权限 (yes/no): yes >
导出表数据 (yes/no): yes >
压缩区 (yes/no): yes >
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
EXP-00056: 遇到 ORACLE 错误 942
ORA-00942: 表或视图不存在
EXP-00000: 导出终止失败
J:\Documents and Settings\gh>
回复

使用道具 举报

千问 | 2007-3-9 13:32:40 | 显示全部楼层
try
exp sb102006/sb102006@winora file=xxx owner=sb102006
回复

使用道具 举报

千问 | 2007-3-9 13:32:40 | 显示全部楼层
最初由 mychary 发布
[B]try
exp sb102006/sb102006@winora file=xxx owner=sb102006 [/B]

还是不行,

J:\Documents and Settings\gh>exp sb102006/sb102006@winora file=c:\ghh.dmp owner=sb102006

Export: Release 9.2.0.1.0 - Production on 星期日 3月 25 14:53:20 2007
Copyright (c) 1982, 2002, Oracle Corporation.All rights reserved.

连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
EXP-00056: 遇到 ORACLE 错误 942
ORA-00942: 表或视图不存在
EXP-00000: 导出终止失败
回复

使用道具 举报

千问 | 2007-3-9 13:32:40 | 显示全部楼层
但我把dba 权限给了sb102006用户之后就可以以sb102006用户进行用户方式导出。

J:\Documents and Settings\gh>sqlplus/nolog
SQL*Plus: Release 9.2.0.1.0 - Production on 星期日 3月 25 14:57:22 2007
Copyright (c) 1982, 2002, Oracle Corporation.All rights reserved.
SQL> conn /@winora as sysdba
已连接。
SQL> grant dba to sb102006;
授权成功。
SQL> exit
从Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production中断开
J:\Documents and Settings\gh>exp sb102006/sb102006@winora
Export: Release 9.2.0.1.0 - Production on 星期日 3月 25 14:57:50 2007
Copyright (c) 1982, 2002, Oracle Corporation.All rights reserved.

连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
输入数组提取缓冲区大小: 4096 >
导出文件: EXPDAT.DMP>
(1)E(完整的数据库),(2)U(用户) 或 (3)T(表): (2)U >
导出权限 (yes/no): yes >
导出表数据 (yes/no): yes >
压缩区 (yes/no): yes >
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
即将导出指定的用户...
要导出的用户: (RETURN 以退出) > sjbase
要导出的用户: (RETURN 以退出) >
. 正在导出 pre-schema 过程对象和操作
. 正在导出用户 SJBASE 的外部函数库名称
. 导出 PUBLIC 类型同义词
. 导出私有类型同义词
. 正在导出用户 SJBASE 的对象类型定义
即将导出 SJBASE 的对象 ...
. 正在导出数据库链接
. 正在导出序号
. 正在导出群集定义
. 即将导出 SJBASE 的表通过常规路径 ...
. . 正在导出表
CERY12159 行被导出
. . 正在导出表
DWTEMP168 行被导出
. . 正在导出表
GGHH
4 行被导出
. . 正在导出表
INITLTGZ 9140 行被导出
. . 正在导出表
INITSYGZ38434 行被导出
. . 正在导出表
JM
3 行被导出
. . 正在导出表
MY_ALL_AGGS 20 行被导出
. . 正在导出表
MY_ALL_OBJECTS 592992 行被导出
. . 正在导出表
PASSWORD
2 行被导出
. . 正在导出表
PERSONNEL53503 行被导出
. . 正在导出表
QQQ
0 行被导出
. . 正在导出表
T1120 行被导出
. . 正在导出表
T2 62 行被导出
. . 正在导出表
T3 29 行被导出
. . 正在导出表
TEMP216915 行被导出
. . 正在导出表
TEMPZHF 7176 行被导出
. . 正在导出表
TKDW109 行被导出
. . 正在导出表
TTT
2 行被导出
. . 正在导出表
TZDMRY279 行被导出
. . 正在导出表
T_TEMP 15 行被导出
. . 正在导出表
UNIT 1813 行被导出
. . 正在导出表
UNITTEMP265 行被导出
. . 正在导出表
UPDJM_TMP278 行被导出
. . 正在导出表
USERS
2 行被导出
. . 正在导出表
WH
3 行被导出
. . 正在导出表
YLLTGZ
0 行被导出
. . 正在导出表
YLLTGZ_HIS26492 行被导出
. . 正在导出表
YLSYGZ 35 行被导出
. . 正在导出表
YLSYGZ_HIS67538 行被导出
. . 正在导出表
Z777
2 行被导出
. . 正在导出表
ZFRY 2315 行被导出
. . 正在导出表
ZHFGZ270 行被导出
. . 正在导出表
ZHFGZ6Y254 行被导出
. . 正在导出表
ZHFGZ_HIS 126685 行被导出
. 正在导出同义词
. 正在导出视图
. 正在导出存储的过程
. 正在导出运算符
. 正在导出引用完整性约束条件
. 正在导出触发器
. 正在导出索引类型
. 正在导出位图, 功能性索引和可扩展索引
. 正在导出后期表活动
. 正在导出实体化视图
. 正在导出快照日志
. 正在导出作业队列
. 正在导出刷新组和子组
. 正在导出维
. 正在导出 post-schema 过程对象和操作
. 正在导出统计
在没有警告的情况下成功终止导出。
J:\Documents and Settings\gh>
回复

使用道具 举报

千问 | 2007-3-9 13:32:40 | 显示全部楼层
ORA-00942: 表或视图不存在
看样子哪张视图有可能出问题了。
回复

使用道具 举报

千问 | 2007-3-9 13:32:40 | 显示全部楼层
ORA-00942: 表或视图不存在
看样子哪张视图有可能出问题了。
可能是递归调用,没有权限。
回复

使用道具 举报

千问 | 2007-3-9 13:32:40 | 显示全部楼层
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE10.2.0.1.0Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL> create user liang1 identified by liang1;
User created.
SQL> grant exp_full_database ,resource,connect to liang1;
Grant succeeded.
SQL> conn liang1/liang1@test
Connected.
SQL> create table t as select * from all_tables;
Table created.
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\liang>exp liang1/liang1@test
Export: Release 10.2.0.1.0 - Production on Sun Mar 25 17:24:17 2007
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 Scoring Engine options
Enter array fetch buffer size: 4096 >
Export file: EXPDAT.DMP > f:\liang1.dmp
(1)E(ntire database), (2)U(sers), or (3)T(ables): (2)U > u
Export grants (yes/no): yes >
Export table data (yes/no): yes >
Compress extents (yes/no): yes >
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses ZHS16GBK character set (possible charset conversion)
About to export specified users ...
User to be exported: (RETURN to quit) > liang1
User to be exported: (RETURN to quit) > liang1
User to be exported: (RETURN to quit) >
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user LIANG1
. exporting foreign function library names for user LIANG1
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user LIANG1
. exporting object type definitions for user LIANG1
About to export LIANG1's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export LIANG1's tables via Conventional Path ...
. . exporting table
T 1371 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
About to export LIANG1's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export LIANG1's tables via Conventional Path ...
. . exporting table
T 1371 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.
C:\Documents and Settings\liang>
导出一点问题没有。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行