Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

Łukasz Kozłowski

INSTALLING ORACLE DATABASE EXPRESS EDITION


1. Find Oracle Database Express Edition on the Internet (you will find it on the Oracle’s website).

You may be asked to create Oracle account before downloading installation files. Choose “x64”
version of the database for your 64 bit operating system, and “x32” version if you have a 32 bit
operating system.

1
2. Run the installer.

3. Specify password for the database during the installation. In the future you will need it to log in
as the database administrator.

4. After the database system is installed it will automatically starts every time you start your
operating system. It may slow down your computer. Therefore, if you are not going to use the

2
database system very often you may disable the automatic initialization of the database. Thus, go
to Control Panel / System and security / Administrative tools / Services.

3
Find the following services: “OracleXETNSListener” and “Oracle ServiceXE”. Set their initialization
type to “Manual” instead of “Automatic”.

4
After that, whenever you want to use your database, you will need to start the database by
clicking “Start Database” in the database’s directory in the Start Menu of your operating system.
Now the database system is ready to work.

5
INSTALLING SQL TOOLS
1. Go to www.sqltools.net and download the installer. Run it and install the software.

2. If you have a 64 bit operating system and have installed the 64 bit Oracle Database you may have
problems with running SQL Tools. In order to solve them go through the following steps:
2.1. Download a 32 bit “Oracle Instant Client” from the Oracle’s website (find “Oracle Instant Client”
with the use of Google). Extract the Oracle Instant Client to a folder in which your database is
installed. Probably you have to extract it to: “C:\oraclexe\instantclient_12_1\”
2.2. Add the folder into system PATH, i.e. go to “Control Panel / System and security / System” and
click “Advanced system settings”. Then, click “Environmental variables”. Then, find “Path” among
“System variables”, choose it, click “Edit” and add “C:\oraclexe\instantclient_12_1\”. Click “OK”.

6
2.3. Find the following subdirectory in your Oracle Database’s directory:
“\app\oracle\product\11.2.0\server\network\ADMIN”. In the example below the full path its:
“c:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN”. Copy the full path. Go to
Environmental variables once again (“Control Panel / System and security / System” and click
“Advanced system settings”), and define a new system variable “TNS_Admin” with a value equal
to the path you copied.

7
2.4. Restart your computer. When it starts again, remember to Start your database by clicking “Start
Database” in the Start Menu. Now you can run SQL Tools.
3. Run SQL Tools. Now you can log in to the database. currently the only user that exists is the system
administrator (SYS or SYSTEM). Type “SYSTEM” in the user field and your password (the one you
chose during database installation). Select “xe” in the TNS field. Now you have logged on.

4. It is convenient to Click “View/Object List” in order to permanently see all your tables.

8
5. If you want to create another user, please type:
CREATE USER new_user_name IDENTIFIED BY password_for_the_user;
GRANT CREATE SESION TO new_user_name;
GRANT ALL PRIVILEGES TO new_user_name;
And then, press “F5” or click the “Execute script” button.

9
Now you can log on to the database as the new user (”student” in the example below). Work after
being logged as the new user (not the system administrator). While using SQL Tools, you can type
your SELECT statements and execute all your queries.

10
INSTALLING ORACLE SQL DEVELOPER
1. Find SQL Developer on the Oracle’s website. Download it and extract to any folder on your
computer, e.g. the folder of your database.

2. Run SQL Developer by clicking “sqldeveloper” icon in the directory. It is useful to add a shortcout
on the desktop.

11
3. Click “New Connection”.

Define connection name (the name you want to use for the connection), put user name and
password (for the user you have created previously through SQL Tools, or for the SYSTEM user).
Click connect.

Now you can find all the tables of the user.

12
4. If you want to create a new table and import data from an external source (e.g., a txt/csv file or
an excel spreadsheet). You can right-click “Tables (Filtered)” on the left and select “Import data…”.
After you import your data you can execute scripts (SELECT statements) and get result sets with
the use of SQL Developer or SQL Tools.

13

You might also like