Clear OAC cache automatically

Eloi Lopes
2 min readApr 29, 2020

One of the requirements that customers have is how to clear OAC cache automatically.

We can do that using the repository and an agent in OAC.

First step: Create the connection pool in repository (Link to download)

Second step: Create an Analysis in OAC classic using the Create Direct Database Query.

Step 3: Use the connection pool that we created before and the command “call SAPurgeAllCache();”

If you run the analysis you should see this:

Step 4: Last but not least, create an agent to run this analysis. You can define a daily agent to run as often as you need.

If you have any doubt, please let me know.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Eloi Lopes
Eloi Lopes

Written by Eloi Lopes

Opinions expressed are solely my own and do not express the views or opinions of my employer Oracle. https://www.linkedin.com/in/eloilopes/

Responses (1)

Write a response

Hi Eloi,
Do you know if this will work with OAC 5.9? I haven't tried it but was just curious if you know if it works or not in 5.9.
I'll definitely post back if I try it and if it works or not.