Users tablespace - datafile is 24.5 GB, only 1.2Gb used - What should I Do?
Hi All,
In my database I have users tablespace and its datafile is users01.dbf. File size is 24.5 GB, but used data is 1.2 GB. I got this information from OEM, see below image:
https://picasaweb.google.com/100555146235257804098/Oracle_a1#5759303022195932370
How can I free the unused 23GB space?
Just to let you know about my background knowledge, I am an OBI report developer.
Thanks!
Just in case if this also helps.
I got a query to find the free space from
SELECT /* + RULE */ df.tablespace_name "Tablespace",
df.bytes / (1024 * 1024) "Size (MB)",
SUM(fs.bytes) / (1024 * 1024) "Free (MB)",
Nvl(Round(SUM(fs.bytes) * 100 / df.bytes),1) "% Free",
Round((df.bytes - SUM(fs.bytes)) * 100 / df.bytes) "% Used"
FROM dba_free_space fs,
(SELECT tablespace_name,SUM(bytes) bytes
FROM dba_data_files
GROUP BY tablespace_name) df
WHERE fs.tablespace_name (+) = df.tablespace_name
GROUP BY df.tablespace_name,df.bytes
UNION ALL
SELECT /* + RULE */ df.tablespace_name tspace,
fs.bytes / (1024 * 1024),
SUM(df.bytes_free) / (1024 * 1024),
Nvl(Round((SUM(fs.bytes) - df.bytes_used) * 100 / fs.bytes), 1),
Round((SUM(fs.bytes) - df.bytes_free) * 100 / fs.bytes)
FROM dba_temp_files fs,
(SELECT tablespace_name,bytes_free,bytes_used
FROM v$temp_space_header
GROUP BY tablespace_name,bytes_free,bytes_used) df
WHERE fs.tablespace_name (+) = df.tablespace_name
GROUP BY df.tablespace_name,fs.bytes,df.bytes_free,df.bytes_used
ORDER BY 4 DESC;
Results are:
TABLESPACE SIZE(MB) FREE(MB) %FREE %USED
USERS 24544.1875 23344.25 95 5
UNDOTBS1 965 878.25 91 9
EXAMPLE 100 21.6875 22 78
SYSAUX 828.8125 48.1875 6 94
SYSTEM 760 6.3125 1 99
TEMP 1315 0 0 100
thanks for your time let me know if you need any other information.
Similar Messages
-
what should i do. when i start my phone the message display me like the sim card inserted in this phone does not appear to be supported. only the compitable sim appear to be supported carrier may be used to active the iphone,
now please help me with probelm i am having an iphone5 with me but what should i do with it bcs it dosent work my carrier please help me what should i do ?Send it back, as you won't be able to activate a Sprint iPhone in India, nor will you be able to get the sim slot unlocked since you're not a Sprint customer. Your parents bought the wrong iPhone.
-
i install windows 7 on my mac pro. and participate in windows 7 to 50gb 2 disk. but now i cannot enter my mac. only windows is appearing what should i do. when try enter my mac want me to format rest of the disk. how can i reinstall my mac?
If you use Windows program to partition the Hard Drive, the Apple partition gets destroyed.
Windows does not understand it is a guest on your Mac, and throws garabge wherever it pleases. -
my phone is stolen i need to get the serial number but i only have yje IMEI what should i do how can i get my serial number
Why do you need the serial number? The phone can't be tracked by either serial number or IMEI.
See this article:
http://support.apple.com/kb/HT4061 -
i can't able to access shapes(circle,star) in tool,only rectangle is used.what to do for drawing other shapes?
Mylenium is right; we don't know enough to help you.
Screenshots of your interface would help. Also, more information about your OS, version of AE, etc.: FAQ: What information should I provide? -
My iPhoto doesnt allow me to place more photos, says that the space is full but my mac book pro is new (less than 2 weeks) and I only got 500 photos, what should I do?? the computer is almost empty
Apply the two fixes below in order as needed:
Fix #1
Launch iPhoto with the Command+Option keys held down and rebuild the library.
Since only one option can be run at a time start with Option #3, followed by #4 and then #1 as needed.
Fix #2
Using iPhoto Library Manager to Rebuild Your iPhoto Library
1 - download iPhoto Library Manager and launch.
2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
4 - In the next window name the new library and select the location you want it to be placed.
5 - Click on the Create button.
Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments. However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
OT -
When I turn 3G ipad is turned off and turned on only when charging. What should I do?
When I turn 3G i-pad is turned off and turned on only when charging! What should I do?
Not too sure of what you are saying but try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. When the screen goes blank then power ON again in the normal way.] It is 'appsolutely' safe!
-
UPdate the iPad wjith new iOS upgrade that where shown under settings on the iPad, but after I did the upgrade the screen has only shown the apple and I can't get back. This has been the case since yesterday. Have turned off t.he iPad many times, but every timebwkhen Ibturn it on again the screen onöy show the apple icon and nothing else happends. What should I do? Anyone having the same problem and how can this be solved?
Did you try to connect in recovery mode, explained in this article?
iOS: Unable to update or restore -
I downloaded Yosemite last night and tried to look at my photos in iPhoto and noticed that needed updating. When I tried to update as requested, I got an error message stating that the app (and several others including Pages and Numbers) couldn't be updated because they weren't purchased by the user ID I had entered. I'm the only user of the computer and now I can't find my photos anywhere! Any help would be appreciated.
ThanksSome folks have solved this issue by dragging the apps to an external disk, then disconnecting it, and then are able to download. Apparently it can arise if you upgraded from an OS the than Mavericks.
Failing that: Contact App Store support. There's a link on the right hand side of the App Store Window. They're the only ones who can sort out account issues. -
model: iphone 4s (MD235J/A)
VERSION:8.3 (12F70)
Problem: after updating to ios 8.3 and restarting my phone it wont show cellular service.(no service)Confirmed solution from Apple:
You need to do a full OS restore through iTunes on your phone. You can then restore from an iCloud or iTunes backup to be back in business. It *****, but that's the only solution right now. -
I dunno the old apple id too so am not able to install the i life'11. Will this problem be solved by installing a fresh OS or will it be of no use. And i dunno the condition of the macbook either....if it's stolen or pawned..:( Please help
If new versions of iPhoto and the other iLife applications (iMovie and GarageBand) were purchased by the previous owner from the Mac App Store, then they will be locked to the previous owner's Apple ID and cannot be transferred to you. You will have to re-purchase them under your own Apple ID.
If this is an older MBA that came with Snow Leopard or an earlier version of Mac OS X, though, the system would have come with an installation disk that included the iLife applications, a disk which the seller should have provided to you. Those iLife applications would be older versions, of course, and may or may not work in Lion depending on how old they are.
Regards. -
What should I do next?
Please follow the instructions here in order and answer all questions in detail.
http://h30434.www3.hp.com/t5/Printer-Networking-and-Wireless/Want-Good-Answers-Ask-Good-Questions/td...
Say thanks by clicking the Kudos Thumbs Up to the right in the post.
If my post resolved your problem, please mark it as an Accepted Solution ...
I worked for HP but now I'm retired! -
Autoextend user tablespace or add datafile
Hello,
My USERS tablespace had problem today when loading a file using sqlldr. It stopped loading halfway through the file.
The allocated is set to 1900 mb and the used was at 1850. I only have 1 datafile for users tablespace. I have autoextensible to YES.
Why did it not extend the tablespace when I should still have 2gb free??
I dropped a couple unused user tables and it reduced the used amount, then I was able reran the sqlldr load and it completed.
Should I create a new datafile
ALTER TABLESPACE USERS ADD DATAFILE ‘/usr/lib/oracle/xe/oradata/XE/users01.dbf’ SIZE 2000M AUTOEXTEND OFF;
or increase the allocation
ALTER DATABASE DATAFILE ‘/usr/lib/oracle/xe/oradata/XE/users.dbf’ RESIZE 3000M;
Thanks for the help...Why did it not extend the tablespace when I should still have 2gb free??
Might be maxsize was defined at the time of tablespace creation
For example
SQL> select DBMS_METADATA.GET_DDL('TABLESPACE', 'USERS') from dual;
DBMS_METADATA.GET_DDL('TABLESPACE','USERS')
CREATE TABLESPACE "USERS" DATAFILE
'C:\ORACLE\ORACLEXE\ORADATA\XE\USERS.DBF' SIZE 104857600
AUTOEXTEND ON NEXT 10485760[b] MAXSIZE 5120M
LOGGING ONLINE PERMANENT BLOCKSIZE 8192
EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO
Should I create a new datafile
ALTER TABLESPACE USERS ADD DATAFILE
‘/usr/lib/oracle/xe/oradata/XE/users01.dbf’ SIZE
2000M AUTOEXTEND OFF;
or increase the allocation
ALTER DATABASE DATAFILE
‘/usr/lib/oracle/xe/oradata/XE/users.dbf’ RESIZE
3000M; It is good idea to add new file and having multiple file with same size.
Also in future if needed you can relocate datafile to reduce I/O contention. -
Tablespace/datafiles--howto
Hi all,
Wanna ask you a question on tablespace/datafiles.
I want to load 7.5 million records into a table using sqlloader.
The directory for datafiles looks like following:
-rw-r----- 1 oracle dba 1497088 Nov 19 19:46
control01.ctl
-rw-r----- 1 oracle dba 1497088 Nov 19 19:46
control02.ctl
-rw-r----- 1 oracle dba 1497088 Nov 19 19:46
control03.ctl
-rw-r----- 1 oracle dba 104859648 Nov 19 19:27
rbs01.dbf
-rw-r----- 1 oracle dba 512512 Nov 19 19:46
redoORCL01.log
-rw-r----- 1 oracle dba 512512 Nov 19 19:07
redoORCL02.log
-rw-r----- 1 oracle dba 512512 Nov 19 19:27
redoORCL03.log
-rw-r----- 1 oracle dba 104859648 Nov 19 19:42
system01.dbf
-rw-r----- 1 oracle dba 131074048 Nov 19 19:27
temp01.dbf
-rw-r----- 1 oracle dba 314574848 Nov 19 19:42
tools01.dbf
-rw-r----- 1 oracle dba 314574848 Nov 19 19:46
tools02.dbf
-rw-r----- 1 oracle dba 104859648 Nov 19 19:27
users01.dbf
This is the only table I want to load. But when I try to load
using SQL Loader, I get following message,
ORA-02356: The database is out of space. The load cannot
continue
ORA-01653: unable to extend table SYSTEM.URLS by 92169 in
tablespace TOOLS
Load completed - logical record count
3538680.
It loaded only half of the number of rows.
How would I be able to resolve this. Any help would be greatly
appreciated.
Thanks in advance.
nullHi namnan,
namnan (guest) wrote:
: Hi all,
: Wanna ask you a question on tablespace/datafiles.
: I want to load 7.5 million records into a table using
sqlloader.
How can you be sure that 7.5 Mio records fit into your
tablespace?
Have you considered the size of your tables, the overhead, the
indexes?
You can do it a priori if you know how oracle stores data, but it
is easier to load 100000 records into a dedicated tablespace,
then sum up the consumed space (select ... from dba_segments).
Don't do that as user system unless you have a very good reason
to do so.
null -
Hey to all
I want to drop USER tablespace wid data file but as we know many oracle users Scott OE data reside in users. How can I protect their data. One method which I read on net to export and import once again is quite cumbersome I run this query
SELECT
owner
, segment_name
, segment_type
FROM
dba_segments
WHERE
tablespace_name='USERS'
it give me two user OE and SCOTT. How can I protect their data before drop the user tablespaceHi..
As you said direct load takes place, then the rows which are inserted are always inserted above the HWM.So the datafile size size kept on increasing.
i read about segment advisor i run the advisor it shrink the segment but users tablespace size on OS still 200 GB could anyone tell why??You would have run alter table <table_name> shrink space; -- This statement will procede in two steps:
- The first step makes the segment compact by moving rows further down to free blocks at the beginning of the segment.
- The second step adjusts the high watermark. For this Oracle needs an exclusive table lock,but for a very short moment only.
The HWM goes below, and table are now more well organized.This command doesn't resize the datafile at the OS level.So, the datafile sizes will remain the same.One thing which you can do is resize(decrease) the datafile.
MINIMUM DATAFILE SIZE
COLUMN block_size NEW_VALUE v_block_size
SELECT TO_NUMBER(value) AS block_size
FROM v$parameter
WHERE name = 'db_block_size';
COLUMN tablespace_name FORMAT A20
COLUMN file_name FORMAT A50
COLUMN current_bytes FORMAT 999999999999999
COLUMN shrink_by_bytes FORMAT 999999999999999
COLUMN resize_to_bytes FORMAT 999999999999999
SET VERIFY OFF
SET LINESIZE 200
SELECT a.tablespace_name,
a.file_name,
a.bytes/1024/1024 AS current_MB,
(a.bytes - b.resize_to)/1024/1024 AS shrink_by_MB,
b.resize_to/1024/1024 AS resize_to_MB
FROM dba_data_files a,
(SELECT file_id, MAX((block_id+blocks-1)*&v_block_size) AS resize_to
FROM dba_extents
GROUP by file_id) b
WHERE a.file_id = b.file_id
ORDER BY a.tablespace_name, a.file_name;Edited by: Anand... on Feb 17, 2009 12:01 PM
Maybe you are looking for
-
Hi All, I am trying to do the check to my program i.e CODE INSPECTOR. i am seeing the following warning messages below. 1 warning message Program zraj0xxx include zraj0xxx row 000083 Column0000 %LINR-VBUP contains a hyphen (The Hyphen is used as a d
-
Nav Bar disappears in live view and in all browsers
Hello all, I have an issue I haven't had before. I created a navigation bar right under the header. After adding my text for the links, I checked in all browsers and each time, the nav bar disappeared, leaving me with just the words. Also the font c
-
I am trying to import an excel file ... see below. It appears if you select both Tasks and Assignments tables it will not allow you to do this, says file is not in a project recognized format. So I import Tasks tab first then run the wizard again
-
5 minutes 6 seconds then freeze
Hi. I've been suffering the same problems as most with I chat AV 3. I get the same did not responds and faild to answer problems. My Girlfriend who uses aol an a pc always has to start the video conferance. The biggest problem is that when we've been
-
Please Help : Installing Oracle 9I R1 on RedHat Linux
./runInstaller Initializing Java Virtual Machine from /tmp/OraInstall0/jre/bin/jre. Please wait... SIGSEGV 11* segmentation violation Full thread dump: Monitor Cache Dump: Registered Monitor Dump: Name and type hash table lock: <unowned> String inter