Databases - Using Oracle under LINUX

Starting Oracle

To use Oracle under UNIX, some preparations have to be taken care off.

  1. Open the file ~/.tcshrc.
  2. Search for a list of wi_packages. An example of such a list is: set wi_packages=(newtex netscape oracle)
  3. Add oracle.
  4. Make sure you have a username and a password. You can get a password by subscribing at the first course or by sending an email to csdb@liacs.nl.

Oracle can be launched by typing the following command in a terminal:

sqlplus username@ONW

Your username is your UNIX account name. The following message appears:

SQL*Plus: Release 8.0.6.0.0 - Production on Thu Jan 9 16:19:17 2003

(c) Copyright 1999 Oracle Corporation. All rights reserved.

Enter password:

Enter your password. By default, your password equals your username. Next, the SQL> prompt appears. Just like a UNIX command prompt, you can use this prompt to give commands. Enter the following command immediately to change your password:

alter user username identified by newpassword;

Pay attention to the semicolon at the end of the line.

Additional instructions for Den Haag

Additional to the instructions on the WEBPAGE for Den Haag I&E

Using SQL in the LIACS system via PUTTY SSH Editing files in remote locations

Introduction to the commands

We introduce some commands here which you may find useful during the next exercises. We strongly encourage you to try each of them. Currently, you don't have to understand the meaning of all statements. It is our intention that you get a feeling for the system.