Exporting EPM Dimensional Security to Oracle Autonomous DB

Exporting EPM Dimensional Security to Oracle Autonomous DB

This is a quick-tip post that has been sitting in my drafts folder for quite some time. I had a requirement to export the Planning dimensional security to an Oracle Autonomous database for further processing in OCI so I thought I share the steps on how to achieve that with you.

The steps are quite straight-forward:

  1. Export the security in the source application (Planning, Consolidation, etc.)
  2. Create a bucket in OCI to store the latest file (one time setup)
  3. Create a virtual table in Autonomous based on the file in step 2 (one time setup)

First step, I will be using exportAppSecurity epmautomate command to export the dimensional security to a CSV file.

epmautomate exportAppSecurity secFile.csv        

Second step, create an OCI storage bucket -you only need to do this once.

No alt text provided for this image

Third step, create a virtual table in the Oracle Autonomous database to virtually read the security file from the bucket directly without having to physically load the data in the table . To do this, I will use CREATE_EXTERNAL_TABLE procedure in DBMS_CLOUD package.

The procedure is self-explanatory, you just need to provide the columns list and ensure it matches the secfile. In the code below, I have already created an authentication token to use called "OBJ_STORE_CRED" so if you may need to do that if you don't have one already. (If you are using Oracle Identity Cloud Service user then you must add oracleidentitycloudservcice/ before your username)

No alt text provided for this image

This is the PL/SQL code to create the virtual table based on the CSV file that is uploaded in the storage bucket.

No alt text provided for this image

Voila! That's it.

If I query the table SEC_FILE, I can see the dimensional security in the table as follows:

No alt text provided for this image

Finally, if you want to automate this process then you can create a simple script to do so (In a future post, I will show how you can do it using Oracle Integration Cloud).

No alt text provided for this image

I won't go through the code line by line, I have already used a similar script in a previous post so have a look at it if you get stuck here.

That is it for the day, I hope you find this post helpful.


要查看或添加评论,请登录

Omar Shubeilat的更多文章

  • Untyped variables in Groovy

    Untyped variables in Groovy

    This is another quick blog about untyped variables in Groovy and how a simple trick could make your life easier, and…

    1 条评论
  • Quick Tip - Mass delete option in EPCM

    Quick Tip - Mass delete option in EPCM

    If you've been using the newly released Enterprise Profitability and Cost Management cloud service you would have…

    1 条评论
  • Quick Tips - EPM Cloud Groovy CsvWriter Class

    Quick Tips - EPM Cloud Groovy CsvWriter Class

    I was asked by someone if it was possible to extract data from single currency EPM Cloud deployment, transform the…

    7 条评论
  • Quick Tip - Copy data across different POVs in EPCM/PCMCS

    Quick Tip - Copy data across different POVs in EPCM/PCMCS

    This is a quick post about a question I had answered on Customer Cloud connect and I thought it is a good idea to share…

  • Synchronising EDM Dimensions with Essbase Cloud

    Synchronising EDM Dimensions with Essbase Cloud

    This is a quick tip blog about integrating metadata between Enterprise Data Management (EDM) and Essbase Cloud by way…

    2 条评论
  • Serverless Backups Automation

    Serverless Backups Automation

    This is the second part of two blog series on serverless functions (also known as Functions-as-a-Service) in Oracle…

  • Groovy and Essbase Cloud APIs

    Groovy and Essbase Cloud APIs

    This post is a quick tip about using Groovy to work with Essbase Cloud Java APIs for those who prefer to code in Groovy…

    2 条评论
  • The Case for Serverless Backups using Oracle Functions

    The Case for Serverless Backups using Oracle Functions

    This post is the first post of two part series about serverless functions in Oracle Cloud Infrastructure, why they…

    1 条评论
  • Quick tip - Deploying Essbase 21c in Oracle Cloud Infrastructure

    Quick tip - Deploying Essbase 21c in Oracle Cloud Infrastructure

    This post is about some tips on how to successfully deploy Essbase 21c marketplace offering in OCI. Thanks to OCI's…

  • Fully Automated Cloud-based EPM Backups in OCI

    Fully Automated Cloud-based EPM Backups in OCI

    I've been having a bit of time on my hands lately thanks to the current covid lockdown we have in Australia and I got…

    1 条评论

社区洞察

其他会员也浏览了