Bo's Oracle Station

查看: 1249|回复: 0

2014-07-09-third-terminal.txt

[复制链接]

75

主题

115

帖子

2772

积分

管理员

Rank: 9Rank: 9Rank: 9

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

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

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

SQL> conn /
Connected.
SQL> select count(*) from sh.sales;
select count(*) from sh.sales
                        *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL> /

  COUNT(*)
----------
    918843

SQL> /

  COUNT(*)
----------
    918843

SQL> /
select count(*) from sh.sales
                        *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL> /
select count(*) from sh.sales
                        *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL> /

  COUNT(*)
----------
    918843

SQL> select count(*) from sh.sales;
select count(*) from sh.sales
                        *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL> /
select count(*) from sh.sales
                        *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL> select  * from session_roles;

ROLE
------------------------------
CONNECT

SQL> conn  /
Connected.
SQL> select  * from session_roles;

ROLE
------------------------------
CONNECT
R1

SQL> select count(*) from sh.sales;

  COUNT(*)
----------
    918843

SQL> conn /
Connected.
SQL> select count(*) from sh.sales;

  COUNT(*)
----------
    918843

SQL> select count(*) from sh.sales;
select count(*) from sh.sales
                        *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL> select count(*) from sh.customers;

  COUNT(*)
----------
     55500

SQL> select count(*) from sh.customers;
select count(*) from sh.customers
                        *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL> select count(*) from sh.channels;
select count(*) from sh.channels
                        *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL> /
select count(*) from sh.channels
                        *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL> select  * from session_roles;

ROLE
------------------------------
CONNECT
R1

SQL> set role CONNECT,R1;

Role set.

SQL> select  * from session_roles;

ROLE
------------------------------
CONNECT
R1
R2

SQL> select count(*) from sh.channels;

  COUNT(*)
----------
     5

SQL> select  * from session_roles;

ROLE
------------------------------
CONNECT
R1
R2

SQL> /

ROLE
------------------------------
CONNECT
R1
R2

SQL>





SQL>













































回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

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

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