Chapter 1:
Getting Started
with Linux
A Short History
Choosing the Right Linux
Choosing the Hardware Platform
Choosing a Distribution of Linux
Choosing the Linux Version
Where to Get Linux
Installing Linux
Setting Up Disks
Configuring Disks for Oracle
Logging On to the System
Connecting Remotely via SSH
Build A Virtual Test System
Conclusion
Chapter 2:
Command Line
Basics
About the Command Line
Commands, Options, Arguments and Input
Finding Your Way Around
The
/ Directory and Absolute Paths
The Home Directory
Viewing the Command History and
Repeating Previous Commands
Changing Things
Viewing Files
cat
more
head and tail
Searching for Files
Learning More
Examining the System
hostname
whoami
uname
df
Conclusion
Chapter 3:
Advanced Command
Line Use
Variables
Setting, Viewing and Clearing Variables
Exporting Variables
Environment Variables
Viewing and Controlling What is Executed
Steps to Command Execution
The
Checking What is Executed
Aliases
File and Directory Ownership
File and Directory Permissions
Editing with vi and vim
Making and Undoing Changes
Copying and Pasting
Searching and Replacing
Saving and Exiting
Listing Multiple Commands on One Line
Continuing a Long Command on Another
Line
Escaping Special Characters
Single and Double Quotes
Single Quotes
Double Quotes
The Back Quote
Tab Completion
Wildcards and Pattern Matching
Redirecting Input and Output
A Brief Description of Input and Output
Streams
Sending Command Output to a File
Reading Input from a File or From the
Terminal
Redirecting from One Command to Another
Shell Scripting
Conclusion
Chapter 4:
Graphical User
Interfaces
Graphical User Interfaces
The
The Built-in Display
X Windows Forwarding
Tunneling X Windows Through SSH
X Windows Forwarding on MS Windows
X Windows Forwarding on Mac OS X
X Windows Forwarding on Linux and UNIX
VNC Server
VNC Clients
Starting the VNC Server
Tunneling VNC through SSH and Connecting
Tunneling VNC and Connecting on OS X
Closing and Reconnecting VNC Sessions
Stopping the VNC Server
Changing the VNC password
Customizing VNC to Use the GNOME Desktop
Setting VNC Server Number or Screen Size
Conclusion
Chapter 5:
Meeting Oracle
Requirements and Installing Oracle
Oracle Requirements
Hardware Requirements
Software Requirements
Systemwide Requirements
Security Enabled Linux
Creating the Oracle Software Owner and
Group
Customizing Shell Limits for the Oracle
User
Installing Oracle
Create Required Directories
Download and Unpack Media
Starting the Oracle Installer
Customizing the Oracle User’s Environment
Conclusion
Chapter 6:
Starting Up,
Shutting Down and Runlevels
Starting Up
The Boot Process
Shutting Down and Restarting
Shutting Down
Restarting
Canceling a Shutdown or Reboot
Setting What Runlevel to Start Into
Changing Runlevels Without Restarting
Booting Directly into Single User Mode
Booting from a CD or DVD
Startup and Shutdown Scripts
Automating Oracle Startup and Shutdown
Starting and Stopping Other Services
Conclusion
Chapter 7:
Users and Groups
The Linux Security Model
Determining the Current User, Group and Who
is on the System
Who am I Logged in As?
What Groups am I In?
Who Else is Logged into the System?
Who has Recently Logged into the System?
Files Associated with User, Group and
Password Management
Getting UID and GID Information for a
User
Managing Users
Adding a User
Modify a User
Delete a User
Managing Groups
Adding a Group
Modifying a Group
The Importance of Consistent User and Group
IDs
Managing Passwords
Changing Passwords
Password Aging
Acting Like Other Users and Groups
Using su to Change Users
Using su to Run Commands as Other Users
sudo, a More Secure Alternative to su
Conclusion
Chapter 8:
Customizing the
User Environment
The Login Shell
What Shell am I Using?
Login and Logout Files
Bash Shell Login Behavior
Modifying Login Files
Sharing Login Files
Oracle-specific Environment Settings
Calling the oraenv File
The oratab File
Adding Custom Code to the oraenv File
Variables
The PATH Variable
Aliases
Customizing the Prompt
Special Prompt Characters
Variables and Commands in Prompts
Conclusion
Chapter 9:
Scheduling
Commands with
cron and
at
Using
cron for Repeating Tasks
The Cron Daemon
Setting Up and Editing a User’s crontab
File
The Format of the crontab File
Crontab Entries
Controlling Who Can Use cron
Scheduling One-Time Tasks with
at
The At Daemon
Using at to Schedule Tasks
Controlling who can use at
Conclusion
Chapter 10:
Process and
Service Management
Examining Running Processes
Different Ways to Start Processes
Starting and Managing Background Jobs
Keeping Things from Being Interrupted
with nohup
Stopping Processes
pgrep and pkill
The Command Exit Status
Conditional Execution of Processes
Timing Processes
Managing Services (Daemons)
Examining Running Services
Stopping Running Services
Forcing a Service to Reread Its
Configuration
Conclusion
Chapter 11:
Managing Linux
Software
The RPM Package Manager
Examining What is Currently Installed
Installing and Updating Software with
RPM
Removing Software with the RPM
Using Update Tools like Yum
Compiling Software from Source Code
Conclusion
|
Chapter 12:
Managing Disks
and File Systems
File Systems, Disk Devices and Mount Points
Disks and Partitions
File Systems
Logical Volume Manager
Mount Points
The
fstab File
Viewing Current File System Information
Viewing Mounted File Systems with the
mount Command
Viewing File System Space and Inode
Usage
Checking the File System Block Size
Viewing What Files Are in Use
Creating a New File System
Identifying and Partitioning Space to be
Used
Building the File System
File System Labels
Mounting and Unmounting File Systems
Mounting a File System
Unmounting a File System
Mounting and Unmounting the CD/DVD Drive
Managing File Systems Using the fstab
File
Checking and Repairing File Systems
Manually Checking File Systems with fsck
Checking File Systems Without Unmounting
Them
Full Checks on Journaled File Systems
Changing When Full Checks are Run
fsck Running at Startup
Storage Virtualization Concepts
Virtual Devices
Using the Logical Volume Manager
Starting the Logical Volume Manager GUI
Starting the Command Line LVM
File System Performance
Monitoring I/O with iostat
Conclusion
Chapter 13:
File and
Directory Management
Files, File Types and Directories
Regular Files
Directories
Symbolic Links
Block Devices
Character Devices
Named Pipes
Sockets
Inodes and Hard Links
Creating Files and Directories
Create an Empty File
Creating Directories
Managing Ownership and Permissions
Managing the Owner and Group of a File
Managing File Permissions
Controlling Default Permissions with
umask
How Permissions Affect Directories
Additional Permissions Settings
Securing Important Files
Setting Permissions Beyond the Owner and
Group
Getting More Information on Files
Helpful ls Options
Viewing File Info with stat
Identifying File Contents
Identifying Who is Using a File
Copying, Moving, Renaming and Removing
Copying Files and Directories
Moving and Renaming Files and
Directories
Removing (Deleting) Files and
Directories
Managing Hard and Symbolic Links
Searching for Files and Directories
Searching by Name
Searching by Other Attributes
Performing Commands on Search Results
Combining Search Criteria
Comparing Files and Directories
Comparing File and Directory Contents with
diff
Backing Up, Archiving and Compressing
Using tar, the Tape Archiver
Using cpio
Using zip and unzip to Compress and
Uncompress Files
Using gzip and gunzip to Compress and
Uncompress Files
Getting Rid of the Wrong New Line
Characters
Splitting and Combining Large Files
Conclusion
Chapter 14:
Memory and
System Settings
Understanding Memory
Types of Memory
How Memory is Used
Memory Limits
File Caching
Oracle Required Settings
Swap Space
Semaphores
Shared Memory Settings
Other System Settings
Monitoring Memory Usage
Monitoring Memory Usage Using Top
The /proc/meminfo file
Using vmstat to Monitor Memory Usage
Managing the System Clock
Setting the System Clock
Setting the Time Zone
Conclusion
Chapter 15:
Networking
Networking Fundamentals
Basic Layers of Networking
IP Addresses and Hostnames
DNS, the Domain Name System
Managing Network Connections
Determining the Current Hostname and IP
Address
Changing the Hostname
Changing the IP Address
Application Considerations When Changing
Hostname or IP Address
Managing Multiple Network Interfaces
Multihoming a Single Interface
Network Security
The Principle of Least Privilege
Network Firewalls
The Linux Firewall
Disabling Unused Services
Setting up Passwordless SSH
Moving Things Between Servers
scp and sftp
Synchronizing Directories with rsync
Conclusion
Chapter 16:
Shell Scripting
Introduction
When to Use Shell Scripts
Getting Started
Your First Shell Script
Basic Scripts
Commenting Your Scripts
Variables
Input and Arguments
Script Output
Sending Output to a Log
Alternate Input Methods
Redirecting Input From a File
Inline Input Redirection
Making Decisions
Comparing Text
Checking Files
Combining Comparisons
Making Simple Decisions with if and else
Choosing from a List with case
Loops
The while Loop
The for Loop
Breaking Out of Loops
Checking Results and Sending Notifications
The Exit Status:
The Unseen Result
Scanning Logs for Output
Checking the Output of Commands
Emails from cron and at Jobs
The mail Command
Conclusion
Chapter 17:
Organizing
Oracle Files
Oracle’s Optimal Flexible Architecture
OFA Recommendations
Maintaining Oracle Logs and Diagnostic
Files
The Admin Directory
Checking the Alert Log
The ADR Directory
Managing the ADR
Managing Multiple Oracle Homes
Managing oratab Entries
Upgrading with Multiple Oracle Homes
The Oracle Inventory
Moving Oracle Files
Moving Control Files
Moving Datafiles
Moving Redo Logs
Conclusion
Chapter 18:
Managing Oracle
Processes
Using the
dbstart and
dbshut scripts
Managing the Listener
Managing Unresponsive Processes
Managing Oracle User Processes
Tracking Down User Processes
Hiding Passwords in Process Listings
Conclusion
Chapter 19:
The Oracle
Scheduler
When to Use the Oracle Scheduler
The Legacy
dbms_job Scheduler
How Jobs are Run
Examining the Scheduler Setup and Jobs
Submitting a Job
Using
dbms_scheduler
An Overview of the Scheduler
Viewing Job Information
Submitting a Job
File Watchers
Setting Up a File Watcher
Conclusion
Chapter 20:
Oracle
Enterprise Manager and Grid Control
Working with OEM
Examining the OEM Setup
Creating OEM
Starting and Stopping OEM
Accessing OEM
Oracle Enterprise Manager Grid Control
The Anatomy of Grid Control
Monitoring and Managing Linux from Grid
Control
Conclusion
Chapter 21:
Performance
Tuning
Monitoring Processor Usage
Examining CPU Usage
Examining the Load Average
Memory Usage
Examining Memory Usage
Monitoring Disk Throughput
Examining Disk Throughput
Monitoring Network Throughput
Examining Network Throughput
Other Monitoring Tools
The System Monitor
Oracle’s OS Watcher
Conclusion
Book Conclusion
|