ora-01732錯誤 for ORACLE 10G
SQL> create table t1(name varchar2(6),age number(3));
Table created.
SQL> insert into t1 values('leo',28);
1 row created.
SQL> commit
2 ;
Commit complete.
SQL> insert into t1 values('ken',29);
1 row created.
SQL> commit;
Commit complete.
SQL> CREATE MATERIALIZED VIEW v1 as (select * from t1);
Materialized view created.
SQL> select * from v1;
NAME AGE
------ ----------
leo 28
ken 29
SQL> insert into t1 values('eric',29);
1 row created.
SQL> commit;
Commit complete.
[@more@]
SQL> create table t1(name varchar2(6),age number(3));
Table created.
SQL> insert into t1 values('leo',28);
1 row created.
SQL> commit
2 ;
Commit complete.
SQL> insert into t1 values('ken',29);
1 row created.
SQL> commit;
Commit complete.
SQL> CREATE MATERIALIZED VIEW v1 as (select * from t1);
Materialized view created.
SQL> select * from v1;
NAME AGE
------ ----------
leo 28
ken 29
SQL> insert into t1 values('eric',29);
1 row created.
SQL> commit;
Commit complete.
SQL> select * from v1;
NAME AGE
------ ----------
leo 28
ken 29
SQL> delete from v1;
delete from v1
*
ERROR at line 1:
ORA-01732: data manipulation operation not legal on this view
SQL> update v1 set age=29 where name='leo';
update v1 set age=29 where name='leo'
*
ERROR at line 1:
ORA-01732: data manipulation operation not legal on this view
SQL> update t1 set age=29 where name='leo';
1 row updated.
SQL> commit;
Commit complete.
SQL> truncate table v1;
Table truncated.
SQL> select * from v1;
no rows selected
SQL> select * from t1;
NAME AGE
------ ----------
leo 29
ken 29
eric 29
SQL> insert into v1 values('ella',30);
insert into v1 values('ella',30)
*
ERROR at line 1:
ORA-01732: data manipulation operation not legal on this view
SQL> drop materialized view v1;
Materialized view dropped.
SQL> desc t1;
Name Null? Type
----------------------------------------- -------- ----------------------------
NAME VARCHAR2(6)
AGE NUMBER(3)
SQL> select * from t1;
NAME AGE
------ ----------
leo 29
ken 29
eric 29
SQL> create MATERIALIZED VIEW v1 refresh force with rowid for update as (select * from t1);
Materialized view created.
SQL> select * from v1;
NAME AGE
------ ----------
leo 29
ken 29
eric 29
SQL> delete from v1;
3 rows deleted.
SQL> commit;
Commit complete.
SQL> select * from v1;
no rows selected
SQL> exec dbms_mview.refresh('v1');
PL/SQL procedure successfully completed.
SQL> select * from v1;
NAME AGE
------ ----------
leo 29
ken 29
eric 29
參考網址:
http://blog.sina.com.cn/s/blog_492c0acd01009lec.html
http://database.group.javaeye.com/group/blog/546309
http://yangtingkun.itpub.net/post/468/501199
http://hi.baidu.com/optical/blog/item/fc15c1fcdda93687b901a09c.html
http://blog.chinaunix.net/u/9295/showart_176143.html
http://hi.baidu.com/strongit/blog/item/3c4c7f822ec0f6a60cf4d290.html
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/789833/viewspace-1037812/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- AIX 5.3 Install Oracle 10g RAC 錯誤集錦AIOracle 10g
- aix下的oracle oracle 10g rac報ora-04030錯誤AIOracle 10g
- [排錯]安裝Oracle 10g RAC報Failure at final check of Oracle CRS stack 10錯誤Oracle 10gAI
- Oracle 11g匯入到10g引起的錯誤Oracle
- ORACLE 錯誤Oracle
- win7 32位下裝oracle 10g報未知錯誤Win7Oracle 10g
- 本文將詳細介紹oracle 10g OEM常規錯誤Oracle 10g
- ORACLE 異常錯誤 錯誤號大全Oracle
- Oracle 錯誤收集Oracle
- ORACLE錯誤大全Oracle
- EF Oracle:錯誤 175Oracle
- oracle 常見錯誤Oracle
- oracle錯誤小結Oracle
- Oracle安裝錯誤Oracle
- Oracle ASM 配置錯誤OracleASM
- 遇到 ORACLE 錯誤 6550Oracle
- Oracle ORA 錯誤大全Oracle
- oracle 10g rac安裝報錯Oracle 10g
- ORACLE FORM 10G本地程式除錯OracleORM除錯
- oracle 報大小寫錯誤Oracle
- Oracle nvarchar2錯誤Oracle
- Oracle錯誤號檢索Oracle
- ORACLE tsm 備份錯誤Oracle
- perl連線Oracle錯誤Oracle
- oracle的1788錯誤碼Oracle
- ORACLE 錯誤一覽表Oracle
- oracle錯誤一覽(轉)Oracle
- Oracle ORA-錯誤表Oracle
- oracle 10g rac +aix 6.1+hacmp 5.5 建庫出現ORA-600錯誤Oracle 10gAIACM
- 虛擬機器安裝10g rac錯誤虛擬機
- 10g RAC 超過最大程式數的錯誤
- oracle EBS啟動無錯誤,訪問網頁500錯誤Oracle網頁
- 10G建立資料庫時發生的錯誤資料庫
- Oracle異常錯誤處理Oracle
- ORACLE 異常錯誤處理Oracle
- oracle dataguard 配置錯誤彙總Oracle
- Oracle之Rman常見錯誤Oracle
- Oracle錯誤處理思路(一)Oracle