Detemining the free space for each tables before Archiving an object.
Hi Everyone,
I want to know,how can i get the information about the how much space will get free from each table which is related to an archiving object <b>before</b> i perform
archiving on that particular object.
Are there any transactions for the same, or some transaction which can be related to these.
eg:FI_DOCUMNT is related to lots of table, before i archive this object, i want to know that space that will be free from all the tables individually which are affected by this object.
Regards,
Nipun Sharma
Hi Nipun,
as far as I know: there is no easy tool to get this numbers. But on the other hand, you don't need exact numbers, estimations will do.
It's a good idea to start with the biggest objects: take DB02, make a detailed analysis where you select the biggest tables -> corresponding archive objects should be your main focus (for the beginning).
Count for the biggest tables in each objects the entries per year (or month, whatever periods you are interested in). Most tables have creation date to do so, otherwise go for number range. For some numbers you could search the creation date, the rest is estimation again.
Then you will have an idea, which volume was created in which time frame.
Still you need some test archive runs (in PRD or an (old) copy, at least for an example amount of data): you need to know, which % of the documents can technically be archived, how much will stay open because of missing closing. That's critical information (maybe 90% will stay in system) and can only be analyzed by SARA test runs - if you identify the missing object status, you can go on selecting this directly, but in the beginning you need the archive run.
With the volume / time frame and the percentage, which can be deleted you should be able to give estimations based on current total object size. Make clear, that you talk about estimations: every single object will be checked for having correct status - before this isn't done (in a test run), no one can tell exact numbers.
Hope, this will help you,
regards,
Christian
Similar Messages
-
Where can I find the file sizes for each application before downloading?
Where can I find the file sizes for each application before downloading? I have limited download (525 MBs/day) because of Hughsnet and I need to know each applications total size before I download.
You can go to the trial page to get an estimated size. As the Creative Cloud products change over time though this may become less accurate.
If you are on a limited bandwidth account then you may want to consider purchasing a perpetual copy of Creative Suite 6 as opposed to subscribing to the Creative Cloud. -
The free space for my iphone on itunes does not match the free space on my iphone after syncing. iTunes shows 6.7 G free, but my iphone shows 6 G free. Why such a delta?
They've never sussed this out - been a problem the last year or two for me regardless of all the new iOS versions and iTunes versions. Regardless of multiple resets and full restores. Mine showed 3.7 avail on computer, less than .5 on phone. I did a reset and full restore. It helped - but still differs dramatically - now showing 5.8 avail on computer but only 2.9 on phone.
APPLE!!! I have spent 10s of thousands on your products both at my business and home - why? "Because it just works" I've been telling people. Not sure if I can keep on saying that if you don't get this figured out!! -
Disk partition issue.Cant allocate the free space for windows.ls help.
I have created a partition for OS X (200GB journaled, encrypted) and also left 51GB unallocated for Boot Camp later on.
After I successfully installed OS X 10.9, I wanted to install Windows 8.1 with Boot Camp. But Boot Camp only wants to shrink the Macintosh HD partition, and doesn't want to use the free space left on the drive. So I switched to Disk Utility, to try it that way. But in Disk Utility I wasn't able to create a new partition (if I press the 'partition' button it just doesn't do anything).
Next, I tried to switch of File Vault 2, let it decrypt itself, restart, and then try it again in internet recovery mode. But still, I cannot expand the Macintosh HD-partition or create a new partition.
Disk Utility log:
2014-09-04 00:42:31 +0200: Preparing partitioning: 'APPLE SSD SM256E Media'
Also, Disk Utility tells me there is 200.000.000.000 bytes of 200.000.000.000 bytes used, and 0 bytes of free space. Even though not even half of the drive is colored blue (which displays the amount of data on the drive). Finder tells me only 88GB is used.
I used the new installation for no longer than half a day, so there can't be issues that data is spread over the whole volume. Disk Utility can't find any problems, and tells me the disk and all of her volumes are okay (in green texts).
I also tried to start from a windows-install-usb, and tried to make a partition of the 'unallocated space', but then Windows tells me that it fails because the volume is part of the 'GPT partition style'.
What do I have to do to repartition my volumes!?
I'm using a MacBook Pro Retina 15" (MacBook Pro 10,1) with a 256GB SSD (251GB according to OS X).As you're finding, a limitation of basic disk is that it only allows 4 primary partitions or 3 primary partitions and an extended partition.
http://technet.microsoft.com/en-us/library/dd163549.aspx
For information on converting basic to dynamic as well as considerations prior to doing so, consult this article. It should help you make a decision whether or not you want to convert the disk:
http://technet.microsoft.com/en-us/library/dd163552.aspx
If you decide to convert, get a backup so that no matter what you're covered. Not that it's risky, but better safe than sorry. -
How to calculate the percentage of free space for a table in Oracle
okay, I am a little confused here. I have been searching the web and looking at a lot of documents. What I basically want to find out is this, how do I calculate the difference between the number of bytes a table is using and the total bytes allocated to a table space (going that way to get percent free for a particular table). So I need a byte count of a table and total table space and the percentage difference. I have been looking at the DBA_TABLES DBA_TABLESPACES and DBA_SEGMENTS views. I have tried to calculated the space as num_rows * avg_row_len (if I am wrong, let me know). I have been trying to compare that calculation to the number in DBA_TABLESPACES and DBA_SEGMENTS. I am just looking for the total space allocated to the table space that the table sits in (seem logical right now) to make the percentage value work. Thus I want to be able to track the table as it grows as compated to the table space it sits in to see a value as it changes over time (days, weeks, etc.) each time I run this script I am working on.
Can someone get me straight and help me to find out if I am looking in the right places. Any advice would help.
EdwardYou can use a little modified version of dbms_space from Tom, show_space. Have a look,
SQL> create table test222 as select * from all_objects;
Table created.
SQL> delete from test22 where rownum<=100;
delete from test22 where rownum<=100
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> delete from test222 where rownum<=100;
100 rows deleted.
SQL> analyze table test222 compute statistics;
Table analyzed.
SQL> create or replace procedure show_space
2 ( p_segname in varchar2,
3 p_owner in varchar2 default user,
4 p_type in varchar2 default 'TABLE',
5 p_partition in varchar2 default NULL )
6 -- this procedure uses authid current user so it can query DBA_*
7 -- views using privileges from a ROLE and so it can be installed
8 -- once per database, instead of once per user that wanted to use it
9 authid current_user
10 as
11 l_free_blks number;
12 l_total_blocks number;
13 l_total_bytes number;
14 l_unused_blocks number;
15 l_unused_bytes number;
16 l_LastUsedExtFileId number;
17 l_LastUsedExtBlockId number;
18 l_LAST_USED_BLOCK number;
19 l_segment_space_mgmt varchar2(255);
20 l_unformatted_blocks number;
21 l_unformatted_bytes number;
22 l_fs1_blocks number; l_fs1_bytes number;
23 l_fs2_blocks number; l_fs2_bytes number;
24 l_fs3_blocks number; l_fs3_bytes number;
25 l_fs4_blocks number; l_fs4_bytes number;
26 l_full_blocks number; l_full_bytes number;
27
28 -- inline procedure to print out numbers nicely formatted
29 -- with a simple label
30 procedure p( p_label in varchar2, p_num in number )
31 is
32 begin
33 dbms_output.put_line( rpad(p_label,40,'.') ||
34 to_char(p_num,'999,999,999,999') );
35 end;
36 begin
37 -- this query is executed dynamically in order to allow this procedure
38 -- to be created by a user who has access to DBA_SEGMENTS/TABLESPACES
39 -- via a role as is customary.
40 -- NOTE: at runtime, the invoker MUST have access to these two
41 -- views!
42 -- this query determines if the object is a ASSM object or not
43 begin
44 execute immediate
45 'select ts.segment_space_management
46 from dba_segments seg, dba_tablespaces ts
47 where seg.segment_name = :p_segname
48 and (:p_partition is null or
49 seg.partition_name = :p_partition)
50 and seg.owner = :p_owner
51 and seg.tablespace_name = ts.tablespace_name'
52 into l_segment_space_mgmt
53 using p_segname, p_partition, p_partition, p_owner;
54 exception
55 when too_many_rows then
56 dbms_output.put_line
57 ( 'This must be a partitioned table, use p_partition => ');
58 return;
59 end;
60
61
62 -- if the object is in an ASSM tablespace, we must use this API
63 -- call to get space information, else we use the FREE_BLOCKS
64 -- API for the user managed segments
65 if l_segment_space_mgmt = 'AUTO'
66 then
67 dbms_space.space_usage
68 ( p_owner, p_segname, p_type, l_unformatted_blocks,
69 l_unformatted_bytes, l_fs1_blocks, l_fs1_bytes,
70 l_fs2_blocks, l_fs2_bytes, l_fs3_blocks, l_fs3_bytes,
71 l_fs4_blocks, l_fs4_bytes, l_full_blocks, l_full_bytes, p_partition);
72
73 p( 'Unformatted Blocks ', l_unformatted_blocks );
74 p( 'FS1 Blocks (0-25) ', l_fs1_blocks );
75 p( 'FS2 Blocks (25-50) ', l_fs2_blocks );
76 p( 'FS3 Blocks (50-75) ', l_fs3_blocks );
77 p( 'FS4 Blocks (75-100)', l_fs4_blocks );
78 p( 'Full Blocks ', l_full_blocks );
79 else
80 dbms_space.free_blocks(
81 segment_owner => p_owner,
82 segment_name => p_segname,
83 segment_type => p_type,
84 freelist_group_id => 0,
85 free_blks => l_free_blks);
86
87 p( 'Free Blocks', l_free_blks );
88 end if;
89
90 -- and then the unused space API call to get the rest of the
91 -- information
92 dbms_space.unused_space
93 ( segment_owner => p_owner,
94 segment_name => p_segname,
95 segment_type => p_type,
96 partition_name => p_partition,
97 total_blocks => l_total_blocks,
98 total_bytes => l_total_bytes,
99 unused_blocks => l_unused_blocks,
100 unused_bytes => l_unused_bytes,
101 LAST_USED_EXTENT_FILE_ID => l_LastUsedExtFileId,
102 LAST_USED_EXTENT_BLOCK_ID => l_LastUsedExtBlockId,
103 LAST_USED_BLOCK => l_LAST_USED_BLOCK );
104
105 p( 'Total Blocks', l_total_blocks );
106 p( 'Total Bytes', l_total_bytes );
107 p( 'Total MBytes', trunc(l_total_bytes/1024/1024) );
108 p( 'Unused Blocks', l_unused_blocks );
109 p( 'Unused Bytes', l_unused_bytes );
110 p( 'Last Used Ext FileId', l_LastUsedExtFileId );
111 p( 'Last Used Ext BlockId', l_LastUsedExtBlockId );
112 p( 'Last Used Block', l_LAST_USED_BLOCK );
113 end;
114
115 /
Procedure created.
SQL> desc show_space
PROCEDURE show_space
Argument Name Type In/Out Default?
P_SEGNAME VARCHAR2 IN
P_OWNER VARCHAR2 IN DEFAULT
P_TYPE VARCHAR2 IN DEFAULT
P_PARTITION VARCHAR2 IN DEFAULT
SQL> set serveroutput on
SQL> exec show_space('TEST222','SCOTT');
BEGIN show_space('TEST222','SCOTT'); END;
ERROR at line 1:
ORA-00942: table or view does not exist
ORA-06512: at "SCOTT.SHOW_SPACE", line 44
ORA-06512: at line 1
SQL> conn / as sysdba
Connected.
SQL> grant sysdba to scott;
Grant succeeded.
SQL> conn scott/tiger as sysdba
Connected.
SQL> exec show_space('TEST222','SCOTT');
BEGIN show_space('TEST222','SCOTT'); END;
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'SHOW_SPACE' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SQL> exec scott.show_space('TEST222','SCOTT');
PL/SQL procedure successfully completed.
SQL> set serveroutput on
SQL> exec scott.show_space('TEST222','SCOTT');
Unformatted Blocks ..................... 0
FS1 Blocks (0-25) ..................... 0
FS2 Blocks (25-50) ..................... 1
FS3 Blocks (50-75) ..................... 0
FS4 Blocks (75-100)..................... 1
Full Blocks ..................... 807
Total Blocks............................ 896
Total Bytes............................. 7,340,032
Total MBytes............................ 7
Unused Blocks........................... 65
Unused Bytes............................ 532,480
Last Used Ext FileId.................... 4
Last Used Ext BlockId................... 1,289
Last Used Block......................... 63
PL/SQL procedure successfully completed.
SQL>http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5350053031470
I use this to find the space allocations.
Just read your post again,this is not going to show you the percentage of the free/used space. This is going to be the number of blocks which are free/used. For the growth trend, you can look at (in 10g) Oracle EM. It has added now,Segment Growth Trend report which can show you for each object,comparing to the allocated space to the object,how much space is being used by it.
HTH
Aman.... -
Creation of sequence and trigger for each table!!!!!!!1
Hi
I am new to trigger and Sequence field. In one of my database we have many tables with fields for specifing ID numbers. Iam planning to insert the ID field with help of a Sequence and trigger...that trigger fires by adding the sequence value from the dual table. Now the point is here we r having around *60* table with ID field. And i am planning use the above process for each table by creating sequences and trigger for each table.
Will this affects the performance of database.
Is there any other option other than the above process, I mean other than creating sequences and trigger for each table.
PLzz help to resolve this issuee......
Shiyas
Edited by: user13170361 on Jun 7, 2010 12:37 AMTiger, I didn't mind about your comment, but the point is try to use
select NVL(max(a) + 1,1) into i from p1_temp;This line in your trigger code and see what is happening. The problem is with your trigger. You are using group by function and you will not get no_data_found !
For more help, this is some modification of your code.
SQL> create table p1_temp (a number(10) primary key, b number(10));
Table created.
SQL> create or replace trigger trg_p1_temp
2 before insert on p1_temp for each row
3 declare
4 i number(10);
5 begin
6 begin
7 select NVL(max(a) + 1,1) into i from p1_temp;
8 exception
9 when no_data_found then
10 i := 1;
11 end;
12 :new.a := i;
13 end;
14 /
Trigger created.
SQL> insert into p1_temp(b) values (1);
1 row created.
SQL> insert into p1_temp(b) values (2);
1 row created.
SQL> commit;
Commit complete.
SQL> select * from p1_temp;
A B
1 1
2 2
SQL> Edited by: Saubhik on Jun 7, 2010 2:30 AM -
Query to find the the free space in raw disks
I am new to ASM.
What is the query to find the free space in the raw disks in ASM diskgroup.? Can i get space info about individual raw disks in the disk group?
Is there an ip address for the ASM disk group? If so how can i find it?below query will give you total and free space for each raw disk from a disk group.
select dg.name, d.name, d.total_mb, d.free_mb from v$asm_disk d, v$asm_diskgroup dg where dg.group_number=d.group_number order by 1;
There no IP address attached to ASM disk group. Why do you want associate IP address with a Disk group? -
i downloaded the free upgrade for OS X Mavericks, can i delete this download before installation ? i don't want it after reading reviews.
Yes, it's in your Applications folder and is called "Install OS X". Make sure to empty your trash afterwards to clear the space.
Matt -
After upgrading to Mavericks, the free space on my SSD keeps going down for no apparent reason
I downloaded Mavericks and installed it on my macbookpro ( with Crucial M4 SSD) and the free space on my ssd keeps going down for no reason. I reinstalled it from a bootable flashdrive, and the free space went from 20G to 60. Since then it keeps going down and I am now on 48G. I cannot find the source of the drain. Anyone else with the same problem?
http://reviews.cnet.com/8301-13727_7-20025542-263.html
I have not tested the solution suggested in the article linked above.
But hope it helps. -
Please Help, I want to change field value in a table, based on another field value in the same row (for each added row)
I am using this code :
<HTML>
<HEAD>
<SCRIPT>
function addRow(tableID) {
var table = document.getElementById(tableID);
var rowCount = table.rows.length;
var row = table.insertRow(rowCount);
var colCount = table.rows[0].cells.length;
for(var i=0; i<colCount; i++ ) {
var newcell = row.insertCell(i);
newcell.innerHTML = table.rows[1].cells[i].innerHTML;
switch(newcell.childNodes[0].type) {
case "text":
newcell.childNodes[0].value = "";
break;
case "checkbox":
newcell.childNodes[0].checked = false;
break;
case "select-one":
newcell.childNodes[0].selectedIndex = 0;
break;}}}
function deleteRow(tableID) {
try {var table = document.getElementById(tableID);
var rowCount = table.rows.length;
for(var i=0; i<rowCount; i++) {
var row = table.rows[i];
var chkbox = row.cells[0].childNodes[0];
if(null != chkbox && true == chkbox.checked) {
if(rowCount <= 2) {
alert("Cannot delete all the rows.");
break;}
table.deleteRow(i);
rowCount--;
i--;}}}catch(e) {alert(e);}}
</SCRIPT>
</HEAD>
<BODY>
<INPUT type="button" value="Add Row" onClick="addRow('dataTable')" />
<INPUT type="button" value="Delete Row" onClick="deleteRow('dataTable')" />
<TABLE id="dataTable" width="350px" border="1">
<TR>
<TD width="32"></TD>
<TD width="119" align="center"><strong>Activity</strong></TD>
<TD width="177" align="center"><strong>Cost</strong></TD>
</TR>
<TR>
<TD><INPUT type="checkbox" name="chk"/></TD>
<TD>
<select name="s1" id="s1">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</TD>
<TD><input type="text" name="txt1" id="txt1"></TD>
</TR>
</TABLE>
</BODY>
</HTML>Hi,
Let me make sure u r working with table control.
First u have to create a event(VALIDATE) to do the validation.
Inside the event,
1. First get the current index where user has pointed the curson
2. Once u get the index read the internal table with index value.
3. Now u can compare the col1 and col2 values and populate the error message.
1. DATA : lo_elt TYPE REF TO if_wd_context_element,
l_index type i.
lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
CALL METHOD LO_ELT->GET_INDEX( RECEIVING MY_INDEX = l_index.
above code should be written inside the event.
Thanks, -
How do you display the capacity/free space for the hard drive on the desktop, under the hard drive icon.... I have seen this done, but I am not seeing any options to do so.... thanks.
View, Show View Options…, Show item info checkbox.
-
While downloading the free trial for Final Cut Pro X my internet has dropped out many times. It does however seem to continue ok each time it reconnects. Will this affect the software when it finishes? Is this a problem? Any advice please?
This has happened to me with a few downloads without any upsets.
You should be OK.
As I recall the download is around 1.2 gig so it takes a bit of time and effort to get it to your system.
Al -
Can I plot 2 locations at the same time for each record in a table
I'm trying to plot 2 Locations (2 points on a Power View Map) at the same time for each record/project in a table
I can plot 1 location for each project of course with no problem
but I'm trying to show the Begin Point and the
End Point for each project at the same time
Is this even possible?First of all THANKS this worked!
But now I stumbled on another issue. So I actually have 3 tables (and I've adopted them to the file you sent)
Table 1 => TripData
Trip
LongLat
Location
Type
TypeCode
Size
NW Tour
47.568077, -122.320800
Seattle, WA
Begin
0
1
NW Tour
47.035608, -122.884812
Olympia, WA
End
1
1
Cali Trip
37.808848, -122.412580
San Francisco, CA
Begin
0
1
Cali Trip
32.682611, -117.178348
San Diego, CA
End
1
1
Table 2 =>
TripInfo
Trip
OneLongLat
NTP
NW Tour
47.568077, -122.320800
1/1/2015
Cali Trip
37.808848, -122.412580
1/5/2015
Table 3 =>
ALLTrips
Trip
Stop
Owner
NW Tour
1
Owner1
NW Tour
2
Owner2
NW Tour
3
Owner3
NW Tour
4
Owner4
NW Tour
5
Owner5
Cali Trip
1
Owner6
Cali Trip
2
Owner7
Cali Trip
3
Owner8
Cali Trip
4
Owner9
Cali Trip
5
Owner10
Cali Trip
6
Owner11
This is how the Diagram View looks like in PowerPivot
Trip Data => Trip Info <= ALLTrips
Since I don't know how to post pictures
The MAP FIELDS are as follows
SIZE - Count of Stop(s)
LOCATIONS - OneLongLat followed by
LongLat (drill down feature)
COLOR - Trip
The problem now happens with the drill down feature
You can either plot OneLongLat which is the general location for each trip
Or LongLat of each trip which shows the begin and end points
But you can't use the drill down feature???
If instead of OneLongLat you use a
State Column it actually works!!!
I wonder if it has to do with the fact that both locations used for the drill down are Long/Lat numbers???
Any suggestions???
And again Thanks for the response! -
How to calculate the exact space occupied by table
Hi,
I am deleting the data in tables such as DBTABLOG and SRRELROLES.
Until and unless I do a re-org I will not get the free space back but how do I estimate the freed up space before doing a re-org.
As of now I calculate the space occupied by the multiplying the number of records in the actual table with the average row length of each record (stats from DB02)... but the calculation does not match the actual size occupied by the table...
Please help me hereHi Grame,
In order to calculate the space utilized by a table you can do the following :
1) Logon as orasid or sidadm user.
2) Connect to the DB as sysdba user.
3) Run the follwoing query :
SQL> select OWNER,TABLESPACE_NAME, segment_name, bytes/1024/1024 MB from dba_segments Where segment_type = 'TABLE' and Segment_Name='DBTABLOG';
Expected output :
OWNER TABLESPACE_NAME SEGMENT_NAME MB
SAPR3 PSAPPROTD DBTABLOG 10.015625
Hope this helps.
Regards,
Deoraj Alok. -
How do I erase the free space on macbook pro retina?
I went to erase the free space on my MacBook Pro Retina in the Disk Utility but it says not available for this type of drive. Is there a way I can get around this?
You can't use Disk Utility to securely erase a Solid State Disk drive, because of the fact that SSD's have limited write capability, unlike hard drives, thus have to protect the sectors from as little writes as possible.
In fact TRIM (wear leveling) is enabled to write new data to the least used sectors on a SSD each time.
The NSA guidelines for secure data destruction on SSD's is to grind them into a fine powder.
If you don't require this level of data destruction, you can do this trick below, but not often or you'll premaurely wear out your SSD.
Finder > Duplicate a small file repeatly in a folder until slightly more than 50% of the remaining free space on the SSD is used up, (use Activity Monitor) then delete this folder.
Then duplicate a different small file repeatly in another folder in the same manner.
What this will do is, because of the small file, OS X will fill the smallest unused spots on the SSD, the duplicates will fill the remaining free space half way, then the second folder will (because of TRIM) fill the other remaining 50% of the free space.
You can't fill your boot drive or the machine can refuse to function or boot, but because of the wear leveling this should overwrite all your available free space on the SSD once.
If you have a laptop and TimeMachine, there is a hidden database on the boot drive which will store a copy of the deleted data.
Then there is "versions" and it's possible a copy of the deleted data is stored in that cache file still on the SSD.
I can advise how to delete the TimeMachine backup file on the boot drive, but not the "versions" database or what it contains.
How do I securely delete data from the machine?
If your really paranoid it's likely best to reformat the entire MacintoshHD partition from recovery and then with a new user, then do the Finder > Duplicate procedure to overwrite the deleted data off the SSD, this way the "versions" and TimeMachine databases are also overwritten.
Nothing is safe anymore.
Maybe you are looking for
-
hello guys , i made a java program using jni to call a Com file , this com file will return an xml string , i am supposed to read that xml string and parse it i made my code like the following DocumentBuilderFactory factory = DocumentBuilderFactory.n
-
Each time i open a pdf reader security question pops up. Windows or Reader?
-
Aperture and previews...??
Recently I posted this topic, "throwing rocks" at the NN plug-in...after today, I think this is an application issue with Ap (possibly even with Leopard)...in a session this morning, I selected six images in a project of fifty-something and did the "
-
Imovie runs choppy after 10.6.5 software update
Hi all, I've been running Imovie HD on a MacBook Pro ever since I got it this fall for college. It has performed exceptionally thus far, up until this afternoon. I downloaded the latest software update, and now when I play project files, or watch vid
-
Hi there, my friends have been tearing their hair out lately because of emails I have been sending them. I think it is all to do with the way I have been forwarding on emails with attachments. Under the older OS I was used to dragging and dropping at