* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download Lab 7 Oracle SQL Instructions
Survey
Document related concepts
Extensible Storage Engine wikipedia , lookup
Relational algebra wikipedia , lookup
Microsoft Access wikipedia , lookup
Microsoft Jet Database Engine wikipedia , lookup
Tandem Computers wikipedia , lookup
Entity–attribute–value model wikipedia , lookup
Ingres (database) wikipedia , lookup
Clusterpoint wikipedia , lookup
Oracle Database wikipedia , lookup
Database model wikipedia , lookup
Relational model wikipedia , lookup
Open Database Connectivity wikipedia , lookup
Transcript
Lab 7 Oracle SQL Instructions The Oracle DBMS is located on the RA (ra.msstate.edu) server. To login to your Oracle database: netid@ra> sqlplus netid/password (use netid for password if it is your first time accessing Oracle) To view the tables contained in your database: SQL> select * from tab; (need trailing semicolon after queries) To execute a *.sql script, make sure you run ‘sqlplus’ from the directory where the script is contained (eg. tables.sql) SQL> start tables Files included in lab example: createall.sql, dropall.sql, tables.sql, views.sql, data.sql, myload, customer.ctl, & customer.dat createall.sql – executes dropall, tables, views, and data to create and fill sample tables dropall.sql – drops the tables and views if they already exist in the database tables.sql – creates tables customer, product, order_, and order_item with appropriate attributes views.sql – creates several views data.sql – loads data into each table with the ‘insert into table values ()’ expression myload – shell script that runs the ‘sqlldr’ command and logs into an Oracle account to create a control sequence customer.ctl – Oracle script that loads data from the customer.dat file into the customer table customer.dat – comma delimited file that contains customer information