Installation and Management of Oracle 11g Express Edition Release 2
Installation and Management of Oracle 11g Express Edition Release 2
Installation and Management of Oracle 11g Express Edition Release 2
Objectives
This specification explains how to install Oracle 11g Release 2 on Windows 7 system,
how to start and stop a database, and how to use SQL*Plus client.
(3) Start setup.exe. The system should start InstallShield Wizard. It takes a
minute or two while the system prepares to install. Wait until the system
opens a windows Oracle Database 11g Express Edition Install
Wizard.
(4) When the preparations are finished, click at Next> button in a window
Oracle Database 11g Express Edition Install Wizard.
(5) Pick I accept the terms in the license agreement and click at Next>
button.
(7) Type in a password for both SYSTEM and SYS users. A password is up to
you. It should be a string of characters that must start from a letter and it is a
combination of letters and digits. When both passwords for SYSTEM and
SYS users are typed in, click at Next> button.
(8) Read information provided in a summary and if everything is all right, click
at Install button. The system should open a window Oracle Database 11g
Express Edition Install Wizard and start the installation. The installation
procedure will run for few minutes. Wait until the system displays a message
Install Shield Wizard Complete.
(11) The system should display an icon "Get Started with Oracle Database
11g Express Edition". Click at the icon. The system starts a default Web
browser and opens HTML document with information about the parameters
and the present state of "Oracle Database XE 11.2". Browse the document.
At the moment you do not need to perform any of the actions described in the
document. Close Web browser and perform the actions described in the next
section of this document.
lsnrctl stop
(0) Find a folder XE in CSCI315 folder on your CSCI315 DVD. Copy a folder
XE into drive C:.
(3) Type:
C:\XE
into Start in field. In this way you determine a location of your SQL scripts
each time SQL*Plus client is started. Leftclik OK button. Note, that you do
not have to perform this step (3) when running SQL*Plus client the next time.
connect system
(5) Type a password of a user SYSTEM. It is a password you entered in a step (7)
of Installation procedure. The system should reply with a message:
Connected.
and with SQL> prompt in the next line.
(6) We would like to run SQL script that lists the names of files and tablespaces
an Oracle database consists of. To do so type:
@sf
at SQL> prompt and press Enter key. The system should list the names of
tablespaces, the paths and names of files the tablespaces consist of, internal
file identifiers, and size of files in bytes. At the moment a database consists of
four tablespaces: USERS, SYSAUX, UNDO, SYSTEM. You may have to
expand a Command line window to get a nice and clear output.
exit
connect anyuser
(1) Use cd command to move to a directory that contains your SQL scripts, i.e to
move to a directory XE execute a command:
cd c:\XE
sqlplus /nolog
connect system
(4) Type a password of a user SYSTEM. It is a password you entered in a step (7)
of Installation procedure. The system should reply with a message:
Connected.
and with SQL> prompt in the next line.
(5) We would like to run SQL script that lists the names of files and tablespaces
an Oracle database consists of. To do so type:
@sf
at SQL> prompt and press Enter key. The system should list the names of
tablespaces, the paths and names of files the tablespaces consist of, internal
file identifiers, and size of files in bytes. At the moment a database consists of
four tablespaces: USERS, SYSAUX, UNDO, SYSTEM. You may have to
expand a Command line window to get a nice and clear output.
exit
(2) Assume, that we would like to create a new user QQQ with a password
PSSST. At SQL> prompt execute a command:
(3) Next, we have to grant the functional privileges to the user. At SQL> prompt
execute a command:
connect QQQ
The error message above means that user QQQ has no rights to access a data
dictionary relational view DBA_DATA_FILES that contains information
about tablespaces and data files. At the moment, only the users SYSTEM and
SYS have the rights to access DBA_DATA_FILES. It is explained in the
laboratory classes how to grant to a user the data access rights and functional
access rights.
Dropping a user
To drop a user, perform the following steps.
(0) If SQL*Plus client is not started then start SQL*Plus client using either
method 1 or method 2 explained above.
You can find more information about the management of the system in the
laboratory specifications.
What to do next ?
In the next step you have to create and to load data into a sample database. Open a file
CreatingSampleDB.pdf and follow the instructions written there.
End of specification