How to calculate the partition size in range partition,by value
hi all,
The primary key is number for the table.
I have 5543201 records in a table.
If I want to break them in 7 equal partition as per the primary key,how do i achieve this?
rgds
s
I probably don't understand it...but I would say:
5543201/7=791886
range 1 : 0....791886 (1x 791886)
range 2 : 791887....1583772 (2 x 791886)
range 3 : 1583773 .... (3 x 781886)
tange 4 : ......
HoweverI doubt whether this is a smart aproach for partitioning.
I would say that a patitioning on date, or some key-value is more applicable.
But hey...I don't know the further requirements.
Cheers Martijn
Similar Messages
-
Hi,
I am having a table of 4 column. First column is varchar2(10), Second column is Number(5), Third column is char(10) and Fourth column is Number(12,2).
Now how to calculate the size of each row. I want to know how much space it will take for each row.
Thanx & Regards,
SwarupFor a complete discussion of storage requirements for different datatypes see the Oracle 8i Concepts manual.
All Oracle documentation is available on-line via the 'Documentation' link on the OTN home page.
Your Col2 NUMBER(5) will take 4 bytes if it holds a 5 digit positive or negative number.
Your Col4 NUMBER(12,2) will take 7 bytes if it holds a number with 12 digits that is positive and will take 8 bytes if it holds a number with 12 digits that is negative.
The following is from the Concepts manual Chapter 12 (Copyright by Oracle)
Built-In Datatypes 12-9
Internal Numeric Format
Oracle stores numeric data in variable-length format. Each value is stored in
scientific notation, with one byte used to store the exponent and up to 20 bytes to
store the mantissa. The resulting value is limited to 38 digits of precision. Oracle
does not store leading and trailing zeros. For example, the number 412 is stored in a
format similar to 4.12 x 10 2 , with one byte used to store the exponent (2) and two
bytes used to store the three significant digits of the mantissa (4, 1, 2). Negative
numbers include the sign in their length.
Taking this into account, the column size in bytes for a particular numeric data
value NUMBER ( p), where p is the precision of a given value, can be calculated
using the following formula:
ROUND((length( p)+ s)/2))+1
where s equals zero if the number is positive and s equals 1 if the number is
negative.
Zero and positive and negative infinity (only generated on import from Version 5
Oracle databases) are stored using unique representations. Zero and negative
infinity each require one byte; positive infinity requires two bytes.
null -
How to calculate the size each PSA request or all PSA for the Datasources?
Hi All,
Can anybody tell me how to calculate the size of each PSA Request or all PSA's requests for all datasources?
Regards,
RajeshHi ,
PSA technical name can be found as,
1)Right click on your Data Target,go to Display dataflow,click on the PSA ,here you can find the technical name.
2)Goto RSRV tcode>PSA Table>Consistency between PSA Partitions and SAP Administration-->Give your Infosoure name,it gives u PSA technical name also,
Thanks&Regards,
Praveena. -
How do I calculate the total size of selected folders?
Hello
My question is:
How do I calculate the total size of selected folders?
Thank youIt does show the aggregate size.
Command-Option-I opens the Inspector window. (Or open the File menu and hold the Option key. Get Info turns into Show Inspector.) The Inspector is similar to the Get Info window but it shows aggregate info for multiple selections. It is also dynamic — if you change the selection while the Inspector is open, the info changes to reflect the current selection. -
How to calculate the size of web forms in hyperion planning?
Hi Experts,
I am trying to calculate the size of planning forms in Hyperion smart view., but i am unable to find out the way to calculate.
Can you pls explain how to calculate the size of web form in Smart view?
--- Srini.Hi Srini,
First, here is what Oracle says:
Data Form Size Estimation:
To get a rough estimate of data form size, open the data form and select File > Save As from the browser. The size of the .HTML file is the portion of the data form that changes based on grid size. The .JS files remain the same size and can be cached, depending on browser settings. Information such as data form definitions, pages, and .gif files are not compressed when data forms are opened and sent to the Web browser.
I have not been able to find out using their method.
In any case, you can find out the size of grid by using below
1. Right click on the form grid and click "View source"
2. Save the source file as "Example.html"
3. Right click the saved file and click "Properties"
4. The Form size whould be same as that of file..
Let me know if it helps.
Cheers
RS -
How to calculate the HFM Cube size in SQL Server-2005
Hi
How to calculate the HFM Cube size in SQL Server-2005 ?
Below query used for Oracle. Then what is query for SQL Server?
SQL> select sum(bytes/1024/1024) from dba_segments where segment_name like 'FINANCIAL_%' and owner='HFM';
SUM(BYTES/1024/1024)
SQL> select sum(bytes/1024/1024) from dba_segments where segment_name like 'HSV FINANCIAL%' and owner='HFM';
SUM(BYTES/1024/1024)
Regards
SmileeWhat is your objective? The subcube in HFM is a concept which applies to the application tier - not so much to the database tier. The size of the subcube is the unique number of data strips (data values for January - December inclusive, for example) for the given entity, currency triplet or Parent.Child node. You have to account for parent accounts and customs which don't exist in the database but are generated in RAM in the application tier.
So, if your objective is to find the largest subcubes, you could do this by querying the database and counting the number of records per entity/value (DCE tables) or parent.child entity combination (DCN tables). I'm not versed in SQL, but I think the script below would just tell you the schema size and not the subcube sizes.
Check out Accelatis.com for a third party software product that can do this for you. The feature is called the Subcube Analyzer and was written by the same team that wrote HFM, so they ought to know how this works :-)
--chris -
Does anyone know if there is a decent algorithm/method to calculate the shared pool size in Oracle 8.1.7.
look my answer on your thread about db cache size
How to Calculate the DB Block Buffer value. -
How to calculate the byte tranfer to the http server
Hi,
I'm developing a multiplayer game on mobile phone.
At the end of the connexion, I need to know how many bytes were sent and received from the http server.
Here is the part code for the connexion to the server :
HttpConnection connection = (HttpConnection)Connector.open(request);
connection.setRequestMethod(HttpConnection.GET);
InputStream is = connection.openInputStream();
long length = connection.getLength();
byte[] datach = new byte[1];
int ch = 0;
while(is.read(datach) != -1)
ch = datach[0];
b.append((char)ch);
String s = b.toString();The size of each data I have to send or receive is less than 50 bytes.
All I do for now is adding the request size and the server response size.
For each request, I have to count the header size and the data size. But I don't know how to find the header size of my request.
And for each response from the server, I count the header size and the data size with connection.getLength().
I don't know whether it's the right method.
Does anyone know a better method to calculate exactly the bytes sent and received?TCP/IP "overhead" is basically 20%.
-
How to set the frame size?
Hi,
Can some one show me how to set the frame size in this program? History: I have created a window and added a button but its to small. So I want to increase the size of the frame to at least 600X400 pixel.
private static void showGUI() {
//Create and set up the window.
JFrame frame = new JFrame("ButtonDemo");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
Main newContentPane = new Main();
newContentPane.setOpaque(true); //content panes must be opaque
frame.setContentPane(newContentPane);
//Display the window.
frame.pack();
frame.setVisible(true);
}It would be nice if you could show me how to do it.
Thank you very much for reading this.Challenger wrote:
Simply adding
frame.setSize(new Dimension(600,400));to the end of your code should work perfectly.Or, if you want to do it correctly, .setPreferredSize() on your frame before you .pack() it. The default layout manager for JFrame is BorderLayout, which uses the preferredSize of each component to calculate sizes during the .pack() call. -
How to view the physical size of objects
Hi
Please advise how to view the physical size of objects like tables, indexes, materialize views etc.
Wishes
JawadTo see the physical size of objects like tables, indexes, use
USER_SEGMENTS where SEGMENT_TYPE=table/index/partition etc.
But for views/packages/java/trigger, you can only see rough estimate in USER_OBJECT_SIZE -
How to calculate the mt_bf (optimum blocking factor) in mtio.h?
Hi geniuses,
One of our customers asks our tape driver to support the mt_bf defined as optimum blocking factor in mtget structure in mtio.h. The mt_bf is supported in MTIOCGET ioctl in Solaris native tape driver -- st. I can not find any Solaris document how to calculate the value for Developers. Please help me to figure out if you know the answer.
Thanks in advance!I would have liked this as a homework assignment when I was in college - beats the heck out of "find the range of a given artillery shell..."
good luck with it, looks fun
Lee -
Ck11n:how to calculate the Quantity?
Dear all.
I use the tcode ck11n to create material cost estimate with quality structure.
And input the parameter like below:
Material = 600000-000000-0012
plant = 1000
Costing Variant = PPC1
Costing Lot Size = 1
After press return,the sap show the Itemization for material like below:
20.11.2008 Dynamic List Display 1
Itemization for material 600000-000000-0012 in plant 1000
Material 600000-000000-0012
Plant 1000
Costing Variant PPC1 Standard Cost Est. (Mat.)
Costing Version 1
Costing Date from-to 01.12.2008 - 31.12.9999
Lot Size 1 KARCarton
Cost Base 1 KARCarton
Cost of Goods Manufactured
ItmNo
ItemCat
Resource
Cost Eleme
Total
Fixed
Currncy
Quantity
Un
1
E
J0103033 WC1 A03
1001
14,400.00
7,200.00
CNY
3,600
CAR
2
E
J0103033 WC1 A01
1001
25,200.00
10,800.00
CNY
3,600
CAR
3
E
J0103033 WC1 A02
1001
14,400.00
7,200.00
CNY
3,600
CAR
4
E
J0103033 WC1 A04
1001
14,400.00
7,200.00
CNY
3,600
CAR
5
E
J0103033 WC1 A05
1001
14,400.00
7,200.00
CNY
3,600
CAR
6
M
1000 600000-000000-0013
40000002
9.00
0.00
CNY
3
CAR
7
G
CC_AT01 41000001
41000001
2.25
0.00
CNY
82,811.25
39,600.00
CNY
At the first line,the Resource was "J0103033 WC1 A03",and the Quantity was "3600".
I don't know why the Quantity was "3600" or where the Quantity come from?
So I need someone tell me how to calculate the Quantity?
Thank you so much.
Regards
YodaHi,
Pl note the Item Category, " M "- Material - The 3 quantity has been picked up from BOM correctly.
You are referring to Quantity 3600, which is against item category - E. Item category " E" means Internal activity allocation i.e the date flows through assignment to Routing. Check the Work center, Cost center & Activity types J0103033 WC1 A03 1001.
Now i think it is clear.
Cheers !
Siva
Cost of Goods Manufactured
ItmNo ItemCat Resource Cost Eleme Total Fixed Currncy Quantity Un
1 E J0103033 WC1 A03 1001 14,400.00 7,200.00 CNY 3,600 CAR
2 E J0103033 WC1 A01 1001 25,200.00 10,800.00 CNY 3,600 CAR
3 E J0103033 WC1 A02 1001 14,400.00 7,200.00 CNY 3,600 CAR
4 E J0103033 WC1 A04 1001 14,400.00 7,200.00 CNY 3,600 CAR
5 E J0103033 WC1 A05 1001 14,400.00 7,200.00 CNY 3,600 CAR
6 M 1000 600000-000000-0013 40000002 9.00 0.00 CNY 3 CAR
7 G CC_AT01 41000001 41000001 2.25 0.00 CNY -
Guys,
Please can you tell me how to find the partition name from the table for say today ("SYSDATE") assuming that the table is partitioned by Date ( monthly )
ie,
I need to find the partition belonging to the current month, on which i am working
Thanks
GBased on martina's suggestion (can be of course improved, maxvalue should be handled as well):
SQL> create table p(id number,time_stamp date)
2 partition by range(time_stamp)
3 (
4 partition p1 values less than(date '2007-10-01'),
5 partition p2 values less than(date '2007-11-01'),
6 partition p3 values less than(date '2007-12-01'),
7 partition p4 values less than(date '2008-01-01'),
8 partition p5 values less than(date '2008-02-01'),
9 partition p6 values less than(date '2008-03-01')
10 )
11 /
Table created.
SQL> create or replace function date_from_long(p_tabname varchar2,
2 p_partname varchar2)
3 return date is
4 l_long long;
5 l_date date;
6 begin
7 select high_value
8 into l_long
9 from user_tab_partitions
10 where table_name = p_tabname
11 and partition_name = p_partname;
12 if substr(l_long, 1, 7) = 'TO_DATE' then
13 execute immediate 'select ' || l_long || ' from dual'
14 into l_date;
15 return l_date;
16 else
17 return null;
18 end if;
19 end;
20 /
Function created.
SQL> select table_name,partition_name,
2 date_from_long(table_name,partition_name) high_value
3 from user_tab_partitions
4 where table_name='P'
5 order by 3
6 /
TABLE_NAME PARTITION_NAME HIGH_VALUE
P P1 01.10.2007 00:00:00
P P2 01.11.2007 00:00:00
P P3 01.12.2007 00:00:00
P P4 01.01.2008 00:00:00
P P5 01.02.2008 00:00:00
P P6 01.03.2008 00:00:00
6 rows selected.
SQL> select
2 max(partition_name)
3 keep
4 (dense_rank first order by date_from_long(table_name,partition_name)) part_name
5 from user_tab_partitions
6 where table_name='P' and date_from_long(table_name,partition_name)>=sysdate
7 /
PART_NAME
P2Best regards
Maxim -
How to make the Partition on my laptop hard disc
Dear Sir
I purchased new HP lap top, I would like to partition on my hard disc.
Please give me the suggestion for how to take the back up for my new laptop its necessary or not and how to create the partition on my hard disc System information
i5 second generation
Windows dome premium 64 bit
Hard disc size 640gb
4gb ram
Thanks and Regards
SathishPerfect Solution to Problem:
Precautions:
1.Create your recovery DVD's from recovery partition before proceding, or order them from hp so as in case of any error or in worst case system can be set to factory restore.
2.BACK UP YOUR DATA.
3.FOLLOW ON YOUR OWN RISK , NO RESPONSIBILTY FOR DATA LOSS , SYSTEM CRASH, OR LOSS OF RECOVERY PARTITION.
4.Hopefully you have read this , if any consequences arises take it on your part , nothing to do with it, you can leave the rest of reding part if not ready,
THANKS FOR READING........
OOP'S you are here,,,,,,,,,then lets continue at your risk..........
Statement:
You are using this guide at your own risk. I don't take any responsibility for any problems.
Important informations !
Before you will do anything please create a set of recovery discs and back up all important data.
Both these steps will save you a lot of troubles if something will go wrong.
Resource:
From experience
Remember that if you will decide to use the recovery discs or the F11 option to restore the PC to its originalcondition, all partitions which were created by you will be lost and all the data which were stored on them willalso be lost.
Introduction:
Below screenshot shows pre-configured partitions on HP notebook with pre-loaded Windows 7.
As you see mounted HDD has four primary partitions:
C - partiton with the operating system.
HP_TOOLS - partition which allow to use diagnostic tools after pressing F2 on startup.
RECOVERY - partiton which allows to recover system by pressing F11 on startup.
SYSTEM - active partition which boots the operating system.
Here begins our problem. A standard partition table is only able to store information about four partitions.
This means that a hard disk could have a maximum of four partitions. The four standard partitions are oftencalled the primary partitions.
To deal with this limitation we may:
----> Delete hp tools partiton , and create new logical partion, BUT RECOVERY MEDIA SET HAVE BEENCREATED BEFORE......
PROCESS:
Note:
Please perform each operation individually.
Using several operations at one time may end with fatal error.
1.Hope you have your recovery media , recovery media dvd set and DRIVER DVD,if not then please get it first for safety..
2. Download and install MiniTool Partition Wizard Home Edition.
3.Please back all of your data on HARDDISK before proceding.......
4.Go to START> COMPUTER > RIGHT CLICK ON IT > MANAGE
5.A window opens, select disk management from it , given on left hand side....
6.It will display your harddisk partitions as displayed in image.....carefully locate HP_TOOLS Partition in given table.....
7.Right click on HP_TOOLS Partition and Delete it.........it will prompt for response say yes.........
8.Now must have left with 3 partitons.........HP_TOOLS have been deleted...
9.Now action time...........
10.Start Minitool Partition wizard.......it will diaplay your partitons.........select C: partition......right click on it .....select option move/resize...
11.New dialog box appears displays currents stats use the drag corners on top to reduce size for C: drive ......set the new size according to use..........But new size must not be less than 150 gb to avoid any data loss.....
12.leave rest of options intact.........click ok...........this will return you to minitool partiton wizrd home screen........click on apply at leftmost top corner..........it asks for permission say yes........then it displays that drive is in use you need to restart............
13.Click on Restart Computer........
14.Your Computer will restart in Mini tool partition boot mode dont press any key...........after loading it will start processing and shrinking............then copying data...........it will restart automatically after progress is done 100%..........be patient.........it takes upto 5-10 mins......
15.If every thing goes fine your computer will start normally.........then go to START> COMPUTER > RIGHT CLICK ON IT > MANAGE
16. New window opens, select disk management from it , given on left hand side....now you can see your C: partition has been reduced in size according to your size specified...........and unallocated space have been created along by C: partion.
17. Finally right click on unallocated space and select NEW SIMPLE VOLUME......a dialog box appers specify size to create a new logical partition...........you may create any number of logical drives till there is free space left...........
18.Now open My Computer ...........you can see your new custom partitions have been created........
19. Done.........enjoy.......
SUPPLEMENTARY:-
1. You can create any image creation tool......to create image of your C: Partiton and save image in yourcustom created partitons.......
2. In future if you want to recover system,,,,,you may use your created image using imaging software forrestoring your C: partiton......may be helpfull instead of running recovery.........
Drawbacks:
Running Recovery form DVD or recovery partiton may delete your custom created partitons...........all datamay be lost.....so regularly backup your data.....
RESOURCES:
http://h30434.www3.hp.com/t5/Other-Notebook-PC-Questions/How-to-repartition-HDD-of-HP-notebook-with-...
FROM EXPERIENCE
ADVICE:
USE IMAGE CREATION SOFT FOR CREATING SYSEM IMAGES AND RESTORE SYSTEM FROMTHEM.........WILL HELP SAVING YOUR CUSTOM PARTITONS...........
WARNING:
ALL INFO IS FROM BEST OF MY KNOWLEDGE,,,,,,,,,,BUT TAKE NO RESPONSIBILTY FOR DATALOSS,,
SYSTEM CRASH,, OR VIOLATION OF WARRANTY...........
After you delete HP_TOOLS partition, BEWARE about one thing: do you have something called HP support assistant in your laptop? if yes, beware when it wants to upgrade HP software, because it will make HP_TOOLS partition reappear without your permission!!
(u may ask for any further any queries,,,,,wll b hppy to help)
Your Support:
ACCEPT IT AS SOLUTION,,,REFER TO OTHER,,, AND CLICK ON KUDOS!!!!!!!!!!!
THANKS,,,,,,,,,(SRY FOR BAD ENGLISH)
,,,,,,,Clicking the White Kudos star on the left is a way to say Thanks!,,,,,,,,
////////Clicking Accept as Solution on a Reply that solves your issue helps others who are searching/////// -
How to calculate the unit for RATE?
Hey All,
I am not sure if there is something standard for this or not.
I am calculating the 'Rate' by using 'Value/Amount' and 'Quantity' as follows -
Rate == Value / Quantity
I need to calculate the unit for the rate as below -
Rate unit == Value unit (Currency) / Quantity unit (Base_uom)
(for example -
if value is 1000 USD and quantity is 10 TO then Rate should come out as 100 USD / TO)
Could anyone please suggest how to calculate the unit in this case?
Many Thanks!
TanuHi,
Go through the below link it may give some idea
http://help.sap.com/saphelp_nw04/Helpdata/EN/19/1d7abc80ca4817a72009998cdeebe0/content.htm
Regards,
Marasa.
Maybe you are looking for
-
How to move files from my full Time Machine to a different external drive?
Hello there. I have a 320 GB external hard drive which I have been using as my "Time Machine." It recently filled it up and I would like to move the data (files, music, pics, etc.) to a larger external hard drive. HOWEVER, I don't want this new driv
-
How to control junk emails in Outlook 2011
Hi Guys, I have installed MS office 365 on my new Mac Book Pro. I receive lots of junk emails in my outook email. Before I used windows and had Norton Internert Security on my Laptop, was no problem at all. Since I used Mac, I cannot control junk ema
-
Hello, I would like to dynamically set the width of a flash chart, as the number of columns I display may vary a lot. Is there a way to do that ? Actually, I set a fixed width in the chart attributes, and I imagine that it is used in the #WIDTH# tag
-
Webshpere Studio Site Developer 5.1.1
We have added the Kodo plug-in as instructed into the C:\Program Files\IBM\WebSphere Studio\Site Developer\v5.1.1\eclipse\plugins\ directory. When you select package.jdo in your project and then "Ehance Metadata" menu item of the Kodo menu we get the
-
I had to wipe my ipod touch4 this weekend. Now when I sync it to restore everything, not all the items (music, videos, photos) that were backedup on icloud are syncing over. Help?