OCP

【2019年8月】OCP 071认证考试最新版本的考试原题-第29题

江枫思渺然 提交于 2019-12-04 20:34:36
choose two. ·MANAGER is an existing role with no privileges or roles. ·EMP is an existing role containing the CREATE TABLE privilege. ·EMPLOYEES is an existing table in the HR schema. Which two commands execute successfully? A) GRANT CREATE SEQUENCE TO manager, emp; B) GRANT SELECT, INSERT ON hr.employees TO manager WITH GRANT OPTION: C) GRANT CREATE TABLE, emp TO manager; D) GRANT CREATE TABLE, SELECT ON hr. employees TO manager ; E) GRANT CREATE ANY SESSION, CREATE ANY TABLE TO manager; Answer:AC (解析: BAnswer:报错:ORA-01926: cannot GRANT to a role WITH GRANT OPTION DAnswer::不能同时授权系统权限和对象权限给角色

【2019年8月】OCP 071认证考试最新版本的考试原题-第29题

与世无争的帅哥 提交于 2019-12-04 20:34:30
choose two. ·MANAGER is an existing role with no privileges or roles. ·EMP is an existing role containing the CREATE TABLE privilege. ·EMPLOYEES is an existing table in the HR schema. Which two commands execute successfully? A) GRANT CREATE SEQUENCE TO manager, emp; B) GRANT SELECT, INSERT ON hr.employees TO manager WITH GRANT OPTION: C) GRANT CREATE TABLE, emp TO manager; D) GRANT CREATE TABLE, SELECT ON hr. employees TO manager ; E) GRANT CREATE ANY SESSION, CREATE ANY TABLE TO manager; Answer:AC (解析: BAnswer:报错:ORA-01926: cannot GRANT to a role WITH GRANT OPTION DAnswer::不能同时授权系统权限和对象权限给角色

【2019年8月】OCP 071认证考试最新版本的考试原题-第28题

随声附和 提交于 2019-12-04 11:11:05
choose two The ORDERS table has a column ORDER_DATE of date type DATE The default display format for a date is DD-MON-RR Which two WHERE conditions demonstrate the correct usage of conversion functions? A) WHERE ordet_date > TO_CRAR(ADD_MONTHS(SYSDATE, 6), 'MON DD YYYY') B) WHERE TO_CHAR(order_date, 'MON DD YYYY') = 'JAN 20 2019' C ) WHERE order_date > TO_DATE('JUL 10 2018', 'MON DD YYYY') D) WHERE order_date IN (TO_DATE ('Oct 21 2018', 'MON DD YYYY'), TO_CHAR('Nov 21 2018','MON DD YYYY')) E) WHERE order_date > TO_DATE(ADD_MONTHS(SYSDATE,6),'MON DD YYYY') Answer:BC (解析:日期型转换的时候要注意元素格式。) 来源:

【2019年8月】OCP 071认证考试最新版本的考试原题-第27题

对着背影说爱祢 提交于 2019-12-04 10:59:44
Choose two. Which two statements are true about the DUAL table? A) It can display multiple rows and columns. B) It can be accessed only by the SYS user. C) It can be accessed by any user who has the SELECT privilege in any schema D) It can display multiple rows but only a single column. E) It consists of a single row and single column of VARCHAR2 data type. F) It can be used to display only constants or pseudo columns. Answer:AC (解析:dual 这个虚拟的表可以显示多行多列;任何用户都可以访问它。这道题的难点就是对 Answer:C 的理解:在任何模式中拥有 select 权限的用户都可以访问它。 每个用户的 select 权限是不需要单独给的,只要是自己的东西,自然就有 select 的权限。) 来源: https://my.oschina.net/u

ORACLE查询当前执行效率低的sql

淺唱寂寞╮ 提交于 2019-12-04 06:40:45
--CPU高的SQL select sql_text from v$sql order by cpu_time desc --逻辑读多的SQL: select * from (select buffer_gets, sql_text from v$sqlarea where buffer_gets > 500000 order by buffer_gets desc) where rownum<=30; --执行次数多的SQL : select sql_text,executions from (select sql_text,executions from v$sqlarea order by executions desc) where rownum<81; --读硬盘多的SQL : select sql_text,disk_reads from (select sql_text,disk_reads from v$sqlarea order by disk_reads desc) where rownum<21; ———————————————————————————————————————— 重庆思庄OCP认证培训班火热报名中,每月循环开班,更多详情请访问思庄网站咨询在线客服! 来源: https://my.oschina.net/u/3635497/blog

【2019年8月】OCP 071认证考试最新版本的考试原题-第26题

巧了我就是萌 提交于 2019-12-04 05:41:33
Choose three Which three actions can you perfom only with system privileges? A) Truncate a table in another schema. B) Access flat files via a database, which are stored in an operating system directory. C) Log in to a database. D) Query any table in a database. E) Use the WITH GRANT OPTION clause. F) Execute a procedure in another schema. Answer:CDF (解析:这道题考的就是可以授权哪些系统权限去做哪些活儿。 C:create session D:select any table F:EXECUTE ANY PROCEDURE 原来以为 AAnswer:正确,结构查询发现没有 truncate any table 的权限。 ) 来源: https://my.oschina.net/u/3902946/blog/3128196

【2019年8月】OCP 071认证考试最新版本的考试原题-第25题

橙三吉。 提交于 2019-12-04 05:38:35
Choose three. Which three statements are true about defining relations between tables in a relatonal database? A) Foreign key columns allow null values. B) Unique key columns allow null values C) Primary key columns allow null values. D) Every primary or unique key value must refer to a matching foreign key value. E) Every foreign key value must refer to a matching primary or unique key value. Answer:ABE (解析:AB Answer:比较简单明了;D Answer:说反了) 来源: https://my.oschina.net/u/3902946/blog/3128171

【2019年8月】OCP 071认证考试最新版本的考试原题-第24题

梦想的初衷 提交于 2019-12-03 16:55:20
Choose three. Which three statements are true about GLOBAL TEMPORARY TABLES? A) A GLOBAL TEMPORARY TABLE cannot have PUBLIC SYNONYM. B) A GLOBAL TEMPORARY TABLE can have multiple indexes C) A GLOBAL TEMPORARY TABLE can be referenced in the defining query of a view. D) Data Manipulation Language (DML) on GLOBAL TEMPORARY TABLES generates no REDO. E) A GLOBAL TEMPORARY TABLE can have only one index. F) A tigger can be created on a GLOBAL TEMPORARY TABLE Answer:BCD (解析:全局临时表跟普通表一样,可以创建索引、视图、触发器等等,dml 操作同样也会产生 redo。临时表创建的目的就是为了测试,如果很多操作不支持,那就失去了测试的意义。) 来源: https://www.cnblogs.com/cnblogs5359/p

The command returned a non-zero code: 127

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to build the below Dockerfile, but it keeps failing on RUN ocp-indent --help saying ocp-indent: not found The command '/bin/sh -c ocp-indent --help' returned a non-zero code: 127 FROM ocaml/opam WORKDIR /workdir RUN opam init --auto-setup RUN opam install --yes ocp-indent RUN ocp-indent --help ENTRYPOINT ["ocp-indent"] CMD ["--help"] I bashed into the image that ran before it via docker run -it <image id> bash -il and ran ocp-indent --help and it ran fine. Not sure why it's failing, thoughts? 回答1: This is a PATH related issue and

2018 OCP 052最新题库及答案-4

匿名 (未验证) 提交于 2019-12-03 00:40:02
4、For which requirement should you configure shared servers? A) accommodating an increasing number of users who run short-duration, infrequent queries in an OLTP environment with limited memory B) accommodating an increasing number of users who run analytical queries in a DSS environment with limited memory C) submitting backup jobs at regular, 24-hour Intervals in an OLTP environment with limited memory D) performing bulk-load operations in a DSS environment with limited memory E) using Recovery Manager (RMAN) to recover a database Answer:A 原文:http://blog.51cto.com/13854012/2139208