出自:Oracle认证

Given: 11.String test = "This is a test"; 12.String[] tokens = test.split("/s"); 13.System.out.println(tokens.length); What is the result?()
A:0
B:1
C:4
D:Compilation fails.
Examine the structure of the EMPLOYEES and DEPARTMENTS tables: EMPLOYEESColumn name Data type Remarks EMPLOYEE_ID NUMBER NOT NULL, Primary Key EMP_NAME VARCHAR2 (30) JOB_ID VARCHAR2 (20) SALARY NUMBER MGR_ID NUMBER References EMPLOYEE_ID COLUMN DEPARTMENT ID NUMBER Foreign key to DEPARTMENT ID column of the DEPARTMENTS table DEPARTMENTSColumn name Data type Remarks DEPARTMENT_ID NUMBER NOT NULL, Primary Key DEPARTMENT_NAME VARCHAR2(30) MGR_ID NUMBER References MGR_ID column of the EMPLOYEES table Evaluate this SQL statement: SELECT employee_id, e.department_id, department_name, salary FROM employees e, departments d WHERE e. department_id = d.department_id; Which SQL statement is equivalent to the above SQL statement?()
A:SELECT employee_id, department_id, department_name, salary FROM employees WHERE department_id IN (SELECT department_id FROM departments);
B:SELECT employee_id, department_id, department_name, salary FROM employees NATURAL JOIN departments;
C:SELECT employee_id, d.department_id, department_name, salary FROM employees e JOIN departments d ON e.department _ id = d. department_id;
D:SELECT employee_id, department_id, department_name, Salary FROM employees JOIN departments USING (e.department_id, d.department_id);
在程序中必须书写的语句是()。
A:SET SERVEROUTPUT ON
B:DECLARE
C:BEGIN END
D:EXCEPTION
Which three statements are true regarding single-row functions?()
A: They can accept only one argument.
B: They can be nested up to only two levels.
C: They can return multiple values of more than one data type.
D: They can be used in SELECT, WHERE, and ORDER BY clauses.  
E: They can modify the data type of the argument that is referenced.
F: They can accept a column name, expression, variable name, or a user-supplied constant as arguments.
Examine the contents of SQL loader control file: Which three statements are true regarding the SQL* Loader operation performed using the control file?()
A:An EMP table is created if a table does not exist. Otherwise, if the EMP table is appended with the loaded data.
B:The SQL* Loader data file myfile1.dat has the column names for the EMP table.
C:The SQL* Loader operation fails because no record terminators are specified.
D:Field names should be the first line in the both the SQL* Loader data files.
E:The SQL* Loader operation assumes that the file must be a stream record format file with the normal carriage return string as the record terminator.
Given: Which two, placed on line 13, will produce the output gobstopper?()
A:System.load("prop.custom");
B:System.getenv("prop.custom");
C:System.property("prop.custom");
D:System.getProperty("prop.custom");
E:System.getProperties().getProperty("prop.custom");
Which two changes and their effect on the system can be tested by using the Database Replay feature?()
A: multiplexing of the control file
B: adding the redo log member to the database
C: database and operating system upgrades
D: changing the database storage to ASM-managed storage
Consider the following configuration:   /devices/diskP1 is a member of disk group grp1.        /devices/diskP2 is a member of disk group grp1.        /devices/diskP3 is a member of disk group grp1.        /devices/diskP4 is a candidate disk.        /devices/diskQ1 is a member of disk group grp2.        /devices/diskQ2 is a member of disk group grp2.        /devices/diskQ3 is a member of disk group grp2.        /devices/diskQ4 is a candidate disk.   Which command will add the disk /devices/diskP4 to the disk group, grp1?()  
A: ALTER DISKGROUP grp1  ADD DISK ’/devices/diskP1’,  ADD DISK ’/devices/diskP4’;
B: ALTER DISKGROUP grp1  ADD DISK ’/devices/disk*4’;
C: ALTER DISKGROUP grp1  ADD DISK ’/devices/diskP*’;
D: ALTER DISKGROUP grp1  ADD DISK ’/devices/diskQ*’,  ADD DISK ’/devices/diskP*’;
Which clause should you use to exclude group results? ()
A:WHERE
B:HAVING
C:RESTRICT
D:GROUP BY
E:ORDER BY
View the Exhibit and examine the output of the query.  What do you infer from this()
A:The SGA_TARGET is a static parameter.
B:The instance is started, but the database is not yet open.
C:The server parameter file (SPFILE) was used to start the instance.
D:The SGA_TARGET parameter does not have any effect onthe databaseinstance untiltheSGA_MAX_SIZE parameter is specified.
Examine the following commands executed in your database: SQL> ALTER SESSION RECYCLEBIN=ON; Session altered  SQL > CREATE TABLE emp TABLESPACE tbsfd AS SELECT * FROM hr.employees;  Table created.  Further, you executed the following command to drop the table:  SQL> DROP TABLE emp;Table dropped.  What happens in this scenario?()
A:The table is moved to the SYSAUX tablespace.
B:The table is moved to the SYSTEM tablespace.
C:The table is removed from the database permanently.
D:The table is renamed and remains in the TBSFD tablespace.
A company has a business application that provides its users with many different reports: receivables reports, payables reports, revenue projects, and so on. The company has just purchased some new, state-of-the-art, wireless printers, and a programmer has been assigned the task of enhancing all of the reports to use not only the company's old printers, but the new wireless printers as well. When the programmer starts looking into the application, the programmer discovers that because of the design of the application, it is necessary to make changes to each report to support the new printers. Which two design concepts most likely explain this situation?()
A:Inheritance
B:Low cohesion
C:Tight coupling
D:High cohesion
E:Loose coupling
F:Object immutability
You executed the following query:  SELECT operation, undo_sql, table_name  FROM flashback_transaction_query;  Which statement is correct regarding the query output?()
A:It would return information regarding only the last committed transaction.
B:It would return only the active transactions in all the undo segments in the database.
C:It would return only the committed transactions in all the undo segments in the database. 
D:It would return both active and committed transactions in all the undo segments in the database.
E:It would return information regarding the transactions that began and were committed in the last 30 minutes.
View the Exhibit and examine the steps that you executed to create a database resource plan. Subsequently, you execute the following procedure which results in an error: SQL> EXECUTE dbms_resources_manager.validate_pending_area ( ); What could be the reason?()
A:The pending area is automatically submitted after the plan creation
B:The procedure must be executed before creating the resources plan directive
C:The SYS_GROUP resource consumer group is not included in the resource plan directive
D:The OTHER_GROUPS resources consumer group is not included in the resource plan directive
Given: Which regular expression, inserted at line 12, correctly splits test into "Test A", "Test B", and "Test C"?()
A:String regex="";
B:String regex=" .";
C:String regex=".*";
D:String regex="//s";
E:String regex="//.//s*";
F:String regex="//w[/.]+";
Data file DF1 belongs to tablespace TS1.,and the database is in ARCHIVELOG mode. You did an incomplete recover in the following steps:   1. Take data file DF1 offline.  2. Copy a backup copy of DF1 into the current DF1 location.  3. Execute RECOVER DATAFILE UNTIL TIME sometime in the past.  4. Bring DF1 online.  5. Execute ALTER DATABASE OPEN RESETLOGS.   To guarantee that the database is recoverable in the future, what is the least amount of work needed?()
A:Back up the data file.
B:Bring tablespace TS1 online.
C:Copy redo logs to the backup directory.
D:Make a complete backup right after opening the database.
Which statement is true about the plan being loaded into the SQL baseline by the above command?()
A:It is loaded with the FIXED status.
B:It is loaded with the ACCEPTED status.
C:It is not loaded with the ENABLED status.
D:It is not loaded with the ACCEPTED status.
You are using RMAN to backup your ARCHIVELOG mode database. You have enabled control-file autobackups. Which files are not backed up during the RMAN backup?()
A:Database Datafiles 
B:Database Control Files 
C:Online redo logs
D:Archived redo logs 
E:The database SPFILE 
F:None of the above, all these files are backed up. 
There was media failure and you need to check the data files for any block corruption. Which option would you use to create a report on any corruptions found within the database?()
A: the DBNEWID utility
B: the DBVERIFY utility
C: the ANALYZE command
D: the RMAN REPORT command
E: the RMAN CROSSCHECK command
F: the CHECK_OBJECT procedure of the DBMS_REPAIR package
Which background process of a database instance, using Automatic Storage Management (ASM), connects as a foreground process into the ASM instance?()
A:ASMB
B:PMON
C:RBAL
D:SMON
Given: Which two code fragments, inserted independently at line 13, will compile?()
A:super(name, baseSalary);
B:this.commission = commission;
C:super(); this.commission = commission;
D:this.commission = commission; super();
E:super(name, baseSalary); this.commission = commission;
Oracle物理数据库包含()类型重要的文件。
A:数据文件
B:控制文件
C:参数文件
D:配置文件
Anyone who knows just the host name and the listener name can have full control over the listener. They can stop the listener and also obtain detailed information about the listener, database, and the configuration of the application. How would you avoid this scenario?()
A:lock the listener
B:hide the listener
C:create multiple listeners
D:run listener on a remote client
E:set a password for the listener
F:store listener.ora in a non-default location
Exhibit The COMMISSION column shows the monthly commission earned by the employee. Which two tasks would require subqueries or joins in order to be performed in a single step? ()
A:listing the employees who earn the same amount of commission as employee 3
B:finding the total commission earned by the employees in department 10
C:finding the number of employees who earn a commission that is higher than the average commission of the company
D:listing the departments whose average commission is more that 600
E:listing the employees who do not earn commission and who are working for department 20 in descending order of the employee ID 
F:listing the employees whose annual commission is more than 6000
Which statement is true regarding the retention policy for the incidents accumulated in the Automatic Diagnostic Repository (ADR)?()  
A: The incident metadata is purged when the problem is resolved and the DBA closes the SR
B: The incident files and dumps are not retained in the ADR for the manually created incidents 
C: The incident files are retained but the incident metadata is purged when the problem is resolved and the DBA closes the SR
D: The default setting is for one year after which the incident metadata is purged from the ADR and the files are retained for one month
Which organizations can post to the same set of books?()
A:those organizations that share the same functional currency, calendar and accounting flexfield structure
B:those organizations that share the same currency but do not share the same calendar and accounting flexfield structure
C:those organizations that share the same accounting flexfield structure but do not share the same calendar and functional currency
D:those organizations that share the same calendar but do not share the same functional currency and accounting flexfield structure
To allocate another role to a user, which command is most appropriate?()
A:ALTER USER 
B:ALTER DATABASE 
C:ALTER SYSTEM 
D:GRANT
You want your listener to be password protected to prevent it from being shut down. You want to accomplish this task while the listener is functional. Which method could you use to achieve this objective?()
A: Use the CHANGE_PASSWORD command of the Listener control utility.
B: Use the SET PASSWORD and SAVE_CONFIG commands of the Listener control utility.
C: Use the CHANGE_PASSWORD and SAVE_CONFIG commands of the Listener control utility.
D: Manually modify the listener.ora file to include the password for the listener and restart the listener.
Your database in running in the ARCHIVELOG mode. You issue the following command to back up datafile 2 in your database.   RMAN> COPY DATAFILE 2 TO ’D:///ORACLE/ORA90/MYNEWDB/DA2.DBF’;   Which two statements are true regarding the backup created using this command?()
A: The copy of the datafile created is stored in the RMAN repository.
B: The copy of the datafile created can be viewed using the LIST BACKUP command.
C: The copy of the datafile created using this COPY command can be placed only on the disk.
D: The copy of the datafile created is similar to the backup of the file created using the BACKUP command.
E: The copy of the datafile created can be used for recovering the database using the user-managed recovery method.
Which two triggers are mouse movement triggers?()
A:When-Mouse-Up 
B:When-Mouse-Move 
C:When-Mouse-Down
D:When-Mouse-Click 
E:When-Mouse-Leave