26
Oracle 11g Express Edition Release 2 Guide This is an installation and setup guide for use of Oracle 11g Express Edition Release 2 and of Oracle SQL Developer. This guide is intended for research and educational purposes and is not intended for commercial use! By Frankie Inguanez

Oracle 11g Express Edition Release 2 Guide - … 11g Express Edition Release 2 Guide This is an installation and setup guide for use of Oracle 11g Express Edition Release 2 and of

  • Upload
    lyhanh

  • View
    256

  • Download
    2

Embed Size (px)

Citation preview

Oracle 11g Express Edition Release 2 GuideThis is an installation and setup guide for use of Oracle 11g Express Edition Release 2 and of Oracle SQL Developer. This guide is intended for research

and educational purposes and is not intended for commercial use!By Frankie Inguanez

Table of Contents................................................................................................................................Disclaimer 3

....................................................................................................................File Requirements 3

................................................................................................................................Installation 4

......................................................................................................Downloading of software 4

.................................................................................................................Server Installation 4

...........................................................................................................................Configuration 8

..............................................................................................................Oracle XE Interface 8

..................................................................................................................SQL Developer 15

.....................................................................................................................Troubleshooting 19

..................................................................Adding a new user to the Oracle XE database 19

.......................................................................................................Changing of password 22

..................................................................................................................................Notes 23

.............................................................................................................................Resources 25

.......................................................................................................................Oracle Links 25

..................................................................................................................Contact Details 26

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 2 of 26

Disclaimer

This guide has been written by Mr. Frankie Inguanez for research and educational purposes

and no profit has been generated through the production of this document.

The software used during the writing of this guide was up to date and accurate, the user should ensure that the latest version is obtained and that any security updates installed.

The Oracle brand and all Oracle products belong to Oracle Inc. and in no way is related to

Frankie Inguanez

File Requirements

1. Oracle Express Edition 11g Release 2

2. SQL Developer 3.0

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 3 of 26

Installation

Downloading of software1) Obtain the latest version of the Oracle Express Edition from the product website and

install it.

Server Installation2) After successfully downloading the latest version of the Oracle Express Edition

server start the installation.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 4 of 26

3) Click next after the welcoming screen is displayed.

4) Read through the End User License Agreement then click agree then next.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 5 of 26

5) Enter the specifications for the installation of the server.

6) Enter the database password to be used by the SYSTEM user.

N.B. Take note of this password since it will be required in the future.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 6 of 26

7) Confirm that all details are correct and click next.

8) Wait for the installation to complete.

9) When the installation has ended click finish.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 7 of 26

Configuration

Oracle XE Interface1) Open the Oracle XE interface by typing the following URL in a web browser: http://

localhost:8080/apex

2) Select the Application Express tab and create a new user named HR.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 8 of 26

3) A notification will confirm that a new user has been created under the HR

workspace. Proceed to login.

4) Login using the new credentials.

N.B. The workspace name is the same as the username.

5) Use the dashboard to control the system.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 9 of 26

6) Enter the administration section.

7) Select the manage users and groups then enter the groups section. Click on the Create User Group button.

8) Enter the group details and create the Create Group button.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 10 of 26

9) Enter the users tab and click on the Create User button.

10) Enter the user details then click on the Create User button.

N.B. Add any users that you might want to allow to enter your workspace.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 11 of 26

11) Proceed to the SQL Workshop section.

P.S. The tables shown above have been created at an earlier stage.

12) Select the SQL command option and enter any SQL statement of your choice click on the Run button after selecting the number of rows to display.

N.B. Note that the lower section is dedicated to displaying more than just the results, but also past SQL statements, an explanation of the result and the structure

of the table.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 12 of 26

13) Logout of the interface and try to login using the newly created user.

N.B. Note that the workspace is still the HR workspace since the new user has been

created under that workspace.

14) You will be asked to change the password immediately. Enter the current, new and confirmation password then click on the Apply Changes button.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 13 of 26

15) You will have to login again using the new password.

16) Attempt to use the SQL Command tool to confirm that the new user has access to the objects found in the workspace.

P.S. At this stage you can continue testing the server or logout.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 14 of 26

SQL Developer

17) Launch the SQL Developer IDE

18) Select any file type association that you might want linked to SQL developer.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 15 of 26

19) Open the Connections tab, right-click on the Connections treeview icon and select

the New Connection option.

20) Enter the following details in connections dialog window. Then click Test to ensure

that the settings are correct.

Connection Name: Oracle XE

Username: SYSTEM

Password: <The password used during the server installation>

Connection Type: Basic

Hostname: localhost

Port: 1521

SID: xe

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 16 of 26

21) You need to unlock the HR user (and all other users created) that has been

previously created through the Oracle XE interface by typing the following SQL statement in an active SQL Worksheet:

ALTER USER hr IDENTIFIED BY 123 ACCOUNT UNLOCK;

N.B. To execute a single statement type F9, to execute an SQL script type F5.

N.B. 123 is the new password.

22) Disconnect from the current Oracle XE connection.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 17 of 26

23) Edit the properties of the Oracle XE connection.

24) Enter the username and password of the HR user or of any other new user.

P.S. Click the test button then the save and connect buttons. Proceed to using the

IDE as before.

N.B. You can change your password by executing password in an active SQL

worksheet.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 18 of 26

Troubleshooting

Adding a new user to the Oracle XE database

1. Open the application express home page from the start menu.

2. Click on the Application Express menu item from the menu toolbar.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 19 of 26

3. You will be asked to log into the system. Use the SYSTEM username and the

password you entered during the server installation.

4. If you login successfully you will be redirected to the Appplication Express page.

Where you can enter the new user details and create the account as shown previously.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 20 of 26

5. If the workspace has been created successfully click on the logon link in the right

section.

6. Enter the details of the workspace and user account then login.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 21 of 26

Changing of password

1. Load the SQL Developer IDE.2. Connect to the Oracle Server

3. Type the following command:password

4. Execute the statement.

5. You will be prompted to enter a new password and to confirm the password.

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 22 of 26

Notes

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 23 of 26

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

_________________________________________________________________________

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 24 of 26

Contact Details

In case you need to query about this report or would like to provide feedback you can use the following contact details:

Name:!! Frankie Inguanez

E-Mail:! [email protected]

Linked-in:! http://mt.linkedin.com/in/frankieinguanez

Oracle 11g Express Edition R2 and SQL Developer Guide

Frankie Inguanez - 2011 Page 26 of 26