Notes on using Oracle on Omega at UTA
Oracle accounts on Omega are created at the beginning of each semester to students enrolled in a database classes offererd by CSE and INSY departments.
The Oracle accounts will be created at the instructors' request only, because of license restriction.
The following documentation is divided into 3 sections:
Section 1 - For beginners who take database class for the first time.
Section 2 - For advanced users and instructors.
Section 3 - Using JDBC to Connect to Oracle.
--------------------------------------------------------------------------------
1.1 Getting Started
a. Log on to your omega account.
b. Log into SQL*Plus by typing:
omega>sqlplus
You will then be prompted for your Oracle username, which is the same as your Omega
username. When you are prompted for a password, enter your default password
Your default password is mmddyynn. Substitute the letters for the month, day, and
last 2 digits of your date of birth followed by the first 2 numbers of your social security/student ID.
After logging in successfully, you will see the prompt: SQL>.
--------------------------------------------------------------------------------
1.6 How to create the table in Oracle?
Type like following in SQL prompt.
SQL> create table example (
name varchar(10),
address varchar(30),
number carchar(10));
another way is folloing
create table example (
name varchar(10),
address varchar(30),
number carchar(10));
commit;
SQL> @ test.sql
---------------------------------------------------------------------------------------------
1.7. How to insert data to table?
SQL> insert into example values('Tom','Arlington','10');
-------------------------------------------------------------------------------------------
1.7 List tables owned by you
Enter the following SQL statement to list schema objects (including tables, views and sequences) owned by you
SQL> SELECT * FROM example;
---------------------------------------------------------------------------------------------------
SQL> drop table example;