Creating a new database and new connection in Oracle SQL Developer
Connect to sys.
Give your password for sys.
Unlock hr user by running following query:
alter user hr identified by hr account unlock;
Then, Click on new connection
Give connection name as HR_ORCL
Username: hr
Password: hr
Connection Type: Basic
Role: default
Hostname: localhost
Port: 1521
SID: xe
Click on test and Connect
This tutorial should help you:
Getting Started with Oracle SQL Developer
See the prerequisites:
- Install Oracle SQL Developer. You already have it.
- Install the Oracle Database. Download available here.
Unlock the HR user. Login to SQL*Plus as the SYS user and execute the following command:
alter user hr identified by hr account unlock;
Download and unzip the sqldev_mngdb.zip file that contains all the files you need to perform this tutorial.
Another version from May 2011: Getting Started with Oracle SQL Developer
For more info check this related question:
How to create a new database after initally installing oracle database 11g Express Edition?