Anda di halaman 1dari 3

School of Computer Science & Software Engineering Session: Spring 2007

University of Wollongong Lecturer: Janusz R. Getta

Installation and management of Oracle 10g XE (Express Edition)


2 July 2007

Scope
This specification explains how to install Oracle 10g XE on XP system, how to start and
stop a database, and how to use SQL*Plus client.

Installation
To install the system, perform the following steps.

(1) Insert CD XE into a drive.


(2) Open CD folder and open a folder ORACLE10GEXPRESS.
(3) Start Oracle XE Setup Launcher (a file OracleXE.exe).
(4) In a window “Oracle Database 10g Express Edition – Install Wizard”
click at Next> button.
(5) Pick “I accept the terms in the license agreement” and click at Next>
button.
(6) Choose a destination location and click at Next> button.
(7) Type in a password for both SYSTEM and SYS users. Click at Next> button.
(8) Read information provided in a summary and if everything is all right, click at
Install button.
(9) In a window “Install Shield Wizard Complete” un-check “Launch the
Database Homepage” check option and click at Finish button.
(10) Shutdown and restart an operating system.

Starting/Stopping the system


To start the system, perform the following steps.

(1) Navigate through START->All Programs->Oracle Database 10g Express


Edition->Start Database. Leftclick Start Database.
(2) Close “Start Database” window.

To stop the system, perform the following steps.

(1) Navigate through START->All Programs->Oracle Database 10g Express


Edition->Stop Database. Leftclick Stop Database.
(2) Close “Stop Database” window.
Starting SQL*Plus client (method 1)
To start SQL*Plus client perform the following steps.

(1) Navigate through START->All Programs->Oracle Database 10g Express


Edition->Run SQL Command Line. Rightclick (!)Run SQL Command
Line.
(2) Select Properties.
(3) Type in a location of your SQL scripts into “Start in” window.
(4) Navigate through START->All Programs->Oracle Database 10g Express
Edition->Run SQL Command Line. Leftclick Run SQL Command Line.
(5) At SQL> prompt type: connect system to connect as SYSTEM user.
(6) Type a password of SYSTEM user.
(7) To run a script included in a file script.sql type: @script at SQL>
prompt and press Enter key.
(8) To disconnect from SQL*Plus type: exit.
Comment: To connect as user anyuser you may also execute: sqlplus
anyuser instead of sqlplus /nolog. A connect command of SQL*Plus
allows you to connect as another user without closing SQL*Plus client. A command
sqlplus /nolog only starts a client and does not connect it as any user.

Starting SQL*Plus client (method 2)


To start SQL*Plus client perform the following steps.

(1) Navigate through START->All Programs->Accessories->Command


Prompt, leftclick Command Prompt.
(2) Use cd command to move to a directory that contains your SQL scripts.
(3) Execute a command: sqlplus /nolog
(4) At SQL> prompt type: connect system to connect as SYSTEM user.
(5) Type a password of SYSTEM user.
(6) To run a script included in a file script.sql type: @script at SQL>
prompt and press Enter key.
(7) To disconnect from SQL*Plus type: exit.
Comment: To connect as user anyuser you can also execute: sqlplus anyuser
instead of sqlplus /nolog. A connect command of SQL*Plus allows you to
connect as another user without closing SQL*Plus client. A command sqlplus
/nolog only starts a client and does not connect it as any user.

Creating a new user


To create a new user, perform the following steps.
(1) Start SQL*Plus client.
(2) Connect as SYSTEM user.
(3) At SQL> prompt execute a command: CREATE USER QQQ IDENTIFIED
BY PSSST;
(4) At SQL> prompt execute a command: GRANT RESOURCE,CONNECT TO
QQQ;
(5) To connect as a user QQQ execute: connect QQQ at SQL> prompt.
(6) Type in a password (PSST).

End of specification