How to update a column which has 35 millions of rows?
Hi everyone
need help
I am updating a column which has 35 millions of records. When i start update, it is taking like > 60 mins and its not stoping (finishing).
I need to null that column A, and update that column A with the other column B values.
Thanks
kumar
Three common causes for big updates that are slow:
blocking. You can check whether the UPDATE is waiting on another connection to release locks using sp_who2
improperly sized log file. A big update may use of a lot of log space. If you log file is too small, and you have auto-grow enabled (which is the default setting), it will grow whenever needed. But this takes a lot of extra time. You can easily see this
when you view the file size of the log file
if the column you are updating is indexed, the engine may also you tempdb a lot, so tempdb may also grow a lot, which would take a lot of additional time. This is also easy to check by inspecting tempdb's file size
Gert-Jan
Similar Messages
-
HT4623 how to update iphone 2g which has country lock
pls tell me how to update my iphone 2g phone with laetst version which has the country lock
The same way every other model of iPhone is updated, plug it into iTunes.
If it is the original iPhone, the most current version of iOS supported is 3.1.3.
If it is the 3G iPhone, the most current version of iOS supported is 4.2.1.
The 3GS and newer models can all be updated to the current version of iOS, which right now is 5.1.1. -
How to find out the columns which has 16 digit credit card number
Hi All,
I have a requirement where in i need to find out the columns which has 16 digit credit number in it and create a report with owner, table name and column name.
The issue is that the credit card number can be entered in any columns of any table of any schema. For example the credit card number can be entered in any description field(eg: The number is 4001412134642881), in that case i need to filter only the numbers and do the LUHN check to validate the credit card number.
Please provide me a suggestion on how to scanl the values of all the columns to know the column which has credit card number.
Regards,
Raj.Tell me this - how the hell do you have a database with credit card number data and NOT know which columns of which tables contain credit card numbers? (and how on earth is this data NOT encrypted!?)
How is what you want to do, NOT a fishing expedition to hack a database that may or may not be storing credit card details?
And do you honestly think that we should simply trust that once you have extracted these numbers, performed a Luhn algorithm to verify these as credit card numbers, you are not going to fraudulently use these credit card numbers!?
I have marked your posting as an attempt to hack an Oracle database for fraudulent use of credit card data. I hope that your OTN account is terminated soon and trust that your too much of a coding idiot to actually succeed in this endevour. -
How to open the period which has already closed in MM
How to open the period which has already closed in MM.
1. Lock all users out of PRD
2. Take snapshot of MB5L for all materials at company code for current and previous periods
3. Add User parameter MMPI_READ_NOTE with value = current date in this format YYYYMMDD
4. Stop all processing that updates inventory values
5. Run t-code MMPI with correct period
6. Run Z_DEl_HIST_ENTRIES program
7. Take MB5L snapshot for all materials at company code fs01 for current and previous periods
8. Validate that values match on MB5L pre-post snapshots or are appropriate.
9. Unlock all users in PRD
10. Remove User parameter MMPI_READ_NOTE from user ID
chander -
can anyonehelp, i have updated to ios7 which has put a passcode on my ipad, i keep getting the code wrong, i have no itunes or cloud sync
Duncanray10 wrote:
... I keep getting a message stating my ipad needs software to be 10.6.3. ...
You are misreading it... it is referring to iTunes on your computer...
Download and Install the Latest version of iTunes onto your computer...
http://www.apple.com/support/itunes/install/ -
How to handle user preference which has "_" and " " in the name
Hi Experts,
I have a question how to handle value which has like "_" and "space" etc in user preference.
If setting "a_b-c d", I could not retrieve this because it's escaped in database.
So this code can't get value even though I can set it.
Is there any restriction of name? Is there any documentation how to code user prefernece which has non alphabet and number in the name?
I know it's possible to handle the data like adding escaped data. But I don't think this is the best way to retrieve the data. Because nobody confirm it's not problem in the future.
Could you tell me the best way to get these user preference?
Thanks in advance,
Masaaki Tada
Here is a sample.
<%@ page contentType="text/html;charset=Shift_JIS" %><%@ page language="java" import="com.plumtree.remote.portlet.*, com.plumtree.remote.prc.*, java.util.*" %>
<%
/** * UserInfo - Simple Page * Display User Information*/
// VariablesIPortletContext oPortletContext = null;IPortletRequest oPortletRequest = null;IPortletUser oPortletUser = null;IPortletResponse oPortletResponse = null;IRemoteSession s;IUserManager oUser;
/* Get Portlet Objects */
try{oPortletContext = PortletContextFactory.createPortletContext(request, response);oPortletRequest = oPortletContext.getRequest();oPortletUser = oPortletContext.getUser();oPortletResponse = oPortletContext.getResponse();} catch (Exception e) {oPortletContext = null;oPortletRequest = null;oPortletUser = null;oPortletResponse = null;}
String val = oPortletRequest.getSettingValue( SettingType.User, "a_b-c d" );String hoe = oPortletRequest.getSettingValue( SettingType.User, "abcd" );out.println( "a_b-c d: " + val );out.println( "abcd : " + hoe );
oPortletResponse.setSettingValue( SettingType.User, "a_b-c d", "aiueo" );oPortletResponse.setSettingValue( SettingType.User, "abcd", "bbbb" );%>Plumtree recommends that user preference names have only alphanumeric characters in them (a-z, A-Z, 0-9). Any non-alphanumeric characters will be encoded by the EDK.
I strongly suggest that you change your user pref name to something that's alphanumeric. However, if that is not possible, you can use the following workaround: in the web service editor, enter the encoded name for the user pref. There are several ways to get the encoded name.
One way is to encode the pref manually, yourself. Plumtree uses the %u encoded format: each non alphanumeric character is converted into %uxxxx, where xxxx is the Unicode representation of the character. For all ASCII characters, just look at the ASCII hex chart. For example, character "-" has a hex value of 2d. So, a preference name "jane_pref" would be encoded to "jane%u002dpref", and you'd enter the latter value on the preferences page in the web service editor.
The other way to find out the encoded value is to set a preference programmatically and use the HTTP tunnel tool to look at HTTP traffic between the portal server and remote server. The remote server will be sending a HTTP header to the portal server (the header name will probably be CSP-User-Pref) and inside the header you should see the pref name, encoded with %u. Just copy it out of there and into the web service editor.
Hope this helps,
Jane -
How to upload a file which has more than 999 line item through BDC ?
Hello Techards
Hi to all
Can any body tell me how to upload a file which has more than 999 line item through BDC for traction F-02 ?
Thanks in advance.
ShovanHello Shovan,
You split it up to post two accounting documents with the help of a "suspense" a/c.
Say, you have to post the following line items below:
line 1 - dr. - GL a/c X - $1000
line 2 - cr. - GL a/c Y - $1
line 3 - cr. - GL a/c Y - $1
line 1001 - cr. - GL a/c Y - $1
You cannot post the above as a single doc in SAP (because of technical reasons), so you need to break it up into 2 documents as below:
Doc1
line 1 - dr - GL a/c X - $1000
line 2 - cr - GL a/c Y - $1
line 3 - cr - GL a/c Y - $1
line 998 - cr - GL a/c Y - $1
line 999 - cr - SUSPENSE a/c - $3
Doc2
line 1 - dr - SUSPENSE a/c - $3
line 2 - cr - GL a/c Y - $3
Note that there is no incorrect impact on accounting as first we credit suspense a/c by $3 and next we debit the same suspense a/c by $3 as a result the effect is nil. Similarly, we credit $997 to GL a/c Y (which is less by $3) in the first doc which is compensated by the second doc by crediting the shortfall of $3.
Hope this helps,
Cheers,
Sougata. -
How to get the records which has a specified x/y coordinates
Hi,
How to get the records which has a specified x/y coordinates. I have a table which has street data. And another table has a point data. Now I just want to get the records from street data which includes the points in the point data table. Can any one give your suggestions
Thanks and Regards
AravindanAravinda,
If you want to find the line segments which intersect the given
set of points, you can do that with SDO_RELATE.
siva -
I want to update my iphone which has 6.1 to iOS7. Can I do it thru the service center or do I need to do it on my own. Updating at home is lot more inconvinient as the internet connection is not stable.
To add to templeton advice, you need at least 3.5 GB free space to update directly from iPhone.
And don't forget to make a backup at home before you proceed. -
How to clear the node which has multiple attributes
Hello ,
how to clear the node which has multiple attributes.
I've tried this using the method SET_STATIC_ATTRIBUTES_NULL but it's not working.
Thanks,
Sandhya.Hello,
I suggest you to create an internal table or structure clear it and the bind it to the context node.
Another possibility is to try to invalidate the node (method INVALIDATE of interface IF_WD_CONTEXT_NODE).
Regards. -
How to find out the updates using query which has done in Discoverer Admin
Hi All,
I have done some updates in Discoverer Admin like add field in some folders and rename...I want to know the updates which has been done in the front end using sql query.
Could any one please tell me is there any query to find out the updates in Discoverer admin.
Thanks,
KamalHi Siddarth,
Solution :
1) Go to SE16 - Table Name : EKBE (PO History)
2) Field - BUDAT (Posting Date)
3) Transaction event Type:
- 1 (Only GR's )
- 2 (Both GR and IR)
4) We can fetch both GR Numbers and also PO Numbers for which IR has not been done if transaction event - 1.
In addition to MB5S, you can try this also... -
How to find program/TCODE which has updated the tables
Hi All,
Is there any way to find out program or transcation which has updated the tables.
BR
Kamalyou can see in the table CDHDR or CDPOS which will give you the transaction code and program names.
Regards,
Krishna -
How to create special column which represents result of a query
Hi all,
I need your help once more.
The situation is the following:
I have a table MESSAGE which has some billion entries. The columns are msg_id, vehicle_id, timestamp, data, etc.
I have another table VEHICLE which holds static vehicle data (about 20k rows) such as vehicle_id, licenceplate, etc.
My first target was to partition the table via timestamp (by range) and subpartition by vehicle_id (by hash).
So I could easily drop old data by dropping old partitions and tablespaces.
Now comes the new difficult 2nd target: the messages of some vehicles must be kept forever.
My idea is to add a column KEEP_DATA to the table MESSAGE. I could try to partition by timestamp AND KEEP_DATA, subpartion by vehicle_id.
The problem of this idea is that i have to update billions of rows.
It would be perfect if there is a possibility to add this KEEP_DATA-flag to the table vehicle.
Is there any way to "link" this information to a column in MESSAGE table?
I mean something like this:
alter table MESSAGE
add column (select keep_data from vehicle where VEHICLE.vehicle_id = MESSAGE.vehicle_id as keep_message) ;
Is there some possibility like that?
Would the partitioning on this column / statement work?
Would the value of the keep_message be calculated on runtime?
If so will the performance influence be noticeable?
If so will the performance also sink if the application is querying all rows except the keep_message?
Kind regards,
AndreasWhat is your DB version?
The problem of this idea is that i have to update billions of rows. If this is your underlying problem then if you are in 11g and above you can use [url http://docs.oracle.com/cd/E14072_01/appdev.112/e10577/d_parallel_ex.htm]DBMS_PARALLEL_EXECUTE and split your update into multiple chunks and execute it parallel.
I mean something like this:
alter table MESSAGE
add column (select keep_data from vehicle where VEHICLE.vehicle_id = MESSAGE.vehicle_id as keep_message) ; As far as i know such a thing is not possible. -
How to update a column with default in a tabular form.
We have a tabular form that has a submit button that does a multi row update. We would like to update a column with a defaut like APP_USER = updated user when the row is updated. Is this possible and how?
used lovs and conditions.
-
How to Update some column values in some rows in an advanced table
Hi Gurus,
Can any body help on this issue.
I am having a results table which is showing all the queried parties data queried in a seeded page in OCO module.
Lets assume the table contains 10 rows with the below columns
Party Name, Registry ID, Address Country, Match Percentage, Certification Level, Certification Reason, Internal Indicator, Status .
Certification Level, Certification Reason and Internal Indicator are the dropdowns.
The user want to update some of these fields values for some rows randomly.
After doing this if he click on Save button, Only thosed changed rows need to get update using a Custom Procedure.
But here all the rows irrespective of the change getting updated.
So how to capture the modified rows.
Appreciate any inputs..
Thanks
Palepu
Edited by: Palepu on 9 Aug, 2012 4:25 PMNot sure if you got the answer. You need to capture the row which got changed using the below and get the column value using the getAttribute method. This works for single selection row, if it is multi selection then you will have to loop through all selected rows and find the VO attribute value.
String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
Row currentRow = am.findRowByRef(rowReference);
String param1= (String)currentRow.getAttribute("VOAttribute");
Let me know if there are any issues.
Thanks
Shree
Maybe you are looking for
-
The number 1 request of our schedulers is the ability to show a link line from a milestone on one summary swimlane to a milestone on another summary swimlane. We frequently do executive schedules and show swimlane interrelationships is important. Ye
-
It's Comcast email, most links are to articles from the Wall Street Journal. Lately an email from Charles Schwab broker with a link to a pdf file has been doing the same. When I click on the link, it opens within the email frame, which is about 1/3 f
-
Hi, We are building company site with Sharepoint 2013 Enterprise Edition and were wondering what is the difference between Reporting Services Sharepoint Mode and Reporting Services Add In for Sharepoint 2013? What are the roles/purposes of each one?
-
Vertical dividing of a page to two pages when exporting to .pdf
This is the issue : we are having several columns in the report, let's say they are 8, and several pages, let them be 4 and all this on landskape page. The thing we want is when exporting the report to .pdf file to have firstly the 1st page with the
-
Product Allocation--Can we Have in MC94 Planning for 2 or 3 materials
Hi,Experts , As MC94 shows only one column for every Months allocation ,example 07.2009,08.2009......... then---> 1>can we have 2 or 3 materials and 2 or 3 customers for same Production allocation Procedures like can we have 0000000000001-Product All