Oracle Database 18c New Features

Slides:



Advertisements
Similar presentations
ITEC474 INTRODUCTION.
Advertisements

Chapter 20 Oracle Secure Backup.
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
4 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Oracle High Availability Solutions RAC and Standby Database Copyright System Managers LLC 2008.
Self-Managing Database: Easy Upgrade Tom Graves Consulting Member of Technical Staff Oracle Corporation Session id:
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
Backup The flip side of recovery. Types of Failures Transaction failure –Transaction must be aborted System failure –Hardware or software problem resulting.
Harvard University Oracle Database Administration Session 2 System Level.
Linux+ Guide to Linux Certification, Third Edition Chapter 11 Compression, System Backup, and Software Installation.
Module 14: Scalability and High Availability. Overview Key high availability features available in Oracle and SQL Server Key scalability features available.
Introduction to Oracle Backup and Recovery
DevCon ‘11 Center for Instructional Delivery. DevCon ‘11 Enrolling in Blackboard Learn for Campus Edition Alumni.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
1 Semester 2 Module 2 Introduction to Routers Yuda college of business James Chen
11i Cloning Panel Panel Moderator: Sandra Vucinic March, NCOAUG Conference Presenter For Custom Solution – Surender Sara.
Linux Operations and Administration
Oracle Database Administration
Module 1: Introduction to Microsoft SQL Server 7.0.
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
Session 5: Working with MySQL iNET Academy Open Source Web Development.
M ODULE 2 D ATABASE I NSTALLATION AND C ONFIGURATION Section 1: DBMS Installation 1 ITEC 450 Fall 2012.
Recovery Manager Overview Target Database Recovery Catalog Database Enterprise Manager Recovery Manager (RMAN) Media Options Server Session.
Database Administration TableSpace & Data File Management
ORACLE 10g DATA GUARD BROKER Ritesh Chhajer Sr. Oracle DBA.
ORACLE RAC. Definition Oracle Real Application Cluster (RAC) is a cluster system at the application level. It uses shared disk architecture that provides.
CHAPTER 6 Users and Basic Security. Progression of Steps for Creating a Database Environment 1. Install Oracle database binaries (Chapter 1) 2. Create.
Installing Oracle Database 11gR2 Software on Red Hat Enterprise Linux 5 (RAC)
ORACLE
11g(R1/R2) Data guard Enhancements Suresh Gandhi
New SharePoint 2016 Features
Deploying Windows 7 Lesson 3. Objectives Understand enterprise deployments Capture an image file Modify an image file Deploy an image file.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
Using OUI to install Oracle9i Release 2 on an OpenVMS System.
Installing Oracle9i RAC Release 2 on HP OpenVMS Systems.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
IT Database Administration SECTION 02. CREATING DATABASES Creating a Database: Overview 1. Plan the physical design and storage structures 2. Back.
Week 2 Lecture 1 Creating an Oracle Instance. Learning Objectives  Learn the steps for creating a database  Understand the prerequisites for creating.
11g The Perfection of a Masterpiece A presentation about new features of 11g you may not have noticed Christo Kutrovsky The Pythian Group 2007 October.
11 Copyright © 2007, Oracle. All rights reserved. Implementing Oracle Database Security.
Alibaba and PostgreSQL Guangzhou Zhang Practices on providing PG as a cloud service in Alibaba.
Introduction to MySQL  Working with MySQL and MySQL Workbench.
3 Copyright © 2006, Oracle. All rights reserved. Installation and Administration Basics.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
CACI Proprietary Information | Date 1 Upgrading to webMethods Product Suite Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8,
Dept. of Computer & Information Sciences
Planning a Migration.
2nd year Computer Science & Engineer
SQLcl: A Modern Command Line Interface to the Oracle Database
Part 2 – Installation & Configuration
Extended Operating System Support
Running a Forms Developer Application
How To Pass Oracle 1z0-060 Exam In First Attempt?
Recovery Catalog Creation and Maintenance
SQL and SQL*Plus Interaction
Oracle Database for APM 9.1
Using Data Dictionary and Dynamic Performance Views
Is 221: Database Administration
Creating an Oracle Database
Get Oracle 8i Running on Your Linux Server Straight Away!
Introduction of Week 3 Assignment Discussion
Using SQL*Plus.
Chapter 5 Objectives Understand How to Plan a Windows 7 Deployment with Answer Files. Capture System Image Using Sysprep and ImageX. Use Deployment Image.
Managing Privileges.
Introduction.
Microsoft SQL Server 2014 for Oracle DBAs Module 1
Michelle Haarhues Keeping up with SSMS.
Oracle 12c Multitenant Database
Presentation transcript:

Oracle Database 18c New Features Hariprasath Rajaram

Training Objective Oracle Cloud Free Account 18c Database Creation 18c Dataguard MEMOPTIMIZE_POOL_SIZE in SGA Cancel SQL Instead of Killing Session Pre-Upgrade Utility (Doc ID 884522.1) SQLPLUS New Options 18c merge partition online Container Database Docker Support

Cancel SQL Instead of Killing Session

SQL statement without using Resource Manager techniques Oracle 18c is really Oracle 12.2.0.2 Step:1 Step:2 SQL> select distinct sid from v$mystat; SID ---------- 285 Step:3 SQL> begin loop null; end loop; end; 2 / SQL> select banner_full from v$version; BANNER_FULL -------------------------------------------------------------------------------- Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 – Production Version 18.1.0.0.0

SQL statement without using Resource Manager techniques SQL> select sql_text,sql_id from v$sql where sql_text like '%loop null; end loop%'; SQL_TEXT SQL_ID ------------- begin loop null; end loop; end; 8gadd3yhtd150 SQL> select serial# from v$session where sid=285; SERIAL# ---------- 27839 SQL> alter system cancel sql '285,27839,8gadd3yhtd150'; System altered.

SQL statement without using Resource Manager techniques begin loop null; end loop; end; * ERROR at line 1: ORA-01013: user requested cancel of current operation

Pre-Upgrade Utility (Doc ID 884522.1)

Pre-Upgrade Utility Origin of Script The pre-upgrade scripts that are available for download below are shipped with each Oracle Database release.  The scripts can also be found in the newly installed $ORACLE_HOME/rdbms/admin directory of the version you are planning to upgrade to.  Getting a hold of the pre-upgrade script used to mean downloading the entire Oracle Database Release kit, unpacking it, and pulling it out of the admin directory.   Allowing access to the script through this method will make the Oracle Database Upgrade planning easier. Script Guidelines   The pre-upgrade scripts can be executed on a database without the need to shutdown or restart the database.  It gathers information about the database configuration and reports on conditions, parameters and settings which may need attention prior to upgrading to the new version.  You must have DBA privilege to execute the script successfully. The Database can not be in read-only mode.  A few registry$ tables may be created, if they do not already exist, and some rows may be inserted into existing Upgrade tables.  You must remember that this  is a newer version than the one you have in your oracle home, so you need to backup the older version and replace the files from this MOS note.

Pre-Upgrade Utility

Pre-Upgrade Utility How to Download and Run Oracle's Database Pre-Upgrade Utility (Doc ID 884522.1)

SQLPLUS New Options

18c SQLPLUS New Options SET FEEDBACK ON SQL_ID You can find the sql_id for the executed statement in the sqlplus without querying v$sql or dbms_xplan.display_cursor.

18c SQLPLUS New Options SET ROWLIMIT n Limit the Number of rows in the sql prompt, without using rownum

18c Read only Home and Password File Location Changes

Read only Home and Password File Location Changes Readonly Oracle Home: [oracle@db18c-se-si bin]$ ./roohctl -enable Enabling Read-Only Oracle home. Cannot enable Read-Only Oracle home in a configured Oracle home. The Oracle Home is configured with databases 'orcl'. The Oracle Home is configured with listeners 'LISTENER'. We need to comment out /etc/oratab and rename listener.ora file. [oracle@db18c-se-si bin]$ ./roohctl -enable Enabling Read-Only Oracle home. Update orabasetab file to enable Read-Only Oracle home. Orabasetab file has been updated successfully. Create bootstrap directories for Read-Only Oracle home. Bootstrap directories have been created successfully. Bootstrap files have been processed successfully. Read-Only Oracle home has been enabled successfully.

Read only Home and Password File Location Changes Disabled back [oracle@db18c-se-si bin]$ ./roohctl -disable Disabling Read-Only Oracle home. Update orabasetab file to disable Read-Only Oracle home. Orabasetab file has been updated successfully. Read-Only Oracle home has been disabled successfully.

Installing Oracle Database Using RPM Packages in Oracle 18c

Installing Oracle Database Using RPM Packages in Oracle 18c RPM-based Oracle Database installation is supported only on Oracle Linux systems. Log in as root Install the Oracle Preinstallation RPM to prepare your Oracle Linux machine for the RPM-based Oracle Database installation. # yum -y install oracle-database-server-18c-preinstall Access the software download page for Oracle Database RPM-based installation from OTN. Download the .rpm file required for performing an RPM-based installation to a directory of your choice. For example, download the oracle-ee-db-18.1.0.0.0-1.x86_64.rpm file to the /tmpdirectory.

Installing Oracle Database Using RPM Packages in Oracle 18c Ensure that the /opt directory is owned by the user oracle and group oinstall. ls -l /opt # chown -R oracle:oinstall /opt Go to the rpm directory and run the rpm -ivh command to perform the RPM-based installation. # cd /tmp/rpm # rpm -ivh oracle-ee-db-18.1.0.0.0-1.x86_64.rpm This command creates the Oracle home at the location /opt/oracle/product/18.0.0.0.0-1/dbhome_1.

Installing Oracle Database Using RPM Packages in Oracle 18c Create a database by using Oracle Database Configuration Assistant (Oracle DBCA) in silent mode. /opt/oracle/product/18.1.0.0.0-1/dbhome_1/bin/dbca -silent -createDatabase –help Creates a non-CDB database by passing command-line arguments to Oracle DBCA: # su oracle $ /opt/oracle/product/18.1.0.0.0-1/dbhome_1/bin/dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname orcl -sid orcl -createListener LISTENER:1521

MEMOPTIMIZE_POOL_SIZE in SGA

MEMOPTIMIZE_POOL_SIZE in SGA The Memoptimized Rowstore improves the data query performance of applications, such as Internet of Things (IoT), that frequently query tables based on primary key values. About the Memoptimized Rowstore The Memoptimized Rowstore provides the capability of fast lookup of data for the tables that are mainly queried based on primary key columns. Enabling the Memoptimize Pool for a Database Before high frequency queries can use the Memoptimized Rowstore to improve performance, you must enable the memoptimize pool for the database. Using Fast Lookup Fast lookup feature of the Memoptimized Rowstore improves the performance of queries that are based on primary key columns.

MEMOPTIMIZE_POOL_SIZE in SGA The following are considerations for fast lookup: Tables enabled for fast lookup cannot be compressed. Tables enabled for fast lookup must have a primary key constraint enabled. Prerequisites The database is open. The COMPATIBLE initialization parameter is set to 18.0.0 or higher. The MEMOPTIMIZE_POOL_SIZE initialization parameter is set to 0 (default). The SGA can contain the In-Memory Column Store (IM column store) or memoptimize pool, both of which are optional. No matter which memory management method you use, size the IM column store with the INMEMORY_SIZE initialization parameter, and the memoptimize pool with the MEMOPTIMIZE_POOL_SIZE initialization parameter. The IM column store size are memoptimize pool are included in the memory target, but are not managed by the automatic resize algorithm. if you set MEMORY_TARGET to 5 GB and INMEMORY_SIZE to 1 GB, then the overall memory target is 5 GB (not 6 GB), and the INMEMORY_SIZE is always 1 GB.

MEMOPTIMIZE_POOL_SIZE in SGA  Enabling the Memoptimize Pool SQL> SHOW PARAMETER MEMOPTIMIZE_POOL_SIZE NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ memoptimize_pool_size big integer 0 SQL> ALTER SYSTEM SET MEMOPTIMIZE_POOL_SIZE=10G SCOPE=SPFILE; System altered. SQL> SHUTDOWN IMMEDIATE SQL> STARTUP memoptimize_pool_size big integer 10G Note: This parameter is not dynamic and required database restart.

MEMOPTIMIZE_POOL_SIZE in SGA Enabling a New Table for Fast Lookup CREATE TABLE test_flookup (id NUMBER(5) PRIMARY KEY,test_col VARCHAR2(15)) MEMOPTIMIZE FOR READ; Enabling an Existing Table for Fast Lookup ALTER TABLE sh.sales MEMOPTIMIZE FOR READ; Populating a Table in the Memoptimize Pool execute DBMS_MEMOPTIMIZE.POPULATE('OE','ORDERS'); Disabling an Existing Table for Fast Lookup ALTER TABLE sh.sales NO MEMOPTIMIZE FOR READ;

18c Container Database Architecture

Container Database RMAN duplicate PDB into existing CDB Refreshable PDB Switchover Snapshot Carousel Enhanced DG Integration Dynamic Lockdown Profiles CDB Fleet Management Copying a PDB in an Oracle Data Guard Environment

Docker Support

Docker Support Docker is a container management service. The keywords of Docker are develop, ship and run anywhere. The whole idea of Docker is for developers to easily develop applications, ship them into containers which can then be deployed anywhere. With containers, it becomes easier for teams across different units, such as development, QA and Operations to work seamlessly across applications. You can deploy Docker containers anywhere, on any physical and virtual machines and even on the cloud. Since Docker containers are pretty lightweight, they are very easily scalable.

Docker Support Oracle Database is fully supported on Docker for Oracle Linux 7 Red Hat Enterprise Linux 7 ** Oracle RAC is not supported on Docker “CURRENTLY” but in Oracle 18c Oracle RAC support is coming MOS Note: Oracle Support for Database Running on Docker (Doc ID 2216342.1) Oracle 12.2.0.1 & 12.1.0.2 images are available on Oracle Container Registry https://container-registry.oracle.com Docker build files also available at https://github.com/oracle/docker-images

THANK YOU