Chinaunix首页 | 论坛 | 博客
  • 博客访问: 970316
  • 博文数量: 358
  • 博客积分: 8185
  • 博客等级: 中将
  • 技术积分: 3751
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-15 16:27
个人简介

The views and opinions expressed all for my own,only for study and test, not reflect the views of Any Company and its affiliates.

文章分类

全部博文(358)

文章存档

2012年(8)

2011年(18)

2010年(50)

2009年(218)

2008年(64)

我的朋友

分类:

2008-12-22 16:22:47


[root@gaudi ~]# su - oracle

[oracle@gaudi ~]$ sqlplus "/ as sysdba"

 

SQL*Plus: Release 9.2.0.4.0 - Production on  Dec 10 10:21:12 2008

 

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

 

Connected to:

Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production

With the Partitioning, OLAP and Oracle Data Mining options

JServer Release 9.2.0.4.0 - Production

 

SQL> create user lkg identified by lkg;

 

User created.

 

SQL> grant connect,resource to lkg;

 

Grant succeeded.

 

SQL> alter user lkg default tablespace gau01d;

 

User altered.

 
 
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
SQL> grant CREATE MATERIALIZED VIEW to dev;
Grant succeeded.
 

SQL> create user devr identified by devr
  2  /
User created.
SQL> conn dev/dev
Connected.
SQL> grant select any table to devr;
grant select any table to devr
*
ERROR at line 1:
ORA-01031: insufficient privileges

SQL> CREATE SYNONYM g103t for dev.g103t;
Synonym created.
SQL> select count(*) from g103t;
  COUNT(*)
----------
       468
SQL>
阅读(604) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~