Oracle Database 12c R1/R2 New Features for 11g DBA (and ... · PDF fileOracle Database 12c...
date post
14-Jul-2018Category
Documents
view
236download
5
Embed Size (px)
Transcript of Oracle Database 12c R1/R2 New Features for 11g DBA (and ... · PDF fileOracle Database 12c...
Oracle Database 12c R1/R2 New Features for 11g DBA(and Developer)!
@biju_thomas
Biju Thomas
Principal Solutions ArchitectOneNeck IT Solutionswww.OneNeck.com
OneNeck IT Solutions at a Glance Backed by Fortune 500 strength of Telephone and Data Systems Hybrid IT Nearly 550 employees 8 data centers in 6 states, Coast-to-coast presence
2
About me!
Biju Thomas
3
Principal Solutions Architect with OneNeck IT Solutions Over 20 years of Oracle Database development and administration expertise Over 10 years of Oracle E-Business Suite Architecture & Tuning expertise First book published in September 2000, seventh in 2015 DBA Website since 1997 www.bijoos.com Oracle ACE Director
http://www.bijoos.com/
2014 OneNeck IT Solutions LLC. All rights reserved. All other trademarks are the property of their respective owners.4 2014 TDS Hosted & Managed Services, LLC. All rights reserved. All other trademarks are the property of their respective owners.
Learn features of Oracle Database 12c that are not top, but
would help you!
As a 11g DBA/Developer, what you should know when working
with 12c R1 or R2 database (changed behavior or additional
functionality).
Many features at a high level once you know what to look for,
googling always works! (have
Database 12.2 Features(Cloud Only)
2014 OneNeck IT Solutions LLC. All rights reserved. All other trademarks are the property of their respective owners.6 2014 TDS Hosted & Managed Services, LLC. All rights reserved. All other trademarks are the property of their respective owners.
Automatic Password Propagation to Standby: Changing SYS password
Versions 12.1 and earlier Change password in primary
Copy password file from primary to standby sites
Version 12.2 Change password in primary
Automatically synched to all standby sites
One less thing to worry about!
Data Guard Password Sync 12.2
2014 OneNeck IT Solutions LLC. All rights reserved. All other trademarks are the property of their respective owners.7 2014 TDS Hosted & Managed Services, LLC. All rights reserved. All other trademarks are the property of their respective owners.
A partition or sub-partition can be marked as READ ONLY at the time of creation (CREATE TABLE) or later (ALTER TABLE).
Specify key word READ ONLY.
READ WRITE is the default.
Example 1: (xxt is partitioned table)
ALTER TABLE xxt READ ONLY;
All current and future created partitions will be read only.
Example 2:
ALTER TABLE xxt MODIFY PARTITION xxt_p4 READ WRITE;
All partitions except xxt_p4 are read only.
Read Only Partitions 12.2
2014 OneNeck IT Solutions LLC. All rights reserved. All other trademarks are the property of their respective owners.8 2014 TDS Hosted & Managed Services, LLC. All rights reserved. All other trademarks are the property of their respective owners.
In 12.1 and earlier, create the partitions and specify the values that fall in each partition. DEFAULT partition is used to catch all (similar to MAXVALUE in range).
New AUTOMATIC keyword in list partition. Oracle automatically creates a new partition for each distinct value in the partition column.
CREATE TABLE ab1 (s1 varchar2(2), d1 varchar2 (20))
PARTITION BY LIST (s1)
AUTOMATIC (PARTITION p_az VALUES ('AZ'));
ALTER TABLE xyz SET AUTOMATIC;
Notes An automatic list-partitioned table must have at least one partition when created.
Cannot have a DEFAULT partition.
Not supported at the sub-partition level.
Automatic List Partitions 12.2
2014 OneNeck IT Solutions LLC. All rights reserved. All other trademarks are the property of their respective owners.9 2014 TDS Hosted & Managed Services, LLC. All rights reserved. All other trademarks are the property of their respective owners.
Modify a non-partitioned table to partitioned table, online!
alter table allsyn modify
partition by list (owner)
AUTOMATIC (partition p_sys values ('SYS')) ONLINE;
alter table allsyn modify
partition by list (owner)
AUTOMATIC (partition p_sys values ('SYS'))
update indexes (allsyn_I1 LOCAL) ONLINE;
In versions prior to 12.2, this activity required DBMS_REDEFINITION.
Convert to Partitioned Table Online! 12.2
2014 OneNeck IT Solutions LLC. All rights reserved. All other trademarks are the property of their respective owners.10 2014 TDS Hosted & Managed Services, LLC. All rights reserved. All other trademarks are the property of their respective owners.
SQL*Plus command history available.
SET HIST[ORY] ON
SQL*Plus Notables 12.2
SET FEEDBACK ONLY
Returns just the number of rows returned by the query without displaying the query result.
SET MARKUP CSV
SET MARKUP command supports the display of data in CSV format. Produce output in HTML or CSV format.
2014 OneNeck IT Solutions LLC. All rights reserved. All other trademarks are the property of their respective owners.11 2014 TDS Hosted & Managed Services, LLC. All rights reserved. All other trademarks are the property of their respective owners.
Undo local to each pluggable database default for newly created databases.
When local undo is enabled, each PDB has own undo tablespace.
SELECT property_name, property_value
FROM database_properties
WHERE property_name = 'LOCAL_UNDO_ENABLED';
To change Undo mode, outage required, and need the database in UPGRADE mode.
STARTUP UPGRADE;
ALTER DATABASE LOCAL UNDO ON/OFF;
Local Undo for Pluggable Databases
http://docs.oracle.com/database/122/ADMIN/administering-a-cdb-with-sql-plus.htm#ADMIN-GUID-8F8B2FF8-7FA7-40CD-8AA5-ACABCD3964D8
12.2
http://docs.oracle.com/database/122/ADMIN/administering-a-cdb-with-sql-plus.htm#ADMIN-GUID-8F8B2FF8-7FA7-40CD-8AA5-ACABCD3964D8
2014 OneNeck IT Solutions LLC. All rights reserved. All other trademarks are the property of their respective owners.12 2014 TDS Hosted & Managed Services, LLC. All rights reserved. All other trademarks are the property of their respective owners.
A PDB lockdown profile is a named set of features that control operations available to users connected to a PDB.
New parameter PDB_LOCKDOWN
CREATE LOCKDOWN PROFILE medium;
ALTER LOCKDOWN PROFILE medium DISABLE STATEMENT=('ALTER
SYSTEM');
ALTER LOCKDOWN PROFILE medium ENABLE STATEMENT=('ALTER
SYSTEM') CLAUSE=('FLUSH SHARED POOL');
Creates a profile called medium that disables all ALTER SYSTEM statements except for ALTER SYSTEM FLUSH SHARED POOL.
Alter lockdown profile XP1 disable
statement=('ALTER SESSION') clause=('SET') OPTION
ALL EXCEPT=('sql_trace','optimizer_mode')
PDB Lockdown Profile
Reference: http://docs.oracle.com/database/122/CNCPT/overview-of-the-multitenant-architecture.htm#CNCPT-GUID-B964031E-8ACE-4603-8F1E-DD173BE5BA01
12.2
http://docs.oracle.com/database/122/CNCPT/overview-of-the-multitenant-architecture.htm#CNCPT-GUID-B964031E-8ACE-4603-8F1E-DD173BE5BA01
2014 OneNeck IT Solutions LLC. All rights reserved. All other trademarks are the property of their respective owners.13 2014 TDS Hosted & Managed Services, LLC. All rights reserved. All other trademarks are the property of their respective owners.
New user profile resource: INACTIVE_ACCOUNT_TIME
Automatically locks the database user account who has not logged into the database instance in a specified number of days.
Inactive Account Lock 12.2
2014 OneNeck IT Solutions LLC. All rights reserved. All other trademarks are the property of their respective owners.14 2014 TDS Hosted & Managed Services, LLC. All rights reserved. All other trademarks are the property of their respective owners.
In 12.1, maximum number of PDBs is 252
In 12.2 maximum number of PDBs is 4096
New parameter MAX_PDBS
In a single-tenant environment (if not licensed for multitenant), set this parameter to 1.
Maximum Number of PDBs 12.2
2014 OneNeck IT Solutions LLC. All rights reserved. All other trademarks are the property of their respective owners.15 2014 TDS Hosted & Managed Services, LLC. All rights reserved. All other trademarks are the property of their respective owners.
The SYSRAC administrative privilege Uused by the Clusterware agent in its connection to the database on behalf of Oracle RAC
utilities, such as SRVCTL.
The SYSRAC privilege provides only the minimal privileges necessary for performing day-to-day Oracle RAC operations.
Initialization parameter ALLOW_GROUP_ACCESS_TO_SGA Determines if the Oracle Database installation owner account is the only user that can
read and write to the database System Global Area (SGA), or if members of the OSDBA group can read the SGA.
The default value for this parameter is FALSE.
The maximum length for most database object names has increased from 30 bytes to 128 bytes.
Local temporary tablespace Created using LOCAL TEMPORARY TABLESPACE clause of CREATE TABLESPACE.
In RAC environment, local temporary tablespaces store a separate, nonshared temp files for each database instance, which can improve I/O performance.
A local temporary tablespace must be a BIGFILE tablespace.
Few more 12.2 12.2
2014 OneNeck IT Solutions LLC. All rights reserved. All other trademarks are the property of their respective owners.16 2014 TDS Hosted & Managed Services, LLC. All rights reserved. All other