Home > Database > Mysql Tutorial > Oracle scott用户创建视图方法

Oracle scott用户创建视图方法

WBOY
Release: 2016-06-07 16:46:54
Original
1342 people have browsed it

做Oracle的实验,需要导入导出视图,scott下没有视图,故需要创建。若用scott直接创建,则显示ldquo;ORA-01031: 权限不足rdquo

做Oracle的实验,需要导入导出视图,scott下没有视图,故需要创建。

若用scott直接创建,则显示“ORA-01031: 权限不足”,方法如下。

SQL> grant create view to scott;
grant create view to scott
*
第 1 行出现错误:
ORA-01031: 权限不足
SQL> conn sys/root as sysdba
已连接。
SQL> grant create view to scott;
授权成功。
SQL> conn scott/root
已连接。
SQL> create or replace view viewbysql as select * from emp where deptno=20 with check option constraint viewbysql_1;
视图已创建。

如此,可成之。

另:导入导出视图,网上有说是没有对应的imp/exp方法,然后果断用Oracle SQL Developer工具,方便快捷,,强大。

各位大牛,若有敲命令方法,望不吝赐教!

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template