1z0-063 Exam Question 171

You want to capture column group usage and gather extended statistics for better cardinality estimates for the customers table in the SH schema.
Examine the following steps:
1. Issue the SELECTDBMS_STATS. CREATE_EXTENDED_STATS ('SH', 'CUSTOMERS') from dual statement.
2. Execute the dbms_stats.seed_col_usage (null, 'SH', 500) procedure.
3. Execute the required queries on the customers table.
4. Issue the select dbms_stats.reportwcol_usage ('SH', 'customers') from dual statement.
Identify the correct sequence of steps.
  • 1z0-063 Exam Question 172

    You want to migrate your Oracle 11g database as a pluggable database (PDB) in a multitenant container database (CDB).
    The following are the possible steps to accomplish this task:
    1. Place all the user-defined tablespace in read-only mode on the source database.
    2. Upgrade the source database to a 12c version.
    3. Create a new PDB in the target container database.
    4. Perform a full transportable export on the source database with the VERSION parameter set to 12 using the expdp utility.
    5. Copy the associated data files and export the dump file to the desired location in the target database.
    6. Invoke the Data Pump import utility on the new PDB database as a user with the DATAPUMP_IMP_FULL_DATABASE role and specify the full transportable import options.
    7. Synchronize the PDB on the target container database by using the DBMS_PDS.SYNC_ODB function.
    Identify the correct order of the required steps.
  • 1z0-063 Exam Question 173

    You create a table with the period for clause to enable the use of the Temporal Validity feature of Oracle Database 12c.
    Examine the table definition:
    create table employees
    (empno number, salary number,
    deptid number, name varchar2(100),
    period for employee_time);
    Which three statements are true concerning the use of the Valid Time Temporal feature for the EMPLOYEES table?
  • 1z0-063 Exam Question 174

    Evaluate these statements:
    CREATE TABLE purchase_orders
    ( po_idNUMBER(4),
    po_dateTIMESTAMP,
    supplier_idNUM8ER(6),
    po_totalNUMBER(8,2), CONSTRAINT order_pk PRIMARY KEY(po_id))
    PARTITION BY RANGE(po_date)
    ( PARTITIONQ1 VALUES LESS THAN (TO_DATE('01-apr-2007','dd-mm-yyyy')),
    PARTITIONQ2VALUESLESSTHAN(TO_DATE('01-jul-2007','dd-mm-yyyy')),
    PARTITIONQ3VALUESLESSTHAN (TO~DATE('01-oct-2007','dd-mm-yyyy')),
    PARTITIONQ4VALUESLESSTHAN (TO_DATE('Ol-jan-2008','dd-mm-yyyy')));
    CREATE TABLE purchase_order_items
    (po_idNUM3ER(4)NOT NULL,
    product_idNUMBER(6)NOT NULL,
    unit_price NUMBER(8,2),
    quantity NUMBER(8),
    CONSTRAINT po_items_f k
    FOREIGN KEY(po_id)REFERENCES purchase_orders(po_id))
    PARTITION BY REFERENCE(po_items_fk);
    Which two statements are true? (Choose two.)
  • 1z0-063 Exam Question 175

    Your multitenant container database (CDB) CDB1that is running in ARCHIVELOGmode contains two pluggable databases (PDBs), PDB2_1and PDB2_2, both of which are open. RMAN is connected to the target pluggable database PDB2_1.
    RMAN> BACKUP DATABASE PLUS ARCHIVELOG DELETE INPUT;
    Which statement is true about the execution of this command to back up the database?