350 likes | 554 Views
Introduction to Oracle. Start/Programs/Oracle – OraHome 90/ Application Development/SQL Plus. Alternatively, go to the F drive, Oracle folder, ora90 subfolder, bin subfolder and double click on the sqlplusw exe file.
E N D
Start/Programs/Oracle – OraHome 90/ Application Development/SQL Plus
Alternatively, go to the F drive, Oracle folder, ora90 subfolder, bin subfolder and double click on the sqlplusw exe file.
Logon, your username should be your last name followed by your first initial. Your password is your first name followed by underscore and pw. For example, James Smith would have a username smithj and a password james_pw. The host string is: cscora2.lasalle.edu
You can enter SQL commands at the SQL prompt These line numbers were supplied automatically. The line will execute (or attempt execution) after the semicolon and the Enter key are struck.
D’Oh forgot to establish ArtistID as the primary key, can drop this table and start again.
Perform a query that joins the Artist table and WorkOfArt table.
Start Oracle again and do a select query on the tab table which shows a user’s tables I had also created a Names table, you should only have Artist and WorkOfArt.
Start Oracle again and run Select query on the Artist table. Where’s Paul Gauguin?
Insert Paul Gauguin again and this type follow that with COMMIT, then close.
Start Oracle again and do a select query on Artist This time Paul Gauguin stayed because the insert transaction was committed.
Insert another row, rollback, then do a select query on the Artist table Jackson Pollok does not appear because that entry transaction was rolled back.
Add two rows, rollback and do a select query Both new rows disappear, rollback gets rid of things up to the last commit.
Create a table, rollback, do a select query on the tab table Temp appears despite rollback, creates cannot be rolled back.
Repeat the query joining the Artist and WorkOfArt tables, but use a RIGHT JOIN.
Use the keyword START followed by the path of the sql file you created