单选题User A issues the command: LOCK TABLES pets READ; Which command can User B execute against the pets table?()A UPDATE pets…B SELECT….FROM petsC INSERT INTO pets…D ALTER TABLE pets…

题目
单选题
User A issues the command: LOCK TABLES pets READ; Which command can User B execute against the pets table?()
A

UPDATE pets…

B

SELECT….FROM pets

C

INSERT INTO pets…

D

ALTER TABLE pets…


相似考题

1.Leading a dog’s life in America isn’t such a bad thing. Many grocery stores sell pet foods to owners eager to please their pets. In Houston, Texas, dogs can have their dinner delivered to their homes, just like pizza. Well-to-do canines can attend doggy daycare centers while their owners work. Pets can even accompany their owners on vacation. Fancy hotels are beginning to accommodate both man and beast. Furry guests in hotels can enjoy gourmet meals served on fine china and sleep in soft beds.Beneath the furry luxuries, there lies a basic American belief: Pets have a right to be treated well. At least 75 animal welfare organizations exist in America. These provide care and adoption services for homeless and abused animals. Vets can give animals an incredible level of medical care for an incredible price. To pay for the high-tech health care, people can buy health insurance for their pets. And when it’s time to say good -bye, owners can bury their pets in a respectable pet cemetery.The average American enjoys having pets around, and for good reason. Researchers have discovered that interacting with animals lowers a person’s blood pressure. Dogs can offer protection from burglars and unwelcome visitors. Cats can help rid the home of unwanted pests. Little creatures of all shapes and sizes can provide companionship and love. In many cases, having a pet prepares a young couple for the responsibilities of parenthood. Pets even encourage social relationships: They give their owners an appearance of friendliness, and they provide a good topic of conversation.Pets are as basic to American culture as hot dogs or apple pies. To Americans, pets are not just property, but a part of the family. After all, pets are people, too.(1)The word “please” in paragraph 1 line 2 means ().A、to make somebody gladB、to make somebody unhappyC、to invite somebodyD、to treat somebody badly(2)The topic sentence in paragraph 2 is ().A、At least 75 animal welfare organizations exist in AmericaB、Vets can give animals an incredible level of medical care for an incredible priceC、To pay for the high-tech health care, people can buy health insurance for their petsD、Beneath the furry luxuries, there lies a basic American belief: Pets have a right to be treated well(3)“When it’s time to say good-bye” in paragraph 2 line 5 means ().A、when the pet says “good-bye” to the hostB、when the host says “good-bye” to the petC、when the pet diesD、when the pet has to leave(4)Paragraph 3 mainly tells us ().A、every American enjoys having petsB、having pets can do people something goodC、dogs and cats are people’s good friendsD、pets do not encourage social relationships(5)The author writes the last paragraph to show ().A、pets are the same as hot dogs and apple piesB、pets are peopleC、pets are just propertyD、pets are important

更多“单选题User A issues the command: LOCK TABLES pets READ; Which command can User B execute against the pets table?()A UPDATE pets…B SELECT….FROM petsC INSERT INTO pets…D ALTER TABLE pets…”相关问题
  • 第1题:

    You are responsible for a data warehouse application that uses records from an external table to update one of the dimension tables periodically. The records in the external table may contain data for new rows in the dimension table, or for updates to its existing rows. Which type of SQL command would you use to transfer the data from the external table to the dimension table as efficiently as possible?()

    • A、MERGE
    • B、SELECT …CROSS JOIN
    • C、INSERT ALL …SELECT
    • D、CREATE VIEW …CONSTRAINT

    正确答案:A

  • 第2题:

    One of the users in the PROD database, Adams, complains that his update on the table, TRANS, is taking an unusually long time to complete. You find that the table gets locked by another database user before Adams starts his transactions, and you are unable to contact the user holding the table lock. As Adams is updating some crucial rows in the table, he should get the highest priority. Which method would you use to overcome this problem?()

    • A、execute the command, ALTER SESSION KILL .., to kill the blocking session
    • B、execute the DBMS_SESSION.KILL_SESSION procedure to kill the blocking session
    • C、execute the command, ALTER SYSTEM KILL SESSION .., to kill the blocking session
    • D、execute the command, ALTER SESSION UNLOCK .., to release the lock for the blocking session
    • E、execute the command, ALTER SYSTEM UNLOCK SESSION .., to release the lock for the blocking session

    正确答案:C

  • 第3题:

    User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK, or any data definition language (DDL) command: SQL> SELECT ename FROM emp  2 WHERE job=’CLERK’ FOR UPDATE OF empno;  SCOTT has opened another session to work with the database instance.  Which three operations wouldwait when issued in SCOTT’s second session()

    • A、LOCK TABLE emp IN SHARE MODE;
    • B、LOCK TABLE emp IN EXCLUSIVE MODE;
    • C、UPDATE emp SET sal=sal*1.2 WHERE job=MANAGER;
    • D、INSERT INTO emp(empno,ename) VALUES (1289,’Harry’);
    • E、SELECT ename FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno;

    正确答案:A,B,E

  • 第4题:

    User A executes the following command to update the TRANS table)  SQL> UPDATE B.trans SET tr_amt=tr_amt+500 WHERE c_code=’C005’;  Before user A issues a COMMIT or ROLLBACK command, user B executes the following command on the TRANS table:   SQl> ALTER TABLE trans MODIFY (tr_type VARCHAR2 (3));  What would happen in this scenario?()

    • A、The transaction for user A is rolled back.
    • B、The ALTER TABLE command modifies the column successfully.
    • C、The ALTER TABLE command fails due to the resource being busy.
    • D、The ALTER TABLE command waits until user A ends the transaction.

    正确答案:C

  • 第5题:

     A user issues a SELECT command against the Oracle database. Which of the following choices describes a step that Oracle will execute in support of this statement?()

    • A、Acquire locks on table queried 
    • B、Generate redo for statement 
    • C、Fetch data from disk into memory 
    • D、Write changes to disk

    正确答案:C

  • 第6题:

    User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK,or any data definition language (DDL) command:  SQL> SELECT job FROM emp  2  WHERE job=’CLERK’ FOR UPDATE OF empno;  SCOTT has opened another session to work with the database. Which three operations would wait when issued in SCOTT’s second session?()

    • A、LOCK TABLE emp IN SHARE MODE;
    • B、LOCK TABLE emp IN EXCLUSIVE MODE;
    • C、DELETE FROM emp WHERE job=’MANAGER’;
    • D、INSERT INTO emp(empno,ename) VALUES (1289,’Dick’);
    • E、SELECT job FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno;

    正确答案:A,B,E

  • 第7题:

    单选题
    A user issues a SELECT command against the Oracle database. Which of the following choices describes a step that Oracle will execute in support of this statement?()
    A

    Acquire locks on table queried 

    B

    Generate redo for statement 

    C

    Fetch data from disk into memory 

    D

    Write changes to disk


    正确答案: C
    解析: 暂无解析

  • 第8题:

    单选题
    View the Exhibit and examine the parameters. User A executes the following command to update the TRANStable: SQL> UPDATE B.trans SET tr_amt=tr_amt+500 WHERE c_code=’C005’; Before user A issues a COMMIT orROLLBACK command, user B executes the following command on the TRANS table: SQL> ALTER TABLE trans MODIFY (tr_type VARCHAR2(3));  What would happen in this scenario()
    A

    The ALTER TABLE command modifies the column successfully.

    B

    The DDL operation gets higher priority and transaction for user A is rolled back.

    C

    The ALTER TABLE command waits indefinitely until user A ends the transaction.

    D

    The ALTER TABLE command fails after waiting for 60 seconds due to the resource being busy


    正确答案: C
    解析: 暂无解析

  • 第9题:

    单选题
    One of the users in the PROD database, Adams, complains that his update on the table, TRANS, is taking an unusually long time to complete. You find that the table gets locked by another database user before Adams starts his transactions, and you are unable to contact the user holding the table lock. As Adams is updating some crucial rows in the table, he should get the highest priority. Which method would you use to overcome this problem?()
    A

    execute the command, ALTER SESSION KILL .., to kill the blocking session

    B

    execute the DBMS_SESSION.KILL_SESSION procedure to kill the blocking session

    C

    execute the command, ALTER SYSTEM KILL SESSION .., to kill the blocking session

    D

    execute the command, ALTER SESSION UNLOCK .., to release the lock for the blocking session

    E

    execute the command, ALTER SYSTEM UNLOCK SESSION .., to release the lock for the blocking session


    正确答案: B
    解析: 暂无解析

  • 第10题:

    单选题
    Which of the following statements allows USER1 to take away read access on the table ORG.TAB1 from USER2?()
    A

    REVOKE SELECT FROM user2 ON TABLE org.tab1

    B

    REVOKE SELECT ON TABLE org.tab1 FROM user2

    C

    REVOKE READ ACCESS FROM user2 ON TABLE org.tab1

    D

    REVOKE READ ACCESS ON TABLE org.tab1 FROM user2


    正确答案: D
    解析: 暂无解析

  • 第11题:

    单选题
    A few people do keep snakes, which are _____ disgusted, as their pets.
    A

    individually

    B

    drastically

    C

    particularly

    D

    universally


    正确答案: D
    解析:
    universally普遍地。individually个人地。drastically激烈地。particularly尤其。

  • 第12题:

    单选题
    User A issues the command: LOCK TABLES pets READ; Which command can User B execute against the pets table?()
    A

    UPDATE pets…

    B

    SELECT….FROM pets

    C

    INSERT INTO pets…

    D

    ALTER TABLE pets…


    正确答案: A
    解析: 暂无解析

  • 第13题:

    You execute the following command to audit database activities: SQL> AUDIT DROP ANY TABLE BY scott BY SESSION WHENEVER SUCCESSFUL; What is the effect of this command()

    • A、One audit record is created for every successful DROP TABLE command executed in the session of SCOTT.
    • B、One audit record is generated for the session when SCOTT grants the DROP ANY TABLE privilege to otherusers.
    • C、One audit record is created for the whole session if user SCOTT successfully drops one or more tables inhis session.
    • D、One audit record is created for every session of any other user in which a table owned by SCOTT isdropped successfully.
    • E、One audit record is created for every successful DROP TABLE command executed by any user to drop Tables owned by SCOTT

    正确答案:C

  • 第14题:

    The user Sue issues this SQL statement: GRANT SELECT ON sue. EMP TO alice WITH GRANT OPTION; The user Alice issues this SQL statement: GRANT SELECT ON sue. EMP TO reena WITH GRANT OPTION; The user Reena issues this SQL statement: GRANT SELECT ON sue. EMP TO timber; The user Sue issues this SQL statement: REVOKE select on sue. EMP FROM alice; For which users does the revoke command revoke SELECT privileges on the SUE.EMP table?()

    • A、Alice only
    • B、Alice and Reena
    • C、Alice, Reena, and Timber
    • D、Sue, Alice, Reena, and Timber

    正确答案:C

  • 第15题:

    User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK, orany data definition language (DDL) command: SQL> SELECT ename FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno; SCOTT has opened another session to work with the database instance.  Which three operations would waitwhen issued in SCOTT’s second session()

    • A、LOCK TABLE emp IN SHARE MODE;
    • B、LOCK TABLE emp IN EXCLUSIVE MODE;
    • C、UPDATE emp SET sal=sal*1.2 WHERE job=ANAGER?UPDATE emp SET sal=sal*1.2 WHERE job=?ANAGER?
    • D、INSERT INTO emp(empno,ename) VALUES (1289,’Harry’);
    • E、SELECT ename FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno

    正确答案:A,B,E

  • 第16题:

    The user HR owns the EMP table. The user HR grants privileges to the user SCOTT by using this command:  SQL> GRANT SELECT,INSERT,UPDATE ON emp TO scott WITH GRANT OPTION; The user SCOTT executes this command to grant privileges to the user JIM: SQL> GRANT SELECT,INSERT,UPDATE ON hr.emp TO jim;  Now, the user HR decides to revoke privileges from JIM using this command: SQL> REVOKE SELECT,INSERT,UPDATE ON emp FROM jim; Which statement is true after HR issues the REVOKE command()

    • A、The command fails because SCOTT still has privileges.
    • B、The command succeeds and privileges are revoked from JIM.
    • C、The command fails because HR cannot revoke the privileges from JIM.
    • D、The command succeeds and only HR has the privilege to perform the SELECT, INSERT, and UPDATEoperations on the EMP table.

    正确答案:C

  • 第17题:

    User A issues the command: LOCK TABLES pets READ; Which command can User B execute against the pets table?()

    • A、UPDATE pets…
    • B、SELECT….FROM pets
    • C、INSERT INTO pets…
    • D、ALTER TABLE pets…

    正确答案:B

  • 第18题:

    单选题
    You execute the following command to audit database activities: SQL> AUDIT DROP ANY TABLE BY scott BY SESSION WHENEVER SUCCESSFUL; What is the effect of this command()
    A

    One audit record is created for every successful DROP TABLE command executed in the session of SCOTT.

    B

    One audit record is generated for the session when SCOTT grants the DROP ANY TABLE privilege to otherusers.

    C

    One audit record is created for the whole session if user SCOTT successfully drops one or more tables inhis session.

    D

    One audit record is created for every session of any other user in which a table owned by SCOTT isdropped successfully.

    E

    One audit record is created for every successful DROP TABLE command executed by any user to drop Tables owned by SCOTT


    正确答案: B
    解析: 暂无解析

  • 第19题:

    单选题
    View the Exhibit and examine the parameters. User A executes the following command to update the TRANS table: SQL> UPDATE B.trans SET tr_amt=tr_amt+500 WHERE c_code=’C005’;  Before user A issues a COMMIT or ROLLBACK command, user B executes the following command onthe TRANS table:  SQL> ALTER TABLE trans MODIFY (tr_type VARCHAR2(3));  What would happen in this scenario()
    A

    The ALTER TABLE command modifies the column successfully.

    B

    The DDL operation gets higher priority and transaction for user a is rolled back.

    C

    The ALTER TABLE command waits indefinitely until user a ends the transaction.

    D

    The ALTER TABLE command fails after waiting for 60 seconds due to the resource being busy.


    正确答案: B
    解析: 暂无解析

  • 第20题:

    单选题
    The user Sue issues this SQL statement: GRANT SELECT ON sue. EMP TO alice WITH GRANT OPTION; The user Alice issues this SQL statement: GRANT SELECT ON sue. EMP TO reena WITH GRANT OPTION; The user Reena issues this SQL statement: GRANT SELECT ON sue. EMP TO timber; The user Sue issues this SQL statement: REVOKE select on sue. EMP FROM alice; For which users does the revoke command revoke SELECT privileges on the SUE.EMP table?()
    A

    Alice only

    B

    Alice and Reena

    C

    Alice, Reena, and Timber

    D

    Sue, Alice, Reena, and Timber


    正确答案: D
    解析: 暂无解析

  • 第21题:

    单选题
    You execute the following command in your Certkiller .com production database to change the width of the CUST_NAME column of the CUSTOMERS table: ALTER TABLE customers  MODIFY (cust_nameVARCHAR2 (40)) /  When you execute the command, it displays the following error message:  ERROR at line 1:  ORA-00054: resource busy and acquire with NOWAIT specified  What could be the reason for the error message?()
    A

    The database instance is not available.

    B

    The ALTER TABLE command does not have WAIT option

    C

    The table or a row in the table is currently locked by another user session.

    D

    The database instance is busy processing other user sessions commands.

    E

    The CUSTOMERS table has no long running query active at the time when this request is made.

    F

    The server process executing the ALTER TABLE command is busy with another command execution


    正确答案: C
    解析: 暂无解析

  • 第22题:

    单选题
    The user HR owns the EMP table. The user HR grants privileges to the user SCOTT by using this command:  SQL> GRANT SELECT,INSERT,UPDATE ON emp TO scott WITH GRANT OPTION; The user SCOTT executes this command to grant privileges to the user JIM: SQL> GRANT SELECT,INSERT,UPDATE ON hr.emp TO jim;  Now, the user HR decides to revoke privileges from JIM using this command: SQL> REVOKE SELECT,INSERT,UPDATE ON emp FROM jim; Which statement is true after HR issues the REVOKE command()
    A

    The command fails because SCOTT still has privileges.

    B

    The command succeeds and privileges are revoked from JIM.

    C

    The command fails because HR cannot revoke the privileges from JIM.

    D

    The command succeeds and only HR has the privilege to perform the SELECT, INSERT, and UPDATEoperations on the EMP table.


    正确答案: D
    解析: 暂无解析

  • 第23题:

    单选题
    The ORDERS table belongs to the user OE. OE has granted the SELECT privilege on the ORDERS table to the user HR.Which statement would create a synonym ORD so that HR can execute the following query successfully?()
    A

    CREATE SYNONYM ord FOR orders; This command is issued by OE 

    B

    CREATE PUBLIC SYNONYM ord FOR orders; This command is issued by OE 

    C

    CREATE SYNONYM ord FOR oe.orders; This command is issued by the database administrator 

    D

    CREATE PUBLIC SYNONYM ord FOR oe.orders; This command is issued by the database administrator 


    正确答案: A
    解析: 暂无解析

  • 第24题:

    单选题
    User A executes the following command to update the TRANS table)  SQL> UPDATE B.trans SET tr_amt=tr_amt+500 WHERE c_code=’C005’;  Before user A issues a COMMIT or ROLLBACK command, user B executes the following command on the TRANS table:   SQl> ALTER TABLE trans MODIFY (tr_type VARCHAR2 (3));  What would happen in this scenario?()
    A

    The transaction for user A is rolled back.

    B

    The ALTER TABLE command modifies the column successfully.

    C

    The ALTER TABLE command fails due to the resource being busy.

    D

    The ALTER TABLE command waits until user A ends the transaction.


    正确答案: B
    解析: 暂无解析