Oracle package
This programme contains a package along with a calling programma that uses this package. Let me first provide the package itself. The code: CREATE OR REPLACE PACKAGE employee_data AS TYPE…
This programme contains a package along with a calling programma that uses this package. Let me first provide the package itself. The code: CREATE OR REPLACE PACKAGE employee_data AS TYPE…
The idea is as follows. We want to create a simple function that calculates a code from a string. This code is the total ASCII value of the characters in…
This programme uses PLSQL to select a set of 1000 records per item. Each item is calculated from a cursor that generates the items for which a set of records…
Let us see how we might provide a value to the primary key in Oracle. There are many ways to provide a value for the primary key. One is to…
The situation is simple. We have to create a table that contain data on a certain variable outcome. Normally, one would like to create a field in the table and…
It is possible to make a hot backup in Oracle. This implies that we do not have to shutdown the database before creating a backup. The steps are as follows:…
The situation is as follows. We have a table with records that are added over time. The request is to produce a resultset that only contains values that are added…
Actually, taking a cold backup in Oracle is quite simple. If you choose to undertake a cold backup by copying tables, it consists of 5 steps. Step 1 is identifying…
Let us suppose, we have a table that has a granularity in two dimensions. Think of a customer and a product dimension. So each record has a combination of customer…
Oracle needs to have a set of context variables that allow Oracle to know where the programmes are located. Upon installation, you have to check if these variabled are set.…