Compensation of unused blocks
HelloI have a v 11.1.2.2 BSO planning application... The application has large number of potential blocks and low number of 0 blocks and precedent of lev...
What is the the best way to erase unused blocks, I thought.
* Lev export 0
create a new application
* Copy otl and other files required as csc
Import data levl 0
* total
Is there a better way than that? The potential problems with this approach?
Thanks in advance!
No apology necessary, providing just that we both understood what you are trying to reach.
Pretty much no matter what method to load the data - loading rule, lock and send, import native - can load data at higher levels of a sparse dimension. Many people think that it is not 'best practices' as it means you will pay more attention to what bring you. See the command AGGMISSG of calculation for an explanation more complete. Essbase followed data that has been entered (rather than created through calculation) and can export everything that, if the zero level or not. You can also export absolutely everything, but the output files are proportionally huge!
In any case, the two methods (exp/imp vs force restructuring) will have the same result as long as you run the Calc right: empty blocks (all missing values) removed and eliminated fragmentation. One of the benefits of doing an export is that you can still export for backup purposes.
Tags: Business Intelligence
Similar Questions
-
Only the unused blocks backup RMAN as well?
DB version: 11.2.0.4
OS: RHEL 6.6
If I remember correctly, RMAN backs up only used blocks. I created a tablespace of 20 GB, as shown below. When I backed up, the backup piece is only 4MB in size, as shown below.
SQL > create tablespace TEST_TS3 datafile '+ DATA_DG' size 20 G
autoextend on
MaxSize 32767 m
Local extended management
single 4 M size
Auto segment space management;
Created tablespace.
SQL >
SQL > select tablespace_name, bytes/1024/1024 of dba_Data_Files where nom_tablespace = 'TEST_TS3 ';
BYTES/1024/1024 NOM_TABLESPACE
------------------------------ ---------------
TEST_TS3 20480
Backup tablespace TEST_TS3 that is not used by all segments (empty)
RMAN > backup tablespace TEST_TS3 format='/u05/RMAN_BKP/TBS_%U_%T.rmbk' tag = TEST_TS3_BKP;
From 18 February 16 backup
using the control file of the target instead of recovery catalog database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 4941 instance = HMAGPRD2 = DISK device type
channel ORA_DISK_1: starting full datafile from backup set
channel ORA_DISK_1: specifying datafile (s) in the backup set
Enter a number of file datafile = name=+DATA_DG/hmagprd2/datafile/test_ts3.413.904152141 00144
channel ORA_DISK_1: starting piece 1-18 February 16
channel ORA_DISK_1: finished piece 1-18 February 16
piece handle=/u05/RMAN_BKP/TBS_03qu8hg2_1_1_20160218.rmbk tag = TEST_TS3_BKP comment = NONE
channel ORA_DISK_1: complete set of backups, time: 00:00:01
Backup finished on 18 February 16
$
$ ls - lh /u05/RMAN_BKP/TBS_03qu8hg2_1_1_20160218.rmbk
-rw - r - 1 oracle oinstall 4.1 M 18 Feb 17:29 /u05/RMAN_BKP/TBS_03qu8hg2_1_1_20160218.rmbk
But in the world of real output, size of the RMAN backups seems to be much higher.
The following production DB is 27.5 terabytes in size as evidenced by the physical layer (DBA_DATA_FILES. Column of BYTES)
SQL > select sum(bytes/1024/1024/1024) bytesGB from dba_Data_Files;
BYTESGB
----------
27885.3252
But at the level of the logic layer, the used space is only 16.5 TB as evidenced by DBA_EXTENTS. BYTES column
SQL > select sum(bytes/1024/1024/1024) bytesGB from dba_extents.
BYTESGB
----------
16621.316
But the size of RMAN backup came to 20 terabytes , become almost 4TB that space consumed at the level of the logical layer (DBA_EXTENTS. BYTES).
Why is this?
RMAN jump blocks that have never been used. If a block has been used in the past, it will be included in the same backup if currently is not used:
https://docs.Oracle.com/CD/B28359_01/backup.111/b28270/rcmcncpt.htm
Compression for backup sets
When you back up the data files of backup sets, RMAN can use unused block compression to skip blocks of data file. RMAN always ignores blocks that have never been used. Under certain conditions, which are listed in the
BACKUP AS BACKUPSET
entry in reference Oracle database backup and recovery, RMAN also ignores the blocks that are not currently used. Data file backup sets are generally smaller than copies of data file and take less time to write. Compression of the unused block is fundamental to how RMAN writes files of data in backup items and cannot be disabled. -
Logical backup RMAN containing unused blocks
Dear Experts
When I backup logic to the data file of the utility, RMAN that warn that this will be also saved all the unused blocks of datafile, so what I need to do, how to avoid this unused block to be backed up while you are taking a logical backup of data files.
System in detail as follows
HP Itanium server
OS - Linux Redhet 5
DB - Oracle10g
Suggest me urgent.Ikram,
No I did not lack the full result. I noticed these lines, but I don't know which are the most recent. So I took the high ones.
For these lines, we must say that the data blocks have been used when the backup took. Maybe you populated tables with the lines of the sample and then deleted?
I changed the query to display backups the last 3 days:
SELECT (SELECT NAME FROM V$DATAFILE WHERE FILE#=V$BACKUP_DATAFILE.FILE#) DFNAME, DATAFILE_BLOCKS, BLOCKS, DATAFILE_BLOCKS - BLOCKS DIFF, COMPLETION_TIME FROM V$BACKUP_DATAFILE WHERE COMPLETION_TIME > SYSDATE - 3 ORDER BY COMPLETION_TIME, DFNAME;
Could you run this query again?
Best regards
Gokhan Atil
-------------------------------------------------------
If you answer this question, please mark appropriate as correct/useful messages and the thread as closed. Thank you -
Compensation for graphic block (JS CS3)
Hi - I know you can erase the contents of a block of text by equating the content of the narrative frame or parent «»
Is there a method to delete an image from a graphic block, but preserving the empty frame?
Thanks for any help.
Hello
You try this js code, I hope this will help you!
myDoc var = app.activeDocument;
var myGrapics = myDoc.allGraphics;
for (i = 0; i
myGrapics [i] .remove ();
}Alert ("Done");
THX
csm_phil
-
Hello
I have a table T, and it has 30 rows.
I put the command:
Select
Count (*) "number of lines"
DBMS_ROWID. ROWID_BLOCK_NUMBER (ROWID) 'block No. '.
Of
t
Group
DBMS_ROWID. ROWID_BLOCK_NUMBER (ROWID)
and Oracle gave me the block number 663 that all rows are in the block.
Also, I used user_tables, dbms_space.space_usage, dbms_space.unused_space
to check the number of used blocks and the number of unused blocks
The result makes me confused because the number of blocks in rowid_block_number() - 1 - is different
from user_tables, dbms_space.space_usage () - 5.
If 5 is the correct number of blocks, why isn't the value of the empty_blocks column in user_tables 3?
(The total in table T blocks would have the value 8, according to dbms_space.unused_space (),
and blocks are 5, so 8-5 = 3)
Can someone tell me the difference in the value of the blocks, free blocks and total blocks between the view and the functions?
Thanks in advance.
Under Oracle SAMS usually formats 16 blocks at once, but since you use the allocated system extensions the first measure is only 8 blocks so the whole extent is formatted.
As the 1 degree in the segment, the 3 first blocks are the space management (level 1 bitmap, bitmap image in level 2, segment header) leaving you 5 blocks that are formatted and 100% free space and you have then inserted you stored in the pseudo (-) randomly selected last block of scale - leaving you with 4 blocks to 100% of free space and a partially filled block.
Concerning
Jonathan Lewis
-
the blocks are different in dba_extents and dba_tables
I was checking space for specific tables and found something intresting on column of blocks in different tables/views.
In dba_tables. I checked this table is to have a block 496 according to dba_tables and 512 blocks according to dba_extents.
Here is the code and output.
SELECT TABLE_NAME,
NOM_TABLESPACE,
NUM_ROWS,
BLOCKS,
AVG_ROW_LEN,
SAMPLE_SIZE,
LAST_ANALYZED
FROM dba_tables
WHERE
table_name = "DLR_DETAILS_TEST";
output
DLR_DETAILS_TEST DATA01 32853 496 31 32853 13/03/2014 22:01:33 And Query #2
Select dba_extents bytes, nom_segment, blocks
where nom_segment = 'DLR_DETAILS_TEST' and owner = 'HR ';
output a long list and in excel I found there a total of 512 blocks.
Just a curious question IS WHY THAT?
OS: linux redhat 6
DB: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
Thank you.
Column of blocks in dba_segments/dba_extents show used + unused blocks. (It depends on the allocation of storage for that object).
With AUTOALLOCATE extent management, Oracle uses the INITIAL setting to optimize the number of allocated extents. Extensions of 64K, 1 M, 8M and 64 M may be allocated.
If your db_block_size = 8 k, then the segment with 1 shows 64 k/db_block_size measure that comes to 8 blocks. Similarly, we can calculate in other cases as well.
Column of blocks in dba_tables show reserved blocks.
-
Hi all
DB version is 10.2.0.4
I have to check whether these blocks empty are to be re-used or not?SQL> select num_rows,BLOCKS,EMPTY_BLOCKS,AVG_ROW_LEN,NUM_FREELIST_BLOCKS from dba_tables where table_name='FND_CONCURRENT_REQUESTS'; NUM_ROWS BLOCKS EMPTY_BLOCKS AVG_ROW_LEN NUM_FREELIST_BLOCKS ---------- ---------- ------------ ----------- ------------------- 29710 12470 565 538 0 1 row selected.
Baskar.lYes, I suppose it's okay to say. Please see the demo below where I do the same thing in a tablespace MSSM
SQL> select tablespace_name, segment_space_management from dba_tablespaces; TABLESPACE_NAME SEGMEN ------------------------------ ------ SYSTEM MANUAL SYSAUX AUTO UNDOTBS1 MANUAL TEMP MANUAL USERS AUTO EXAMPLE AUTO TESTTBS AUTO MSSM MANUAL 8 rows selected. SQL> create table t tablespace mssm as select * from dba_objects; create table t tablespace mssm as select * from dba_objects * ERROR at line 1: ORA-00955: name is already used by an existing object SQL> drop table t purge; Table dropped. SQL> create table t tablespace mssm as select * from dba_objects; Table created. SQL> exec dbms_stats.gather_table_stats(user,'T')' ERROR: ORA-01756: quoted string not properly terminated SQL> exec dbms_stats.gather_table_stats(user,'T'); PL/SQL procedure successfully completed. SQL> set serveroutput on SQL> exec show_space('T') Free Blocks............................. 0 Total Blocks............................ 1,152 Total Bytes............................. 9,437,184 Total MBytes............................ 9 Unused Blocks........................... 118 Unused Bytes............................ 966,656 Last Used Ext FileId.................... 7 Last Used Ext BlockId................... 2,304 Last Used Block......................... 10 PL/SQL procedure successfully completed. SQL> delete t; 72653 rows deleted. SQL> commit; Commit complete. SQL> exec dbms_stats.gather_table_stats(user,'T'); PL/SQL procedure successfully completed. SQL> exec show_space('T') Free Blocks............................. 1,033 Total Blocks............................ 1,152 Total Bytes............................. 9,437,184 Total MBytes............................ 9 Unused Blocks........................... 118 Unused Bytes............................ 966,656 Last Used Ext FileId.................... 7 Last Used Ext BlockId................... 2,304 Last Used Block......................... 10 PL/SQL procedure successfully completed. SQL> insert into t select * from dba_objects; 72654 rows created. SQL> commit; Commit complete. SQL> exec dbms_stats.gather_table_stats(user,'T'); PL/SQL procedure successfully completed. SQL> exec show_space('T') Free Blocks............................. 1 Total Blocks............................ 1,152 Total Bytes............................. 9,437,184 Total MBytes............................ 9 Unused Blocks........................... 118 Unused Bytes............................ 966,656 Last Used Ext FileId.................... 7 Last Used Ext BlockId................... 2,304 Last Used Block......................... 10 PL/SQL procedure successfully completed. SQL> SQL> truncate table t; Table truncated. SQL> exec dbms_stats.gather_table_stats(user,'T'); PL/SQL procedure successfully completed. SQL> exec show_space('T') Free Blocks............................. 0 Total Blocks............................ 8 Total Bytes............................. 65,536 Total MBytes............................ 0 Unused Blocks........................... 7 Unused Bytes............................ 57,344 Last Used Ext FileId.................... 7 Last Used Ext BlockId................... 1,280 Last Used Block......................... 1 PL/SQL procedure successfully completed. SQL> insert into t select * from dba_objects; 72654 rows created. SQL> commit; Commit complete. SQL> exec dbms_stats.gather_table_stats(user,'T'); PL/SQL procedure successfully completed. SQL> exec show_space('T') Free Blocks............................. 4 Total Blocks............................ 1,152 Total Bytes............................. 9,437,184 Total MBytes............................ 9 Unused Blocks........................... 118 Unused Bytes............................ 966,656 Last Used Ext FileId.................... 7 Last Used Ext BlockId................... 2,304 Last Used Block......................... 10 PL/SQL procedure successfully completed.
Aman...
-
229 lost in show_space blocks?
exec show_space ('MY3', 'SCOTT');
Unformatted blocks... 0
FS1 Blocks (0-25)... 0
FS2 Blocks (25-50)... 1
FS3 Blocks (50-75)... 0
FS4 Blocks (75-100)... 113
Complete blocks... 33 449
Total blocks... 33 792
Total number of bytes... 276,824,064
Total MB... 264
Unused blocks... 0
Unused bytes... 0
Used in last Ext FileId... 4
Used in last Ext BlockId... 190 729
Used in last block... 1 024
Total blocks: 33792.
FS1 + FS2 FS3FS4 unformatted blocks complete blocks unused blocks = 01 + 0 + 113 + 0 + 33, 449 + 0 plus 33563.
But, 33792 > 33563,
33792 - 33563 is 229 blocks.
where will these 229 blocks?Please mark the thread as an ANSWER.
-
Pavilion tx1410us - error messages from the BIOS disk Test
My first post here so greetings and a happy new year to all.
I have a Pavilion tx1410us who seems to have a hard drive problem. I have Vista (Partition 2 - 60 2 GB as/dev/sda2) and Ubuntu 10.10 64-bit (1-1 St 20 GB as/dev/sda1 Partition) on the first partition and am getting ATA DMA error messages 2 and on the console when running Ubuntu.
When I had Vista on the first part of the disc I was getting a lot of errors on Vista.
I ran check disk for bad blocks, but several seem to be coming.
Last night I ran the test of the drive from the BIOS twice and twice got them the same "Test #2-07 failure" error message. The text is perhaps not quite correct, but the "#2-07" is certainly.
Does anyone have a reference to what the BIOS messages mean?
With the errors appear to come from the same part of the disk that would lead me to believe that it's the hard drive itself which is a failure, but I want to be sure that it is not the disk controller until I get a new hard drive.
It was close in the past, but we are now very careful to use only on a surface hard and keep the vents unblocked so I think I can have escaped heating problems that seem to dog these machines.
If someone is under Linux, you can install the monitor CPU cmdlets and the temperature of the system that can sit on your desktop and show you the temperatures constantly. Very useful. Interesting to see the speed at which the processor gets hot when editing or video processing.
Thanks in advance for any help.
Andy
Hi Andy,.
The error message definetely is hard even though I'm not sure what #2 refers to other it can tell the difference between the short and complete test. This, and the fact that more unusable blocks are appearing constantly in all point to the failure of the HARD drive.
Best wishes
DP - K
-
HP Pavilion g6, upgrades?
Hi, I have had this laptop for about a year now and as a music producer, I run several top software (ableton live, Audacity, etc.) and my laptop has slowed down a bit in his age, I have recently done my efforts to clense system (disk defragmentation, the compensation of unused programs, virus scans and so on) but am still not happy with my speed (this can take up to several minutes to start up ableton live as opposed to) 30 seconds it took to start when I got to the computer)
My question is, what improvements can I make to material to improve the speed.an important fact:
Processor: AMD a6 - 3420 m with radeon 1.50 GHz apu
RAM: 4 GB
Operating system: Windows7 64-bitw4ts0n wrote:
Hi, I have had this laptop for about a year now and as a music producer, I run several top software (ableton live, Audacity, etc.) and my laptop has slowed down a bit in his age, I have recently done my efforts to clense system (disk defragmentation, the compensation of unused programs, virus scans and so on) but am still not happy with my speed (this can take up to several minutes to start up ableton live as opposed to) 30 seconds it took to start when I got to the computer)
My question is, what improvements can I make to material to improve the speed.an important fact:
Processor: AMD a6 - 3420 m with radeon 1.50 GHz apu
RAM: 4 GB
Operating system: Windows7 64-bitHello
G6 is not a high performance like the Envy etc. series laptop. Intel based laptop would be a better option for a music producer, but with the system now all you can do is to put more in. memory 8 GB would be enough (2 x 4 GB) and replace the original with a SSD hard drive. A replacement of the CPU may be possible, but I don't know which model it is and can't say anything for sure. However, I recommend to sell and buy a laptop at least Sandy based Intel or Ivy Bridge.
-
Help understand about values retrieved by Tom Kyte script for my LOB segment
I have the LOB segment. When I use Tom Kyte show_space script
()https://asktom.oracle.com/pls/apex/f?p=100:11:0:P11_QUESTION_ID:14339684180676) have this output:
Unformatted blocks... 107
FS1 Blocks (0-25)... 0
FS2 Blocks (25-50)... 0
FS3 Blocks (50-75)... 0
FS4 Blocks (75-100)... 0
Complete blocks... 859 438
Total blocks... 1 746 304
Total number of bytes... 14,305,722,368
Total MB... 13 643
Unused blocks... 0
Unused bytes... 0
Used in last Ext FileId... 5
Used in last Ext BlockId... 1 261 056
Used in last block... 128
I have only full blocks = 859 438, but Total of blocks = 1 746 304 why so?
Looks like you chunk's size 16 k - Oracle seems to watch only the headers of piece in this code; so you expect the segment number raw blocks to be twice the space 'blocks', as this report if you are using a size of 8 KB block and a fragment of 16 k size.
Concerning
Jonathan Lewis
-
Hi people. IM new here. Need to accelerate a clarification on the table!
We have a scheme of production with 200 ~ tables in my body and I feel the performance of important queries in reports can be increased up to with the approach below.
Current settings - movement of the line is disabled for all tables.
What I can,
(1) to activate the movement of the line with "change the movement line of table_name enable;" ~ This allows the rows in the table to move dynamically remove the unused blocks.
(2) remove the unused blocks with "alter table table_name retractable space;"
(3) turn off the movement of the line with "modify the movement table table_name disable;"line ~ this will stop allowing the lines in the table move dynamically.
If I do, I get free unused blocks or removed making the table to perform at least a little more fast?
Will there be an impact elsewhere?
PS - It was never tried before by someone else in our scheme of production.
See you soon,.
Rachida.
India.
Use the Segment space Advisor to see what are the tables could benefit from a SHRINK
Hemant K Collette
-
compressed backup size differ between the band and hard drive
It is out of curiosity.
11.2.0.3 EE on OEL 5.6 DB (64 bit) + Compression Adv.
TSM for MML
The disc and sbt_tape are configured for compressed backupsets
compression algorithm is set to 'HIGH '.
If I backup to disk, it takes 1.5hrs and produces a backup 10 GB piece.
If I backup to tape, it takes 5 hours and produced a 27 GB backup piece.
I look at 'top', it seems that 1 core working 100% with the majority of which (> 90%) being "user" (that's to say not i/o-bound or wait)
(part of the 10 GB backup tape backup takes < 2 min over a link to 1GigE)
Has anyone else seen this type of difference in size when they perform a compressed disk vs. tape backup?
Is this supposed to happen?
Should I be worried?
Thank you very much for any information.
MK
After several Reading the Famous Mwill integrate, it seems that "compression unused block" is shot in for the DISCS.
So, Yes. An algorithm different is used between the DISCS and SBT_TAPE.
MK
-
Hi, I exported a centos as a template OVF guest whose size was 72 GB. Later, I imported OVF even that have removed domain emails and files (such as the server is a server hosting) and I found that the new drive size is about 6 GB. While I tried to export this comment 6 GB server, I found get exported OVF 72 GB of the same size. Why this comment less size exported the same size? Very well, any suggestion of resizing would be confiscated.
You can 'cleansing' of the partition of the OS for example the unused blocks zeroeing before exporting the OVF... Take a look at http://blogs.vmware.com/vapp/2009/10/delta-disk-support-in-ovf.html (section "Narrowing of the disc"), which provides some clues.
André
-
ESXi 5.1 VM running extremely slow after a power failure
Help, our virtual machines are run at a crawl since a power outage a few days ago. Everything seems to be in good shape.
Host is DL385 G7, 12 Dual core AMD, 48 GB memory, data store local storage (4) SAS 600 GB is running in RAID 10 for a total of 1.2 GB
Where I even begin to start looking?
4 critical VM:
Domain controller - Server 2008
SQL Server - 2008 Server
Terminal Server - Server 2008 R2
Mail Gateway - Windows 7
3 other various OS VM:
Windows XP
Server 2008
Linux power virtual management appliance base.
I turned off these 3 for now hoping to free up resources (doesn't help anything).
Memory and CPU use is nothing more than normal. It is sufficient that the virtual machine is so slow to the point where they are almost unusable (block-by-block refresh screens)
Each client computer is a thin client, and they often lose communication for 10-20 seconds each time, I do not know due to timeouts.
If the screenshots of the content of the folder of the virtual machine, or anything else would be helpful, let me know.
Hello
Everything seems to be in good shape.
Check the status tab material on the host and the status of all sensors...
On a host that unmanaged-> Configuration tab - > material - > health
Then, you can take a look at log files and search for:
error, warning, fault, panic, trace... "events".
For ESXi host:
/var/log/VMkernel.log
/var/log/vobd.log
VM log file:
VMware.log - in the same directory as the files of the virtual machine
If it is possible to download...
If you are unable to find anything suspicious in the newspapers using ESXTOP next level...
For troubleshooting with ESXTOP discover these excellent sources:
http://www.yellow-bricks.com/ESXTOP/
Esxtop statistical interpretation
http://www.VMworld.NET/WP-content/uploads/2012/05/Esxtop_Troubleshooting_eng.PDF
See also:
VMware KB: Troubleshoot ESX/ESXi virtual machines performance issues
VMware KB: Troubleshooting problems of network in a vSphere environment performance
VMware KB: Determine if the VM and ESX host blocking problem is caused by hardware issues
VMware KB: Performance high on Windows virtual machines network latency or poor network
VMware KB: Performance of local storage of the poor for VMware ESXi/ESX troubleshooting controller
Kind regards
P.
Maybe you are looking for
-
How can implement you not with Tim Capsule and AirPort their simulation on the iMac?
Hello How can implement you not with Time Capsule and AirPort their simulation on the iMac?
-
Basic Test Lab Configuration Guides: Windows Server
Dear all I'm asking for help for the following We have just a lab Cisco isolated from our network, we have 5 students and I want to help them with establishment of a laboratory to test in a virtual environment, the goal is to teach them how to create
-
Is there a way to know why your pc stops the poeople HP say this is a problem of windows 7 and can not help.
-
ATTN: Engineers of Sony The A77 Sony is an excellent camera. However, the lack of an option of attachment is a serious omission for a camera of this class. It is an essential feature for many professional and amateur photographers. It will allow the
-
The operation of e/s specified on Device\Harddisk2\DR4 was not completed before the expiry of the time-out period I did no changes on my computer for functionality, commissioning due to above mentioned problem goes & long