Questions
What is the use of Translate Function in Oracle?
- It performs a word wise replacement of a string of numbers.
- It performs a character wise replacement of a number.
- It performs a word wise replacement of a string.
- It performs a character wise replacement of a string.
Dynamic data replication is the way in which updating or inserting records in remote database through _________.
- stored procedures
- cursors
- database procedures
- database triggers
What is the correct use of the Trunc command on a date?
- TRUNC=To_Date('09-Jan-02,DD-MON-YY,'YEAR',"Date" from Dual;
- Select TRUNC(To_Date('09-Jan-02,DD-MON-YY,YEAR')) "DATE" from Dual;
- Date =TRUNC(To_DATE('09-Jan-02','DD-MON-YY'),'YEAR'),'YEAR)"DATE: from DUAL;
- SELECT TRUNC(TO_DATE('12-Feb-99','DD-MON-YY'), 'YEAR') "Date " FROM DUAL;
How is the HR_PAY role enabled?
- SET ROLE hr_pay;
- CREATE ROLE hr_pay;
- ENABLE ROLE hr_pay;
- SET ENABLE ROLE hr_pay;
Which of the following operators is used in a correlated subquery?
- IN
- EXISTS
- UNION
- INTERSECT
Employee table has salary field in this case if we give the query : select * from employee where sal<2000 and sal>9000 which will yield result as ____.
- rows with Sal<2000 and Salary>9000 will be displayed
- all the rows are displayed with any one of the condition satisfied
- no rows will be selected
- between sal 2000 and 9000 will be displayed
The database is set up to run Multithreaded Server. Which view would show contention for server processes?
- V$CIRCUIT
- V$SESSION
- DBA_USERS
- V$QUEUE
Which memory structure contains the information used by the server process to validate the user privileges?
- Buffer cache
- Library cache
- Data dictionary cache
- Redo log buffer cache
The LOG_ARCHIVE_START initialization parameter for NOARCHIVELOG mode database is set to 'TRUE'. The ARCn processes are not automatically copying the online redo log files. While troubleshooting, it was verified that valid archived redo log file destinations are provided using the LOG_ARCHIVE_DEST_n initialization parameters, yet no files are written to these destinations. What should be done next?
- Refresh the current online redo log files.
- Switch the database from NOARCHIVELOG to ARCHIVELOG mode.
- Issue the 'ALTER SYSTEM ARCHIVE LOG START' statement to activate the ARCn processes.
- Shut down and restart the database to activate the ARCn processes.
After a table has been created, its structure can be modified using the SQL command ______.
- UPDATE TABLE [TableName]
- MODIFY TABLE [TableName]
- ALTER TABLE [TableName]
- CHANGE TABLE [TableName]
Which data dictionary view should be used to get a list of object privileges for all database users?
- DBA_TAB_PRIVS
- ALL_TAB_PRIVS
- USER_TAB_PRIVS
- ALL_TAB_PRIVS_MADE
A media failure occurred causing NOARCHIVELOG mode database to crash. It was discovered that two of the data files are corrupt. The last whole closed database backup was taken one week ago with a online redo log sequence number of 83. At the time the data files were corrupted, the online redo log sequence number was 85. Although there were few committed transactions after the last backup, as much data as possible has to be recovered. Which recovery process should be used?
- Shut down the instance, restore all of the Oracle files from the most recent backup, and restart the instance.
- Manually restore and recover the two corrupt data files from the most recent backup.
- Shut down the instance, restore the two corrupt data files from the most recent backup, and restart the instance.
- Shut down the instance, restore all of the Oracle files from the most recent backup, restart the instance, and open the database using the 'ALTER DATABASE OPEN RESETLOGS' statement.
What is the correct use of the Trunc command on a date?
- TRUNC=To_Date('09-Jan-02,DD-MON-YY,'YEAR',"Date" from Dual;
- Select TRUNC(To_Date('09-Jan-02,DD-MON-YY,YEAR')) "DATE" from Dual;
- Date =TRUNC(To_DATE('09-Jan-02','DD-MON-YY'),'YEAR'),'YEAR)"DATE: from DUAL;
- SELECT TRUNC(TO_DATE('12-Feb-99','DD-MON-YY'), 'YEAR') "Date " FROM DUAL;
JOE 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 JOE is 5 MB.
In order to revoke JOE's quota from the USERS tablespace, the following command was issued.
ALTER USER JOE QUOTA 0 ON users;
What will be the result?
- The statement raises the error: ORA-00940: invalid ALTER command.
- The statement raises the error: ORA-00922: missing or invalid option.
- The objects owned by JOE are automatically deleted from the revoked USERS tablespace.
- The objects owned by JOE remain in the revoked tablespace, but these objects cannot be allocated any new space from the USERS tablespace.
Which of the following SQL statements defines a FOREIGN KEY constraint on the DEPT NO column of the EMP table?
- CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk FOREIGN KEY deptno REFERENCES dept deptno);
- CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));
- CRETE TABLE EM (empno NUMBER(4), ename VARCHAR2(35) deptno NUMBER (7,2) NOT NULL, CONSTRAINT em_deptno_fk REFERENCES dept (deptno) FOREIGN KEY (deptno));
- CREATE TABLE EMP (empno NUMBER (4), ename VARCHAR2(35), deptno NUMBER(7,2) FOREIGN KEY CONSTRAINT emp deptno fk REFERENCES dept (deptno));
The DBA issues the following command:
SQL< alter table ORDER SHRINK SPACE
What be the result of this statement?
- There would be only a compacting of the data, not a release of data.
- There would be no impact on DML operations in the database.
- There would be immediate release of the free space.
- There would be an impact on the DML operations in the database.
What type of message indicates a Forms message that cannot be suppressed?
- A Busy message
- A level 0 message
- A Working message
- A level 25 message
- A message with a level greater than 25
Consider the following RMAN script:
RUN{
SET NEWNAME FOR DATAFILE '/disk1/database/db1.dbf' TO '/disk2/database/db1.dbf';
SWITCH DATAFILE ALL;
RESTORE DATABASE;
RECOVER DATABASE;
ALTER DATABASE OPEN;
}
When executed, what result will occur?
- RMAN will restore the data file to disk1.
- The control file will be updated with the data file's new location, and the recovery will be successful.
- All database data files will be moved to the new location and recovered.
- The control file will not be updated with the data file's new location because the RENAME DATAFILE command is missing.
Five data files, that are spread across multiple disks have to be recovered. Which initialization parameter should be set to speed up redo application?
- RECOVERY_PARALLELISM
- FAST_START_MTTR_TARGET
- LOG_CHECKPOINT_INTERVAL
- FAST_START_PARALLEL_ROLLBACK
Which of the following is the root directory for oracle?
- ORACLE_HOME
- ORACLE_ROOT
- ORACLE_BASE
- ORACLE_SERVER
What steps should be taken to gather information about checkpoints?
- Set the LOG_CHECKPOINTS_TO_ALERT initialization parameter to TRUE.
Monitor the alert log file. - Set the LOG_CHECKPOINT_TIMEOUT parameter.
Force a checkpoint by using the FAST_START_MTTR_TARGET parameter.
Monitor the alert log file. - 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. - 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.
While attempting to connect to a remote server, the following error appeared:
ORA-12533: TNS:illegal ADDRESS parameters
To attempt to resolve the error, the tnsnames.ora file was examined. What should be verified in this file?
- That the correct service name exists in the tnsnames.ora file.
- That the service name of the database was entered correctly in the connect string.
- That the connect descriptor's' protocol-specific parameters located in the ADDRESS section are correct.
- That the service name of the database was entered correctly in the connect string.
What is the difference between CYCLE/NO CYCLE in a oracle Sequence?
- For a cycle values for the column are regenerated MAXVALUE is reached.
- For a cycle values for the column are regenerated from MINVALUE once MAXVALUE is reached.
- For a no cycle values for the column are regenerated MAXVALUE is reached.
- For a no cycle values for the column are regenerated from MINVALUE once MAXVALUE is reached.
The following INSERT statement was issued:
INSERT /* +APPEND */ INTO arch.curr_order_hist
SELECT * FROM ord.curr_order;
Which type of INSERT is performed?
- Conventional
- Direct-Load
- Parallel Direct-Load
- Serial-Conventional