wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

شابتر 5 قواعد البيانات

Total questions: 68

Worksheet time: 37mins

Name
Class
Date
1.

The primary means of communicating with Oracle Database is by .......................................................

a)

submitting Java Statements

b)

submitting SQL Statements

c)
PL/SQL
2.

is the primary command line interface to your Oracle database.

a)
Toad for Oracle
b)
PL/SQL
c)
Oracle SQL Developer
d)
SQL*Plus
3.

Connecting to the Database with SQL*Plus: When you connect with SQL*Plus, you are connecting to

a)
a MySQL Database instance
b)
a PostgreSQL Database instance
c)
a Microsoft SQL Server instance
d)

the Oracle instance.

4.

When you connect with SQL*Plus, you are connecting to the Oracle instance

a)

connecting to the SQL database.

b)

connecting to the MySQL instance.

c)

connecting to the PostgreSQL server.

d)

Connecting to the Database with SQL*Plus

5.

What are several ways to submit SQL statements and commands to Oracle Database?

a)
Using Excel to run SQL queries
b)
Submitting SQL commands via email
c)

Directly

d)

SQL*Plus

e)

Indirectly

6.

using the command-line interface of SQL*Plus.

a)

Directly

b)

Indirectly

7.

a graphical user interface: such as

a)

Oracle Enterprise Manager Database Express

b)
Mobile apps
c)

Oracle Enterprise Manager Cloud Control

d)
Linux distributions
8.

Oracle Enterprise Manager Database Express

a)

EM Express

b)

Cloud Control

9.

Oracle Enterprise Manager Cloud Control

a)

EM Express

b)

Cloud Control

10.

Oracle Enterprise Manager Database Express (EM Express) or Oracle Enterprise Manager Cloud Control (Cloud Control) With these tools, you use a graphical interface to

a)
use a graphical interface to develop applications
b)

to use a command line interface to monitor Oracle databases

c)

to administer the database, and the tool submits SQL statements and commands behind the scenes.

11.

Directly, using SQL Developer: Developers use SQL Developer to

a)

to create and test database schemas

b)

use it for database administration tasks.

c)

to create and test applications

d)
create web applications
12.

Directly, using SQL Developer: Developers use

a)
PostgreSQL
b)
MySQL Workbench
c)
Oracle Database
d)
SQL Developer
13.

Oracle Database also supports a superset of SQL, which includes commands for

a)
data retrieval and storage
b)

shutting down

c)
network security protocols
d)

starting up

e)

modifying database configuration

14.

Oracle Database supports a superset of SQL

a)

True

b)

False

15.

Oracle Database not supports a superset of SQL

a)

True

b)

False

16.

You use SQL*Plus to

a)
create and design web applications
b)
manage user accounts and permissions
c)

create and manage users

d)

start up and shut down the database

e)

set database initialization parameters

17.

You use SQL*Plus to

a)
create and design web applications
b)
manage user accounts and permissions
c)

insert and update data, run SQL queries

d)

create and alter database objects (such as tables and indexes)

18.

Before you can submit SQL statements and commands, you must connect to the database. With ..............................................

a)
a spreadsheet application
b)
a web browser
c)
a text editor
d)

SQL*Plus

19.

Before you can submit SQL statements and commands, you must connect to the database. With SQL*Plus

a)

True

b)

False

20.

With SQL*Plus, you can connect ................................. or .............................................

a)

locally

b)

remotely

c)

only remotely

21.

means connecting to an Oracle database running on the same computer on which you are running SQL*Plus.

a)

Connecting locally

b)

Connecting remotely

22.

means connecting over a network to an Oracle database that is running on a remote computer. Such a database is referred to as a remote database.

a)

Connecting locally

b)

Connecting remotely

23.

The SQL*Plus executable on the local computer is provided by

a)
Oracle SQL Developer
b)
MySQL Workbench
c)

an Oracle Client installation

d)

a full Oracle Database installation

e)

an Instant Client installation

24.

is a collection of processes and memory, and a set of disk files that contain user data and system data.

a)
Hardware Interface
b)
Application Software
c)
File System
d)

Oracle Database instance

25.

Take the necessary action on your platform to open a window into which you can enter operating system commands

a)

Open a Command Window

b)

Set Operating System Environment Variables

26.

Depending on your platform, you may have to set environment variables before starting SQL*Plus, or at least verify that they are set properly.

a)

Open a Command Window

b)

Set Operating System Environment Variables

27.

Submit the SQL*Plus CONNECT command to initially connect to the Oracle database instance or at any time to reconnect as a different user.

a)

Start SQL*Plus: Start SQL*Plus.

b)

Submit the SQL*Plus CONNECT Command

28.

to initially connect to the Oracle database instance or at any time to reconnect as a different user.

a)
Use a direct SQL command without credentials.
b)

Access command

c)

CONNECT command

29.

Each instance has an

a)
features or characteristics
b)

elements

c)

variables

d)

instance ID

30.

also known as a system ID (SID)

a)
System Identifier
b)
SID Code
c)
System Reference ID
d)

instance ID

31.

Because there can be multiple Oracle instances on a host computer, each with its own set of data files, you must identify ...............................................

a)
the default Oracle instance for all data files
b)
the backup location of the data files
c)
the configuration settings for the Oracle server
d)

the instance to which you want to connect

32.

can not be multiple Oracle instances on a host computer

a)

True

b)

False

33.

can be multiple Oracle instances on a host computer

a)

True

b)

False

34.

you identify the instance by setting operating system environment variables.

a)

For a local connection

b)

For a remote connection

c)

For both local and remote connections

35.

you must set environment variables to help the operating system find the SQL*Plus executable and to provide the executable with a path to its support files and scripts.

a)

For a local connection

b)

For a remote connection

c)

For both local and remote connections

36.

you identify the instance by specifying a network address and a database service name.

a)

For a local connection

b)

For a remote connection

c)

For both local and remote connections

37.

Why do we set environment variables when using SQL*Plus?

a)

To connect to the internet

b)

To help the OS find SQL*Plus and its files

38.

Environment variables are needed for:

a)

Local connections only

b)

Remote connections only

c)

Both local and remote connections

39.

What does the operating system need to find using environment variables?

a)

Oracle passwords

b)

SQL*Plus executable

40.

What do environment variables provide to SQL*Plus?

a)

Memory

b)

A path to support files and scripts

c)

Passwords

41.

pluggable databases (PDBs), such as .....................................................

a)

redo log files

b)

archived redo log files

c)

control files

42.

To manage objects that are shared by the multitenant container database (CDB) and its pluggable databases (PDBs) connect to the

a)
PDB
b)
Database Instance
c)
Shared Storage
d)

CDB root

43.

is a collection of container databases where each container is a collection of schemas, objects, and related structures.

a)
Single tenant architecture
b)

A multitenant container database (CDB)

c)
Database clustering
d)
Data warehousing
44.

is a user-created container that stores the data and code for an application, such as a human resources application.

a)
library
b)
package
c)

A pluggable database (PDB)

d)
component
45.

From which perspective is the PDB appears to be a logically separate, independent database?

a)

user or application

b)

operating system perspective

46.

From which perspective is the CDB is the database

a)

user or application

b)

operating system perspective

47.

Objects such as tablespaces, data files, or temp files can be created in the ................................................. or ...........................................

a)

PDB only

b)

CDB root only

c)

CDB root or a PDB

48.

To manage such objects, connect to the ..............................................................................

a)

container that owns the object

b)

file system that owns the object

c)

local storage that owns the object

d)

network drive that owns the object

49.

connecting to the database means connecting to the CDB root.

a)

True

b)

False

50.

on most platforms, you must set the environment variables ....................................... and ............................................

a)
SYSTEM and FILE
b)
TEMP and CONFIG
c)
USER and GROUP
d)

ORACLE_SID and ORACLE_HOME

51.

you must configure the PATH environment variable to include the .......................................................

a)
directory of the source files
b)
directory of the libraries
c)

ORACLE_HOME/bin directory

d)
directory of the backups
52.

set environment variables by entering operating system commands

a)

On the UNIX and Linux platforms

b)

On the Windows platform

53.

Oracle Universal Installer (OUI) automatically assigns values to ORACLE_HOME and ORACLE_SID in the Windows registry.

a)

On the UNIX and Linux platforms

b)

On the Windows platform

54.

For all platforms, when switching between instances with different Oracle homes, you must change the

a)
database configurations
b)

ORACLE_HOME environment variable

c)
user permissions
d)
network settings
55.

If multiple instances share the same Oracle home, you must change

a)
the database version
b)
the listener configuration
c)
the network settings
d)

only ORACLE_SID when switching instances

56.

setenv

a)

UNIX (C Shell)

b)

Linux (Bash Shell)

57.

export

a)

UNIX (C Shell)

b)

Linux (Bash Shell)

58.

to Start SQL*Plus we use:

a)

Ensure that the PATH environment variable contains $ORACLE_HOME /bin.

b)

Change directory to $ORACLE_HOME /bin. (Ensure that the PATH environment variable contains a dot (“.”))

c)

Change directory to $ORACLE_HOME /bin. (Ensure that the PATH environment variable not contains a dot (“.”))

59.

Start SQL*Plus

a)

Ensure that the PATH environment variable contains $ORACLE_HOME /bin.

b)

Change directory to $ORACLE_HOME /bin. (Ensure that the PATH environment variable contains a dot (“.”))

c)

Enter the following command (case-sensitive on UNIX and Linux)

d)

You can also run the sqlplus command by specifying its complete path: $ORACLE_HOME/bin/sqlplus /nolog

60.

sqlplus /nolog case-sensitive on UNIX and Linux

a)

True

b)

False

61.

This command is used to connect to the CDB root or a particular PDB

a)
CONNECT command
b)
ALTER command
c)
SELECT command
d)
DISCONNECT command
62.

SQL*Plus prompts for the SYSTEM user ..................................................

a)
prompts for a password
b)
prompts for a database name
c)
prompts for a command
d)
prompts for a username
63.

connects to a local database as user SYSTEM

a)

connect system

b)

connect sys as sysdba

64.

connects to a local database as user SYS with the SYSDBA privilege

a)

connect system

b)

connect sys as sysdba

65.

connects to a local database as user SYS with the

a)

SYSDBA privilege

b)

SYSTEM

66.

connects to a local database as user SYSBACKUP with the SYSBACKUP privilege

a)

connect sysbackup as sysbackup

b)

connect / as sysdba

c)

connect sys@sales_pdb as sysdba

67.

connects locally to a pluggable database (PDB) named sales_pdb as user SYS with the SYSDBA privilege.

a)

connect sysbackup as sysbackup

b)

connect / as sysdba

c)

connect sys@sales_pdb as sysdba

68.

connects locally with the SYSDBA privilege with operating system authentication.

a)

connect sysbackup as sysbackup

b)

connect / as sysdba

c)

connect sys@sales_pdb as sysdba