Sie sind auf Seite 1von 42

1

Presented To:
Sir Asadullah buledi

Presented By:
RIDA ZAMAN
RIDA FATIMA
ABEER FATIMA
SADAF RASHEED

Department of Computer Science

UNIVERSITY OF SINDH, JAMSHORO


2
Oracle 12c is a latest version of oracle
database
Oracle 12c was released on 1 july 2013,here
c stands for cloud enabled
It features a new multitenat option that helps
compaines to consolidate database into
private or public cloud.

3
Consolidate your data information with
pluggable database
Simplifying information life cycle
management with data tieriy
Increase performance across globily
distributed databases with GOS.

4
SQL Enhancement
Backup and Recovery
Database Management Enhancement
Oracle Networking Enhancement
Oracle Performance Tuning
Oracle ASM New Features
Oracle RAC New Features

5
6
We have a new command
TRUNCATE TABLE<TABLE_NAME>CASCADE;
through this command we can truncate
primary and dependent table data.
We can use this command in table partition too
E.G
While normalizing our database

7
We can create invisible column in table
Invisible column never shows in select * queries but it
shows in results where mention column in select query

SQL>CREATE TABLE TEST(TESTNO NUMBER,TNAME


VARCHAR(30),T_DEPT NUMBER(2)INVISBLE);
After creating above test table you cant not see t_dept
from select * query but we will be able to see it through
this query:
SELECT T_DEPT FROM TEST
8
We can also use colinvisible command to
show the invisible columns

SQL>SET COLINVISIBLE ON

9
We can create session level sequence for testing which will
be deleted after session log off
CREATE SEQUENCE TEST SEQ START WITH 10
INCREAMENT BY 10 SESSION;
We can also modify sequence by using alter command:
ALTER SEQUENCE TEST_SEQ SESSION;
For removing session parameter:
ALTER SEQUENCE TEST_SEQ GLOBAL

10
You can extend datatype of VARCHAR2,RAW
and NVARCHAR2 from 4000 bytes to 32,767
bytes.
For using this feature change the initialize
parameter
MAX_STRING_SIZE=EXTENDED
and restart database in upgrade mode,
after that you need to execute
SQL>@?/RDBMS/ADMIN/UTL32K.SQL
11
From oracle database 12c we can create
multiple indexes on column
This features is available for composite
columns and single index both

12
13
New backup privilege introduced called
SYSBACKUP
It means now there is no need to give
SYSDBA privilege for performing backup and
recovery tasks
Sample command is following:
$./rman targetrman/rman as SYSBACKUP

14
Real time apply redo log to data guard
In previous release of oracle 12c default
option was apply redo from archived log files
on the standby database
In oracle database 12c release,the default
configuration is to use real-time apply so that
redo is applied directly from the standby redo
log file
This new feature helps to maintain minimum
or zero data loss
15
Active DATA GUARD is now accepting DML
operations on global temporary tables
Active standby database can be open in read
only mode
Active standby database is now supported
DML operations on global temporary tables
This feature enhance reporting facility and
performance of primary database

16
Direct SQL statement execution in RMAN
utility now no need of any prefix likesql in
RMAN command line
RMAN>SELECT sid,serial#,status
fromv$session;

17
Table level recovery is now possible using
RMAN in prior versions this feature didnt
available
Recover table username.tablename until time
<TIMESTAMP> DATAPUMP
DESTINATION/u05/dumpdirDUMP FILE
tablename.dmp NOTABLEIMPORT
REMAP TABLE<USERNAME.TABLENAME>:
<USERNAME.NEW_TABLE_NAME>;
18
In datapump new parameter introduced called
transform with
DISABLE_ARCHIVE_LOGGING
This option will disable archive log generation
during import process
Impdp directory=dpump dumpfile=test.dmp
logfile+test.log
TRANSFORM=DISABLE_ARCHIVE_LOGGING:
Y
19
20
In oracle 12c database, you can restore and
recover dta file over through net. Means you
can restore data file from standby database
to primary database vice versa using service
option with following command in RMAN
RMAN>RECOVER DATABASE FROM
SERVICE prod_service USING COMPRESSED
BACKUPSET;

21
22
Now you can move active data file online
without copying to another destination as
following command
ALTER DATABASE MOVE DATAFILE
/u01/data/test_tbs01.dbf TO
/u02/data/test_tbs01.dbf;
You can monitor above ongoing process using
dynamic data dictionary view
V$SESSION_LOMGOPS
23
New feature called PLUGGABLE database
and CONTAINER database introduced in
oracle 12c
Container database contains pluggable
database .You can say database in database.
Pluggable database plugs in to container
database.
You can plug in pluggable database into any
container database.Single container databse
contains many pluggable database.
24
Now you can enable logging mode of every data
definition language (DDL).every DDL command
will be logged in trace file at operating system
disk
For enabling this feature ,you should need to
enable parameter
ENABLE_DDL_LOGGING=TRUE
Trace files would be generating in following
dictionary
$ORACLE_BASE/diag/rdms/DBNAME/LOG/DDL

25
You can merge/split/add table partitions in
single SQL command
ALTER TABLE test_p
ADD PARTITION
PARTITION part11 VALUES LESS
THAN(120000),
PARTITION part12 VALUES LESS
THAN(130000);

26
You can move table partition online or offline
using following command
Offline command=>
ALTER TABLE table_name MOVE
PARTATION|SUBPARTITION<partition_name>T
O tablespace<tablespace_name>;
Online command=>
ALTER TABLE table_name MOVE
PARTATION|SUBPARTITION<partition_name>T
O tablespace<tablespace_name> UPDATE
INDEXES ONLINE;

27
You can truncate/drop multiple partitions in
single DDL command as following

ALTER TABLE test_p DROP PARTITIONS


part7,part9 UPDATE GLOBAL INDEXES;

ALTER TABLE test_p TRUNCATE


PARTITIONS part7,part9 UPDATE GLOBAL
INDEXES;
28
Preupgrade script is now available in oracle 12c
database for investigating preupgrade issues to
fix
Preupgrade script called preupgrd.sql is
available in rdbms/admin folder
Preupgrade_fixup.swl log file will be generated
in $ORACLE_BASE/cfgtoollogs directory
This script helps to investigate of certain issues
of upgrade process and we can easily resolve
issue using preupgrade_fixupsql
This feature can save our time of database
upgrade activity
29
30
You can gather object or database statistics
concurrently this feature generates statistics
multiple table/indexes simultaneously
For using this feature you should habe
nonzero value in parameter
JOB_QUEUE_PROCESSES and you need to
set following parameters
EXEC
DBMS_STATS.SRT_GLOBAL_PREFS(CONC
URRENT,ALL);
31
Excellent feature of temporary undo
In oracle 12c now temporary undo would be
generated in temporary tablespace .This
feature eliminates unnecessary redo
generation of temp tablespace usage
For enaling temporary undo ,you need to
make sure to set initialization parameter
TEMP_UNDO_ENABLED=TRUE

32
Program Global Area (PGA) limitaion
You can restrict PGA allocation in to database.In
prior version this feature wasnt available
You can use parameter
PGA_AGGREGATE_LIMIT=<some value> to
enable this limitation of PGA
Once ou define this value then oracle wont expand
more than this size of PGA this feature helps to
avoid paging/swapping and memory bottleneck
issues

33
Real time automatic database diagnostic
monitor ADDM
This feature available with oracle EM control of
12c only
In OEM portal you can select real time ADDM in
performance option for investigating findings of
production database
This feature is absolutely new and present there
is no another command line option available
means you need OEM control for using this
option

34
35
ASM Disk Rebalance Estimation
Like EXPLAIN PLAN FOR,new command
introduced as EXPLAIN WORK FOR Using this
statement ,oracle gathers and shows ASM disk
rebalance estimation in V$ASM_ESTIMATE view
example:
EXPLAIN WORK FOR ALTER DISKGROUP
DS_DATA1 ADD DISL dsd_03;
After successfully execution of above command
you can check estimation cost in
V$ASM_ESTIMATE for setting proper value of
POWER limit for faster task
36
New feature introduced called FLEX ASM
When any instance terminated in ASM, then
any survival ASM instance will bweup within
flex cluster to maintain high availability
For enabling this feature we need to install
flex cluster using oracle clusterware and this
option automatically install flex ASM option
at node
You can enable alex ASM using ASMCA utility
in your cluster enviroment
37
For checking and repeating logical corruption
of disks new facility introducted called ASM
DISK scrubbing
Using this facility now you can check and
repair disk for getting rid of logical corruption
Example:
ALTER DISLFROUP DS_DATA1 SCRUB
FILE+DG_DATA/TEST/DATAFILE/test.xxxx.x
xxxREPAIR POER AUTO;
38
39
Now flex cluster supported in oracle 12c
Flex cluster architecture contains hub and leaf nodes
Hub nodes are regular RAC nodes which are having
DIRECT access of storage and directly read/write
Leaf nodes are not having DIRECT access of storage
and they will get access through hub nodes
It means you can have hub nides without leaf nodes
but you cannot have leaf nodes without hub nodes
You can convert any node as leaf node as following
$./crsctl get node role config
$./crsctl get node role hub|leaf

40
Now you can start instance or database as
NO MOUNT,MOUNT and ,OPEN stage
SRVCTL command
This facility doesnt available in prior of oracle
12c
Example command is following
Srvctl start|stop database|instance-
startoption NOMOUNT|MOUNT|OPEN

41
42

Das könnte Ihnen auch gefallen