Oracle Database Basics
Installation, Initial Setup and Administration
Lab overview:
The lab consists of 4 parts:
1. Installation
2. Additional Setups
3. Basic Administration
4. PL/SQL and Python extensions
Contents
Part 1: Installation........................................................................................................................................2
1. System requirement (for Oracle Database Express Edition 11gR2):....................................................2
2. Installing on Windows operating systems: Step 1: Getting required softwares....................................3
Step 2: Installation....................................................................................................................................4
Step 3: Verifying installation.....................................................................................................................7
3. Installing on Linux operating systems:.................................................................................................8
For full installation instructions on Linux system, please refer to our document “Oracle Database
Linux [Link]” from Part 1: “Downloading..........................................................................8
Part 2: Additional Setups..............................................................................................................................9
1. SQL Developer.....................................................................................................................................9
For Linux operating systems, please refer to our document “Oracle Database Linux
[Link]” at Part 4: “Installing SQL Developer for graphical UI to interact with Oracle
Database”...............................................................................................................................................9
2. Python and Python Oracle connector..................................................................................................11
Part 3: Basic Administration......................................................................................................................13
1. Creating users and tables for lab.........................................................................................................13
Part 1: Installation
1. System requirement (for Oracle Database Express Edition 11gR2):
+ For Windows 32/64-bit operation systems:
One of the following 32-bit Microsoft Windows operating systems:
• Microsoft Windows Server 2008 – Standard, Enterprise,
Datacenter, Web, and Foundation Editions. The Server Core option
is not supported.
• Microsoft Windows 7 – Professional, Enterprise, and Ultimate
Editions
• Windows 8 – Pro and Enterprise Editions
Operating
One of the following 64-bit Microsoft Windows x64 operating systems:
system
Windows Server 2008 x64 – Standard, Enterprise, Datacenter, Web,
•
and Foundation Editions
• Windows Server 2008 R2 x64 – Standard, Enterprise, Datacenter,
Web, and Foundation Editions.
• Windows Server 2012 x64 – Standard, Datacenter, Essentials, and
Foundation Editions
• Windows Server 2012 R2 x64 – Standard, Datacenter, Essentials,
and Foundation Editions
• Windows 7 x64 – Professional, Enterprise, and Ultimate Editions.
• Windows 8 – Pro and Enterprise Editions
• Windows 8.1 – Pro and Enterprise Editions
Disk space 1.5 GB free space minimum, 30 GB or larger recommended
256 MB minimum
Recommendation:
RAM + 4-8 GB for lab
+ 16-32 GB for small-sized database
+ 64 GB for medium-sized database
+ 128 GB or more for enterprise-size database
+ For Linux operation systems:
One of the following:
Operating • Oracle Enterprise Linux 4 Update 7
• Oracle Enterprise Linux 5 Update 2
system
• Red Hat Enterprise Linux 4 Update 7
• Red Hat Enterprise Linux 5 Update 2
• SUSE Linux Enterprise Server 10 SP2
• SUSE Linux Enterprise Server 11
Disk space 1.5 GB free space minimum, 30 GB or larger recommended
256 MB minimum
Recommendation:
RAM + 4-8 GB for lab
+ 16-32 GB for small-sized database
+ 64 GB for medium-sized database
+ 128 GB or more for enterprise-size database
• glibc should be greater than or equal to 2.3.4-2.41
• make should be greater than or equal to 3.80
Packages
• binutils should be greater than or equal to [Link].5
• gcc should be greater than or equal to 4.1.2
• libaio should be greater than or equal to 0.3.104
Minimum swap space required for Oracle Database XE is 2 GB or twice
Swap space
the size of RAM, whichever is lesser.
Notes: We will use Windows and CentOS 8 operating system for this lab
2. Installing on Windows operating systems: Step 1: Getting required
softwares
- Download installer for Windows at:
[Link]
Step 3: Verifying installation
3. Installing on Linux operating systems:
For full installation instructions on Linux system, please refer to our document
“Oracle Database Linux [Link]” from Part 1: “Downloading
CentOS Stream 8” to Part 3: “Installing Oracle Database Express Edition
11gR2”
Part 2: Additional Setups
1. SQL Developer
2. Python and Python Oracle connector
- Install Python and Python Oracle Database connector to utilize Python scripts for
interacting with the database. Python 3.6 or newer is required.
- Download and install Python 3.6 at [Link]
360/
- After installing Python 3.6, open the command prompt on your Windows OS and run
the command:
“pip3 install cx_Oracle” or
“python -m pip install colorama cx_Oracle” for both Windows and Linux OS
- (Optional) Install PyCharm IDE for easier code editing and executing. Download and
install
PyCharm Community Edition version 2017.3.7 at
[Link]
Part 3: Basic Administration
1. Creating users and tables for lab
Step 1: Open SQL Developer, you will see the Welcome Page
Step 2: Create new connection by right-click at Oracle Connections -> New Connection
+ A windows that requires connection information will pop-up
+ Use the SYS account with the password that you created in the Oracle Database
installation. Change the role from “default” to “SYSDBA”. Click “Test” to verify
the connection, if everything is correct, the status will change from blank to
“Success”. After that, click “Connect”, the program will prompt you to enter the
SYS password again, do that and you are connected to the database of SYS
account.
Step 3: Creating users and table for lab
+ After connection, you will see the SQL Worksheet window as below, this is where you
type in and execute your queries