电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

【OCP-062】1Z0-062最新考试题库解析-第5次课

10页
  • 卖家[上传人]:j***
  • 文档编号:89054918
  • 上传时间:2019-05-16
  • 文档格式:DOCX
  • 文档大小:22.25KB
  • / 10 举报 版权申诉 马上下载
  • 文本预览
  • 下载提示
  • 常见问题
    • 1、【CUUG内部资料】OCP讨论群:1015267481【OCP-062】1Z0-062最新考试题库解析-第1次课序:OCP11g认证即将结束,12c已经越来越热,考试共分为3个科目:071、062、063,071的题库解析已经上传,这次整理的是062的考试题,虽然考题多变、不断的增加新题,但有了下面的这些考题,相信会对广大考生有帮助作用,顺利通过OCP考试。QUESTION 61You create a new pluggable database, HR_PDB, from t he seed database. Which threetablespaces are created by default in HR_PDB?A. SYSTEMB. SYSAUXC. EXAMPLED. UNDOE. TEMPF. USERSCorrect Answer: ABESection: (none)ExplanationExplanation/Reference:* A PDB would have its SYSTEM,SYSAUX, TEMP tablespaces.It canalso

      2、contains other user createdtablespaces in it. * Oracle Database creates both t he SYSTEM and SYSAUX tablespaces as part of everydatabase.* tablespace_datafile_clausesUse these clauses to specify attributes for all data files comprising the SYSTEM and SYSAUXtablespaces in the seed PDB.Incorrect:Not D: a PDB can not have an undo tablespace. Instead, it uses the undo tablespace belongingto the CDB.QUESTION 62Which two statements are true about variable extent size support for large ASM files?A. The

      3、 metadata used to track extents in SGA is reduced.B. Rebalance operations are completed faster than with a fixed extent sizeC. An ASM Instance automatically allocates an appropriate extent size.D. Resync operations are completed faster when a disk comes online after being taken offline.E. Performance improves in a stretch cluster configuration by reading from a local copy of anextent.Correct Answer: ACSection: (none)ExplanationExplanation/Reference:A: Variable size extents enable support for lar

      4、ger ASM datafiles, reduce SGA memoryrequirements for very large databases (A), and improve performance for filecreate and open operations.C: You dont have to worry about the sizes; the ASM instance automatically allocates theappropriate extent size.QUESTION 63You executed a DROP USER CASCADE on an Oracle 11g release 1 database and immediatelyrealized that you forgot to copy the OCA.EXAM_RESULTS table to the OCP schema.The RECYCLE_BIN enabled before the DROP USER was executed and the OCP user has

      5、been granted the FLASHBACK ANY TABLE system privilege.What is the quickest way to recover the contents of the OCA.EXAM_RESULTS table to the OCPschema?A. Execute FLASHBACK TABLE OCA.EXAM_RESULTS TO BEFORE DROP RENAME TOOCP.EXAM_RESULTS; connected as SYSTEM.B. Recover the table using traditional Tablespace Point In Time Recovery.C. Recover the table using Automated Tablespace Point In Time Recovery.D. Recovery the table using Database Point In Time Recovery.E. Execute FLASHBACK TABLE OCA.EXAM_RESU

      6、LTS TO BEFORE DROP RENAME TOEXAM_RESULTS; connected as the OCP user.Correct Answer: CSection: (none)Explanation(验证过)(解析:因为是删除了用户,而且数据库版本是 11g,没有表恢复功能,但是从恢复工作量来考虑,选择表空间的时间点恢复是最好的方式。)QUESTION 64In your multitenant container database (CDB) containing pluggable database (PDBs), t he HRuser executes the following commands to create and grant privileges ona procedure:CREATE OR REPLACE PROCEDURE create_test_v(v_emp_id NUMBER, v_ename VARCHAR2, v_SALARYNUMBER, v_dept_id NUMBER) IS BEGINI/NSERT INTO hr.t

      7、est VALUES (V_emp_id, V_ename, V_salary, V_dept_id); END;GRANT EXECUTE ON CREATE_TEST TO john, jim, smith, king;How can you prevent users having the EXECUTE privilege on t he CREATE_TEST procedurefrom inserting values into tables on which they do not have any privileges?A. Create the CREATE_TEST procedure with definers rights.B. Grant the EXECUTE privilege to users with GRANT OPTION on t he CREATE_TESTprocedure.C. Create the CREATE_TEST procedure with invokers rights.D. Create the CREATE_TEST pr

      8、ocedure as part of a package and grant users the EXECUTEprivilege the package.Correct Answer: CSection: (none) Explanation: 题目的意思是创建了一个存储过程,需要有其它用户能够执行这个存储过程,可是他们没有权限对存储过程中访问到的表没有访问权限,但是这些用户又要能够执行这个存储过程,所以如果是 definers rights 的话,执行就会出错,因为该模式下只能对HR.DEPARTMENTS 的表进行操作;可能的情况下是这些用户自己有跟 HR 用户相同的表名字也叫 DEPARTMENTS,所以当执行这个存储过程的时候,修改的是自己的表,可以实现一个存储过程被多个用户共享,但是修改的却是各自用户下的自己的表,这时候需要invokers rights来实现这种调用者的权限子程序不绑定到特定的模式。以下版本的过程 create_dept 以调用用户的权限执行,并将行插入到该用户的 departments 表中:1、 以 scott 用户创建表和存储过程:create ta

      9、ble departments (v_deptno number,v_dname varchar2(40),v_mgr number, CREATE OR REPLACE PROCEDURE create_dept (v_deptno NUMBER,v_dname VARCHAR2,v_mgr NUMBER,v_loc NUMBER)AUTHID CURRENT_USER ASBEGININSERT INTO departments VALUES (v_deptno, v_dname, v_mgr, v_loc);END;2、 调用该存储过程:CALL create_dept(44, Information Technology, 200, 1700);3、 把可执行权限授权给 sh 用户:SQL grant execute on CREATE_DEPT to sh;4、 以 sh 用户执行该存储过程:SQL call scott.create_dept(44, Information Technology, 200, 1700);call scott.create_dept(44, Information Technology, 200, 1700)*ERROR at line 1:ORA-00942: table or view does not existORA-06512: at SCOTT.CREATE_DEPT, line 85、 在 sh 用户下创建 departments 表,语法如上。6、 再执行该存储过程成功:SQL call scott.create_dept(44, Information Technology

      《【OCP-062】1Z0-062最新考试题库解析-第5次课》由会员j***分享,可在线阅读,更多相关《【OCP-062】1Z0-062最新考试题库解析-第5次课》请在金锄头文库上搜索。

      点击阅读更多内容
    最新标签
    监控施工 信息化课堂中的合作学习结业作业七年级语文 发车时刻表 长途客运 入党志愿书填写模板精品 庆祝建党101周年多体裁诗歌朗诵素材汇编10篇唯一微庆祝 智能家居系统本科论文 心得感悟 雁楠中学 20230513224122 2022 公安主题党日 部编版四年级第三单元综合性学习课件 机关事务中心2022年全面依法治区工作总结及来年工作安排 入党积极分子自我推荐 世界水日ppt 关于构建更高水平的全民健身公共服务体系的意见 空气单元分析 哈里德课件 2022年乡村振兴驻村工作计划 空气教材分析 五年级下册科学教材分析 退役军人事务局季度工作总结 集装箱房合同 2021年财务报表 2022年继续教育公需课 2022年公需课 2022年日历每月一张 名词性从句在写作中的应用 局域网技术与局域网组建 施工网格 薪资体系 运维实施方案 硫酸安全技术 柔韧训练 既有居住建筑节能改造技术规程 建筑工地疫情防控 大型工程技术风险 磷酸二氢钾 2022年小学三年级语文下册教学总结例文 少儿美术-小花 2022年环保倡议书模板六篇 2022年监理辞职报告精选 2022年畅想未来记叙文精品 企业信息化建设与管理课程实验指导书范本 草房子读后感-第1篇 小数乘整数教学PPT课件人教版五年级数学上册 2022年教师个人工作计划范本-工作计划 国学小名士经典诵读电视大赛观后感诵读经典传承美德 医疗质量管理制度 2
    关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
    手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
    ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.