sql - How to find the default location in which Oracle DBF files are created? -
during creation of new tablespace in oracle database, user has enter dbf file name (or she) want use. dbf file created in specific location.
the user may specify path in dbf file should created.
i need find way default location of dbf file.
i know how in ms sql using sql query:
select substring(physical_name, 1, charindex(n'master.mdf', lower(physical_name)) - 1) master.sys.master_files database_id = 1 , file_id = 1;
but have no idea how in oracle. i've tried several things:
- ran query on
all_directories
- didn't find information there - looked @
v$datafile
view - realized view , others accesible database administrators only
there several limitations:
- the oracle database may installed on machine different operating system.
- my application may connect database user not admin.
- it should done preferably sql query.
any appreciated.
db_create_file_dest
specifies default location oracle-managed datafiles (see its entry in database reference).
you can retrieve value following sql query:
select value v$parameter name = 'db_create_file_dest'
to access v$parameter
view user needs @ least select_catalog_role
role.
Comments
Post a Comment