© 2007 by Prentice Hall2-1 Introduction to Oracle 10g Chapter 2 Overview of SQL and SQL*Plus James Perry and Gerald Post
© 2007 by Prentice Hall2-2 Chapter Outline Interfacing with Oracle Using the DOS Command Line SQL*Plus Using SQL*Plus for Windows Using iSQL*Plus Understanding SQL Statements Using SQL*Plus Command Extensions
© 2007 by Prentice Hall2-3 Table 2.1 Data to be entered into the ContactReason table
© 2007 by Prentice Hall Example of a SQL command entered with SQL*Plus for Windows
© 2007 by Prentice Hall SQL command error message and associated error code
© 2007 by Prentice Hall Displaying additional information about an Oracle error code
© 2007 by Prentice Hall Using SQL*Plus in a DOS window
© 2007 by Prentice Hall Using SQL*Plus in Windows cursor indicating the insertion point
© 2007 by Prentice Hall Selecting text to edit selected text to be edited
© 2007 by Prentice Hall Logging into Oracle using iSQL*Plus the password is obscured
© 2007 by Prentice Hall SQL command and retrieved rows in a browser Logout hyperlink
© 2007 by Prentice Hall Error messages generated from DROP TABLE commands
© 2007 by Prentice Hall Rows returned by a SELECT statement rows retrieved from the Agents table SELECT statement entered to retrieve rows
© 2007 by Prentice Hall Inserting a row and verifying its values
© 2007 by Prentice Hall Updating a row in the Agents table values to update listed columns in Melinda Whitmore’s record
© 2007 by Prentice Hall Deleting a row and verifying its removal confirms selected row was deleted
© 2007 by Prentice Hall Example transaction structure COMMIT; INSERT INTO … DELETE FROM … UPDATE … COMMIT; a transaction
© 2007 by Prentice Hall Displaying a list of system privileges
© 2007 by Prentice Hall Listing SQL*Plus commands and help on the CONNECT command lists SQL*Plus commands displays help on a particular SQL*Plus command
© 2007 by Prentice Hall Displaying tables’ column definitions
© 2007 by Prentice Hall Altering column headings
© 2007 by Prentice Hall Altering the PAGESIZE environment variable
© 2007 by Prentice Hall Customizing the PAGESIZE environment variable Permanently setting the PAGESIZE variable
© 2007 by Prentice Hall Launching a script file in SQL*Plus START command (yours will not display)
© 2007 by Prentice Hall Using a substitution variable in a script file
© 2007 by Prentice Hall Script file Change the path (C:\Docs\) in these three places
© 2007 by Prentice Hall Output from the script file
© 2007 by Prentice Hall Changing an iSQL*Plus environment variable Single page option button Interface Configuration hyperlink Number of rows on each page set to 60