Oracle 11g Secure Files Overview Inderpal S. Johal. Inderpal S. Johal, Data Softech Inc.

Similar documents
TECHNICAL NOTE HOW TO USE LOOPERS. Kalipso_TechDocs_Loopers. Revision: 1.0. Kalipso version: Date: 16/02/2017.

WEST POINT GOLF CLUB USING THE GOLFSOFTWARE PROGRAM FOR THE DRAW AND SCORING

Microsoft System Center Data

Registering Club players in Whole Game Club Official Training Guide

Meter Data Distribution Market Trials

Technical Bulletin, Communicating with Gas Chromatographs

[MYLAPS INTEGRATION]

Fastball Baseball Manager 2.5 for Joomla 2.5x

SQL LiteSpeed 3.0 Installation Guide

Naval Postgraduate School, Operational Oceanography and Meteorology. Since inputs from UDAS are continuously used in projects at the Naval

Smart Card based application for IITK Swimming Pool management

LiteSpeed for SQL Server 6.5. Integration with TSM

Using SQL in MS Access

1 PIPESYS Application

Technical Bulletin, Meter Factor Linearization

Team BUSY : Excise register RG-23 A-11, provision made to input starting S.No.

Critical Systems Validation

Claiming expenses for ECB ACO Appointed Matches on WTU

INSTRUCTION FOR FILLING OUT THE JUDGES SPREADSHEET

Company Surge TM for. Installation Guide v4.0 January

Proform Software Upgrade v1.9.1 Release Notes Welcome to release of the Proform Form Book and System Builder.

Scoreboard Operator s Instructions MPC Control

Apple Device Instruction Guide- High School Game Center (HSGC) Football Statware

SIDRA INTERSECTION 6.1 UPDATE HISTORY

Viva TPS. TS11/15 Total Stations Check and Adjust Procedure. October Summary

Operating Manual Body fat balance

Gaia ARI. ARI s Gaia Workshop. Grégory Mantelet. 20 th June 2018 CDS / ARI

FIBA Europe Coaching Website. Manual. Practice Section

HOW TO SETUP ROUND ROBIN IN DARTS FOR WINDOWS

LISA - Test Pacing. Capgemini India Private Limited. July Prepared by: Srikumar Bose

Q and A for Membership Commerce Portal. Q: Can a club start offering this at any time or does it have to be started at yearend?

Dive Planet. Manual. Rev Basic User Interface. 2 How to organize your dives. 3 Statistics. 4 Location Service and Map View.

by Robert Gifford and Jorge Aranda University of Victoria, British Columbia, Canada

OMS Alerts with Milsoft IVR Written by: Darcy O Neal Presented by: Clayton Tucker

Oracle Utilities Meter Data Management Release Utility Reference Model MDM.Manage VEE and VEE Exceptions

Application Note. Rapid performance verification of AZURA systems with refractive index detector. Summary. Introduction

CSE 154: Web Programming Spring 2017 Homework Assignment 5: Pokedex. Overview. Due Date: Tuesday, May 9th

A GUIDE TO THE LOOSE ENDS HOCKEY LEAGUE WEBSITE PAGE

State of Nevada Department of Transportation Materials Division

Chapter 6 Handicapping

The MACC Handicap System

INSTRUCTIONS FOR USING HMS 2016 Scoring (v1)

INTRODUCTION Page 2 SETTINGS

Swing Labs Training Guide

Reliability predictions in product development. Proof Engineering Co

REMOTE CLIENT MANAGER HELP VERSION 1.0.2

GMS 10.0 Tutorial SEAWAT Viscosity and Pressure Effects Examine the Effects of Pressure on Fluid Density with SEAWAT

Decompression Method For Massive Compressed Files In Mobile Rich Media Applications

User Guide Addendum Course and Feature Expansion Package. Overview of Changes

Diver Training Options

Horse Farm Management s Report Writer. User Guide Version 1.1.xx

Sandvik TIM3D Locked to target. Advanced navigation system for surface top hammer drilling

YSC-8330 USER MANUAL XI AN TYPICAL INDUSTRIES CO.,LTD.

Release notes Chesar 3.3

BVIS Beach Volleyball Information System

OPTIMIZATION OF SINGLE STAGE AXIAL FLOW COMPRESSOR FOR DIFFERENT ROTATIONAL SPEED USING CFD

Antelope Little League

Full-Time People and Registrations Version 5.0

A REVIEW OF AGE ADJUSTMENT FOR MASTERS SWIMMERS

[XACT INTEGRATION] The Race Director. Xact Integration

USA Jump Rope Tournament Software User Guide 2014 Edition

Fisher FIELDVUE DVC6200f Digital Valve Controller PST Calibration and Testing using ValveLink Software

Tennis Ireland National Player Database

3 Revising Diagnostic Imaging PARs

How to Setup and Score a Tournament. May 2018

Race Screen: Figure 2: Race Screen. Figure 3: Race Screen with Top Bulb Lock

Official Basketball Rules 2017 Summary of the main changes

Database Management Systems. Chapter 5

All Sport 5000 Control Console

ASSESSMENT OF CORRECTNESS OF INFORMATION OBTAINED FROM AUTOMATIC IDENTIFICATION OF SHIP S SYSTEM (AIS)

Rule changes. 30 August 2018 v 3.0

Specifications and information are subject to change without notice. Up-to-date address information is available on our website.

What's New in VoluMill 7.0/7.1

CheerSpirit.com Plug-In Pack 3 Kneeling

Oracle ebusiness CCTM Supplier: Rate Card

Leadership in Fluid Management

Using the Akta Prime plus October 22, 2012

We release Mascot Server 2.6 at the end of last year. There have been a number of changes and improvements in the search engine and reports.

Online League Management lta.tournamentsoftware.com. User Manual. Further support is available online at

HAP e-help. Obtaining Consistent Results Using HAP and the ASHRAE 62MZ Ventilation Rate Procedure Spreadsheet. Introduction

Hydro-Control V User Guide

What s Up in Navigation Displays?

ASSESSMENT OF CORRECTNESS OF INFORMATION OBTAINED FROM AUTOMATIC IDENTIFICATION OF SHIP S SYSTEM (AIS)

Modelling Today for the Future. Advanced Modelling Control Techniques

Analysis of Variance. Copyright 2014 Pearson Education, Inc.

Wade Reynolds 1 Frank Young 1,2 Peter Gibbings 1,2. University of Southern Queensland Toowoomba 4350 AUSTRALIA

Formrater User guide!

Maestro 3 rd Party Golf User Guide

ARCCOS 360 NEW USER GUIDE

Clubs Play-Cricket Guide (March 2018)

Database of Winds and Waves. -internet version-

CLUB REGISTRATION & SUPPORT / TICKETING

Working with Marker Maps Tutorial

ELIMINATOR COMPETITION DRAG RACE Program Manual Firm Ver 4.11

RULES PUBLICATION NO. 52/P UNDERWATER INSPECTION OF MOBILE OFFSHORE DRILLING UNITS IN LIEU OF DRYDOCKING

Flow Vision I MX Gas Blending Station

CENTER PIVOT EVALUATION AND DESIGN

NORDCALC Introduction... 2 Registration... 2 Flow Calculations tab Torque Calculation & Actuator Mounting Data tab... 21

2017 Census Reporting To access the SOI s Census Reporting web site go to:

Section 10 - Hydraulic Analysis

Transcription:

ORACLE 11G SECURE FILES - PART 1 Inderpal S. Johal, Data Softech Inc. INTRODUCTION Oracle has provided various features like Domain Indexes. Partitioning, Parallelism etc which can provide good performance to store and retrieve the unstructured data in LOBs inside the database. But if you are dealing with very big files like Medical X-rays or Satellite images or Multimedia files and stored them inside the database, you may not get the same performance as comparison to storing them in Operating System. Oracle 11g has redesign LOBs format to store the Multimedia data which will not only provide superior performance but also take less storage to store the data. The new LOB format introduced in 11g is called SECUREFILE LOBs ( or SecureFiles). You can continue to use LOBs format used in pre-11g ( Oracle 8 to Oracle 10g) which is now called BASICFILE LOBS in 11g. The performance of SECUREFILE LOBs is significantly better than that of BASICFILE LOBs, especially for large media data. Oracle recommends to use SECUREFILE LOBs for storing media data whenever possible. SecureFile LOBs are identified by specifying storage keyword SECUREFILE with CREATE TABLE and similarly BasicFile LOBS are identified by specifying keyword BASICFILE in the CREATE TABLE SQL statement. So whenever you add a LOB column to a table, you can specify whether it should be created as SECUREFILE or BASICFILE. If you do not specify the storage type with LOB column storage, then it is created as BASICFILE as long as DB_SECUREFILE initialization parameter is not forcing to create them as SECUREFILE. I will discuss this new 11g initialization parameter later in this paper. You can easily move the existing pre 11g LOBs to new 11g Secure file LOBs online using online Redefinition package and other options like CTAS/ITAS, Export/Import and the like. TOPICS COVERED IN ORACLE 11G SECURE FILE LOBS 1. How to create SECUREFILE LOBs 2. How to move the old pre-11g LOBs or Oracle 11g BASICFILE LOBs into new 11g SECUREFILE LOBs format 3. Compare the Performance of BASICFILE LOBs and SECUREFILE LOBs 4. Compare the Storage Usage of BASICFILE LOBs and SECUREFILE LOBs 5. How to secure the SECUREFILE LOBs data 6. How to share the SECUREFILE LOBs data to avoid redundancy 7. How to Compress the SECUREFILE LOBs data to reduce the Storage Page 1 8/24/2007

ENABLING SECUREFILES STORAGE Check the Default setting of 11g Database SQL> show parameter securefile NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ db_securefile string PERMITTED The DB_SECUREFILE initialization parameter allows DBAs to determine the usage of SecureFiles, where valid values are as shown below. PERMITTED is default setting of this parameter: [ALWAYS FORCE PERMITTED NEVER IGNORE ] DB_SECUREFILE Values ALWAYS Description Change the DB_SECUREFILE initialization parameter to ALWAYS SQL> ALTER SYSTEM SET db_securefile = 'ALWAYS'; Create ASSM and NON-ASSM Tablespace and see if you can created SECUREFILE Lobs in it SQL> CREATE TABLESPACE tbs1 2 DATAFILE '/home/oracle/app/oradata/11gtest/tbs2.dbf' SIZE 150M REUSE 3 EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M 4 SEGMENT SPACE MANAGEMENT MANUAL; Tablespace created. SQL> CREATE TABLESPACE tbs2 2 DATAFILE '/home/oracle/app/oradata/11gtest/tbs2.dbf' SIZE 150M REUSE 3 EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M 4 SEGMENT SPACE MANAGEMENT AUTO; Tablespace created. - It will only create LOBs as SECUREFILE in ASSM Tablespace else an error will be thrown. SECUREFILE Lob can only be allowed in ASSM Tablespace else it fails ass shown below SQL> CREATE TABLE resumes_non_assm 2 ( first_name VARCHAR2(15), 4 ) LOB(resume) STORE AS SECUREFILE 5 (TABLESPACE tbs1); CREATE TABLE resumes_non_assm ERROR at line 1: ORA-43853: SECUREFILE lobs cannot be used in non-assm tablespace "TBS1" - Attempts to create all LOBs as SECUREFILE LOBs whether you specify it or not. Create Database table without specifying STORE AS SECUREFILE or BASICFILE but in ASSM )TABLESPACE tbs2; SECUREFILE in the following SQL statement shows that it is creates as SECUREFILE LOB RESUMES_ASSM RESUME TBS2 YES Page 2 8/24/2007

- Any LOBS created in non-assm Tablespaces are created as BASICFILE LOBs If you are not specifying SECUREFILE Keyword and Tablespace specified is non-assm 4 )TABLESPACE tbs1; LOBs column is created as BASICFILE means m not SECUREFILE as shown below FORCE - Force all LOBs created now onwards as SECUREFILE LOBs - If any of the BASICFILE LOBs is specified then it will be ignored and default SECUREFILE storage option are automatically used. SQL> ALTER SYSTEM SET db_securefile = 'FORCE'; Tablespace used is ASSM as shown below which is required for SECUREFILE Lobs SQL> select tablespace_name,segment_space_management "ASSM" from dba_tablespaces where tablespace_name='tbs2'; TABLESPACE ASSM ---------- ------ TBS1 AUTO 4 ) LOB(resume) STORE AS BASICFILE 5 TABLESPACE tbs1; We can see even BASICFILE lobs is created as SECUREFILE as long as Tablespace is ASSM RESUMES_ASSM RESUME TBS1 YES - If LOB is created in non ASSM Tablespace, and error will be thrown. What happen if Tablespace is now ASSM as shown below. It will fail with error SQL> select tablespace_name,segment_space_management "ASSM" from dba_tablespaces where tablespace_name='tbs2'; TABLESPACE ASSM ---------- ------ TBS2 MANUAL 5 ) LOB(resume) STORE AS BASICFILE 6 TABLESPACE tbs2; CREATE TABLE resumes_assm ERROR at line 1: ORA-43853: SECUREFILE lobs cannot be used in non-assm tablespace "TBS2" Page 3 8/24/2007

PERMITTED Allow DBAs to create SECUREFILE LOBs NEVER - Disallow SECUREFILE LOBs creation from now onwards. SQL> ALTER SYSTEM SET db_securefile = 'NEVER'; We will see that even you specify SECUREFILE, it will still be created as BASICFILE 5 ) LOB(resume) STORE AS SECUREFILE 6 TABLESPACE tbs1; SQL> select table_name,column_name,tablespace_name,securefile efile from user_lobs where - All SECUREFILE LOBs are now created as BASICFILE LOBs - All SECUREFILE specific storage options [COMPRESS,ENCRYPT,DEDUPLICATE ] will throw an exception - All BASICFILE LOBs default storage option are used automatically If we specify any of the SECUREFILE option like DEDUPLICATE,COMPRESS,ENCRYPT etc it will fail. We will compare the same with DB_SECUREFILE=IGNORE option later on SQL> Create table resume 2 ( name varchar2(10), 3 resume blob encrypt using 'AES128' 4 ) lob(resume) store as SECUREFILE 5 (DEDUPLICATE COMPRESS); (DEDUPLICATE COMPRESS) ERROR at line 5: ORA-43854: use of a BASICFILE LOB where a SECUREFILE LOB was expected IGNORE - Disallow SECUREFILE LOBs same like NEVER option above - Ignore any errors caused by SECUREFILE keyword as well as SECUREFILE options. Main difference as comparision to NEVER option which fails as shown earlier SQL> ALTER SYSTEM SET db_securefile = 'IGNORE'; Create Table as SECUREFILE lob, it will be created as BASICFILE 3 resume r BLOB 4 ) LOB(resume) STORE AS SECUREFILE 5 TABLESPACE tbs1; Create Table as SECUREFILE lob with SECUREFILE option, it will be created as BASICFILE and will not fail like happen in DB_SECUREFILE=NEVER SQL> Create table resume_secopt 2 ( name varchar2(10), 3 resume blob encrypt using 'AES128' 4 ) lob(resume) store as SECUREFILE 5 (DEDUPLICATE COMPRESS); Page 4 8/24/2007

RESUME_SECOPT RESUME USERS NO The initialization parameter DB_SECUREFILE is dynamic and the scope is ALTER SYSTEM as already shown above e.g ALTER SYSTEM SET db_securefile = 'ALWAYS'; Make sure that Compatible initialization parameter is set to 11g. If it is set to 10g, then LOB will work as it work in 10g and keyword BASICFILE is even not valid which behave like 10g LOBs. If you set Compatible to 11g, then you can continue to use LOBs functionality like 10g as long as you are using BASICFILE keyword and initialization parameter DB_SECUREFILE is set correctly as per above table. Hopefully this will also cover the method to Create Database Table with SECUREFILE LOBs. I will cover more about securfile in coming Papers Page 5 8/24/2007