Google Analytics

Monday 5 March 2012

Java Important Topics

1.The Java  interpreter is used for the execution of the source code.
True
False
Ans: b.
2) On successful compilation a file with the class extension is created.
a) True
b) False
Ans: a.
3) The Java source code can be created in a Notepad editor.
a) True
b) False
Ans: a.
4) The Java Program is enclosed in a class definition.
a) True
b) False
Ans: a.
5) What declarations are required for every Java application?
Ans: A class and the main( ) method declarations.
6) What are the two parts in executing a Java program and their purposes?
Ans: Two parts in executing a Java program are:
Java Compiler and Java Interpreter.
The Java Compiler is used for compilation and the Java Interpreter is used for execution of the application.
7) What are the three OOPs principles and define them?
Ans : Encapsulation, Inheritance and Polymorphism are the three OOPs
Principles.
Encapsulation:
Is the Mechanism that binds together code and the data it manipulates, and keeps both safe from outside interference and misuse.
Inheritance:
Is the process by which one object acquires the properties of another object.
Polymorphism:
Is a feature that allows one interface to be used for a general class of actions.
 8) What is a compilation unit?
Ans : Java source code file.
9) What output is displayed as the result of executing the following statement?
System.out.println("// Looks like a comment.");
// Looks like a comment
The statement results in a compilation error
Looks like a comment
No output is displayed
Ans : a.
10) In order for a source code file, containing the public class Test, to successfully compile, which of the following must be true?
It must have a package statement
It must be named Test.java
It must import java.lang
It must declare a public class named Test
Ans : b
11) What are identifiers and what is naming convention?
Ans : Identifiers are used for class names, method names and variable names. An identifier may be any descriptive sequence of upper case & lower case letters,numbers or underscore or dollar sign and must not begin with numbers.
12) What is the return type of program’s main( ) method?
Ans : void
13) What is the argument type of program’s main( ) method?
Ans : string array.
14) Which characters are as first characters of an identifier?
Ans : A – Z, a – z, _ ,$
15) What are different comments?
Ans : 1) // -- single line comment
2) /* --
*/ multiple line comment
3) /** --
*/ documentation
16) What is the difference between constructor method and method?
Ans : Constructor will be automatically invoked when an object is created. Whereas method has to be call explicitly.
17) What is the use of bin and lib in JDK?
Ans : Bin contains all tools such as javac, applet viewer, awt tool etc., whereas Lib
contains all packages and variables.


Data types,variables and Arrays

1) What is meant by variable?
Ans: Variables are locations in memory that can hold values. Before assigning any value to a variable, it must be declared.
2) What are the kinds of variables in Java? What are their uses?
Ans: Java has three kinds of variables namely, the instance variable, the local variable and the class variable.
Local variables are used inside blocks as counters or in methods as temporary variables and are used to store information needed by a single method.
Instance variables are used to define attributes or the state of a particular object and are used to store information needed by multiple methods in the objects.
Class variables are global to a class and to all the instances of the class and are useful for communicating between different objects of all the same class or keeping track of global states.
3 How are the variables declared?
Ans: Variables can be declared anywhere in the method definition and can be initialized during their declaration.They are commonly declared before usage at the beginning of the definition.
Variables with the same data type can be declared together. Local variables must be given a value before usage.
4) What are variable types?
Ans: Variable types can be any data type that java supports, which includes the eight primitive data types, the name of a class or interface and an array.
5) How do you assign values to variables?
Ans: Values are assigned to variables using the assignment operator =.
6) What is a literal? How many types of literals are there?
Ans: A literal represents a value of a certain type where the type describes how that value behaves.
There are different types of literals namely number literals, character literals,
boolean literals, string literals,etc.
7) What is an array?
Ans: An array is an object that stores a list of items.
8) How do you declare an array?
Ans: Array variable indicates the type of object that the array holds.
Ex: int arr[];
9) Java supports multidimensional arrays.
a)True
b)False
Ans: a.
10) An array of arrays can be created.
a)True
b)False
Ans: a.
11) What is a string?
Ans: A combination of characters is called as string.In java string is an object
12) Strings are instances of the class String.
a)True
b)False
Ans: a.
13) When a string literal is used in the program, Java automatically creates instances of the string class.
a)True
b)False
Ans: a.
14) Which operator is to create and concatenate string?
Ans: Addition operator(+).
15) Which of the following declare an array of string objects?
String[ ] s;
String [ ]s:
String[ s]:
String s[ ]:
Ans : a, b and d


16) What is the value of a[3] as the result of the following array declaration?
1
2
3
4
Ans : d
17) Which of the following are primitive types?
byte
String
integer
Float
Ans : a.
18) What is the range of the char type?
0 to 216
0 to 215
0 to 216-1
0 to 215-1
Ans. d
19) What are primitive data types?
Ans : byte, short, int, long
float, double
boolean
char
20) What are default values of different primitive types?
Ans : int - 0
short - 0
byte - 0
long - 0 l
float - 0.0 f
double - 0.0 d
boolean - false
char - null
21) Converting of primitive types to objects can be explicitly.
a)True
b)False
Ans: b.
22) How do we change the values of the elements of the array?
Ans : The array subscript expression can be used to change the values of the elements of the array.
23) What is final varaible?
Ans : If a variable is declared as final variable, then you can not change its value. It becomes constant.
24) What is static variable?
Ans : Static variables are shared by all instances of a class.


                                                                                        
Operators

1) What are operators and what are the various types of operators available in Java?
Ans: Operators are special symbols used in expressions.
The following are the types of operators:
Arithmetic operators,
Assignment operators,
Increment & Decrement operators,
Logical operators,
Biwise operators,
Comparison/Relational operators and
Conditional operators
2) The ++ operator is used for incrementing and the -- operator is used for
decrementing.
a)True
b)False
Ans: a.
3) Comparison/Logical operators are used for testing and magnitude.
a)True
b)False
Ans: a.
4) Character literals are stored as unicode characters.
a)True
b)False
Ans: a.
5) What are the Logical operators?
Ans: OR(|), AND(&), XOR(^) AND NOT(~).
6) What is the % operator?
Ans : % operator is the modulo operator or reminder operator. It returns the reminder of dividing the first operand by second operand.
7) What is the value of 111 % 13?
3
5
7
9
Ans : c.
8) Is &&= a valid operator?
Ans : No.
9) Can a double value be cast to a byte?
Ans : Yes
10) Can a byte object be cast to a double value ?
Ans : No. An object cannot be cast to a primitive value.
11) What are order of precedence and associativity?
Ans : Order of precedence the order in which operators are evaluated in expressions.
Associativity determines whether an expression is evaluated left-right or right-left.
12) Which Java operator is right associativity?
Ans : = operator.
13) What is the difference between prefix and postfix of -- and ++ operators?
Ans : The prefix form returns the increment or decrement operation and returns the value of the increment or decrement operation.
The postfix form returns the current value of all of the expression and then
performs the increment or decrement operation on that value.
14) What is the result of expression 5.45 + "3,2"?
The double value 8.6
The string ""8.6"
The long value 8.
The String "5.453.2"
Ans : d
15) What are the values of x and y ?
x = 5; y = ++x;
Ans : x = 6; y = 6
16) What are the values of x and z?
x = 5; z = x++;
Ans : x = 6; z = 5


Control Statements

1) What are the programming constructs?
Ans: a) Sequential
b) Selection -- if and switch statements
c) Iteration -- for loop, while loop and do-while loop
2) class conditional {
public static void main(String args[]) {
int i = 20;
int j = 55;
int z = 0;
z = i < j ? i : j; // ternary operator
System.out.println("The value assigned is " + z);
}
}
What is output of the above program?
Ans: The value assigned is 20
3) The switch statement does not require a break.
a)True
b)False
Ans: b.
4) The conditional operator is otherwise known as the ternary operator.
a)True
b)False
Ans: a.
5) The while loop repeats a set of code while the condition is false.
a)True
b)False
Ans: b.
6) The do-while loop repeats a set of code atleast once before the condition is tested.
a)True
b)False
Ans: a.
7) What are difference between break and continue?
Ans: The break keyword halts the execution of the current loop and forces control out of the loop.
The continue is similar to break, except that instead of halting the execution of the loop, it starts the next iteration.

8) The for loop repeats a set of statements a certain number of times until a condition is matched.
a)True
b)False
Ans: a.
9) Can a for statement loop indefintely?
Ans : Yes.
10) What is the difference between while statement and a do statement/
Ans : A while statement checks at the beginning of a loop to see whether the next loop iteration should occur.
A do statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will always execute the body of a loop at least once.

Oracle MCQ



 1. Which two statements are true about identifying unused indexes? (Choose two.)
A. Performance is improved by eliminating unnecessary overhead during DML operations.
B. V$INDEX_STATS displays statistics that are gathered when using the MONITORING USAGE keyword.
C. Each time the MONITORING USAGE clause is specified, the V$OBJECT_USAGE view is reset for the specified index.
D. Each time the MONITORING USAGE clause is specified, a new monitoring start time is recorded in the alert log.
Answer: AC

2. You need to create an index on the SALES table, which is 10 GB in size. You want your index to be spread across many tablespaces, decreasing contention for index lookup, and increasing scalability and manageability.
Which type of index would be best for this table?
A. bitmap
B. unique
C. partitioned
D. reverse key
E. single column
F. function-based
Answer: C

3. The database needs to be shut down for hardware maintenance. All users sessions except one have either voluntarily logged off or have been forcibly killed. The one remaining user session is running a business critical data manipulation language (DML) statement and it must complete prior to shutting down the database.
Which shutdown statement prevents new user connections, logs off the remaining user, and shuts down the database after the DML statement completes?
A. SHUTDOWN
B. SHUTDOWN ABORT
C. SHUTDOWN NORMAL
D. SHUTDOWN IMMEDIATE
E. SHUTDOWN TRANSACTIONAL
Answer: E

4. What provides for recovery of data that has not been written to the data files prior to a failure?
A. redo log
B. undo segment
C. rollback segment
D. system tablespace
Answer: A

5. You intend to use only password authentication and have used the password file utility to create a password file as follows:
$orapwd file=$ORACLE_HOME/dbs/orapwDB01
password=orapass entries=5
The REMOTE_LOGIN_PASSWORDFILE initialization parameter is set to NONE.
You created a user and granted only the SYSDBA privilege to that user as follows:
CREATE USER dba_user
IDENTIFIED BY dba_pass;
GRANT sysdba TO dba_user;
The user attempts to connect to the database as follows:
connect dba_user/dba_pass as sysdba;
Why does the connection fail?
A. The DBA privilege was not granted to dba_user.
B. REMOTE_LOGIN_PASSWORDFILE is not set to EXCLUSIVE.
C. The password file has been created in the wrong directory.
D. The user did not specify the password orapass to connect as SYSDBA.
Answer: B

6. Which data dictionary view(s) do you need to query to find the following information about a user?
• Whether the user's account has expired
• The user's default tablespace name
• The user's profile name
A. DBA_USERS only
B. DBA_USERS and DBA_PROFILES
C. DBA_USERS and DBA_TABLESPACES
D. DBA_USERS, DBA_TS_QUOTAS, and DBA_PROFILES
E. DBA_USERS, DBA_TABLESPACES, and DBA_PROFILES

Answer: A

7. You omit the UNDO tablespace clause in your CREATE DATABASE statement. The UNDO_MANAGEMENT parameter is set to AUTO. What is the result of your CREATE DATABASE statement?
A. The Oracle server creates no undo tablespaces.
B. The Oracle server creates an undo segment in the SYSTEM tablespace.
C. The Oracle server creates one undo tablespace with the name SYS_UNDOTBS.
D. Database creation fails because you did not specify an undo tablespace on the CREATE DATABASE statement.
Answer: C

8. Which password management feature ensures a user cannot reuse a password for a specified time interval?
A. Account Locking
B. Password History
C. Password Verification
D. Password Expiration and Aging
Answer: B

9. Which view provides the names of all the data dictionary views?
A. DBA_NAMES
B. DBA_TABLES
C. DICTIONARY
D. DBA_DICTIONARY
Answer: C

10. You are going to create a new database. You will NOT use operating system authentication.
Which two files do you need to create before creating the database? (Choose two.)
A. control file
B. password file
C. redo log file
D. alert log file
E. initialization parameter file
Answer: AE    (Need more explanation – i.e BE

11. Which initialization parameter determines the location of the alert log file?
A. USER_DUMP_DEST
B. DB_CREATE_FILE_DEST
C. BACKGROUND_DUMP_DEST
D. DB_CREATE_ONLINE_LOG_DEST_n
Answer: C

12. Temporary tablespaces should be locally managed and the uniform size should be a multiple of the ________.
A. DB_BLOCK_SIZE
B. DB_CACHE_SIZE
C. SORT_AREA_SIZE
D. operating system block size
Answer: C

13. You can use the Database Configuration Assistant to create a template using an existing database structure.
Which three will be included in this template? (Choose three.)
A. data files
B. tablespaces
C. user defined schemas
D. user defined schema data
E. initialization parameters
Answer: ACD

14. John has issued the following SQL statement to create a new user account:
CREATE USER john
IDENTIFIED BY john
TEMPORARY TABLESPACE temp_tbs
QUOTA 1M ON system
QUOTA UNLIMITED ON data_tbs
PROFILE apps_profile
PASSWORD EXPIRE
DEFAULT ROLE apps_dev_role;
Why does the above statement return an error?
A. You cannot assign a role to a user within a CREATE USER statement.
B. You cannot explicitly grant quota on the SYSTEM tablespace to a user.
C. You cannot assign a profile to a user within a CREATE USER statement.
D. You cannot specify PASSWORD EXPIRE clause within a CREATE USER statement.
E. You cannot grant UNLIMITED quota to a user within a CREATE USER statement.
Answer: A

15. Which statement is true regarding enabling constraints?
A. ENABLE NOVALIDATE is the default when a constraint is enabled.
B. Enabling a constraint NOVALIDATE places a lock on the table.
C. Enabling a UNIQUE constraint to VALIDATE does not check for constraint violation if the constraint is deferrable.
D. A constraint that is currently disabled can be enabled in one of two ways: ENABLE NOVALIDATE or ENABLE VALIDATE.
Answer: D

16. Which structure provides for statement-level read consistency?
A. undo segments
B. redo log files
C. data dictionary tables
D. archived redo log files
Answer: A

17. You just issued the STARTUP command. Which file is checked to determine the state of the database?
A. the control file
B. the first member of redo log file group 1
C. the data file belonging to the SYSTEM tablespace
D. the most recently created archived redo log file
Answer: A

18. John has created a procedure named SALARY_CALC. Which SQL query allows him to view the text of the procedure?
A. SELECT text FROM user_source
WHERE name ='SALARY_CALC';
B. SELECT * FROM user_source
WHERE source_name ='salary_calc';
C. SELECT * FROM user_objects
WHERE object_name = 'SALARY_CALC';
D. SELECT * FROM user procedures
WHERE object_name ='SALARY_CALC';
E. SELECT text FROM user_source
WHERE name='SALARY_CALC'
AND owner ='JOHN';
Answer: A

19. You want to limit the number of transactions that can simultaneously make changes to data in a block, and increase the frequency with which Oracle returns a block back on the free list.
Which parameters should you set?   (STARANGE QUESTION)
A. INITRANS and PCTUSED
B. MAXTRANS and PCTFREE
C. INITRANS and PCTFREE
D. MAXTRANS and PCTUSED
Answer: D

20. You need to drop two columns from a table. Which sequence of SQL statements should be used to drop the columns and limit the number of times the rows are updated?
A. ALTER TABLE employees
DROP COLUMN comments
DROP COLUMN email;
B. ALTER TABLE employees
DROP COLUMN comments;
ALTER TABLE employees
DROP COLUMN email;
C. ALTER TABLE employees
SET UNUSED COLUMN comments;
ALTER TABLE employees
DROP UNUSED COLUMNS;
ALTER TABLE employees
SET UNUSED COLUMN email;
ALTER TABLE employees
DROP UNUSED COLUMNS;
D. ALTER TABLE employees
SET UNUSED COLUMN cnasr,nts;
ALTER TABLE employees
SET UNUSED COLUMN email;
ALTER TABLE employees
DROP UNUSED COLUMNS;
Answer: D

21. Your company hired Joe, a DBA who will be working from home. Joe needs to have the ability to start the database remotely.
You created a password file for your database and set REMOTE_LOGIN_PASSWORDFILE = EXCLUSIVE in the parameter file. Which command adds Joe to the password file, allowing him remote DBA access?
A. GRANT DBA TO JOE;
B. GRANT SYSDBA TO JOE;
C. GRANT RESOURCE TO JOE;
D. orapwd file=orapwdPROD user=JOE password=DBA
Answer: D

22. Which command can you use to display the date and time in the form
17:45:01 JUL-12-2000 using the default US7ASCII character set?
A. ALTER SYSTEM SET NLS_DATE_FORMAT='HH24:MI:SS MON-DD-YYYY';
B. ALTER SESSION SET DATE_FORMAT='HH24:MI:SS MON-DD-YYYY';
C. ALTER SESSION SET NLS_DATE_FORMAT='HH24:MI:SS MON-DD-YYYY';
D. ALTER SYSTEM SET NLS_DATE_FORMAT='HH:MI:SS MON-DD-YYYY';
Answer: C

23. When preparing to create a database, you should be sure that you have sufficient disk space for your database files. When calculating the space requirements you need to consider that some of the files may be multiplexed.
Which two types of files should you plan to multiplex? (Choose two.)
A. data files
B. control file
C. password file
D. online redo log files
E. initialization parameter file
Answer: AB
                 (Answere –C,D)
24. Which is true when considering the number of indexes to create on a table?
A. Every column that is updated requires an index.
B. Every column that is queried is a candidate for an index.
C. Columns that are part of a WHERE clause are candidates for an index.
D. On a table used in a Data Warehouse application there should be no indexes.
Answer: C

25. You issue the following queries to obtain information about the redo log files:
SQL> SELECT group#, type, member FROM v$logfile;
You immediately issue this command:
ALTER DATABASE DROP LOGFILE MEMBER
'/databases/DB01/ORADATA/u03/log2b.rdo';
Why does the command fail?
A. Each online redo log file group must have two members.
B. You cannot delete any members of online redo log file groups.
C. You cannot delete any members of the current online redo log file group
D. You must delete the online redo log file in the operating system before issuing the ALTER DATABASE command.
Answer: C

26. The ORDERS table has a constant transaction load 24 hours a day, so down time is not allowed. The indexes become fragmented. Which statement is true?
A. The index needs to be dropped, and then re-created.
B. The resolution of index fragmentation depends on the type of index.
C. The index can be rebuilt while users continue working on the table.
D. The index can be rebuilt, but users will not have access to the index during this time.
E. The fragmentation can be ignored because Oracle resolves index fragmentation by means of a freelist.
Answer: C

27. The DBA can structure an Oracle database to maintain copies of online redo log files to avoid losing database information.(Difficult question).
Which three are true regarding the structure of online redo log files? (Choose three.)
A. Each online redo log file in a group is called a member.
B. Each member in a group has a unique log sequence number.
C. A set of identical copies of online redo log files is called an online redo log group.
D. The Oracle server needs a minimum of three online redo log file groups for the normal operation of a database.
E. The current log sequence number of a redo log file is stored in the control file and in the header of all data files.
F. The LGWR background process concurrently writes the same information to all online and archived redo log files in a group.
Answer: BCE

28. Which type of segment is used to improve the performance of a query?
A. index
B. table
C. temporary
D. boot strap
Answer: A

29. You have just accepted the position of DBA with a new company. One of the first things you want to do is examine the performance of the database. Which tool will help you to do this?
A. Recovery Manager
B. Oracle Enterprise Manager
C. Oracle Universal Installer
D. Oracle Database Configuration Assistant
Answer: B

30. Which steps should you take to gather information about checkpoints?
A. Set the LOG_CHECKPOINTS_TO_ALERT initialization parameter to TRUE.
Monitor the alert log file.
B. Set the LOG_CHECKPOINT_TIMEOUT parameter.
Force a checkpoint by using the FAST_START_MTTR_TARGET parameter.
Monitor the alert log file.
C. Set the LOG_CHECKPOINT_TIMEOUT parameter.
Force a log switch by using the command ALTER SYSTEM FORCE LOGSWITCH.
Force a checkpoint by using the command ALTER SYSTEM FORCE CHECKPOINT.
Monitor the alert log file.
D. Set the FAST_START_MTTR_TARGET parameter to TRUE.
Force a checkpoint by using the command ALTER SYSTEM FORCE CHECKPOINT.
Monitor the alert log file.
Answer: A

31. Examine the SQL statement:
CREATE TABLESPACE user_data
DATAFILE '/u01/oradata/user_data_0l.dbf' SIZE 100M
LOCALLY MANAGED UNIFORM SIZE 1M
AUTOMATIC SEGMENT SPACE MANAGEMENT;
Which part of the tablespace will be of a uniform size of 1 MB?
A. extent
B. segment
C. Oracle block
D. operating system block
Answer: A

32. You are in the process of dropping the BUILDING_LOCATION column from the HR.EMPLOYEES table. The table has been marked INVALID until the operation completes. Suddenly the instance fails. Upon startup, the table remains INVALID.
Which step(s) should you follow to complete the operation?
A. Continue with the drop column command:
ALTER TABLE hr.employees DROP COLUMNS CONTINUE;
B. Truncate the INVALID column to delete remaining rows in the column and release unused space immediately.
C. Use the Export and Import utilities to remove the remainder of the column from the table and release unused space.
D. Mark the column as UNUSED and drop the column:
ALTER TABLE hr.employees
SET UNUSED COLUMN building location;
ALTER TABLE hr.employees
DPOP UNUSED COLUMN building_location
CASCADE CONSTRAINTS;
Answer: A

33. Based on the following profile limits, if a user attempts to log in and fails after five tries, how long must the user wait before attempting to log in again?
ALTER PROFILE DEFAULT LIMIT
PASSWORD_LIFE_TIME 60
PASSWORD_GRACE_TIME 10
PASSWORD_REUSE_TIME 1800
PASSWORD_REUSE_MAX UNLIMITED
FAILED_LOGIN_ATTEMPTS 5
PASSWORD_LOCK_TIME 1/1440
PASSWORD_VERIFY_FUNCTION verify_function;
A. 1 minute
B. 5 minutes
C. 10 minutes
D. 14 minutes
E. 18 minutes
F. 60 minutes
Answer: A

34. You create a new table named DEPARTMENTS by issuing this statement:
CREATE TABLE departments(
department_id NUMBER(4),
department_name VARCHAR2(30),
manager_id NUMBER(6),
location_id NUMBER(4))
STORAGE(INITIAL 200K NEXT 200K
PCTINCREASE 0 MINEXTENTS 1 MAXEXTENTS 5);
You realize that you failed to specify a tablespace for the table. You issue these queries:
SQL> SELECT username, default_tablespace,temporary tablespace
     FROM user_users;
In which tablespace was your new DEPARTMENTS table created?
A. TEMP
B. SYSTEM
C. SAMPLE
D. USER_DATA
Answer: C  ( It should be System)





35. An Oracle instance is executing in a nondistributed configuration. The instance fails because of an operating system failure.
Which background process would perform the instance recovery when the database is reopened?
A. PMON
B. SMON
C. RECO
D. ARCn
E. CKPT
Answer: B

36. Which type of table is usually created to enable the building of scalable applications, and is useful for large tables that can be queried or manipulated using several processes concurrently?
A. regular table
B. clustered table
C. partitioned table
D. index-organized table
Answer: C

37. How do you enable the HR_CLERK role?
A. SET ROLE hr_clerk;
B. CREATE ROLE hr_clerk;
C. ENABLE ROLE hr_clerk;
D. SET ENABLE ROLE hr_clerk;
Answer: A

38. Your database is currently configured with the database character set to WEBIS08859P1 and national character set to AL16UTF16.
Business requirements dictate the need to expand language requirements beyond the current character set, for Asian and additional Western European languages, in the form of customer names and addresses.
Which solution saves space storing Asian characters and maintains consistent character manipulation performance?
A. Use SQL CHAR data types and change the database character set to UTF8.
B. Use SQL NCHAR data types and change the national character set to UTF8.
C. Use SQL CHAR data types and change the database character set to AL32UTF8.
D. Use SQL NCHAR data types and keep the national character set to AL16UTF16.
Answer: D

39. Which three are the physical structures that constitute the Oracle database? (Choose three.)
A. table
B. extent
C. segment
D. data file
E. log file
F. tablespace
G. control file
Answer: ACG   ( It should be DEG)

40. You have a database with the DB_NAME set to PROD and ORACLE_SID set to PROD.
These files are in the default location for the initialization files:
• init.ora
• initPROD.ora
• spfile.ora
• spfilePROD.ora
The database is started with this command:
SQL> startup
Which initialization files does the Oracle Server attempt to read, and in which order?
A. init.ora, initPROD.ora, spfilePROD.ora
B. spfile.ora, spfilePROD.ora, initProd.ora
C. spfilePROD.ora, spfile.ora, initProd.ora
D. initPROD.ora, spfilePROD.ora, spfile.ora
Answer: C

41. You are in the planning stages of creating a database. How should you plan to influence the size of the control file?
A. Specify size by setting the CONTROL_FILES initialization parameter instead of using the Oracle default value.
B. Use the CREATE CONTROLFILE command to create the control file and define a specific size for the control file.
C. Define the MAXLOGFILES, MAXLOGMEMBERS, MAXLOGHISTORY, MAXDATAFILES, MAXINSTANCES parameters in the CREATE DATABASE command.
D. Define specific values for the MAXLOGFILES, MAXLOGGROUPS, MAXLOGHISTORY, MAXDATAFILES, and MAXINSTANCES parameters within the initialization parameter file.
Answer: D ( It should be C)

42. When is the SGA created in an Oracle database environment?
A. when the database is created
B. when the instance is started
C. when the database is mounted
D. when a user process is started
E. when a server process is started
Answer: B


43. You need to enforce these two business rules:
1. No two rows of a table can have duplicate values in the specified column.
2. A column cannot contain null values.
Which type of constraint ensures that both of the above rules are true?
A. check
B. unique
C. not null
D. primary key
E. foreign key
Answer: D

44. You decided to use Oracle Managed Files (OMF) for the control files in your database.
Which initialization parameter do you need to set to specify the default location for control files if you want to multiplex the files in different directories?
A. DB_FILES
B. DB_CREATE_FILE_DEST
C. DB_FILE_NAME_CONVERT
D. DB_CREATE_ONLINE_LOG_DEST_n
Answer: D

45. Which three statements about the Oracle database storage structure are true? (Choose three.)
A. A data block is a logical structure.
B. A single data file can belong to multiple tablespaces.
C. When a segment is created, it consists of at least one extent.
D. The data blocks of an extent may or may not belong to the same file.
E. A tablespace can consist of multiple data files, each from a separate disk.
F. Within a tablespace, a segment cannot include extents from more than one file.
Answer: ACF

46. When an Oracle instance is started, background processes are started.
Background processes perform which two functions? (Choose two.)
A. perform I/O
B. lock rows that are not data dictionary rows
C. monitor other Oracle processes
D. connect users to the Oracle instance
E. execute SQL statements issued through an application
Answer: AB (IT is AC)

47. The user Smith created the SALES HISTORY table. Smith wants to find out the following information about the SALES HISTORY table:
• The size of the initial extent allocated to the sales history data segment
• The total number of extents allocated to the sales history data segment
Which data dictionary view(s) should Smith query for the required information?
A. USER_EXTENTS
B. USER_SEGMENTS
C. USER_OBJECT_SIZE
D. USER_OBJECT_SIZE and USER_EXTENTS
E. USER_OBJECT_SIZE and USER_SEGMENTS
Answer: B

48. A table is stored in a data dictionary managed tablespace.
Which two columns are required from DBA_TABLES to determine the size of the extent when it extends? (Choose two.)
A. BLOCKS
B. PCT_FREE
C. NEXT_EXTENT
D. PCT_INCREASE
E. INITIAL_EXTENT
Answer: BC    (Should be --

49. Bob is an administrator who has FULL DBA privileges. When he attempts to drop the DEFAULT profile as shown below, he receives the error message shown. Which option best explains this error?
SQL> drop profile SYS.DEFAULT;
drop profile SYS.DEFAULT
*
ERROR at line 1:
ORA-00950: invalid DROP option
A. The DEFAULT profile cannot be dropped.
B. Bob requires the DROP PROFILE privilege.
C. Profiles created by SYS cannot be dropped.
D. The CASCADE option was not used in the DROP PROFILE command.
Answer: A

50. Which is a complete list of the logical components of the Oracle database?
A. tablespaces, segments, extents, and data files
B. tablespaces, segments, extents, and Oracle blocks
C. tablespaces, database, segments, extents, and data files
D. tablespaces, database, segments, extents, and Oracle blocks
E. tablespaces, segments, extents, data files, and Oracle blocks
Answer: B

51. As SYSDBA you created the PAYCLERK role and granted the role to Bob. Bob in turn attempts to modify the authentication method of the PAYCLERK role from SALARY to NOT IDENTIFIED, but when doing so he receives the insufficient privilege error shown below.
SQL> connect bob/crusader
Connected.
SQL> alter role payclerk not identified;
alter role payclerk not identified
*
ERROR at line 1:
ORA-01031: insufficient privileges
Which privilege does Bob require to modify the authentication method of the PAYCLERK role?
A. ALTER ANY ROLE
B. MANAGE ANY ROLE
C. UPDATE ANY ROLE
D. MODIFY ANY ROLE
Answer: A


52. You are going to re-create your database and want to reuse all of your existing database files.
You issue the following SQL statement:
CREATE DATABASE sampledb
DATAFILE
'/u01/oradata/sampledb/system0l.dbf'
SIZE 100M REUSE
LOGFILE
GROUP 1 ('/u01/oradata/sampledb/logla.rdo',
'/u02/oradata/sampledb/loglb.rdo')
SIZE 50K REUSE,
GROUP 2 ('/u01/oradata/sampledb/log2a.rdo',
'/u02/oradata/sampledb/log2b.rdo')
SIZE 50K REUSE
MAXLOGFILES 5
MAXLOGHISTORY 100
MAXDATAFILES 10;
Why does the CREATE DATABASE statement fail?
A. You have set MAXLOGFILES too low.
B. You omitted the CONTROLFILE REUSE clause.
C. You cannot reuse the online redo log files.
D. You cannot reuse the data file belonging to the SYSTEM tablespace.
Answer: B

53. Evaluate this SQL command:
GRANT REFERENCES (employee_id),
UPDATE (employee_id, salary, commission_pct)
ON hr.employees
TO oe;
Which three statements correctly describe what user OE can or cannot do? (Choose three.)
A. CANNOT create a table with a constraint
B. Can create a table with a constraint that references HR.EMPLOYEES
C. Can update values of the EMPLOYEE_ID, SALARY, and COMMISSION_PCT columns
D. Can insert values of the EMPLOYEE_ID, SALARY, and COMMISSION_PCT columns
E. CANNOT insert values of the EMPLOYEE_ID, SALARY, and COMMISSION_PCT columns
F. CANNOT update values of the EMPLOYEE_ID, SALARY, and COMMISSION_PCT columns
Answer: BCE

54. A network error unexpectedly terminated a user's database session.
Which two events occur in this scenario? (Choose two.)
A. Checkpoint occurs.
B. A fast commit occurs.
C. RECO performs the session recovery.
D. PMON rolls back the user's current transaction.
E. SMON rolls back the user's current transaction.
F. SMON frees the system resources reserved for the user session.
G. PMON releases the table and row locks held by the user session.
Answer: BE   (it seems answere is incorrect)DG

55. Evaluate the SQL statement:
CREATE TABLESPACE hr_tbs
DATAFILE '/usr/oracle9i/OraHomel/hr_data.dbf' SIZE 2M AUTOEXTEND ON
MINIMUM EXTENT 4K
NOLOGGING
DEFAULT STORAGE (INITIAL 5K NEXT 5K PCTINCREASE 50)
EXTENT MANAGEMENT DICTIONARY
SEGMENT SPACE MANAGEMENT AUTO;
Why does the statement return an error?
A. The value of PCTINCREASE is too high.
B. The size of the data file is too small.
C. You cannot specify default storage for dictionary managed tablespaces.
D. Segment storage management cannot be set to auto for a dictionary managed tablespace.
E. You cannot specify default storage for a tablespace that consists of an autoextensible data file.
F. The value specified for INITIAL and NEXT storage parameters should be a multiple of the value specified for MINIMUM EXTENT.
Answer: D

56. SALES_DATA is a nontemporary tablespace. You have set the SALES_DATA tablespace OFFLINE by issuing this command:
ALTER TABLESPACE sales_data OFFLINE NORMAL;
Which three statements are true? (Choose three.)
A. You cannot drop the SALES_DATA tablespace.
B. The SALES_DATA tablespace does not require recovery to come back online.
C. You can read the data from the SALES_DATA tablespace, but you cannot perform any write operation on the data.
D. When the tablespace SALES_DATA goes offline and comes back online, the event will be recorded in the data dictionary.
E. When the tablespace SALES_DATA goes offline and comes back online, the event will be recorded in the control file.
F. When you shut down the database the SALES_DATA tablespace remains offline, and is checked when the database is subsequently mounted and reopened.
Answer: ACD(wrong answere) – ABE

57. A table can be dropped if it is no longer needed, or if it will be reorganized.
Which three statements are true about dropping a table? (Choose three.)
A. All synonyms for a dropped table are deleted.
B. When a table is dropped, the extents used by the table are released.
C. Dropping a table removes the table definition from the data dictionary.
D. Indexes and triggers associated with the table are not dropped but marked INVALID.
E. The CASCADE CONSTRAINTS option is necessary if the table being dropped is the parent table in a foreign key relationship.
Answer: BCE

58. You query DBA_CONSTRAINTS to obtain constraint information on the HR_EMPLOYEES table:
SQL> select constraint_name, constraint_type, deferrable,
2> deferred, validated
3> from dba_constraints
4> where owner = 'HR' and table_name='EMPLOYEES';

Which type of constraint is EMP_JOB_NN?
A. check
B. unique
C. not null
D. primary key
E. foreign key
Answer: A

59. Tom was allocated 10 MB of quota in the USERS tablespace. He created database objects in the USERS tablespace. The total space allocated for the objects owned by Tom is 5 MB.
You need to revoke Tom's quota from the USERS tablespace. You issue this command:
ALTER USER Tom QUOTA 0 ON users;
What is the result?
A. The statement raises the error: ORA-00940: invalid ALTER command.
B. The statement raises the error: ORA-00922: missing or invalid option.
C. The objects owned by Tom are automatically deleted from the revoked USERS tablespace.
D. The objects owned by Tom remain in the revoked tablespace, but these objects cannot be allocated any new space from the USERS tablespace.
Answer: D

60. Which background process performs a checkpoint in the database by writing modified blocks from the database buffer cache in the SGA to the data files?
A. LGWR
B. SMON
C. DBWn
D. CKPT
E. PMON
Answer: C

61. Which command would revoke the ROLE_EMP role from all users?
A. REVOKE role_emp FROM ALL;
B. REVOKE role_emp FROM PUBLIC;
C. REVOKE role_emp FROM default;
D. REVOKE role_emp FROM ALL_USERS;
Answer: B

62. You are experiencing intermittent hardware problems with the disk drive on which your control file is located. You decide to multiplex your control file.
While your database is open, you perform these steps:
1. Make a copy of your control file using an operating system command.
2. Add the new file name to the list of files for the CONTROL FILES parameter in your text intialization parameter file using an editor.
3. Shut down the instance.
4. Issue the STARTUP command to restart the instance, mount, and open the database.
The instance starts, but the database mount fails. Why?
A. You copied the control file before shutting down the instance.
B. You used an operating system command to copy the control file.
C. The Oracle server does not know the name of the new control file.
D. You added the new control file name to the CONTROL_FILES parameter before shutting down the instance.
Answer: A
63. What determines the initial size of a tablespace?
A. the INITIAL clause of the CREATE TABLESPACE statement
B. the MINEXTENTS clause of the CREATE TABLESPACE statement
C. the MINIMUM EXTENT clause of the CREATE TABLESPACE statement
D. the sum of the INITIAL and NEXT clauses of the CREATE TABLESPACE statement
E. the sum of the sizes of all data files specified in the CREATE TABLESPACE statement.
Answer: E

64. The control file defines the current state of the physical database.
Which three dynamic performance views obtain information from the control file? (Choose three.)
A. V$LOG
B. V$SGA
C. V$THREAD
D. V$VERSION
E. V$DATAFILE
F. V$PARAMETER
Answer: AEF

65. Which option lists the correct hierarchy of storage structures, from largest to the smallest?
A. segment, extent, tablespace, data block
B. data block, extent, segment, tablespace
C. tablespace, extent, data block, segment
D. tablespace, segment, extent, data block
E. tablespace, data block, extent, segment
Answer: D

66. Evaluate the following SQL:
CREATE USER sh IDENTIFIED BY sh;
GRANT
CREATE ANY MATERIALIZED VIEW
CREATE ANY DIMENSION
, DROP ANY DIMENSION
, QUERY REWRITE
, GLOBAL QUERY REWRITE
TO dw_manager
WITH ADMIN OPTION;
GRANT dw_manager TO sh WITH ADMIN OPTION;
Which three actions is the user SH able to perform? (Choose three.)
A. Select from a table
B. Create and drop a materialized view
C. Alter a materialized view that you created
D. Grant and revoke the role to and from other users
E. Enable the role and exercise any privileges in the role's privilege domain
Answer: BDE
67. Which constraint state prevents new data that violates the constraint from being entered, but allows invalid data to exist in the table?
A. ENABLE VALIDATE
B. DISABLE VALIDATE
C. ENABLE NOVALIDATE
D. DISABLE NOVALIDATE
Answer: C
68. Which storage structure provides a way to physically store rows from more than one table in the same data block?
A. cluster table
B. partitioned table
C. unclustered table
D. index-organized table
Answer: A

69. Which are considered types of segments?
A. only LOBS
B. only nested tables
C. only index-organized tables
D. only LOBS and index-organized tables
E. only nested tables and index-organized tables
F. only LOBS, nested tables, and index-organized tables
G. nested tables, LOBS, index-organized tables, and boot straps
Answer: G

70. Select the memory structure(s) that would be used to store the parse information and actual value of the bind variable id for the following set of commands:
VARIABLE id NUMBER;
BEGIN
:id:=1;
END;
/
A. PGA only
B. Row cache and PGA
C. PGA and library cache
D. Shared pool only
E. Library cache and buffer cache
Answer: B

71. The new Human Resources Application will be used to manage employee data in the EMPLOYEES table. You are developing a strategy to manage user privileges. Your strategy should allow for privileges to be granted or revoked from individual users or groups of users with minimal administrative effort.
The users of the Human Resources application have these requirements:
• A Manager should be able to view the personal information of the employees in his/her group and make changes to their Title and Salary.
What should you grant to the manager user?
A. grant SELECT on the EMPLOYEES table
B. grant INSERT on the EMPLOYEES table
C. grant UPDATE on the EMPLOYEES table
D. grant SELECT on the EMPLOYEES table and then grant UPDATE on the                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     TITLE and SALARY columns
E. grant SELECT on the EMPLOYEES table and then grant INSERT on the           TITLE and SALARY columns
F. grant UPDATE on the EMPLOYEES table and then grant SELECT on the TITLE and SALARY columns
G. grant INSERT on the EMPLOYEES table and then grant SELECT on the TITLE, MANAGER, and SALARY columns
Answer: D




72. An INSERT statement failed and is rolled back. What does this demonstrate?
A. insert recovery
B. read consistency
C. transaction recovery
D. transaction rollback
Answer: D

73. The database currently has one control file. You decide that three control files will provide better protection against a single point of failure. To accomplish this, you modify the SPFILE to point to the locations of the three control files. The message "system altered" was received after execution of the statement.
You shut down the database and copy the control file to the new names and locations. On startup you receive the error ORA-00205: error in identifying control file. You look in the alert log and determine that you specified the incorrect path for the for control file.
Which steps are required to resolve the problem and start the database?
A.  1. Connect as SYSDBA.
    2. Shut down the database.
    3. Start the database in NOMOUNT mode.
    4. Use the ALTER SYSTEM SET CONTROL_FILES command to correct the  error.
    5. Shut down the database
    6. Start the database.

B. 1. Connect as SYSDBA.
   2. Shut down the database.
   3. Start the database in MOUNT mode.
   4. Remove the SPFILE by using a UNIX command.
   5. Recreate the SPFILE from the PFILE.
   6. Use the ALTER SYSTEM SET CONTROL_FILES command to correct the error.
   7. Start the database.
C. 1. Connect as SYSDBA.
   2. Shut down the database.
   3. Remove the control files using the OS command.
   4. Start the database in NOMOUNT mode.
   5. Remove the SPFILE by using an OS command.
   6. Re-create the SPFILE from the PFILE.
   7. Use the ALTER SYSTEM SET CONTROL_FILES command to define the control files.
   8. Shut down the database.
   9. Start the database.
Answer: A   

74. Which process is started when a user connects to the Oracle server in a dedicated server mode?
A. DBWn
B. PMON
C. SMON
D. Server
Answer: D

75. You are creating a new database. You do NOT want users to use the SYSTEM tablespace for sorting operations.
What should you do when you issue the CREATE DATABASE statement to prevent this?
A. Create an undo tablespace.
B. Create a default temporary tablespace.
C. Create a tablespace with the UNDO keyword.
D. Create a tablespace with the TEMPORARY keyword.
Answer: B

76. Which four statements are true about profiles? (Choose four.)
A. Profiles can control the use of passwords.
B. Profile assignments do not affect current sessions.
C. All limits of the DEFAULT profile are initially unlimited.
D. Profiles can be assigned to users and roles, but not other profiles.
E. Profiles can ensure that users log off the database when they have left their session idle for a period of time.
Answer: BCDE

77. The Database Writer (DBWn) background process writes the dirty buffers from the database buffer cache into the _______.
A. data files only
B. data files and control files only
C. data files and redo log files only
D. data files, redo log files, and control files
Answer: A

78. You used the password file utility to create a password file as follows:
$orapwd file=$ORACLE_HOME/dbs/orapwDB01
password=orapass   entries=5
You created a user and granted only the SYSDBA privilege to that user as follows:
CREATE USER dba_user
IDENTIFIED BY dba_pass;
GRANT sysdba TO dba_user;
The user attempts to connect to the database as follows:
connect dba_user/orapass as sysdba;
Why does the connection fail?
A. The DBA privilege had not been granted to dba_user.
B. The SYSOPER privilege had not been granted to dba_user.
C. The user did not provide the password dba_pass to connect as SYSDBA.
D. The information about dba_user has not been stored in the password file.
Answer: C

79. Which two methods enforce resource limits? (Choose two.)
A. ALTER SYSTEM SET RESOURCE_LIMIT= TRUE
B. Set the RESOURCE_LIMIT parameter to TRUE
C. CREATE PROFILE sessions LIMIT
SESSIONS_PER_USER 2
CPU_PER_SESSION 10000
IDLE_TIME 60
CONNECT_TIME 480;
D. ALTER PROFILE sessions LIMIT
SESSIONS_PER_USER 2
CPU_PER_SESSION 10000
IDLE_TIME 60
CONNECT_TIME 480;
Answer: AB




80. For which two constraints are indexes created when the constraint is added? (Choose two.)
A. check
B. unique
C. not null
D. primary key
E. foreign key
Answer: AB

81. You check the alert log for your database and discover that there are many lines that say "Checkpoint Not Complete". What are two ways to solve this problem? (Choose two.)
A. delete archived log files
B. add more online redo log groups
C. increase the size of archived log files
D. increase the size of online redo log files
Answer: AC
82. Which type of index does this syntax create?
CREATE INDEX hr.employees_last_name_idx
ON hr.employees(last_name)
PCTFREE 30
STORAGE(INITIAL 200K NEXT 200K
PCTINCREASE 0 MAXEXTENTS 50)
TABLESPACE indx;
A. bitmap
B. B-Tree
C. partitioned
D. reverse key
Answer: B (correct A)
83. Which data dictionary view shows the available free space in a certain tablespace?
A. DBA_EXTENTS
B. V$FREESPACE
C. DBA_FREE_SPACE
D. DBA_TABLESPACFS
E. DBA_FREE_EXTENTS
Answer: C
84. You decide to use Oracle Managed Files in your database.
Which two are requirements with respect to the directories you specify in the DB_CREATE_FILE_DEST and DB_CREATE_ONLINE_LOG_DEST_n initialization parameters? (Choose two).
A. The directory must already exist.
B. The directory must not contain any other files.
C. The directory must be created in the $ORACLE_HOME directory.
D. The directory must have appropriate permissions that allow Oracle to create files in it.
Answer: BC
85. In which two situations does the Log Writer (LGWR) process write the redo entries from the redo log buffer to the current online redo log group? (Choose two.)
A. when a transaction commits
B. when a rollback is executed
C. when the redo log buffer is about to become completely full (90%)
D. before the DBWn writes modified blocks in the database buffer cache to the data files
E. when there is more than a third of a megabyte of changed records in the redo log buffer
Answer: AE
86. Examine the syntax below, which creates a DEPARTMENTS table:
CREATE TABLE hr.departments(
Department_id NUMBER(4),
department_name VARCNAR2(30),
manager_id NUMBER(6),
location_id NUMBER(4))
STORAGE(INITIAL 200K NEXT 200K
PCTINCREASE 50 MINEXTENTS 1 MAXEXTENTS 5)
TABLESPACE data;
What is the size defined for the fifth extent?
A. 200 K
B. 300 K
C. 450 K
D. 675 K
E. not defined
Answer: D
87. After running the ANALYZE INDEX orders cust_idx VALIDATE STRUCTURE command, you query the INDEX_STATS view and discover that there is a high ratio of DEL_LF_ROWS to LF_ROWS values for this index.
You decide to reorganize the index to free up the extra space, but the space should remain allocated to the ORDERS_CUST_IDX index so that it can be reused by new entries inserted into the index.
Which command(s) allows you to perform this task with the minimum impact to any users who run queries that need to access this index while the index is reorganized?
A. ALTER INDEX REBUILD
B. ALTER INDEX COALESCE
C. ALTER INDEX DEALLOCATE UNUSED
D. DROP INDEX followed by CREATE INDEX
 Answer: B
88. You started your database with this command:
STARTUP PFILE=initSAMPLEDB.ora
One of the values in the initSAMPLEDB.ora parameter file is:
LOG_ARCHIVE_START=false
While your database is open, you issue this command to start the Archiver process:
ALTER SYSTEM ARCHIVE LOG START;
You shut down your database to take a back up and restart it using the initSAMPLEDB.ora parameter file again. When you check the status of the Archiver, you find that it is disabled.
Why is the Archiver disabled?
A. When you take a backup the Archiver process is disabled.
B. The Archiver can only be started by issuing the ALTER DATABASE ARCHIVELOG command.
C. LOG_ARCHIVE_START is still set to FALSE because the PFILE is not updated when you issue the ALTER SYSTEM command.
D. The Archiver can only be started by issuing the ALTER SYSTEM ARCHIVE LOG START command each time you open the database.
Answer: D
89. The credit controller for your organization has complained that the report she runs to show customers with bad credit ratings takes too long to run. You look at the query that the report runs and determine that the report would run faster if there were an index on the CREDIT_RATING column of the CUSTOMERS table.

The CUSTOMERS table has about 5 million rows and around 100 new rows are added every month. Old records are not deleted from the table.
The CREDIT_RATING column is defined as a VARCHAR2(5) field. There are only 10 possible credit ratings and a customer's credit rating changes infrequently. Customers with bad credit ratings have a value in the CREDIT_RATINGS column of 'BAD' or 'F'.
Which type of index would be best for this column?
A. B-Tree
B. bitmap
C. reverse key
D. function-based
Answer: D
90. There are three ways to specify National Language Support parameters:
1. initialization parameters
2. environment variables
3. ALTER SESSION parameters
Match each of these with their appropriate definitions.
A. 1) Parameters on the client side to specify locale-dependent behavior overriding the defaults set for the server
2) Parameters on the server side to specify the default server environment
3) Parameters override the default set for the session or the server
B. 1) Parameters on the server side to specify the default server environment
2) Parameters on the client side to specify locale-dependent behavior overriding the defaults set for the server
3) Parameters override the default set for the session or the server
C. 1) Parameters on the server side to specify the default server environment
2) Parameters override the default set for the session or the server
3) Parameters on the client side to specify locale-dependent behavior overriding the defaults set for the server
D. 1) Parameters on the client side to specify locale-dependent behavior overriding the defaults set for the server
2) Parameters override the default set for the session or the server
3) Parameters on the server side to specify the default server environment
Answer: B
91. Which graphical DBA administration tool would you use to tune an Oracle database?
A. SQL*Plus
B. Oracle Enterprise Manager
C. Oracle Universal Installer
D. Oracle Database Configuration Assistant
Answer: B
92. Which method is correct for starting an instance to create a database?
A. STARTUP
B. STARTUP OPEN
C. STARTUP MOUNT
D. STARTUP NOMOUNT
Answer: D
93. You just created five roles using the statements shown:
CREATE ROLE payclerk;
CREATE ROLE oeclerk IDENTIFIED BY salary;
CREATE ROLE hr_manager IDENTIFIED EXTERNALLY;
CREATE ROLE genuser IDENTIFIED GLOBALLY;
CREATE ROLE dev IDENTIFIED USING dev_test;
Which statement indicates that a user must be authorized to use the role by the enterprise directory service before the role is enabled?
A. CREATE ROLE payclerk;
B. CREATE ROLE genuser IDENTIFIED GLOBALLY;
C. CREATE ROLE oeclerk IDENTIFIED BY salary;
D. CREATE ROLE dev IDENTIFIED USING dev_test;
E. CREATE ROLE hr_manager IDENTIFIED EXTERNALLY;
Answer: B
94. Examine the list of steps to rename the data file of a non-SYSTEM tablespace HR_TBS. The steps are arranged in random order.
1. Shut down the database.
2. Bring the HR_TBS tablespace online.

3. Execute the ALTER DATABASE RENAME DATAFILE command
4. Use the operating system command to move or copy the file
5. Bring the tablespace offline.
6. Open the database.
What is the correct order for the steps?
A. 1, 3, 4, 6; steps 2 and 5 are not required
B. 1, 4, 3, 6; steps 2 and 5 are not required
C. 2, 3, 4, 5; steps 1 and 6 are not required
D. 5, 4, 3, 2; steps 1 and 6 are not required
E. 5, 3, 4, 1, 6, 2
F. 5, 4, 3, 1, 6, 2
Answer: D
95. For a tablespace created with automatic segment-space management, where is free space managed?
A. in the extent
B. in the control file
C. in the data dictionary
D. in the undo tablespace
Answer: D
96. Which two environment variables should be set before creating a database? (Choose two.)
A. DB_NAME
B. ORACLE_SID
C. ORACLE_HOME
D. SERVICE_NAME
E. INSTANCE_NAME
Answer: AB
97. More stringent user access requirements have been issued. You need to do these tasks for the user pward:
1. Change user authentication to external authentication.
2. Revoke the user's ability to create objects in the TEST TS tablespace.
3. Add a new default and temporary tablespace and set a quota of unlimited.
4. Assign the user to the CLERK profile.
Which statement meets the requirements?
A. ALTER USER pward
IDENTIFIED EXTERNALLY
DEFAULT TABLESPACE data_ts
TEMPORARY TABLESPACE temp_ts
QUOTA UNLIMITED ON data_ts
QUOTA 0 ON test_ts
GRANT clerk TO pward;
B. ALTER USER pward
IDENTIFIED by pward
DEFAULT TABLESPACE dsta_ts
TEMPORARY TABLESPACE temp_ts
QUOTA UNLIMITED ON data_ts
QUOTA 0 ON test_ts
PROFILE clerk;

C. ALTER USER pward
IDENTIFIED EXTERNALLY
DEFAULT TABLESPACE data_ts
TEMPORARY TABLESPACE temp_ts
QUOTA UNLIMITED ON data_ts
QUOTA 0 ON test_ts
PROFILE clerk;
D. ALTER USER pward
IDENTIFIED EXTERNALLY
DEFAULT TABLESPACE data_ts
TEMPORARY TABLESPACE temp_ts
QUOTA UNLIMITED ON data_ts
QUOTA 0 ON test ts;
GRANT clerk to pward;
Answer: C
98. Extents are a logical collection of contiguous _________________.
A. segments
B. database blocks
C. tablespaces
D. operating system blocks
Answer: B
99. You should back up the control file when which two commands are executed? (Choose two.)
A. CREATE USER
B. CREATE TABLE
C. CREATE INDEX
D. CREATE TABLESPACE
E. ALTER TABLESPACE  ADD DATAFILE
Answer: BD  (DE)
100. You have two undo tablespaces defined for your database. The instance is currently using the undo tablespace named UNDOTBS_1. You issue this command to switch to UNDOTBS 2 while there are still transactions using UNDOTBS_1:
ALTER SYSTEM SET UNDO_TABLESPACE = undotbs_2
Which two results occur? (Choose two.)
A. New transactions are assigned to UNDOTBS_2.
B. Current transactions are switched to the UNDOTBS_2 tablespace.
C. The switch to UNDOTBS_2 fails and an error message is returned.
D. The UNDOTBS_1 undo tablespace enters into a PENDING OFFLINE mode (status).
E. The switch to UNDOTBS_2 does not take place until all transactions in UNDOTBS_1 are completed.
Answer: AD
101. Which two statements grant an object privilege to the user Smith? (Choose two.)
A. GRANT CREATE TABLE TO smith;
B. GRANT CREATE ANY TABLE TO smith;
C. GRANT CREATE DATABASE LINK TO smith;
D. GRANT ALTER ROLLBACK SEGMENT TO smith;
E. GRANT ALL ON scott.salary view TO smith;
F. GRANT CREATE PUBLIC DATABASE LINK TO smith;
G. GRANT ALL ON scott.salary_view TO smith WITH GRANT OPTION;
Answer: DE
102. Which memory structure contains the information used by the server process to validate the user privileges?
A. buffer cache
B. library cache
C. data dictionary cache
D. redo log buffer cache
Answer: C
103. Click the Exhibit button and examine the tablespace requirements for a new database.
Which three tablespaces can be created in the CREATE DATABASE statement? (Choose three.)
A. TEMP
B. USERS
C. SYSTEM
D. APP_NDX
E. UNDOTBS
F. APP_DATA
Answer: BDF
104. Examine these statements:
1) MOUNT mounts the database for certain DBA activities but does not provide user access to the database.
2) The NOMOUNT command creates only the Data Buffer but does not provide access to the database.
3) The OPEN command enables users to access the database.
4) The STARTUP command starts an instance.
Which option correctly describes whether some or all of the statements are TRUE or FALSE?
A. 2 and 3 are TRUE
B. 1 and 3 are TRUE
C. 1 is TRUE, 4 is FALSE
D. 1 is FALSE, 4 is TRUE
E. 1 is FALSE, 3 is TRUE
F. 2 is FALSE, 4 is FALSE
Answer: F
105. You created a tablespace SH_TBS. The tablespace consists of two data files: sh_tbs_datal .dbf and sh_tbs_data2.dbf. You created a nonpartitioned table SALES_DET in the SH_TBS tablespace.
Which two statements are true? (Choose two.)
A. The data segment is created as soon as the table is created.
B. The data segment is created when the first row in the table is inserted.
C. You can specify the name of the data file where the data segment should be stored.
D. The header block of the data segment contains a directory of the extents in the segment.
Answer: AD
106. Which two statements are true about rebuilding an index? (Choose two.)
A. The resulting index may contain deleted entries.
B. A new index is built using an existing index as the data source.
C. Queries cannot use the existing index while the new index is being built.
D. During a rebuild, sufficient space is needed to accommodate both the old and the new index in their respective tablespaces.
Answer: BD
107. Consider this SQL statement:
UPDATE employees SET first_name = 'John'
WHERE emp_id = 1009;
COMMIT;
What happens when a user issues the COMMIT in the above SQL statement?
A. Dirty buffers in the database buffer cache are flushed.
B. The server process places the commit record in the redo log buffer.
C. Log Writer (LGWR) writes the redo log buffer entries to the redo log files and data files.
D. The user process notifies the server process that the transaction is complete.
E. The user process notifies the server process that the resource locks can be released.
Answer: B
108. A new user, psmith, has just joined the organization. You need to create psmith as a valid user in the database. You have the following requirements:
1. Create a user who is authenticated externally.
2. Make sure the user has CONNECT and RESOURCE privileges.
3. Make sure the user does NOT have DROP TABLE and CREATE USER privileges.
4. Set a quota of 100 MB on the default tablespace and 500 K on the temporary tablespace.
5. Assign the user to the DATA_TS default tablespace and the TEMP_TS temporary tablespace.
Which statement would you use to create the user?
A. CREATE USER psmith
IDENTIFIED EXTERNALLY
DEFAULT TABLESPACE data_ts
QUOTA 100M ON data_ts
QUOTA 500K ON temp_ts
TEMPORARY TABLESPACE temp_ts;
REVOKE DROP_TABLE, CREATE_USER from psmith;

B. CREATE USER psmith
IDENTIFIED EXTERNALLY
DEFAULT TABLESPACE data_ts
QUOTA 500K ON temp_ts
QUOTA 100M ON data_ts
TEMPORARY TABLESPACE temp_ts;
GRANT connect, resource TO psmith;
C. CREATE USER psmith
IDENTIFIED EXTERNALLY
DEFAULT TABLESPACE data_ts
QUOTA 100M ON data_ts
QUOTA 500K ON temp_ts
TEMPORARY TABLESPACE temp_ts;
GRANT connect TO psmith;
D. CREATE USER psmith
INDENTIFIED GLOBALLY AS ‘’
DEFAULT TABLESPACE data_ts
QUOTA 500K ON temp_ts
QUOTA 100M ON data_ts
TEMPORARY TABLESPACE temp_ts;
GRANT connect, resource TO psmith;
REVOKE DROP_TABLE, CREATE_USER from psmith;
Answer: B (correct answere A)
109. You are logged on to a client. You do not have a secure connection from your client to the host where your Oracle database is running. Which authentication mechanism allows you to connect to the database using the SYSDBA privilege?
A. control file authentication
B. password file authentication
C. data dictionary authentication
D. operating system authentication
Answer: B
110. Which type of file is part of the Oracle database?
A. control file
B. password file
C. parameter files
D. archived log files
Answer: A
111. You issue these queries to obtain information about the REGIONS table:
SQL> SELECT segment_name, tablespace_name
2> FROM user_segments
3> WHERE segment_name = 'REGIONS';

You then issue this command to move the REGIONS table:
ALTER TABLE regions
MOVE TABLESPACE user_data;
What else must you do to complete the move of the REGIONS table?
A. You must rebuild the REG_ID_PK index.
B. You must re-create the REGION_ID_NN and REG_ID_PK constraints.
C. You must drop the REGIONS table that is in the SAMPLE tablespace.
D. You must grant all privileges that were on the REGIONS table in the SAMPLE tablespace to the REGIONS table in the USER_DATA tablespace.
Answer: A   (insufficient question)
112. Examine this TRUNCATE TABLE command:
TRUNCATE TABLE departments;
Which four are true about the command? (Choose four.)
A. All extents are released.
B. All rows of the table are deleted.
C. Any associated indexes are truncated.
D. No undo data is generated for the table's rows.
E. It reduces the number of extents allocated to the DEPARTMENTS table to the original setting for MINEXTENTS.
Answer: BCDE
113. Which data dictionary view would you use to get a list of object privileges for all database users?
A. DBA_TAB_PRIVS
B. ALL_TAB_PRIVS
C. USER_TAB_PRIVS
D. ALL_TAB_PRIVS_MADE
Answer: A
114. Your database is in ARCHIVELOG mode
Which two must be true before the Log Writer (LGWR) can reuse a filled online redo log file? (Choose two).
A. The redo log file must be archived.
B. All of the data files must be backed up.
C. All transactions with entries in the redo log file must complete.
D. The data files belonging to the SYSTEM tablespace must be backed up.
E. The changes recorded in the redo log file must be written to the data files.
Answer: BD

115. Which two statements are true about the control file? (Choose two.)
A. The control file can be multiplexed up to eight times.
B. The control file is opened and read at the NOMOUNT stage of startup.
C. The control file is a text file that defines the current state of the physical database.
D. The control file maintains the integrity of the database, therefore loss of the control file requires database recovery.
Answer: AD
116. Your developers asked you to create an index on the PROD_ID column of the SALES_HISTORY table, which has 100 million rows.
The table has approximately 2 million rows of new data loaded on the first day of every month. For the remainder of the month, the table is only queried. Most reports are generated according to the PROD_ID, which has 96 distinct values.
Which type of index would be appropriate?
A. bitmap
B. reverse key
C. unique B-Tree
D. normal B-Tree
E. function based
F. non-unique concatenated
Answer: A
117. The server parameter file (SPFILE) provides which three advantages when managing initialization parameters? (Choose three.)
A. The Oracle server maintains the server parameter file.
B. The server parameter file is created automatically when the instance is started.
C. Changes can be made in memory and/or in the SPFILE with the ALTER SYSTEM command.
D. The use of SPFILE provides the ability to make changes persistent across shut down and start up.
E. The Oracle server keeps the server parameter file and the text initialization parameter file synchronized.
Answer: BDE
118. You examine the alert log file and notice that errors are being generated from a SQL*Plus session. Which files are best for providing you with more information about the nature of the problem?
A. control file
B. user trace files
C. background trace files
D. initialization parameter files
Answer: B


119. User Smith created indexes on some tables owned by user John.
You need to display the following:
• index names
• index types
Which data dictionary view(s) would you need to query?
A. DBA_INDEXES only
B. DBA_IND_COLUMNS only
C. DBA_INDEXES and DBA_USERS
D. DBA_IND COLUMNS and DBA_USERS
E. DBA_INDEXES and DBA_IND_EXPRESSIONS
F. DBA_INDEXES, DBA_TABLES, and DBA_USERS
Answer: F
120. The users pward and psmith have left the company. You no longer want them to have access to the database. You need to make sure that the objects they created in the database remain. What do you need to do?
A. Revoke the CREATE SESSION privilege from the user.
B. Drop the user from the database with the CASCADE option.
C. Delete the users and revoke the CREATE SESSION privilege.
D. Delete the users by using the DROP USER command from the database.
Answer: D
121. You need to create an index on the CUSTOMER_ID column of the CUSTOMERS table. The index has these requirements:
1. The index will be called CUST_PK.
2. The index should be sorted in ascending order.

3. The index should be created in the INDEX01 tablespace, which is a dictionary managed tablespace.
4. All extents of the index should be 1 MB in size.
5. The index should be unique.
6. No redo information should be generated when the index is created.
7. 20% of each data block should be left free for future index entries.
Which command creates the index and meets all the requirements?
A. CREATE UNIQUE INDEX cust_pk ON customers(customer_id)
TABLESPACE index0l
PCTFREE 20
STORAGE (INITIAL lm NEXT lm PCTINCREASE 0);
B. CREATE UNIQUE INDEX cust_pk ON customer_id)
TABLESPACE index0l
PCTFREE 20
STORAGE (INITIAL 1m NEXT 1m PCTINCREASE 0)
NOLOGGING;
C. CREATE UNIQUE INDEX cust_pk ON customers(customer_id)
TABLESPACE index0l
PCTUSED 80
STORAGE (INITIAL lm NEXT lm PCTINCREASE 0)
NOLOGGING;
D. CREATE UNIQUE INDEX cust_pk ON customers(customer_id)
TABLESPACE index0l
PCTUSED 80
STORAGE (INITIAL lm NEXT lm PCTINCREASE 0);
Answer: D
It is wrong b’cze nologing is not there
(correct should be C)
122. You need to know how many data files were specified as the maximum for the database when it was created. You did not create the database and do not have the script used to create the database.
How could you find this information?
A. Query the DBA_DATA_FILES data dictionary view.
B. Query the V$DATAFILE dynamic performance view.
C. Issue the SHOW PARAMETER CONTROL_FILES command.
D. Query the V$CONTROLFILE_RECORD_SECTION dynamic performance view.
Answer: D
123. Which two actions cause a log switch? (Choose two.)
A. A transaction completes.
B. The instance is started.
C. The instance is shut down
D. The current online redo log group is filled
E. The ALTER SYSTEM SWITCH LOGFILE command is issued.
Answer: DE
124. Evaluate the SQL command:
CREATE TEMPORARY TABLESPACE temp_tbs
TEMPFILE '/usr/oracle9i/OraHomel/temp_data.dbf'
SIZE 2M
AUTOEXTEND ON;
Which two statements are true about the TEMP_TBS tablespace? (Choose two.)
A. TEMP_TBS has locally managed extents.
B. TEMP_TBS has dictionary managed extents.
C. You can rename the tempfile temp_data.dbf.
D. You can add a tempfile to the TEMP_TBS tablespace.
E. You can explicitly create objects in the TEMP_TBS tablespace.
Answer: BC
125. Examine the command:
CREATE TABLE employee
( employee_id NUMBER CONSTRAINT employee_empid_pk
PRIMARY KEY,
employee_name VARCNAR2(30),
manager_id NUMBER CONSTRAINT employee_mgrid_fk
REFERENCES employee(employee_id));
The EMP table contains self referential integrity requiring all NOT NULL values inserted in the MANAGER_ID column to exist in the EMPLOYEE_ID column.
Which view or combination of views is required to return the name of the foreign key constraint and the referenced primary key?
A. DBA_TABLES only
B. DBA_CONSTRAINTS only
C. DBA_TABS_COLUMNS only
D. DBA_CONS_COLUMNS only
E. DBA_TABLES and DBA_CONSTRAINTS
F. DBA_TABLES and DBA_CONS_COLUMNS
Answer: B
126. Which statement about the shared pool is true?
A. The shared pool CANNOT be dynamically resized.
B. The shared pool contains only fixed structures
C. The shared pool consists of the library cache and buffer cache.
D. The shared pool stores the most recently executed SQL statements and the most recently accessed data definitions.
Answer: D
127. As a DBA, one of your tasks is to periodically monitor the alert log file and the background trace files. In doing so, you notice repeated messages indicating that Log Writer (LGWR) frequently has to wait for a redo log group because a checkpoint has not completed or a redo log group has not been archived.
What should you do to eliminate the wait LGWR frequently encounters?
A. Increase the number of redo log groups to guarantee that the groups are always available to LGWR.
B. Increase the size of the log buffer to guarantee that LGWR always has information to write.
C. Decrease the size of the redo buffer cache to guarantee that LGWR always has information to write.
D. Decrease the number of redo log groups to guarantee that checkpoints are completed prior to LGWR writing.
Answer: A
128. Which privilege is required to create a database?
A. DBA
B. SYSDBA
C. SYSOPER
D. RESOURCE
Answer: B
129. You need to create an index on the PASSPORT_RECORDS table. It contains 10 million rows of data. The key columns have low cardinality. The queries generated against this table use a combination of multiple WHERE conditions involving the OR operator.
Which type of index would be best for this type of table?
A. bitmap
B. unique
C. partitioned
D. reverse key
E. single column
F. function-based
Answer: A
130. You need to determine the location of all the tables and indexes owned by one user. In which DBA view would you look?
A. DBA_TABLES
B. DBA_INDEXES
C. DBA_SEGMENTS
D. DBA_TABLESPACES
Answer: C
131. Which two are true about the data dictionary views with prefix USER_? (Choose two.)
A. The column OWNER is implied to be the current user.
B. A user needs the SELECT ANY TABLE system privilege to query these views.
C. The definitions of these views are stored in the user's default tablespace.
D. These views return information about all objects to which the user has access.
E. Users can issue an INSERT statement on these views to change the value in the underlying base tables.

F. A user who has the CREATE PUBLIC SYNONYM system privilege can create public synonyms for these views.
Answer: CD
132. Which two statements about segments are true? (Choose two.)
A. Each table in a cluster has its own segment.
B. Each partition in a partitioned table is a segment.
C. All data in a table segment must be stored in one tablespace.
D. If a table has three indexes only one segment is used for all indexes.
E. A segment is created when an extent is created, extended, or altered.
F. A nested table of a column within a table uses the parent table segment.
Answer: AF
133. Your database contains a locally managed uniform sized tablespace with automatic segment-space management, which contains only tables. Currently, the uniform size for the tablespace is 512 K.
Because the tables have become so large, your configuration must change to improve performance. Now the tables must reside in a tablespace that is locally managed, with uniform size of 5 MB and automatic segment-space management.
What must you do to meet the new requirements?
A. The new requirements cannot be met.
B. Re-create the control file with the correct settings.
C. Use the ALTER TABLESPACE command to increase the uniform size.
D. Create a new tablespace with correct settings then move the tables into the new tablespace.
Answer: D
134. A DBA has issued the following SQL statement:
SELECT max_blocks
FROM dba_ts_quotas
WHERE tablespace_name='USER_TBS'
AND username='JENNY';
User Jenny has unlimited quota on the USER_TBS tablespace. Which value will the query return?
A. 0
B. 1
C. -1
D. NULL
E. 'UNLIMITED'
Answer: C
135. You set the value of the OS_AUTHENT_PREFIX initialization parameter to OPS$ and created a user account by issuing this SQL statement:
CREATE USER OPS$smith
IDENTIFIED EXTERNALLY;
Which two statements are true? (Choose two.)
A. Oracle server assigns the DEFAULT profile to the user.
B. You can specify the PASSWORD EXPIRE clause for an external user account.
C. The user does not require CREATE SESSION system privilege to connect to the database.
D. If you query the DBA_USERS data dictionary view the USERNAME column will contain the value SMITH.
E. The user account is maintained by Oracle, but password administration and user authentication are performed by the operating system or a network service.
Answer: CD
136. Which three statements are true about the use of online redo log files? (Choose three.)
A. Redo log files are used only for recovery.
B. Each redo log within a group is called a member.
C. Redo log files are organized into a minimum of three groups.
D. An Oracle database requires at least three online redo log members.
E. Redo log files provide the database with a read consistency method.
F. Redo log files provide the means to redo transactions in the event of an instance failure.
Answer: ABF
137. Which steps should you follow to increase the size of the online redo log groups?
A. Use the ALTER DATABASE RESIZE LOGFILE GROUP command for each group to be resized.
B. Use the ALTER DATABASE RESIZE LOGFILE MEMBER command for each member within the group being resized.

C. Add new redo log groups using the ALTER DATABASE ADD LOGFILE GROUP command with the new size.
Drop the old redo log files using the ALTER DATABASE DROP LOGFILE GROUP command.
D. Use the ALTER DATBASE RESIZE LOGFILE GROUP command for each group to be resized.
Use the ALTER DATABASE RESIZE LOGFILE MEMBER command for each member within the group.
Answer: C
138. Oracle guarantees read-consistency for queries against tables. What provides read-consistency?
A. redo logs
B. control file
C. undo segments
D. data dictionary
Answer: C
139. You need to shut down your database. You want all of the users who are connected to be able to complete any current transactions. Which shutdown mode should you specify in the SHUTDOWN command?
A. ABORT
B. NORMAL
C. IMMEDIATE
D. TRANSACTIONAL
Answer: D
140. You decided to use multiple buffer pools in the database buffer cache of your database. You set the sizes of the buffer pools with the DB_KEEP_CACHE_SIZE and DB_RECYCLE_CACHE_SIZE parameters and restarted your instance.
What else must you do to enable the use of the buffer pools?
A. Re-create the schema objects and assign them to the appropriate buffer pool.
B. List each object with the appropriate buffer pool initialization parameter.
C. Shut down the database to change the buffer pool assignments for each schema object.
D. Issue the ALTER statement and specify the buffer pool in the BUFFER_POOL clause for the schema objects you want to assign to each buffer pool.
Answer: D
141. A user calls and informs you that a 'failure to extend tablespace' error was received while inserting into a table. The tablespace is locally managed.
Which three solutions can resolve this problem? (Choose three.)
A. add a data file to the tablespace
B. change the default storage clause for the tablespace
C. alter a data file belonging to the tablespace to autoextend
D. resize a data file belonging to the tablespace to be larger
E. alter the next extent size to be smaller, to fit into the available space
Answer: ABC
142. Which table type should you use to provide fast key-based access to table data for queries involving exact matches and range searches?
A. regular table
B. clustered table
C. partitioned table
D. index-organized table
Answer: D
143. During a checkpoint in an Oracle9i database, a number of dirty database buffers covered by the log being checkpointed are written to the data files by DBWn.
Which parameter determines the number of buffers being written by DBWn?
A. LOG_CHECKPOINT_TARGET
B. FAST_START_MTTR_TARGET
C. LOG_CHECKPOINT_IO_TARGET
D. FAST_START_CHECKPOINT_TARGET
Answer: D
144. Which statement about an Oracle instance is true?
A. The redo log buffer is NOT part of the shared memory area of an Oracle instance.
B. Multiple instances can execute on the same computer, each accessing its own physical database.
C. An Oracle instance is a combination of memory structures, background processes, and user processes.
D. In a shared server environment, the memory structure component of an instance consists of a single SGA and a single PGA.
Answer: D

145. The current password file allows for five entries. New DBAs have been hired and five more entries need to be added to the file, for a total of ten. How can you increase the allowed number of entries in the password file?
A. Manually edit the password file and add the new entries.
B. Alter the current password file and resize if to be larger.
C. Add the new entries; the password file will automatically grow.
D. Drop the current password file, recreate it with the appropriate number of entries and add everyone again.
Answer: D

146. ABC Company consolidated into one office building, so the very large EMPLOYEES table no longer requires the OFFICE_LOCATION column. The DBA decided to drop the column using the syntax below:
ALTER TABLE hr.employees
DROP COLUMN building_location
CASCADE CONSTRAINTS;
Dropping this column has turned out to be very time consuming and is requiring a large amount of undo space.
What could the DBA have done to minimize the problem regarding time and undo space consumption?
A. Use the Export and Import utilities to bypass undo.
B. Mark the column as UNUSED.
Remove the column at a later time when less activity is on the system.
C. Drop all indexes and constraints associated with the column prior to dropping the column.
D. Mark the column INVALID prior to beginning the drop to bypass undo.
Remove the column using the DROP UNUSED COLUMNS command.
E. Add a checkpoint to the DROP UNUSED COLUMNS command to minimize undo space.
Answer: E (B)

147. User A issues this command:
UPDATE emp
SET id=200
WHERE id=1
Then user B issues this command:
UPDATE emp
SET id=300
WHERE id=1
User B informs you that the UPDATE statement seems to be hung. How can you resolve the problem so user B can continue working?
A. no action is required
B. ask user B to abort the statement
C. ask user A to commit the transaction
D. ask user B to commit the transaction
Answer: D

148. Anne issued this SQL statement to grant Bill access to the CUSTOMERS table in Anne's schema:
GRANT SELECT ON customers TO bill WITH GRANT OPTION;
Bill issued this SQL statement to grant Claire access to the CUSTOMERS table in Anne's schema:
GRANT SELECT ON anne.customers TO claire;
Later, Anne decides to revoke the select privilege on the CUSTOMERS table from Bill.
Which statement correctly descriî@’@
E statement. Both Bill and Claire lose their access to the ri ISTOMERS table.
Answer: B

149. Which data dictionary view would you use to get a list of all database users and their default settings?
A. ALL_USERS
B. USERS_USERS
C. DBA_USERS
D. V$SESSION
Answer: D

150. Which statement should you use to obtain information about the number, names, status, and location of the control files?
A. SELECT name, status FROM v$parameter;
B. SELECT name, status FROM v$controlfile;
C. SELECT name, status, location FROM v$control_files;
D. SELECT status, location FROM v$parameter WHERE parameter=control_files;
Answer: C