Can we decrease the datafile size in 8.1.7.4
Hello All-
I have created a sample db with table space with datafile size of 2 GB. I may be needing hundreds of mb only.It is eating up the space on unix box server.
Is there any way I can decrease the size of the datafile attached to the tablespace in Oracle 8.1.7.4.
Any help would be appreciated.
Thanks
Vidya R.
Yes you surelly can
SQL> ALTER DATABASE DATAFILE '/u02/oracle/rbdb1/stuff01.dbf'
RESIZE 100M;
Cheers !!
Jagjit
Similar Messages
-
How can U decrease the Log Size in MS-SQL server?
Hello friends,
I am in Big Trouble. I have a Problem.we are Using MS-SQL server 8.00.924. The Database Log size is almost Full.But BackUps are not Done successfully ,,How to Shink the Log file,, Any body pls help me I will give more Points.
Regards,
BalaramHi Balaram,
Please see the link and scripts which is given hereunder.
http://support.microsoft.com/kb/873235
You can check this method also.
Method 1 Delete the Log (LDF) File
Although this method is simple, it is not supported by Microsoft®. Additionally, it may not work for all systems. Follow these steps to try the simple method on your system.
Ensure that no users are logged into the database.
Open Query Analyzer or another program to execute SQL scripts. Ensure that dsdbase is not selected in the drop-down DB list.
Open and run the script DETACH.sql. This script detaches the DataLyzer® database from the SQL server database.
Make a backup copy of the DSdbase_Data.MDF and DSdbase_Log files.
Rename the DSdbase_log file to another name, for instance backup_DSdbase_log.
Open and run the script ATTACHMDF.sql. This script re-attaches the DataLyzer® database to the SQL database without attaching the log file. NOTE: If your database is not stored in the location c:mssql7data change the SQL script to reflect the location of your DSdbase file.
If the script runs successfully, a new DSdbase_Log file will automatically be created to the original size specified when creating the database. It is suggested that users keep the backup copies made of their database and log files for several days to ensure an available backup if anything happens to the new log file.
If the script does not run successfully, method 1 will not work for your current DataLyzer® Spectrum database. This is because your databases structure is dependent on the logfile. In this case, re-name the original log file back to DSdbase_log. Run the script ATTACH.sql and again change the file location to the location of your DataLyzer® database, if necessary. When the database is successfully re-attached, try using method 2 to shrink the log file.
Method 2 Truncate and Shrink the Log (LDF) File
Although this method of shrinking the log file is more complicated, it is supported by Microsoft®, and it will work for almost all systems. Follow these steps:
Ensure no users are logged into the database.
Open Query Analyzer or another program to execute SQL scripts. Ensure that dsdbase is not selected in the drop-down DB list.
If you have already tried method 1, or if you have a current backup of you database and log file, skip to step 7
Open and run the script DETACH.sql. This script detaches the DataLyzer® database from the SQL server database.
Make a backup copy of the DSdbase_Data.MDF and DSdbase_Log files.
Open and run the script ATTACHMDF.sql. This script re-attaches the DataLyzer® database to the SQL database. NOTE: If your database is not stored in the location c:mssql7data, change the SQL script to reflect the location of your DSdbase file.
Select dsdbase from the drop down DB list in the program you are using to execute the SQL scripts.
8. Run VIEW2LDF.sql. Below is an excerpt similar to what will be displayed on your screen: FileId FileSize StartOffset FSeqNo Status Parity CreateTime
2 1245184 819 1292 0 64 1999-12-15 10:25:13.597
2 1245184 1253376 1225 0 128 1999-11-19 09:12:57.743
2 1245184 2498560 1224 0 128 1999-11-19 09:12:23.82
2 1499136 3743744 1318 2 64 1999-12-15 10:25:36.880
Locate the 2 in the status column. The location of the 2 determines where the active portion of the log is.
If the 2 is in the bottom half of the log, open and run the SQL script MOVE2LOOP.sql. This script is an infinite loop used to move the active portion of the log.
Re-Run the VIEW2LDF.sql script to make sure that the 2 is now located in the first half of the script.
Run the script SHRINKLOG.sql to reduce the size of the database.
Run the script VIEW2LDF.sql to view the new status of the log file. You should notice that the number of lines is significantly smaller than it originally was.
If you wish to further reduce the size of the database, repeat steps 8 through 13.
Text Context of SQL Scripts
ATTACHMDF.sql
sp_attach_db @dbname=N'dsdbase', @filename1=N'c:mssql7datadsdbase_data.mdf'
ATTACH.sql
sp_attach_db @dbname=N'dsdbase', @filename1=N'c:mssql7datadsdbase_data.mdf',
@filename2=N'c:mssql7datadsdbase_log.ldf'
Detach.sql
sp_detach_db dsdbase
MOVE2LOOP.sql
USE DSDBASE
GO
CREATE TABLE VIRTUAL_LOG_FILE_WRAPPER (CHAR1 CHAR(4000))
GO
DECLARE @I INT
SELECT @I = 0
WHILE (1=1)
BEGIN
WHILE (@I < 100)
BEGIN
INSERT VIRTUAL_LOG_FILE_WRAPPER VALUES ('A')
SELECT @I = @I + 1
END
TRUNCATE TABLE VIRTUAL_LOG_FILE_WRAPPER
BACKUP LOG DSDBASE WITH TRUNCATE_ONLY
END
SHRINKLOG.sql
DBCC SHRINKFILE (DSDBASE_LOG, TRUNCATEONLY)
BACKUP LOG DSDBASE WITH TRUNCATE_ONLY
VIEW2LDF.sql
DBCC LOGINFO(DSDBASE)
Regards,
Anil -
Can we decrease the size of existing datafile?
Hi,
can we decrease the size of existing datafile?
Thanks,It is a very nice script.
But it does not deal with something that appears to be being 'pushed' by some contributors (OK, one, really) to this forum as a suitable 'fix' for some performance problems: using multiple block sizes in one database. It's not surprising the script doesn't deal with this, though, because Tom Kyte has never particularly approved of using multiple blocksizes like that.
Being specific, the script at Ask Tom queries for the setting of db_block_size parameter and uses that to work out what a datafile can be shrunk to. If you have datafiles using non-standard block sizes, however, then that script will not work correctly for them.
It's always potentially dangerous making use of 5-year old scripts found on the internet, even somewhere as good as Ask Tom.
It's also a good demonstration as to why, for at least one reason, it's potentially dangerous following Mr. Burleson's advice on multiple block sizes. -
After the update, the next screen showed all the letters in smaller font, with fewer pixels. All the screens are like that now and I found nothing in the Firefox help contents. This is a problem because I have vision difficulty. So, how can I increase the font size to what it was before? My screen is about 20 inches wide.
Also, any chance I can change all the font to Arial instead of Times New Roman?Thanks -- that does help!
-
How to decrease the column size in a tabular report
Hi ,
How can i reduce the column size in a tabular report in oracle apex.
my report is having 90 coulmns and i want that should come in once sceen so i want to decrease the size of columns as well as the font size of values + column_name..
any suggestion ?
Thanks
NitinHello,
Oracle APEX OTN Forum is here : Oracle Application Express (APEX)
Regards -
How can I change the INTERFACE SIZE in PHOTOSHOP CS6?
Hi! I was just wondering how can I decrease the sizes of the interface in Photoshop? (e.g. the tool bar). My screen resolution is 1366 x 768, and most of the tools in Photoshop is occupying a bigger space in my screen. I feel that I can paint better if they are smaller. Do you have any idea how can I decrease the size of this interface?
I would collapse and expand the toolbar windows by using the double arrow icon?
Doing this will almost give you your full screen?
Or you can hit 'Tab' and it hides your tools when you don't need them? -
Ways to decrease the folio size
hi there,
just designing the second issue of a monthly i-pad magazine, folio size = 425Mb and looking for ways to reduce it to arround 350Mb.
What I've already done
- compressed al video to mp4 - 720p with Adobe Media Encoder (using the 720p-25frames ipad setting found there)
- folio + all articles and as much as possible of the interactive elements are set to pdf
But all images (a lot) I'm using are imported as large resolution PSD files.
Someone about whether I can reduce the file size by scaling them down and saving them as jpg ? I thought InDesign did this for me but maybe I'm wrong.
All other suggestions about reducing folio size are more then welcome.
Thanx in advance,
Herman BelgyThere is a limit to how much you can decrease the file size. Static elements in PDF folios are rasterized at 108ppi (half way between 72 and 144). The videos are really your best bet but at a certain point you'll kill the quality.
You could stream them but that will require the user to be on line.
Bob -
How can I decrease my font size in mail? I have it set to small and yet it is enormous, letters running into one another. I have rebooted and more. Something is over riding my setting. Any suggestions?
You haven't mentioned which mail it is,
If it is G-mail go to settings --> general tab--> default text style , you can change your font size & then save at the bottom of the page -
Decreasing the font size in a Classical report
Hi all,
i have to decrease the font size in the output of a classical report while printing. I have tried the following snippet:
NEW-PAGE PRINT ON LINE-SIZE zeichen_pro_zeile
LINE-COUNT zeilen_pro_seite
NEW LIST IDENTIFICATION rl04i-prnew
KEEP IN SPOOL rl04i-prrel
IMMEDIATELY rl04i-primm
LIST NAME rl04i-plist
DESTINATION drucker
NO DIALOG.
*PRINT-CONTROL LPI 6.
PRINT-CONTROL LPI 10.
but this is not working fine.
Can anybody suggest something about it?
Regards,
DivyaHi,
It is not possible to decrease the font-size in a classical report.
We don't have any option to format the output in the reports..
As per my knowledge, it is not possible to decrease or increase the font size in a classical report..
one thing u can do is to do some setings at the printer side...
Cheers,
Simha. -
How do I create a digital frame w/o decreasing the photo size?
I want to frame my photos & upload them to my website. When I use the frame tool, it decreases the photo size & has a large background, which I don't want.
Perhaps the better title for this would've been "How do I create a digital frame w/o INCREASING CANVAS SIZE?"
I have this same problem on Elements 10 and I can't find an answer. It's not because hawaiiski is using Themes. When you apply a frame to the photo through Content > Frames, it decreases the image size on screen and increases canvas size around the framed photo. It's the checkered transparent canvas. But I just want the photo and the frame as a flattened rectangular image, as a jpg, to post in an online album. Just a simple 10 point black frame. I've searched a lot but can't find an easy and/or accurate way to do this. Is there a way to auto-crop the canvas size to the edges of the framed photo? I do the Marquee > Image > Crop that snaps to the edges, but it always leaves a little canvas on one or more sides and I have to crop again. Some people say to apply frames by increasing canvas size, but the design options are limited to solid colors, and it takes longer to do.
Why does Elements have to add the canvas around a framed photo and why isn't there an easier way to crop to the edges? I do dozens of photos at a time and can't be cropping every photos twice just for frames. -
How can I change the window size of iTunes on my iMac? Used to be easy before installing Mavericks.
If you want to make the itunes tab so you can see the dock
you press the
esc
button if your in full screen mode
if you want to get into full screen mode you press the arrows facing away from eachother in the top right corner
there is another way to get to the normal tab if your in full screen
make the curser go right up to the top of the screen and it will show the apple tab
it will have two arrows facing together highlited in blue
if u tap that it will take you to the normal tab -
Can I tell the file size of my .folio without an iPad?
I've been searching everywhere for this answer, but alas, it has escaped me. How can I tell the file size of my .folio? I'm sure this is really simple. I'd like to be able to see the final file size of my folio without an iPad.
I think if you log into acrobat.com, you should see your folio there, too.
You see the article sizes and may be able to add them together.
Be catuous, editing your folio through acrobat.com might break it.
—Johannes
(mobil gesendet)
Am 13.12.2011 20:33 schrieb "Sheenz1701" <[email protected]>:
Can I tell the file size of my .folio without an iPad? created by
Sheenz1701 <http://forums.adobe.com/people/Sheenz1701> in *Digital
Publishing Suite* - View the full discussion<http://forums.adobe.com/message/4082274#4082274> -
How can I change the page size of a pdf so i can view it on my iphone more clearly?
How can I change the page size of a pdf so i can view it on my iphone more clearly?
I think there may be more to this question than you say.
If your PDF page is say, 8 x 12 inches, and you found a way to scale it to 25%, changing it to 2 x 3 inch, shrinking everything on the page to quarter size - wouldn't it look exactly the same on the iPhone? It's just going to be the same as zooming.
Or were you hoping for something more like in Word, where changing the page size keeps everything the same size and spreads it over more pages? That isn't something you can do. -
How can I adjust the font size of my printouts?
I have an HP Officejet 4500 all-in-one printer and a new HP pavilion Slimline computer. Since I changed to this computer, my printouts have very small font size making them hard to read. How can I adjust the font size of the printout? Is it a computer or printer function? I appreciate the help.
I, too, am frustrated. This seems like something that would easily be handled within the application software. However, none of the fixes I've been offered have been very helpful. My cousin sugested using Control C and Control V to move the text to WORD. Once in WORD, you can manipulate the text on a WORD page...sometimes. I've had good and bad luck with this method. It still requires working in two different programs to get it legible. Does anyone else have a 4500 All-in -one with this problem, or is it only me? Thanks, [Edited for Personal Information]
-
How can I increase the font size of my email when I print it out, it is printing tiny
How can I increase the font size when I print out emails, it is printing tiny size?
In the Print dialog window, click the small reveal-button to the right of the printer's name -
The window will expand to show additional settings (similar to 'old' Page Setup) -
Be sure "Scale:" is set to 100% and the 'Keep apparent font size' item is checked.
Maybe you are looking for
-
SWF to play mp3 files located on the server
Hello, Does anyone know if it is possible to create an SWF file that can play mp3 files directly from the server, without the need for a streaming media server or external JS. And also for the application to read the current directory its located in
-
Please help ! I got a message a few hours ago that there is an update available to my Z10 STL100-1, running on Orange. I never did a leaked update always waited to get the notification for the official ones. I have always had my media card (micros sd
-
Remove more than one columns simultaneously
In our reports we want to give the user the option to remove a list of selected columns simultaneously. First the user should be able to select the list of columns which needs to be removed. Then the selected columns should be removed on the next cli
-
ICloud email has been down since 6:10pm
No iCloud email since 6:10pm September 10th. If I set up an auto response to use my alternate email or forward mac mail to another address will this help until they work it out? Definitely unhappy I'm paying Apple for premium experience and getting
-
Auto increment VALUE attribute extension
I was wondering if there was such an extension or a built in tool for Dreamweaver that searches for all <INPUT> tags of TYPE 'checkbox' and sets a unique value for the VALUE attribute. Example: I have 3 checkboxes as follows: <INPUT ID="chkOption1" T