Oracle8 For Dummies

Overview

Oracle is one of the most powerful, most sophisticated databases around. But let's face it -- the accompanying manuals leave something to be desired. Fortunately, with Oracle8 For Dummies, you can get up to speed quickly with the latest version of this top database program.

Professional Oracle database administrator Carol McCullough covers all the essential topics, including

  • Using SQL Worksheet, a utility ...
See more details below
Available through our Marketplace sellers.
Other sellers (Paperback)
  • All (16) from $1.99   
  • New (4) from $8.51   
  • Used (12) from $1.99   
Close
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any BN.com coupons and promotions
$8.51
Seller since Sat Jan 01 01:01:01 EST 2005

Feedback rating:

(1623)

Condition:

New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

New
New

Ships from: Fort Worth, TX

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$15.50
Seller since Tue Oct 07 09:33:45 EDT 2014

Feedback rating:

(100)

Condition: New
fast shipping

Ships from: El Dorado, CA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$45.00
Seller since Tue Oct 07 09:37:03 EDT 2014

Feedback rating:

(184)

Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
$45.00
Seller since Tue Oct 07 09:37:03 EDT 2014

Feedback rating:

(184)

Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing All
Close
Sort by
Sending request ...

Overview

Oracle is one of the most powerful, most sophisticated databases around. But let's face it -- the accompanying manuals leave something to be desired. Fortunately, with Oracle8 For Dummies, you can get up to speed quickly with the latest version of this top database program.

Professional Oracle database administrator Carol McCullough covers all the essential topics, including

  • Using SQL Worksheet, a utility that uses industry-standard SQL (Standard Query Language) to let you get at your data, wherever it may reside
  • Working with a diagram to make sense of an existing database or to make your own new database sensible from the get-go
  • Thinking in terms of objects and realizing their relational potential for your data
  • Creating tables and controlling security and data sharing
  • Generating precise, useful reports that transform mere data into valuable information
  • Optimizing Oracle8 and your SQL programs for quick, as well as accurate, results

Plus, Oracle8 For Dummies comes complete with a bonus Windows NT 4 CD-ROM containing a sample database along with sample scripts to experiment with and adapt for your own projects.

Read More Show Less

Product Details

  • ISBN-13: 9780764502392
  • Publisher: Wiley, John & Sons, Incorporated
  • Publication date: 10/30/1997
  • Series: For Dummies Series
  • Edition number: 1
  • Pages: 380
  • Product dimensions: 7.42 (w) x 9.21 (h) x 1.03 (d)

Table of Contents

Foreword.

Introduction.

PART I: Road Map.

Chapter 1: A Quick Tour of Oracle8.

Chapter 2: Data Whaaaaat? A Database Primer.

Chapter 3: SQL Nuts and Bolts.

Chapter 4: Using the Enterprise Manager.

PART II: Getting Started.

Chapter 5: The Relational Model and You.

Chapter 6: Diagramming Your World.

Chapter 7: Getting Familiar with Oracle8 Structure.

Chapter 8: Oracle's User.

PART III: Putting Oracle8 to Work.

Chapter 9: Defining Tables, Tablespaces, and Columns.

Chapter 10: Security Options: Roles, Profiles, and Grants.

Chapter 11: Views and Synonyms: Do You See What I See?

Chapter 12: Reports: The Hidden Talent of SQL*Plus.

Chapter 13: Sharing and Getting Data out of Oracle8.

Chapter 14: The Five Ws of Safeguarding Your Data.

PART IV: Tuning Up and Turbocharging.

Chapter 15: What's Slowing Your Query Down?

Chapter 16: Speeding Up Queries with Keys and Indexes.

Chapter 17: Correcting Flaws.

PART V: The Part of Tens.

Chapter 18: Ten Tips for Good Design.

Chapter 19: Ten Common Problems and How to Fix Them.

Chapter 20: Ten Handy Oracle8 Features.

PART VI: Appendixes.

Appendix A: Glossary.

Appendix B: About the CD.

Index.

Licensing Agreement.

Installation Instructions.

Book Registration Information.

Read More Show Less

First Chapter

Chapter 7
Getting Familiar with Oracle8 Structure

In This Chapter

  • Admiring data dictionary views from afar
  • Getting to know Oracle8
  • Using data-dictionary views for your own advancement
  • Using Schema Manager to list the views
  • Using the SQL Worksheet to peek inside data dictionary views

What are users in the Oracle8 database, and what have they created? How does Oracle8 know which tables a user can see and which a user cannot touch? Where is the off switch?

You can find the answers to all these questions -- except the last -- in the data-dictionary views. Data-dictionary views are actually views based on underlying tables called the system tables. System tables gather information about tables, rows, view, columns, security, users, and even about the files allocated to store the Oracle8 database itself. System tables keep track of all the users, as well as what each user can and cannot do. This chapter tells you how to access that information by looking at the data-dictionary views.

Oracle8 depends on the data-dictionary views and the underlying system tables, so don't mess with them. Look at the data-dictionary views all you want, but do not alter these views or the system tables in any way. Unless the database administrator (DBA) gives you special permission, you are not able to make changes in either the data-dictionary views or the system tables. If, however, you have your own desktop version of Oracle8, you're the DBA. You can, if a demon possesses you, add rows or alter the structure of these views or tables, but for now, you just have to exorcise a little restraint.

Data-Dictionary Views You Can Really Use

The following little table of views shows you the best-kept secrets in the Oracle8 database, including what resides in data-dictionary views. The views make it easy for you to interpret the internal workings of Oracle8.

Table 7-1 The Ultimate Table of Views

View

Who Needs It What the View Shows You

ALL_CATALOG

DBA, table owner, user Every table, view, and synonym that you can look at. You may or may not be allowed to update these items. This helps you determine what resources the database has.

ALL_TAB_COMMENTS

Anyone Comments, which usually contain a short description of the table's contents. You may occasionally find useful puns or one-liners here.

ALL_TAB_GRANTS

DBA, table owner Lists the privileges that you currently have in any table in the database. This includes grants to PUBLIC (Oracle's special user that is shared by all Oracle users; see the tip after this table for more about PUBLIC). See Chapter 11 for information about using PUBLIC with table privileges (grants).

ALL_TAB_GRANTS_RECD

DBA, table owner The privileges that you received from others for any table; includes grants to PUBLIC.

ALL_USERS

Anyone The names and creation dates for all other users in the database.

DBA_FREE_SPACE

DBA The remaining free space in each tablespace.

PRODUCT_COMPONENT_VERSION

Anyone Shows all installed products (such as SQL*Plus and PL/SQL) and their complete version numbers, which is useful if you're reporting errors to Oracle.

USER_CATALOG

Anyone All tables, views, and synonyms that you can see, even if you did not create them.

USER_INDEXES

Table owner All the indexes that you created. See Chapter 22 for SQL code that uses this table.

USER_TABLES

Table owner Your tables and statistics about each one.

USER_TAB_COLUMNS

Table owner All the columns that you created.

USER_TAB_GRANTS_MADE

DBA, table owner Privileges that you have granted to others for your tables.

USER_VIEWS

Table owner Your views, complete with the SQL code that you used to create them. Here's a great opportunity to share your views with a captive audience.

ALL_OBJECT_TABLES

DBA, object programmer List of all object-oriented tables in the database.

ALL_TYPES

DBA, object programmer List of all object types. See Chapter 5 for a definition of object-oriented types.

ALL_TYPE_METHODS

DBA, object programmer All object types that are methods. See Chapter 5.

ALL_METHOD_RESULTS

DBA, object programmer All method results. Similar to columns. See Chapter 5.

Oracle8 created the PUBLIC user to handle situations in which it allows all users to see your table. PUBLIC simplifies your life by allowing you to grant privileges to PUBLIC rather than to many individuals. Oracle8 automatically gives anything granted to PUBLIC to any newly created users. This arrangement may not seem to be fair to those who have more seniority. Tough.

See Chapter 10 for details on granting privileges for tables.

Much of the information that you see displayed in graphical form in the Enterprise Manager tools, you can find in the data-dictionary views. You can use these views to write SQL queries to gather information about your database. You may want to create a report on the status of your database by using other report-writing tools. The data-dictionary views give you a great source of information on which to base reports.

Listing Data-Dictionary Views with Schema Manager

You can list all the views that the Oracle8 database contains by using Schema Manager. To begin, start the Schema Manager by following these steps:

  1. Go to the Enterprise Manager Toolbar.

    If you have not already done so, customize your Toolbar so that it is always handy, as described in Chapter 4 (in "Managing the Enterprise Manager"). Start the Toolbar, if you haven't already.

  2. Click the Schema Manager icon in the Enterprise Manager Toolbar.

    Schema Manager asks you to log in.

  3. Log in as a DBA.

    Log in with a valid DBA Oracle8 username and password. One option is to log in with the userid and password that is loaded into all Oracle8 databases: SYSTEM (password MANAGER). Leave the Service box empty if you are running your own personal Oracle8. Otherwise, fill in the name of the Oracle8 database (instance) on your network. Leave the Connect As box defaulted to Normal.

  4. Double-click the folder labeled Views in the left frame.

    Schema Manager brings up a listing of all the views available, including the data-dictionary views.

  5. Sort the views by name.

    Click the View column heading near the top of the right frame.

    Oracle8 sorts the views in alphabetical order. Figure 7-1 shows the Schema Manager window with the view listings.

  6. Close the Schema Manager.

    Click the X box in the top-right corner of the window.

You have many views available to you. The next section shows you how to look at the contents of a few of the most useful data-dictionary views. Refer to Table 7-1 earlier in this chapter to help you decide which data-dictionary views you want to see.

Looking at Data-Dictionary Views with SQL Worksheet

This section deals with two useful queries that you use to take a quick look around in the data-dictionary views. The first query is how you list all the data-dictionary views that are available for you to explore. The second query is how you list all the Oracle usernames that are defined to the Oracle8 database you are using.

List useful data-dictionary views

The following steps show how to query a data-dictionary view and show part of the results:

  1. Go to your Enterprise Manager Toolbar.

    If you have not already done so, customize your Toolbar so that it is always handy, as described in Chapter 4 (in "Managing the Enterprise Manager"). Start the Toolbar, if you haven't already.

  2. Click the SQL Worksheet icon.

    The icon looks like a paper and pencil. Schema Manager asks you to log in.

  3. Log in as a DBA.

    Log in with a valid DBA Oracle8 username and password. One option is to log in with the userid and password that is loaded into all Oracle8 databases: SYSTEM (password MANAGER). Leave the Service box empty if you are running your own personal Oracle8. Otherwise, fill in the name of the Oracle8 database (instance) on your network. Leave the Connect As box defaulted to Normal.

  4. Type the following SQL command and then click the Run button:

    desc ALL_SYNONYMS;

    The results (see Figure 7-2) scroll into the top window. You have just listed all the columns contained in the ALL_SYNONYMS view.

  5. Type the following SQL command and then click the Run button:
    select TABLE_NAME from ALL_SYNONYMS 
    where TABLE_NAME like 'USER%'
    or TABLE_NAME like 'ALL%'
    order by TABLE_NAME;

    The query's WHERE clause (everything between where and order by in the preceding command) narrows down the results by restricting the query to those data-dictionary views that begin with USER or ALL. These two groups of data-dictionary views (about 125) are very useful. Another 250 not-so-useful views are stored in the ALL_SYNONYMS data-dictionary view.

    Oracle8 lists the results of your query. The following shows a partial listing that you receive when running the query:

    TABLE_NAME
    ------------------------------
    ALL_CATALOG
    ALL_CLUSTERS
    ALL_CLUSTER_HASH_EXPRESSIONS
    ALL_COL_COMMENTS
    ALL_COL_GRANTS_MADE
    ALL_COL_GRANTS_RECD
    ALL_COL_PRIVS
    ALL_COL_PRIVS_MADE
    ALL_COL_PRIVS_RECD
    ALL_CONSTRAINTS
    ALL_CONS_COLUMNS
    ALL_DB_LINKS
    ALL_DEF_AUDIT_OPTS
    ALL_DEPENDENCIES
    ALL_ERRORS
    ALL_INDEXES
    ALL_IND_COLUMNS
    ALL_OBJECTS
    ALL_REFRESH
    ALL_REFRESH_CHILDREN
    ALL_SEQUENCES

These views are just a few of the data-dictionary views that are available. The DBA restricts you to seeing only what you have privileges to see. So unless you're the DBA you can probably see just a small slice of the whole database pie.

Chapters 10 and 11 go on and on about the subject of privileges, grants, and how they fit together. Chapter 19 also has a section on security, which could also have practical uses at airport terminals.

List all Oracle users

Follow these steps to find out what users are hanging out in your database:

  1. Go to your Enterprise Manager Toolbar.

    If you have not already done so, customize your Toolbar so that it is always handy, as described in Chapter 4 (in "Managing the Enterprise Manager"). Start the Toolbar, if you haven't already.

  2. Click the SQL Worksheet icon.

    The icon looks like a paper and pencil. Schema Manager asks you to log in.

  3. Log in as a DBA or other user.

    Log in with a valid Oracle8 username and password. One option is to log in with the userid and password that is loaded into all Oracle8 databases: SYSTEM (password MANAGER). Leave the Service box empty if you are running your own personal Oracle8. Otherwise, fill in the name of the Oracle8 database (instance) on your network. Leave the Connect As box defaulted to Normal.

  4. Type the following SQL command and then click the Run button:

    select * from all_users;

    Your results will vary, of course, because your database probably does not have an identical list of users.

  5. Close the SQL Worksheet.

    Click the X box in the top-right corner of the window.

The data-dictionary views give you a great deal of great information about your database. Use these views well. Use them often. Enjoy their companionship. Make them some little tinfoil hats, too, so that they can feel like part of the group. Well, at least keep in mind that you could use them later without too much trouble.

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)