oracle账户看不到视图,oracle 创建用户只有查看另一个用户的视图的权限

1、创建用户yyy

-- Create the user

create user YYY

identified by password

default tablespace SYSTEM

temporary tablespace TEMP

profile DEFAULT;

-- Grant/Revoke role privileges

grant connect to YYY;

grant dba to YYY;

grant resource to YYY;

2、创建表UIMAGE_DICITEM和表UIMAGE_DICINDEX

-- Create table

create table UIMAGE_DICITEM

(

DICID   VARCHAR2(10) not null,

ITEMID  VARCHAR2(10) not null,

ITEMVAL VARCHAR2(100) not null,

ITEMDES VARCHAR2(100)

)

-- Create table

create table UIMAGE_DICINDEX

(

DICID   VARCHAR2(10) not null,

DICNAME VARCHAR2(20) not null,

DICDES  VARCHAR2(100)

)

3、创建视图view_person_permission

create or replace view view_person_permission as

select p.dicid,p.dicname,c.itemid,c.itemval from uimage_dici

你可能感兴趣的:(oracle账户看不到视图)