RelationalDBDesign
SiteMap
PL/SQL
Stored Objects
PL/SQL Programming
PL/SQL
«Prev
Next»
Programming PL/SQL
Querying Object Tables
Object Oriented Terms
Collections Varrays Oracle
Querying Nested Tables
Practical/SQL Examples
Querying Complex SQL Object
SQL Query Example
Using Oracle Objects
Querying Related Tables
Understanding Related Object Tables
Analyzing Dangling References
Writing deref Queries
Oracle deref Syntax
Querying Object Tables
Creating PL/SQL Block
Object Relational Conclusion
Querying Nested Tables
Flattening nested Table
Flattening nested Table Example
Simple varray Query
Query to Flatten varray
Query Flattens Nested Table
Procedure retrieves Nested Table
Varrays Nested Table Conclusion
Object Table Modification
Insert into Table
SQL Insert Rows
Write SQL to Update Object Table
Subquery in Update
Delete Rows from object Table
DML Statements Conclusion
Updating Rows Example
Modifying Nested Tables
Insert Rows into Nested Table
Delete Command for Nested varray
Updating Varray Rows
inserting Data in Nested Table(Example)
Varray insert Command
Modifying LOBs
Erasing Data within LOB - Exercise
Erasing Data within a LOB
Objective:
Use PL/SQL to erase portions of data within a LOB column.
Exercise scoring
This exercise is auto-scored.
Background/overview
In this exercise, you will erase data within a LOB column using PL/SQL.
Exercise Simulation
This exercise uses a simulation of an Oracle environment.
Instructions
In the following simulation exercise, you will be asked to perform a task or set of tasks you have learned in the previous lesson. The instructions will tell you what you need to do at each step but will not tell you exactly how.
Submitting your exercise
Click the
Submit
button when finished to see the suggested results for the exercise.
With SQL*Plus, connect to the database by using PETSTORE as the User Name, GREATPETS as the Password, and MYDB as the Host String. Approve the entries.
User Name
PETSTORE
S0)Type PETSTORE in the User Name box.
Password,
GREATPETS
(S0)Type GREATPETS in the Password box.
Host String,
MYDB
Type MYDB in the Host Name box
You are now connected to the database. Next, start the PL/SQL block by declaring two variables: one to store the value of the LOB and the other for the number of bytes to be erased.
Submit