Evaluate the following block of code:   BEGIN DBMS_NETWORK_A

题目
单选题
Evaluate the following block of code:   BEGIN DBMS_NETWORK_ACL_ADMIN.CREATE_ACL ( acl =>  ’mycompany-com-permissions.xml’, principal => ’ACCT_MGR’, is_grant => TRUE, privilege => ’connect’);  DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL ( acl => ’mycompany-com-permissions.xml’, host => ’*.mycompany.com’); END;   What is the outcome of the above code?()
A

 It produces an error because a fully qualified host name needs to be specified.

B

 It produces an error because the range of ports associated with the hosts has not been specified.

C

 It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT and  RESOLVE privileges.

D

 It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT privilege but not the RESOLVE privilege.

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

As children enter adolescents, they begin to do the following except ______.


正确答案:C
本题属细节题。文章第三句已明确点明。

第2题:

Which expressions will evaluate to true if preceded by the following code?()   String a = "hello";   String b = new String(a);   String c = a;   char[] d = { ’h’, ’e’, ’l’, ’l’, ’o’ };  

  • A、(a == "Hello")
  • B、(a == b)
  • C、(a == c)
  • D、a.equals(b)
  • E、a.equals(d)

正确答案:C,D

第3题:

Which traversal method for a binary tree does the following Pascal code illustrate? Procedure traverse(p:pointer); Begin Ifp<>NIL Then begin Traverse (p^.left); Process(p); Traverse(p^.right) End; End_

A.pre_order

B.middle_order

C.none

D.last_order


正确答案:B

第4题:

Where can you add your own PL/SQL code in relation-handling triggers?()

  • A、Before the "End default relation program section" comment. 
  • B、After the "Begin default relation program section" comment. 
  • C、Before the "Begin default relation program section" comment. 
  • D、It is not possible to modify the relation-handling code that Forms automatically creates for relations.

正确答案:C

第5题:

Which of the following will begin a new unit of work?()

  • A、The CONNECT statement
  • B、The first FETCH of a cursor
  • C、The BEGIN TRANSACTION statement
  • D、The first executable SQL statement

正确答案:D

第6题:

Which traversal method for a binary tree does the following Pascal code illustrate? procedure traverse (p:pointer); begin if p<>nil then begin traverse(p ↑ .left); process(p); traverse(p ↑ .right); end end;

A.preorder

B.postorder

C.reorder

D.inorder


正确答案:D

第7题:

You are creating a new JSP page and you need to execute some code that acts when the page is firstexecuted, but only once. Which three are possible mechanisms for performing this initialization code?()

  • A、In the init method.
  • B、In the jspInit method.
  • C、In the constructor of the JSP’s Java code.
  • D、In a JSP declaration, which includes an initializer block.
  • E、In a JSP declaration, which includes a static initializer block.

正确答案:B,D,E

第8题:

Evaluate the following block of code:What is the outcome of the above code?()

A. It produces an error because a fully qualified host name needs to be specified.

B. It produces an error because the range of ports associated with the hosts has not been specified.

C. It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT and RESOLVE privileges.

D. It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT privilege but not the RESOLVE privilege.


参考答案:C

第9题:

Given that a static method doIt() in a class Work represents work to be done, what block of code will succeed in starting a new thread that will do the work?   CODE BLOCK a:   Runnable r = new Runnable() {   public void run() {   Work.doIt();   }   };   Thread t = new Thread(r);   t.start();   CODE BLOCK b:   Thread t = new Thread() {  public void start() {   Work.doIt();  }  };   t.start();   CODE BLOCK c:   Runnable r = new Runnable() {   public void run() {   Work.doIt();   }   };   r.start();  CODE BLOCK d:   Thread t = new Thread(new Work());   t.start();   CODE BLOCK e:   Runnable t = new Runnable() {   public void run() {   Work.doIt();   }   };   t.run();  

  • A、Code block a.
  • B、Code block B.
  • C、Code block c.
  • D、Code block d.
  • E、Code block e.

正确答案:A

第10题:

Evaluate the following code:   SQL>VARIABLE task_name VARCHAR2(255); SQL>VARIABLE sql_stmt VARCHAR2(4000); SQL>BEGIN :sql_stmt := ’SELECT COUNT(*) FROM customers  WHERE cust_state_province =’’CA’’’; :task_name := ’MY_QUICKTUNE_TASK’;  DBMS_ADVISOR.QUICK_TUNE(DBMS_ADVISOR.SQLACCESS_ADVISOR,  :task_name, :sql_stmt);  END;   What is the outcome of this block of code?()  

  • A、 It creates a task and workload, and executes the task.
  • B、 It creates a task and workload but does not execute the task.
  • C、 It produces an error because a template has not been created.
  • D、 It produces an error because the SQL Tuning Set has not been created.

正确答案:A

更多相关问题