Oracle – PL-SQL- Introduction of Triggers

A trigger is a procedure that is run automatically by the database when a specified SQL DML INSERT, UPDATE, or DELETE statement is run against a table or view. Triggers are similar to stored procedures. A trigger stored in the database can include SQL and PL/SQL statements to run as a unit and can invoke stored procedures. However, procedures and triggers differ in the way that they are invoked. A procedure is explicitly run by a user, application, or trigger.

» Read more

Oracle – PLSQL – NVL Function

NVL lets you replace null with a string in the results of a query. Syntax NVL (string1, replace_with) If string1 is null, then NVL returns replace_with. If string1 is not null, then NVL returns string1. Note: The arguments string1and replace_with can have any data type. If their data types are different, then Oracle Database implicitly converts one to the other. If they are cannot be converted implicitly, the database returns an error.

» Read more

Oracle – SQL Developer – Anonymous Block Completed

Oracle SQL Developer does not display the output of DBMS_OUTPUT.PUT_LINE, it gives “anonymous block completed” in the script output tab Some time we are confused why this is giving message “anonymous block completed” To see the output of script, we need to enable DBMS_OUTPUT by clicking on plus symbol (see below in the snapshot) then we can see the output of script. Example   Note: Anonymous block An ANONYMOUS BLOCK is a PL/SQL program that has no name and not

» Read more

Oracle 11 G Release 2 – Installation Steps

Once you download the Oracle 11 G Release 2 Installer from http://www.oracle.com/technetwork/index.html Click on Setup Files to Start Installing Oracle on your system You need to enter your email id. If you require updated from Oracle. Here we have not given any email id for demo Click “Yes” You can choose any option as per your requirement Here create and configure a database Choose as per your requirement Provide the Configuration setting as you require. Default Global Database Name is

» Read more
1 2 3