Path to database files

Moderator: NorbertKrupa

Post Reply
User avatar
nnani
Master
Master
Posts: 302
Joined: Fri Apr 13, 2012 6:28 am
Contact:

Path to database files

Post by nnani » Tue May 15, 2012 9:24 am

Hello Everybody,

I cannot find the path to the Database files.
Suppose I have a Database called Stock_Info, so how do I see the the database files for this database where the data is stored?
nnani........
Long way to go

You can check out my blogs at vertica-howto

User avatar
JimKnicely
Site Admin
Site Admin
Posts: 1825
Joined: Sat Jan 21, 2012 4:58 am
Contact:

Re: Path to database files

Post by JimKnicely » Tue May 15, 2012 8:15 pm

Navin,

Check out this post:

viewtopic.php?f=5&t=106

Basically, you can query the DISK_STORAGE system table:

Example:

Code: Select all

dbadmin=> select node_name, storage_path from v_monitor.disk_storage where storage_usage = 'DATA';
      node_name       |                  storage_path
----------------------+-------------------------------------------------
 v_intersect_node0001 | /data1/data/intersect/v_intersect_node0001_data
 v_intersect_node0001 | /data2/data/intersect/v_intersect_node0001_data
(2 rows)
Jim Knicely

Image

Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.

User avatar
nnani
Master
Master
Posts: 302
Joined: Fri Apr 13, 2012 6:28 am
Contact:

Re: Path to database files

Post by nnani » Mon May 21, 2012 3:06 pm

Thank you very much.
nnani........
Long way to go

You can check out my blogs at vertica-howto

Post Reply

Return to “Vertica Database Administration”