![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am a newbie administrator. Is it safe to alter datafile size while database is open? |
#3
| |||
| |||
|
|
Hi, I am a newbie administrator. Is it safe to alter datafile size while database is open? I need to free up disk space of our database. I found scripts online to calculate high water mark of extents and resize the datafile accordingly. What I am not sure if I could execute sqls like "alter database datafile 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\DB05\TL30.dbf' resize 108m;" while database is online and open? If not, what would be the proper procedures to take before executing the alter sqls? Thanks, Dean |
#4
| |||
| |||
|
|
Hi, I am a newbie administrator. *Is it safe to alter datafile size while database is open? I need to free up disk space of our database. I found scripts online to calculate high water mark of extents and resize the datafile accordingly. What I am not sure if I could execute sqls like "alter database datafile 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\DB05\TL30.dbf' resize 108m;" while database is online and open? If not, what would be the proper procedures to take before executing the alter sqls? Thanks, Dean |
#5
| |||
| |||
|
|
Hi, I am a newbie administrator. *Is it safe to alter datafile size while database is open? I need to free up disk space of our database. I found scripts online to calculate high water mark of extents and resize the datafile accordingly. What I am not sure if I could execute sqls like "alter database datafile 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\DB05\TL30.dbf' resize 108m;" while database is online and open? If not, what would be the proper procedures to take before executing the alter sqls? Thanks, Dean |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
On Fri, 15 Apr 2011 09:48:45 -0700, Dean wrote: Hi, I am a newbie administrator. Is it safe to alter datafile size while database is open? And how would you do it with a closed instance? |
#8
| |||
| |||
|
|
Mladen Gogala wrote,on my timestamp of 16/04/2011 3:24 AM: On Fri, 15 Apr 2011 09:48:45 -0700, Dean wrote: Hi, I am a newbie administrator. *Is it safe to alter datafile size while database is open? And how would you do it with a closed instance? LOL! *Indeed... |
#9
| |||
| |||
|
|
On Apr 15, 9:48*am, Dean <dh6... (AT) gmail (DOT) com> wrote: Hi, I am a newbie administrator. *Is it safe to alter datafile size while database is open? I need to free up disk space of our database. I found scripts online to calculate high water mark of extents and resize the datafile accordingly. What I am not sure if I could execute sqls like "alter database datafile 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\DB05\TL30.dbf' resize 108m;" while database is online and open? If not, what would be the proper procedures to take before executing the alter sqls? Thanks, Dean Decades ago, it was a dangerous operation, but now it is solid as a rock. *Oracle will give you an error if it finds data above where you are trying to resize it to. Be wary of scripts from online, they may be out of date or wrong, examine them carefully and understand what they do. *There are multiple high water marks these days. dbconsole has a tablespace map option, it lets you look at the tablespace with colored segments, and you can find out the segment name by hovering the mouse over it. *Compare this to what the scripts tell you. *You have to look carefully to see where each datafile ends in this display. *Seehttp://www.oracle-base.com/articles/misc/ReclaimingUnusedSpace.php You should of course have a test database where you can try things. jg -- @home.com is bogus. "I'm not that crazy."http://www.signonsandiego.com/news/2011/apr/15/q-infamous-foreclosure... |
#10
| |||
| |||
|
|
Dean: # Hi, I am a newbie administrator. Hey Dean I am an old grumpy DBA. Sure you can "probably" safely grow and resize datafiles while the database is up especially with more recent versions of Oracle. # If not, what would be the proper procedures to take before executing the alter sqls? Do you have backups in place? *Do you have a tried and proven recovery strategy? While you are learning and trying things first point is to do your learning and experimenting on a test system. |
![]() |
| Thread Tools | |
| Display Modes | |
| |