Installation¶
This guide covers installing and setting up an OraDBA extension.
Prerequisites¶
- OraDBA v0.17.0 or later installed
- Bash shell environment
- Appropriate permissions for installation directory
Installation Methods¶
Method 1: Extract to OraDBA Local Directory (Recommended)¶
Extract the extension to your OraDBA local directory for automatic discovery:
# Set OraDBA base directory (if not already set)
export ORADBA_LOCAL_BASE="${ORACLE_BASE}/local"
# Extract extension
cd "${ORADBA_LOCAL_BASE}"
tar -xzf /path/to/extension-1.0.0.tar.gz
# Verify extraction
ls -la extension/
Result: The extension is automatically discovered when you next source oraenv.sh.
Method 2: Custom Location¶
Extract to a custom location and OraDBA will discover it:
# Extract to custom directory
mkdir -p /opt/oracle/extensions
cd /opt/oracle/extensions
tar -xzf /path/to/extension-1.0.0.tar.gz
# OraDBA will find it if it's parallel to OraDBA installation
Verification¶
1. Check Extension is Loaded¶
# Source OraDBA environment
source oraenv.sh MYSID
# List loaded extensions
oradba_extension.sh list
# Should show your extension
2. Verify Scripts are in PATH¶
# Check if extension scripts are available
which my-custom-script.sh
# Should return path to the script
3. Verify SQL Scripts¶
# Check SQLPATH includes extension
echo $SQLPATH | tr ':' '\n' | grep extension
# Should show extension sql directory
Configuration¶
Using Configuration Examples¶
Extensions provide example configurations in their etc/ directory:
# View example configuration
cat "${ORADBA_LOCAL_BASE}/extension/etc/extension.conf.example"
# Copy settings to main OraDBA config
vim "${ORADBA_PREFIX}/etc/oradba_customer.conf"
# Add needed settings from the example
Configuration Locations¶
OraDBA checks configurations in this order:
${ORADBA_PREFIX}/etc/oradba.conf- Main configuration${ORADBA_PREFIX}/etc/oradba_customer.conf- Customer overrides- Extension configurations (loaded automatically)
Integrity Verification¶
Verify extension integrity after installation:
# OraDBA automatically verifies checksums when loading extensions
# Check logs for verification results
grep -i checksum "${ORADBA_PREFIX}/log/oradba.log"
If checksums don't match, you'll see a warning indicating which files changed.
Updating¶
To update an extension:
# Remove old version
rm -rf "${ORADBA_LOCAL_BASE}/extension"
# Extract new version
cd "${ORADBA_LOCAL_BASE}"
tar -xzf /path/to/extension-2.0.0.tar.gz
# Reload environment
source oraenv.sh MYSID
Uninstallation¶
To remove an extension:
# Remove extension directory
rm -rf "${ORADBA_LOCAL_BASE}/extension"
# Reload environment
source oraenv.sh MYSID
Troubleshooting¶
Extension Not Loaded¶
Problem: Extension doesn't appear in oradba_extension.sh list
Solutions:
- Check directory location:
- Verify
.extensionfile exists:
- Check for errors:
Scripts Not in PATH¶
Problem: Extension scripts not found
Solutions:
- Reload environment:
- Check PATH:
Checksum Warnings¶
Problem: Checksum verification warnings appear
Solutions:
- Re-download extension from official source
- Verify SHA256 checksum of tarball:
- Check
.checksumignoreif you've added custom files
Next Steps¶
- Review Configuration options
- Explore Reference for available scripts and tools
- Check Development if contributing