1. Required Downloads
1. Oracle Database 19c for Windows x64 (ZIP - 2.9 GB)
2. Oracle APEX 24.1
3. Oracle REST Data Services (ORDS) 24.1
4. SQL-Developer
5. Java
6. Java
7. XAMPP
2. Java Installation
To ensure your system is ready for Oracle Database and APEX installations, follow these steps to install Java:
1. Install the First Java File
- Run the installer and follow the on-screen instructions to complete the installation.
2. Install the Second Java File
- After the first file is installed, run the installer for the second file and follow the prompts.
3. Installation of Oracle DB 19c
Follow these steps to install Oracle Database 19c on your Windows system:
1. Unzip the Oracle Installation Folder
- After downloading, unzip the folder containing the Oracle Database 19c installation files.
2. Prepare the Installation Directory
- Move the unzipped files directly to your C: drive and rename the folder, for example, to
C:\db_home
.
3. Start the Installation
- Navigate to the
C:\db_home
directory and double-click thesetup.exe
file to start the setup process.
4. Enter Setup Details
- Base Path: Define the base directory for Oracle installations, e.g.,
C:\db_base
- Oracle Data Files Path: Specify the path for Oracle data files, e.g.,
C:\db_base\oradata
- Global Database Name: Set the global database name, e.g.,
orcl
- Database Name (PDB): Define the pluggable database name, e.g.,
orclpdb
- Administrator Password: Create a strong, secure password for the database administrator, e.g.,
Password1!
5. Installation Verification
- Review all settings before proceeding with the installation. Click 'Install' to begin the installation process.
6. Post-Installation Steps
- Ensure that the database services are running by checking the Services app in Windows.
4. Installation of SQL Developer
Follow these steps to install SQL Developer and test your database connection:
1. Unzip SQL Developer
- After downloading SQL Developer, unzip the folder to a convenient location on your system.
2. Move and Rename the Folder
- Move the unzipped SQL Developer folder directly to your C: drive and rename it, e.g., to
C:\sql-developer
.
3. Open SQL Developer and Set Up a New Connection
- Launch SQL Developer from the
C:\sql-developer
directory or from the desktop shortcut you created. - Click on the "New Connection" button.
- Connection Name: Enter a descriptive name, e.g.,
db_sys_admin
. - Username: Use
sys
for administrative privileges. - Password: Enter the password for your sys account, e.g.,
Password1!
. - Hostname: Enter
localhost
if your database is on the same machine as SQL Developer. - Port: Typically, Oracle uses port
1521
, but verify this during your Oracle installation. - Service Name: Enter the service name of your database, e.g.,
orclpdb
.
4. Save and Test the Connection
- Click "Save" to store the connection settings.
- Click "Test" to ensure that SQL Developer can connect to your Oracle database.
5. Why Test the Connection?
- Testing the connection ensures that all settings are correct and that SQL Developer can communicate with your Oracle database.
5. Setting Up Environment Variables
- 1. Create Environment Variables
- Action: Create environment variables for Java JDK paths such as
C:\Program Files\Java\jdk-22
andC:\Program Files\Java\
. - 2. Set Environment Variables Before Installing APEX
- User Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk-22
ORDS_CONFIG=C:\ords\config
JAVA_HOME
: Sets the path to the Java JDK.ORDS_CONFIG
: Sets the path to the ORDS configuration.- System Environment Variables:
JDK path → C:\Program Files\Java\jdk-22 JDK
path → C:\Program Files\Java JDK
path → C:\Program Files\Java\jdk-22\bin
JAVA_TOOL_OPTIONS=-Dconfig.url=C:\ords\config
JDK path
: Sets various paths for the Java JDK.JAVA_TOOL_OPTIONS
: Sets additional Java options, here the configuration URL for ORDS.
6.1 Installation Guide - Oracle APEX 24.1
Overview
This guide details the necessary steps to install Oracle Application Express (APEX) 24.1 on a Windows system, explaining the rationale behind each step to ensure a successful setup.
1. Unpacking and Relocating Installation Files
- Action: Unzip the Oracle APEX files and move them directly to the C: drive, renaming the folder for easier access, e.g.,
C:\apex
. - Why?: Placing the installation files on the C: drive in a specifically named folder (
apex
) simplifies navigation and future maintenance. It standardizes the installation path, which can help avoid path-related errors during the setup process.
2. Preparing the Database
- Action: Navigate to the directory containing
apexins.sql
, open a command prompt at this location, and prepare to run the SQL scripts. - Why?: The
apexins.sql
script initializes the Oracle APEX environment within your Oracle Database. It sets up the necessary schemas and configurations.
3. Running SQL Scripts
- Commands to Execute:
6.2. Setting the Internal Password for Oracle APEX
- File to Run:
apxchpwd.sql
6.3. Checking APEX Users
- Command to Execute:
6.4 Configuring REST
- File to Run:
apex_rest_config.sql
6.5 Unlocking Users
- Commands to Execute:
6.6 Configuring ORDS
- Commands to Execute:
7. Installation of ORDS 24.1
Installing ORDS
- Action: Navigate to the directory where you unzipped ORDS, e.g.,
C:\ords
, and open a command prompt here. - Command to Run:
- Installation Prompts:
- Enter
localhost
for the hostname. - Enter
1521
for the port. - Use the service name entered during the Oracle DB installation (e.g.,
orclpdb
). - Username:
sys
- Password: Enter the sys password.
- When asked if all is correct, press
A
to agree and proceed.
Finalizing the ORDS Installation
- Action: Confirm that the ORDS images are located in
C:\ords\images
.
8. Starting and Stopping ORDS with Batch Files
Starting ORDS
Create a batch file
start_ords.bat
with the following content:Stopping ORDS
Create a batch file
stop_ords.bat
with the following content:9. Testing the Installation
Accessing Oracle APEX
- Action: Open a web browser and navigate to
http://localhost:8080
.
Logging into Oracle APEX
- Steps:
- Log in using the workspace
INTERNAL
. - Username:
admin
- Password: Enter the admin password you set during the installation.
Creating a Test Workspace
- Action: Create a test workspace.
Using the Test Workspace
- Action: Log out from the admin account and log back into the newly created test workspace.
- Steps:
- Create a test application within this workspace.
10. Running APEX on Apache Tomcat
1. Install Apache Tomcat
- Install the Tomcat software and, if possible, change the port to 80.
2. Open the Webapps Directory
- Open the
webapps
directory of Tomcat.
3. Move Images and ORDS
- Move the
images
folder from Oracle APEX into thewebapps
directory and rename it toi
. - Copy the
ords.war
file into thewebapps
directory and rename it if needed, e.g., toapexnote
.
4. Start Apache Tomcat
- Start Apache Tomcat and open
localhost/apexnote
in your browser.
I hope this structured guide helps you with the installation of Oracle APEX, Oracle DB, ORDS and Apache Tomcat. If you have any questions, please write them in the comments.
Thank you for reading!
{fullWidth}
0 $type={blogger}:
Kommentar veröffentlichen