Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: replication, Materialized views, and transparent data encryption
Frank van Bortel schrieb:
> Maxim Demenko wrote:
>
>>>The ORA-01732 could be thrown because you did not create >>>an updateable MV. >> >>Yes, i know (i was not sure - "alter table modify (column encrypt)" >>equals to data modification), but i implied , OP was asking about read >>only MV, maybe i am wrong.
Here what i did:
sqlplus scott/tiger
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Apr 25 14:05:21 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining
Scoring Engine options
scott_at_ORA102> alter system set encryption key identified by oracle;
System altered.
scott_at_ORA102> create tablespace tde datafile '/opt/oracle/admin/@/tde.dbf' size 1M;
Tablespace created.
scott_at_ORA102> alter table emp modify(ename encrypt);
Table altered.
scott_at_ORA102> create materialized view log on emp with sequence,rowid;
Materialized view log created.
scott_at_ORA102> @mv scott_at_ORA102> set echo on scott_at_ORA102> create materialized view emp_mv
2 tablespace tde
3 refresh fast
4 on demand
5 with rowid
6 as select * from emp
7
scott_at_ORA102> /
Materialized view created.
scott_at_ORA102> select ename from emp_mv;
ENAME
scott_at_ORA102> conn / as sysdba
Connected.
sys_at_ORA102> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
sys_at_ORA102> !strings /opt/oracle/admin/ORA102/tde.dbf|grep "SCOTT" SCOTT sys_at_ORA102>
Best regards
Maxim Received on Tue Apr 25 2006 - 07:06:58 CDT