create view view_1 as
(select a.name ,b.sort 
 form table_1 a,table_2 b
 where a.id = b.id)
tablespace space1
with read only--当然是同步的,视图其实是对基本的一个映射

解决方案 »

  1.   

    1. 具体显示什么错误啊, 有错误的视图是不能进行查询的.2. 对于视图本身来说, 没有同步/不同步的概念. 试图只是将你的这条sql语句的文本存储在数据库中,他本身不作什么处理^_^
      

  2.   

    tablespace space1
    这个东西怎么用啊?
      

  3.   

    TABLESPACE spacename
    这个子句在create table 中是可以用的,但是在create view中总是报错  TABLESPACE  PUB
      *
    ERROR 位于第 12 行:
    ORA-00933: SQL command not properly ended
      

  4.   

    大呵,视图是针对方案的,不是针对 表空间的,你要搞清楚呀,
    Create View "方案名"."视图名" 
    Is
    select a.name ,b.sort 
    form place2.table_1 a,place2.table_2 b
    where a.id = b.idwith read only
      

  5.   

    create view view_1 as
    (select a.name ,b.sort 
     form table_1 a,table_2 b
     where a.id = b.id)
    --tablespace space1 这句不用
    with read only
      

  6.   

    我的问题最终解决了,是因为授权的问题
    我把place1的用户授权为grant select any table to place1
    成功
    谢谢大家