counter statistics

Oracle Apex 21.1 Installation Step By Step In Linux


Oracle Apex 21.1 Installation Step By Step In Linux

Hey there, tech adventurers! So, you've heard the buzz about Oracle APEX 21.1, huh? The fancy, low-code platform that lets you whip up awesome web apps faster than you can say "database wizard." And now you're thinking, "How on earth do I get this magical creature running on my trusty Linux box?" Well, fret no more, my friend! Today, we're going on a fun little journey, a step-by-step installation guide that's more like a friendly chat over coffee than a dry technical manual. So, grab your favorite beverage, settle in, and let's get this APEX party started!

First things first, let's have a little chat about what we're actually installing. APEX 21.1, for the uninitiated, is a seriously cool development tool that runs inside your Oracle Database. That's right, no separate server to fuss over for the APEX application itself (well, mostly). It's like having a secret superpower built right into your database. Pretty neat, eh?

Now, before we dive headfirst into the installation, we need to make sure our Linux environment is ready to rumble. Think of it as prepping your kitchen before you bake a cake. You wouldn't just throw ingredients in a dirty bowl, would you? Of course not! So, let's get our ducks in a row.

Prerequisites: The "Must-Haves" Before You Get Your APEX Groove On

Okay, so what's on our pre-installation checklist? Glad you asked! The most crucial ingredient here is an Oracle Database. Yep, APEX 21.1 plays best with Oracle Database 19c or later. If you're running something older, it's like trying to play the latest video game on a 90s flip phone – it's just not going to happen. So, make sure you've got a compatible Oracle Database humming along nicely.

And when I say "humming along nicely," I mean it needs to be accessible. You'll need the necessary database privileges to install APEX. Think of yourself as the head chef; you need the authority to bring in new ingredients and spice things up, right? So, you'll likely need to connect as a user with the `SYSDBA` or `SYS` role. Don't worry, we're not going to make you do anything too crazy.

Next up, we need the APEX software itself. You can snag the latest release directly from the official Oracle APEX website. Just search for "Oracle APEX download" and you'll find it. It'll usually come as a zip file. Download it, save it somewhere you can easily find it later – maybe your "Awesome Projects" folder? Be sure to grab the version that matches your Oracle Database version. It's like choosing the right size shoe; you don't want to force it!

Now, let's talk about your Linux environment. You'll need a Linux operating system. Oracle officially supports a bunch of them, so check their documentation for the exact list, but generally, anything reasonably modern should be fine. You'll also need to be comfortable with the command line. Yep, the terminal is our playground for this adventure. Don't be scared, it's not as intimidating as it looks. Think of it as a super-efficient assistant that does exactly what you tell it to.

Finally, you'll need some disk space. APEX itself isn't huge, but your database will grow as you create apps. So, make sure you've got enough breathing room. Better to have too much than to run out mid-installation and have a grumpy database!

Step 1: Unzipping the Goodies – Let's Get APEX Ready

Alright, party people, time to get our hands dirty! First, you need to unzip that APEX software you downloaded. Navigate to the directory where you saved the zip file using your terminal. If you're feeling fancy, you can use your file manager, but the command line is where the magic happens.

Let's say you downloaded the file to `/home/youruser/downloads/apex_21.1.zip`. You'd pop open your terminal and type:

cd /home/youruser/downloads/

Now, let's unzip it. The command for this is usually `unzip`. So, you'd type:

Installing Oracle APEX 21 - Ontoor blogs
Installing Oracle APEX 21 - Ontoor blogs

unzip apex_21.1.zip

Boom! This will create a new directory, usually named `apex`, containing all the necessary files for the installation. It's like opening a treasure chest! Inside this `apex` directory, you'll find a bunch of scripts. The one we're most interested in for the installation is usually named something like `apexins.sql`.

Think of this `apexins.sql` script as the master key to unlock APEX within your database. It contains all the instructions for setting up APEX, creating the necessary schema, and configuring everything just right. So, keep it safe!

Step 2: Connecting to the Oracle Database – Time for Some SQL Fun!

Now, we need to talk to our Oracle Database. This is where SQLPlus comes into play. SQLPlus is the command-line tool for interacting with Oracle databases. If you don't have it installed on your Linux machine, you'll need to install the Oracle Instant Client or the full Oracle Client. But let's assume you've got it handy for now. If not, it's another quick download and install process from Oracle's website!

Open your terminal again and connect to your database as a user with the necessary privileges. Usually, this means connecting as the `SYS` user with the `SYSDBA` role. So, the command will look something like this:

sqlplus /nolog

This command fires up SQLPlus but doesn't connect you to a database yet. It's like opening the door but not stepping inside. Now, let's connect:

CONN SYS AS SYSDBA

You'll be prompted for the SYS password. Enter it carefully. Don't worry if you see some Oracle logos or information messages – that's just the database saying hello!

Installing Oracle APEX 21 - Ontoor blogs
Installing Oracle APEX 21 - Ontoor blogs

Once you're connected, you'll see that familiar SQLPlus prompt, usually `SQL>`. This is where we'll run our installation script.

Step 3: Running the APEX Installation Script – The Main Event!

This is it! The moment of truth! We're going to run that `apexins.sql` script. But before we do, we need to make sure SQLPlus knows where to find it. We need to change our directory within SQLPlus to where we unzipped APEX.

So, in your SQLPlus session, type:

cd /path/to/your/unzipped/apex/directory

Replace `/path/to/your/unzipped/apex/directory` with the actual path where you unzipped the APEX files. For example, if you unzipped it into `/home/youruser/apex`, you'd type `cd /home/youruser/apex`.

Now that we're in the right directory, it's time to execute the installation script. Drumroll please...

@apexins.sql

Press Enter, and let the magic happen! This script will ask you a few questions. Don't panic! They're pretty straightforward.

The first thing it will ask for is a tablespace for APEX. This is where APEX will store its own objects. You can usually accept the default if it suggests one, or you can specify a different tablespace if you have one set up. If you're unsure, just hitting Enter to accept the default is usually a safe bet for a first-time installation.

how to install oracle apex 21 in [oracle database 19c] on oracle linux
how to install oracle apex 21 in [oracle database 19c] on oracle linux

Next, it will ask for a tablespace for the APEX user's temporary segments. Again, the default is often fine. This is just for temporary operations during installation and usage. No need to overthink this one!

Then, it will ask for a password for the APEX_PUBLIC_USER. This user is used for things like accessing APEX images. Choose a strong, memorable password. You'll need this later, so don't write it on a sticky note and stick it to your monitor!

The script might also ask for a password for the APEX_GRANTS_TO_APEX_ADMIN. This is essentially a password for the `APEX_GRANTS_TO_APEX_ADMIN` role. Again, pick a good password.

Finally, and this is a big one, it will ask for a password for the APEX administrators. This is the password you'll use to log in to the APEX development environment as an administrator. Make this one really secure and memorable! You'll be using it a lot.

The script will then proceed to install all the APEX components. This can take a little while, so go grab another coffee or maybe a snack. You'll see a lot of output in your terminal as it creates tables, procedures, and all sorts of goodies. Just let it do its thing. Resist the urge to interrupt it – it's like trying to stop a potter from shaping clay; it needs its own rhythm.

Once the installation is complete, you'll see a message indicating success. Hooray! You've done it!

Step 4: Verifying the Installation – Did it Really Work?

We're almost there! Before we celebrate with a dance party, let's just do a quick check to make sure everything is shipshape. The easiest way to do this is to try and access the APEX administration console.

Open your web browser and navigate to:

http://your_server_name_or_ip_address:port/apex/apex_admin

Installing Oracle Linux and Apex | skelleton.net
Installing Oracle Linux and Apex | skelleton.net

Replace `your_server_name_or_ip_address` with the hostname or IP address of your Linux server where your Oracle Database is running. The `port` is the Oracle listener port, which is typically `8080` for APEX if you haven't changed it. If you're running it locally and testing from the same machine, you might be able to use `localhost` or `127.0.0.1`.

You should see the APEX login page. Now, use the administrator username `admin` and the password you set for the APEX administrators during the installation. If you log in successfully, congratulations! APEX is up and running on your Linux machine!

If you don't get the login page, don't despair! Go back and retrace your steps. Did you connect as SYSDBA? Did you run the `@apexins.sql` script correctly? Did you enter the passwords as requested? Sometimes, a typo can cause a lot of head-scratching, so double-check everything.

Step 5: The Optional, But Highly Recommended, Post-Installation Steps

So, APEX is installed. You're probably thinking, "Can I just start building awesome apps now?" And the answer is a resounding YES! But there are a couple of things you *might want to do to make your APEX experience even smoother.

One common recommendation is to set up the Oracle REST Data Services (ORDS). While APEX runs inside the database, ORDS is what allows web browsers to communicate with APEX. Think of it as the translator between your browser and the database. The `apexins.sql` script installs the necessary APEX components, but ORDS is a separate piece of software that provides a more robust and flexible way to access your APEX applications and RESTful services.

Installing ORDS is a whole other adventure, but it's well worth it. You'll download ORDS, configure it to connect to your database, and then deploy it. There are plenty of great guides online for installing ORDS, so I won't go into every single detail here. Just know that if you want to host your APEX applications beyond just the basic setup, ORDS is your best friend.

Another thing to consider is configuring your Oracle HTTP Server or other web server to work with APEX, especially if you're using ORDS. This allows you to have cleaner URLs, better performance, and more control over how your applications are accessed. Again, this is a bit more advanced, but it's part of making your APEX deployment production-ready.

For now, though, you've conquered the core APEX installation! You've navigated the command line, spoken the language of SQL, and coaxed a powerful development tool into existence on your Linux box. Give yourself a pat on the back!

You've Tamed the APEX Beast!

And there you have it! You've successfully installed Oracle APEX 21.1 on your Linux machine. You've gone from a blank canvas to having a powerful platform ready to churn out amazing web applications. Think of all the possibilities! From simple data entry forms to complex enterprise solutions, APEX empowers you to build them with speed and agility.

Remember this feeling of accomplishment. You took on a technical challenge and you absolutely crushed it. This is just the beginning of your APEX journey. The world of low-code development is now at your fingertips, waiting for your creative genius to bring it to life. So go forth, build something incredible, and have a whole lot of fun doing it! Happy coding!

How to Install Oracle APEX 21.1 | DB 21cXE | Pluggable | Windows 10 Installing Oracle Linux and Apex | skelleton.net

You might also like →