General Flashcards

1
Q

How to I get the endian format for a given OS?

A

select * from v$transportable_platform;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to get the platform information that your database is on?

A
select 
   name, 
   platform_id,
   platform_name 
from 
   v$database;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is needed to transport a tablespace from one platform to another (to a different OS)?

A

Datafiles on different platforms must be in the same endian format (byte ordering).
The pattern for byte ordering in native types is called endianness. There are only two main patterns, big endian and little endian. Big endian means the most significant byte comes first, and little endian means the least significant byte comes first.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or False: A schema object name in Oracle must begin with an alphabetical character and can be 1 to 128 characters long.

A

False. Schema object names cannot be more than 30 characters long.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What keyword is used to specify a Cartesian join?

A

CROSS JOIN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

When writing queries with OUTER JOIN, in which clause should you specify the plus (+) operator?

A

The WHERE clause

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

True or False: Both the CREATE TABLE and ALTER TABLE statements can be used to create a primary key for a table.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In the physical relational model, each entity becomes a and attributes of the entity become . The relationship between the entities in relational design is a constraint.

A

Table, columns, foreign key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the name of the architecture that guarantees high availability of Oracle Database 12c by eliminating single-point-of-server failure?

A

Real Application Clusters (RAC)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The dictionary view has information about all constraints owned by a user. To represent foreign key constraints, the view’s CONSTRAINT TYPE column will have a value of .

A

USER CONSTRAINTS; R

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

True or False: The statement ALTER TABLE EMP MODIFY CONSTRAINT FK EMP ENABLE can be used to enable a foreign key constraint FK EMP on table EMP.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Is the following statement true regarding foreign key constraints? The column datatypes of dependent and referenced tables must match and they cannot be NULL.

A

The statement is False. The columns used in the foreign key constraint can be NULL.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

True or False: When you truncate a table that has enabled foreign key references, the child table is also truncated.

A

True (constraint must be defined with the ON DELETE CASCADE option)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

True or False: The NATURAL and CROSS join types cannot be outer joins.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

When you specify the DESC keyword in the ORDER BY clause, how are the NULL values sorted by default?

A

NULLs appear first. To display NULLs at the end, use NULLS LAST clause.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly