IMS, Oracle, and SQL Server Database Administration
Covers database concepts across multiple platforms including IMS status codes and utilities, Oracle SQL functions and indexing, and SQL Server DMVs, replication, and maintenance
Questions
Which character is used to continue a statement in SQL*Plus?
- *
- /
- -
- =
Which character function can be used to return a specified portion of a character string?
- INSTR
- SUBSTRING
- SUBSTR
- POS
The primary key on table EMP is the EMPNO column. Which of the following statements will not use the associated index on EMPNO?
- select * from EMP where nvl(EMPNO, '00000') = '59384';
- select * from EMP where EMPNO = '59384';
- select EMPNO, LASTNAME from EMP where EMPNO = '59384';
- select 1 from EMP where EMPNO = '59834';
In which one of the following scenairos the IMS status code AM will be issued
- The DLI call did specify a segment I/O area
- The function code field specified for the DLI call contains an incorrect value
- The DLI call attempted to perform an operation which is not authorised by processing option specified in the PCB
- The DLI call specifies an invalid SSA.
The process to assemble and link edit the macro instructions that specify an application programs view of one or more databases is called.
- PCBGEN
- PSBGEN
- DBDGEN
- ACBGEN
What tool should you recommend for a junior DBA to use to create a simple backup strategy for a SQL Server database?
- Database Engine Tuning Advisor
- SQL Server Configuration Manager
- Database Maintenance Plan Wizard
- Database Maintenance design surface
You have a 1TB SalesDB database running on SQL Server 2003 Enterprise Edition. You have noticed that the nightly DBCC CHECKDB ('SalesDB') job is starting to take too long, and you want to reduce the amount of time that the check will take. What command should you schedule to run nightly instead?
- DBCC CHECKDB ('SalesDB', REPAIR_ALLOW_DATA_LOSS)
- DBCC CHECKDB ('SalesDB', REPAIR_REBUILD)
- DBCC CHECKDB ('SalesDB') WITH PHYSICAL_ONLY
- DBCC CHECKDB ('SalesDB') WITH DATA_PURITY
You want to create a replication strategy that will allow users in four branch offices to have a fresh copy of data from the database in the central office every day at 5 a.m. for their daily reports. Although there are many changes to the data during the course of a day, the entire publication is not that large. Which replication strategy should you use in SQL Server?
- Transactional replication
- Peer-to-peer replication
- Merge replication
- Snapshot replication
You write a SQL Server stored procedure that will return data for a report. The accuracy of the data is not so important; however, you want to avoid dirty reads. Which isolation level should you avoid?
- Read Committed
- Read Uncommitted
- Repeatable Read
- Serializable
You want to identify the top 10 queries in SQL Server that have been recompiled the most times on your server. What can you do?
- Use the sys.dm_exec_requests dynamic management view.
- Use the sys.dm_exec_sessions dynamic management view
- Use the sys.dm_exec_query_stats dynamic management view
- Use the sys.dm_exec_query_optimizer_info dynamic management view
When a user creates an object without a TABLESPACE clause, where will Oracle store the segment?
- System tablespace
- Users tablespace
- Default tablespace for the user
- Default tablespace for system
Assuming today is Monday, 10 July 2000, what is returned by this statement: SELECT to_char(NEXT_DAY(sysdate, 'MONDAY'), 'DD-MON-RR') FROM dual;
- 36724
- 36717
- 36719
- 36718
What does PCB stands for in IMS?
- Process control Block
- Program Control Block
- Program Communication Block
- Process Communication Block
If any higher-level segements is retrieved during IMS seqential retrieval it is indicated by which one of the following status code
- GA
- GD
- GK
- GB
Which one of the following status code indicates a duplicate insertion of a segment in IMS
- II
- AI
- IX
- AJ