Your SlideShare is downloading. ×
0
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
09-02-2008old.ppt
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

09-02-2008old.ppt

166

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
166
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • An alternative to using the SQL command prompt is go to the Database Home page from the Start Menu. Select Start Menu, then Programs, then Oracle 10g Express then Database Home Page
  • Transcript

    1. 09-02-2008, MS-Access, QBE, Access/Oracle <ul><li>Class </li></ul><ul><ul><ul><li>Will </li></ul></ul></ul><ul><ul><ul><ul><ul><li>Start </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>Momentarily… </li></ul></ul></ul></ul></ul>CS8630 Database Administration Dr. Mario Guimaraes
    2. Install/Launch Oracle:Another Interface <ul><li>To run one command at a time, Choose Go to Database Home Page from Start Menu (see very first picture above). </li></ul><ul><li>Start Menu -> Programs -> Oracle 10g Express -> Go to Database Home Page </li></ul>
    3. Oracle Express Home Page Select the SQL command (third icon below)
    4. Sql Command interface
    5. TOAD <ul><li>http:// www.toadsoft.com/lic_agree.html </li></ul>
    6. View user_tables <ul><li>TO CHECK if ALL TABLES were created </li></ul><ul><li>From the oracle prompt, type in </li></ul><ul><li>SQL>select table_name from user_tables; </li></ul><ul><li>You will see the tables customers, orders, products and agents </li></ul>
    7. <ul><li>MS-Access </li></ul><ul><li>and </li></ul><ul><li>QBE </li></ul>
    8. Launch MS-Access, Create a new File
    9. Select Blank Database
    10. Creating a Table
    11. Defining Datatatypes
    12. Defining Relationship
    13. Editing Relationships
    14. Creating a Form
    15. Inserting Pictures
    16. Database Utilities
    17. Import/Export
    18. Query-by-Example (QBE) <ul><li>Visual approach for accessing information in a database through use of query templates. </li></ul><ul><li>Example values are entered into template to represent what access to database is to achieve, such as the answer to a query. </li></ul><ul><li>Originally developed by IBM in 1970s [Zloof] and has proved so popular that QBE (or similar) is now provided by most DBMSs. </li></ul><ul><li>When user constructs a QBE - i n background, DBMS creates an equivalent SQL statement. </li></ul>
    19. MS-Access – Blank Database
    20. New DB - .MDB file
    21. Introduction to Microsoft Access
    22. SQL View (MS-Access Query)
    23. New Query
    24. Projection
    25. Restriction
    26. Restriction w/ multiple criteria
    27. Join
    28. Totals (Aggregate Functions)
    29. Projecting Expressions
    30. Specifying Criteria
    31. Find Unmatched Query (Outer Join)
    32. Creating a Table
    33. Defining Datatatypes
    34. Defining Relationship
    35. Editing Relationships
    36. Creating a Form
    37. Inserting Pictures
    38. Database Utilities
    39. Connect MS-Access & Oracle <ul><li>Do a search and find odbcad32.exe (ODBC Data Source program) or </li></ul><ul><li>Control Panel -> Administrative Tools -> Data Sources (ODBC) </li></ul><ul><li>Then follow the instructions at http://science.kennesaw.edu/~mguimara/3310/odbclab.zip </li></ul>Click on the System DSN panel above (second one from the left) and the add button on the right of A Create New Data Source window appears as shown in Next slide.
    40. Select Driver <ul><li>Select the Microsoft ODBC for Oracle driver and click the Finish button </li></ul>
    41. Define Server <ul><li>A Microsoft ODBC for Oracle Setup window will appear as shown in Figure 3 below (from http://science.kennesaw.edu/~mguimara/3310/odbclab.zip) . For Data Source Name you can choose any name (OracleAccess, for example). For Server Name you choose the Oracle instance (or the service name in a multi-user environment). The other two parameters are optional. User Name is the Oracle user, but you should leave it blank, that way you can login as any user. Click okay and click okay again to save the ODBC Data source and exit. </li></ul>
    42. Get External Data <ul><li>Launch MS-Access and select File Menu -> Get External Data -> Link (if you select import, you are simply copying the oracle tables to MS-Access) </li></ul>
    43. Select File type
    44. Select Data Source <ul><li>When the Select DataSource window appears (Figure 6), select the Machine Data Source tab and then select the Data Source you created. </li></ul>
    45. Select PK When you click the okay button, you will get a login window. Type in your Oracle user name and Password (Server name is the database instance name and should already come typed for you). You then should get a screen with tables which you can select. Select the tables you want link to next slide. Click OK button
    46. Link Tables <ul><li>When you click the okay button (in previous slide), you will get a login window. Type in your Oracle user name and Password (Server name is the database instance name and should already come typed for you). You then should get a screen with tables which you can select. Select the tables you want link to (slide below). </li></ul>
    47. Select PK <ul><li>After you select the tables, make sure you also select the field you want to define as a primary key. Otherwise you will only be able to view data (and not modify). </li></ul>
    48. See Linked Tables <ul><li>You will then be able to access the oracle tables as if they were MS-Access tables. However, since you chose the Link Option (not the import), you are actually modifying the Oracle Database. </li></ul>
    49. Georgia Oracle User Group <ul><li>http://www.gouser.org/ </li></ul>
    50. Import/Export
    51. End of Lecture <ul><li>End </li></ul><ul><li>Of </li></ul><ul><li>Today’s </li></ul><ul><li>Lecture. </li></ul>

    ×