Top 20 Oracle Streams Interview Questions You Must Prepare 27.Jul.2024

Q1. What Are The Rules For Naming A Network Interface Card (nic) Device Driver?

Naming of the NIC device driver has the following constraints:

The name can contain alphanumeric and underscore (_) characters only

The first and last characters of the name cannot be a number

The name length cannot exceed 16 characters. The recommended length is 3–8 characters

Q2. Is There Documentation That Describes The Interface Between Ip And Network Drivers, Namely, The Oracle-specific Requirements Not Outlined In The Dlpi Version 2 Specification?

IP is a STREAMS module in the Oracle Solaris operating environment. Any module or driver interface with IP should follow the STREAMS mechanism. There are no specific requirements for the interface between IP and network drivers.

Q3. What Is Change Data Capture?

CDC is a technique to capture changes in database tables. These changes are stored in special tables.

CDC operates in two modes: asynchronous, which is based on Java, and synchronous, which is used on database triggers.

Performance overhead is higher in case of synchronous CDC.

Q4. List Some Important Streams Views?

Following are some important Streams views:

  • DBA_STREAMS_TABLE_RULES
  • DBA_APPLY_CONFLICT_COLUMNS
  • GV$STREAMS_CAPTURE

Q5. Why Is Additional Supplemental Logging Needed?

Default logging process records the information about DML operations.

Supplemental logging is required to identify the rows to be updated on each destination.

Q6. What Is The Apply Process?

The apply process is a background process that runs on target database.

It dequeues messages (LCR) and applies those to the target database either directly or through handler.

Q7. What Is Oracle Streams?

The oracle streams product from Oracle Corporation encourages users of Oracle databases to propagate information within and between databases.

It provides tools to capture, process (stage), and manage database events through Advanced Queuing Queues.

Q8. What Is The Capture Process?

Capture process extracts database changes from redo log files at source. It is a background process.

Q9. What Is Streams Pool In Oracle 10g?

Streams pool is a part of System Global Area (SGA) from which memory for Streams is allocated if it is configured. It can be configured by specifying initialization parameter, STREAMS_POOL_SIZE.

If the size of the Streams pool is greater than zero, then any SGA memory used by Stream is allocate from the Streams pool.

If the size of the Stream pool is equal to zero, then the memory used by Streams is allocated from the shared pool that may use up to 10% of the shared pool.

Q10. What Is Direct Apply?

When the apply process applies the LCR directly at the target, it is called direct apply.

Q11. What Is Stream Replication?

Stream replication uses the information available in redo logs to synchronize data between two servers.

The capture process captures the changes at source, and the changes are trported to the target database, which generates the tractions and the apply process applies those tractions.

Q12. Give Two Methods You Could Use To Determine What Ddl Changes Have Been Made?

You could use Logminer or Streams

Q13. What Is The Difference Between Oracle Streams And Cdc?

Oracle streams are based on advance queues. The streams provide a mechanism to synchronize data between two servers.

Streams ensure reliable data synchronization between the servers based on the defined rules.

Both Oracle CDC and Streams are generally used for data synchronization between Oracle database servers. With Oracle CDC, you could write your own data export routines, which create flat files for the purpose of synchronization between two database servers; whereas, with Streams you must have a network link between the two servers.

Q14. What Is Sys.anydata?

SYS.AnyData is a queue that can capture messages of type AnyData.

This is a standard used in the Streams replication for storing LCRs.

The reason for using this queue is that messages are wrapped into type AnyData before queuing.

Q15. What Is Downstream Capture?

Generally, capture process functions at source database.

However, if you want to save resources at the source database, you can set up another database for the capture process only.

The feature which allows you to move capture process to another database is called downstream capture.

Q16. How Can You Set Dml Handler?

DML handler can be set by using the following statement:

Dbms_apply_adm.set_dml_handler (object_name, object_type, operation_name, error_handler, user_procedure, apply_db_link)

Q17. What Is Logical Change Record (lcr)?

LCR contains database changes, streams require the changes to be captured in specific format. LCR keeps the changes in that format.

Q18. What Is Database Change Notification?

Database Change Notification is a service that is used to notify the registered clients whenever a change is committed.

Q19. What Is Streams?

An oracle stream is a data replication and integration feature.

It enables the propagation of data, tractions, and events in a data stream either within a database or from one database to another.

Q20. How Can You Find The Setup Of Lob_assembly?

You can find the setup of lob_assembly by using the DBA_APPLY_DML_HANDLER view.