Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Oracle · Agentic AI for Oracle AI Database Professional

Select AI Agent Concepts

Agentic AI for Oracle AI Database Professional · Lesson 14 of 20 · 1:42:15

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Agentic AI for Oracle AI Database Professional exam (1Z0-1159-26). In this lesson: agents in the database, the ReAct loop, the four layers (planning, tool use, reflection, memory), the building blocks (tools, tasks, agents, teams), and the prerequisites. Follows Ambergate Appliances, a fictional appliance maker. Includes three original practice questions.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

More than one answer

A customer asks Ambergate's returns desk to return a washer bought three weeks ago. Handling it means checking the warranty table, reading the return policy, and emailing a return label, which a single prompt cannot do. This lesson covers agents in the database, the ReAct loop, the building blocks, and the patterns and prerequisites of Select AI Agent.

Agents in the database

Select AI Agent is an agent framework inside Autonomous AI Database, in the DBMS_CLOUD_AI_AGENT package. An agent reasons about a request, calls tools to act, reflects on the results, and keeps the context across steps. It uses the language model named in an AI profile, just like Select AI. Agents can be interactive, working with a user, or autonomous, carrying out a task on their own.

The ReAct loop

Agents follow the ReAct pattern, short for reason and act. For each request, the agent thinks about what to do next, and acts by choosing a tool, with its parameters. It then reads the observation: the tool's result, a message, or an error. It repeats this loop until it can give a final answer.

Four layers

The framework works in four layers. Planning breaks a request into steps, and tool use calls the right tools. Reflection checks the results, and adjusts the plan when something goes wrong. Memory management keeps short term memory, the recent messages, and long term memory, like preferences and past strategies.

Building blocks

A tool is a capability that an agent can call: a PL/SQL function, or a built-in tool for SQL, RAG, web search, or notifications. A task is a unit of work, with a goal, an instruction, the tools it may use, and its guardrails. An agent has a role, with the tools and rules for one line of work. A team groups agents with their tasks, and runs them in a flow. And an action is the instruction that makes a tool run, with its parameters.

Patterns and prerequisites

Teams follow one of two patterns. In the sequential pattern, agents and their tasks run in a fixed order, and each task reads the results of the earlier ones. In the supervisor pattern, a supervisor agent chooses which worker runs next, one subtask at a time. A team owner defines a team, and a team consumer may be allowed to run it. Before any of this, the Select AI prerequisites must be in place, and since only ADMIN can run DBMS_CLOUD_AI_AGENT by default, ADMIN grants execute on it to other users.

Recap

Let's recap. Select AI Agent runs agents inside Autonomous AI Database, with DBMS_CLOUD_AI_AGENT and the model of an AI profile. Agents follow the ReAct loop: reason, act with a tool, read the observation, and repeat until the final answer. Four layers support them: planning, tool use, reflection, and memory management. Tools, tasks, agents, and teams are the building blocks, and an action runs a tool. And teams are sequential or supervised, with ADMIN granting execute on the package.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Ambergate’s agent calls a tool, and the tool returns an error: the warranty table has no row for that serial number. In the ReAct loop, what is that error?

    • An observation the agent reasons about
    • The final answer given to the customer
    • A new task added to the team at run time
    • A failure that always ends the agent
    Show the answer

    An observation the agent reasons about

    The error is an observation, and the agent reasons about it, for example by asking for the serial number again. “The final answer given to the customer” is wrong, since the loop goes on until the agent can answer. “A new task added to the team at run time” is wrong, because tasks are defined in advance, not created by a tool's result. And “A failure that always ends the agent” is wrong, since reflection exists precisely to adjust the plan after a failure.

  2. Ambergate wants one unit of work: check the warranty, then propose a return label, with its own instruction and the tools it may use. Which object holds it?

    • An agent, with its role and rules
    • A tool, with its function
    • A team, with its agents
    • A task, with its instruction
    Show the answer

    A task, with its instruction

    A task is a unit of work, with its instruction and the list of tools it may use. “An agent, with its role and rules” is the role that carries out tasks, not the work itself. “A tool, with its function” is one capability that a task can use. And “A team, with its agents” groups agents with their tasks, so it sits one level above.

  3. A developer’s AI profile works with Select AI, but creating a first agent fails, because DBMS_CLOUD_AI_AGENT cannot be found. What is missing?

    • SET_PROFILE, run again in the session
    • A team, created before the agent
    • EXECUTE on it, granted by ADMIN
    • The human tool, enabled on the agent
    Show the answer

    EXECUTE on it, granted by ADMIN

    Only ADMIN can run the package by default, so ADMIN must grant execute on it to the developer. “SET_PROFILE, run again in the session” sets a profile for Select AI, and the profile already works. “A team, created before the agent” is wrong, since a team is built from agents, so it comes after them. And “The human tool, enabled on the agent” changes how the agent works with people, not whether the package can be used.