AWS Logo
Menu
Create External Tables using Amazon EFS with Amazon RDS for Oracle

Create External Tables using Amazon EFS with Amazon RDS for Oracle

Amazon RDS for Oracle has the ability to integrate with Amazon Elastic File System (Amazon EFS). In this post I share guidance on how to create Oracle external tables using EFS file system.

Yossi Lagstein
Amazon Employee
Published Oct 26, 2024
Amazon RDS for Oracle has the ability to integrate with Amazon Elastic File System (Amazon EFS). Integrate Amazon RDS for Oracle with Amazon EFS blog post includes detailed explanation on how to perform the integration. In addition it covers multiple use cases of having Amazon RDS for Oracle utilize Amazon EFS . In this post I share another use case, using Amazon EFS as file system for Oracle external tables.

Create External Tables using Amazon EFS

Oracle external tables enables you to access data stored in an external file. You can query the data as it if was stored in a table in the database. The following are list of steps to create an external table with an external file located in Amazon EFS.
NOTE: As pre-requisite you should follow the guidance in the blog post to create an Amazon EFS file system, integrate it with Amazon RDS for Oracle and have an Amazon EC2 server with Amazon EFS file system mounted as /efsdir
Amazon RDS for Oracle with Amazon EFS
Amazon RDS for Oracle with Amazon EFS
1/ Login to the Amazon EC2 server where you have mounted the Amazon EFS volume. Create a directory on the Amazon EFS file system and change its permissions
2/ Create a text file called basketball_teams.txt at /efsdir/external and add the some rows using the following command.
3/ Connect to the database and create an Oracle Directory.
4/ Create and external table, make sure do disable Direct NFS , as Amazon EFS does not support direct NFS
5/ You can now query the table
 

Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.

Comments