Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

At IU, how do I use the sample account on the UITS Oracle database Oed1prd?

At Indiana University, the UITS Oracle database Oed1prd has one sample user account, HR. This account is set up so it cannot be modified, but can be accessed for reading or copying. The password for the HR account is hr.

Viewing the contents of the sample account

To see a list of tables in the HR account, log into the sample account HR (username and password is hr) using the SQL*Plus Oracle Client tool. Alternatively, use SQL Developer to connect to the Oed1prd database and enter SQL statements in its SQL Worksheet; see How do I connect to the UITS Oracle database Oed1prd from the IUB and IUPUI STCs? and On Quarry, how do I access the UITS Oracle database Oed1prd with SQL*Plus?

Once you have logged in, enter:

select * from cat;

To see a list of column definitions in a particular table, enter the command:

describe tablename;

Replace tablename with the name of the table.

Copying tables from a sample account to your own account

If you have your own account on Oed1prd, you can practice SQL commands by copying tables from the sample account to your own account. To do so:

  1. Using the above procedure for listing the HR tables, determine the names of the tables in the HR account that you would like to copy.

  2. Query the contents of those tables from your own account by specifying the schema (account) name in the SELECT statement, as in the following example: select * from hr.tablename;

    Substitute the name of the table for tablename.

  3. Create a copy in your own account using the SQL in the following example: create table tablename as select * from hr.tablename;

    Substitute the name of the table for tablename (both places).

  4. Verify that the table is now in your account by querying the catalog with the following command: select * from cat;
  5. Verify that the table data copied over by querying the table with the following command: select * from tablename;

    Substitute the name of the table for tablename.

This is document anhn in domain all.
Last modified on August 04, 2011.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.