DBAsupport.com Forums - Powered by vBulletin
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: 24/07 ?

  1. #1
    Join Date
    Jun 2006
    Posts
    101

    Lightbulb 24/07 ?

    Hi,

    I know that in order to perform DDL on a table or to perform some other maintenance type jobs its required no user to
    be accessing the database etc...so how to big banks deal with those kind of issues?

  2. #2
    Join Date
    Nov 2006
    Location
    Sofia
    Posts
    630
    That's too strong sentence. Sure u can do ddl while people works, just can't ddl objects with active dmls on them

    Same about maintanence jobs
    Also, banks are not the best examle. They do not work trough the nights nor do they during weekends

  3. #3
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    DDL requires a lock, so it's the object that cannot be accessed, not the database. Use DBMS_Redefinition to work around this.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  4. #4
    Join Date
    Jun 2006
    Posts
    101
    I know in places like banks database should be available 24/7 for update/delete, means no DDL or maintenance should interrupt?
    will a lock on object interrupt update/delete?

  5. #5
    Join Date
    Mar 2004
    Location
    DC,USA
    Posts
    650
    For 24/7 operations you can do update/delete until it is commited its not visibly seen by all. If you are doing bulk update/delete no, don't do it during peak banking hours. Can schedule it during nights and weekends!

    Lock on objects for DML depends on what lock it has acquired. Shareable would allow you to do update/delete until it is commited (as said above) cannot be seen by all. Get to know about Read consistency. If the lock is exclusive it wont allow you for update/delete until the lock on the object is released.

  6. #6
    Join Date
    Nov 2006
    Location
    Sofia
    Posts
    630
    Generally it's not common to DDL against oparatable objects in production 24/7 system.
    For doing absolutely necessary maintanence which requires restricted user access onen have to schedule maintanence windows. Say u schedule maintanence window each second weekend of the month. Trough the month u collect the requests of changes, prepare scripts and test them against the test environment, ask people to test how the changes affects their job ( on the test system) etc. When the maintanence window comes, u restrict the user access, apply changes, ask them to test and get back to normal work ASAP

  7. #7
    Join Date
    Jun 2006
    Posts
    101
    Quote Originally Posted by Bore
    Generally it's not common to DDL against oparatable objects in production 24/7 system.
    For doing absolutely necessary maintanence which requires restricted user access onen have to schedule maintanence windows. Say u schedule maintanence window each second weekend of the month. Trough the month u collect the requests of changes, prepare scripts and test them against the test environment, ask people to test how the changes affects their job ( on the test system) etc. When the maintanence window comes, u restrict the user access, apply changes, ask them to test and get back to normal work ASAP
    Yes my understanding is that some maintenance jobs do require down time, but the trick is that in real life we can withdraw cash from bank 24/7, am I’m right saying they are up 365days a year? Or that even them people do bring their db down for maintenance such as object lock etc ?

  8. #8
    If you have that kind of operational requirement, then you have to design in the capacity for maintenance. Taking ATM transactions for example -- you could have a cached copy of the account balances of some sort, and queue transactions for posting back into the database.

  9. #9
    Join Date
    Jun 2006
    Posts
    101

    Lightbulb

    Quote Originally Posted by jhmartin
    If you have that kind of operational requirement, then you have to design in the capacity for maintenance. Taking ATM transactions for example -- you could have a cached copy of the account balances of some sort, and queue transactions for posting back into the database.
    sorry I didnt get it , cache in memory ? do you mean if we cache one table's full data in memory then we will be able to alter the table? DDL lock would not cause a problem? what if user commits data while performing maintenance job.

    is there anywehre I can read more about maintenance jobs in 24/7 environment?

  10. #10
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    Dave has already told you an option, DBMS_REDEFINITION

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width