Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
NEW FEATURES
Ishtiaq Hussain
Sr.Technical Consultant
Information Architects
Agenda
Oracle Database Administration New features
Oracle Database Developer New features
Oracle Database Administration New
features
What is New in Oracle Database Administration
Multitenant Architecture?
Multitenant benefits
Shared Resources
Files in PDBs
RMAN
Backup types
Data Pump
Changing init.ora Paramters
Automatic Diagonistic Reporsitory
Oracle Flashback Technology
What is New in Oracle Database - Develope
Low Priority
Medium Priority
High Priority
Database Consolidation Requirements
No performance degradation
Centralized resource
management
Simplify patching and
upgrades
ERP
CRM
BI
DW
Benefit: Manage Many Databases as One
Backup databases as one, recover at pluggable database Level
One Backup
Point-in-time recovery
at pluggable database level
Benefit: Manage Many Databases as One
One standby database covers all pluggable databases
Benefit: Simplified Patching
Apply changes once, all pluggable databases updated
Upgrade
in-place
Benefit: Simplified Upgrades
Flexible choice when patching & upgrading databases
Benefit: Creating Databases for Test and Development
Fast, flexible copy and snapshot of pluggable databases
Benefit: Oracle Database 12c Multitenant Architecture
Reduced TCO
Administrative costs
Operational costs
Data Center costs
Storage costs
Improved ERP
Manageability BI
DW
Shared Resources
Background processes
Shared/process memory
Oracle metadata
Control files
Redo Log files
Files in PDBs
Automatically tunes the export and import processes. Tuning parameters like BUFFER,COMMIT,COMPRESS,DIRECT
1 Tuning
and RECORDLENGTH are not required
2 Parallelism Being a server side job, parallel processing can be done to make data export and import more efficient
3 REMAP Tables can be imported into a different tablespace from the source database
Changing init.ora Paramters
In Oracle8i, Oracle instances were always started using a text file
called an init<SID>.ora. This file is by default located in the
"$ORACLE_HOME/dbs" directory. In Oracle 9i, Oracle has also
introduced the 'SPFILE', which is a binary file stored on the database
Server. Changes which are applied to the instance parameters may be
persistent across all startup/shutdown procedures. In now , we can
startup the instance using either an spfile or an init.ora file.
The default initialization files must are located as follows:
- on Unix ---> $ORACLE_HOME/dbs
ADR
Example:
SQL> CREATE TABLE emp (eno number(6), ename name varchar2(40), sal number(9)
INVISIBLE);
DDL logging
In 12cR1, we can now log the DDL action into xml and log files. This
will be very useful to know when the drop or create command was
executed and by who. The ENABLE_DDL_LOGGING initiation
parameter must be configured in order to turn on this feature. The
parameter can be set at the database or session levels. When this
parameter is enabled, all DDL commands are logged in an xml and a
log file under
the $ORACLE_BASE/diag/rdbms/DBNAME/log|ddl location. An
xml file contains information, such as DDL command, IP address,
timestamp etc.
Sql Identity Columns
Example:
SQL> create table dept (dept_id number generated as
identity, dept_name varchar);
SQL> create table dept (dept_id number generated as
identity (start with 1 increment by 1 cache 20 noorder),
dept_name varchar);
Sequence in Oracle 12c
Default column value to a sequence in Oracle 12c
Database.
Oracle Database 12c allows developers to default a column
directly to a sequence-generated value.
The DEFAULT clause of a table column can be assigned
to SEQUENCE.CURRVAL or SEQUENCE.NEXTVAL
Example:
/*Create a sequence*/ CREATE SEQUENCE seq START WITH 100
INCREMENT BY 10 /
/*Create a table with a column defaulted to the sequence value*/
CREATE TABLE t_def_cols ( id number default seq.nextval primary key,
name varchar2(30), doj date default on null '01-Jan-2000' )
FETCH FIRST