1
:سواالت دیتابیس
.هدف از نارمل سازی یک دیتابیس را شرح دهید .1
. را توضیح دهیدControl and Redo Log Files .2
Control files
The Control File of the database is a binary file that contains a great deal of
database information. The control file contains the database name, data about
the database log files. Oracle cannot function without valid control files
Redo logs are known as transaction journals. Each transaction is recorded
in the redo logs. Redo logs are used in a serial fashion where each
transaction is queued up in the redo log buffers and being written one at a
time into the redo logs. Redo logs as a general rule should be switched
about every thirty minutes. However, you may need to adjust the time up or
down depending on the importance of your data.(coursehero) With modern
Oracle redo log mirroring and with disk array mirroring and various forms of
online disk repair and replacement, the occurrence of redo log corruptions
has dropped to practically zero, so size based on the number of archive
logs you want to apply should the database fail just before your next
backup. (dba-oracle)
. را مفصل تشریح نماییدRMAN Backup .3
Oracle RMAN (Oracle Recovery Manager) is a utility built
into Oracle databases to automate backup and recovery; it includes
features not available in third-party backup tools. RMAN was introduced in
Oracle release 8.0.
. کدام ها اند هریک را نام گرفته تشریح کنیدDML statements .4
. به چند دسته تقسیم میگردد با مثال واضح سازیدSub query .5
Types of Subqueries
Single Row Sub Query: Sub query which returns single row output. They
mark the usage of single row comparison operators, when used in WHERE
conditions.
SELECT first_name, salary, department_id
2
FROM employees
WHERE salary = (SELECT MIN (salary)
FROM employees);
Multiple row sub query: Sub query returning multiple row output. They
make use of multiple row comparison operators like IN, ANY, ALL. There can
be sub queries returning multiple columns also.
SELECT first_name, department_id
FROM employees
WHERE department_id IN (SELECT department_id
FROM departments
WHERE LOCATION_ID = 100)
. را توضیح داده سپس اقسام آنرا بنوسیدJoin .6
A JOIN clause is used to combine rows from two or more tables, based on a
related column between them.
(INNER) JOIN: Returns records that have matching values in both tables
LEFT (OUTER) JOIN: Return all records from the left table, and the
matched records from the right table
RIGHT (OUTER) JOIN: Return all records from the right table, and the
matched records from the left table
FULL (OUTER) JOIN
. چیست؟ تشریح نماییدTrigger .7
را بنوسید که که لیست کارمندان را نشان دهد که که وظایف شان باQuery .8
.وظیفه احمد در جدول کارمندان یکسان باشد
. را تشریح کرده و اقسام آنرا نیز توضیح دهیدView .9
3
Types of views in SQL: horizontal,
vertical, row and column, grouped
by, joined
Types of views in SQL:
1) Horizontal view:
2) Vertical view:
3) Row and column views:
4) Grouped by view:
5) Joined view:
. چیست مفصل شرح دهیدData dictionary .10
: مفاهیم ذیل را توضیح دهید. 11
Attribute)د Candidate Key)ج Weak Entity )ب Null Value )الف
) را به شکل دیاگرام صرف رسم نماییدDatabase Architecture( اجزای اصلی .11
Conceptual - represents all business entities.
Logical - represents the logic of how entities are related.
Physical - the realization of the data mechanisms for a specific type of
functionality.