ITPub博客

首页 > 数据库 > Oracle > ORA-28348, encryption column TDE, function index

ORA-28348, encryption column TDE, function index

原创 Oracle 作者:itpremier 时间:2010-12-02 11:12:24 0 删除 编辑

------------scenario 1

SQL> alter table emp2 modify (sal encrypt no salt) ;

alter table emp2 modify (sal encrypt no salt)

ORA-28348: index defined on the specified column cannot be encrypted

---- solution :

1,check function-based index on the encrypted column , if needed , drop the function index.

------------scenario 2

SQL> create index idx_emp2_sal2 on emp2(sal desc) ;

create index idx_emp2_sal2 on emp2(sal desc)

ORA-28337: the specified index may not be defined on an encrypted column

--- explanation:

index on column desc is implement as a function index. Oralce TDE does not support create function index on encrypted column.

-- solution:

if needed, remove "desc" keyword. Or think and redesign the data structure.

------------scenario 3

SQL> alter table emp2 modify (sal encrypt ) ;

alter table emp2 modify (sal encrypt )

ORA-28338: Column(s) cannot be both indexed and encrypted with salt
-- resolution :

Salt will result random additional data into the key .which will result in degrade of index performance.

---------

alter table t1 rekey USING 'aes192' 'nomac' ;

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/350519/viewspace-1042519/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 安装oracle
下一篇: stream, ultrasearch..
请登录后发表评论 登录
全部评论

注册时间:2008-11-27

  • 博文量
    253
  • 访问量
    773710