| 1. | The following command was issued:
SQL>TRUNCATE TABLE departments;
Which statements are true regarding the command? |
| 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. | | The number of extents allocated to the DEPARTMENTS table are reduced to the original setting for MINEXTENTS
|
|
|
|
|
|
|
| 2. | The ITEM table has a constant transaction load 24 hours a day, so down time is not allowed. The indexes become fragmented. Which statement will hold true in such a situation? |
| 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
|
|
|
|
|
|
|
| 3. | Which table type should be used 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
|
|
|
|
|
|
|
| 4. | The value of the OS_AUTHENT_PREFIX initialization parameter was set to OPS$ and created a user account by issuing this SQL statement:
CREATE USER OPS$KING IDENTIFIED EXTERNALLY;
Which statements are true? |
| a. | | Oracle server assigns the DEFAULT profile to the user |
| b. | | The PASSWORD EXPIRE clause was specified for an external user account |
| c. | | The user does not require CREATE SESSION system privilege to connect to the database |
| d. | | If the DBA_USERS data dictionary view is queried, the USERNAME column will contain the value KING |
| e. | | The user account is maintained by Oracle, but password administration and user authentication are performed by the operating system or a network service
|
|
|
|
|
|
|
| 5. | Which file is a part of the Oracle database? |
| a. | | Control file |
| b. | | Password file |
| c. | | Parameter files |
| d. | | Archived log files
|
|
|
|
|
|
|
| 6. | A 10 GB index is to be created on the ITEM table. The index should be spread across many tablespaces, decreasing contention for index lookup, and increasing scalability and manageability. Which index would be best for this table? |
| a. | | Bitmap |
| b. | | Unique |
| c. | | Partitioned |
| d. | | Reverse key |
| e. | | Single column
|
|
|
|
|
|
|
| 7. | Which command can be used 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';
|
|
|
|
|
|
|
| 8. | An index needs to be created on the EMP_ID column of the EMPLOYEE table which satisfies the following conditions: 1. The index will be called EMP_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 emp_pk ON Employee(Emp_id) TABLESPACE index0l PCTFREE 20 STORAGE (INITIAL lm NEXT lm PCTINCREASE 0); |
| b. | | CREATE UNIQUE INDEX emp_pk ON employee(emp_id) TABLESPACE index0l PCTFREE 20 STORAGE (INITIAL 1m NEXT 1m PCTINCREASE 0) NOLOGGING; |
| c. | | CREATE UNIQUE INDEX emp_pk ON Employee(emp_id) TABLESPACE index0l PCTUSED 80 STORAGE (INITIAL lm NEXT lm PCTINCREASE 0) NOLOGGING; |
| d. | | CREATE UNIQUE INDEX emp_pk ON employee(emp_id) TABLESPACE index0l PCTUSED 80 STORAGE (INITIAL lm NEXT lm PCTINCREASE 0);
|
|
|
|
|
|
|
| 9. | 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 the allowed number of entries be increased 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
|
|
|
|
|
|
|
| 10. | Evaluate the following SQL command:
GRANT REFERENCES (employee_id), UPDATE (employee_id, salary, commission_pct) ON hr.employees TO MARY;
Which statements correctly describe what user MARY can or cannot do? |
| 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
|
|
|
|
|
|
|
| 11. | Five roles were created using the statements shown:
CREATE ROLE payMANAGER; 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;
|
|
|
|
|
|
|
| 12. | SMITH is logged on to a client. He does not have a secure connection from the client to the host where his Oracle database is running. Which authentication mechanism allows him 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
|
|
|
|
|
|
|
What others think about Oracle OCP Practice Test - Oracle 9i OCP Fundamentals Practice Questions |
| By: Tom on 11/21/2009 |
| | I want more quiz questions |
|
 |
| By: Reema on 11/20/2009 |
| | Great Quiz! The quizmaster laid out this quiz so that even beginners could learn more |
|
 |
| By: Sridhar on 11/19/2009 |
| | Its a really good way to brush up things and informative also. |
|
 |
| By: Personality Quiz Man on 11/18/2009 |
| | I love quizzes. Personality Quizzes are my favorite. |
|
 |
| By: Aumkar on 11/17/2009 |
|
| By: Laura on 11/16/2009 |
| | I appreciate the time and effort that the quiz maker put into the quiz |
|
 |
| By: Tommy on 11/15/2009 |
| | Great site. Good learning and fun. |
|
 |
| By: Lil Wayne Fan on 11/14/2009 |
| | Give me more quiz questions about LilWayne |
|
 |
| By: Kath on 11/13/2009 |
|
 |
| By: Teena on 11/12/2009 |
| | I love this quiz Website. This is the best free quiz site. |
|
 |
| By: Shannon on 11/11/2009 |
| | I have never seen such an excellent quiz website before this. |
|
 |
| By: Quiz Game Player on 11/10/2009 |
| | One day I will crack all the Impossible quizzes in the world |
|
 |
| By: Free quiz seeker on 11/9/2009 |
| | I am searching for an impossible quiz |
|
 |
| By: QuizMoz Fan on 11/8/2009 |
| | I love all the QuizMoz quizzes. The general knowledge quiz is my favorite |
|
 |
| By: Samantha on 11/7/2009 |
| | This is so cool. Even though I really did not know some of the questions, it was still fun! |
|
 |
| By: Penny on 11/6/2009 |
| | NICE WEBSITE, great quiz! |
|
 |
| By: Haris on 11/5/2009 |
| | These quizzes will increase my vocab skill.Frequently i Have used this website to check my vocab strength. |
|
 |
| By: Tracy on 11/4/2009 |
| | Great test. A nice way to gauge one's knowledge |
|
 |
| By: quiz girl on 11/3/2009 |
| | hey folks! i like the amazing quizzes on quizmoz. it increases your general knowledge
|
|
 |
| By: Bobby Kalsi on 11/2/2009 |
| | Try to make it easier to search for a QUIZ Category.. (It should be easier to seach for a quiz category...) |
|
 |