网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

能select的表就可以exp吗

这篇文章主要讲解了“能select的表就可以exp吗”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“能select的表就可以exp吗”吧!

成都创新互联专业为企业提供固阳网站建设、固阳做网站、固阳网站设计、固阳网站制作等企业网站建设、网页设计与制作、固阳企业网站模板建站服务,十载固阳做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。

1.建立导出测试用户,并授予相关权限

[oracle@GXDB1] $sqlplus /nolog

SQL*Plus: Release 10.2.0.4.0 - Production on Fri May 3 15:11:19 2013

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

SQL> conn / as sysdba
Connected.

SQL> create user test_exp identified by a;

User created.

SQL> grant connect to test_exp;

Grant succeeded.

SQL> grant select on dep_study.bas_region to test_exp;

Grant succeeded.

2.导出dep_study.bas_region表

[oracle@GXDB1] $exp test_exp/a@gxtest file=a.dmp tables=dep_study.bas_region

Export: Release 10.2.0.4.0 - Production on Fri May 3 15:26:15 2013

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


Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in ZHS16GBK character set and UTF8 NCHAR character set

About to export specified tables via Conventional Path ...
EXP-00009: no privilege to export DEP_STUDY's table BAS_REGION
Export terminated successfully with warnings.
[oracle@GXDB1] $

3.给test_exp授予exp_full_database权限
SQL> grant exp_full_database to test_exp;

Grant succeeded.

4.成功导出表

[oracle@GXDB1] $exp test_exp/a@gxtest file=a.dmp tables=dep_study.bas_region

Export: Release 10.2.0.4.0 - Production on Fri May 3 15:29:20 2013

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


Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in ZHS16GBK character set and UTF8 NCHAR character set

About to export specified tables via Conventional Path ...
Current user changed to DEP_STUDY
. . exporting table                     BAS_REGION         17 rows exported
Export terminated successfully without warnings.

--ok 成功导出

5.收回select权限,并导出表

SQL>  revoke select on dep_study.bas_region from test_exp;

Revoke succeeded.

[oracle@GXDB1] $exp test_exp/a@gxtest file=a.dmp tables=dep_study.bas_region

Export: Release 10.2.0.4.0 - Production on Fri May 3 15:32:15 2013

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


Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in ZHS16GBK character set and UTF8 NCHAR character set

About to export specified tables via Conventional Path ...
Current user changed to DEP_STUDY
. . exporting table                     BAS_REGION
EXP-00056: ORACLE error 1031 encountered
ORA-01031: insufficient privileges
Export terminated successfully with warnings.


结论:

    exp其他用户的表,用户需要拥有select表和exp_full_database(角色)两个权限。

感谢各位的阅读,以上就是“能select的表就可以exp吗”的内容了,经过本文的学习后,相信大家对能select的表就可以exp吗这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是创新互联,小编将为大家推送更多相关知识点的文章,欢迎关注!


本文题目:能select的表就可以exp吗
当前URL:http://bjjierui.cn/article/jpgosi.html

其他资讯