This article presents installation of Oracle database 12C(12.1) on Fedora 21.
Read following article to install Fedora 21 Linux: Install Fedora 21(for comfort set 4G memory for your virtual machine).
This article presents installation of Oracle database 12C(12.1) on Fedora 21.
Read following article to install Fedora 21 Linux: Install Fedora 21(for comfort set 4G memory for your virtual machine).
There are two important improvements in making big datafile backups and restores in Oracle 12C release 1
Multisection option was introduced in 11G and possible only for:
Requirements and restrictions
In Oracle Database 12C new keywords SESSION, GLOBAL are available that can be specified during a sequence creation
CREATE SEQUENCE session_seq START WITH 1 INCREMENT BY 1 SESSION; CREATE SEQUENCE global_seq START WITH 1 INCREMENT BY 1 GLOBAL;
GLOBAL – creates standard sequence well known in previous release. This is the default.
SESSION – creates new type session sequence, which is a special type of sequence that is specifically designed to be used with global temporary tables that have session visibility. Session sequence returns a unique range of sequence numbers only within a session, but not across sessions. Another difference is that session sequences are not persistent. If a session goes away, so does the state of the session sequences that were accessed during the session.
Session sequences must be created by a read-write database but can be accessed on any read-write or read-only databases (either a regular database temporarily open read-only or a standby database).
CACHE, NOCACHE,NOORDER are ignored when specified with SESSION calues
In Oracle 12C release 1 most of SQL and PL/SQL commands are supported in rman:
In previous releases
RMAN> sql 'create table test_tbl(id number)';
In Oracle Database 12C
RMAN> create table test_tbl(id number); RMAN> select * from test_tbl; RMAN> desc test_tbl
Have a fun 🙂
Tomasz
In 12C release 1 Oracle has introduced new administrative privilege SYSBACKUP. It’s less powerful than SYSDBA:
During installation of oracle database binaries the privilege is associated with OS group backupdba.
Example of adding oracle dedicated groups
#groups for database management groupadd -g 54321 oinstall groupadd -g 54322 dba groupadd -g 54323 oper groupadd -g 54324 backupdba groupadd -g 54325 dgdba groupadd -g 54326 kmdba groupadd -g 54327 asmdba groupadd -g 54328 asmoper groupadd -g 54329 asmadmin
useradd -u 54321 -g oinstall -G dba,oper,backupdba,dgdba,kmdba oracle
when installation of binaries is going on automatically new group is recognized
APPROX_COUNT_DISTINCT is new function available since version 12.1.0.2. It returns approximate number of rows that contain distinct values of expr.
APPROX_COUNT_DISTINCT(expr)
It’s alternative to the COUNT (DISTINCT expr) function, which returns the exact number of rows that contain distinct values of expr.
For processing large amounts of data it’s significantly faster than COUNT, with negligible deviation from the exact result.
Data Redaction: Overview
This new feature enables to easily prevent the display of sensitive data to end-users by performing redaction in each application. It’s very simple to implement and very efficient. Data are modified on the-fly right before results are returned to applications.
Data redaction is automatically turned off for following operations:
Temporal Validity is very interesting feature in Oracle 12C that provides ability to scan effectively Gantt data:
Following picture shows five records Rec1 … Rec5 that are active only in a period of time (represented in the picture as |————|). Usually the most complex part for programmers is to filter active records in specific dedicated time:
Typical example could be Employee table with two “time dimension” columns :
This article presents following new feature of Oracle Database 12C
In-Database Archiving – this option enables to mark records in a table as not active (called later archive records). As default archive records are not visible in Oracle sessions. The records can be later compressed or deleted.
The reason to add such option was to keep both versions of records (active and not active) in the same table instead of making backup(not active) on tape and delete them(not active) from a table.
This article presents new extension added into DBMS_METADATA and new package DBMS_METADATA_DIFF.
Both packages allow you to compare the metadata for two objects and show differences. Compare results can be presented as simple XML – SXML or SQL ALTER statements that can be used to make one object like the other.