- Setup a database, using the Database Configuration Assistant. You can search it in the search box of Windows.
- Click next
- Choose "Create a database" and click next
- Choose "General Purpose or Transaction Processesing" and click next
- Put "libsysdb" in Global Database Name. The SID should also be "libsysdb". Click next
- Just click next again
- Choose "Use the same administrative password for all accounts" and type in "password" for the password. Click next, then yes.
- Choose "Use database file locations from template". Click next
- Just click next again
- Click next again
- Click next
- Click next
- Click finish
- After creating the database, open the command prompt and type in "sqlplus / as sysdba"
- You should be connected now to Oracle 11g. Then create a user and password by typing in "create user okichinko identified by okichinko;"
- After that, type "grant all privileges to okichinko;"
- Open SQL Developer, and go to "Databases Detected" in the Welcome page
- Click on "LIBSYSDB"
- You should see the LIBSYSDB under the Oracle connections now. Double click on it, and type in "okichinko" for both username and password.
- You should be successfully connected to the database now.
- Download ojdbc6.jar
- Open Netbeans
- From menu bar, click Windows > Services
- Right click on Drivers > New Driver > Add, then select the ojdbc6.jar. Click OK. Oracle Thin should be added in Drivers already.
- Drop-down the Drivers folder, right-click on Oracle Thin, then click "Connect Using..."
- Fill the Service ID (SID), username, and password, then test the connection by clicking "Test Connection" (SID: libsysdb)
- Wait for a new database to pop-up. It must be something like "jdbc:oracle:thin:@localhost:1521:libsysdb"
- Right-click on it, then click Connect using the username and password (okichinko)
- Create a new project "Library System"
- Copy the java files in this repository
- Run the file to test connection