Oracle ACE Pro
Oracle Solution Architect
Oracle E-Business Suite
Oracle Cloud Infrastructure
Oracle Fusion Middleware
Oracle Database Administration
Oracle Weblogic Administration
Oracle ACE Pro
Oracle Solution Architect
Oracle E-Business Suite
Oracle Cloud Infrastructure
Oracle Fusion Middleware
Oracle Database Administration
Oracle Weblogic Administration
It returns the Boolean value TRUE if at least one row was processed.
It returns the Boolean value TRUE if no rows were processed.
PL/SQL packages have the following two parts:
There are two way to execute a stored procedure.
From the SQL prompt, write EXECUTE or EXEC followed by procedure_name.
Simply use the procedure name
Following conditions are true for the Commit statement:
The Rollback statement is issued when the transaction ends. Following conditions are true for a Rollback statement:
With SAVEPOINT, only part of transaction can be undone.
Consistency simply means that each user sees the consistent view of the data.
There are two types of cursors in PL/SQL.
A list of predefined exceptions in PL/SQL:
There are 12 types of triggers in PL/SQL that contains the combination of BEFORE, AFTER, ROW, TABLE, INSERT, UPDATE, DELETE and ALL keywords.
Table columns are referred as THEN.column_name and NOW.column_name.
A stored procedure is a sequence of statement or a named PL/SQL block which performs one or more specific functions.
A list of some notable characteristics:
There are two types of datatypes in PL/SQL:
PL/SQL uses BLOCK structure as its basic structure.
Each PL/SQL program consists of SQL and PL/SQL statement which form a PL/SQL block.
PL/SQL block contains 3 sections.
Exception is an error handling part of PL/SQL.
There are two type of exceptions: pre_defined exception and user_defined exception.
Greeting := ‘Hello’ || ‘World’;
No, PL/SQL doesn’t support the data definition commands like CREATE.
A function returns a value while a stored procedure doesn’t return a value.
By using an Index we can access data blocks Faster in the table.
You can declare the User defined exceptions under the DECLARE section, with the keyword EXCEPTION.
Syntax:
<exception_name> EXCEPTION;
ROWID is the physical address (location) of the row on the disk. This is the fastest way to access a row in a table.
There are 6 types of SQL statements.
Data Definition Language (DDL): The DDL statements define and maintain objects and drop objects.
Data Manipulation Language (DML): The DML statements manipulate database data.
Transaction Control Statements: Manage change by DML.
Session Control: Used to control the properties of current session enabling and disabling roles.
System Control Statements: Change Properties of Oracle Instance.
Embedded SQL: Incorporate DDL, DML and T.C.S in Programming Language.
There are Three Integrity Rules as follows:
Entity Integrity Rule: The Entity Integrity Rule enforces that the Primary key cannot be Null.
Foreign Key Integrity Rule: The FKIR denotes that the relationship between the foreign key and the primary key has to be enforced. When there is data in Child Tables the Master tables cannot be deleted.
Business Integrity Rules: The Third Integrity rule is about the complex business processes which cannot be implemented by the above 2 rules.
We can implement the if statement in the select statement by using the Decode statement.
e.g select DECODE (EMP_CAT,’1′,’First’,’2′,’Second’Null);
Here, the Null is the else statement where null is done .
We can delete the duplicate rows in the table by using the Rowid
Example: DELETE FROM table_name a Where rowid>(select min(rowid) from table_name b where a.table_no=b.table_no);
Yes we can disable database triggers through following issuing statement
ALTER TABLE TABLE [DISABLE all_trigger ]
14.Is space acquired in blocks or extents?
All Rights Reserved