This method avoids the Hakan factor
Hello
I have a situation where a large partitioned table (lines 3 billion) with bitmap indexes is amended by adding a new column with the default value of-9999.
So, this would cause the issue of the hakan factor.
To avoid encountering the problem of Hakan factor does disable all the bitmap indexes on the table before the change to column and their reconstruction after column addition help?
Thank you
Ravi.
Chilakamarthi wrote:
Sorry I miseed he mentions in the first note...
YES, I do the partition of Exchange here. First construction of the shell with DEC table based on the structure of table Source, then loading it with data (insert adds nologging) and later the Exchange as a partition in the table source with Swap Partition.
So, any question of factor hakan will be because your "shell" table has a different hakan factor that the original table and NOT because you add a column to the table.
One solution is to create your shell with the same factor of hakan. This query will show you the halin factor
Select do.object_name, spare1, mod (spare1, 32768)
sys.tab$, user_objects do
where do.object_id = tab .obj$ #.
and do.object_name = 'EMP_HAKAN. '
Create a new empty table
create the table emp_hakan in select * from emp where 1 = 2
If you check the hakan now you will usually see it is 736.
Load a few rows in the table and set the halin factor
INSERT into emp_hakan select * from emp where rownum<>
ALTER table emp_hakan minimize records_per_block
Check factor of hakan. On my system, it's 2. It's because of the way the blocks are allocated.
If I insert it, remove the lines and do the insert again and THEN set the factor hakan I get 5.
You'll need to experiment some to get the correct value, but once you get the value corresponds to the original table, you're ok.
DISCLAIMER - I do not recommend to use the approach described above as a global solution to this problem. Simpler is better. The solution which disables or removes the bitmap index can be more resources, but it is simple, has side effects, or no and can be easily script for use in any environment.
Tags: Database
Similar Questions
-
The current user is not allowed to call this method. in CF10
Hi all
After installing CF10 and our report, I am able to connect to the report.
After awhile all of a sudden I get the below error and I am unable to connect to our reporting module.
"" the current user is not allowed to invote this error of method".
When I checkd surprised newspapers that CF is looking for some files under E:\cf10_final\cfusion\wwwroot\CFIDE\adminapi\accessmanager.cfc
I don't have E drive in my pc.
can someone help me to solv the problem? (any patches / workarounds), installed the hotfix7 and mandatory patch in our computer.
Thanks in advance.
------------------------------- logs start---------------------------------------------
"The current user is not allowed to call this method. «The specific sequence of files included or processed is: C:\inetpub\wwwroot\da-idcsap001_TM\index.cfm, line: 48»
coldfusion.runtime.CustomException: the current user is not allowed to call this method.
at coldfusion.tagext.lang.ThrowTag.doStartTag(ThrowTag.java:142)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2799)
to cfaccessmanager2ecfc974154242$ funcCHECKADMINROLES.runFunction (E:\cf10_final\cfusion\wwwro ot\CFIDE\adminapi\accessmanager.cfc:48)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
to coldfusion.runtime.UDFMethod$ ArgumentCollectionFilter.invoke (UDFMethod.java:368)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:655)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:444)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:414)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2432)
to cfdatasource2ecfc1679861966$ funcSETODBCSOCKET.runFunction (E:\cf10_final\cfusion\wwwroot\C FIDE\adminapi\datasource.cfc:814)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
to coldfusion.runtime.UDFMethod$ ReturnTypeFilter.invoke (UDFMethod.java:405)
to coldfusion.runtime.UDFMethod$ ArgumentCollectionFilter.invoke (UDFMethod.java:368)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:518)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:660)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:469)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2373)
at cfcreateCFDatasource2ecfm667208776.runPage (C:\inetpub\wwwroot\da-idcsap001_TM\createCFDat asource.cfm:41)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:444)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2799)
at cfsecure_init2ecfm1698353119.runPage (C:\inetpub\wwwroot\da-idcsap001_TM\secure_init.cfm:2 31)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:444)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2799)
to cfApplication2ecfm465443671.runPage(C:\inetpub\wwwroot\da-idcsap001_TM\Application.cfm:5)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:444)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:33)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:346)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:112)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
at coldfusion.filter.ClientScopePersistenceFilter.invoke (ClientScopePersistenceFilter.java:2 8)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
to coldfusion. CfmServlet.service (CfmServlet.java:219)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.j ava: 305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter (MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.j ava: 243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204)
to org.apache.coyote.AbstractProtocol$ AbstractConnectionHandler.process (AbstractProtocol.jav one: 539)
to org.apache.tomcat.util.net.JIoEndpoint$ SocketProcessor.run (JIoEndpoint.java:298)
to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)
to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
--------------------End logs------------------------
Hello
Solved the problem by installing the latest pathces CF.
Kind regards
Phani
-
get the return value of a method of the application module in the workflow
Hello
I use jdeveloper 11.1.1.7.0
I defined a method (return type is useful java card) in the Module of the Application and add this method to the client interface.
also I have a workflow and in this TF firstly I should execute this method and put the return value for the pageFlowScope parameter. I know that to use this method as a methodCall and set it as an activity by default, but I don't know how to get the return value before entering the jsff page and set the pageFlowScope parameter.
Habib
Concerning
When you add the activity to the way to deal, there are 'Return value' property that you can set to #{pageFlowScope.yourVariable}
Dario
-
How can I call method on the view controller Business components
Hello
I did a general method to display messages at the view level,
How can I call this method in the method after validation in the EntityImpl appears automatically after the validation operation.
Gold how can I call it in _ validationbutton to display after validation;
public class MessageBeans
*{*
public static void showMessage (String title, String msgBody, String msgType)
*{*
FacesContext fctx = FacesContext.getCurrentInstance ();
FacesMessage msg = new FacesMessage (FacesMessage.SEVERITY_INFO, title, msgBody);
fctx.addMessage (null, msg);
*}*
*}*1 - Drag and drop the operation of control of data validation on the page.
2 - Double click on the button, this will bring the dialog box link Action property that allows you to link the button action method in the bean.
3 - Select the managed bean, or create a new and enter the name of the method. and click Ok.
3. This will create a method for you to like those posted before, you just need to change the method and show the message after successful validation. -
Is it possible to call a custom method in the App Module to a backing bean?
I would like to know if a custom in the App Module method can be called from inside of a pod of support.
I don't know if it is logically just call, to a backing bean, a custom in the App Module method. But I would like to know if this is necessary or if it is possible.Hello..
Yes it is possible. You must add this interface method customer of AppModule.Now you can see this method in data Controls(Refresh the data control). To call this method using bean, should be added as an action method links (click on links > + > methodAction > and create the binding of the action).
Now, you can call this method in the bean class.
Check like uses this concept to run the display criteriahttp://ADF-Lk.blogspot.com/2011/05/Oracle-ADF-create-view-criteria-and_4727.html
-
purchase fail to cause I used to pay purchase iTunes gift card, so I chose any of the theme of credit card. Credit card is danger, I don't like to pay with this method. Can iTunes gift card can't pay inn - app?
You should be able to make in-app purchases with gift cards. What happens when you try to do?
-
Why my game Center freezes when I go by parameters or directly by clicking on the center of games? Can I know which method is the best to use to solve this problem? Also, I use an iPhone 6 s, iOS 9.3.1
Have you ever tried to force reboot the phone by holding down the button sleep and home for 10 seconds, until the call logo comes back again?
You won't lose data, but it can cure a few glitches.
If this does not work, the initial Setup would be the next step:
Use iTunes to restore your device to factory settings - Support Apple iOS
-
How dynamically invoke or avoid the API methods depending on the Version of the API?
Searched but could not find guides on this...
I have a JDK 4.6 App, which itself pretties by using the () calls Field.setBackground and BackgroundFactory.Since that they require a minimum of JDK 4.6 it don't works on JDK 4.6 or better devices.
It is just appearance, the rest of the application requires JDK 4.1. Is anyway I can avoid loading classes and 4.6 calls if the environment is< jdk="">
I would use reflection except that is is not compatible with the Blackberry. I really want to avoid the separate binary files.
Thanks - Lindsay
I tried the preprocessor directives.
http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=8277
-
is it far to disable the shortcut ctrl-alt-tab on windows 7 (cycle between windows) to avoid the substitution of this same shortcut (indented) in excel?
Hello
The feature you're talking about is the default value of design in Windows 7. If you have comments or suggestions, you can post your query to the Windows 7 feedback forum. -
How to call a Java method n map the output of this method to a table in ODI
Hello
I am new to ODI. I wrote an interface that links the two tables (source) to a file (in the target). Now, I must apply a method (java call) on each element in a column in the target. Now my questions are:
1. all I know is to use the procedure using BeanShell Java or Jython. Can you give some examples of commands to achieve such a feature?
2. where should I actually apply this procedure? Is it possible to apply this procedure within the Interface during the mapping (so that I can map directly the result in the output file)?
Thanks in advance :)Not sure why you want to call a java method for each column.
But as others have mentioned, an ODI procedure won't help you do.However, there are other options you can exercise:
(1.) assuming that you are using Oracle, you can compile the Java class and wrap it as a PL/SQL function and then call this function from pl/sql to the ODI interface. This procedure will be called like any other function oracle for example. Upper (col1).(2.) as I understand, it's that you want to apply the Java method for all columns.
Assuming that you have knowledge with Jython and the code inside the KMs, you can customize the KM to include the Java method around the columns. But this approach is complex if you are a beginner.Hope that helps
-
Is it possible to avoid the or in this sql?
Hello
I have a subquery to work which is givng me some performance issues... (I've changed the names of tables and columns).
i_department_ids and i_apartment_numbers can be null at the time, but not both at the same time, it is also checked. My problem is with two operators OR . As soon as I have the OR, a full scan is completed. A search can take as long as 13 seconds. Without the operators OR there 0,0062 dry. I use the OR operators because, if the input variable is zero, the condition must return True.select h.name, h.age, h.sex, h.height, h.occupation from human h where h.newest = 'Y' and h.death_date is null and (i_department_ids is null or (i_department_ids is not null and h.unique_id in (select m.unikt_id from departments d where d.department_id like i_department_ids)) and (INSTR(i_apartment_numbers, aki.apartment_id) > 0 or i_apartment_numbers is null))
If we scan a way I can avoid using the two operators OR , so I'll avoid the fulltable?
Thank you very much
WilliamA shooting blind. Try this.
select h.name, h.age, h.sex, h.height, h.occupation from human h where h.newest = 'Y' and h.death_date is null and case when i_department_ids is null then 1 when i_department_ids is not null and h.unique_id in (select m.unikt_id from departments d where d.department_id like i_department_ids)) and INSTR(nvl(i_apartment_numbers,aki.apartment_id), aki.apartment_id) > 0) then 1 else 0 end = 1
Published by: Karthick_Arp on November 3, 2010 05:42
Included the Toon conditino aswell.
-
Avoiding the clues in this query
Hi I have the following query that produces this execution plan.
My question is that, given that the optimizer made a complete analysis of table ((je pense que son dû de se connecter par avant dans la requête,...))
because the full table scan happens why additonally go to the index. avoid access index here how we can save additional time to index will allow you to join.
I can't help but full table scan because using connect by clause.
I want to remove access from the index because the optimizer will still choose a full table scan for table prod_dim to step 3
PLAN_TABLE_OUTPUTSELECT prod_dim_nb, prod_type_nm, prod_fam_cd, prod_cd, prod_shrt_nm, prod_full_nm, LTRIM (SYS_CONNECT_BY_PATH (prod_cd, '/'), '/' ) product_hierarchy FROM prod_dim WHERE prod_fam_cd = 'ABC' START WITH prod_dim_nb = prnt_prod_dim_nb CONNECT BY NOCYCLE prnt_prod_dim_nb = PRIOR prod_dim_nb
is my understanding... do we really need to go to the index when its goes not for full access to the table in step 3 in the plan? How to avoid the 6 and 7?----------------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | ----------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 3 | 258 | 2 (0)| 00:00:01 | |* 1 | FILTER | | | | | | |* 2 | CONNECT BY WITH FILTERING | | | | | | |* 3 | TABLE ACCESS FULL | PROD_DIM | 1 | 86 | 3 (0)| 00:00:01 | | 4 | NESTED LOOPS | | | | | | | 5 | CONNECT BY PUMP | | | | | | | 6 | TABLE ACCESS BY INDEX ROWID| PROD_DIM | 3 | 258 | 2 (0)| 00:00:01 | |* 7 | INDEX RANGE SCAN | PROD_DIM_FK2 | 3 | | 1 (0)| 00:00:01 | -----------------------------------------------------------------------------------------------
Published by: raj_fresher on September 3, 2009 15:52I checked all the columns in the select clause, and they are not null columns
But the optimizer does not know that (unless you have NO constraints of NULL in all your columns).
but he's still going for full table access
This is not surprising. Your table is extremely low (or at least the optimizer thinks that Yes). It's probably going to be faster for analysis complete one or two blocks from the table to use multiple indexes.
-
Mac: Images slide under the pallets. Can this be avoided?
I have my settings such as images open as tabs. However, on my Mac, when I open an image I don't see the full picture that about 25% of it is masked by the palettes on the right side. This does not happen on my PC. If I select "Fit screen" on my PC the image will be enlarged to a point as it is delimited by the pallets. On the Mac, the image fits under the pallets. Is there a setting somewhere that can fix this?
The reason is probably your panels (palettes) are not anchored to the edge of the workspace of photoshop.
-
This update of the 7 week window do not work
This week I have 3 update for Windows 7 pro, but ther are not working
every time that I have try tell me to reboot is not to stop computer as update are installing
evilBring it to 14% so tell me it failed and goes back to the old ver of window before the update
I try it a few times now with the same result, and once he scare the _ out of me like he jam just your job don't move any of this because of their updateupdated IE8 KB978506
Windows 7 KB976972 update
update of window 7 KB 977074something is very wrong with them to updateWell I finally got the update no work - no thanks to window update - after is not bad some time I tried to download all 3 at the same time, but that did not work well seem ther love to be installed one by one - out further and it works after a lot of testing
I've opened Incident of Service Support Microsoft online
and here what ther me has said - but not a bit of it worked for me
Microsoft online please contact the Support Service.
From your description, I understand that there are 3 updates failed to install. If I misunderstood your concern, feel free to let me know.
I understand the inconvenience that this matter has caused. Rest assured that I will do my best to help you solve this problem.
This problem may be caused by the following factors:
1. some third-party programs affect.
2 corrupt Windows Update temporary files.
In order to narrow down the cause of this problem and solve it, please refer to the following steps. After completing each step, please check the result again on the Windows Update Web site.
NOTE: Some third-party programs can affect the Windows Update service. If you run third party applications such as web accelerators, Internet or Spyblocker (programs designed to improve the speed of the Internet connection), security or anti-virus programs (Norton, McAfee, etc.), I recommend temporarily disable us or to stop and then try to access Windows Update later, please understand that we are disabling these programs only for troubleshooting purposes and we can re-enable these programs after that we finish troubleshooting.
Step 1: Clean boot
==============
This method will help us determine if this issue is caused by a loader program or service. Please, perform the following steps:
1. click on the "Start" button, type "msconfig" in the search bar and press ENTER.
Note:, please, click on continue if the "User Account Control" window appears.
2. click on the 'Services' tab, check "Hide all Microsoft Services" and click on 'Disable All' (if it's not gray).
3. click on the 'Startup' tab, click 'Disable All' and click on 'OK '.
Then, restart the computer. When the "System Configuration utility" window appears, please check "don't show this message or launch the system.
4. check if we can upgrade the system to boot.
Note 1: Temporarily disable the startup only, group prevents the loading at startup, startup programs. This should not affect the system or other programs. We always run manually these programs later.
Note 2: We can check on start up Normal in the general tab to return to the Normal Mode after that we get this issue is resolved.
If the problem persists, please continue to try step 2.
Step 2: Rename the folder C:\Windows\SoftwareDistribution Windows Update
================================================
This problem may occur if the Windows Update, software distribution folder was damaged. We can refer to the following steps to rename this folder. Please note that the file will be re-created the next time we visit the Windows Update site.
1. close all open windows.
2. click on the "Start" button, click "All programs" and click on "Accessories".
3. right click on "Command prompt" and click "run as Administrator".
4. in the window "Administrator: command prompt", type "net stop WuAuServ" (without the quotes) and press ENTER.
Note: Please look at the cmd window and make sure that it is said that he was arrested with success until we try to rename the folder. However, if it failed, please let me know before you perform other measures and include any error messages you may have received when it failed.
5. click on the button 'Start' in the 'Search' box type "%windir%" (without the quotes) and press ENTER.
6. in the opened folder, find the folder named "C:\Windows\SoftwareDistribution".
7. right click on the folder, select "Rename" and type "SDold" (without the quotes) to rename this folder.
8. still in the window "Administrator: command prompt", type the command "net start WuAuServ" (without the quotes) in the window to restart the service Windows updates.
Note: Please look at the cmd window and make sure that it says it has successfully launched. However, if it failed, please let me know before you perform other measures and include any error messages you may have received when it failed.
If the problem persists, please collect the following information for further research.
How to capture a screenshot
======================
1 when the error appears, press print screen (print screen) on your keyboard.
2. click on the "Start" button, type "mspaint" in the search bar and press ENTER.
3. in the Paint program, click on the "Edit" menu, click "Paste". Click on the "File" menu, and then click "Save".
4. the dialog box "Save as" appears. Type a file name in the "filename:" box, for example: "screenshot".
5. make sure that "JPEG (*.)" JPG; *. JPEG; *. JPE; *. JFIF)"is selected in the box"Save as type", click on"Desktop"in the left pane and then click on"Save ".
Please send this JPEG file to my email
How to retrieve system information
=============================
System information can provide us with more information about the current state of the system. I would check for you. Please send it to me using the following steps:
1. click on the "Start" button, type "MSINFO32" in the search bar and press ENTER to start System Information.
2. on the pop-up window, in the menu bar, click on 'File' and click on 'Save', type a file name and choose NFO as "Save as type", click on "Desktop" in the left pane and click Save.
Please send it as an attachment for further research.
How to recover the WindowsUpdate.log file
================================
1. click on the "Start" button, type "WindowsUpdate.log" (without the quotes) in the search bar and press ENTER. We will see a file named "WindowsUpdate.log".
2. now click on the 'File' menu and click on the "save under".
3. in the left pane, click "Desktop" and click the "Save" button.
The file will be saved to your desktop. Please send the file
Note: When you attach files to emails, the process will vary depending on the used e-mail application. While you compose the message, the most applications will provide you with a 'Join' button or paper clip icon click to attach a file. After clicking on this button/icon you need to navigate to the file you want to attach and select it by either double clicking on it or by clicking on it once, then clicking on the button "join".
If please try my suggestion and let me know the results soon. If you have any other questions, feel free to let me know.
-
Hi all
I want to know if using bulk collect into limit will help to avoid the TEMP tablespace error run out.
We use Oracle 11 g R1.
I am assigned to a task of creating journal facilitated for all tables in a query of the APEX.
I create procedures to execute some sql statements to create a DEC (Create table select), and then fires on these tables.
We have about three tables with more than 26 million records.
It seems very well running until we reached a table with more than 15 million record, we got an error says that Miss tablespace TEMP.
I googled on this topic and retrieve the tips:
Use NO LOG
Parallel use
BULK COLLECT INTO limited
However, the questions for those above usually short-term memory rather than running out of TEMPORARY tablespace.
I'm just a junior developer and does not have dealed with table more than 10 million documents at a time like this before.
The database support is outsourced. If we try to keep it as minimal contact with the DBA as possible. My Manager asked me to find a solution without asking the administrator to extend the TEMP tablespace.
I wrote a few BULK COLLECT INTO to insert about 300,000 like once on the development environment. It seems.
But the code works only against a 000 4000 table of records. I am trying to add more data into the Test table, but yet again, we lack the tablespace on DEV (this time, it's a step a TEMP data)
I'll give it a go against the table of 26 million records on the Production of this weekend. I just want to know if it is worth trying.
Thanks for reading this.
Ann
I really need check that you did not have the sizes of huge line (like several K by rank), they are not too bad at all, which is good!
A good rule of thumb to maximize the amount of limit clause, is to see how much memory you can afford to consume in the PGA (to avoid the number of calls to the extraction and forall section and therefore the context switches) and adjust the limit to be as close to that amount as possible.
Use the routines below to check at what threshold value would be better suited for your system because it depends on your memory allocation and CPU consumption. Flexibility, based on your limits of PGA, as lines of length vary, but this method will get a good order of magnitude.
CREATE OR REPLACE PROCEDURE show_pga_memory (context_in IN VARCHAR2 DEFAULT NULL)
IS
l_memory NUMBER;
BEGIN
SELECT st. VALUE
IN l_memory
SYS.v_$ session se, SYS.v_$ sesstat st, SYS.v_$ statname nm
WHERE se.audsid = USERENV ('SESSIONID')
AND st.statistic # nm.statistic = #.
AND themselves. SID = st. SID
AND nm.NAME = 'pga session in memory. "
Dbms_output.put_line (CASE
WHEN context_in IS NULL
THEN NULL
ELSE context_in | ' - '
END
|| 'Used in the session PGA memory ='
|| To_char (l_memory)
);
END show_pga_memory;
DECLARE
PROCEDURE fetch_all_rows (limit_in IN PLS_INTEGER)
IS
CURSOR source_cur
IS
SELECT *.
FROM YOUR_TABLE;
TYPE source_aat IS TABLE OF source_cur % ROWTYPE
INDEX BY PLS_INTEGER;
l_source source_aat;
l_start PLS_INTEGER;
l_end PLS_INTEGER;
BEGIN
DBMS_SESSION.free_unused_user_memory;
show_pga_memory (limit_in |) "- BEFORE"); "."
l_start: = DBMS_UTILITY.get_cpu_time;
OPEN source_cur.
LOOP
EXTRACTION source_cur
LOOSE COLLECTION l_source LIMITED limit_in;
WHEN l_source EXIT. COUNT = 0;
END LOOP;
CLOSE Source_cur;
l_end: = DBMS_UTILITY.get_cpu_time;
Dbms_output.put_line (' elapsed time CPU for limit of ')
|| limit_in
|| ' = '
|| To_char (l_end - l_start)
);
show_pga_memory (limit_in |) "- AFTER");
END fetch_all_rows;
BEGIN
fetch_all_rows (20000);
fetch_all_rows (40000);
fetch_all_rows (60000);
fetch_all_rows (80000);
fetch_all_rows (100000);
fetch_all_rows (150000);
fetch_all_rows (250000);
-etc.
END;
Maybe you are looking for
-
How can I get my iPhone to my macbook air apps
How can I get my iPhone to my macbook air apps? App store on Mac is not my iPhone apps... should be available?
-
Suggestions as to how I could complete the activation of my iPad after iOS update? I tried for 2 days now to complete the update of iOS on my iPad. Everything was going fine until activation, as I tried to continue, the message "your iPad could not b
-
iPhoto book card and calendar each shuts down the system
iPhoto slide show and Album both work normally. The book features, card & calendar show a loading... indication, but almost immediately the activity stops and no entry except force quit is available. A problem report is generated. A problem earlier
-
laptop battery that went wrong?
I have a laptop Pavilion dv7. It is 18 months old and the (640 GB) HDD crashed. I tokk it to local repair shop and they succeeded him and was told that it was the battery that caused his failure. The battery worked fine for me, but I never noticed an
-
OR PCI-MIO-16-1 &; NI PCI-6070E digital outputs to scb - 68 to the electric circuit
I am designing a circuit and trying to the NI PCI-MIO-16-1 & NI PCI-6070E DAQ from the interface and the SCB-68 to my small circuit. The outputs are 0 (low) to 5 (high) Vcc. I underdstand the NI PCI-MIO-16-1 & NI PCI-6070E are identical regarding the