Important MySQL DBA Interview Questions


Here are a few sets of interview questions expected for MySQL DBA position.These are compilation of the usual questions from various DBA texts:

  1. What is Log Switch? – The point at which ORACLE ends writing to one online redo log file and begins writing to another is called a log switch.
  2. What is On-line Redo Log? – The On-line Redo Log is a set of tow or more on-line redo files that record all committed changes made to the database. Whenever a transaction is committed, the corresponding redo entries temporarily stores in redo log buffers of the SGA are written to an on-line redo log file by the background process LGWR. The on-line redo log files are used in cyclical fashion.
  3. Which parameter specified in the DEFAULT STORAGE clause of CREATE TABLESPACE cannot be altered after creating the tablespace? – All the default storage parameters defined for the tablespace can be changed using the ALTER TABLESPACE command. When objects are created their INITIAL and MINEXTENS values cannot be changed.
  4. What are the steps involved in Database Startup? – Start an instance, Mount the Database and Open the Database.
  5. What are the steps involved in Instance Recovery? – Rolling forward to recover data that has not been recorded in data files, yet has been recorded in the on-line redo log, including the contents of rollback segments. Rolling back transactions that have been explicitly rolled back or have not been committed as indicated by the rollback segments regenerated in step a. Releasing any resources (locks) held by transactions in process at the time of the failure. Resolving any pending distributed transactions undergoing a two-phase commit at the time of the instance failure.
  6. Can Full Backup be performed when the database is open? – No.
  7. What are the different modes of mounting a Database with the Parallel Server? – Exclusive Mode If the first instance that mounts a database does so in exclusive mode, only that Instance can mount the database. Parallel Mode If the first instance that mounts a database is started in parallel mode, other instances that are started in parallel mode can also mount the database.
  8. What are the advantages of operating a database in ARCHIVELOG mode over operating it in NO ARCHIVELOG mode? – Complete database recovery from disk failure is possible only in ARCHIVELOG mode. Online database backup is possible only in ARCHIVELOG mode.
  9. What are the steps involved in Database Shutdown? – Close the Database, Dismount the Database and Shutdown the Instance.
  10. What is Archived Redo Log? – Archived Redo Log consists of Redo Log files that have archived before being reused.
  11. What is Restricted Mode of Instance Startup? – An instance can be started in (or later altered to be in) restricted mode so that when the database is open connections are limited only to those whose user accounts have been granted the RESTRICTED SESSION system privilege.
  12. What is Partial Backup? – A Partial Backup is any operating system backup short of a full backup, taken while the database is open or shut down.
  13. What is Mirrored on-line Redo Log? – A mirrored on-line redo log consists of copies of on-line redo log files physically located on separate disks, changes made to one member of the group are made to all members.
  14. What is Full Backup? – A full backup is an operating system backup of all data files, on- line redo log files and control file that constitute ORACLE database and the parameter.
  15. Can a View based on another View? – Yes.
  16. Can a Tablespace hold objects from different Schemes? – Yes.
  17. Can objects of the same Schema reside in different tablespaces? – Yes.
  18. What is the use of Control File? – When an instance of an ORACLE database is started, its control file is used to identify the database and redo log files that must be opened for database operation to proceed. It is also used in database recovery.
  19. Do View contain Data? – Views do not contain or store data.
  20. What are the Referential actions supported by FOREIGN KEY integrity constraint? – UPDATE and DELETE Restrict – A referential integrity rule that disallows the update or deletion of referenced data. DELETE Cascade – When a referenced row is deleted all associated dependent rows are deleted.
  21. What are the type of Synonyms? – There are two types of Synonyms Private and Public
  22. What is a Redo Log? – The set of Redo Log files YSDATE,UID,USER or USERENV SQL functions, or the pseudo columns LEVEL or ROWNUM.
  23. What is an Index Segment? – Each Index has an Index segment that stores all of its data.
  24. Explain the relationship among Database, Tablespace and Data file.? – Each databases logically divided into one or more tablespaces one or more data files are explicitly created for each tablespace
  25. What are the different type of Segments? – Data Segment, Index Segment, Rollback Segment and Temporary Segment.
  26. What are Clusters? – Clusters are groups of one or more tables physically stores together to share common columns and are often used together.
  27. What is an Integrity Constrains? – An integrity constraint is a declarative way to define a business rule for a column of a table.
  28. What is an Index? – An Index is an optional structure associated with a table to have direct access to rows, which can be created to increase the performance of data retrieval. Index can be created on one or more columns of a table.
  29. What is an Extent? – An Extent is a specific number of contiguous data blocks, obtained in a single allocation, and used to store a specific type of information.
  30. What is a View? – A view is a virtual table. Every view has a Query attached to it. (The Query is a SELECT statement that identifies the columns and rows of the table(s) the view uses.)
  31. What is Table? – A table is the basic unit of data storage in an ORACLE database. The tables of a database hold all of the user accessible data. Table data is stored in rows and columns.
  32. What is a Synonym? – A synonym is an alias for a table, view, sequence or program unit.
  33. What is a Sequence? – A sequence generates a serial list of unique numbers for numerical columns of a database’s tables.
  34. What is a Segment? – A segment is a set of extents allocated for a certain logical structure.
  35. What is schema? – A schema is collection of database objects of a User.
  36. Describe Referential Integrity? – A rule defined on a column (or set of columns) in one table that allows the insert or update of a row only if the value for the column or set of columns (the dependent value) matches a value in a column of a related table (the referenced value). It also specifies the type of data manipulation allowed on referenced data and the action to be performed on dependent data as a result of any action on referenced data.
  37. What is Hash Cluster? – A row is stored in a hash cluster based on the result of applying a hash function to the row’s cluster key value. All rows with the same hash key value are stores together on disk.
  38. What is a Private Synonyms? – A Private Synonyms can be accessed only by the owner.
  39. What is Database Link? – A database link is a named object that describes a “path” from one database to another.
  40. What is a Tablespace? – A database is divided into Logical Storage Unit called tablespaces. A tablespace is used to grouped related logical structures together
  41. What is Rollback Segment? – A Database contains one or more Rollback Segments to temporarily store “undo” information.
  42. What are the Characteristics of Data Files? – A data file can be associated with only one database. Once created a data file can’t change size. One or more data files form a logical unit of database storage called a tablespace.
  43. How to define Data Block size? – A data block size is specified for each ORACLE database when the database is created. A database users and allocated free database space in ORACLE datablocks. Block size is specified in INIT.ORA file and can’t be changed latter.
  44. What does a Control file Contain? – A Control file records the physical structure of the database. It contains the following information. Database Name Names and locations of a database’s files and redolog files. Time stamp of database creation.
  45. What is difference between UNIQUE constraint and PRIMARY KEY constraint? – A column defined as UNIQUE can contain Nulls while a column defined as PRIMARY KEY can’t contain Nulls. 47.What is Index Cluster? – A Cluster with an index on the Cluster Key 48.When does a Transaction end? – When it is committed or Rollbacked.
  46. What is the effect of setting the value “ALL_ROWS” for OPTIMIZER_GOAL parameter of the ALTER SESSION command? – What are the factors that affect OPTIMIZER in choosing an Optimization approach? – Answer The OPTIMIZER_MODE initialization parameter Statistics in the Data Dictionary the OPTIMIZER_GOAL parameter of the ALTER SESSION command hints in the statement.
  47. What is the effect of setting the value “CHOOSE” for OPTIMIZER_GOAL, parameter of the ALTER SESSION Command? – The Optimizer chooses Cost_based approach and optimizes with the goal of best throughput if statistics for atleast one of the tables accessed by the SQL statement exist in the data dictionary. Otherwise the OPTIMIZER chooses RULE_based approach.
  48. What is the function of Optimizer? – The goal of the optimizer is to choose the most efficient way to execute a SQL statement.
  49. What is Execution Plan? – The combinations of the steps the optimizer chooses to execute a statement is called an execution plan.
  50. What are the different approaches used by Optimizer in choosing an execution plan? – Rule-based and Cost-based

, ,

  1. #1 by atwlam on July 10, 2012 - 6:42 pm

    more like questions for oracle dba?

    • #2 by Srijith R on July 11, 2012 - 9:49 am

      Unfortunately, I am not a oracle dba so I am not sure what to expect for a oracle dba position.

  2. #3 by Lottie on October 18, 2013 - 10:16 am

    Very soon this web site will be famous amid all blogging users, due to it’s good
    content

  3. #4 by Adriene on October 20, 2013 - 12:41 am

    Hi to every body, it’s my first visit of this weblog;
    this blog carries remarkable and really good material for readers.

  4. #5 by 激安 スニーカー 心細く制作 on December 1, 2013 - 3:15 am

    Hi, I do think this is an excellent web site.
    I stumbledupon it ;) I am going to revisit yet again since i have book marked it.
    Money and freedom is the greatest way to change, may you be rich and continue to guide other people.

  5. #6 by 超安 バッグ 超歓迎 on December 22, 2013 - 1:26 am

    Hi there, I enjoy reading through your article. I like to write a
    little comment to support you.

  6. #7 by clash of Clans download on February 28, 2014 - 9:32 am

    Pretty component to content. I just stumbled upon your web site and in accession capital to claim that I
    acquire in fact loved account your weblog posts. Any way I will
    be subscribing for your augment or even I achievement you get admission to persistently
    rapidly.

  7. #8 by muisc maker online on March 4, 2014 - 7:38 pm

    Pretty nice post. I just stumbled upon your weblog and wanted to say that I’ve truly enjoyed browsing your
    blog posts. After all I’ll be subscribing to your feed and I hope
    you write again soon!

  8. #9 by big win football hack on March 8, 2014 - 12:05 pm

    Hello there, You have done an excellent job. I will definitely digg it and personally recommend to my friends.
    I’m confident they will be benefited from this website.

  9. #10 by Theresa on March 11, 2014 - 11:03 pm

    Heya i am for the primmary time here. I found this board andd I ind
    It really useful & it helped mme out a lot. I hope to offer oone thing
    agan and help others such as yyou aided me.

  10. #11 by help someone with depression on March 25, 2014 - 10:33 am

    I am really thankful to the holder of this website
    who has shwred this wonderful article at at this place.

  11. #12 by list of prescription Acne Creams on March 30, 2014 - 11:29 pm

    Have you ever considered about including a little bit more than just your articles?
    I mean, what you say is fundamental and all. But think
    about if you added some great images or videos to give your posts more, “pop”!
    Your content is excellent but with images and clips, this site could
    definitely be one of the best in its niche. Awesome blog!

  12. #13 by Briana Banks on March 31, 2014 - 1:30 pm

    I appreciate, cause I found just what I used to be having a look for.
    You’ve ended my four day long hunt! God Bless you man.
    Have a great day. Bye

  13. #14 by garcinia cambogia extract on April 1, 2014 - 6:12 pm

    Hi there, just wanted to tell you, I loved this blog post. It was helpful.

    Keep on posting!

  14. #15 by Kitchener-Waterloo Air Conditioners on April 1, 2014 - 9:38 pm

    Thanks for your personal marvelous posting! I seriously enjoyed reading it, you are a great author.I will be sure to bookmark your blog
    and will come back from now on. I want to encourage you to continue your great job, have
    a nice evening!

  15. #16 by Reece on April 5, 2014 - 9:23 pm

    My developer is trying to persuade me to move to
    .net from PHP. I have always disliked the idea
    because of the expenses. But he’s tryiong none the less.
    I’ve been using WordPress on a variety of websites
    for about a year and am nervous about switching to another platform.
    I have heard excellent things about blogengine.net.
    Is there a way I can import all my wordpress content into
    it? Any help would be greatly appreciated!

  16. #17 by air conditioner nyc on April 9, 2014 - 7:59 pm

    Hi, after reading this amazing piece of writing i
    am too cheerful to share my experience here with friends.

  17. #18 by bed bug cleaning service nyc on April 11, 2014 - 7:42 pm

    Awesome blog! Do you have any tips for aspiring writers?
    I’m planning to start my own site soon but I’m a little lost on everything.
    Would you recommend starting with a free platform like WordPress or go for a paid option?
    There are so many choices out there that
    I’m completely overwhelmed .. Any suggestions? Appreciate it!

  18. #19 by deer hunter 2014 hack no survey on April 24, 2014 - 2:58 am

    I used to be suggested this blog by means of my cousin.
    I am no longer positive whether this publish is written by him as no
    one else realize such specified approximately
    my trouble. You’re amazing! Thank you!

  19. #20 by free steam wallet codes on April 30, 2014 - 7:54 pm

    Tremendous issues here. I am very happy to look your post.
    Thanks a lot and I’m looking forward to contact you.
    Will you kindly drop me a e-mail?

  20. #21 by coen brothers film up for best picture on May 3, 2014 - 1:54 am

    I know this web site provides quality depending content and additional material,
    is there any other site which presents such information
    in quality?

  21. #22 by beta keys for wildstar on May 8, 2014 - 5:10 pm

    I am not sure where you’re getting your information,
    but great topic. I needs to spend some time learning much more or understanding more.
    Thanks for magnificent info I was looking for this information for my mission.

  22. #23 by Gist Africa on May 12, 2014 - 7:03 pm

    Fabulous, what a weblog it is! This website provides valuable facts to us, keep it up.

  23. #24 by www.worldmodes.org on May 15, 2014 - 4:40 pm

    Exceptional post however I was wanting to
    know if you could write a litte more on this subject? I’d be very grateful if you could elaborate a little bit more.
    Kudos!

  24. #25 by SPORTS CAR on May 16, 2014 - 1:20 pm

    Nice post. I learn something totally new and challenging
    on websites I stumbleupon every day. It will always be
    interesting to read content from other authors and practice a little something from other
    websites.

  25. #26 by FarmVille 2 Country Escape Cheats on May 28, 2014 - 1:05 pm

    Hi! I’m at work surfing around your blog from my new iphone 4!
    Just wanted to say I love reading through your blog and
    look forward to all your posts! Keep up the fantastic work!

  26. #27 by twitter followers on May 30, 2014 - 12:49 pm

    Hi there this is somewhat of off topic but I was wondering if blogs use WYSIWYG
    editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding skills so I wanted to
    get guidance from someone with experience. Any help would be enormously appreciated!

  27. #28 by Telecharger Bridge Constructor Medieval Gratuit on June 2, 2014 - 7:27 am

    It’s really a great and helpful piece of info. I am happy that you shared this helpful
    info with us. Please keep us up to date like this.
    Thanks for sharing.

  28. #29 by lbetancourt.com on June 4, 2014 - 1:48 am

    I have read so many content regarding the blogger lovers except
    this paragraph is truly a pleasant post, keep
    it up.

  29. #30 by Bed Bug Retreiver Dogs Inc on June 4, 2014 - 11:05 am

    Thanks in favor of sharing such a good opinion, article is pleasant, thats why i have read it completely

  30. #31 by private Investigator San francisco on June 22, 2014 - 5:42 am

    It’s actuallу a nice annd helpful piece of info. I am happy hat you shared this helpful info with us.
    Please stay us up to date like this. Thank you fοr sharing.

  31. #32 by renovations at roosevelt field mall on June 23, 2014 - 5:37 pm

    I needed to tjank you foor this excellent read!!
    I absolutely loved every little bit of it. I have got you bookmarked to check ouut neew stuff you post…

  32. #33 by bewitchedbookworms.com on June 23, 2014 - 6:59 pm

    Good post. I learn something new and challenging on sites I stumbleupon on a daily basis.

    It will always be exciting to read content from other
    authors and use something from their sites.

  33. #34 by Loresoft online EAN Generator on July 14, 2014 - 5:36 pm

    Hello are using WordPress for your site platform?
    I’m new to the blog world but I’m trying to get started
    and set up my own. Do you require any coding expertise to make your own blog?
    Any help would be really appreciated!

  34. #35 by read more on July 15, 2014 - 9:42 am

    If some one wants expert view about blogging after that i recommend him/her
    to visit this web site, Keep up the good work.

  35. #36 by http://www.docstoc.com/ on July 16, 2014 - 4:55 pm

    You actually make it appear so easy along with your presentation but I in finding this matter to be really something that I believe I might by no means
    understand. It sort of feels too complicated and extremely extensive for me.
    I am having a look forward in your next post, I will attempt to get
    the dangle of it!

  36. #37 by Camille on July 17, 2014 - 2:02 am

    certainly like your web-site however you need to check the spelling on several of your posts.
    A number of them aare rife with spelling problems and I in finding it very bothersome to inform the tryth
    on the other hand I’ll definitely come back again.

  37. #38 by Disney Nail Art Decals on July 18, 2014 - 10:08 am

    Howdy! I know this is somewhat off-topic but I needed
    to ask. Does operating a well-established blog such as yours require a
    large amount of work? I’m completely new to writing a blog but I
    do write in my diary everyday. I’d like to start a blog so I can easily share my personal experience and feelings online.
    Please let me know if you have any recommendations or
    tips for brand new aspiring bloggers. Appreciate it!

  38. #39 by Judy Neinstein 2011 on July 19, 2014 - 2:07 pm

    Excellent blog! Do you have any tips and hints for aspiring writers?
    I’m planning to start my own website soon but I’m a little lost on everything.
    Would you advise starting with a free platform like WordPress or go for a paid option? There are
    so many choices out there that I’m completely confused ..

    Any recommendations? Thanks a lot!

  39. #40 by tinnitus cure crystal sound therapy on July 19, 2014 - 9:18 pm

    Wow, awesome weblog format! How lengthy have you ever been blogging for?
    you made running a blog glance easy. The entire glance of your web
    site is great, let alone the content!

  40. #41 by service repair on July 22, 2014 - 2:13 am

    Howdy very cool site!! Man .. Beautiful .. Superb .. I will bookmark your website and take the feeds
    also?I am satisfied to find numerous useful information here in the post, we need work out
    more techniques on this regard, thank you for sharing.
    . . . . .

  41. #42 by Noelia on July 22, 2014 - 9:57 am

    Hey I know this is off topic but I was wondering if you knew of
    any widgets I could add to my blog that automatically tweet my newest
    twitter updates. I’ve been looking for a plug-in like this for quite some
    time and was hoping maybe you would have some
    experience with something like this. Please let me know if you run into anything.

    I truly enjoy reading your blog and I look forward to your new updates.

  42. #43 by Galaxy Samsung 5 s versus Amazon Fire Smartphone on July 22, 2014 - 12:19 pm

    When some one searches for his necessary thing, therefore he/she wishes to be available that in detail, thus that thing is maintained over here.

  43. #44 by lgdehumidifierz.info on July 23, 2014 - 11:05 am

    Pretty great post. I simply stumbled upon your blog and woshed to say that I have truly
    enjoyed browsing your weblkg posts. In any case I will be subscribing on your feed and
    I am hoping you write once mokre soon!

  44. #45 by ombre hair chalk on July 23, 2014 - 12:46 pm

    That is a really good tip particularly to those fresh to the blogosphere.
    Simple but very precise information… Thank you for sharing
    this one. A must read post!

  45. #46 by fifa 14 free coins on July 25, 2014 - 2:34 pm

    Hi there! Quick question that’s entirely off topic.
    Do you know how to make your site mobile friendly? My site looks
    weird when browsing from my iphone4. I’m
    trying to find a template or plugin that might be able to fix this problem.
    If you have any suggestions, please share. Cheers!

  46. #47 by Free Microsoft Points Codes List on August 4, 2014 - 4:32 pm

    you’re truly a good webmaster. The site loading speed is amazing.

    It seems that you’re doing any distinctive trick.
    Also, The contents are masterpiece. you have performed a magnificent task in this
    topic!

  47. #48 by get connected with a local criminal cases on August 9, 2014 - 1:27 pm

    Fantastic beat ! I wish to apprentice while you amend yyour site, how
    can i subscribe for a blog website? The account aided me a acceptable deal.
    I had been a little bit acquainted of this your broadcast provided bright clear idea

  48. #49 by landing page on August 10, 2014 - 2:08 pm

    Excellent post. I was checking constantly this blog and I am impressed!

    Very helpful info particularly the last part :
    ) I care for such info a lot. I was seeking this certain info
    for a very long time. Thank you and good luck.

  49. #50 by e-sigaret kopen on August 10, 2014 - 2:57 pm

    Very good information. Lucky me I ran across your website by chance (stumbleupon).
    I have saved it for later!

  50. #51 by official facebook page about cairns on August 11, 2014 - 12:28 am

    You are so awesome! I do not suppose I’ve truly rread anything like this before.
    So wonderful to discover someone with a few genuine thoughts on this subject.

    Really.. thanks for starting this up. This site is one thing that is needed on the web, someone with a bit of originality!

  51. #52 by sitosterol on August 14, 2014 - 10:08 pm

    I am regular visitor, how are you everybody?
    This article posted at this web page is in fact
    pleasant.

  52. #53 by money on August 14, 2014 - 11:22 pm

    I like the helpful info you provide in your articles.
    I’ll bookmark your weblog and check again here regularly.
    I am quite sure I will learn lots of new stuff right here!
    Good luck for the next!

  53. #54 by Toby on August 19, 2014 - 9:29 pm

    Valuable information. Fortunate me I found your site by accident, and
    I am stunned why this twist of fate didn’t took place earlier!
    I bookmarked it.

  54. #55 by top rated carpet cleaners on August 20, 2014 - 10:59 pm

    Excellent beat ! I wish to apprentice while you amend your site, how could i subscribe for a blog web site?

    The account helped me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear idea

  55. #56 by Disney Nail Art on August 28, 2014 - 10:59 am

    Hello, the whole thing is going nicely here and ofcourse
    every one is sharing data, that’s in fact excellent, keep up writing.

  56. #57 by comptoir granit ou quartz ville de Quebec on September 8, 2014 - 6:16 am

    Woah! I’m really enjoying the template/theme of
    this site. It’s simple, yet effective. A lot of times
    it’s hard to get that “perfect balance” between usability and visual appearance.
    I must say that you’ve done a amazing job with this.
    Additionally, the blog loads very fast for me on Firefox.
    Superb Blog!

  57. #58 by sociopath test child on October 8, 2014 - 10:26 pm

    Hello, after reading this amazing paragraph i am too glad to share
    my familiarity here with colleagues.

(will not be published)


  1. official site