Give me hints how to re-create this table for best performance

Dear Friends,
I do not have any experience in good database desiginig practices. please advise me on this issue.
i have this table here, it gets only data inserts mostly 99%, no deletes, and very very few updates that is neglizable, please suggest me best storage parmteres,physical attributes. how much PCT FREE, PCT USED,INIT TRANS, MAX TRANS etc, all the i didnt use this storage clauses when i design tables. just a plain table design only. please give me idea, so that i can undesratand with this example and i can use for other tables in my application, our database is Oracle 8i.
this is OLTP application this table is importnat for all transactions.
this table gets 3000 records per day, but the number will increase in future.
CREATE TABLE ticket_master(ticket_no VARCHAR2(20) CONSTRAINT tick_mas_pkey PRIMARY KEY,
name_of_the_passenger     VARCHAR2(50), /* 10 to 15 characters max */
nationality          VARCHAR2(50), /* 10 to 15 max */
passport_id_no          VARCHAR2(50), /* 10 max */
place_of_issue          VARCHAR2(50), /* 12 max */
issued_by          VARCHAR2(50), /* 12 max */
date_of_issue          DATE,
trip_id               VARCHAR2(20) CONSTRAINT tick_mas_trip_rkey REFERENCES trip_master(trip_id),
seat_no               VARCHAR2(5), /* 2 only */
class               VARCHAR2(50), /* 3 to 5 max */
fare               NUMBER(10,2),
payment_instrument_no     VARCHAR2(20),
boarding_from           VARCHAR2(50), /* 10 to 15 max */
dropping_point          VARCHAR2(50), /* 10 to 15 max */
journey_from           VARCHAR2(50), /* 10 to 15 max */
journey_to          VARCHAR2(50), /* 10 to 15 max */
paid_at               VARCHAR2(50), /* 10 to 15 max */
gender               CHAR(1));
and do you want me keep only this table into a seperate table space if so, give me a CREATE command for creating table space with best paramaters as a example.
thanks in advance.

My $0.02
1) Since there are no deletes from the table, PCTUSED isn't going to be much of a factor.
2) The default PCTFREE of 10% will probably work just fine.
3) The table design doesn't have any not null constraints. Certainly the primary key and your FK trip_id should be not null. Things like date_of_issue and gender are probably mandatory columns also. The existance of not-null constraints help the CBO in optimizing queries.
4) It sure looks like the table could be normalized. Particurlarly the nationality column could be brought out into a nation_master table. The resultant FK could then be a number(5,0) which would make the table quite smaller (thus faster to query)...
5) Keep the table stats up-to-date as the table grows. Let the CBO take care of the rest...

Similar Messages

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • How do I create this table?

    When I paste the buy/sell ticket (table) from this page http://www.globalfutures.com/resources/order-placement.asp into Pages, everything comes out fine except the top - the five columns and split row above Buy and Sell labels.
    Any idea how I can create these five columns without adding new columns that go down the length of the ticket? Same for the top row that is split by columns (one box has "ticket #" and the other "Global Futures Exchange & Trading Company, Inc.").
    I don't know how to create the type of independent columns and rows they are using.

    If you're a client of Global Futures Exchange & Trading Co. Inc. (as opposed to being an employee/associate of Global Futures Exchange & Trading Co. Inc.), is there a need to copy the table?
    As I read the page, the table is a ticket produced after an order is received, not a form on which to place an order.
    All that's needed to place an order is what's described in the section above the table, and illustrated by the single line example:
    How to Place Orders
    The first thing to understand about order placement is that there is a standardized way in which to place an order. When placing an order, there are several pieces of information that need to be conveyed.
    • Name
    • Account Number
    • Order Type (Day, Open, Option)
    • Buy or Sell
    • Number of Contracts
    • Month
    • Commodity
    Here is an example:
    "This is John Smith, Account 650-12345. Day Order: Buy 10 March E-Mini S&P at 1285.50"
    The table appears to be an illustration of the ticket produced by the associate/employee receiving the order.
    Regards,
    Barry
    PS: I'll skip instructrions for constructing the table, as my instructions would be essentially the same as Peter's.
    I'd add a note that having the table model wouldn't particularly simplify the task of copying a similar table (and its information) from the web.
    B

  • How to use dynamic SQL in this case for best performance

    I have the table with following columns
    ID NUMBER,
    DATA LONG,
    TAG VARCHAR2(255)
    Records in this table will be like following
    1 this is an abstract ABSTRACT
    1 this is author AUTHOR
    1 100 PRICE
    2 this is an abstract ABSTRACT
    2 this is author AUTHOR
    3 contract is this CONTRACT
    Basically all the records with the same number constitute 1 record for another table. Tag in the above table indicates that what column it is and DATAwill have the actual data for that column. I need to populate the second table based an the above table but will not get the same number of TAGS all the time. I need to insert the values only for the columns provided in the TAG field. How will I accomplish this by dynamic sql. Do I create a loop and create two strings one with columns and one with values and then combine them and use execute immediate to insert into table? Is there an easier way to do this??
    Please respond quickly.
    Thanks
    Bhawna
    null

    > so which collection should i use to perform it..
    so that performance is best......
    Program to interfaces. That way, you can switch out implementations and test for yourself which performance is best in an actual production context. But first, write your program so that it works. Worry about refactoring for performance once your program is written and it works.
    > plz send me the logic....
    Give it a shot on your own first; we can help if you get stuck.
    ~

  • Creating Temperory Table For SQL Performance.

    Hi,
    I have a SQL query,
    SELECT NVL(SUM(S.STDY_EFFORTS * K.PERCENTAGE_VALUE / 100), 0)
    FROM effort_t S, FULL OUTER JOIN role_dtls_t K
    ON S.DEAL_DETAIL_ID = K.DEAL_DETAIL_ID
    AND S.TOWER_ID = S.TOWER_ID
    AND S.SUBTOWER_ID = K.SUBTOWER_ID
    AND S.LOCATION_ID = K.LOCATION_ID
    AND S.CLIENT_ROLE_ID = K.CLIENT_ROLE_ID
    AND S.CLIENT_ROLE_ID = :B2
    AND S.EMP_CATEGORY_ID = :B1
    AND S.EMP_CATEGORY_ID = K.EMP_CATEGORY_ID
    AND S.STATE_ID = K.STATE_ID
    AND S.YEAR_NO = K.YEAR_NO
    WHERE K.DESIGNATION_ID IN
    (SELECT D.DESIGNATION_ID
    FROM PRC_VNDR_DESGN_TYPE_MSTR_T D
    WHERE D.DESIGNATION_ID = K.DESIGNATION_ID
    AND D.SENIORITY_FLAG = 'N')
    AND S.DEAL_DETAIL_ID = :B7
    AND S.TOWER_ID = :B6
    AND S.SUBTOWER_ID = NVL(:B5, S.SUBTOWER_ID)
    AND S.LOCATION_ID = NVL(:B4, S.LOCATION_ID)
    AND S.YEAR_NO = :B3
    GROUP BY S.DEAL_DETAIL_ID, S.TOWER_ID, S.YEAR_NO
    My effort_t table is having huge data thats y this query is taking lot of time to execute.Due to thIS performance issue Can I create temperory tableS on this two tables effort_t and role_dtls_t .
    If Icreate a temperory table how i get data from this two tables in to the temperory tables.
    Thanks

    Fasy wrote:
    My effort_t table is having huge data thats y this query is taking lot of time to execute.Due to thIS performance issue Can I create temperory tableS on this two tables effort_t and role_dtls_t .
    If Icreate a temperory table how i get data from this two tables in to the temperory tables.
    ThanksCreating a temporary table is most likely not going to increase performance to be honest. Your best bet would be to tune your query. See the following thread:
    {message:id=9360003}

  • How to connect multiple Xserve Raid for Best Performance

    I like to get an idea how to connect multiple Xserve Raid to get the best performance for FCP to do multiple stream HD.

    Again, for storage (and retrieval), FireWire 400 should be fast enough. If you are encoding video directly to the external drive, then FireWire 800 would probably be beneficial. But as long as the processing of the video is taking place on the fast internal SATA drive, and then you are storing files on the external drive, FireWire 400 should be fine.
    Instead of speculating about whether it will work well or not, you need to set it up and try your typical work flow. That is the only way you will know for sure if performance is acceptable or not.
    For Time Machine, you should use a single 1.5TB drive. It is likely that by the time your backup needs comes close to exceeding that space, you will be able to buy a 3TB (or larger) single drive for the same cost. Also, I would not trust a RAID where the interaction between the two drives is through two USB cables and a hub. If your primary storage drive fails, you need your backup to be something that is simple and reliable.
    Oh, and there should be no problem with the adapter, if you already have it and it works.
    Edit: If those two external drives came formatted for Windows, make sure you have use Disk Utility Partition tab to repartition and reformat the drive. When you select the drive in the Disk Utility sidebar, at the bottom of the screen +Partition Map Scheme+ should say *GUID Partition Table*. When you select the volume under the drive in the sidebar, Format should say *Mac OS Extended (Journaled)*.

  • How can we rewrite this query for better performance

    Hi All,
    The below query is taking more time to run. Any ideas how to improve the performance by rewriting the query using NOT EXITS or any other way...
    Help Appreciated.
    /* Formatted on 2012/04/25 18:00 (Formatter Plus v4.8.8) */
    SELECT vendor_id
    FROM po_vendors
    WHERE end_date_active IS NULL
    AND enabled_flag = 'Y'
    and vendor_id NOT IN ( /* Formatted on 2012/04/25 18:25 (Formatter Plus v4.8.8) */
    SELECT vendor_id
    FROM po_headers_all
    WHERE TO_DATE (creation_date) BETWEEN TO_DATE (SYSDATE - 365)
    AND TO_DATE (SYSDATE))
    Thanks

    Try this one :
    This will help you for partial fetching of data
    SELECT /*+ first_rows(50) no_cpu_costing */
    vendor_id
    FROM po_vendors
    WHERE end_date_active IS NULL
    AND enabled_flag = 'Y'
    AND vendor_id NOT IN (
    SELECT vendor_id
    FROM po_headers_all
    WHERE TO_DATE (creation_date) BETWEEN TO_DATE (SYSDATE - 365)
    AND TO_DATE (SYSDATE))
    overall your query is also fine, because, the in this query the subquery always contain less data compare to main query.

  • How do I maintain my computer for best performance?

    Regular computer maintenance is an excellent idea. Every program you install or uninstall, every web site you visit, in fact pretty much every move you make on your computer creates temp files and other such unnecessary on your hard drive. With a few minutes' work on a regular basis, though, you can restore your computer to better-than-new condition and possibly free up several hundred megs of space at the same time!
    DO THIS WEEKLY:
    1. Go to Microsoft Update and make sure Windows is updated. In fact, don't just check for priority updates, click on the Custom button and look for other updates (like RealTek drivers) that may not update automatically. You may not need everything offered, but it certainly doesn't hurt to have them.
    2. Make sure your virus software is updated. (If your virus software isn't set to run in the middle of the night, waking your computer from sleep, for a virus scan, you also may want to do a regular virus scan.) And, every once in a while, go to the web site for your virus software and make sure you have the latest VERSION of the anti-virus software. You may have the latest virus definitions added automatically -- but, if you're still using last year's version of the software, you could still be vulnerable.
    3. Use the excellent free downloads Spybot S&D and Spyware Blaster to clear off and block spyware(update them before you use them and, regularly, check their web sites to make sure you're using the latest versions). You can pick them up from the links on this page:
    http://savemybutt.com/downloads.html
    4. Run the free, excellent, easy to use tune-up tool Advanced System Care, from IOBit, to tune up your registry and clear off temp and other junk files. This download is available at http://www.iobit.com/advancedwindowscareper.html
    5. Run the Defragmenter on all of your hard drives.
    And don't forget to back up your files (at least the My Documents folder) regularly! The one piece of hardware on your computer that absolutely WILL eventually fail is your hard drive. If you're lucky, you'll have replaced your computer by then. But if not -- please remember to back up your files regularly.
    DO THIS MONTHLY:
    1. Check your graphic's card's manufacturer's site, your sound card's manufacturer's site and, if applicable, the RealTek site to make sure your drivers and firmware are up to date. 
    http://www.adobeforums.com/webx/.3c057647
    2. Go to your web browser and clear the cache. In IE7, you'll find the option for doing this right under the Tools drop-down. Older versions and other browsers keep them under Tools and in Internet Options. You can leave the cookies -- but do delete the Temporary Internet Files. Accumulate enough of them and they will slow your entire computer system.

    Steve, one thing about re-formatting hard drives that I just learned the hard way: run the drive error-checker first.
    I recently re-formatted a media drive that was slowing down, only to find that windows had moved some files to some bad sectors that I didn't know about, permanently corrupting those files. Turns out that Windows' defrag is oblivious to problem sectors.
    The error-checker is extremely simple, even if it it's even slower than the defrag tool. Just right-click on the drive letter, select Properties, click the Tools tab, then click on "Check Now" in the Error-checking section. If you're checking your boot drive, it can't begin the check until you reboot, when it does the check before windows loads. That can take 30 minutes or more, depending on drive size.
    So the lesson is, ALWAYS perform an error check BEFORE defragging a drive.

  • Which collection to use in this case for best performance....

    i have two text files having 10,0000(aprox)
    phone numbers , i wish to compare both the files
    and write the matching numbers in third file..
    so which collection should i use to perform it..
    so that performance is best......
    plz send me the logic....

    > so which collection should i use to perform it..
    so that performance is best......
    Program to interfaces. That way, you can switch out implementations and test for yourself which performance is best in an actual production context. But first, write your program so that it works. Worry about refactoring for performance once your program is written and it works.
    > plz send me the logic....
    Give it a shot on your own first; we can help if you get stuck.
    ~

  • How do you analyze your Siebel tables for best performance?

    Do you use any particular script to analyze Siebel tables? We are having some performance degradation...
    Do you use the scripts from Oracle support note 781927.1?
    Thank you.

    Hi,
    We do not follow that document because many years ago we tried following it to the letter and the CBO did not perform very well. Once we saw this we spent many months coming up with a solution. Here is an outline of what we do.
    •     Implement the PPS init.ora settings on top of the ones recommended by Oracle for Siebel.
    •     Gather both schema and system (the Siebel documentation does not even mention these) stats according to our standards. Here we run dbms_stats for the Siebel schema and sample 100% of the rows and only collect high and low values (for all columns size 1).
    •     We always gather our stats in a test environment that is a recent copy of production.
    •     We always test our stats before moving them into prod. We use our SQL Playback utility to do this. Likewise you can purchase Oracle’s Real Application Testing.
    •     Once tested we then backup the current stats and copy the new stats into production.
    The key point here is that we always test our stats. Almost 100% of Oracle DBA’s don’t do this but look for this trend to start changing. Would you ever move a new SRF into production without testing it?
    If you are having performance problems and are licensed to use it Oracle’s AWR facility provides you everything you need to find and fix your issues.
    HTH,
    R
    Robert Ponder

  • Can any one give me hint how to create(dsplay) calendar in jsp 1.2

    can any one give me hint how to create(dsplay) calendar in jsp 1.2
    friends
    i wants to display calendar (not the date) in tabular way please give me hint how to create it

    Hi,
    i would just add my question cos it looks similar , how can i add calendar of the whole year and let the user browse and select it
    thanX in advance

  • Cool effect..how can i create this effect on Motion 3?

    that's great.
    Someone please tell me how can i create this effect on motion 3?
    http://www.ayatoweb.com/aetips_e/ae17_mov05e.html
    thanks

    Use the bezier tool to create your shapes, give the shapes an Airbrush outline. Then apply a Write On behavior to each shape. Position the shapes in the timeline so they appear sequentially. To achieve the zooming out effect, you can either scale the whole group, or convert the group to 3D and use the camera to zoom out.

  • I want to know that i have recently create an apple id, i want to know that how i can use this id for gsx(without paid) or how to use this id for knowlaged

    i want to know that i have recently create an apple id, i want to know that how i can use this id for gsx(without paid) or how to use this id for knowlaged  
    pls give braef intro about all this things, i have searched on sites but i am not getting exact thing and meaning pls help
    and i wnat to complete hardware exam of mac what should i do
    thanks
    vicckey

    GSX, if you're referring to Apple's service by that name, is available only to employees of Apple-authorized service providers or self-servicing accounts. Unless you are employed by such an organization, you cannot access GSX. If you are employed by such an organization, they should set you up and give you the appropriate login information.
    If you are interested in becoming a certified Apple hardware technician, you can find information here:
    http://training.apple.com/certification/acmt
    Please note, though, that certification does not in and of itself give you access to any of the Apple resouces for support organizations; diagnostic tools, parts ordering, etc. You again must be employed by an authorized Apple support provider before you can gain such access.
    I have no idea what "knowlaged" might be.
    Regards.

  • Creating a rate calculator [was: how do i create this?]

    I want to create a rate calculator on a website with 2 input fields: calling from and calling to.  Here is what i've got:
    CALLING FROM table:
    COUNTRY     $/MIN
    Africa            0.10
    Europe          0.20
    Asia              0.30
    CALLING TO table:
    COUNTRY     $/MIN
    Africa           0.20
    Europe         0.30
    Asia             0.50
    USA             0.10
    Basically to get the rate $/min the CALLING FROM selected country and the CALLING TO selected country will be added together i.e calling from africa to USA would be $0.20/min (0.10 + 0.10).
    - How do i create the database for this? (in access)
    - How do i then create the rate calculator in a webpage? (asp/php)???
    I would really appreciate anyone who will be able to help me in this.
    Thank you very much.
    Natalie
    [Subject line edited by moderator to indicate nature of question]

    Create a database table with 3 columns
    Country
    ToRate
    FromRate
    Populate these values as appropriate.
    Create two drop down menus on your page; FromRate and ToRate.  Populate these with the values (Display value and rate) from the table.
    Then, you could either:
    1) Submit the form to a server side script that adds and displays the values
    2) Use Javascript to add and display the values

  • I have an old ipod 4G and im trying to create an apple id but got 1 problem... i live in canada so i chose the canada store but its telling me to submit a credit card so i tryied to find the none option! there no none option! how can i create this appleId

    i live in canada so i shose the canada store so now its asking me to add a credit card most people say to chose the none option but there no none option! how can i create this apple id without credit cards or without the none option!

    Either add or credit card or
    Create a NEW account/ID for her using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before. Make sure you specify a birthdate that results in being at least 13 years old
      Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    More details of how:
    http://ipadhelp.com/ipad-help-tips-tricks/how-to-get-free-apps-from-the-app-stor e-without-a-credit-card/

Maybe you are looking for

  • Copy File name and Date only from a Folder with SSIS

    Hello all, I need to create a package which will list the file names and the dates in a folder, these files are blank flat files. After extracting the file names from the file path i need to create a table which will have two columns Filename and Dat

  • Anyone know why my computer would shutdown on it's own?

    So far it this has happened three times now. My computer for no apparent (at least not apparent to me) has shutdown on it's own. After the second time it happened, I took the tower into the Apple store and the mac genius at the genius bar suggested t

  • Replacing Joystick from microscope

    Hi, I am trying to control movement of 3-D Microscope through PC Keyboard Arrow Keys. It's 3-D movement is now controlled by a joystick but I want to use Key Board Arrow keys instead of Joystick. Can anyone guide me if I can do so by using any interf

  • My girlfriends Charger

    My girlfriends charger is broken and i dont know what to do. PLEASE help me with this problem. I need to facetime her at least 5 hours a day. I LOVE HER VERY VERY MUCH i cant go an hour withour seeing her. SO PLEASE HELP ME with this problem.

  • Unable to execute Extras -- Display generated program in BW 7.0

    When I try to execute Extras --> Display generated program for a Transformation in RSA1 (BW 7.0) I get the following message: Unable to find a tool to process the request Message no. SEU_MANAGER026 Does any one know what's the reason for that? Kindly