0% found this document useful (0 votes)
218 views27 pages

IBM DataStage V11.5.x Database Transaction Processing

Uploaded by

Antonio Blanco
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
218 views27 pages

IBM DataStage V11.5.x Database Transaction Processing

Uploaded by

Antonio Blanco
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 27

IBM DataStage V11.5.

x Database
Transaction Processing
24/30

iBM DataStage V11.5.x Database


Transaction Processing
1. My Enrollments
2. My courses
3.  BG19020G
4.  Badge quiz in progress

Correcion 5

2 dudas

1. What is another name for the insert


plus update combined SQL statements?

Select one:

A. Upsert

B. Insert

C. Modify

D. Join
The Connector stage offers two types of insert plus update (sometime called
an "upsert") statements. For the Insert then update write mode, the insert
statement is executed first. If the insert fails with a unique-constraint
violation, the update statement is executed. The Update then insert is the
reverse. Choose Insert then update or Update then insert based on the
expected number of inserts over updates. For example, if you expect more
updates than inserts, choose the latter.

2. Which report displays the actual


database name rather than the data
connection object when mapping data
connection objects to an imported
database?
***duda

Select one:

A. Business Lineage reports

B. Data lineage reports

C. Information latency in lineage reports

D. Metadata summary reports

3. Record count must be a multiple of


which of the following?

Select one:

A. Array count

B. Upsert

C. Array size

D. Index
This slide lists how commits are handled. The Autocommit mode property
can be set to On or Off. When On, commits are made after each write
operation, which slows performance down considerably. When Off, commits
are made after the number of
records specified by the Record count property are processed. This is the
default setting.
The Array size property specifies how many rows are bundled into each
physical write operation to the database. The higher the number, the better the
performance because fewer physical writes occur.
Record count must be a multiple of Array size.
4. How does the DB2 Fast Loader
mark a table in the event of a failure
during a bulk loading operation?

Select one or more:

A. Locked

B. Quiesced exclusive

C. Roll Back

D. Autocommit mode off

E. Load pending state

In the event of a failure during a DB2 bulk loading operation, the DB2 Fast
Loader marks the table inaccessible (quiesced exclusive or load pending
state).
You can reset the target table to the normal mode by rerunning the job with
the Cleanup on failure option turned on.

5. Using the illustration below, what is


the name of the object that can be used
to store connection property values?

Select one:

A. Connector stage

B. Data Connection object

C. Repository object

D. Parameter sets
6. With a Teradata database, what
does the sessionsperplayer property
indicate?
***

Select one:

A. The number of connections each player in the job has to Teradata

B. The number of concurrent users on the database

C. The number of sessions each user has available

D. The maximum number of available sessions


Opciones de DB

Especifique un nombre de usuario y contraseña para conectarse a Teradata en el formulario:

<user = < user >, password= <passwordworkdbwork_database >

[SessionsPerPlayer = <num_sessions>]

[RequestedSessions = <num_requested>]

[synctimeout = <timeout _in_secs>]

El valor de las sesiones por jugador [SessionsPerPlayer] determina el número de conexiones que
cada jugador tiene con Teradata. Indirectamente, también determina el número de jugadores. El
número seleccionado debe ser tal que (sesiones por jugador * número de nodos * número de
jugadores por nodo) sea igual al total de sesiones solicitadas. El valor predeterminado es 2.

7. What are the server job stages with


which data connection objects can be
associated?
** Error 1 (corregido)

Select one or more:

A. DataStage

B. Transformer stage

C. Connector stage

D. Universe stage

E. UniData stage
The server tool palette organizes stages into the following groups:
 Database. These stages read or write data that is contained in a database.
 File. These stages read or write data that is contained in a file or set of files.
 Processing. These stages perform some processing on the data that is passed
through them.

Stage Function

Reads data from or writes data to


ODBC (see ODBC sources databases that support the industry-
standard Open Database Connectivity API

Oracle 7 Load (see Oracle Generates control and data files for bulk
databases) loading data into a single table in an
Oracle database.
Sybase BCP Load (see Sybase Uses the BCP (Bulk Copy Program)
BCP Load stage and BCP Load utility to bulk load data into a single table
stage) in a Microsoft SQL Server or Sybase
database.
UniData (see IBM UniVerse Reads data from or writes data to a
and UniData) UniData database.
UniVerse (see IBM UniVerse Reads data from or writes data to a
and UniData) UniVerse database.

8. What two APIs can be used in the


File Connector stage to read and write
to Hadoop file systems?

Select one or more:

A. DSOpenJob

B. WebHDFS
C. HttpFS

D. TFile

E. datatransfer.sasl

F. Hdfs

The File Connector stage can read and write files locally on the Engine system
or on Hadoop HDFS file systems. When a local file system is specified the
stage functions like a sequential file stage.
You can use either of two API’s to read and write to HDFS: WebHDFS and
HttpFS.
The stage properties are basically the same regardless of which API is used.
The Big Data File stage can also be used to read and write files on HDFS, but
is more limited. The main limitation is that the Big Data File stage requires
IBM InfoSphere BigInsights.
9. What can be added to Connector
stages to specify how rows experiencing
SQL errors are handled
Select one:
A. Balanced Optimization tool
B. Runtime errors
C. Reject links
D. SQL Builder tool

10. How will the database table be


displayed within a job if the data
connection object is not mapped to the
imported database?
Error 2
Select one:
A. As a logical data model asset
B. As a physical data model asset
C. As a virtual asset
D. As a metadata asset

Mapping data connection objects to a database

Para que el linaje continúe el flujo a través de las bases de datos a las que se
refieren diferentes nombres de origen de datos, debe asignar el objeto de
conexión de datos a la base de datos importada. Lineage utiliza esta información
para crear relaciones entre etapas y tablas de bases de datos importadas. Si no se
realiza esta asignación, el linaje para ese trabajo muestra las tablas de la base de
datos como activos virtuales que podrían no vincularse correctamente con el resto
del flujo de linaje.
En ocasiones, es posible que deba asignar los objetos de conexión de datos a una
base de datos que no puede importarse debido a sus políticas de seguridad
internas. En este caso, puede identificar esos objetos de conexión de datos como
los mismos y seleccionar uno de ellos como el nombre preferido para cuando
muestre informes de linaje.

11. Which statements are TRUE for


writing data to a DB2 table by using
the DB2connector?
Select one or more:
A. For the write mode, the table must exist
B. The table can be created at runtime using the Create or Replace table actions
C. You must specify a table name if write mode is set to Bulk Load
D. In the Enable quoted identifiers field, keep the default to retain the case of all of the object
names in DDL and DML statements

Click the Properties tab.
a. Specify the Write mode.
b. In the Table name field, specify the name of the destination table that is used
in the SQL statements that are meant for writing data.
For the write mode, the table must exist. You can create the table at runtime
using the Create or Replace table actions. The table name is used to
generate Data Definition Language (DDL) statements. You must specify a
table name if Write mode is set to Bulk Load, the Generate SQL property is
set to Yes, or the Table action property is set to Create, Drop, or Truncate.
c. Specify whether you want SQL statements generated at run time in
the Generate SQL field.
d. In the Enable quoted identifiers field, specify Yes to retain the case of all of
the object names in DDL and DML statements.
The default is No.
e. In the SQL field, specify the appropriate SQL statements.
f. In the Table action field, specify how you want tables to be created, or how
you want rows to be edited or inserted in an existing destination table.
g. In the Before or After SQL field, specify whether an SQL statement runs
before or after data processing.

12. Using the illustration below, what


does the left pane enable users to
select?

Select one:
A. Type of information to include with the rejected rows
B. Abort conditions
C. Rejection Conditions
D. ODBC Connector

13. Using the illustration below, what


does the right pane enable users to
select?

Select one:
A. Rejection Conditions
B. Abort conditions
C. The type of information to include with the rejected rows
D. ODBC Connector

In the window on the right, you can specify whether to include error
information along with the rejected row. If, for example, you check
ERRORCODE, a column named ERRORCODE will be added each
reject row. This new column will contain the SQL error code that
occurred.

14. When optimizing performance in


general, which operation is better done
in DataStage rather than the database?
Select one or more:
A. Using a join with join columns indexed
B. Filtering data
C. Sorting data
D. Running stored procedures on a per row basis
15. Database stages that have been
deprecated can be found where?
Select one:
A. Palette
B. Connector Stages Advanced tab
C. Stage Types folder
D. Design Client
16. The ODBC connector provides
ways to save and reuse information,
such as connection specifications and
property values, to which of the
following?
Error 3

Select one or more:


A. Metadata
B. Data connection object
C. Transformer
D. Designer Client
E. Job parameters

Can load connection properties from a data connection object

Information reuse and the ODBC connector

The ODBC connector provides ways for you to save and reuse information such as


connection specifications and property values in a data connection object,
metadata, and job parameters.
The following topics describe how to work with these information pieces:
 Data connection objects
o Saving connection information as data connection objects
 Metadata
o Saving metadata in the connector
o Selecting a job parameter in a connector property

17. Using the error message below, why


did the SQL operation fail?
Select one:
A. The ODBC Wire Protocol Driver was invalid
B. DB2INST1.EMPINFO was restricted because the user did not have the
correct privilege
C. The insert failed because a row with a matching key value already existed in
the table
D. The SQL statement was invalid

The stage attempted to insert a row into the table, but the insert failed because
a row with a matching key value already existed in the table

18. Which property should be used to


control the order in which the stage
processes the records that arrive on
multiple input links that are defined for
the stage?
Select one:
A. Record ordering property
B. Isolation level property
C. Keep conductor connection alive property
D. Auto commit mode property
19. Which of the following is a valid
Data Connection name?
Select one:
A. A_name0fConn3ction
B. aNameOfCo22ecti%n
C. _aName&ConnecTion
D. _NameOfConnec1ion
E. A_nameOfConnec3ion!

20. When in doubt as to whether to


perform operations in either the source
or target database or within DataStage,
what tool can a user use to test the
possibilities to see which yields the best
performance?
Select one:
A. Balanced Optimization
B. Information Analyzer
C. ODBC Connector Stage
D. Push Down Optimization

21. When generating your own SQL,


what are some valid options?
Select one or more:
A. Write the code in a text editor and paste it into DataStage
B. Import the SQL code using the ODBC Connector
C. Invoke SQL Builder tool from within the stage
D. Use the Connector stages bulk loading utility to load multiple SQL statements for processing
E. Manually type in the SQL using a keyboard

Connector stages contain a utility called SQL Builder that can be used to build the SQL used by the
stage. SQL is built using GUI operations such as drag-and-drop in a canvas area. Using SQL Builder
you can construct complex SQL statements without knowing how to manually construct them.

Alternatively, this is where you would manually type or paste in an SQL statement

22. Which of the following are TRUE


about a Stored Procedure?
Select one or more:
A. It supports input and output parameters
B. It can be called twice per job or twice per row
C. It extends functionality of DataStage
D. It supports several database types: DB2, Oracle, SQL Server, Teradata
The Stored Procedures stage is used to execute database stored procedures. This can extend the
functionality of DataStage to include database functionality
La etapa Procedimientos almacenados admite parámetros o argumentos de entrada y
salida para que pueda proporcionar un valor y recibir un valor a cambio. Puede procesar
el valor devuelto después de ejecutar el procedimiento almacenado. La etapa
Procedimientos almacenados proporciona códigos de estado que indican si el
procedimiento almacenado se completó correctamente y, si no, le permite manejar
errores.

Actualmente, la etapa Procedimientos almacenados es compatible con Oracle, DB2®,


Sybase, Teradata y SQL Server. La etapa Procedimiento almacenado está diseñada para
que pueda configurarse en tiempo de ejecución para ejecutar procedimientos
almacenados en varios sistemas de gestión de bases de datos relacionales compatibles
diferentes que utilizan interfaces nativas.

23. The Before/After SQL are typically


used in Connector stages to do what?
Select one or more:
A. Join a temporary table
B. Create an Index
C. Delete a temporary table
D. Create a temporary table
E. Query a temporary table
The non-Before/After SQL statement specified in the stage retrieves a set of
rows that are processed through the stage one at a time. Before/After SQL
statements execute once before or after all of these rows are processed.
Typically they would be used for such things as creating or deleting a
temporary table or for creating an index

24. What are the two properties that


should be specified when a stage
generates the SQL?
Select one or more:
A. Column definitions
B. Schema name
C. Record count
D. Table name
E. User ID

•Have the stage generate the SQL?


–If Yes, stage generates SQL based on column definitions and specified
table name
•Table name
–If schema name is not specified, then assumes DataStage user ID>For
example: ITEMSbecomes STUDENT.ITEMS

25. When mapping data connection


objects to a database in Information
Governance Catalog, what role must
you have within Information Server?
Select one:
A. Information Governance Catalog Information Asset Administrator role
B. Information Governance Catalog Information Asset Assigner
C. Information Governance Catalog Glossary Administrator
D. Information Governance Catalog User

Information Governance Catalog Information Asset Assigner


Asignación de activos de información del catálogo de gobierno de información
El Asignador de activos de información del catálogo de Information Governance es un rol de
seguridad diseñado para usuarios de otros productos dentro del conjunto de aplicaciones de
InfoSphere Information Server. Algunos de estos productos incluyen características que permiten
a los usuarios interactuar con el contenido del glosario directamente desde el otro producto, sin
que sea necesario que el usuario inicie sesión en InfoSphere Information Governance Catalog. Si a
los usuarios de dicho producto se les asigna la función Asignación de activos de información del
catálogo de gobierno de información, pueden asignar activos a términos desde la interfaz del otro
producto. Por ejemplo, los usuarios de IBM InfoSphere Information Analyzer pueden asignar
activos a términos y categorías. Como otro ejemplo, los usuarios con este rol de seguridad pueden
trabajar con IBM InfoSphere Information Governance Catalog para Eclipse.
26. When importing metadata from a
data source, what import types allow
you to save the connection
information?
Error 4
Select one or more:
A. Import via XMI
B. Import via CVS
C. Import via connectors
D. Import from Orchestrate® Schema
E. Import via supplementary stages
F. Import via XML

You can import table definitions from the following data sources:

 Assembler files
 COBOL files
 DCLGen files
 ODBC tables
 Orchestrate® schema definitions
 PL/1 files
 Data sources accessed using certain connectivity stages.
 Sequential files
 Stored procedures
 UniData files
 UniVerse files
 UniVerse tables
 Web services WSDL definitions
 XML table definitions

When you import metadata from a data source you can choose to save the
connection information that you used to connect to that data source as a data
connection object.
You can choose to do this when performing the following types of metadata import:
 Import via connectors
 Import via supplementary stages (Import > Table Definitions > Plug-in Metadata
Definitions)
 Import via ODBC definitions (Import > Table Definitions > ODBC Table
Definitions)
 Import from UniVerse table (Import > Table Definitions > UniVerse Table
Definitions)
 Import from UniData® 6 table (Import > Table Definitions > UniData 6 Table
Definitions)
 Import from Orchestrate® Schema (Import > Table Definitions > Orchestrate
Schema Definitions)

27. When optimizing performance and


dealing with multiple SQL statements,
if you expect more updates than inserts
with the potential for unique-constraint
violation, what write mode should you
choose?
Select one:
A. Bulk load
B. Insert then update
C. Update then insert
D. Insert

28. Use the illustration below. To ensure


the referential integrity between the
two tables is maintained, activity
records for a particular project are not
written until when?

Select one:
A. No errors are detected using Peek_ActivityRejects
B. The corresponding project records are written
C. All the records are written into the Insert_Project_Activities
D. No errors are detected using PeekProjectRejects

En este ejemplo, el enlace del conector de entrada superior escribe registros en la tabla de la base
de datos PROJECT. El enlace del conector de entrada inferior escribe registros de actividad del
proyecto en la tabla de la base de datos PROJACT. Para garantizar la integridad referencial entre
las dos tablas, los registros de actividad para un proyecto en particular no se escriben hasta que
se escribe el registro del proyecto correspondiente. Esto se puede lograr estableciendo la
propiedad de orden de Registro en Todos los registros y especificando que el enlace de entrada a
la tabla PROYECTO es el primero en el orden de enlace

29. To remove a job parameter from a


connector property, what button must
you use?
Select one:
A. Job parameter button
B. Delete Parameter button
C. Refresh button
D. Clear Parameter button
30. What is the name of the lookup
functionality that sends individual SQL
statements to the database for each
input row?
Select one:
A. Hash lookup
B. Default lookup
C. Sparse lookup
D. Lookup stage

Si define un bloque PL / SQL para una operación de búsqueda dispersa, el conector ejecuta el
bloque PL / SQL especificado una vez para cada registro en el enlace de entrada a la etapa de
búsqueda.

You might also like