- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extend raw device for Oracle
Operating System - HP-UX
1820922
Members
4624
Online
109629
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
Discussions
Discussions
Discussions
Forums
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
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
тАО11-09-2006 10:15 PM
тАО11-09-2006 10:15 PM
Extend raw device for Oracle
Hi,
My Oracle database access to raw device data. If I have a link for Oracle:
data01.raw -> /dev/vgoracle/rlvol1
And I want to extend my rlvol:
# lvextend -l XX /dev/vgoracle/lvol1
Must I stop Oracle?. Must I re-link data01.raw?. Must I perform a backup of this rlvol before extending?.
Thanks in advance.
My Oracle database access to raw device data. If I have a link for Oracle:
data01.raw -> /dev/vgoracle/rlvol1
And I want to extend my rlvol:
# lvextend -l XX /dev/vgoracle/lvol1
Must I stop Oracle?. Must I re-link data01.raw?. Must I perform a backup of this rlvol before extending?.
Thanks in advance.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2006 11:53 PM
тАО11-09-2006 11:53 PM
Re: Extend raw device for Oracle
Shalom,
1 The lvextend is enough. The soft link just makes the raw device visible to admins so they don't wonder and wipe.
2 Not need to stop oracle for the extension. For Oracle to recognize the space probably requires a reboot and preparation of the new space.
3 Always back up the database before messing with its container.
SEP
1 The lvextend is enough. The soft link just makes the raw device visible to admins so they don't wonder and wipe.
2 Not need to stop oracle for the extension. For Oracle to recognize the space probably requires a reboot and preparation of the new space.
3 Always back up the database before messing with its container.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2006 07:28 AM
тАО11-11-2006 07:28 AM
Re: Extend raw device for Oracle
Hi!
You can extend raw device without stopping Oracle.
1) lvextend -l XX /dev/vgoracle/lvol1
2) ALTER DATABASE DATAFILE '/../../data01.raw' RESIZE 1048568K;
Here 1048568K is the new size of your datafile, taken for example if new raw device size equals 1GB. In my experience, normally you have to specify datafile size to be slightly less than size of raw device:
datafile size = raw device size - 8K
In my example:
1048568K = 1048576K - 8K (= 1GB - 8K)
Anyway, you can try to resize datafile exactly up to the new size of your raw device. If the specified size doesn't fit in your raw device, you'll just get error message from Oracle. It's safe.
P.S. You should take backup before extending. Personally I recommend RMAN for any database backup.
You can extend raw device without stopping Oracle.
1) lvextend -l XX /dev/vgoracle/lvol1
2) ALTER DATABASE DATAFILE '/../../data01.raw' RESIZE 1048568K;
Here 1048568K is the new size of your datafile, taken for example if new raw device size equals 1GB. In my experience, normally you have to specify datafile size to be slightly less than size of raw device:
datafile size = raw device size - 8K
In my example:
1048568K = 1048576K - 8K (= 1GB - 8K)
Anyway, you can try to resize datafile exactly up to the new size of your raw device. If the specified size doesn't fit in your raw device, you'll just get error message from Oracle. It's safe.
P.S. You should take backup before extending. Personally I recommend RMAN for any database backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2006 01:41 AM
тАО11-14-2006 01:41 AM
Re: Extend raw device for Oracle
Your procedure is correct.
No need to stop Oracle or "reboot" as our salad head suggested...
And of course no need to relink...
And I can actually suggest, instead of extending, maybe adding a new raw device may be the safest avenue if you do not trust online DATAFILE extension/growth.. (But Hey, you trust Table Space datafile extension on Cooked -- why now RAW? -- just me...)
Enjoy.
No need to stop Oracle or "reboot" as our salad head suggested...
And of course no need to relink...
And I can actually suggest, instead of extending, maybe adding a new raw device may be the safest avenue if you do not trust online DATAFILE extension/growth.. (But Hey, you trust Table Space datafile extension on Cooked -- why now RAW? -- just me...)
Enjoy.
Hakuna Matata.
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP