You created the ORDERS table in your database by using the following code:   SQL CREATE TABLE ORDERS (ORDER_DATE TIMESTAMP(0) WITH TIME ZONE);   Then, you inserted data in the ORDERS table and saved it by issuing the following statements:SQL INSERT INTO O

题目

You created the ORDERS table in your database by using the following code:   SQL> CREATE TABLE ORDERS (ORDER_DATE TIMESTAMP(0) WITH TIME ZONE);   Then, you inserted data in the ORDERS table and saved it by issuing the following statements:SQL> INSERT INTO ORDERS VALUES(’18-AUG-00 10:26:44 PM America/New_York’);   SQL> INSERT INTO ORDERS VALUES(’23-AUG-02 12:46:34 PM America/New_York’);   SQL> COMMIT;   Next, you issued the following statement to change the time zone for the database:   SQL> ALTER DATABASE SET TIME_ZONE=’Europe/London’;   What will be the result of executing the above statement?()  

  • A、 The statement will fail.
  • B、 The statement will be executed successfully, and the new time zone will be set for the database.
  • C、 The statement will be executed successfully, but the new time zone will be set for the current session.
  • D、The statement will be executed successfully, but the new time zone will neither be set for the database nor for a specific session.
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

On your Oracle 12c database, you invoked SQL *Loader to load data into the EMPLOYEES table in the HR schema by issuing the following command: $> sqlldr hr/hr@pdb table=employees Which two statements are true regarding the command?()

  • A、It succeeds with default settings if the EMPLOYEES table belonging to HR is already defined in the database.
  • B、It fails because no SQL *Loader data file location is specified.
  • C、It fails if the HR user does not have the CREATE ANY DIRECTORY privilege.
  • D、It fails because no SQL *Loader control file location is specified.

正确答案:A,C

第2题:

Examine the command that is used to create a table:  SQL> CREATE TABLE orders(oid NUMBER(6) PRIMARY KEY, odate DATE, ccode NUMBER(6), oamt NUMBER(10,2)) TABLESPACE users;  Which two statements are true about the effect of the above command) ()

  • A、A CHECK constraint is created on the OID column.
  • B、A NOT NULL constraint is created on the OID column.
  • C、The ORDERS table is the only object created in the USERS tablespace.
  • D、The ORDERS table and a unique index are created in the USERS tablespace.
  • E、The ORDERS table is created in the USERS tablespace and a unique index is created on the OIDcolumn in the SYSTEM tablespace.

正确答案:B,D

第3题:

Examine the SQL statements that creates ORDERS table:For which columns would an index be automatically created when you execute the above SQL statement? ()

A. SER_NO

B. ORDER_ID

C. STATUS

D. PROD_ID

E. ORD_TOTAL

F. Composite index on ORDER_ID and ORDER_DATE


参考答案:A, F

第4题:

Your Oracle10g database contains a table with a TIMESTAMP TO LOCAL TIME ZONE column. There are about two hundred column values for the column. You issued the following statement:   SQL> ALTER DATABASE SET TIME_ZONE =’Europe/London’;   What will be the result of issuing the above statement?()

  • A、 The statement will be executed successfully, and a new time zone will be set for the database.
  • B、 The statement will be executed successfully, but a new time zone will not be set for the database.
  • C、 The statement will not be executed successfully because the SET TIME_ZONE clause can be used only with the ALTER SESSION statement.
  • D、 The statement will not be executed successfully because the ALTER DATABASE SET TIME_ZONE statement is used only when the database contains no table with the TIMESTAMP TO LOCAL TIME ZONE column.

正确答案:D

第5题:

Users in your production database complain that they are getting the following error message while trying to insert rows into the ORDERS table:  ERROR at line 1:  ORA-01654: unable to extend index USERS.ORDERS_IND by 8 in tablespace INDEXES.While investigating, you find that the INDEXES tablespace has run out of space and there is no more free space on the disk where the data files are available. Which two actions could you perform to overcome this error without affecting the queries that are currently being executed?()

  • A、 Drop and re-create the inbox.
  • B、 Coalesce the ORDERS_IND index.
  • C、 Coalesce the INDEXES tablespace.
  • D、 Drop and re-create the ORDERS table.
  • E、 Rebuild the index online and move it to another tablespace.

正确答案:B,E

第6题:

Examine the following commands executed in your database: SQL> ALTER SESSION RECYCLEBIN=ON; Session altered  SQL> CREATE TABLE emp TABLESPACE tbsfd AS SELECT * FROM hr.employees;  Table created.  Further, you executed the following command to drop the table:  SQL> DROP TABLE emp; Table dropped.  What happens in this scenario? ()

  • A、The table is moved to the SYSAUX tablespace.
  • B、The table is moved to the SYSTEM tablespace.
  • C、The table is removed from the database permanently.
  • D、The table is renamed and remains in the TBSFD tablespace.

正确答案:D

第7题:

Examine the SQL statements that creates ORDERS table: CREATE TABLE orders (SER_NO NUMBER UNIQUE, ORDER_ID NUMBER, ORDER_DATE DATE NOT NULL STATUS VARCHARD2(10) CHECK (status IN ('CREDIT','CASH')), PROD_ID_NUMBER REFERENCES PRODUCTS(PRODUCT_ID), ORD_TOTAL NUMBER, PRIMARY KEY (order id, order date)); For which columns would an index be automatically created when you execute the aboveSQL statement? ()

  • A、SER_NO
  • B、ORDER_ID
  • C、STATUS
  • D、PROD_ID
  • E、ORD_TOTAL
  • F、Composite index on ORDER_ID and ORDER_DATE

正确答案:A,F

第8题:

Your company uses a SQL Server 2005 database. This database contains a trigger named trg_InsertOrders, which fires when order data is inserted into the Orders table. The trigger is responsible for ensuring that a customer exists in the Customers table before data is inserted into the Orders table. You need to configure the trigger to prevent it from firing during the data import process. You must accomplish this goal while using the least amount of administrative effort.  Which two Transact-SQL statements can you use to achieve this goal?()

  • A、 ALTER TABLE OrdersDISABLE TRIGGER trg_InsertOrders 
  • B、 DROP TRIGGER trg_InsertOrders 
  • C、 DISABLE TRIGGER trg_InsertOrders ON Orders 
  • D、 ALTER TRIGGER trg_InsertOrders  ON Orders NOT FOR REPLICATION 
  • E、 sp_settriggerorder@triggername= 'trg_InsertOrders', @order='None'

正确答案:A,C

第9题:

You query the ORDERS table and discover that order number 1101 is missing. One of your reports, generated at 5:00 A.M. on April 23, 2005 using Oracle Reports, includes this order number in the output. You have inserted 100 new orders into the ORDERS table since generating this report. Which flashback technology would you use to recover order number 1101 into the ORDERS table without losing the 100 orders that you added after the report was generated?()  

  • A、 Flashback Table
  • B、 Flashback Query
  • C、Flashback Version Query
  • D、 Flashback Transaction Query

正确答案:B

第10题:

On your Oracle Database, you issue the following commands to create indexes: SQL > CREATE INDEX oe.ord_customer_ix1 ON oe.orders (customer_id, sales_rep_id) INVISIBLE; SQL> CREATE BITMAP INDEX oe.ord_customer_ix2 ON oe.orders (customer_id, sales_rep_id); Which two statements are true?()

  • A、Only the ORD_CUSTOMER_IX1 index created.
  • B、Both the indexes are updated when a row is inserted, updated, or deleted in the ORDERS table.
  • C、Both the indexes are created: however, only ORD_CUSTOMERS_IX1 is used by the optimizer for queries on the ORDERS table.
  • D、The ORD_CUSTOMER_IX1 index is not used by the optimizer even when the OPTIMIZER_USE_INVISIBLE_INDEXES parameters is set to true.
  • E、Both the indexes are created and used by the optimizer for queries on the ORDERS table.
  • F、Both the indexes are created: however, only ORD_CUSTOMERS_IX2 is used by the optimizer for queries on the ORDERS table.

正确答案:B,F

更多相关问题