General Flashcards
How to I get the endian format for a given OS?
select * from v$transportable_platform;
How to get the platform information that your database is on?
select name, platform_id, platform_name from v$database;
What is needed to transport a tablespace from one platform to another (to a different OS)?
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.
True or False: A schema object name in Oracle must begin with an alphabetical character and can be 1 to 128 characters long.
False. Schema object names cannot be more than 30 characters long.
What keyword is used to specify a Cartesian join?
CROSS JOIN
When writing queries with OUTER JOIN, in which clause should you specify the plus (+) operator?
The WHERE clause
True or False: Both the CREATE TABLE and ALTER TABLE statements can be used to create a primary key for a table.
True
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.
Table, columns, foreign key
What is the name of the architecture that guarantees high availability of Oracle Database 12c by eliminating single-point-of-server failure?
Real Application Clusters (RAC)
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 .
USER CONSTRAINTS; R
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.
True
Is the following statement true regarding foreign key constraints? The column datatypes of dependent and referenced tables must match and they cannot be NULL.
The statement is False. The columns used in the foreign key constraint can be NULL.
True or False: When you truncate a table that has enabled foreign key references, the child table is also truncated.
True (constraint must be defined with the ON DELETE CASCADE option)
True or False: The NATURAL and CROSS join types cannot be outer joins.
True
When you specify the DESC keyword in the ORDER BY clause, how are the NULL values sorted by default?
NULLs appear first. To display NULLs at the end, use NULLS LAST clause.