Tag: OL8

  • Autonomous AI Database 26ai in My Home Lab: Vector Search, JSON Duality Views and the MongoDB API at Zero Cost

    Autonomous AI Database 26ai in My Home Lab: Vector Search, JSON Duality Views and the MongoDB API at Zero Cost

    Alhamdulillah, another home-lab build done. This one started with a simple question: can I get an Autonomous Database on 26ai for free?

    My OCI Free Tier tenancy already gives me two Always Free Autonomous Databases, but Always Free on 26ai is only offered in a handful of home regions, and mine is not one of them. So my cloud instance stays on 19c. Creating a second free account in another region is not an option either — Oracle’s Free Tier terms allow one free account per person.

    The answer was the Autonomous AI Database Free container image. Oracle publishes it on container-registry.oracle.com, it runs on Podman, and it gives you the Autonomous stack — ORDS, Database Actions, APEX, the MongoDB API — on your own machine. To be clear up front: this is a local development and testing image, not the managed OCI service. There is no cloud bill, but there is also no scaling or automatic patching, and running it is entirely your job. In this post I build it in a VirtualBox VM and then put three 26ai features through their paces:

    • Build an Oracle Linux 8.10 VM in VirtualBox and run the Autonomous AI Database 26ai Free container with Podman.
    • Connect remotely with a wallet and use Database Actions.
    • Load an ONNX embedding model and run semantic search over DBA notes.
    • Build a JSON Relational Duality View and test reads and writes through SQL and the MongoDB-compatible API.

    Lab Layout

    ItemValue
    HostWindows desktop, VirtualBox
    Container VMadbhost — Oracle Linux 8.10, 4 vCPU, 10 GB RAM, 50 GB disk
    Client VMdbhost1 — Oracle Linux 9 with a 26ai home (for SQL*Plus)
    Imageadb-free:latest-26ai
    Database versionOracle AI Database 26ai 23.26.4.1.0, PDB MYATP
    Workload typeATP

    Host names and addresses below are lab placeholders. Replace <adbhost-ip> with your own VM address, and use your own passwords — the ones in my lab are not shown here.

    Part 1 — Build the VM

    I cloned an existing Oracle Linux 8.10 base snapshot rather than installing from ISO. clonevm generates new MAC addresses by default, so there is no NIC conflict with the source VM.

    cd "C:\Program Files\Oracle\VirtualBox"
    .\VBoxManage.exe clonevm ol8-base --snapshot "OL8.10 base" --name adbhost --basefolder "E:\VMs" --register
    .\VBoxManage.exe modifyvm adbhost --memory 10240 --cpus 4 --mouse usbtablet --usb-ohci on

    Because the clone carries the source VM’s static IP, power off the source first and change the identity from the VirtualBox console before using SSH:

    hostnamectl set-hostname adbhost.lab.local
    nmcli con mod enp0s8 ipv4.addresses <adbhost-ip>/24 ipv4.method manual
    nmcli con up enp0s8
    echo "<adbhost-ip> adbhost.lab.local adbhost" >> /etc/hosts

    Before going further I confirmed nobody else on the host-only network owns the new address. A ping is not proof — the VM itself answers it — so I used duplicate address detection:

    arping -D -c 3 -I enp0s8 <adbhost-ip>; echo "exit=$?"
    # exit=0 → no other host is using the address

    Pre-checks: about 40 GB free on / and the registry reachable over the NAT adapter.

    df -h / /var
    ping -c 2 container-registry.oracle.com

    Part 2 — Run the ADB Free 26ai Container

    dnf install -y podman fuse
    modprobe fuse
    echo fuse > /etc/modules-load.d/fuse.conf
    podman pull container-registry.oracle.com/database/adb-free:latest-26ai
    # These are the port mappings used in this lab and verified with podman port:
    podman run -d --name adb26ai \
    -p 1521:1521 -p 1522:1522 -p 8443:8443 -p 27017:27017 \
    -e WORKLOAD_TYPE=ATP \
    -e WALLET_PASSWORD='<WalletPwd>' \
    -e ADMIN_PASSWORD='<AdminPwd>' \
    --cap-add SYS_ADMIN --device /dev/fuse \
    --hostname adbhost.lab.local \
    container-registry.oracle.com/database/adb-free:latest-26ai

    The ADMIN password needs 12–30 characters with upper case, lower case and a number, and cannot contain “admin”. --cap-add SYS_ADMIN --device /dev/fuse are needed because the container uses FUSE for its filesystem. For this specific lab run, I mapped host ports 1521, 1522, 8443 and 27017 to the same-numbered container ports. I verified the published mappings with podman port adb26ai and confirmed the listener inside the container with lsnrctl status LISTENER: TCP on 1521 and TCPS on 1522. Oracle’s current setup guide may show a different host-to-container mapping for its sample deployment, so check your actual container and listener rather than copying port assumptions blindly.

    One thing that caught me: podman logs -f adb26ai never “finishes”. After ORDS reports the /ords/ pool as VALID, the log just carries on with normal alert-log activity. Press Ctrl+C and check health instead:

    podman ps
    # STATUS: Up 20 minutes (healthy)
    Podman ps output showing the adb26ai container running with healthy status

    Open the required ports only on the trusted host-only lab network and configure the container to start with the VM. Before adding firewall rules, check which interfaces belong to each firewalld zone with firewall-cmd --get-active-zones. Apply the rules only to the zone containing the host-only interface; do not open these database, ORDS or MongoDB API ports on a public-facing interface. The per-port zone loop below is the recommended scoped form for readers; in my lab I used the simpler firewall command during setup.

    # First confirm the active zones and their interfaces
    firewall-cmd --get-active-zones
    # Recommended scoped form; replace YOUR_HOST_ONLY_ZONE with the zone assigned to the host-only interface
    for port in 1521 1522 8443 27017; do
    firewall-cmd --permanent --zone=YOUR_HOST_ONLY_ZONE --add-port=${port}/tcp
    done
    firewall-cmd --reload
    # Generate a unit for the existing container; do not recreate it on each start
    cd /etc/systemd/system
    podman generate systemd --name adb26ai --files --new=false
    systemctl daemon-reload
    systemctl enable container-adb26ai.service

    What this container is — and what it is not

    “Zero cost” here means a local container, not a managed OCI Autonomous Database. Oracle positions the Free container image for development and testing, and it comes with fixed limits: 4 ECPUs, 20 GB of storage and a maximum of 30 simultaneous database sessions. Scaling CPU or storage is not available, and there is no automatic patching — newer versions are published to the container registry and you pull them yourself.

    Persistence is the other thing to understand. I ran this lab container without a named volume, so its database files remained in the container’s writable layer. Stopping and starting that same container keeps the data, but removing the container and creating a replacement can lose it. For a new deployment, Oracle’s current guide recommends creating a named volume and mounting it at /u01/data. The guide also sets --shm-size=4g to provide shared-memory headroom for model loading and vector workloads. I did not use either option in this original lab run; the example below shows the recommended additions. Do not recreate an existing container just to add a volume without first planning and verifying a database backup or migration.

    # Recommended for a new deployment; not used in this lab run
    podman volume create OracleDBData
    # Add these options to the podman run command:
    --volume OracleDBData:/u01/data \
    --shm-size=4g \

    Part 3 — Make the Wallet Work from Another VM

    mkdir -p /root/adb_wallet
    podman cp adb26ai:/u01/app/oracle/wallets/tls_wallet/. /root/adb_wallet/

    The wallet copied from the container contains connection aliases that use localhost, which works inside the container VM but not from a separate client VM. On the ADB host, I edited this copied wallet’s tnsnames.ora (not the wallet inside the container) to use the host-only IP, keeping a .orig backup. I also set ssl_server_dn_match=no for this lab test. The certificate subject was checked on the ADB host with OpenSSL and returned CN = adb.lab.local. Use the actual certificate subject from your own deployment; do not assume it will match the container hostname.

    After editing the copied wallet on the ADB host, copy it to the client VM. The following example uses dbhost1 as the client hostname; replace it with your own client host.

    # On the ADB host VM, copy the edited wallet to the client
    scp -r /root/adb_wallet oracle@dbhost1:/home/oracle/

    On the client VM, create an isolated TNS directory for the LOW test alias. This keeps the client’s main wallet configuration separate from the test configuration.

    # On the client VM
    mkdir -p /tmp/adb_tns_test
    cp /home/oracle/adb_wallet/tnsnames.ora /tmp/adb_tns_test/tnsnames.ora
    cat > /tmp/adb_tns_test/sqlnet.ora <<'EOF'
    WALLET_LOCATION =
    (SOURCE =
    (METHOD = FILE)
    (METHOD_DATA =
    (DIRECTORY = /home/oracle/adb_wallet)
    )
    )
    EOF
    # Use the certificate subject returned by:
    # openssl x509 -in /path/to/adb_container.cert -noout -subject
    # This lab certificate subject was CN=adb.lab.local; yours may differ.
    cat >> /tmp/adb_tns_test/tnsnames.ora <<'EOF'
    myatp_low_test =
    (description=
    (address=(protocol=tcps)(port=1522)(host=192.168.56.109))
    (connect_data=(service_name=myatp_low.adb.oraclecloud.com))
    (security=(ssl_server_dn_match=no)(SSL_SERVER_CERT_DN="CN=adb.lab.local"))
    )
    EOF
    TNS_ADMIN=/tmp/adb_tns_test tnsping myatp_low_test
    # Enter the ADMIN password when prompted
    TNS_ADMIN=/tmp/adb_tns_test sqlplus admin@myatp_low_test
    select banner_full from v$version;
    select name, open_mode from v$pdbs;
    Oracle AI Database 26ai Enterprise Edition Release 23.26.4.1.0 - Production
    NAME OPEN_MODE
    -------- ----------
    MYATP READ WRITE
    SQL*Plus connected remotely to the Autonomous AI Database 26ai PDB MYATP

    Tip: I did not put TNS_ADMIN in the client’s .bash_profile. That VM also runs a Data Guard primary, and a global TNS_ADMIN would hide its normal network configuration. An alias keeps it scoped:

    echo "alias adb='TNS_ADMIN=/home/oracle/adb_wallet sqlplus admin@myatp_low'" >> ~/.bashrc

    Database Actions is available at https://<adbhost-ip>:8443/ords/sql-developer. After signing in as ADMIN, the Vector Database page shown in this lab can be opened at https://<adbhost-ip>:8443/ords/admin/_sdw/?nav=vector-db. Replace <adbhost-ip> with the IP address of the container VM. These URLs use the lab’s HTTPS endpoint; because its certificate is self-signed, the browser may display a security warning. The Vector Database path is a Database Actions page route and may vary with the installed ORDS/Database Actions version.

    Oracle Database Actions launchpad for the local Autonomous AI Database 26ai container

    Part 4 — A Lab User

    create user labuser identified by "<LabPwd>";
    grant db_developer_role to labuser;
    grant create mining model to labuser;
    alter user labuser quota unlimited on data;
    begin
    ords_admin.enable_schema(
    p_enabled => true,
    p_schema => 'LABUSER',
    p_url_mapping_type => 'BASE_PATH',
    p_url_mapping_pattern => 'labuser',
    p_auto_rest_auth => true);
    commit;
    end;
    /

    Part 5 — AI Vector Search with an In-Database ONNX Model

    A quick word on embeddings for readers new to this. An embedding model turns a piece of text into a fixed-length list of numbers — 384 of them for the model used here — that represents what the text means. Texts with similar meaning end up close together, so “find notes like this question” becomes a distance calculation that SQL can do. The goal of this part: generate those embeddings inside the database, with SQL, without calling any external API. Oracle provides a prebuilt, augmented version of the Hugging Face all-MiniLM-L12-v2 model in ONNX format for exactly this.

    Two errors on the way

    My first attempt used DBMS_VECTOR.LOAD_ONNX_MODEL_CLOUD with the object-storage link from Oracle’s original 2024 announcement blog. As LABUSER it failed with:

    ORA-00904: "DBMS_CLOUD"."GET_OBJECT": invalid identifier
    ORA-06512: at "SYS.DBMS_VECTOR", line 3819

    LOAD_ONNX_MODEL_CLOUD calls DBMS_CLOUD internally, and the user had no execute privilege on it. The grant has to be run as ADMIN — running it from the LABUSER session gave a misleading ORA-00942 on C##CLOUD$SERVICE.DBMS_CLOUD$BASE.

    grant execute on dbms_cloud to labuser;

    With the grant in place, the call reached the network and failed again:

    ORA-20011: Connect failed because target host or object does not exist.

    The link in the old blog no longer resolves to an object. Oracle’s current AI models page (linked from the Vector Search documentation) now offers the model as a zip, all_MiniLM_L12_v2_augmented.zip, and the database cannot load a zip directly. So I downloaded and unzipped it on the VM and copied the .onnx file into the container’s DATA_PUMP_DIR.

    Loading the model from a file

    Find the directory path (as ADMIN) and give LABUSER access:

    col directory_path format a70
    select directory_path from dba_directories where directory_name = 'DATA_PUMP_DIR';
    grant read, write on directory data_pump_dir to labuser;

    On the VM, using the download link from Oracle’s AI models page:

    mkdir -p /root/onnx && cd /root/onnx
    curl -L -o all_MiniLM_L12_v2_augmented.zip "<download-link-from-oracle-ai-models-page>"
    unzip -o all_MiniLM_L12_v2_augmented.zip
    # all_MiniLM_L12_v2.onnx 128M
    podman cp all_MiniLM_L12_v2.onnx adb26ai:<DATA_PUMP_DIR-path>/
    podman exec -u 0 adb26ai chown oracle:oinstall <DATA_PUMP_DIR-path>/all_MiniLM_L12_v2.onnx

    Then, as LABUSER:

    exec dbms_vector.load_onnx_model('DATA_PUMP_DIR', 'all_MiniLM_L12_v2.onnx', 'ALL_MINILM_L12_V2');
    col model_name format a20
    col algorithm format a10
    col mining_function format a15
    select model_name, algorithm, mining_function from user_mining_models;
    MODEL_NAME ALGORITHM MINING_FUNCTION
    -------------------- ---------- ---------------
    ALL_MINILM_L12_V2 ONNX EMBEDDING

    Semantic search over DBA notes

    To keep it relevant to my day job, the test data is a small table of DBA troubleshooting notes:

    create table dba_notes (
    id number generated always as identity primary key,
    title varchar2(200),
    note varchar2(4000),
    embed vector
    );
    insert into dba_notes (title, note) values
    ('ORA-01555', 'Snapshot too old: undo retention too small or long running query, increase undo_retention or undo tablespace');
    insert into dba_notes (title, note) values
    ('Archivelog full', 'Archive destination full, database hangs, clear space in FRA or increase db_recovery_file_dest_size');
    insert into dba_notes (title, note) values
    ('adop fs_clone failure', 'EBS online patching fs_clone fails, check adop logs, disk space on run and patch file systems');
    insert into dba_notes (title, note) values
    ('Data Guard lag', 'Standby apply lag high, check MRP process, network bandwidth and archive gap on standby');
    insert into dba_notes (title, note) values
    ('Workflow mailer down', 'EBS workflow notification mailer not sending email, check SMTP server and mailer component status');
    insert into dba_notes (title, note) values
    ('Tablespace full', 'ORA-01653 unable to extend table, add datafile or enable autoextend on the tablespace');
    commit;
    update dba_notes
    set embed = vector_embedding(all_minilm_l12_v2 using title || ' ' || note as data);
    commit;

    Now ask questions in plain language, using wording that is deliberately different from the notes:

    col title format a25
    col distance format 0.9999
    select title,
    round(vector_distance(embed,
    vector_embedding(all_minilm_l12_v2 using 'users cannot get emails from oracle apps' as data),
    cosine), 4) distance
    from dba_notes
    order by distance
    fetch first 3 rows only;
    TITLE DISTANCE
    ------------------------- --------
    Workflow mailer down 0.6405
    Tablespace full 0.8137
    ORA-01555 0.8529
    -- same query with: 'standby database is behind primary'
    TITLE DISTANCE
    ------------------------- --------
    Data Guard lag 0.6044
    ORA-01555 0.7694
    Tablespace full 0.8022

    “Behind” and “lag” share no characters, and “oracle apps” never appears in the Workflow note, yet both questions found the right note first with a clear gap to the next result. That is the whole point of embeddings: matching on meaning rather than keywords. With six rows this is a demonstration, not a benchmark, but it shows the full pipeline — model, vector column, distance search — running entirely in SQL.

    SQL query output showing semantic similarity search results for Oracle DBA troubleshooting notes

    Part 6 — JSON Relational Duality Views

    Relational tables and JSON documents usually force a choice: normalized rows that are good for integrity and SQL reporting, or self-contained documents that application developers find easier to work with. A duality view removes that choice. The data is stored once, in ordinary tables with keys and constraints, and the view presents it as JSON documents that can be read and written directly. I modelled a tiny inventory of lab servers and the databases on them:

    create table lab_servers (
    server_id number primary key,
    hostname varchar2(50),
    ip_addr varchar2(20)
    );
    create table lab_dbs (
    db_id number primary key,
    db_name varchar2(30),
    version varchar2(20),
    server_id number references lab_servers
    );
    create or replace json relational duality view server_dv as
    lab_servers @insert @update @delete
    {
    _id : server_id,
    hostname : hostname,
    ip : ip_addr,
    databases : lab_dbs @insert @update @delete
    [ { dbId : db_id,
    dbName : db_name,
    version : version } ]
    };

    Insert JSON through the view — each document lands in both tables:

    insert into server_dv values ('{"_id":1,"hostname":"dbhost1","ip":"10.0.0.11","databases":[{"dbId":101,"dbName":"CDB26","version":"23.26.1"}]}');
    insert into server_dv values ('{"_id":2,"hostname":"adbhost","ip":"10.0.0.12","databases":[{"dbId":201,"dbName":"MYATP","version":"23.26.4.1"}]}');
    commit;

    Then change the data with plain relational SQL and read it back as JSON:

    update lab_dbs set version = '23.26.4.1' where db_name = 'CDB26';
    commit;
    set long 2000
    col doc format a80
    select json_serialize(data pretty) doc from server_dv where json_value(data, '$._id') = 1;
    {
    "_id" : 1,
    "_metadata" :
    {
    "etag" : "83D06EAD5CC81CB678006ACC2E9026D2",
    "asof" : "00000000003F2090"
    },
    "hostname" : "dbhost1",
    "ip" : "10.0.0.11",
    "databases" :
    [
    {
    "dbId" : 101,
    "dbName" : "CDB26",
    "version" : "23.26.4.1"
    }
    ]
    }

    The SQL update appears in the document immediately, and the etag changes with it. That etag is what gives duality views optimistic locking: a client that read the document before the update and tries to write back with the old etag is rejected instead of silently overwriting newer data.

    JSON document returned from an Oracle JSON Relational Duality View with server and database details

    Part 7 — The MongoDB API

    The container exposes the Oracle Database API for MongoDB on port 27017. The schema needs the SODA role (as ADMIN):

    grant soda_app to labuser;

    Install mongosh from MongoDB’s repository and connect:

    cat > /etc/yum.repos.d/mongodb-org-8.0.repo <<'EOF'
    [mongodb-org-8.0]
    name=MongoDB Repository
    baseurl=https://repo.mongodb.org/yum/redhat/8/mongodb-org/8.0/x86_64/
    gpgcheck=1
    enabled=1
    gpgkey=https://pgp.mongodb.com/server-8.0.asc
    EOF
    dnf install -y mongodb-mongosh
    # Enter the password at the prompt; do not put it in the command line
    mongosh --tlsAllowInvalidCertificates -u labuser 'mongodb://<adbhost-ip>:27017/labuser?authMechanism=PLAIN&authSource=$external&tls=true&retryWrites=false&loadBalanced=true'

    mongosh reported Using MongoDB: 7.0.22 — the API version Oracle presents to the client. Run commands one line at a time; pasting several lines together made mongosh treat them as one JavaScript block and fail with “Missing semicolon”.

    labuser> show collections
    SERVER_DV [view]
    labuser> db.server_dv.find({hostname: "adbhost"})
    [
    {
    _id: 2,
    hostname: 'adbhost',
    ip: '10.0.0.12',
    databases: [ { dbId: 201, dbName: 'MYATP', version: '23.26.4.1' } ],
    ...
    }
    ]

    The duality view shows up as a collection. Now the other direction — write from Mongo:

    labuser> db.server_dv.insertOne({_id: 3, hostname: "dbhost2", ip: "10.0.0.13", databases: [{dbId: 301, dbName: "CDB19", version: "23.26.1"}]})
    { acknowledged: true, insertedId: 3 }

    …and read it back with SQL:

    col hostname format a15
    col db_name format a10
    col version format a12
    select s.hostname, d.db_name, d.version
    from lab_servers s join lab_dbs d on d.server_id = s.server_id
    order by s.server_id;
    HOSTNAME DB_NAME VERSION
    --------------- ---------- ------------
    dbhost1 CDB26 23.26.4.1
    adbhost MYATP 23.26.4.1
    dbhost2 CDB19 23.26.1

    One insertOne from a Mongo client became a row in lab_servers and a row in lab_dbs, with the foreign key in place.

    mongosh query displaying documents from the Oracle Database API for MongoDB duality view
    SQL query showing relational rows inserted through the MongoDB API

    Additional validation from an OL9.8 client

    After the original walkthrough, I ran an additional connectivity and CRUD check from a separate Oracle Linux 9.8 client VM. I installed mongodb-mongosh 2.14.3 from the MongoDB 8.0 repository (the package reported as 2.14.3-1.el8). This installs the MongoDB Shell client only; it does not install a MongoDB Server. The endpoint tested here is Oracle AI Database 26ai’s MongoDB-compatible API on port 27017, not the separate MongoDB Server used elsewhere in my lab. The API identified itself to mongosh as MongoDB-compatible version 7.0.22.

    I also rechecked wallet connectivity from the separate OL9.8 client. The listener inside the container showed TCP on port 1521 and TCPS on port 1522. The original myatp_low and myatp_tp aliases worked from the client after I edited the copied wallet’s tnsnames.ora on the ADB host to replace localhost with the host-only IP and set DN matching off, retaining the original file as tnsnames.ora.orig. The separate myatp_low_tls alias used TCPS port 1521 and failed with an SSL handshake error; the listener’s TCPS endpoint was on port 1522. For an isolated re-test, I created myatp_low_test under /tmp/adb_tns_test and pointed its sqlnet.ora to the copied wallet.

    # Enter the database password when prompted
    mongosh --tlsAllowInvalidCertificates -u admin 'mongodb://<adbhost-ip>:27017/admin?authMechanism=PLAIN&authSource=$external&ssl=true&retryWrites=false&loadBalanced=true'
    # In mongosh
    db.runCommand({ ping: 1 })
    # { ok: 1 }

    The ping returned { ok: 1 }. I then created a small test collection and inserted and retrieved a document through the API:

    use labdb
    db.createCollection("employees")
    db.employees.insertOne({
    emp_id: 101,
    name: "Lab DBA",
    role: "Oracle DBA",
    technology: "Oracle AI Database 26ai"
    })
    db.employees.find()

    The collection creation succeeded, the insert returned acknowledged: true, and find() returned the inserted document. This is a direct MongoDB API CRUD smoke test. It is separate from the earlier SERVER_DV JSON Relational Duality View demonstration, where a MongoDB API insert was reflected in the underlying relational tables and then queried with SQL. For this lab connection I used --tlsAllowInvalidCertificates because the endpoint uses a lab certificate; this is a testing shortcut only. In a production environment, configure certificate trust and hostname validation instead.

    Gotchas Worth Remembering

    • Always Free 26ai depends on region availability. The local Free container is a development and test environment, not a managed OCI Autonomous Database service.
    • Check the real listener and published ports. Use podman port on the VM and lsnrctl status LISTENER inside the container.
    • Protect database persistence. This original lab run did not use a named volume; removing and recreating the container can lose its database state.
    • Check the TCPS port in the alias. The myatp_low_tls alias pointed to TCPS port 1521 and failed with an SSL handshake error; the listener’s TCPS endpoint was on port 1522.
    • Scope firewall rules to the host-only network. Do not expose database, ORDS or MongoDB API ports publicly.
    • Keep TNS_ADMIN scoped per command. The client VM also hosts another database environment.
    • MongoDB API authentication is not ordinary MongoDB SCRAM. Oracle’s API uses authMechanism=PLAIN, authSource=$external and TLS.

    Wrapping Up

    ما شاء الله, in one afternoon a single VM went from a cloned base image to a working Autonomous AI Database 26ai — newer than both my cloud instance and my other lab databases — with in-database vector search, duality views and Mongo compatibility all tested end to end, at no cost.

    The vector search piece is the one I will build on next. A table of DBA notes searchable by meaning is the foundation of the troubleshooting assistant I am working on in this lab, and keeping the embedding model inside the database means no data leaves it.

    This is a lab build. The container image is intended for development and testing, and shortcuts like disabling DN matching and using a self-signed certificate do not belong in production.

    References and Further Reading

  • Upgrading Oracle Database 19c to Oracle AI Database 26ai with AutoUpgrade: A Home-Lab Run (and Why 19.3 Would Not Install on Oracle Linux 9)

    Alhamdulillah. This is a write-up of a home-lab exercise: upgrading an Oracle Database 19c container database to Oracle AI Database 26ai (23.26.1) with AutoUpgrade. The upgrade itself was the easy part. Getting a 19c source database onto the lab took longer, because the base 19.3 release would not link on Oracle Linux 9. I have kept that part in, because it is the kind of thing that costs an evening if you have not seen it before.

    The idea came from a community post on the same upgrade path (Oracle 19c to 26ai Database Upgrade). Everything below is from my own lab run. Hostnames and IP addresses are masked.

    Lab environment

    ItemValue
    HostWindows desktop, VirtualBox, 64 GB RAM
    Upgrade VMlabhost19, Oracle Linux 8.10, 4 vCPU, 12 GB RAM, 100 GB disk
    SourceOracle Database 19c EE 19.3 (base release, no RU), CDB19 with PDB19
    TargetOracle AI Database 26ai EE 23.26.1 (public download)
    ToolAutoUpgrade 26.7.2 (build 261111)
    Source home/u01/app/oracle/product/19.0.0/dbhome_1
    Target home/u01/app/oracle/product/26ai/dbhome_1

    Only public downloads were used: the 19.3 and 23.26.1 zips from oracle.com and the AutoUpgrade jar. No My Oracle Support account was involved, which matters for the first problem.

    Part 1: Why 19.3 would not install on Oracle Linux 9

    My first plan was to install a 19c home next to the existing 26ai home on an Oracle Linux 9.8 VM. The software-only install failed at the relink stage every time:

    [FATAL] Error in invoking target 'libasmclntsh19.ohso libasmperl19.ohso client_sharedlib' of makefile
    '/u01/app/oracle/product/19.0.0/dbhome_1/rdbms/lib/ins_rdbms.mk'.

    The installer message is generic. The actual linker error is in $ORACLE_HOME/install/make.log, so that is the first file to check.

    Attempt 1: gcc was not installed

    $ gcc --version | head -1
    bash: gcc: command not found...

    Neither the 26ai nor the 19c preinstall RPM pulled in gcc on this OL9 VM. I installed it, but the relink still failed.

    dnf -y install gcc gcc-c++ make glibc-devel elfutils-libelf-devel ksh

    Attempt 2: libpthread_nonshared.a

    $ grep -n -i -E "error|undefined|cannot find" $ORACLE_HOME/install/make.log
    136:/usr/bin/ld: cannot find /usr/lib64/libpthread_nonshared.a
    ...
    genclntsh: Failed to link libclntshcore.so.19.1

    The 19.3 home ships its own linker stubs. The libpthread.so stub is a linker script that still points at a file Oracle Linux 9 does not have:

    $ cat $ORACLE_HOME/lib/stubs/libpthread.so
    /* GNU ld script
    Use the shared library, but some functions are only in
    the static library, so try that secondarily. */
    OUTPUT_FORMAT(elf64-x86-64)
    GROUP ( libpthread.so.0 /usr/lib64/libpthread_nonshared.a )

    OL9 uses glibc 2.34, where libpthread was merged into libc and libpthread_nonshared.a is gone. The base 19.3 stubs were built for an older glibc.

    Attempts 3 to 5: each stub fix moved the failure

    • Moving all stubs aside gave cannot find -lgcc_s. The link needs the other stubs.
    • Restoring the stubs and removing only libpthread.so gave cannot find -lclntshcore. That one was self-inflicted: an earlier failed genclntsh run had already deleted libclntshcore.so, so the home was damaged.
    • On a fresh unzip with only the libpthread.so stub removed, the client libraries linked, and the failure moved to the Pro*C link with undefined pthread_* symbols.
    /usr/bin/ld: .../lib//libclntsh.so: undefined reference to `pthread_sigmask'
    /usr/bin/ld: .../lib//libclntshcore.so: undefined reference to `pthread_mutexattr_settype'
    /usr/bin/ld: .../lib//libclntsh.so: undefined reference to `pthread_join'
    make[1]: *** [.../precomp/lib/ins_precomp.mk:118: .../precomp/lib/proc] Error 1

    At that point I stopped patching stubs. Oracle’s supported route for 19c on Oracle Linux 9 is a newer Release Update applied at install time (runInstaller -applyRU), and RUs need a support account. Even if a hand-edited 19.3 home had linked in the end, it would not have been a sound base for an upgrade test. I built a separate Oracle Linux 8.10 VM instead, where 19.3 installs without workarounds.

    One lesson from this part: after a relink failure, do not retry in the same home. Wipe it completely, including hidden folders such as .patch_storage, and unzip again.

    Part 2: Building the 19c source on Oracle Linux 8.10

    OS packages and directories, as root:

    dnf -y install oracle-database-preinstall-19c gcc gcc-c++ make glibc-devel elfutils-libelf-devel ksh unzip
    mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1 /u01/app/oracle/product/26ai/dbhome_1 /u01/stage /u01/app/oracle/fra
    chown -R oracle:oinstall /u01
    chmod -R 775 /u01

    I kept one environment file per home so the profile never points at the wrong one. A mistake worth mentioning: the first time, the env file did not exist, $ORACLE_HOME was empty, cd $ORACLE_HOME went to the oracle user’s home directory and the 19c zip started extracting there. Check pwd before every unzip.

    cat > ~/cdb19.env <<'EOF'
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1
    export ORACLE_SID=CDB19
    export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:/usr/sbin:/usr/bin:/bin
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    EOF
    . ~/cdb19.env
    cd $ORACLE_HOME && pwd

    Software-only install. CV_ASSUME_DISTID=OL7 gets the base 19.3 installer past its OS version check on OL8:

    unzip -q /u01/stage/LINUX.X64_193000_db_home.zip
    export CV_ASSUME_DISTID=OL7
    ./runInstaller -silent -ignorePrereqFailure -waitforcompletion \
    oracle.install.option=INSTALL_DB_SWONLY \
    UNIX_GROUP_NAME=oinstall \
    INVENTORY_LOCATION=/u01/app/oraInventory \
    ORACLE_HOME=$ORACLE_HOME \
    ORACLE_BASE=$ORACLE_BASE \
    oracle.install.db.InstallEdition=EE \
    oracle.install.db.OSDBA_GROUP=dba \
    oracle.install.db.OSOPER_GROUP=oper \
    oracle.install.db.OSBACKUPDBA_GROUP=backupdba \
    oracle.install.db.OSDGDBA_GROUP=dgdba \
    oracle.install.db.OSKMDBA_GROUP=kmdba \
    oracle.install.db.OSRACDBA_GROUP=racdba \
    DECLINE_SECURITY_UPDATES=true
    [WARNING] [INS-13014] Target environment does not meet some optional requirements.
    ...
    Successfully Setup Software with warning(s).

    No linking errors on OL8. After orainstRoot.sh and root.sh, I created the listener and the database. ARCHIVELOG mode and a recovery area are needed because AutoUpgrade creates a guaranteed restore point before it starts.

    netca -silent -responsefile $ORACLE_HOME/assistants/netca/netca.rsp
    dbca -silent -createDatabase -templateName General_Purpose.dbc \
    -gdbName CDB19 -sid CDB19 -createAsContainerDatabase true \
    -numberOfPDBs 1 -pdbName PDB19 \
    -sysPassword <password> -systemPassword <password> -pdbAdminPassword <password> \
    -datafileDestination /u01/app/oracle/oradata -characterSet AL32UTF8 \
    -totalMemory 3072 -enableArchive true \
    -recoveryAreaDestination /u01/app/oracle/fra -recoveryAreaSize 20480 \
    -emConfiguration NONE

    Before the upgrade I saved the PDB open state and created a small test table to compare after the upgrade:

    SET LINESIZE 150 PAGESIZE 100
    COL name FORMAT a10
    COL log_mode FORMAT a12
    COL open_mode FORMAT a12
    COL version FORMAT a12
    SELECT d.name, d.log_mode, d.open_mode, i.version FROM v$database d, v$instance i;
    ALTER PLUGGABLE DATABASE ALL SAVE STATE;
    ALTER SESSION SET CONTAINER=PDB19;
    CREATE USER lab IDENTIFIED BY <password> QUOTA UNLIMITED ON users;
    GRANT CREATE SESSION, CREATE TABLE TO lab;
    CREATE TABLE lab.upg_test AS SELECT * FROM dba_objects;
    SELECT COUNT(*) FROM lab.upg_test;
    NAME LOG_MODE OPEN_MODE VERSION
    ---------- ------------ ------------ ------------
    CDB19 ARCHIVELOG READ WRITE 19.0.0.0.0
    COUNT(*)
    ----------
    72356

    Saving the PDB state matters here. The post that inspired this run hit “PDB is MOUNTED and will not be processed” in AutoUpgrade. With the state saved, both PDBs were picked up.

    I took a VirtualBox snapshot at this point, so the upgrade could be repeated from a clean 19c source.

    Part 3: Installing the 26ai home

    # as root
    dnf -y install oracle-ai-database-preinstall-26ai
    # as oracle
    . ~/26ai.env
    cd $ORACLE_HOME && pwd
    unzip -oq /u01/stage/LINUX.X64_2326100_db_home.zip
    ./runInstaller -ignorePrereq -waitforcompletion -silent \
    -responseFile $ORACLE_HOME/install/response/db_install.rsp \
    installOption=INSTALL_DB_SWONLY \
    UNIX_GROUP_NAME=oinstall \
    INVENTORY_LOCATION=/u01/app/oraInventory \
    ORACLE_HOME=$ORACLE_HOME \
    ORACLE_BASE=$ORACLE_BASE \
    installEdition=EE \
    OSDBA=dba OSOPER=oper OSBACKUPDBA=backupdba \
    OSDGDBA=dgdba OSKMDBA=kmdba OSRACDBA=racdba

    Note that the 26ai installer uses shorter parameter names than 19c: installOption instead of oracle.install.option, installEdition, and OSDBA rather than oracle.install.db.OSDBA_GROUP. On OL8 the preinstall package also pulled in compat-openssl10. The install finished with the same optional-prerequisite warning (INS-13014), followed by root.sh.

    Part 4: AutoUpgrade analyze

    The VM had internet access, so I downloaded the latest jar instead of using the copy bundled in the target home, and ran it with the JDK from the 26ai home:

    mkdir -p /u01/app/oracle/autoupgrade/logs
    cd /u01/app/oracle/autoupgrade
    curl -sSL -o autoupgrade.jar https://download.oracle.com/otn-pub/otn_software/autoupgrade.jar
    JAVA=/u01/app/oracle/product/26ai/dbhome_1/jdk/bin/java
    $JAVA -jar autoupgrade.jar -version
    build.version 26.7.2.261111
    build.date 2026/11/11 04:27:02 +0000
    build.supported_target_versions 12.2,18,19,21,23,26
    build.type production

    Configuration file (autoupg.cfg):

    global.global_log_dir=/u01/app/oracle/autoupgrade/logs
    upg1.sid=CDB19
    upg1.source_home=/u01/app/oracle/product/19.0.0/dbhome_1
    upg1.target_home=/u01/app/oracle/product/26ai/dbhome_1
    upg1.restoration=YES
    upg1.timezone_upg=YES
    upg1.log_dir=/u01/app/oracle/autoupgrade/logs/CDB19
    • restoration=YES: AutoUpgrade creates a guaranteed restore point before the upgrade.
    • timezone_upg=YES: the time zone file is upgraded as part of the post-upgrade fixups.
    $JAVA -jar autoupgrade.jar -config autoupg.cfg -mode analyze -noconsole
    1 CDB(s) plus 2 PDB(s) will be analyzed
    Job 100 database cdb19
    ...
    Job 100 completed
    ------------------- Final Summary --------------------
    Number of databases [ 1 ]
    Jobs finished [1]
    Jobs failed [0]
    Checks Report
    +------------+------+-----------+---------+-------+-------+
    | Job Number | INFO | RECOMMEND | WARNING | ERROR | Total |
    +------------+------+-----------+---------+-------+-------+
    | 100 | 26 | 16 | 12 | 0 | 54 |
    +------------+------+-----------+---------+-------+-------+

    Zero errors. The 12 warnings were four distinct checks, each reported for CDB$ROOT, PDB$SEED and PDB19:

    WarningStageWhat I did
    Convert traditional audit to unified audit policiesPRECHECKSNothing in the lab. On a client system this needs planning before the upgrade, because traditional auditing does not carry on by default.
    Run outside the automatic maintenance windowsPRECHECKSNothing. The run started in the afternoon and finished well before the default window.
    Upgrade the time zone file (DBMS_DST)POSTCHECKSAUTOFIXUP, covered by timezone_upg=YES
    Recompile objects with timestamp mismatchPOSTCHECKSAUTOFIXUP

    Part 5: Deploy

    I ran deploy under nohup so that a dropped PuTTY session would not kill the job:

    nohup $JAVA -jar autoupgrade.jar -config autoupg.cfg -mode deploy -noconsole > deploy.out 2>&1 &
    tail -8 /u01/app/oracle/autoupgrade/deploy.out

    Progress on this VM:

    TimeStageMessage
    16:49PRECHECKSJob 101 started, 1 CDB plus 2 PDBs
    ~16:52PREFIXUPSExecuting fixups (restore point already created)
    17:00DBUPGRADE0% Upgraded CDB$ROOT
    17:13DBUPGRADE41% Upgraded CDB$ROOT
    18:17POSTFIXUPSExecuting fixups (time zone upgrade, recompile)
    ~18:26POSTUPGRADECreating final SPFILE, job completed

    About 1 hour 37 minutes in total. During POSTFIXUPS the alert log repeatedly reported slow online redo log writes. On a VirtualBox disk under upgrade load that is expected, and it did not affect the result.

    Job 101 completed
    ------------------- Final Summary --------------------
    Number of databases [ 1 ]
    Jobs finished [1]
    Jobs failed [0]
    Jobs restored [0]
    Jobs pending [0]
    ---- Drop GRP at your convenience once you consider it is no longer needed ----
    Drop GRP from CDB19: drop restore point AUTOUPGRADE_9212_CDB19193000

    Part 6: Post-upgrade verification

    AutoUpgrade had already updated /etc/oratab to the 26ai home. I pointed my env file at the new home and checked the database:

    sed -i 's#product/19.0.0/dbhome_1#product/26ai/dbhome_1#' ~/cdb19.env
    . ~/cdb19.env
    grep CDB19 /etc/oratab
    CDB19:/u01/app/oracle/product/26ai/dbhome_1:N
    SET LINESIZE 160 PAGESIZE 100
    COL version_full FORMAT a15
    COL comp_id FORMAT a12
    COL status FORMAT a10
    COL name FORMAT a40
    SELECT version_full FROM v$instance;
    SHOW PDBS
    SELECT comp_id, NVL(version_full,'-') version_full, status FROM dba_registry ORDER BY 1;
    SELECT version FROM v$timezone_file;
    SELECT name FROM v$restore_point;
    SHOW PARAMETER compatible
    ALTER SESSION SET CONTAINER=PDB19;
    SELECT COUNT(*) FROM lab.upg_test;
    SELECT COUNT(*) invalid_objs FROM dba_objects WHERE status='INVALID';
    VERSION_FULL
    ---------------
    23.26.1.0.0
    CON_ID CON_NAME OPEN MODE RESTRICTED
    ---------- ------------------------------ ---------- ----------
    2 PDB$SEED READ ONLY NO
    3 PDB19 READ WRITE NO
    COMP_ID VERSION_FULL STATUS
    ------------ --------------- ----------
    APS 23.26.1.0.0 VALID
    CATALOG 23.26.1.0.0 VALID
    CATJAVA 23.26.1.0.0 VALID
    CATPROC 23.26.1.0.0 VALID
    CONTEXT 23.26.1.0.0 VALID
    DV 23.26.1.0.0 VALID
    JAVAVM 23.26.1.0.0 VALID
    OLS 23.26.1.0.0 VALID
    OWM 23.26.1.0.0 VALID
    RAC 23.26.1.0.0 OPTION OFF
    SDO 23.26.1.0.0 VALID
    XDB 23.26.1.0.0 VALID
    XML 23.26.1.0.0 VALID
    XOQ 23.26.1.0.0 VALID
    VERSION
    ----------
    43
    NAME
    ----------------------------------------
    AUTOUPGRADE_9212_CDB19193000
    NAME TYPE VALUE
    ------------------------------------ ----------- ------------------------------
    compatible string 19.0.0
    COUNT(*)
    ----------
    72356
    INVALID_OBJS
    ------------
    0
    • Version 23.26.1.0.0, PDB19 open READ WRITE.
    • All components VALID. RAC shows OPTION OFF, which is expected on a single instance.
    • Time zone file upgraded to version 43.
    • The test table still has 72,356 rows, and PDB19 has no invalid objects.
    • COMPATIBLE is still 19.0.0, so the restore point could still be used to go back.

    Part 7: Listener, restore point and COMPATIBLE

    The listener was still running from the 19c home. I stopped it, copied the network files to the 26ai home, updated the paths and started it from the new home:

    /u01/app/oracle/product/19.0.0/dbhome_1/bin/lsnrctl stop
    cp /u01/app/oracle/product/19.0.0/dbhome_1/network/admin/{listener.ora,sqlnet.ora,tnsnames.ora} $ORACLE_HOME/network/admin/
    sed -i 's#product/19.0.0/dbhome_1#product/26ai/dbhome_1#g' $ORACLE_HOME/network/admin/*.ora
    lsnrctl start

    The listener showed “supports no services” at first. local_listener was set to the alias LISTENER_CDB19, which dbca had written into tnsnames.ora, so copying that file to the new home mattered. After ALTER SYSTEM REGISTER the services appeared:

    Service "CDB19" has 1 instance(s).
    Instance "CDB19", status READY, has 1 handler(s) for this service...
    Service "CDB19XDB" has 1 instance(s).
    Instance "CDB19", status READY, has 1 handler(s) for this service...
    Service "pdb19" has 1 instance(s).
    Instance "CDB19", status READY, has 1 handler(s) for this service...

    With the checks done, I dropped the restore point so it would stop holding flashback logs in the recovery area:

    DROP RESTORE POINT AUTOUPGRADE_9212_CDB19193000;
    SELECT COUNT(*) FROM v$restore_point;

    I left COMPATIBLE at 19.0.0. Raising it enables the new release’s features, but it cannot be lowered again, which rules out a downgrade. In a real project that decision comes after application testing. In the lab I took a VirtualBox snapshot first, so I can raise it later and still roll back the VM.

    Lessons learned

    • Check the certification of the exact release on the exact OS. “19c on OL9” and “base 19.3 on OL9” are not the same thing.
    • When runInstaller reports a relink FATAL, read $ORACLE_HOME/install/make.log. The installer log only repeats the generic message.
    • After a failed relink, start from a fresh unzip. Retrying in a damaged home produces new errors that have nothing to do with the original cause.
    • Put a time limit on workarounds. After a few rounds of stub fixes, moving to a certified platform was faster and gave a cleaner result.
    • Save the PDB open state before AutoUpgrade so every PDB is processed.
    • Run deploy under nohup (or screen/tmux) and follow deploy.out and status.log.
    • Moving the listener is not part of the AutoUpgrade job. Copy tnsnames.ora too if local_listener uses an alias.
    • Keep the guaranteed restore point until verification is done, and treat COMPATIBLE as a separate, later decision.

    ما شاء الله, a clean result in the end: 0 errors in analyze, 0 failed jobs in deploy, and the test data intact on 26ai. Next in this lab is Oracle APEX on the 26ai database.

  • Oracle EBS R12.2 DualFS RapidClone: FMW Prerequisite Failures, RPMDB Corruption and Stale Inventory

    Alhamdulillah, this post documents the issues hit during an EBS R12.2 QA application-tier refresh and how each was isolated. Server names, paths and identifiers are generic examples.

    Environment (generic)

    ComponentExample
    App serverqa-app-server01
    DB serverqa-db-server01
    EBS environmentQA_EBS
    Application base/u01/apps
    Pairs file/u01/cloning/pairs/qa_apps_pairs.txt
    Central inventory/opt/oraInventory

    Background

    A DualFS clone recreates both fs1 and fs2. Per the cloning procedure used here, the old fs2, inst and FMW_Home were moved aside and removed first:

    cd /u01/apps/
    mv fs2 fs2_old
    rm -rf fs2_old &
    
    cd fs1
    mv inst inst_old
    mv FMW_Home FMW_Home_old
    rm -rf inst_old FMW_Home_old &

    Cleanup steps should follow your own environment’s cloning document.

    Symptom

    adcfgclone.pl failed at the FMW prerequisite stage:

    ERROR: Failed to execute FMW pre-requisite check

    Re-running would not have helped. The prerequisite check reads OS state, so that is where the investigation started.

    cat /etc/os-release
    rpm --verifydb
    rpm -qa | grep -E 'compat-libcap1|compat-libstdc'

    Issue 1: RPM database corruption

    On one app server, rpm --verifydb returned Berkeley DB errors:

    BDB0682 Page ... bad prev_pgno
    BDB0683 Page ... overflow item incomplete
    Packages: BDB0090 DB_VERIFY_BAD

    Package queries also showed rpmdbNextIterator: skipping h# ... and region trailer: BAD.

    RPMDB corruption was identified and the package state was subsequently validated. If the RPM database is unhealthy, package-based prerequisite results can be incomplete or misleading. Running rpm --verifydb early is a useful way to identify this condition before spending time troubleshooting the Oracle prerequisite scripts.

    Issue 2: Missing compatibility packages

    Two packages were missing: compat-libcap1 and compat-libstdc++-33. After confirming repository availability, both were installed with dnf install, then the RPM database was verified again.

    A similar QA server passed the check without this problem, so package state can differ between servers that look identical.

    Issue 3: refhost.xml OL7 block on an OL8 target

    The target was Oracle Linux 8, but the first OS block in refhost.xml was defined for Oracle Linux 7:

    /u01/apps/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/prereq/linux64/refhost.xml
    <VERSION VALUE="7"/>

    Only that block was changed to VALUE="8". A global sed replacement is risky because the file contains multiple OS definitions. Back up the file, identify the applicable block, change only that, and validate the XML.

    Issue 4: Stale Oracle Central Inventory

    Removing FMW_Home from disk does not remove it from the central inventory. Entries such as these were still registered after the directories were gone:

    /u01/apps/fs1/FMW_Home/oracle_common
    /u01/apps/fs1/FMW_Home/webtier
    /u01/apps/fs1/FMW_Home/Oracle_EBS-app1

    Documented cloning step. The cloning document’s inventory cleanup applies to the target database server (check /etc/oraInst.loc, remove the DB home entry from ContentsXML/inventory.xml). It does not cover resetting the application-server inventory, so the app-server reset described here is not part of the standard cloning steps.

    Before any inventory change: confirm the active inventory via /etc/oraInst.loc, preserve a copy, then apply the approved procedure. The existing inventory was kept as a backup. Note that the first mv below is conditional: run it only if /opt/oraInventory_old already exists.

    # Only if /opt/oraInventory_old already exists:
    mv /opt/oraInventory_old /opt/oraInventory_old_backup
    
    mv /opt/oraInventory /opt/oraInventory_old
    mkdir /opt/oraInventory
    chown oracle:oinstall /opt/oraInventory

    Issue 5: EXECUTE_FMW_SYS_PREREQS

    The cloning procedure sets this variable before the DualFS run:

    export EXECUTE_FMW_SYS_PREREQS=false
    echo $EXECUTE_FMW_SYS_PREREQS

    This skips the FMW OS prerequisite execution. It was set here only after the failures above had been investigated, and only because the procedure specifies it. It is not a general substitute for fixing prerequisite failures.

    Issue 6: SSH disconnect during a multi-hour clone

    RapidClone can run for hours, and the procedure calls for a screen session (or VDI). During this exercise the SSH session dropped mid-run.

    screen -S rapidclone
    cd /u01/apps/fs1/EBSapps/comn/clone/bin
    export EXECUTE_FMW_SYS_PREREQS=false
    perl adcfgclone.pl component=appsTier \
    pairsfile=/u01/cloning/pairs/qa_apps_pairs.txt \
    dualfs=yes

    After the disconnect, check before restarting anything:

    screen -ls
    screen -r <session>

    If the original process is still running, a second adcfgclone.pl would only add complications.

    Result

    After the identified OS, package, prerequisite and inventory issues were addressed, the DualFS clone completed and created both fs1 and fs2.

    ما شاء الله

    The same approach worked on the second QA environment. This establishes that the DualFS RapidClone completed, not that the entire QA refresh is finished: post-clone configuration is separate, and the procedure says not to start services at the end of the clone until the required post-clone steps are completed.

    Summary

    FindingLayerAction
    FMW prerequisite failureOS / packagesInvestigated underlying checks
    RPMDB corruptionOSIdentified the corruption and validated the package state after remediation
    Missing compat RPMsOSInstalled required packages
    OL7 block on OL8 targetPrerequisite configCorrected the applicable block only
    Stale FMW homes in inventoryOracle InventoryBacked up the existing inventory, then applied the approved remediation
    Long-running cloneSessionRan inside screen

    Suggested pre-clone checklist

    cat /etc/os-release
    rpm --verifydb
    rpm -qa | grep -E 'compat-libcap1|compat-libstdc'
    cat /etc/oraInst.loc
    ls -ld /u01/apps/fs1 /u01/apps/fs2
    ls -l /u01/apps/fs1/EBSapps/comn/clone/bin/adcfgclone.pl

    Post-clone

    RapidClone success is not the end of the refresh. The cloning procedure continues with custom environment configuration, AutoConfig, WebLogic configuration, Concurrent Manager/MWA node configuration, shared filesystem setup and further AutoConfig runs, followed by application validation.

    Takeaway

    RapidClone is often where infrastructure problems become visible, not where they start. When it fails, check the layers underneath before rerunning:

    OS → RPM database → packages → prerequisite config → Oracle Inventory → filesystem → RapidClone → post-clone configuration

    Examples use generic names. No real server names, IP addresses, domains, company names or screenshots are included.