Install Oracle Client 12c May 2026
The Ultimate Guide to Installing Oracle Client 12c: A Step-by-Step Handbook
Prerequisites
- Linux x86_64 (RHEL/CentOS 6/7, OEL 6/7) or Windows (64-bit)
- Minimum 2GB RAM, 500MB disk space
- Root/sudo access for installation
Step 3.2: The Wizard Walkthrough
- Welcome Screen: Click Next.
- Select Installation Type: Choose "Administrator" (or "Runtime" if you don’t need SQL*Plus). Click Next.
- Select Product Languages: Keep default (English) or add others. Next.
- Specify Installation Location:
- Oracle Base:
C:\app\oracle - Software Location:
C:\app\oracle\product\12.2.0\client_1 - Note: Avoid spaces in the path if possible (don't use
Program Files).
- Oracle Base:
- Prerequisite Checks: The installer will verify OS version, architecture, and available space. If all pass (green checkmarks), click Next. Warnings are often ignorable; errors are not.
- Summary Screen: Review settings. Click Install.
- Install Progress: Wait for the progress bar (5-10 minutes). You will see it copying files, linking libraries, and registering ODBC drivers.
- Finish: Click Exit.
Step 3.1: Launch Installer
- Unzip the downloaded
VXXXXX-01_2of2.zipandVXXXXX-01_1of2.zipinto the same directory. - Right-click
setup.exeand select "Run as Administrator". (This is crucial to avoid registry permission errors).
Example usage
def main(): """Demonstrate Oracle connection pool feature"""
# Configuration
config =
'user': 'scott',
'password': 'tiger',
'dsn': 'localhost:1521/ORCLPDB1',
'min_pool_size': 5,
'max_pool_size': 20,
'connection_timeout': 30,
'idle_timeout': 300,
'max_connection_age': 3600
# Initialize pool
pool = OracleConnectionPool(config)
try:
# Example 1: Basic query with connection
conn = pool.get_connection()
if conn:
cursor = conn.cursor()
cursor.execute("SELECT SYSDATE, USER FROM DUAL")
sysdate, username = cursor.fetchone()
print(f"Connected as: username, Current time: sysdate")
cursor.close()
pool.return_connection(conn)
# Example 2: Using context manager
with pool.get_cursor() as cursor:
cursor.execute("""
SELECT table_name, num_rows
FROM user_tables
WHERE ROWNUM <= 5
""")
for table_name, num_rows in cursor:
print(f"Table: table_name, Rows: num_rows")
# Example 3: Transaction example
try:
with pool.get_cursor() as cursor:
cursor.execute("""
INSERT INTO test_table (id, name, created_date)
VALUES (seq_test.NEXTVAL, 'Test', SYSDATE)
""")
print("Record inserted successfully")
except Exception as e:
print(f"Transaction failed: e")
# Display pool statistics
stats = pool.get_stats()
print("\n=== Pool Statistics ===")
for key, value in stats.items():
print(f"key: value")
# Example 4: Bulk operations
data = [(i, f"Name_i", f"Description_i")
for i in range(1, 1001)]
with pool.get_cursor() as cursor:
cursor.executemany("""
INSERT INTO bulk_test (id, name, description)
VALUES (:1, :2, :3)
""", data)
print(f"Inserted len(data) rows")
finally:
# Cleanup
pool.close()
if name == "main": main()
5.6. Install
- Click Install.
- At the end, run the root script as root:
/u01/app/oraInventory/orainstRoot.sh /u01/app/client/product/12.2.0/client_1/root.sh
Removal
- Windows: Use Oracle Universal Installer (OUInstall) deinstall utility or remove Oracle Home via Programs/Features and clean registry entries carefully.
- Linux: Remove RPMs or delete ORACLE_HOME and remove references in PATH/ld.so.conf; clean up inventory entries.
1. Overview of Oracle Client 12c
The Oracle Client provides network connectivity, essential utilities (sqlplus, imp, exp, tnsping), programming interfaces (ODBC, ODP.NET, OCI, JDBC-OCI), and GUI tools like netca (Network Configuration Assistant). install oracle client 12c
Key versions:
- 12.1.0.2
- 12.2.0.1 (most common production version for 12c)
Types of installation:
- Administrator – Full client (utilities + development libraries + network tools)
- Runtime – Limited to running applications (no SDK or utilities like
sqlplus) - Instant Client – Lightweight download, no installer (not covered here, but often preferred for modern deployments)
Note: Oracle Client 12c supports connections to database versions 11gR2 (11.2.0.3+) through 19c (in compatibility mode). The Ultimate Guide to Installing Oracle Client 12c: