C. Use the TO_CHAR function around SYSDATE, that is, 1_date := TO_CHAR (SYSDATE).

Similar documents
Oracle 1Z0-148 Exam Questions and Answers (PDF) Oracle 1Z0-148 Exam Questions 1Z0-148 BrainDumps

ITBraindumps. Latest IT Braindumps study guide

Oracle. Exam Questions 1Z Oracle 11g: Advanced PL/SQL. Version:Demo. 1Z0-146 Exam Questions Demo

Braindumps.1z QA

Oracle 1Z Oracle Database 11g: Advanced PL/SQL.

Oracle 1Z Oracle Database 12c: Advanced PL/SQL.

SecureFiles Migration O R A C L E W H I T E P A P E R F E B R U A R Y

Oracle 1z z0-146 Oracle Database 11g: Advanced PL/SQL. Practice Test. Version QQ:

Question: 1 Which two types of metadata can be retrieved by using the various procedures in the DBMS_METADATA PL/SQL package? (Choose two.

IT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://

Vendor: Oracle. Exam Code: 1Z Exam Name: Oracle database 11g:advanced pl/sql. Version: Demo

Passguide.1z questions

SQL Structured Query Language Introduction

Developer. 1 enterprise. Professional Guide. Oracle Advanced PL/SQL. example questions for 1Z0-146 examination

Definitions. Database Architecture. References Fundamentals of Database Systems, Elmasri/Navathe, Chapter 2. HNC Computing - Databases

Creating and Managing Tables Schedule: Timing Topic

Oracle Data Pump Internals

Configure ODBC on ISE 2.3 with Oracle Database

! "# " "$ %&' ($$$ )%&' *+),%&' -.*&*/

1Z Z0-146-Oracle Database 11g: Advanced PL/SQL Exam Summary Syllabus Questions

Vendor: Oracle. Exam Code: 1Z Exam Name: Oracle Database 11g: Program with PL/ SQL. Version: Demo

Oracle Alter Table Add Unique Constraint Using Index Tablespace

Oracle Exam 1z0-144 Oracle Database 11g: Program with PL/SQL Version: 8.5 [ Total Questions: 103 ]

King Fahd University of Petroleum and Minerals

Exam Name: Oracle Database 11g: Program with PL/SQL

Oracle Database 18c. Gentle introduction to Polymorphic Tables Functions with Common patterns and sample use cases

Oracle Database 12c: Program with PL/SQL Duration: 5 Days Method: Instructor-Led

Create Rank Transformation in Informatica with example

Oracle Database 12c Release 1 PL/SQL New Features

To Cache or not to Cache; and How?

Oracle EXAM - 1Z Program with PL/SQL. Buy Full Product.

Oracle PLSQL Training Syllabus

Oracle. Exam Questions 1Z Oracle Database 11g: New Features for 9i OCPs. Version:Demo

Oracle EXAM 1Z0-144 Oracle Database 11g: Program with PL/SQL

Programming Languages

ORACLE 8 OBJECT ORIENTED TECHNOLOGY ORACLE SOFTWARE STRUCTURES SERVER SIDE BACKGROUND PROCESSES DATABASE SERVER AND DATABASE INSTANCE

JPexam. 最新の IT 認定試験資料のプロバイダ IT 認証であなたのキャリアを進めます

ORACLE VIEWS ORACLE VIEWS. Techgoeasy.com

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

1Z0-144 Q&As Oracle Database 11g: Program with PL/ SQL

ORACLE 12C NEW FEATURE. A Resource Guide NOV 1, 2016 TECHGOEASY.COM

RDBMS Topic 4 Adv. SQL, MSBTE Questions and Answers ( 12 Marks)

PART I Core Ideas and Elements of PL/SQL Performance Tuning

New York Oracle Users Group. September 26, 2002 New York, NY

Oracle Database: Program with PL/SQL

Oracle Database: Program with PL/SQL Ed 2

5 Integrity Constraints and Triggers

20 Essential Oracle SQL and PL/SQL Tuning Tips. John Mullins

1Z0-144.v Number: 1Z0-144 Passing Score: 800 Time Limit: 120 min File Version:

Database Foundations. 6-3 Data Definition Language (DDL) Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Oracle Database 12c R2: Program with PL/SQL Ed 2 Duration: 5 Days

Conditionally control code flow (loops, control structures). Create stored procedures and functions.

Question No : 1 Which statement is true about triggers on data definition language (DDL) statements?

CO Oracle Database 12c: Advanced PL/SQL

Oracle DB-Tuning Essentials

Question: Which statement would you use to invoke a stored procedure in isql*plus?

ITDUMPS QUESTION & ANSWER. Accurate study guides, High passing rate! IT dumps provides update free of charge in one year!

Oracle EXAM - 1Z Oracle Database 11g: Program with PL/SQL. Buy Full Product.

ITCertMaster. Safe, simple and fast. 100% Pass guarantee! IT Certification Guaranteed, The Easy Way!

Databases. Relational Model, Algebra and operations. How do we model and manipulate complex data structures inside a computer system? Until

Oracle Database 11g: Program with PL/SQL Release 2

Oracle Tables TECHGOEASY.COM

When a database trigger routine does not have to take place before the triggering event, which timing should you assign to the trigger?

GIFT Department of Computing Science Data Selection and Filtering using the SELECT Statement

Introduction. Introduction to Oracle: SQL and PL/SQL

Autonomous Transactions

Oracle Database 11g: Program with PL/SQL

Introduction 1. Conventions 7 Source Code and Updates 8. Setting Up 11

GET POST ORDS JSON: Web Services for APEX Decoded

The Oracle Interview consists of two parts. One for Written test Interview and Another one for HR interview.

IZ0-144Oracle 11g PL/SQL Certification (OCA) training

c. Invoke your procedure again, passing a job ID of ST_MAN and a job title of Stock Manager. What happens and why?

Application Containers an Introduction

4 Application Programming

4 Application Programming

Oracle - Oracle Database: Program with PL/SQL Ed 2

Sample Question Paper

Oracle 1Z Oracle Database 11g: Administration I. Download Full Version :

The Encryption Wizard for Oracle. API Library Reference

Performance and Tuning. 2010, Oracle and/or its affiliates. All rights reserved.

11g Tech Briefing: Performance. Part 1 of 2

SQL. Char (30) can store ram, ramji007 or 80- b

Application Containers an Introduction

ORACLE TRAINING. ORACLE Training Course syllabus ORACLE SQL ORACLE PLSQL. Oracle SQL Training Syllabus

Additional Practice Solutions

Oracle MySQL 1Z0-148 Exam Questions PDF

Exploring Edition-Based Redefinition

Application Containers an Introduction

Part III. Data Modelling. Marc H. Scholl (DBIS, Uni KN) Information Management Winter 2007/08 1

Oracle Developer Track Course Contents. Mr. Sandeep M Shinde. Oracle Application Techno-Functional Consultant

C Examcollection.Premium.Exam.58q

New Features in PL/SQL for Oracle 11g

SQL is an English like language consisting of commands to store, retrieve, maintain & regulate access to your database.

ROLLBACK SEGMENTS. In this chapter, you will learn about: Rollback Segment Management Page 272

PL/SQL. Exception. When the PL/SQL engine cannot execute the PLSQL block it raise an error. Every Oracle error has an error number

ABSTRACT INTRODUCTION. Bhaskar Himatsingka, Oracle Corporation & Juan Loaiza, Oracle Corporation

Informatics Practices (065) Sample Question Paper 1 Section A

Q.1 Short Questions Marks 1. New fields can be added to the created table by using command. a) ALTER b) SELECT c) CREATE. D. UPDATE.

Objectives. After completing this lesson, you should be able to do the following:

CS2 Current Technologies Lecture 3: SQL - Joins and Subqueries

Transcription:

Volume: 75 Questions Question: 1 Examine this code: Users of this function may set different date formats in their sessions. Which two modifications must be made to allow the use of your session s date format when outputting the cached result of this function? A. Change the RETURN type to DATE. B. Change AUTHID to CURRENT_USER. C. Use the TO_CHAR function around SYSDATE, that is, 1_date := TO_CHAR (SYSDATE). D. Change the data type of 1_date to DATE. E. Set NLS_DATE_FORMAT to DD-MM-YY at the instance level. F. Set the RESULT_CACHE_MODE parameter to FORCE. Answer: D,F Question: 2 Which three statements are correct with reference to intra unit inlining? A. Inlining will always decrease the size of a unit. B. Setting PLSQL_OPTIMIZE_LEVEL to 2 means automatic inlining is attempted. C. You cannot inline an external subroutine. D. Programs that make use of smaller helper subroutines are good candidates for inlining. E. Pragmas apply only to calls in the next statement following the pragma. F. You cannot inline local subroutines.

Answer: C,D,E Question: 3 Which two statements are true regarding edition-based redefinition (EBR)? A. There is no default edition defined in the database. B. EBR does not let you upgrade the database components of an application while in use. C. You never use EBR to copy the database objects and redefine the copied objects in isolation. D. Editions are non-schema objects. E. When you change an editioned object, all of its dependents remain valid. F. Tables are not editionable objects. Answer: E,F Question: 4 Examine this function body: Which two headers will allow this function to compile successfully and take advantage of both invoker s rights and function result caching? A. CREATE FUNCTION get_hire_date (emp_id NUMBER) RETURN VARCHAR2RESULT_CACHE RELIES_ON (departments)authid CURRENT_USERISdate_hired DATE; B. CREATE FUNCTION get_hire_date (emp_id NUMBER) RETURN VARCHAR2RESULT_CACHEAUTHID CURRENT_USERISdate_hired DATE; C. CREATE FUNCTION get_hire_date (emp_id NUMBER) RETURN VARCHAR2RESULT_CACHEAUTHID DEFINERISdate_hired DATE; D.

CREATE FUNCTION get_hire_date (emp_id NUMBER) RETURN VARCHAR2RESULT_CACHE RELIES_ON (employees)authid CURRENT_USERISdate_hired DATE; E. CREATE FUNCTION get_hire_date (emp_id NUMBER) RETURN VARCHAR2AUTHID DEFINERISdate_hired DATE; Answer: D,E Question: 5 Examine the structure of the DEPT table which exists in both BRANCH1 and BRANCH2 schemas: Examine this code: Which three modifications must be done to endure the anonymous block displays the output form the BRANCH2.DEF DEPT table? A. Change the IF condition in the anonymous block to 1_dept IS EMPTY. B. Change the IF condition in the anonymous block to CARDINALITY (1_dept) IS NULL. C. Add BEQUEATH DEFINER to the EMP_COUNT_VW view. D. Add BEQUEATH CURRENT_USER to the EMP_COUNTS_VW view.

E. IN BRANCH2 execute GRANT INHERIT PRIVILEGES ON USER branch2 TO branch1; F. Add AUTHID CURRENT_USER to the EMP_COUNT function. Answer: B,D,E Question: 6 Examine this function: Execute the query: SELECT remap_schema FROM dual; Which is the correct output from the query? A. CREATE TABLE EMP ( EMPNO NUMBER (4,0), ENAME VARCHAR2 (10), JOB VARCHAR2 (9), MGR NUMBER (4,0), HIREDATE DATE, SAL NUMBER (7,2), COMM NUMBER (7,2), DEPTNO NUMBER (2,0),CONSTRAINT PK_EMP PRIMARYKEY ( EMPNO ) USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2417483645PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1BUFFER_POOL DEFAULT FLASH_CHACHE DEFAULT CELL_FLASH_CACHE DEFAULT)TABLESPACE USERS ENABLE,CONSTRAINT FK_DEPTNO FOREIGN KEY ( DEPTNO ) REFERENCES DEPT ( DEPTNO ) ENABLE) SEGMENT CREATION IMMEDIATEPCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255NOCOMPRESS LOGGINGSTORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE USERS B. CREATE TABLE EMP ( EMPNO NUMBER (4, 0), ENAME VARCHAR2 (10), JOB VARCHAR2 (9), MGR NUMBER (4, 0), HIREDATE DATE, SAL NUMBER (7, 2), COMM NUMBER (7, 2), DEPTNO NUMBER (2, 0),CONSTRAINT PK_EMP PRIMARYKEY ( EMPNO )

USING INDEX ENABLE,CONSTRAINT FK_DEPTNO FOREIGN KEY ( DEPTNO ) REFERENCES DEPT ( DEPTNO ) ENABLE) C. CREATE TABLE SCOTT. EMP ( EMPNO NUMBER (4, 0), ENAME VARCHAR2 (10), JOB VARCHAR2 (9), MGR NUMBER (4, 0), HIREDATE DATE, SAL NUMBER (7, 2), COMM NUMBER (7, 2), DEPTNO NUMBER (2, 0),CONSTRAINT PK_EMP PRIMARY KEY ( EMPNO ) USING INDEX ENABLE,CONSTRAINT FK_DEPTNO FOREIGN KEY ( DEPTNO ) REFERENCES DEPT ( DEPTNO ) ENABLE) D. CREATE TABLE EMP ( EMPNO NUMBER (4,0), ENAME VARCHAR2 (10), JOB VARCHAR2 (9), MGR NUMBER (4,0), HIREDATE DATE, SAL NUMBER (7, 2), COMM NUMBER (7, 2), DEPTNO NUMBER (2,0),CONSTRAINT PK_EMP PRIMARYKEY ( EMPNO ) USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2417483645PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1BUFFER_POOL DEFAULT FLASH_CHACHE DEFAULT CELL_FLASH_CACHE DEFAULT)TABLESPACE SYSAUX ENABLE,CONSTRAINT FK_DEPTNO FOREIGN KEY ( DEPTNO ) REFERENCES DEPT ( DEPTNO ) ENABLE) SEGMENT CREATION IMMEDIATEPCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255NOCOMPRESS LOGGINGSTORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE SYSAUX Answer: B Question: 7 This result cache is enabled for the database instance. Examine this code for a PL/SQL function: Which two actions would ensure that the same result will be consistently returned for any session when the same input value is passed to the function? A. Add a parameter, fmt, and change the RETURN statement to:return TO_CHAR (date_hired, fmt);

B. Set the RESULT_CACHE_MODE parameter to FORCE. C. Increase the value for the RESULT_CACHE_MAX_SIZE parameter. D. Change the return type of GET_HIRE_DATE to DATE and have each session invoke the TO_CHAR function. E. Set the RESULT_CACHE_MAX_RESULT parameter to 0. Answer: B,D Question: 8 Examine this code: Which two corrections must be applied for this anonymous block to execute successfully? A. Change RETURN p_tab.last to RETURN p_tab.count. B. Declare the collection type inside the function. C. Declare the collection type at the schema level instead of the package. D. Define the function as stand-alone instead of in a package body. E. Change the INDEX BY clause from VARCHAR2 to PLS_INTEGER. F. Modify the function return type to return a scalar, VARCHAR2. Answer: D,E

Question: 9 Which statement is true about the DBMS_PARALLEL_EXECUTE package? A. DBMS_PARALLEL_EXECUTE is a SYS-owned package and can be accessed only by a user with DBA privileges. B. To execute chunks in parallel, users must have CREATE JOB system privilege. C. No specific system privileges are required to create or run parallel execution tasks. D. Only DBAs can create or run parallel execution tasks. E. Users with CREATE TASK privilege can create or run parallel execution tasks. Answer: B Question: 10 Which two statements describe actions developers can take to make their application less vulnerable to security attacks? A. Include the AUTHID DEFINER clause in stored program units. B. Do not concatenate unchecked user input into dynamically constructed SQL statements. C. Switch from using DBMS_SQL to EXECUTE IMMEDIATE. D. Include the AUTHID CURRENT_USER clause in stored program units. E. Increase the amount of code that is accessible to users by default. Answer: B,D Question: 11 Examine this declaration section: Which two executable sections will display the message Summary is null? A. BEGIN1_rec := NULL;1_emp := emp_typ (1_rec);IF 1_emp (1).expr_summary IS EMPTY

THENDBMS_OUTPUT.PUT_LINE ( Summary is null );END IF;END; B. BEGIN1_rec.emp_id :=1;1_rec.expr_summary := NULL;1_emp :=emp_typ (1_rec); IF1_emp(1).expr_summary IS NULL THENDBMS_OUTPUT.PUT_LINE ( Summary is null );END IF;END; C. BEGIN1_rec.emp_id :=1;1_rec.expr_summary := EMPTY_CLOB ();1_emp := emp_typ (1_rec);IF 1_emp(1).expr_summary IS NULL THENDBMS_OUTPUT.PUT_LINE ( Summary is null );END IFEND; D. BEGIN1_emp := emp_typ ();IF NOT 1_emp. EXISTS (1) THENDBMS_OUTPUT.PUT_LINE ( Summary is null );END IFEND; E. BEGIN1_emp. EXTEND;IF NOT 1_emp. EXISTS (1) THENDBMS_OUTPUT.PUT_LINE ( Summary is null );END IFEND; Answer: D,E Question: 12 Examine this PL/SQL function: What happens when the function is created with PLSQL_WARNINGS set to ENABLE: ALL? A. There are no compilation warnings or errors. B. It fails compilation. C. An information compilation warning is generated. D. A performance compilation warning is generated. E. A severe compilation warning is generated.

Answer: E Question: 13 Which statement is correct about DBMS_LOB.SETOPTIONS and DBMS_LOB.GETOPTIONS for SecureFiles? A. DBMS_LOB.GETOPTIONS can only be used for BLOB data types. B. DBMS_LOB.SETOPTIONS can perform operations on individual SecureFiles but not an entire column. C. DBMS_LOB. SETOPTIONS can set option types COMPRESS, DUPLICATE, and ENCRYPT. D. If a table was not created with compression specified in the store as securefile clause then DBMS_LOB.SETOPTIONS can be used to enable it later. Answer: D Question: 14 Which two statements about the PL/SQL hierarchical profiler are true? A. Access it using the DBMS_PROFILER package. B. Access it using the DBMS_HPROF package. C. Profiler data is recorded in tables and published in HTML reports. D. It is only accessible after a grant of the CREATE PROFILE privilege. E. It helps you identify subprograms that are causing bottlenecks in application performance. Answer: B,E Question: 15 Examine this code: The anonymous block fails with:

ERROR at line 1: ORA-01403: no data found ORA-06512: at line 5 Which two are valid options to prevent this error from occurring? A. Line 5 should be replaced with:dbms_lob.createtemporary (pdatabuf (1), TRUE, DBMS_LOB.CALL); B. Line 5 should be replaced with:dbms_lob.createtemporary (pdatabuf (1), FALSE, DBMS_LOB.SESSION); C. Rewrite the block as:declaretype databuf_arr IS TABLE OF CLOB INDEX BY BINATY_INTEGER;pdatabuf databuf_arr;procedure mytemplob (x OUT CLOB) ISBEGINDBMS_LOB.CREATETEMPORARY (x, TRUE, DBMS_LOB, SESSION);END;BEGINmytemplob (pdatabuf (1));END;/ D. pdatabuf (1) := NULL; should be added after line 4. E. Line 5 should be replaced with:dbms_lob.createtemporary (pdatabuf, TRUE, DBMS_LOB.SESSION); Answer: C,E Question: 16 Which must be true in order to add RESULT_CACHE to a function header and have it compile successfully? A. The IN parameters must not include BLOB, CLOB, collection or record data types. B. The function must be created with invoker s rights or in an anonymous block. C. The function must be declared as a pipelined table function. D. The function must have an OUT or an IN OUT parameter. Answer: C Question: 17 Which PRAGMA statement may enable associated PL/SQL functions to run more efficiently when called from SQL?