ORACLE Interview Questions and Answers
Part:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
(Continued from previous part...)
766. When creating a user, what permissions must you grant to allow them to connect to the database?
Grant the CONNECT to the user.
767. How do you add a data file to a tablespace
ALTER TABLESPACE <tablespace_name> ADD DATAFILE <datafile_name> SIZE
768. How do you resize a data file?
ALTER DATABASE DATAFILE <datafile_name> RESIZE <new_size>;
769. What view would you use to look at the size of a data file?
DBA_DATA_FILES
770. What view would you use to determine free space in a tablespace?
DBA_FREE_SPACE
771. How would you determine who has added a row to a table?
Turn on fine grain auditing for the table.
772. How can you rebuild an index?
ALTER INDEX <index_name> REBUILD;
773. Explain what partitioning is and what its benefit is.
Partitioning is a method of taking large tables and indexes and splitting them into smaller, more manageable pieces.
774. You have just compiled a PL/SQL package but got errors, how would you view the errors?
SHOW ERRORS
775. How can you gather statistics on a table?
The ANALYZE command.
776. How can you enable a trace for a session?
Use the DBMS_SESSION.SET_SQL_TRACE or
Use ALTER SESSION SET SQL_TRACE = TRUE;
777. What is the difference between the SQL*Loader and IMPORT utilities?
These two Oracle utilities are used for loading data into the database. The difference is that the import utility relies on the data being produced by another Oracle utility EXPORT while the SQL*Loader utility allows data to be loaded that has been produced by other utilities from different data sources just so long as it conforms to ASCII formatted or delimited files.
778. Name two files used for network connection to a database.
TNSNAMES.ORA and SQLNET.ORA
(Continued on next part...)
Part:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|