Oracle 12c에서 많이 밀고 있는 Multitenant, ADO 등의 New feature 외에 소소한 몇몇 feature 들...
어디다가 쓸진 모르겠지만..
Invisible Columns
• The new 12c feature allows you to hide columns
• If a user or developer selects ALL columns from a table (i.e. select *…) the invisible columns will NOT be displayed.
• If a user specifically selects the invisible column (i.e. select salary,…) the column WILL be displayed in the output (you have to know it’s there).
• You can set column(s) to be visible/invisible with an alter table :
SQL> ALTER TABLE EMPLOYEE MODIFY (SSN INVISIBLE);
이로써 invisible 기능으로 index, row (12c new feature - valid time temporal), column을 숨길수 있게됬군요.. ㅋ
Create Views as Tables
Export a view as a table and then import it:
SQL> create view emp_dept as
(select a.empno, a.ename, b.deptno, b.dname, b.loc
from emp a, dept b
where a.deptno=b.deptno);
View created.
$ expdp scott2/tiger VIEWS_AS_TABLES=emp_dept
Processing object type TABLE_EXPORT/VIEWS_AS_TABLES/TABLE
. . exported "SCOTT2"."EMP_DEPT"
7.140 KB 14 rows
view를 table로 export 할 수 있는 기능.
업무에선 어떻게 쓰일수 있을지 모르겠지만..
DB 성능관련 view 들도 table로 간단히 뽑아낼 수 있다면 성능 history 구축하긴 쉽겠네요.
'Oracle Database > Oracle New Features' 카테고리의 다른 글
Queryable Patch Inventory (0) | 2014.11.11 |
---|---|
12c Hybrid Hash Distribution with Skew Detection / Handling (0) | 2014.05.20 |
Oracle 12c RMAN New feature : Table Recovery (0) | 2013.12.13 |
SQL prompt for Oracle Database 12c Multitenant (0) | 2013.12.09 |
Oracle 12c, Desupport for Raw Storage Devices (0) | 2013.12.06 |