Oracle Database Administration and SQL
Covers Oracle database concepts including SQL operations, transactions, data dictionary, schema objects, and performance monitoring tools like AWR and Statspack.
Questions
Using NVL(),TO_DATE (), TO_NUMBER () functions in 'where' clause on non-indexed columns does improve performance
- True
- False
Which View helps in querying high I/O statements?
- V$SQLSTATS.DISK_READS
- V$DISK_READS
- V$SQL_STATS
- V$SYS_STAT
Which of the following generates the PLAN for SQL statements?
- PLAN
- EXPLAIN PLAN
- TKPROF
- V$PLAN
In which version of Oracle is AWR Introduced ?
- 11g
- 9i
- 8i
- 10g
Is Statspack available in Oracle 11g?
- True
- False
Which user owns all the package of STATSPACK?
- PERFMON
- PERFSTAT
- SYSTEM
- SCOTT
Which of the following is not a schema object?
- Indexes
- Tables
- Public Synonyms
- Triggers and Packages
If commission is null then the text “Not Applicable” must be displayed, instead of blank space. How do I write the query?
- select nvl(to_char(comm),'NA') from emp;
- select nvl(comm,'NA') from emp;
- select nvl(comm,NA) from emp;
- None of the above
Which data dictionary object is used to retrieve the information about the tables from a given schema?
- USER_TABLES
- USER_TABS
- Both 1 & 2
- None of the above
A transaction is a set of SQL statements between any two COMMIT and ROLLBACK statements.
- True
- False
What are the min.extents allocated to a rollback extent ?
- One
- Two
- Three
- None of the above
What is the maximum no.of columns a table can have ?
- 254
- 216
- Alloted size
- None of the above
Data Dictionary in oracle is used to store information about various physical and logical Oracle structures e.g.Tables, Tablespaces, datafiles, etc
- True
- False
Can Check constraint be used for self referential integrity ?
- Yes
- No
- Not in Oracle
- None of the above
What are the states of a rollback segment ?
- ONLINE
- OFFLINE
- PARTLY AVAILABLE
- NEEDS RECOVERY
- INVALID
What components of the IT environment can Oracle Enterprise Manager Grid Control manage?
- The server machines
- Oracle application servers
- Oracle databases
- Third-party products
- All of the above
Is the below query allowed?Select sal, ename Into x From emp Where ename = 'KING' (Where x is a record of Number(4) and Char(15));
- Yes
- No
- Not in Oracle
- None of the above
A table has the following data : [[5, Null, 10]].What will the average function return ?
- 10
- 5.5
- 5
- 7.5
Consider a sequence whose currval is 1 and gets incremented by 1 by using the nextval reference we get the next number 2.Suppose at this point we issue an rollback and again issue a nextval.What will the output be ?
- 2
- 3
- 4
- 1
Which of these following features are correct if SQL is a set-oriented language?
- Individual rows must have a unique identifier
- Sets of users can be managed in groups
- One statement can affect multiple rows
- SQL statements can be placed within blocks of code
- All the above