My Oracle Support Banner

How to Move SQL Profiles from One Database to Another (Including to Higher Versions) (Doc ID 457531.1)

Last updated on AUGUST 26, 2023

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.

Goal

NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

The purpose of this document is to assist in moving an SQL Profile implemented on one database to another database.

NOTE: A SQL profile can be transported to any Oracle database created in the same release or later. The reverse may not be true as profiles are not guaranteed to be backwardly compatible.

See:

Oracle® Database Performance Tuning Guide
11g Release 2 (11.2)
E16638-07
Chapter 17 Automatic SQL Tuning
Section 17.5.5 Transporting a SQL Profile
https://docs.oracle.com/cd/E36909_01/server.1111/e16638/sql_tune.htm#CHDGHGCJ

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 What is a SQL Profile?
 Managing SQL Profiles
 Steps to Create and Transfer Profile from One Database to Another
 1. Create SQL Profile in SCOTT schema
 2. Creating a staging table to store the SQL Profiles
 3. Pack the SQL Profiles into the Staging Table
 4. Export the Staging Table to the Target Database
 4a. Export from Source Database
 4b. Import into Target Database
 5. Unpack the SQL Profiles
 5a. Test before unpacking
 5b. Unpack Staging Table
 6. Check the SQL Profile is enabled in Target Database
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.