Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to retrieve an Oracle directory path?

I created the following Oracle Directory csvDir:

create or replace directory csvDir as  'd:\oracle\oradata\external_data\downloadedFiles'; 

Now, how can I retrieve the path from this csvDir alias?

There should be some system table that stores this path.

like image 905
Jose Rui Santos Avatar asked May 25 '11 06:05

Jose Rui Santos


People also ask

What is an Oracle directory?

An Oracle directory is a database object pointing to a operating system directory on the database server machine for reading and writing files.

How do I find an Oracle database?

From the Start menu, select All Programs, then Oracle - HOMENAME, then Oracle Installation Products, then Universal Installer. In the Welcome window, click Installed Products to display the Inventory dialog box. To check the installed contents, find the Oracle Database product in the list.

What is data Pump directory?

The data pump directory is used in the backup and restore process for the Oracle database. Connect to the Oracle database as the sysdba. Copy. cd $ORACLE_HOME/bin ./sqlplus '/ as sysdba' Change the directory location of the data pump files to your desired directory.

How do I grant a directory privilege in Oracle?

After you create a directory alias, grant users and groups access rights to the files contained in that directory, using the following PL/SQL syntax: GRANT permission ON DIRECTORY alias TO {user | role | PUBLIC};


1 Answers

That would be the ALL_DIRECTORIES view:

http://download.oracle.com/docs/cd/B28359_01/server.111/b28320/statviews_1075.htm#i1576965

like image 125
a_horse_with_no_name Avatar answered Oct 17 '22 21:10

a_horse_with_no_name