Wednesday 8 July 2015

SMU ASSIGNMENT OF MCA 3RD SAM ASSIGNMENT OF ADVANCED DATABASE MANAGEMEN SYSTEM

   ASSIGNMENT OF ADVANCED DATABASE MANAGEMEN SYSTEM


 Question No 1. Describe the following:
a) Hierarchical Model
b) Network Model

Hierarchical data model:- Here we organize data into a structure which appears as a tree. In this stricter, every node comprises one parent nod. Root node is an exception, that is, it does not contain any parent. This is to note the although a node can comprise numerous child nodes, but it can comprise just one parent node. A record is represented by a node available in structure which appears as tree.
Advantages
Simplicity:- it has simple design process since data in many practical circumstances usually consists of hierarchical relationship. It is thus easier to see the data organized in this manner.
Security:- These databases can execute the changing level of security characteristics.
Database Integrity:- it is extremely advertised in these systems due to its inbuilt structure of parent and child.
Relationship handling:- these database are considered as extremely proficient for the relationships of the type 1:M.
Network Model:-

This model was invented by Charles Bachman afterwards by means of  CODASYL conference on data systems languages association in 1969. It was formulated into a standard arrangement. This model is considered similar to the hierarchical model. However this model permits every record to comprise numerous records of parent as wll as child thus generating a network structure.

Some network databases examples that are most commonly used are:
Turbo IMAGE
IDMS
RDM Embedded
RDM Server

Advantages of network model:

Simplicity: This model is easy to design because mostly all instances of data relationship usually occur as N:M type.
Relationship handling: It is proficient of handling relationship in a better manner the relationship of the type N:M can accommodate various complicated relationships tha are available in real is provided.
Flexibility: These databases provide more flexibility as compared to hirarachical database. This is because here you can navigate data items in numerous ways. Thus high level of flexibility of data access is provided.

Standards: These databases include the development of worldwide standards.


 Question No 2. Explain the physical query plan operators. What is the significance of Iterators?
 Logical Operators 
Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).
Operators describe how SQL Server executes a query or a Data Manipulation Language (DML) statement. The query optimizer uses operators to build a query plan to create the result specified in the query, or to perform the operation specified in the DML statement. The query plan is a tree consisting of physical operators. You can view the query plan by using the SET SHOWPLAN statements, the graphical execution plan options in SQL Server Management Studio, or the SQL Server Profiler Showplan event classes.
Operators are classified as logical and physical operators.
Logical operators describe the relational algebraic operation used to process a statement. In other words, logical operators describe conceptually what operation needs to be performed.

Physical Operators

Physical operators implement the operation described by logical operators. Each physical operator is an object or routine that performs an operation. For example, some physical operators access columns or rows from a table, index or view. Other physical operators perform other operations such as calculations, aggregations, data integrity checks or joins. Physical operators have costs associated with them.
The physical operators initialize, collect data, and close. Specifically, the physical operator can answer the following three method calls:
Init(): The Init() method causes a physical operator to initialize itself and set up any required data structures. The physical operator may receive many Init() calls, though typically a physical operator receives only one.
GetNext(): The GetNext() method causes a physical operator to get the first, or subsequent row of data. The physical operator may receive zero or many GetNext() calls.
Close(): The Close() method causes a physical operator to perform some clean-up operations and shut itself down. A physical operator only receives one Close() call.
The query optimizer creates a query plan as a tree consisting of logical operators. After the query optimizer creates the plan, the query optimizer chooses the most efficient physical operator for each logical operator. The query optimizer uses a cost-based approach to determine which physical operator will implement a logical operator.
Usually, a logical operation can be implemented by multiple physical operators. However, in rare cases, a physical operator can implement multiple logical operations as well.

Question No 3. Differentiate between Serialisability and Recoverability.
Serializability:-
Serializability is the classical concurrency scheme. This helps to ensures that a schedule with regard to performing executing concurrent transactions is equivalent to one that executes the transactions serially in some order. It assumes that all accesses towards the database are done using read and write operations. A schedule is known as correct if we can find a serial schedule that is equivalent to it.
Two major types of serializability exist: view-serializability, and conflict-serializability. View-serializability matches the general definition of serializability given above. Conflict-serializability is a broad special case, i.e., any schedule that is conflict-serializable is also view-serializable, but not necessarily the opposite. Conflict-serializability is widely utilized because it is easier to determine and covers a substantial portion of the view-serializable schedules. Determining view-serializability of a schedule is an NP-complete problem (a class of problems with only difficult-to-compute, excessively time-consuming known solutions).
View-serializability of a schedule is defined by equivalence to a serial schedule (no overlapping transactions) with the same transactions, such that respective transactions in the two schedules read and write the same data values ("view" the same data values).
Conflict-serializability is defined by equivalence to a serial schedule (no overlapping transactions) with the same transactions, such that both schedules have the same sets of respective chronologically ordered pairs of conflicting operations (same precedence relations of respective conflicting operations)
Recoverability:-
Serializability recognizes schedules which preserve database consistency, assuming no transaction fails. Could also examine recoverability of transaction within schedules. If transaction fails, atomicity requires effect of transaction to be undone. Durability states that once transaction commits, its change cannot be undone (without running another, compensating, transaction).
Serializability of a schedule means equivalence (in the outcome, the database state, data values) to a serial schedule (i.e., sequential with no transaction overlap in time) with the same transactions. It is the major criterion for the correctness of concurrent transactions' schedule, and thus supported in all general purpose database systems.
The rationale behind serializability is the following:
If each transaction is correct by itself, i.e., meets certain integrity conditions, then a schedule that comprises any serial execution of these transactions is correct (its transactions still meet their conditions): "Serial" means that transactions do not overlap in time and cannot interfere with each other, i.e, complete isolation between each other exists. Any order of the transactions is legitimate, if no dependencies among them exist, which is assumed (see comment below). As a result, a schedule that comprises any execution (not necessarily serial) that is equivalent (in its outcome) to any serial execution of these transactions, is correct


 Question No 4. Discuss about Parallel query processing. How parallel-execution works?

 Parallel query processing:-
In paraleel query processing multiple processes together at the same time to handle one individual SQL statement. The database  server can handle the statement more swiftly in comparison to a single server by segregating the work necessary to process a statement among various multiple servers.
The feature helps to dramatically enhance functioning for data inhance operations related with decision-support applications and ever extremely big database environments. Parallel query feature is most useful for SMP (Symmetric multiprocessing) clustered or MPP(massively parallel systems) because of the fact that in such types of systems the query processing could be efficiently split up among various central processing units on one single system.
In parallel query processing, the query is parallelized dynamically at the execution time itself. It automatically adapts to optimize itself for parallelization, if the location or distribution of the data changes.
How parallel execution works
The basic unit of work in parallelism is called a granule. When a database instance starts up, the database makes a pool of parallel-execution servers that are present for any parallel operation. When performing a parallel operation the coordinator acquires parallel-execution servers from the group and allocates them to the operation. The one proces by the name of parallel-execution coordinator assigns execution of one granule to many parallel-execution servers and co-ordinates result from every server processes and return to the user.

Parallel-execution is helpful for various types of operations that access considerable amounts of data. Parallelism enhances performance for
·        Queries
·        Formation of  large indexes
·        Volume inserts, updates, and deletes
·        Aggregations and copying

 Question No 5. Differentiate between homogeneous and heterogeneous Database.

Homogeneous:-

When the database technology is the same at each of the locations and the data at the several locations are also compalitble that data is known as homogenous database. The following conditions should exist for homogenous database:
·        The operation system used at each of the locations is the same or at least they should be extremely compatible.
·        The data models used at every location should be the same.
·        The database management used at every location should be the same or at least they should be extremely compatible.
·        The data at the different location should have common definitions and formats.
Homogenous database make the sharing of data between the different users simpler. This signifies the design goal for the distributed database. Achieving this objective needs a very high level planning during the planning phase.

Heterogeneous database:
In heterogeneous DDMS every one of the site might manage different types of DBMS wares, which does not need to be established on the similar original data model and so the system should be made of RDMS OODMS & ORDBMS products.
·        In heterogeneous database contact among various DBMS is needed for translations.
·        So as to give DBMS transparency users should be able to make requests in DBMS language at the local  site.
·        Data from other sites might have a variety of hardware, diverse DBMS products and mixture of a variety  of hardware & DBMS products.
·        The job of finding  these data & execution any essential translation are the capabilities of the heterogeneous DDBMS.


Question No 6 Write short notes on ODMG standards. What are the various components of ODMG-93?

ODMG Standard:
A working group composed of five representatives of the OODBMS vendors established ODMG standard. It provides an inclusive framework for designing an object database writing portable applications in C++ or Smalltalk and querying the database with a simple and very powerful query language.
Major Components of ODMG standard:
Object model :
 it is the model on which the fundamental concepts of object-oriented data structures such as classes, objects , encapsulation, inheritance, interfaces, operations, etc.
Object definition language ODL:-
Object definition language defines how to formulate a database schema the structure of a database. It is neutral to programming languages.
Object interchange format:
This determines how the various objects are represented for exchanging them between different OODBMS.
Object query language (OQL)
OQL is the query language for ODMG object model. Thus it is projected to retrieve data from an object base. It is not concerned with keeping it up to data and neither has it explained the SQL like abstractions such views constraints and stored procedures. It is intended to work directly with various programming language for which a requisite is defined such as C++ java or SMALLTALK.
Binding to programming language C++, SMALLTALK and JAVA:
It is the ODMG binding to programming languages like C++ java and Smalltalk.


------------------------------------------------------------------------------------------------------------
Semester      : Third MCA
Name            : Akash Verma
Roll No         : 14002009414


35 comments:

  1. Replies
    1. Hello Priyanka mam, can u plz provide notes of mca 3rd sem . urgently required ...easy language n easy to understand . Shall be highly obliged . Plz notify me on my emailid.. prashantsinghasan@gmail.com

      Thanks
      Prashant Singh

      Delete
  2. Dear Aakash plz share some great theory notes preferably hand made of MCA 3rd sem...
    Shall be indebted brother.
    prashantsinghasan@gmail.com

    Thanks
    Prashant Singh
    7835874995

    ReplyDelete
  3. Thank you for benefiting from time to focus on this kind of, I feel firmly about it and also really like comprehending far more with this particular subject matter. In case doable, when you get know-how, is it possible to thoughts modernizing your site together with far more details? It’s extremely useful to me.
    Click here:
    angularjs training in bangalore
    Click here:
    angularjs training in pune

    ReplyDelete
  4. Great content thanks for sharing this informative blog which provided me technical information keep posting.
    Blueprism training in Chennai

    Blueprism training in Bangalore

    Blueprism training in Pune

    Blueprism online training

    ReplyDelete
  5. Thanks you for sharing this unique useful information content with us. Really awesome work. keep on blogging
    Devops training in velachery
    Devops training in annanagar

    ReplyDelete
  6. Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
    java training in annanagar | java training in chennai

    java training in chennai | java training in electronic city

    ReplyDelete
  7. This blog is the general information for the feature. You got a good work for these blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and useful.

    Data Science Training in Chennai | Data Science training in anna nagar
    Data Science training in chennai | Data science training in Bangalore
    Data Science training in marathahalli | Data Science training in btm

    ReplyDelete
  8. any one notice 2 answer is wrong

    ReplyDelete
  9. Thanks For sharing Your information The Information Shared Is Very Valuable Please Keep updating Us Time Just Went On Redaing The Article Python Online Course Devops Online Course Data Science Online Course Aws Science Online Course

    ReplyDelete
  10. I am really very happy to find this particular site. I just wanted to say thank you for this huge read!! I absolutely enjoying every petite bit of it and I have you bookmarked to test out new substance you post.
    angularjs online training

    apache spark online training

    informatica mdm online training

    devops online training

    aws online training

    ReplyDelete
  11. Thank you for this post!! I have just discovered your blog recently and I really like it! I will definitely try some of your insights.
    Regards,
    SQL Training in Chennai | SQL DPA Training in Chennai | SQL Training institute in Chennai

    ReplyDelete
  12. I have to voice my passion for your kindness giving support to those people that should have guidance on this important matter.
    MCSE Training in chennai | mcse training class chennai

    ReplyDelete
  13. Really very informative and creative contents. These concept is a good way to enhance the knowledge. Thanks for sharing your blog is awesome.I gathered lots of information from this blog.
    Salesforce Training in Chennai

    Salesforce Online Training in Chennai

    Salesforce Training in Bangalore

    Salesforce Training in Hyderabad

    Salesforce training in ameerpet

    Salesforce Training in Pune

    Salesforce Online Training

    Salesforce Training

    ReplyDelete
  14. The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
    Angular js Training in Chennai

    Angular js Training in Velachery

    Angular js Training in Tambaram

    Angular js Training in Porur

    Angular js Training in Omr
    Angular js Training in Annanagar

    ReplyDelete
  15. Nice post! thanks for sharing. Really loved the way it is written. It is very well structured and easy to understand. This is very useful for my learning. Appreciate your efforts.
    Selenium Training in Chennai

    Selenium Training in Velachery

    Selenium Training in Tambaram

    Selenium Training in Porur

    Selenium Training in Omr

    Selenium Training in Annanagar

    ReplyDelete
  16. Really very informative and creative contents. These concept is a good way to enhance the knowledge. Thanks for sharing your blog is awesome.
    amazon web services aws training in chennai

    microsoft azure training in chennai

    workday training in chennai

    android-training-in chennai

    ios training in chennai

    ReplyDelete
  17. Hey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
    IELTS Coaching in chennai

    German Classes in Chennai

    GRE Coaching Classes in Chennai

    TOEFL Coaching in Chennai

    Spoken english classes in chennai | Communication training

    ReplyDelete