A question regarding database table partitioning and table indexes in 10g
We are considering partitioning a large table in our 10g database, in order to improve response time. I believe I understand the various partitioning options, but am wondering about the indexes built over the table. When the table is partitioned, will the indexes also be partitioned "automatically"? Or do I need to also partition the indexes as well?
Thank you in advance to any and all who respond to this question.
Hello,
When you build your partiton table you just need to create indexes locally and they will be partitioned automatically, see following example
CREATE TABLE YY_EVENT
PART_KEY DATE NOT NULL,
SUBPART_VALUE NUMBER NULL,
EVENT_NAME VARCHAR2(30 BYTE) NULL,
EVENT_VALUE NUMBER NULL
TABLESPACE TEST_DATA
PARTITION BY RANGE (PART_KEY)
PARTITION Y_EVENT_200901 VALUES LESS THAN (TO_DATE(' 2009-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE TEST_DATA,
PARTITION Y_EVENT_200902 VALUES LESS THAN (TO_DATE(' 2009-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE TEST_DATA
-- This will create paritioned indexes automatically
CREATE INDEX MY_IDX ON YY_EVENT
(EVENT_NAME)
TABLESPACE TEST_DATA
LOGGING
LOCAL;Regards
Edited by: OrionNet on Feb 25, 2009 12:05 PM
Similar Messages
-
Beginner question regarding 32-bit mixing and mixdown workflow
Hello
I have a beginner question regarding 32-bit mixing and mixdown.
If I edit some 16Bit, 44.1kHz Stereo WAV Files and put them into multi-track view to do crossfades, how should I do the mixdown?
Audition shows me in multi-track view, that it is doing 32-Bit mixing.
Can I just mixdown to 16Bit, 44.1kHz Stereo without any dithering (as the files are 16Bit, 44.1kHz Stereo to begin with), or will I lose quality that way?
I will be performing a normalization to 96% to the mixdown and then split to tracks in Audition, as in the end I want to to have an audio CD.
I guess I could mixdown to 32Bit, then normalize and in the end save back to 16Bit, 44.1kHz Stereo WAV (with dithering, I suppose?), but I want to avoid any unnecessary converting steps.
GreetingsAny time you do any processing on a 16bit file in 16 bit only it will degrade the audio slightly due to rounding of the calculations. Working in 32 bit floating point (Audition's default) takes account of all bits generated due to processing.
So it is always best to work in 32 bit, even if your originals were 16, all the way through until the last stage of saving the files for CD burning. Any losses due to conversion will be insignificant against those due to working 16 bit. -
Regarding database table to infotype
hi experts,
sorry i m going to ask a typical question i m working on hr-abap ,i have developed a module pool in which the database table is updating with some data,what i want that after updation i want to store that data in a infotype,,so plz tell me how to create infotype and how to store the data into it from a database table...thnx in advance.i know it is a configuration part but rt nw my company doesnt have hr consultant.....plz help me.Hi
<b>Creating an Infotype</b>
Using the TCODE PM01 you can create an Infotype. As per SAP standard you can use only 9000 series. The below procedure explains you how to create an Infotype.
1.Go the transaction PM01 and give the Infotype Number lets say 9999 and press button. It will ask you a messaging window,
2.Press create button to continue further. It will take you to create the structure.
3.Give the components and SAVE & ACTIVATE the structure and come back.
An Infotype attributes window will appear; you create a new entry with the Infotype No and give the appropriate description.
and give the data and press ENTER key. The Technical data will appear automatically, here you have to maintain the Single screen as 2000 and List screen as 3000 and then SAVE the info and press BACK button, you will reach the main screen.
After that using the Menu option Infotype
4.Generate the structure, dialog module and include.
Click the button from application tool bar to check the Infotype attributes. Select the 9999 Infotype and check the data.
If every thing is error free, you can use the Infotype using PA30 transaction.
5.Use the Create button you can create New Entries for the Infotype.
You can view the entries in table PA9999 using the TCODE SE11/SE16.
Validating Code in Module pool: - If you want to validate the user inputs,
You need to write the validate code procedure in the module program MPXXXX00 screen 2000 (here XXXX is user Infotype, in our case 9999).
In PAI.
MODULE P9999.
MODULE HIDDEN_DATA.
FIELD P9909-PRATE MODULE PRATE. Create a module routines.
In PBO
MODULE PRE_INPUT_CHECKS.
input-checks: *
insert check modules here:
CHAIN.
FIELD P9909-PRATE MODULE PRATE.
ENDCHAIN.
Double click on PRATE it will ask you the include name, SELECT the include MP999930 from the input window.
*& Module PRATE OUTPUT
text
MODULE prate OUTPUT.
IF NOT p9909-prate IS INITIAL.
PERFORM check_prate.
ENDIF.
ENDMODULE. " PRATE9 OUTPUT
Again check_prate subroutine, write down the below code in MP999940 include.
*& Form check_prate
FORM check_prate .
CLEAR zprate_t.
SELECT SINGLE * FROM zprate_t WHERE prate = p9909-prate.
IF sy-subrc > 0.
CLEAR zprate_t.
MESSAGE e016(rp) WITH 'Entry does not exist in ZPRATE_T table'.
ENDIF.
ENDFORM. " check_prate
After that check the module, if it is error free then ACTIVATE the same. You can check the Infotype validations using the PA30 transaction.
Regards
Raj -
Regarding database tables in which i can write directly
hi experts,
i have to create a database table in which i can write directly in to the table with out using update statement,what sud i do for this plz help me......Hi Ravi,
If you mean you need to directly update values on the screen, SE11 has a menu for the table maintenance generator. In there you can generate screens and everything needed for your table to allow entry with or without transports. You then capture the data through transaction SM30 or SM31.
Cheers
Wayne -
Table partitioning and global indexing
hello all,
the requirement is to do table partitioning with global indexing! & also thr r almost 60 crores of rows are there! so can you tell me the way which can be done better and also please provide me the procedure with documents?
thanks in advance!Hi,
have a look at online redefinition of a table, see Oracle Manual (10.2): http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#ADMIN01514
The steps are described in the manual.
Herald ten Dam
Superconsult.nl -
Newbie questions about Database replication, "backups", and sql version
Just created my first Sql Database using the "SQL Database Management Portal". A blast but three questions come to mind:
1. Is this DB automatically
"replicated"? (In other words, is DB "failover" or clustering, a feature of all newly created Azure databases?)
2. Our on-premise model is to make a daily DB backup which is saved to a nightly tape. If needed, we can restore a two-month old database backup under a new name to compare it with the current one. Does Sql Azure support this capability
or not? Can it be requested?
3. Which on-premise version of sql is "Sql Azure" closest to? (2014?)
TIA,
edm2
P.S. My database was created using the "web" edition.Hi edm,
According to your description, you create a SQL Azure database in Azure platform. The replication feature is not supported by Microsoft Azure SQL database. If you want to sync the SQL Azure database and local database, you can use SQL Azure Data Sync service.
For more information, see:
http://blogs.technet.com/b/the_cloud_pilot/archive/2011/10/24/your-first-sql-azure-data-sync-step-by-step.aspx
In addition, if you have Web or Business Edition databases, you must create your own backup strategy. You can use database copy or Import and Export services to create copies of the data and export the file to an Microsoft Azure storage account. Meanwile,
Windows Azure SQL Database provides a mechanism for automating the process for exporting a database to BACPAC files on a set interval and frequency. For more information, see:
Schedule an Automated Export:
http://msdn.microsoft.com/en-us/library/hh335292.aspx#automate
Windows Azure SQL Database Backup and Restore strategy:
http://www.mssqltips.com/sqlservertip/3057/windows-azure-sql-database-backup-and-restore-strategy/
Currently, Azure uses a special version of Microsoft SQL Server as its backend. It provides high availability by storing multiple copies of databases, elastic scale and rapid provisioning, when we check the version of SQL Server, it shows as follows.
Microsoft SQL Azure (RTM) - 11.0.9216.62
Regards,
Sofiya Li
If you have any feedback on our support, please click
here.
Sofiya Li
TechNet Community Support -
Thanks for your reply to my question regarding sound in iMovie. However I cannot follow the links you sent as they upload too slowly and therefore the instructional movie keeps stopping waiting for the content toload. Surely theremust be a solution for this??
Thanks in advance
lollyPlease continue posting in your original thread.
With the amount of traffic on these forums it is impossible to chase around finding this. -
Question Regarding Mesh with 3702 and non AC ap´s
Hello!
quick question regarding MESH deployments with 2 different sorts of AP´s: AC and non-AC modells: If my 3702i is my root AP´s, and 3602i my MAP - will AC still work in 80Mhz, or will I have to switch to 40mhz (and thus crippling (???) AC performance?)
Not 100% sure on this... I *think* it should still work for the normal 802.11n connection, but I´m not sure if the 80mhz channel width (needed??) for AC, will cause the non-ac 3602i to be stranded?
Thanks alot for your insight!Currently, my network DHCP server is a software based DHCP server. In reading over your post if I understood correctly it sounds like the managed switch would have its own hardware based DHCP server to assign IP addresses to those clients identified on the "external" VLAN. Did I understand that correctly or did misread something?
DHCP server will be software based, even though you defined it on your switch, it is DHCP service running on its OS.
I am configuring this setup for a small business application and will need to purchase a managed switch with 16 or 24 ports. Do you have any recommendations on a particular managed switch that will handle the VLAN configuration and include POE while keeping costs in mind.
In this forum, most of us discussed about Cisco enterprise grade wireless. Here is 2960X series switch detail, if you are interested
http://www.cisco.com/c/en/us/products/switches/catalyst-2960-x-series-switches/index.html
You may need to check the pricing with your Cisco account manager or from a Cisco partner.
HTH
Rasika
**** Pls rate all useful responses **** -
Question Regarding Inspire t 6200 and PCIE XFI Titanium Fatality Pro series.
LQuestion Regarding Inspire t 6200 and PCIE XFI Titanium Fatality Pro series.0 Hello All,
I need help on this.
I have PCIE X-FI Titanium Fatality Pro Series. and I just bought 5. Speakers Inspire t 6200.
However, I have some problems.
. In Mass Effect or Other game Or dvd I cant make the center work. It means you can hear the music and background sound clearly but no Voice at all that ussualy come from center channel.
2I Tested over audio controler from the disk. When I put 5. speaker configuration, the sound is coming from center and left channel for left channel and same thing for the other side. However, When the test is trying to test the center and rear speake, the sound are muffled.
3. Is X FI only for Headset only or you can use Pc Speaker ? And how to configuration for Inspire t6200 with my sound card.
Thank YouAnyOne?
-
Question about database tables behind charicteristic
Hi everyone,
<b>(1) what does the M table(view) of a charicteristic use for?</b> I find that the M view's structure is same as p table, so why the system create it?
<b>(2) what is the difference between NAV attribute and DIS attribute from database point of view?</b> I see that, if use NAV attribute in a characteristic's attribute, a X table will be generated, what does this x table use for?Hi,
The M view.
Attributes from a IObj are stored in two tables: the P table for time independent attributes and the Q table for time dependent attr; the M view bring all attributes to be seen together (just press F1 positioning your cursor in the RSD1 screen on "view of MstrDta.." to get SAP explanation....) If your char doesn't have time indep attr, then the M view = the P table; otherwise it would be a mixture (e.g. 0COSTCENTER)
The X (/resp Y) table stores the relation between your master data SID and its time independent attributes (not only NAV) SIDs (resp time dependent). This table is used when preparing SELECT statements during reporting, F4 help and selection of data. Roughly it spares a join operation.
hope this helps...
Olivier.
Message was edited by:
Olivier Cora -
Help export from database P1 Partition and Import into databaseT1 Partiton
Hi,
I need to export one of the table partition(Range Partition) data from production database P1, and Import into another table partition of database T1.
Means export from one partiton to another partition, from database is P1, To database is T1.
exp command not worked in sqlplus prompt at SQL>.
Regards,
Venkat.Hello,
I don't know exactly your Oracle release, but since Oracle 10.1 you can use either the Original export/import utility (exp/imp) or the DATAPUMP (expdp/impdp) which is recommended.
As previously posted, export/import is not launched from SQL prompt but straightly from a DOS session (for Windows) or a Unix session (on Unix/Linux).
These links will give you example about partition-level export and import, using the Original export/import utility:
http://download.oracle.com/docs/cd/E11882_01/server.112/e16536/original_export.htm#SUTIL2750
http://download.oracle.com/docs/cd/E11882_01/server.112/e16536/original_import.htm#SUTIL1758
You have the same feature in DATAPUMP with the TABLES parameter:
http://download.oracle.com/docs/cd/E11882_01/server.112/e16536/dp_export.htm#i1006816
Hope this help.
Best regards,
Jean-Valentin -
How to update database table in jdeveloper 10g
I currently have a roles table, usersinroles table, and a users table. The users table has a user ID, the roles table has a Role ID, and the usersinroles table has Role ID and user ID as foreign keys. I can add new users, but how can I implement the ability to add a role to the user and it store the USER ID of that particular user and the ROLE ID of the role I choose in the usersinroles table??
Thanks,
AdamI'm not sure I understand your question here.
If you have EOs for each one of the three tables with master-detail associations from the user and role tables to the cross table, then you can create a master/details form showing a user and all his roles and then adding a record to the crosstable will automatically add the userid correctly. -
Question About the S partition and Backing Up Content
Forgive me if this sounds stupid (and yes i did read online about this S partition business with thinkpads) but I am not sure if i had accidentally deleted the S partition or it is hidden and I am not able to see it. When I go to my computers, the only drives I see are C and W(W is my ultrabayIII added 500gb harddrive). I do not see a S partition. The Q partition I deleted. But when i go to the computer management location, I see: "SYSTEM_DRV with no Drive Path Letter (strange...), a Windows7_OS(C and my SecondHDD(W.....and no S partition.....does that mean that my S partition is the SYSTEM_DRV or did I unknowingly deleted it.
And another question:
Since I no longer got the Q partition, what does that mean I lost?? Does this mean that I am not able to restore my thinkpad to the original factory default with the factory-installed programs and drivers?? (even the faulty NVIDIA driver that gives bsods? lol?) Though I did see something that came with windows 7 called Create Repair Disk.....does this mean that it acts like a windows 7 CD which allows me to boot from CD and fix or reinstall windows 7???
sorry for this post being lenghy XD but thanks in advance for the responses.yiplong wrote:
I know we can clearn LR history on a particular image by clicking "clear all" in the history panel. Is there a way to do this for all images w/o having to go through all of them? I don't want LR to keep track of every little thing I did on every little image; if the development is significant, I would use virtual copy or snapshot. I think having all the history info is waste of space and may slow down LR.
Each history step could be a very small amount of space in the catalogue database. I'm not sure what you mean by "slow down LR." Slow down how? What activities or gestures will be impacted?
I am hearing you want to reset all settings to some large selection of your images , excepting some or all virtual copies or those with snapshots. It might be better to work with temporary catalogues, merging those into a master catalogue in a selective manner.
yiplong wrote:
When backing up LR3, the program only backs up Lightroom 3 Catalog.lrcat, but my LR3 folder is over 2gb. Is this 20mb Ircat file the only thing we need to worry about? What are some of the other things in the folder that is taking up so much space?
Perhaps the preview cache? You can also check to see if your raw cache is in there, too. I assume your managed photos are in a different directory tree (or trees.) -
Question regarding material for Forms and Reports
Hi, I'm good at SQL, now that i would like to learn Forms and Reports in Database. But i dont know like where to start and how to start. Could someone please help me out like what i need to do to learn them. As i said i'm very much new to these concepts.
Thanks in advanceHello,
if buying abook is an option for you and you are speaking german I would advise you to get
Perry Pakull, Stefan Jüssen, Walter H. Müller:
"Praktische Anwendungsentwicklung mit Oracle Forms", HANSER Verlag ISBN-10: 3-446-41098-8. Have a look at
[http://www.hanser.de/buch.asp?isbn=978-3-446-41098-5&area=Computer|http://www.hanser.de/buch.asp?isbn=978-3-446-41098-5&area=Computer]
Regards
Mario -
11gR2 Post-Upgrade Questions Regarding tnsnames, listener, pwd, and init
Hello.
Am planning on upgrading a significant # of RHEL5 10gR2 RAC and non-RAC DBs to 11gR2 (11.2.0.3.1, specifically). The servers are still not available to me, but I have been poring on the install and upgrade documents as well as referencing several blogs of users who have done them. I have almost literally read the guides verbatim. I will be using the DBUS - not doing a manual upgrade. Since I cannot test of the upgrade yet, I have a few questions related to POST_UPGRADE actions in terms of the listener, tnsnames, password, and init files.
1.) The upgrade document indicates on p 3-24, "DBUA then proceeds to create new configuration files (parameter and listener files) in the new Oracle home." Will the init file (assuming spfile will be copied as we are using one everywhere now) have deprecated parameters REMOVED after it is copied over to the NEW/TARGET home?
2.) While the install/upgrade guides do not call for it, several blogs indicate that the tnsnames and password files should be copied over from the old/source DB network/admin location ($TNSNAMES/admin) to the new/target DB /network/admin location. Do I need to do this or with the DBUA also copy them over? If all 4 files (tnsnames/listener/spfile/password) are copied over, I am not sure why the document doesn't indicate this.
3.) Other than the spfile being copied over and modified, I don't see any difference between the old/source and new/destination copies of the listener, tnsnames, and password file. Do you agree?
I am just trying to figure out what really need to be copied over and what doesn't in lieu of the DBUA doing it for me.
Thank you all for your help. If I had HW to test this out, I would do it. In the meantime, I am writing the procedures to do the actual upgrade.
Mattpage 3-24 corresponds to following
http://docs.oracle.com/cd/E11882_01/server.112/e23633/upgrade.htm#CHDDCBHG
which states
You must run the Oracle Net Configuration Assistant before running DBUA. See "Configuring the Listener When Upgrading from Oracle9i".
If you are upgrading an existing Oracle Enterprise Manager Database Control or if you are configuring a new Oracle Enterprise Manager Database Control for the new Oracle Database 11g release, then the listener must be running before upgrading Oracle Enterprise Manager. If DBUA detects that an Oracle Enterprise Manager upgrade or configuration is requested, and DBUA does not see a listener running, then it prompts you and starts the default listener in either of these cases.
running netca from new home results in creating a new listener.ora file, this could complain that listener is already used if the old listener is running with the same name or port (default 1521) taken.
I think the "+DBUA reloads the listener.ora file in both the old and new Oracle Database environments.+" which point c in that list has to be taken in context with the two previous points a, b, where the usecase is shown how services , entries are removed from one listener.ora file and added to another. So to make sure those services are started from the "now" correct home those listener.ora are reloaded.
If you look in the 11.1 upgrade guide this text is written as "DBUA removes the entry of the upgraded database from the old listener.ora file and reloads the listener of the old database." http://docs.oracle.com/cd/B28359_01/server.111/b28300/upgrade.htm#i1011982
If after the upgrade old oracle home is not used anymore (no database is running out of that) you can ignore the listener.ora on the old home.
Maybe you are looking for
-
Purchase Requisition for Third party direct
Hi Experts, When I am creating a third party direct sales order, a purchase requisition will be automatically triggered from it. I can see the purchase requisition number in the item details (schedule lines) of sales order. Please te
-
I am on vacation and away from my home computer. I installed iTunes on a computer I'm using at my son's house to enable me to sync my iTouch, since it has become unstable when I am playing games and continually closes and reverts to the home screen.
-
HT1657 Watching HD movie on TV from macbook - Can't?
I recently rented an HD movie from iTunes, downloaded it to my laptop with the hope of hooking it up to my HD TV via a VGA cable. Won't play!? Which means I have to watch it on my laptop or buy additional hardware. Ummm. Is there a solution?
-
PReq for Components in Service Order
Hi, I had created a Repair Order for a Product and via this Repair Order, system automatically created a Service Order (SM03) I added a component (spare part) in the Service Order that has to be consumed for Service on the Product. Upon saving the Se
-
What is the best way of persisting Web-application related data?
My web-application needs to persist some data (a set of XML documents), i.e. save them so that they can survive server or application shutdowns. Saving those documents as files in server's filesystem does not seem to be convinient to me because the c