1. What will be the output for this query:
select 1 from dual minus select a from dual;

This will produce Error:
Expression must have same datatype as corresponding expression

3. Explain What are transportable table spaces and the need to use them?

Transportable tablespaces are the fastest way for moving large volume of data between two oracle databases. We can use the transportable tablespaces feature to copy a set of tablespaces from one oracle database to another. Moving data using transportable tablespaces is much faster than performing either an export/import or unload/load the same data.

4. What are transportable table spaces and the need to use them?

Transportable tablespaces are the fastest way for moving large volume of data between two oracle databases. We can use the transportable tablespaces feature to copy a set of tablespaces from oneoracle database to another. Moving data using transportable tablespaces is much faster than performing either an export/import or unload/load the same data.

13. Explain What are the benefits of system-managed locally managed tablespace?

Locally Managed Tablespaces Include the following Benefits:

1.Free extents are managed in the Tablespace.
2.Bitmap is used to record free extents.
3.Each bit corresponds to a block or a group of block.
4.Bit value indicates free or used.

16. What is row chaining and row migration?

We will migrate a row when an update to that row would cause it to not fit on the block anymore (with all of the other data that exists there currently). A migration means that the entire row will move and we just leave behind the. So, the original block just has the rowid of the new block and the entire row is moved.
Row chaining nstead of just having a forwarding address on one block and the data on another we have data on two or more blocks.

19. Explain What is the use of PARALLEL_ADAPTIVE_MULTI_USER initialization parameter?

When we set to PARALLEL_ADAPTIVE_MULTI_USER true enables an adaptive algorithm designed to improve performance in multiuser environments that use parallel execution. The algorithm automatically reduces the request degree of parallelism based on the degree at the system load at query startup time.

20. How to use STANDBY_ARCHIVE_DEST parameter and explain its need?

STANDBY_ARCHIVE_DEST is relevant only for a standby database in managed recovery mode. It specifies the location of archive logs arriving from a primary database.

21. What is the difference between primary key and foreign key

Primary Key is unique Key entire the table and which is
also NOT NULL
where as foriegn key is the null & which references the
primary key .

23. what is the difference between TRUNCATE, DELETE, DROP?

1) Drop will drop the records from the table along with its structure.All the indexes associated with it will also deleted and there is no rollback.
2) Delete will deletes the records of the table but the structure of the table is retained back.It is a DML operation which is slower but provides rollback facility.
3) Truncate is a DDL command which is faster ,retain structure of the table and rollback is possible.It allocates memory usually after truncating so structure is retained.

25. How to create a multiple databases with the same configuration?

Applications can create multiple databases with in a single file.This is useful when database are both numerous and reasonably small in order to avoid creating a large number of underlying files.Putting multiple databases in a single physical file is an administrative convenience and unlikely to affectdatabase performance.