chapter 3 Flashcards

1
Q

How static embedded sql works?

A

static sql queries are embedded in the programming language, which is extended using prefix for SQL operations.
Preconversor/Precompiler converts SQL into function calls of the programming language.
Advantages: Potentially performance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How dynamic embedded SQL works?

A

SQL queries are treated dynamically by the program. Preprocessor is still required.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How Call-level Interface (CLI) works?

A

It has the same capabilities as dynamic embedded SQL. SQL queries are string parameters of function invocations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Requirement for db-gw:

A

Remote data access, multiple simultanously active DB-connections within the same applicatoin thread, simultaneous acces to multiple DBMS
ODBC x JDBC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In the db gateway architecture, which is the role of the driver manager?

A

the driver manager is the responsible for manages interactions between applications and drivers, realizes (n:m)relationship between applications and drivers. It load/unload driver, mapping data sources to drivers, communicatation/ logginf of function/ method calls, and simple error handling.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

explain ODBC driver type: Single-Tier driver

A

Data resides on the same machine as the driver. As functionality it completes SQL processing (parse, optimize and execution) and often lacks multi-use and transaction support

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

explain ODBC driver type: two-tier driver

A

Driver acts as a client interacting with DBMS (server) through data protocol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

explain ODBC driver type: three-tier driver

A

Middleware server
*gw server
*connects and relays requests to one or more DBMS servers
moves the complexity from the client to the middleware server
*client requires only a single driver for the middleware server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which are the JDBC driver types?

A
  • type1: jdbc-odbc bridge with 2-tier.
  • type 2: native-API partial-java driver, it is also 2-tier
  • type3: net-protocol ALL-JAVA driver. It is 3-tier and does not requeire natie binaries on client
  • type 4: native-protocol all-java driver. It is 2-tier and pure java. It implements the network data protocol of the DBMS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

WHY is SQL/OLB (SQLJ part0) a big problem to large enterprise?

A

Because in SQL/OLB there is no notion of „program“ per say. End users must have table privileges, and it is not easy to solve in a large enterprise.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

SQLJ

A

Combines advantages of embedded SQL with binary portability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly