ALTER TABLE SHRINK the SPACE COMPACT takes a long time
Hello
I run:
ALTER TABLE TOM. TAB1 SHRINK SPACE COMPACT;
ALTER TABLE TOM. TAB1 SHRINK SPACE WATERFALL;
The "ALTER TABLE TOM. Tab1 SHRINK SPACE COMPACT"was completed in 2 hours, but"ALTER TABLE TOM. Tab1 SHRINK SPACE WATERFALL"is still underway after 8 hours, less than the size of the table TAB1 and index:
NOM_SEGMENT... GB
TAB1................................. 166
IDX01................................ 83
SYS_C00......................... 42
IDX02............................. 142
IDX03.............................. 66
IDX04............................. 122
Why 'SHRINK the SPACE COMPACT' takes a lot of time?
Is it possible to check how much time should I take?
Thanks in advance!
Running
ALTER INDEX TOM. TAB1_IDX03 SHRINK SPACE COMPACT;
ALTER INDEX TOM. TAB1_IDX03 SHRINK SPACE;
set is useless, as does 'SHRINK the SPACE' that means "SHRINK SPACE COMPACT" and much more (see the quote from the Doc Oracle Hemant). 2, 'SHRINK the SPACE' is the operation that will take more time. So if 'SHRINK the SPACE' is what you wanted (reclaim space) and you can afford to wait, run 'SHRINK the SPACE' only.
"SHRINK the COMPACT SPACE" is a part of the work that 'SHRINK the SPACE' is only. Generally, use you it when time is at a premium: you run SHRINK SPACE COMPACT a weekday evening (because SHRINK the SPACE does not fit in one night and accrue hourly) and you run SHRINK SPACE on the weekend to finish following the recovery of your space.
Regarding the fact that the entire segment or a partition after another, I have no experience - I both of their time and test methods. Perhaps running several sessions at the same time on different partitions would save time (but be more heavy on the CPU and storage).
Also note that SHRINK the AREA generates a lot of REDO (keep an eye on the free space of your ARCHIVELOG destination). With your data volume, I would expect dozens (or even hundreds) of gigabytes of roll forward must be generated.
Tags: Database
Similar Questions
-
The system preference takes a long time to load
As the title suggests, end of 2013 (10.11.4) System Preferences on my iMac takes a long time to load, even after a fresh reinstall and/or reboot (tried both). It takes about 20 seconds to one minute each time to open (except when I close it and immediately open it once again, as it is always loaded in memory). This problem existed only after the upgrade to El Capitan, and I saw many other people with iMacs with the same problem. I tried to remove cache for before system preferences files, but that did not help at all. I don't have a FileVault if it makes a difference, even if I did before reinstall, but never turned back (persistent question anyway). Any recommendations would be useful. Thank you!
Data sheet:
iMac (end 2013)
Intel Core i5 at 2.7 GHz
8 GB 1600 MHz DDR3
1 TB 5400 RPM HARD DRIVE
Intel Pro Iris 1536 MB
I found it is the State of affairs in 10.11 if running a HD spinning. Don't feel alone.
I suspect that it is a function of low priority in the memory compressed algorithm.
Upgrading to an SSD and it will rise to attention.
-
I just upgraded from Fusion 4 to 6. Before converting my GB 131 VM version 6 I did a Clean Up because he says I have 9 GB of usable space. I don't know how long it takes to run. He has worked for more than 20 minutes, but there seems to be no way to determine if something is happening. It simply shows a window 'Reclaiming Disk Space... "with no way to cancel out. The size of the file and the date/time of the VM file does not change. Activity monitor shows between 3% and 5% of the CPU with 13 to 15 of son used.
I saved the file to the virtual machine.
When you become concerned that nothing happens? How to stop the process?
Thank you.
Thanks WoodyZ. No additional help is needed. I now have the answer. It took about an hour and a half to reclaim the space. All right and that patience is a virtue. (Windows 7-64) virtual machine starts very well. I hope this helps other post to know that it can take some time. It would be nice if there was a progress meter or something to indicate something constructive.
-
Create table as select statement (ETG) takes a long time.
Hi all
One of my procedure launched a table create as select statement each month.
Usually it ends in 20 minutes. for 6172063 records and 1 hour in 13699067.
But this time it never even takes to 38076 records.
When I checked everything he does is the CPU usage. No e/s.
I did a count (*) using the query, it has brought very good results.
BUT guard going on DEC.
I use Oracle 10.2.0.4.
temp_ip of the main table has 38076
table nhs_opcs_hier has 26769 records.
and table nhs_icd10_hier 49551 records.
-------------------
Query is:
create the table analytic_hes.temp_ip_hier as
Select b.*, (select nvl (max (hierarchy), 0))
of ref_hd.nhs_opcs_hier one
where fiscal_year = b.hd_spell_fiscal_year
and a.code in
(primary_PROCEDURE, secondary_procedure_1, secondary_procedure_2,
secondary_procedure_3, secondary_procedure_4, secondary_procedure_5,
secondary_procedure_6, secondary_procedure_7, secondary_procedure_8,
secondary_procedure_9, secondary_procedure_10,
secondary_procedure_11, secondary_procedure_12)) as hd_procedure_hierarchy,
(select nvl (max (hierarchy), 0) for ref_hd.nhs_icd10_hier one)
where fiscal_year = b.hd_spell_fiscal_year
and a.code in
(primary_diagnosis, secondary_diagnosis_1,
secondary_diagnosis_2, secondary_diagnosis_3,
secondary_diagnosis_4, secondary_diagnosis_5,
secondary_diagnosis_6, secondary_diagnosis_7,
secondary_diagnosis_8, secondary_diagnosis_9,
secondary_diagnosis_10, secondary_diagnosis_11,
secondary_diagnosis_12, secondary_diagnosis_13,
secondary_diagnosis_14)) as hd_diagnosis_hierarchy
of analytic_hes.temp_ip b
-----------------
Any help would be greatly appreciatedHello
It is a bit of a wild card, I think because it will require 14 scans to fill the table temp_ip to unpivot codes diagnostic and procedure, so this lilkely things are moving slower than the original. However, as it is a temporary table, I guess you could have some control over its structure, or at least be able to dismiss it and try something else. If you are able to change the structure of this table, you could make the application much simpler and probably much faster. I think that you need a list of codes of procedure for the year and a list of diagnosis for fiscal codes. I do this through the large list of UNION all THE INSTRUCTIONS, but you can have a more efficient way to do according to the base tables you are people temp_ip of. In any case, it's here (as far as I can tell this will do the same job)
WITH codes AS ( SELECT bd.primary_key_column_s, hd_spell_fiscal_year, primary_PROCEDURE procedure_code, primary_diagnosis diagnosis_code, FROM temp_ip UNION ALL SELECT bd.primary_key_column_s, hd_spell_fiscal_year, secondary_procedure_1 procedure_code, secondary_diagnosis_1 diagnosis_code FROM temp_ip UNION ALL SELECT bd.primary_key_column_s, hd_spell_fiscal_year, secondary_procedure_2 procedure_code , secondary_diagnosis_2 diagnosis_code FROM temp_ip UNION ALL SELECT bd.primary_key_column_s, hd_spell_fiscal_year, secondary_procedure_3 procedure_code, secondary_diagnosis_3 diagnosis_code FROM temp_ip UNION ALL SELECT bd.primary_key_column_s, hd_spell_fiscal_year, secondary_procedure_4 procedure_code, secondary_diagnosis_4 diagnosis_code FROM temp_ip UNION ALL SELECT bd.primary_key_column_s, hd_spell_fiscal_year, secondary_procedure_5 procedure_code, secondary_diagnosis_5 diagnosis_code FROM temp_ip UNION ALL SELECT bd.primary_key_column_s, hd_spell_fiscal_year, secondary_procedure_6 procedure_code, secondary_diagnosis_6 diagnosis_code FROM temp_ip UNION ALL SELECT bd.primary_key_column_s, hd_spell_fiscal_year, secondary_procedure_7 procedure_code, secondary_diagnosis_7 diagnosis_code FROM temp_ip UNION ALL SELECT bd.primary_key_column_s, hd_spell_fiscal_year, secondary_procedure_8 procedure_code, secondary_diagnosis_8 diagnosis_code FROM temp_ip UNION ALL SELECT bd.primary_key_column_s, hd_spell_fiscal_year, secondary_procedure_9 procedure_code, secondary_diagnosis_9 diagnosis_code FROM temp_ip UNION ALL SELECT bd.primary_key_column_s, hd_spell_fiscal_year, secondary_procedure_10 procedure_code, secondary_diagnosis_10 diagnosis_code FROM temp_ip UNION ALL SELECT bd.primary_key_column_s, hd_spell_fiscal_year, secondary_procedure_11 procedure_code, secondary_diagnosis_11 diagnosis_code FROM temp_ip SELECT bd.primary_key_column_s, hd_spell_fiscal_year, secondary_procedure_12 procedure_code, secondary_diagnosis_12 diagnosis_code FROM temp_ip ), hd_procedure_hierarchy AS ( SELECT NVL (MAX (a.hierarchy), 0) hd_procedure_hierarchy, a.fiscal_year FROM ref_hd.nhs_opcs_hier a, codes pc WHERE a.fiscal_year = pc.hd_spell_fiscal_year AND a.code = pc.procedure_code GROUP BY a.fiscal_year ),hd_diagnosis_hierarchy AS ( SELECT NVL (MAX (a.hierarchy), 0) hd_diagnosis_hierarchy, a.fiscal_year FROM ref_hd.nhs_icd10_hier a, codes pc WHERE a.fiscal_year = pc.hd_spell_fiscal_year AND a.code = pc.diagnosis_code GROUP BY a.fiscal_year ) SELECT b.*, a.hd_procedure_hierarchy, c.hd_diagnosis_hierarchy FROM analytic_hes.temp_ip b, LEFT OUTER JOIN hd_procedure_hierarchy a ON (a.fiscal_year = b.hd_spell_fiscal_year) LEFT OUTER JOIN hd_diagnosis_hierarchy c ON (c.fiscal_year = b.hd_spell_fiscal_year)
HTH
David
-
General research of the interactive report takes a long time
Hi all
I have two reports IR in my Application, both use the tables, even where the clause, column display is different.
Two queries 60000 records, back in my first report, after that my report will load, I use the General Search button to get the data,
When I try to find 100 in my relationship, my first report showing search results in 5 seconds, but this is my second story I do the same steps, but its taking a lot of time to react.
Could someone tell me what is the cause of this problem also what basis this research will be working means how it works?
See you soon,.
San
Count (*) () as apxws_row_cnt
I used this trick before in other applications non-APEX.
This allows me to get the total number of rows returned from the fair analysis the first record in the result set.
Allows me to print "N records found" or "you are on the page n of M".
ORDER IN...
These are added to the SQL when you sort by the column within the IR.
To get rid of them, you must NOT SORT the IR... that end users will hate.
You are better to ensure that the underlying tables have indexes on them
Run this in SQL Developer and compare it to the other without the ORDER BY clause:
Select * from test by arrangement_number desc, ext_tx_number
COUNT (DISTINCT "ARRANGEMENT_NUMBER"))
Maybe it is a column grouping or calculation that is defined within the IR.
I have not messed with those too.
MK
-
Hi gurus of the APEX.
When I create a new workspace with and add a new user with the API
It takes a long time until I can see the results in the admin interface apex I NTHE browser.
Why is this?
Someone can explain or do you have a work around to make it faster?
Here is the code I use:
BEGIN
APEX_INSTANCE_ADMIN. ADD_WORKSPACE(1196509005817318,'WORKSHOP','HR',)
wwv_flow_api.set_security_group_id('1196509005817318');
APEX_UTIL. CREATE_USER)
p_user_name = > 'MY_ADMIN ',.
p_first_name = > "FRANK."
p_last_name = > 'SMITH ',.
p_description = > "Description...". »,
p_email_address = > '[email protected] ',.
p_web_password = > 'oracle ',.
p_developer_privs = > ' ADMIN: CREATE: DATA_LOADER:EDIT:HELP:MONITOR:SQL',.
p_default_schema = > 'HR ',.
p_allow_access_to_schemas = > 'OEHR. "
p_change_password_on_first_use = > 'n',.
p_attribute_01 = > ' 123 456 7890');
END;
/
Thanks in advance.
BR,
LutzHi Lutz,
I'm going to ask the obvious question, please do not be offended ;)
You remember to "commit" the end of it if you run via SQLPlus etc.?
John.
--------------------------------------------
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone! -
Hi Experts
I'm using Oracle 11 g, I use under delete query to remove records of staging table.
under query takes a long time (ranging from 1 hour, even there is no record to delete.
I created payment_id indexes also did not help.
delete from siebelwb.stg_p where payment_id not in (select * from siebel.s_src_payment)
I know NOT of IN is degreding performace, is there another way to write above request so that we can remove them in NOT IN use.
Try to use NOT EXISTS clause...
Also you inner query must match the payment_id with query parent then here's the example query...
removal of siebelwb.stg_p where THERE is NO payment_id (select 1 from siebel.s_src_payment where s_src_payment.payment_id = stg_p.payment_id)
-
Satellite M300 PSMDCA takes a long time to start
I have a Toshiba Satellite M300 PSMDCA - 01800C and there are some problems with it.
First of all, when you start the computer, it takes a long time to start and activate Outlook.
I am running Windows 7Home Premium.
Computers arrow where I bought the computer told me that it can take up to three hours to go back through each process at startup?Is it normal that all I wanted was a simple portable easy fast, but it seems that I am stuck again.
Also, when I go back to the computer, even after some time the mouse it does not provide new and pushing the Start button just a blank screen. Alt + Ctrl + delete, then he activates Windows again and then after having put my password and I have to wait for that be again loaded everything that takes so long. Any ideas?
Also I often get the message when the computer starts "error has occurred in Toshiba PC Health Monitor. He will leave the application. "Main.frm.cpp (184). Any ideas?
Quite often when I am scrolling with the mouse, the screen will turn black and flash and a message «the NVIDIA display driver... couldn't Reg...» "and he will correct itself after awhile. Frustrating!
Quite often when scrolling on the websites of the page I'm going to freeze?I use MS Office 2010 and there is a problem trying to save Word documents and a message comes up with "a file permission error.
Any thoughts? Thanks, Shirl51
> First of all, when you start the computer, it takes a long time to start and activate Outlook. I am running Windows 7Home Premium. Computers arrow where I bought the computer told me that it can take up to three hours to go back through each process at startup?
This nonsense!
The system should boot up quickly my laptop needs 30 seconds to start.
In my opinion, the system is screwedIn your case, I recommend to reinstall the system.
Did you create the recovery disk?
If this isn't the case, I think that detailed instructions should be placed in the user's manual.After the recovery of disk has been created, restore the system, BUT save the data before doing so because the recovery disk would be to format the HARD drive and you lose data!
-
XY graph sometimes takes a long time to update legend
Hello
I wrote a small piece of code that highlights (changes line width) the plot on the graph when we click a mouse on its name in the legend of the plot. The code works well except when I the legend scroll bar is visible and its position is not 0, then when I click on the name of the parcel, the chart takes a long time(>4s) to change the width of the plot on the legend. The plot on the graph is updated instantly. Its only the legend of the plot that takes a long time to get updated.
I enclose the code here... Please, run it and see if you also see the same behavior.
Thank you
Ritesh
Hi Ritesh,
The patch of f2 is already released. http://www.NI.com/download/LabVIEW-development-system-2015/5656/en/
We will inform you of the R & D of your first question, but unfoturnately we cannot provide information on future products releases.
Kind regards
-
All while saving the have drop its takes a long time
I am using windows 7 and have CC, when I'm working on files while saving the file have its takes a long time. I have 4 GB of RAM. now I'm better system too with 6 GB ram. stillthe HERE takes a long time to save the 300 MB file.
It could be where you register to. Make sure that you set up a database on your local drive (that is, your computer's hard drive). Then select your disks scratch in the preferences (make sure you have enough free space and there is enough defragmented). Backup speed is not a problem of RAM. Make sure that you save not on a network drive. People have also disabled 'save with PDF compatibility' > OFF in the preferences help to accelerate.
-
Starting the server takes a long time due to the storage of JMS persistence files
Hello
We use WebLogic 9.2 on a windows machine.
Recently, we have improved our request to work with JMS.
We are on 2 different servers in a cluster using 2 JMS servers and works with distributed destinations.
We use file storage as our persistence store.
Recently, we found boot server takes a long time because of the actions that are performed on the storage of files.
Analysis of this problem, we have seen that the size of the file is of ~ 2 GB.
We understand that the file size does not fear (unless it is compacted manually), and its size matches the largest number ever of pending messages in the queues (as a mark of high tide).
We shot also store debugging, using weblogic. Debug.DebugStoreIOPhysical and we saw a lot of recovery after newspapers file storage is open.
We have checked and checked our JMS transactions are completed successfully. We also checked that the current messages and number of courses is 0.
We stopped the server gracefully, check that there are no messages pending.
However, several times takes start server ~ 30 minutes due to heavy work on the persistence store.
Compaction or remove storage of files eliminates the delay.
However, we want to avoid the manual operations whenever we want to start the server.
Please share your ideas.
Thank you
ItsikThe only suggestions I have off the top of my head are:
* Ensure (1) the host system has at least 2 GB (the store file size) memory physics in addition to the memory used by the current process, and (2) the host system is not rebooted between each restart WebLogic. If you ensure that both of these, then the operating system puts implicitly cached content of the file of the store in memory even between boots - when WebLogic starts subsequently storing files, the o/s should be the content of the file much more quickly.
* You can move to a JDBC store. Runtime JDBC store performance are lower, but since you have generally has only a small amount of records to retrieve, startup performance should be higher in this case.
* Not that it helps your case, but it happens that we have significant performance improvements of starting process for a future version (if all goes well a near future release).
Tom
-
I am a new user of Iphone, I must he keep plugging my Iphone to the computer during the update download process? especially the download will take too long because it is more than 2 GB and my internet speed is not fast, I can unplug my Iphone until the full download?
Without doubt, but why not just make the day downloading overnight?
-
Visual Studio 2008 Pro takes a long time to start after the installation of measurement Studio 2009
After installing Measurement Studio 2009, I noticed that it takes a long time (30-60 seconds) to open a Visual Studio project.
I do not have an internet connection on my development computer and suspect he might be waiting on some kind of operation of the network to time out. I had problems with Visual Studio in the past as well and had to work around them by adding entries to my hosts file (to redirect some addresses of Microsoft to the local IP address - this causes network operations to expire immediately).
Just curious if anyone has encountered this kind of slow startup time and found a solution.
Thank you!
I found an article referring to a question similar to MS 8.1. I don't know if the problem has simply not been corrected or why I am still having this problem. Workaround "per computer" listed in the article solved my problem.
http://digital.NI.com/public.nsf/allkb/18E25101F0839C6286256F960061B282 I have
-
My problem is? How can I stop my computer to go to the screen saver when I for example runs a scan of the computer, sometimes my scan takes a long time to finish? Example I have Microsoft Security Essentials set allow to run daily on 1200 AM and until he finishes my computer goes to screen saver Mode. and when I click on my mouse, I must sign completely new in my computer > how to stop this from happening, I want to keep my Security Scan open until there finishes?
All the solutions for this?
Original title: Windows Vista systems
Hello
This can help you:
"Enable or disable the screen saver.
http://Windows.Microsoft.com/en-us/Windows/turn-screen-saver-on-off#1TC=Windows-Vista
And this is how do to change the time to wait before the screensaver comes on (article 8) and how to disable the password to logon to him (art. 9):
http://www.Vistax64.com/tutorials/85539-screen-saver.html
"How to disable or enable Protection by password on Wake Up in Vista"
http://www.Vistax64.com/tutorials/102686-password-protection-wakeup.html
See you soon.
-
Device: BlackBerry Z10
Model: STL100-1
Software version: 10.2.1.537
OS version: 10.2.1.1925
Carrier: Beeline (KZ)Z10 takes a long time to start when the parameters 'SIM card PIN lock' is running
Tried to activate or disable this setting, the result:
On - 5 min 13 sec (on-screen progress bar has reached 100% for ~ 1 minute, then waited for another 4 minutes in this State)
Off - 1 min 17 sec
What is the problem of the time difference?
Good, thanks
Maybe you are looking for
-
Pavilion dv3: cannot install the driver for graphics (Clubhouse dv3)
Hello! I can't find and install the driver for graphics card. I see on the device manager that without "ATI radeon 5400 series. someone help me! Thank you
-
Cannot print wireless with photosmart 2575
Confused! I have an Apple iBook G4, which is connected to the internet wireless via Belkin router D-Link 802.11 g and it works fine but I can't get my computer or printer to print wireless - a pc on the same wireless network is able to print wireles
-
Speakers working, but no sound from YouTube or attachments
Speakers works but can not jesuissuper of e-mail noryoutube Can not get sound attachments or you Tube - speakers working
-
Spoiler (Highlight to read) I have an officejet pro 8500 a - a910a -installation on the desktop through USB connection and his works fine -J' have a laptop running on Windows XP -l' printer is connected wireless to my SSID and gives her an IP 192
-
I bought a series of Forza Ups SL761. It came with a manual and I am trying to install it via the website and the system asks me the password. When I fill the password supplied with the manual there show me that the password is not correct. And I can