TASK#1

1
Task#1 Data Dictionary Views In this task you will learn how to query some of the most important dictionary views. Use simple SQL statements to query the dictionary views that are listed below: IMPORTANT NOTE: Create a spool file while working in SQL*Plus to save all your work in an SQL session. Step 0: Connect as the DBA user for your database. e.g. SQL> CONNECT sys/password@host AS SYSDBA Step 1: Use describe command to display the structure of the views. Write simple queries to display the content of the following data dictionary views. ALL_, DBA_, and USER_ dictionary views DBA_VIEWS dictionary view DBA_TABLES dictionary view V$PWFILE_USERS view V$PARAMETER V$SYSTEM_PARAMETER view SHOW PARAMETER command V$SGA view V$OPTION view V$PROCESS view V$SESSION view V$VERSION view V$INSTANCE view V$THREAD view V$PARAMETER view V$CONTROLFILE view V$DATABASE view V$DATAFILE view V$LOGFILE view Step 2: Briefly explain what V$SESSION, V$INSTANCE, V$CONTROLFILE and V$LOGFILE views contain.

description

TASK#1

Transcript of TASK#1

  • Task#1 Data Dictionary Views In this task you will learn how to query some of the most important dictionary views. Use

    simple SQL statements to query the dictionary views that are listed below:

    IMPORTANT NOTE:

    Create a spool file while working in SQL*Plus to save all your work in an SQL session.

    Step 0:

    Connect as the DBA user for your database. e.g. SQL> CONNECT sys/password@host AS SYSDBA

    Step 1:

    Use describe command to display the structure of the views.

    Write simple queries to display the content of the following data dictionary views.

    ALL_, DBA_, and USER_ dictionary views

    DBA_VIEWS dictionary view

    DBA_TABLES dictionary view

    V$PWFILE_USERS view

    V$PARAMETER

    V$SYSTEM_PARAMETER view

    SHOW PARAMETER command

    V$SGA view

    V$OPTION view

    V$PROCESS view

    V$SESSION view

    V$VERSION view

    V$INSTANCE view

    V$THREAD view

    V$PARAMETER view

    V$CONTROLFILE view

    V$DATABASE view

    V$DATAFILE view

    V$LOGFILE view

    Step 2:

    Briefly explain what V$SESSION, V$INSTANCE, V$CONTROLFILE and

    V$LOGFILE views contain.