Bo's Oracle Station

查看: 1465|回复: 0

2014-07-09-first-terminal.txt

[复制链接]

75

主题

115

帖子

2772

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2772
发表于 2014-7-14 17:16:15 | 显示全部楼层 |阅读模式
[root@station90 ~]# su - oracle
[oracle@station90 ~]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Wed Jul 9 19:27:07 2014

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

SQL> conn sh/oracle_4U
Connected.
SQL> grant select on sales to hr with grant option;

Grant succeeded.

SQL> revoke select  on slaes from hr;
revoke select  on slaes from hr
                  *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL> revoke select  on sales from hr;

Revoke succeeded.

SQL> grant  select  on sales to r1;

Grant succeeded.

SQL> grant r1 to hr with admin option;
grant r1 to hr with admin option
*
ERROR at line 1:
ORA-01919: role 'R1' does not exist


SQL> conn system/oracle_4U
ERROR:
ORA-28001: the password has expired


Changing password for system
New password:
Password unchanged
Warning: You are no longer connected to ORACLE.

SQL>
SQL>
SQL> conn system/oracle_4U
ERROR:
ORA-28001: the password has expired


Changing password for system
New password: *********
Retype new password: *********
Password changed
Connected.
SQL> show user
USER is "SYSTEM"
SQL> grant r1 to hr with admin option;

Grant succeeded.

SQL> revoke r1 from hr ;

Revoke succeeded.

SQL> revoke select  on sh.sales from r1 ;

Revoke succeeded.

SQL> grant select  on sh.customers to r1 ;

Grant succeeded.

SQL> revoke select  on sh.customers from r1 ;

Revoke succeeded.

SQL> revoke  r2  from r1 ;

Revoke succeeded.

SQL> revoke r1 from ops$oracle;

Revoke succeeded.

SQL> grant select_catalog_role to hr ;

Grant succeeded.

SQL> revoke  select_catalog_role  from hr;

Revoke succeeded.

SQL> grant select_catalog_role to hr ;

Grant succeeded.

SQL>


























回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-12-5 10:20 , Processed in 0.031209 second(s), 24 queries .

快速回复 返回顶部 返回列表