Oracle Database XE 11gR2 Jump Start Guide
By Asif Momen
()
About this ebook
Related to Oracle Database XE 11gR2 Jump Start Guide
Related ebooks
Oracle 10g/11g Data and Database Management Utilities: LITE Rating: 0 out of 5 stars0 ratingsInstant Oracle GoldenGate Rating: 0 out of 5 stars0 ratingsOracle Enterprise Manager Cloud Control 12c: Managing Data Center Chaos Rating: 0 out of 5 stars0 ratingsMonitoring Elasticsearch Rating: 0 out of 5 stars0 ratingsOracle Application Express 4.0 with Ext JS Rating: 0 out of 5 stars0 ratingsMastering Oracle Scheduler in Oracle 11g Databases Rating: 0 out of 5 stars0 ratingsLearning Elasticsearch Rating: 4 out of 5 stars4/5PostgreSQL Development Essentials Rating: 5 out of 5 stars5/5Apache Solr High Performance Rating: 0 out of 5 stars0 ratingsAdvanced Express Web Application Development Rating: 0 out of 5 stars0 ratingsOracle Database Transactions and Locking Revealed: Building High Performance Through Concurrency Rating: 0 out of 5 stars0 ratingsMicrosoft SQL Server 2012 with Hadoop Rating: 1 out of 5 stars1/5Oracle Warehouse Builder 11g R2: Getting Started 2011 Rating: 0 out of 5 stars0 ratingsInstant PostgreSQL Backup and Restore How-to Rating: 0 out of 5 stars0 ratingsReact Components Rating: 0 out of 5 stars0 ratingsPostgreSQL for Data Architects Rating: 0 out of 5 stars0 ratingsOracle SQL In 10 Minutes Rating: 5 out of 5 stars5/5Scala for Java Developers Rating: 5 out of 5 stars5/5Learning Couchbase Rating: 0 out of 5 stars0 ratingsMastering Ansible - Second Edition Rating: 0 out of 5 stars0 ratingsOracle Business Intelligence : The Condensed Guide to Analysis and Reporting Rating: 0 out of 5 stars0 ratingsEJB 3.0 Database Persistence with Oracle Fusion Middleware 11g: LITE Rating: 0 out of 5 stars0 ratingsLearning PHP Data Objects Rating: 5 out of 5 stars5/5Expert Oracle Database Architecture Rating: 0 out of 5 stars0 ratingsOracle : Data Manipulation, Knowledge Discovery & Reporting Using Ms Access Rating: 0 out of 5 stars0 ratingsMastering Java for Data Science Rating: 5 out of 5 stars5/5Middleware Management with Oracle Enterprise Manager Grid Control 10g R5: LITE Rating: 0 out of 5 stars0 ratingsManaging IaaS and DBaaS Clouds with Oracle Enterprise Manager Cloud Control 12c Rating: 0 out of 5 stars0 ratingsOCA Oracle Database 11g Administration I Exam Guide (Exam 1Z0-052) Rating: 0 out of 5 stars0 ratings
Information Technology For You
Health Informatics: Practical Guide Rating: 0 out of 5 stars0 ratingsCompTIA ITF+ CertMike: Prepare. Practice. Pass the Test! Get Certified!: Exam FC0-U61 Rating: 0 out of 5 stars0 ratingsHow To Use Chatgpt: Using Chatgpt To Make Money Online Has Never Been This Simple Rating: 0 out of 5 stars0 ratingsWordPress Plugin Development: Beginner's Guide Rating: 0 out of 5 stars0 ratingsWindows Registry Forensics: Advanced Digital Forensic Analysis of the Windows Registry Rating: 4 out of 5 stars4/5How to Write Effective Emails at Work Rating: 4 out of 5 stars4/5AWS Certified Cloud Practitioner: Study Guide with Practice Questions and Labs Rating: 5 out of 5 stars5/5The Ultimate Guide to Landing a Network Engineering Job Rating: 0 out of 5 stars0 ratingsComputer Science: A Concise Introduction Rating: 4 out of 5 stars4/5Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5Practical Ethical Hacking from Scratch Rating: 5 out of 5 stars5/5Data Analytics for Beginners: Introduction to Data Analytics Rating: 4 out of 5 stars4/5An Ultimate Guide to Kali Linux for Beginners Rating: 3 out of 5 stars3/5Hacking Essentials - The Beginner's Guide To Ethical Hacking And Penetration Testing Rating: 3 out of 5 stars3/5The Basics of Hacking and Penetration Testing: Ethical Hacking and Penetration Testing Made Easy Rating: 4 out of 5 stars4/5Inkscape Beginner’s Guide Rating: 5 out of 5 stars5/5The Certified Fintech Professional Rating: 5 out of 5 stars5/5The Programmer's Brain: What every programmer needs to know about cognition Rating: 5 out of 5 stars5/5DNS in Action Rating: 0 out of 5 stars0 ratingsQuantum Computing for Programmers and Investors: with full implementation of algorithms in C Rating: 5 out of 5 stars5/5Summary of Super-Intelligence From Nick Bostrom Rating: 5 out of 5 stars5/5CompTIA Network+ CertMike: Prepare. Practice. Pass the Test! Get Certified!: Exam N10-008 Rating: 0 out of 5 stars0 ratingsA Civic Technologist's Practice Guide Rating: 0 out of 5 stars0 ratingsSupercommunicator: Explaining the Complicated So Anyone Can Understand Rating: 3 out of 5 stars3/5Computer Organization and Design: The Hardware / Software Interface Rating: 4 out of 5 stars4/5ChatGPT: The Future of Intelligent Conversation Rating: 4 out of 5 stars4/5CompTIA A+ CertMike: Prepare. Practice. Pass the Test! Get Certified!: Core 1 Exam 220-1101 Rating: 0 out of 5 stars0 ratingsCybersecurity for Beginners : Learn the Fundamentals of Cybersecurity in an Easy, Step-by-Step Guide: 1 Rating: 0 out of 5 stars0 ratings
Reviews for Oracle Database XE 11gR2 Jump Start Guide
0 ratings0 reviews
Book preview
Oracle Database XE 11gR2 Jump Start Guide - Asif Momen
Table of Contents
Oracle Database XE 11gR2 Jump Start Guide
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Instant Updates on New Packt Books
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Database Editions and Oracle Database XE
About Oracle
Available database editions
Oracle Database Express Edition (XE)
Summary
References
2. Installing and Uninstalling Oracle Database XE
Downloading Oracle Database 11g XE
Installing Oracle Database 11g XE on Windows XP (32-bit)
Starting and stopping Oracle Database XE in Windows
Uninstalling Oracle Database 11g XE on Windows XP (32-bit)
Installing Oracle Database 11g XE on Oracle Enterprise Linux (64-bit)
Starting and stopping Oracle Database XE in Linux
Uninstalling Oracle Database 11g XE on Oracle Enterprise Linux (64-bit)
Summary
3. Connecting and Configuring Oracle Database 11g XE
Local database connections
Oracle Net Listener
Configuring Oracle Net Listener
Viewing the status of Oracle Net Listener
Starting and stopping the listener
Configuring the tnsnames.ora file
Remote database connections
Changing SGA and PGA sizes
Summary
4. Accessing Table Data, DML Statements, and Transactions
Unlocking sample user accounts
Installing SQL Developer
Connecting SQL Developer to Oracle Database 11g XE
About TAB and DUAL
Writing simple queries
Selecting data from multiple tables
Exploring common functions
What are Transaction Control Statements?
Understanding DML statements
Summary
References
5. Creating and Managing Schema Objects
Data Definition Language
Creating and managing tables
Creating and managing indexes
Integrity constraints
Creating and managing views
Creating and managing synonyms
Creating and managing sequences
Gathering statistics
Summary
References
6. Developing Stored Subprograms and Triggers
PL/SQL data types
Stored subprograms
Creating stored subprograms
About packages
Creating packages
Exception handling
Wrapping up the PL/SQL stored programs
PL/SQL triggers
Summary
References
7. Building a Sample Application with Oracle Application Express
What is Oracle Application Express (APEX)?
Getting started with Oracle Application Express
Application Express components
Prerequisites for a sample application
Creating a sample application
Adding a page to the existing application
Creating application users
Loading and unloading data to a text file
Unloading the EMP table to a text file
Loading text file to the EMP_LOAD table
Application Express Dashboard
Summary
References
8. Managing Database and Database Storage
Memory structure
System Global Area
Process Global Area
Automatic Memory Management
Important background processes
Physical and logical database structures
Creating a tablespace
Adding datafiles to a tablespace
Dropping a tablespace
Viewing the tablespace usage
Managing the Flash Recovery Area
Summary
9. Moving Data between Oracle Databases
Exporting and importing data
Traditional Export and Import (exp/imp) utilities
Data Pump Export/Import (expdp/impdp) utilities
Moving data between Oracle Database 10g XE and Oracle Database 11g XE
Exporting data using SQL Developer
Summary
10. Upgrading Oracle Database 11g XE to Other Database Editions
Upgrading Oracle Database 11g XE to Oracle Database 11g Enterprise Edition
Summary
11. Backup and Recovery
Introduction to backup and recovery
Recovery Manager
Connecting to Oracle Database XE using RMAN
The ARCHIVELOG mode
Placing a database in the ARCHIVELOG mode
Backing up a database (the NOARCHIVELOG mode)
Simulating a database failure (the NOARCHIVELOG mode)
Restoring the NOARCHIVELOG database
Configuring the RMAN environment
Backing up the ARCHIVELOG database
Simulating a database failure (the ARCHIVELOG mode)
Restoring the ARCHIVELOG database
Summary
References
12. Tuning Oracle Database 11g XE
Performance tuning
Performance tuning approach
Avoiding common pitfalls
Database connection management
Cursors and the shared pool
Suboptimal SQL
Incorrect redo log sizing
Autotrace utility
Explain Plan
Using indexes
Index monitoring
Dynamic performance views
Statspack
Installing Statspack
Gathering statistics
Running the statistics report
Recommended blogs
Summary
References
A. Features Available with Oracle Database 11g XE
Features available
Features not available
Index
Oracle Database XE 11gR2 Jump Start Guide
Oracle Database XE 11gR2 Jump Start Guide
Copyright © 2012 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: July 2012
Production Reference: 1290612
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-84968-674-7
www.packtpub.com
Cover Image by Mark Holland ( <MJH767@bham.ac.uk> )
Credits
Author
Asif Momen
Reviewers
Satishbabu Gunukula
Edgar Lanting
Marcin Przepiórowski
Carol A. Pena
Acquisition Editor
Dhwani Devater
Lead Technical Editor
Dayan Hyames
Technical Editors
Vrinda Amberkar
Devdutt Kulkarni
Prashant Salvi
Project Coordinator
Yashodhan Dere
Proofreader
Aaron Nash
Indexer
Rekha Nair
Graphics
Manu Joseph
Production Coordinators
Prachali Bhiwandkar
Shantanu Zagade
Cover Work
Shantanu Zagade
About the Author
Asif Momen has been working with Oracle Technologies for over 12 years and has expertise in Database Architecture, Performance Tuning, and High Availability. He has a Master's degree in Software Systems from Birla Institute of Technology and Science (BITS), Pilani.
Asif has been honored with the prestigious Oracle ACE award from Oracle Technology Network. He has the OCP 11g DBA and OCP 9i Forms Developer certifications and is an Oracle Certified Expert in RAC 10g.
Asif is a presenter for conferences such as Oracle OpenWorld-2010, All India Oracle User Group (AIOUG), and Brain Surface. In addition to this, he is a member of the Editorial Board for Oracle Connect
, the quarterly publication of AIOUG and the Select
magazine of the United Kingdom Oracle User Group (UKOUG)
His articles have also appeared in Oracle Support Customer Knowledge Exchange. His particular interests are Database and SQL tuning, Oracle RAC, and Backup and Recovery. He posts his ideas and opinions on The Momen Blog
(http://momendba.blogspot.com). Asif can be reached at
Acknowledgement
First and foremost, I would like to thank God for giving me the power to believe in my passion and pursue my dreams. I could never have done this without the faith I have in you, the Almighty.
To my parents, Masood and Naseem, for what I am today. I can barely find the right words to express all the wisdom, love, and support you have given me. I cannot forget the sacrifices and hardships you both have gone through just to see me smiling. You are the best parents one could wish for.
To my wonderful wife, Nazia. Your patient love enabled me to complete this work. You have always been supportive and motivating in continuing me to improve my knowledge and move ahead in my career.
To my daughters, Maria, Nida, and Zoha. You are the best children any dad could hope for — sweet, loving, and fun to be with. It's wonderful to watch you grow.
To my friends. You guys have given me the best support when I really needed it. Your silly jokes made me cheerful when I was down. Thanks for staying in touch even when I ignored you guys for a while and for listening to my boring topics for hours together.
Last but not least, the Packt team, thanks a bunch for all of you involved in the production and printing of this book.
About the Reviewers
Satishbabu Gunukula is an Oracle ACE. He has extensive experience in the Oracle and Microsoft SQL Server database technologies, has held various roles such as Tech Lead, Project Lead, and Project Manager, and specialized in High Availability. He has implemented many business critical RAC and