Linux performance for LVM vs independent partition on 10G XE?
Hi groups,
I am a programmer and now requested to evaluate using Oracle 10G XE to replace MySQL for some of running web application. I remember the old experience that when playing with oracle 8i with linux, the guideline said that datafile of oracle should be placed at a independent partition. I m now testing XE with SUSE Enterprise 9, which using LVM(logical volume management).
So far there's not seen guideline that talking about if 10G XE should using dependent partition. And the case is that SUSE using LVM that application see multiple physical partitions as one logicial partition. This is totally an opposite to what Oracle intended for using independent partition. I would like is that the 4GB datafile limit make this not a concern?
I m not a DBA, thus hoping some gurus can give me some advise. Thanks!
You can separate the redo logs, tablespaces etc in XE onto separate disks if you want. It's a manual exercise but there is nothing to stop you from doing it.
But as Andrea mentioned, this is largely an exercise in futility given that XE is 4 Gb of data and a single CPU. If performance is an issue then you would probably be better to use Standard Edition or Standard Edition One that gives you greater control, and also includes advanced storage management techniques such as Automatic Storage Management.
The default install of XE should be more than adequate for the majority of usages that XE is targeted at. With one proviso - the production release will use a defined flashback recovery area (FRA) for some of the online redo logs, archived redo logs, and backupsets.
We would strongly recommend that if you have more than 1 disk, then the FRA should be placed on a seperate disk other than the one that holds the database.
Similar Messages
-
Horrible linux performance for swing
I have a complex swing gui which consists of a JTable containing data updated by a thread. Under windows, the performance is great. Under linux, the performace is horrible. If I spawn a jDialog, and move it around the gui, the other components take a while to repaint. Spawing dialogs also do not repaint properly. When I click on a jMenu, the menuitems sometimes do not paint until I move the mouse over them.
This is same for the java demos in the j2sdk. The java2d demo and Swingset demo performace is horrible.
I am using java 1.4.1_01 on a p3 900MHz with 512mb of ram. I also tried this on a p4 2GHZ. We are using the stable potatoe release of debian linux.
I understand that swing performance is slower under linux, but what I am seeing is horrible.
Any thoughts or help
Thanks
DaveYou can separate the redo logs, tablespaces etc in XE onto separate disks if you want. It's a manual exercise but there is nothing to stop you from doing it.
But as Andrea mentioned, this is largely an exercise in futility given that XE is 4 Gb of data and a single CPU. If performance is an issue then you would probably be better to use Standard Edition or Standard Edition One that gives you greater control, and also includes advanced storage management techniques such as Automatic Storage Management.
The default install of XE should be more than adequate for the majority of usages that XE is targeted at. With one proviso - the production release will use a defined flashback recovery area (FRA) for some of the online redo logs, archived redo logs, and backupsets.
We would strongly recommend that if you have more than 1 disk, then the FRA should be placed on a seperate disk other than the one that holds the database. -
NNM iSPI Performance for Traffic silentInstall*.properties missing for Linux
HP -- I've been trying to figure out a way to get this information to you, and this is the best I could find. When performing a silent installation of HP NNM iSPI Performance for Traffic, you need the silentInstallExt.properties, silentInstallMaster.properties, and silentInstallLeaf.properties files. These files are not supplied with the Linux installation DVD image (Software_NNM_iSPI_Perf_Traf_Linux_9.20_Eng_TB770-15009.iso) -- you might want to remedy that. If anyone needs to find the files for a silent install on Linux, you can get them from the Windows installation DVD image (Software_NNM_iSPI_Perf_Traf_10.00_Win_TB770-15014.iso) in the Traffic_NNM_Extension, Traffic_Master, and Traffic_Leaf directories.
HP -- I've been trying to figure out a way to get this information to you, and this is the best I could find. When performing a silent installation of HP NNM iSPI Performance for Traffic, you need the silentInstallExt.properties, silentInstallMaster.properties, and silentInstallLeaf.properties files. These files are not supplied with the Linux installation DVD image (Software_NNM_iSPI_Perf_Traf_Linux_9.20_Eng_TB770-15009.iso) -- you might want to remedy that. If anyone needs to find the files for a silent install on Linux, you can get them from the Windows installation DVD image (Software_NNM_iSPI_Perf_Traf_10.00_Win_TB770-15014.iso) in the Traffic_NNM_Extension, Traffic_Master, and Traffic_Leaf directories.
-
[VIDEO TUTORIAL] Installing Arch Linux on GPT/LVM/GRUB2
Hello everyone,
I've recently switched over from running my machine on LVM with a MSDOS partition style, and I was tired of the limitations of it. Such as 4 primary partions or 3 primary and 1 extended. It was also hindering my flexibility since I had to make 1 primary partition that was /boot, which forced me to make an initram image if I wanted to put my / inside of the LVM. The only way I could truly fix all my problems was to move away from GRUB-Legacy (Which I love since it's so easy to configure) over to GRUB 2(Which is not as bad as I thought it was).
I made this video to help people trying to do this combination. I also included the links to further information in the videos' description. It contains a link to GRUB 2 Architecture and moving over to GRUB (on IBM's site), and also ArchWiki resources for further reading.
I hope you enjoy it.
http://www.youtube.com/watch?v=69X9ZYA41xU
After you finish doing this, you will end up with this style:
GPT Partition Layout w/ Protective MBR.
/dev/sda1 - BIOS Boot Partition
/dev/sda2 - Linux LVM (arch is name of LVM)
--> /dev/arch/boot - ext2
--> /dev/arch/swap - swap
--> /dev/arch/root - ext4
--> /dev/arch/home - ext4As a complete newbie to partitioning on Linux I'd like to say how grateful I am to for making this.
You've kept it clear, clean and simple which I appreciate.
As most of my ventures into installing Linux is usually accompanied with a graphical installer a great deal of this is fairly alien. It could be nice to have a wiki entry just laying out a few examples for partitioning and setting up arch in various simple and exotic ways.
Again, thank you for this contribution. (While I quickly transcribe the steps in your video and ready the 'man' command)
Edit:
Basic step by step transcription
[root@archiso ~]# modprobe dm-mod
[root@archiso ~]# dhcpcd
[root@archiso ~]# pacman -Syy gptfdisk
[root@archiso ~]# gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.1
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: not present
Creating new GPT entries.
Command (? for help): [n]
Partition number (1-128, default 1): [RETURN]
First sector (34-[max], default = 34) or {+-}size{KMGTP}: [RETURN]
Information: Moved requested sectory from 34 to 2048 in
order to align on 2048-sector boundries.
Use 'l' on the experts' menu to adjust alignment
Last sector (2048-[max], default = [max]) or{+-}size{KMGTP}: [+32MB]
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): [EF02]
Changed type of partition to 'BIOS boot partition'
Command (? for help): [n]
Partition number (2-128, default 2): [RETURN]
First sector (34-[max], default = 67584) or {+-}size{KMGTP}: [RETURN]
Last sector (2048-[max], default = [max]) or {+-}size{KMGTP}: [RETURN]
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): [8E00]
Changed type of partition to 'Linux LVM'
Command (? for help): [w]
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!
Do you want to proceed? (Y/N): [y]
OK: writing new GUID partition table (GPT).
The operaton has completed successfully.
[root@archiso ~]# pvcreate /dev/sda2
[root@archiso ~]# vgcreate arch /dev/sda2
[root@archiso ~]# vgdisplay
[root@archiso ~]# lvcreate -L 100M -n boot arch
[root@archiso ~]# lvcreate -C y -L 1G -n swap arch
[root@archiso ~]# lvcreate -L 10G -n root arch
[root@archiso ~]# lvcreate -l 100%FREE -n home arch
[root@archiso ~]# lvscan
[root@archiso ~]# mkfs.ext2 /dev/arch/boot
[root@archiso ~]# mkfs.ext4 /dev/arch/root
[root@archiso ~]# mkfs.ext4 /dev/arch/home
[root@archiso ~]# mkswap /dev/arch/swap
[root@archiso ~]# /arch/setup
Prepare Hard Drive
3 Manually Configure block devices, filesystems andmountpoints
Partition Access Method
dev directly by /dev/* (most intuitive but devicefile names can change
Manage Filesystems
/dev/sda1 raw - 32MiB N
/dev/mapper/arch-boot raw - 100MiB N > [IGNORE]
/dev/mapper/arch-home raw - 91000MiB N > filesystem (re)created? [NO] > ext4 home
/dev/mapper/arch-root raw - 10240MiB N > filesystem (re)created? [NO] > ext4 root
/dev/mapper/arch-swap raw - 1024MiB N > filesystem (re)created? [NO] > swap
Choose bootloader
[SKIP]
Configuration
mkinitcpio > HOOKS="...lvm2..."
DONE
Exit
[root@archiso ~]# mount -o bind /dev /mnt/dev
[root@archiso ~]# mount -t proc /proc /mnt/proc
[root@archiso ~]# mount -t sysfs /sys /mnt/sys
[root@archiso ~]# chroot /mnt /bin/bash
[root@archiso /]# dhcpcd
[root@archiso /]# pacman-db-upgrade
[root@archiso /]# pacman -Syy grub2-bios
[root@archiso /]# grub_bios-install --boot-directory=/boot --no-floppy --recheck --debug /dev/sda
[root@archiso /]# grub-mkconfig -o /boot/grub/grub.cfg
[root@archiso /]# exit
[root@archiso ~]# reboot
login
[root@host ~]# $EDITOR /etc/default/grub
#GRUB_GFXMODE=auto
#GRUB_GFXPAYLOAD_LINUX=keep
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
[root@host ~]# chmod -x /etc/grub.d/10_linux
[root@host ~]# $EDITOR /etc/grub.d/40_custom
menuentry "Arch Linux" {
insmod lvm
set root=(arch-boot)
linux /vmlinuz-linux root=/dev/arch/root ro
initrd /initramfs-linux.img
menuentry "Arch Linux Fallback" {
insmod lvm
set root=(arch-boot)
linux /vmlinuz-linux root=/dev/arch/root ro
initrd /initramfs-linux-fallback.img
[root@host ~]# grub-mkconfig -o /boot/grub/grub.cfg
[root@host ~]# reboot
Last edited by Earnestly (2012-01-09 11:51:45) -
Hi all,
Recently I decided to move my small server to LVM. It is used by several people as FTP, Web and Git server. Previously some partitions were created, and I tried to control free space amount via disk quotas, but it looked quite ugly. Also snapshots would be very useful.
I googled for good filesystem type for LVM, but found almost nothing, only general recommendations that it must be resizeable. But what exact filesystems perform well? Basically, there's no need to achieve high read-write speeds, but FS must be relatively stable and nice on frequent resizes.Would ext3 be good on resizes? Afaik there may be some issue with inode counts. Ext4 - yes, but target machine has epic old kernel (something like 2.6.26).
-
Install linux redhat for oracle 10g2
Hi Friends,
I will install linux redhat linux 5 for oracle 10g 2. How to created correct partition of linux to match oracle 10g 2.
I install linux as server style. any advice?
Thanks
JImHi JIm
It is true that for us DBA the OFA is the standard by excellence. You have also the quite good document on that gives you also a lot of examples.
http://www.ss64.com/orasyntax/ofa.html
What is a style server? Do you mean as a template server?
Please note also that if you need to do more than 1 installation you can clone your binaries from your first installation. Ideally you should patch it to he latest release and then make your clone.
1. tar your current binaries under /oracle/product/10.2.0/db_1
2. copy the tar file on the target server under /export/home/oracle and then untar it.
3. cd to new_oracle_home/oui
4. ./runInstaller -clone -silent ORACLE_HOME="<new_oracle_home>" ORACLE_HOME_NAME="<unique_home_name>"
read more on http://download.oracle.com/docs/cd/B19306_01/install.102/b15660/app_cloning.htm
You can also clone your database to other targets
1 Duplicate from source to your targets
1.1 Perform a database backup including archive log
1.2 Create an Oracle password file for the auxiliary instance
1.3 Establish Oracle Net connectivity to the auxiliary instance
1.4 Create an initialization parameter file for the auxiliary instance
1.5 Start the auxiliary instance in NOMOUNT mode
1.6 Mount or open the target database
1.7 Ensure that backups and archived redo log files are available
1.8 Allocate auxiliary channels if needed
1.9 Execute the DUPLICATE script
Hope this will help you to get the templates installed.
Cheers
Hubert
Edited by: Hub on Oct 25, 2008 1:52 PM -
[SOLVED] linux-ck with LVM on encrypted block device
Hi,
Following all the good things I've read about the linux-ck kernel, I have tried to install the atom version from repo-ck on my netbook.
I have an encrypted block device which is used as a PV for LVM. My root partition is a LV on the associated volume group.
With the linux-ck kernel, my root partition is not detected (it says waiting for /dev/sda2, which is the encrypted PV).
After diffing the stock arch .config and the -ck .config, I saw that some things like crypto are compiled as modules in -ck.
I tried rebuilding the linux-ck init image with all theses modules in the MODIULES section of mkinitcpio.conf (MODULES="udlfb dm_crypt cryptd sd_mod dm_mod ablk_helper aes_i586 aes_generic"), but it hasn't helped.
What am I missing ?
Last edited by arnooo (2012-10-31 09:34:00)My /boot/grub/menu.lst CK entry was loading the wrong init image... I had the epiphany after typing my post, so maybe it wasn't completely useless. I need to get a rubber duck
-
Performance issues with version enable partitioned tables?
Hi all,
Are there any known performance issues with version enable partitioned tables?
Ive been doing some performance testes with a large version enable partitioned table and it seems that OCB optimiser is choosing very expensive plans during merge operations.
Tanks in advance,
Vitor
Example:
Object Name Rows Bytes Cost Object Node In/Out PStart PStop
UPDATE STATEMENT Optimizer Mode=CHOOSE 1 249
UPDATE SIG.SIG_QUA_IMG_LT
NESTED LOOPS SEMI 1 266 249
PARTITION RANGE ALL 1 9
TABLE ACCESS FULL SIG.SIG_QUA_IMG_LT 1 259 2 1 9
VIEW SYS.VW_NSO_1 1 7 247
NESTED LOOPS 1 739 247
NESTED LOOPS 1 677 247
NESTED LOOPS 1 412 246
NESTED LOOPS 1 114 244
INDEX RANGE SCAN WMSYS.MODIFIED_TABLES_PK 1 62 2
INDEX RANGE SCAN SIG.QIM_PK 1 52 243
TABLE ACCESS BY GLOBAL INDEX ROWID SIG.SIG_QUA_IMG_LT 1 298 2 ROWID ROW L
INDEX RANGE SCAN SIG.SIG_QUA_IMG_PKI$ 1 1
INDEX RANGE SCAN WMSYS.WM$NEXTVER_TABLE_NV_INDX 1 265 1
INDEX UNIQUE SCAN WMSYS.MODIFIED_TABLES_PK 1 62
/* Formatted on 2004/04/19 18:57 (Formatter Plus v4.8.0) */
UPDATE /*+ USE_NL(Z1) ROWID(Z1) */sig.sig_qua_img_lt z1
SET z1.nextver =
SYS.ltutil.subsversion
(z1.nextver,
SYS.ltutil.getcontainedverinrange (z1.nextver,
'SIG.SIG_QUA_IMG',
'NpCyPCX3dkOAHSuBMjGioQ==',
4574,
4575
4574
WHERE z1.ROWID IN (
(SELECT /*+ ORDERED USE_NL(T1) USE_NL(T2) USE_NL(J2) USE_NL(J3)
INDEX(T1 QIM_PK) INDEX(T2 SIG_QUA_IMG_PKI$)
INDEX(J2 WM$NEXTVER_TABLE_NV_INDX) INDEX(J3 MODIFIED_TABLES_PK) */
t2.ROWID
FROM (SELECT /*+ INDEX(WM$MODIFIED_TABLES MODIFIED_TABLES_PK) */
UNIQUE VERSION
FROM wmsys.wm$modified_tables
WHERE table_name = 'SIG.SIG_QUA_IMG'
AND workspace = 'NpCyPCX3dkOAHSuBMjGioQ=='
AND VERSION > 4574
AND VERSION <= 4575) j1,
sig.sig_qua_img_lt t1,
sig.sig_qua_img_lt t2,
wmsys.wm$nextver_table j2,
(SELECT /*+ INDEX(WM$MODIFIED_TABLES MODIFIED_TABLES_PK) */
UNIQUE VERSION
FROM wmsys.wm$modified_tables
WHERE table_name = 'SIG.SIG_QUA_IMG'
AND workspace = 'NpCyPCX3dkOAHSuBMjGioQ=='
AND VERSION > 4574
AND VERSION <= 4575) j3
WHERE t1.VERSION = j1.VERSION
AND t1.ima_id = t2.ima_id
AND t1.qim_inf_esq_x_tile = t2.qim_inf_esq_x_tile
AND t1.qim_inf_esq_y_tile = t2.qim_inf_esq_y_tile
AND t2.nextver != '-1'
AND t2.nextver = j2.next_vers
AND j2.VERSION = j3.VERSION))Hello Vitor,
There are currently no known issues with version enabled tables that are partitioned. The merge operation may need to access all of the partitions of a table depending on the data that needs to be moved/copied from the child to the parent. This is the reason for the 'Partition Range All' step in the plan that you provided. The majority of the remaining steps are due to the hints that have been added, since this plan has provided the best performance for us in the past for this particular statement. If this is not the case for you, and you feel that another plan would yield better performance, then please let me know and I will take a look at it.
One suggestion would be to make sure that the table was been recently analyzed so that the optimizer has the most current data about the table.
Performance issues are very hard to fix without a reproducible test case, so it may be advisable to file a TAR if you continue to have significant performance issues with the mergeWorkspace operation.
Thank You,
Ben -
How to setup grub2 with arch linux and xen, lvm on luks
OK, so I tried downloading this package from AUR: https://aur.archlinux.org/packages/xen-git/ , but that has patching problems as noted in the comments. It looks like the packagebuild sets up all the xen stuff for you, but I can't seem to get the package to install because of the error's while patching. If anyone can point me in the right direction on what all the extra files in the PKGBUILD are for or how to debug problems with PKGBUILDs not working because of patches.
So next I just tried to compile the latest xen from git://xenbits.xen.org/xen.git (with ./configure, make, make install) and that seemed to go fine, but I'm a bit confused:
1. Do I have to do any additional configuration for xen when working with arch linux? On ubuntu I could just compile the source, update grub, and make sure to start the x services at runtime.
2. How do I set up grub to load xen with this setup? Right now this is my /boot/grub/grub.cfg:
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda3:vgStorage"
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
#GRUB_SAVEDEFAULT="true"
~
I've tried throwing in a line like: XEN_HYPERVISOR_CMDLINE="cryptdevice=/dev/sda3:vgStorage", but nothing new shows up on the grub boot menu.
First time trying to set up a non-ubuntu system, please help!As for XEN.... well you could always try QEMU/KVM or LXC.
As for the LVM2-on-LUKS/dm-crypt
My /etc/mkinitcpio.conf looks like this...
MODULES="aesni_intel ata_generic ata_piix nls_cp437 ext4 intel_agp i915 dm-snapshot"
BINARIES=""
FILES=""
HOOKS="base udev autodetect block keymap encrypt lvm2 filesystems keyboard fsck shutdown"
/etc/defaults/grub
GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2:root:allow-discards"
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
GRUB_TERMINAL_INPUT=console
GRUB_GFXMODE=auto
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_DISABLE_RECOVERY=true
The running grub config looks like this
/boot/grub/grub.cfg
9 insmod part_gpt
10 insmod part_msdos
53 if loadfont unicode ; then
54 set gfxmode=auto
55 load_video
56 insmod gfxterm
57 set locale_dir=$prefix/locale
58 set lang=en_US
59 insmod gettext
60 fi
61 terminal_input console
62 terminal_output gfxterm
63 set timeout=3
84 menuentry 'Backup, Arch Linux grsec kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-grsec kernel-true-12341234-8080-8080-8080-332200882255' {
85 load_video
86 set gfxpayload=keep
87 insmod gzio
88 insmod part_msdos
89 insmod ext2
90 set root='hd1,msdos2'
91 if [ x$feature_platform_search_hint = xy ]; then
92 search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 BBAAEEAA-FFCC-CCFF-FFCC-AABBCCEEBBAA
93 else
94 search --no-floppy --fs-uuid --set=root BBAAEEAA-FFCC-CCFF-FFCC-AABBCCEEBBAA
95 fi
96 echo 'Loading Linux grsec kernel ...'
97 linux /vmlinuz-linux-grsec root=/dev/mapper/VolGroup00-lvroot rw cryptdevice=/dev/sda2:root:allow-discards quiet
98 echo 'Loading initial ramdisk ...'
99 initrd /initramfs-linux-grsec.img
100 }
Things to note:
Numerical UUID is the UUID of the ROOT partition.
Alphabetical UUIS is the BOOT partition
hd1,msdos2 AND ahci1,msdos2 are how the Grub Bootloader numbers the drives not Linux.
I have my BOOT partition on a USB stick, and it is the Second partition.
So, that would make it, Device 2 and Partition 2
Device numbering starts at 0
Partition numbering starts at 1
Oh, and note that you don't need ":allow-discards" ... at all but certainly if you don't have an SSD. Also note that I included the line numbers so it is very clear that I didn't post the whole thing, but instead what I thought was relevant. Finally, I am loading modules that I don't even need, but what the hell... if it ain't broke, don't fix it
Last edited by hunterthomson (2013-12-04 08:31:45) -
Warehouse partitioning - performance of queries across multiple partitions?
Hi,
We are using Oracle 11.2.0.3 and have a large central fact table with several surrogate ids which have bitmap indexes on them and have fks looking at dimension tables + several measures
(PRODUCT_ID,
CUSTOMER_ID,
DAY_ID,
TRANS_TYPE_ID,
REGION_ID,
QTY
VALUE)
We have 2 distinct sets of queries users look to run for most part, ones accessing all transactions for products regradless of the time those transactions happened (i.e. non-financial queries - about 70%,
queries determining what happened in a particular week - 20% of queries.
Table will have approx 4bn rows in eventually.
Considering adding extra column to this DATE and range partition this to allow us to drop old partitions every year - however this data wouldn't be joined to any other table.
Then considering sub-partitioning by hash of product_id which is surrogate key for product dimension.
Thoughts on performance?
Queries by their nature would hit several sub-partitions.
Thoughts on query performance of queries which access several sub-partitions/partitions versus queries running aganist a single table.
Any other thoughts on partitioning strategy in our situation much apprecaited.
Thanks>
Thoughts on query performance of queries which access several sub-partitions/partitions versus queries running aganist a single table.
>
Queries that access multiple partitions can improve performance for two use cases: 1) only a subset of the entire table is needed and 2) if the access is done in parallel.
Even if 9 of 10 partitions are needed that can still be better than scanning a single table containing all of the data. And when there is a logical partitioning key (transaction date) that matches typical query predicate conditions then you can get guaranteed benefits by limiting a query to only 1 (or a small number) partition when an index on a single table might not get used at all.
Conversely, if all table data is needed (perhaps there is no good partition key) and parallel option is not available then I wouldn't expect any performance benefit for either single table or partitioning.
You don't mention if you have licensed the parallel option.
>
Any other thoughts on partitioning strategy in our situation much apprecaited.
>
You provide some confusing information. On the one hand you say that 70% of your queries are
>
ones accessing all transactions for products regradless of the time those transactions happened
>
But then you add that you are
>
Considering adding extra column to this DATE and range partition this to allow us to drop old partitions every year
>
How can you drop old partitions every year if 70% of the queries need product data 'regardless of the time those transactions happened'?
What is the actual 'datetime' requirement'? And what is your definition of 'a particular week'? Does a week cross Month and Year boundaries? Does the requirement include MONTHLY, QUARTERLY or ANNUAL reporting?
Those 'boundary' requirements (and the online/offline need) are critical inputs to the best partitioning strategy. A MONTHLY partitioning strategy means that for some weeks two partitions are needed. A weekly partitioning strategy means that for some months two partitions are needed. Which queries are run more frequently weekly or monthly?
Why did you mention sub-partitioning? What benefit do you expect or what problem are you trying to address? And why hash? Hash partitioning guarantees that ALL partitions will be needed for predicate-based queries since Oracle can't prune partitions when it evaluates execution plans.
The biggest performance benefit of partitioning is when the partition keys used have a high correspondence with the filter predicates used in the queries that you run.
Contrarily the biggest management benefit of partitioning is when you can use interval partitioning to automate the creation of new partitions (and subpartitions if used) based solely on the data.
The other big consideration for partitioning, for both performance and management, is the use of global versus local indexes. WIth global indexes (e.g. a global primary key) you can't just drop a partition in isolation; the global primary key needs to be maintained by deleting the corresponding index entries.
On the other hand if your partition key includes the primary key column(s) then you can use a local index for the primary key. Then partition maintenance (drop, exchange) is very efficient. -
Linux Performance Monitoring Scripts
Hi Friends,
My boss ask me to give weekly reports about the performance of the server.
He wants the report in excel formant.
I heard about vmstat, iostat,sar
Are these the only command I need to monitor the performance of linux?
Can you share me some scripts about monitoring linux performance that save data into txt file? and
is being gathered (stats) every hour on top of the hour?
Thanks a lot,
MsKThanks gentlemen,
But I can not grasp either the ideas that you are explaining. :(
It is not helpful that at some point or at all points, the report said that all the CPU and MEMORY were 100% used?
At least there is a trigger or reason to start investigating was is running on the server.
For example
[root@oracleprod ~]# vmstat 5 10
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
3 0 215040 21612 18548 8042292 3 4 406 129 12 13 14 1 82 3
2 0 215040 25484 18480 8037940 0 0 2 192 1037 522 21 4 74 0
1 0 215040 25476 18496 8037924 0 0 0 32 1013 443 21 5 75 0
1 0 215040 25156 18512 8037908 0 0 0 58 1010 452 21 5 74 0
1 0 215040 24772 18532 8038148 0 0 24 46 1008 482 21 5 74 0
1 0 215040 24540 18548 8038132 0 0 0 45 1006 501 21 5 74 0
1 0 215040 24540 18564 8038116 0 0 0 23 1006 439 22 3 75 0
1 0 215040 24156 18580 8038100 0 0 0 302 1061 558 22 4 74 0
2 0 215040 24028 18596 8038084 0 0 0 56 1014 449 24 1 74 0
1 0 215040 23772 18604 8038076 0 0 2 22 1020 636 26 1 73 0Does vmstat not telling whats happening to system? or at these statistics useless :(
Thanks a again -
Hi,
I have just purchased a new PC and would like to use oracle ASM, could anyone suggest the best free linux distro for this purpose.
I have read recently that there are problems when trying to use ASM on Ubuntu,.... does anyone have any suggestions of a suitable distro?
Thanks in advance806595 wrote:
Hi,
I have just purchased a new PC and would like to use oracle ASM, could anyone suggest the best free linux distro for this purpose.
I have read recently that there are problems when trying to use ASM on Ubuntu,.... does anyone have any suggestions of a suitable distro?
Thanks in advanceWhat do you plan on doing with it?
If you're looking to learn Oracle then i would ditch ASM as a starting point (it'll complicate your life to begin with) and go with just installing the database, working from there. A simple and effective installation i've done a couple of times is Oracle XE on Ubuntu (very smooth installation, never a problem). This is a great lightweight installation suitable for learning.
I have CentOS running Oracle 11.2 on a PC at home with ASM (did it for a learning experience) and it was quite a pain to get going (though i'm admittedly no DBA with minimal *nix experience ... was a great learning experience though). Once going it's pretty smooth, though every time the kernel gets upgraded i have to head out to find new RPM's for ASM to be able to properly communicate with the Kernel (if you don't do this, you perform a kernel upgrade and reboot your machine you're going to be without a database).
So it really depends on what your level of experience is, how much patience you have, and what you're looking to get out of the experience. -
Does somebody knows how to install linux performance pack because me i didn't suceed and i think that maby archive is broken (i downloaded it many many times as it is always the same ) here i put what was in my console or maby if there is another site to download i will be happe for a tip. I need performance pack so cross-over platform is not for me.
Do you agree to the above license terms? [yes or no]
yes
Permit recording from an applet? (see readme.html) [yes or no]
yes
Permit writing local files from an applet? (recommend no, see readme.html) [yes or no]
yes
Unpacking...
tail: cannot open `+309' for reading: No such file or directory
Extracting...
./install.sfx.7509: line 1: ==: No such file or directory
./install.sfx.7509: line 3: syntax error near unexpected token `)'
./install.sfx.7509: line 3: `5���3��n�N�_�^����[UQU599��;����r�����_�����KK)C{<>���<<�������1vp������"����������"QQR�����rqp����"���hj��W�jYn�d!���������L���L��^ 88�$�������,����i������V~�mn.�7w^����,�;M��`�����A$D����� @���wA'I have just come across this problem installing jmf-2_1_1e-linux-i586.bin.
You can get around it by editing the installer BEFORE running it (use vim or gvim with the -b option as it is a partially binary file).
On line 267 there is the offending command 'tail +309'. Change this to 'tail -n+309' i.e. tail from line 309 onwards, hence skipping the install script itself.
Save the file and run it again. -
Linux performance pack IOException: unexpected revents in poll
I have the unsupported Linux performance pack running with WLS 5.1 +
SP5. And because it is unsupported, all questions are to be on this ng.
When garbage collecting (either via weblogic console or shutting down
wls), I always get the exception shown below. Note that it always happen
between the "Before" and "After" figures for the garbage collection:
Mon Sep 18 10:47:26 GMT+10:00 2000:<I> <GC> GC: Before
free/total=58111800/67108856 (86%)
Mon Sep 18 10:47:26 GMT+10:00 2000:<E> <Posix Performance Pack> Failure
in processSockets()
java.io.IOException: unexpected revents in poll
at weblogic.socket.PosixSocketMuxer.poll(Native Method)
at
weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java,
Compiled Code)
at
weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java,
Compiled Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
Compiled Code)
Mon Sep 18 10:47:26 GMT+10:00 2000:<I> <GC> GC: After
free/total=63428680/67108856 (94%)
Mon Sep 18 10:47:26 GMT+10:00 2000:<I> <WebLogicServer> Invoking garbage
collection
Regards,
John SalvoYes, the server does not seem to be affected.
Here is my config:
WLS 5.1 SP5
Blackdown JDK 1.2.2 FCS
RH 6.0 with the following updated:
2.2.16 kernel
glibc 2.1.3
Rob Woollen wrote:
>
Interesting, I suspect that this message is benign. Does the server
continue to function properly after the message?
Also, what java vm are you using on Linux? I believe only the native
threads jvms will work correctly with the performance pack. IBM's 118,
IBM's 130, sun's 130, and Blackdown's 122 are all native thread
implementations.
-- Rob
[email protected] wrote:
I have the unsupported Linux performance pack running with WLS 5.1 +
SP5. And because it is unsupported, all questions are to be on this ng.
When garbage collecting (either via weblogic console or shutting down
wls), I always get the exception shown below. Note that it always happen
between the "Before" and "After" figures for the garbage collection:
Mon Sep 18 10:47:26 GMT+10:00 2000:<I> <GC> GC: Before
free/total=58111800/67108856 (86%)
Mon Sep 18 10:47:26 GMT+10:00 2000:<E> <Posix Performance Pack> Failure
in processSockets()
java.io.IOException: unexpected revents in poll
at weblogic.socket.PosixSocketMuxer.poll(Native Method)
at
weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java,
Compiled Code)
at
weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java,
Compiled Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
Compiled Code)
Mon Sep 18 10:47:26 GMT+10:00 2000:<I> <GC> GC: After
free/total=63428680/67108856 (94%)
Mon Sep 18 10:47:26 GMT+10:00 2000:<I> <WebLogicServer> Invoking garbage
collection
Regards,
John Salvo -
Linux performance pack jmf2.1.1e is damaged
The download for the linux performance pack of the java jmf2.1.1e is damaged and needs repair.
Does anyone know someone at Oracle to contact and report the error ?To report it you'll need to disclose the link to exactly which download you are trying to get, and the type of workstation you're installing to.
You need to make sure you match the word size. e.g. 64bit download to 64bit workstation.
Maybe you are looking for
-
Score export to PDF creating corrupt file
I have a three page score in the "guitar mix" format. Using the camera tool to export to a PDF, page 1 comes out fine, but pgs 2 and 3 won't open in Preview. It says the file is corrupt. I have restarted the machine already. No change.
-
Themes not appearing in appn mngr
can anyone tell me how to remove themes I installed in my mem card not appearing in my appn mngr....?? the more I help....the more I feel good...
-
IPod Nano 8GB -- No Summary Tabs, etc...
Just bought a new 8GB iPod nano. Apart from the fact that it won't sync (the dreaded "Error -48"), I also can't access the Summary, Music, Podcasts, etc. tabs... With my previous iPod, these appeared in a pane on the right hand side of iTunes. Now al
-
My operating system is Mac OS X v 10.6 .. Photoshop no longer supports this operating system, so what do I have to do now?
-
Hi, I have a report where material is one of the output field. When user double clicks on material number it should call MM03 from the report and it should directly take to Accounting 2 view. How can it be done. Do let me know. Regards, SP