HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Script to generate files per mount point.
Operating System - HP-UX
1831210
Members
3038
Online
110021
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 07:51 AM
02-16-2005 07:51 AM
Script to generate files per mount point.
I need a script to generate a report showing names of files per mount point.
We have two PeopleSoft databases on the server. Those two Oracle databases are comprised of more than 300 data files spread across 45 different mount points, should be 250+ GB total in size.
I am trying to create a shell script which will generate a report showing data files on each mount point. This will be really useful during our re-organization or relocation.
Thanks,
Gulam
We have two PeopleSoft databases on the server. Those two Oracle databases are comprised of more than 300 data files spread across 45 different mount points, should be 250+ GB total in size.
I am trying to create a shell script which will generate a report showing data files on each mount point. This will be really useful during our re-organization or relocation.
Thanks,
Gulam
Everyday Learning.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 08:00 AM
02-16-2005 08:00 AM
Re: Script to generate files per mount point.
For all those mount points
find /mount_point -type f -name "*.dbf" -exec ll {} \; >> /tmp/mount_point.lst
run it when system is not at it's peak usage.
find /mount_point -type f -name "*.dbf" -exec ll {} \; >> /tmp/mount_point.lst
run it when system is not at it's peak usage.
There is no substitute to HARDWORK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 08:01 AM
02-16-2005 08:01 AM
Re: Script to generate files per mount point.
well, I think all you need is an ls command...
ls /d*/data/PROD/*
or however you've got your data laid out...
ls /disk*/data/PROD/*
would give you all files on any disk mount point starting with the name /disk.
If you only want one mount point at a time...
ls /disk1/data/PROD/*
ls /disk2/data/PROD/*
etc...
ls /d*/data/PROD/*
or however you've got your data laid out...
ls /disk*/data/PROD/*
would give you all files on any disk mount point starting with the name /disk.
If you only want one mount point at a time...
ls /disk1/data/PROD/*
ls /disk2/data/PROD/*
etc...
We are the people our parents warned us about --Jimmy Buffett
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 08:10 AM
02-16-2005 08:10 AM
Re: Script to generate files per mount point.
If you prefer to get your data from Oracle...
(from sqlplus)
select file_name from dba_data_files
order by file_name.
Or, bit more useful data...
(from sqlplus)
select file_name, tablespace_name, bytes
from dba_data_files
order by file_name;
(from sqlplus)
select file_name from dba_data_files
order by file_name.
Or, bit more useful data...
(from sqlplus)
select file_name, tablespace_name, bytes
from dba_data_files
order by file_name;
We are the people our parents warned us about --Jimmy Buffett
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP