Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Advanced Oracle PL/SQL Developer's Guide (Second Edition) - Second Edition

You're reading from  Advanced Oracle PL/SQL Developer's Guide (Second Edition) - Second Edition

Product type Book
Published in Feb 2016
Publisher
ISBN-13 9781785284809
Pages 428 pages
Edition 2nd Edition
Languages
Author (1):
Saurabh K. Gupta Saurabh K. Gupta
Profile icon Saurabh K. Gupta

Table of Contents (19) Chapters

Advanced Oracle PL/SQL Developer's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Overview of PL/SQL Programming Concepts 2. Oracle 12c SQL and PL/SQL New Features 3. Designing PL/SQL Code 4. Using Collections 5. Using Advanced Interface Methods 6. Virtual Private Database 7. Oracle SecureFiles 8. Tuning the PL/SQL Code 9. Result Cache 10. Analyzing, Profiling, and Tracing PL/SQL Code 11. Safeguarding PL/SQL Code against SQL injection 12. Working with Oracle SQL Developer Index

Migrating LONG to LOBs


The database applications using LONG data types should migrate to LOB due to the following reasons:

  • A LONG column can store a maximum of (2GB - 1) while an LOB can store a maximum data of (4GB - 1)

  • A table can have one, and only one, LONG data type column while there is no restriction on the number of LOB columns in a table

  • Data replication is not allowed with the LONG and LONG RAW columns

Tip

Migrating LONG to the LOB columns may generate a lot of redo. Therefore, it is advised to switch off the logging for the table containing the LONG column.

You can convert LONG to CLOB and LONG RAW to BLOB using either of the following listed approaches:

Use the ALTER TABLE command

For a table with the LONG type column, you can use the ALTER TABLE command to modify the column type to LOB with new storage specifications and migrate the data to a new space. Note that all the LONG data is migrated as LOB in the table. All the column-level characteristics of the LONG column are retained and...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}