那么你以sys账户登录: SQL>conn sys/password as sysdba; SQL>select owner,table_name from all_all_tables SQL>where table_name='TABLE1'; 其中得出owner的值,例如为a,则执行下面查询。 SQL>select * from a.table1;
再查: SQL>select owner,table_name from all_all_tables SQL>where owner='SYSTEM'; 或 SQL>select owner,table_name from all_all_tables SQL>where owner='SYS'; 看看其中有没有表table1, 如果找不到,则证明此表确实不存在。
提示未选定行,但我进入OMS中选中SQL*PLUS WORKSHEET,却好用,而且用select owner,table_name from all_all_tables where owner='SYSTEM',的确能查出来table1来,但为什么在外面的SQL*PLUS却只能查出系统的表;不解,愿闻其详!!
再以system 登录sqlplus,执行: SQL>select table_name from user_tables; 看能不能找到表table1,如果还不行,那就真的太奇怪了。
哈。今天我也遇到了类似的问题呢。 8.1.7 下面,以cts用户登陆sqlplus SQL> select * from cts.table; 有记录 SQL> select * from table ; table不存在。 SQL> select owner,table_name from all_tables where table_name like '%TABLE%'; 显示owner就是cts. SQL>select table_name from user_tables where table_name like '%TABLE%'; 显示没有选定行。真是奇怪了!
SQL>conn sys/password as sysdba;
SQL>select owner,table_name from all_all_tables
SQL>where table_name='TABLE1';
其中得出owner的值,例如为a,则执行下面查询。
SQL>select * from a.table1;
SQL>select owner,table_name from all_all_tables
SQL>where owner='SYSTEM';
或
SQL>select owner,table_name from all_all_tables
SQL>where owner='SYS';
看看其中有没有表table1,
如果找不到,则证明此表确实不存在。
SQL>select table_name from user_tables;
看能不能找到表table1,如果还不行,那就真的太奇怪了。
8.1.7 下面,以cts用户登陆sqlplus
SQL> select * from cts.table; 有记录
SQL> select * from table ; table不存在。
SQL> select owner,table_name from all_tables where table_name like '%TABLE%';
显示owner就是cts.
SQL>select table_name from user_tables where table_name like '%TABLE%';
显示没有选定行。真是奇怪了!