Professional Documents
Culture Documents
You can experience the SQL from Oracle, MySQL and Microsoft SQL in a one go. For example
create a table in Oracle and check how this table created on MySQL and MS SQL Server
With a bare minimum of 4 Gb RAM Laptop or Virtual Machine you can install all the three
very smartly
If you install on a Laptop, you can start the databases when you need and use your memory
efficiently
Learning to do a clean and good installation. The "Set the Service to Manual" explains further
If your aim is gathering good SQL knowledge and/or you think of ETL Development , it is good
to have an experience of SQL from the three popular databases
If you have three Drives you can allocate each drive for a specific software or at least one
extra drive is well and good
If you do not, even though we can perform a good installation !
In my case I installed all the 3 databases on a separate single drive
On Windows .Net is very important. If your installation is on a Laptop make sure you have
.Net 3.5 installed. Run the Windows Update or recheck for it
In the MS SQL Express Advanced 2008 R2 section you can see the download links for .Net if
you install on a Virtual Machine
Now move the mouse to "Downloads". You see Oracle Database 11g Express Edition
Accept license and Download :
Oracle Database Express Edition 11g Release 2 for Windows x64 and
Click on SQL Developer to download "Oracle SQL Developer 4.0.3. For 64 bit including Java"
go for -> Windows 64-bit -zip file includes the JDK 7
Unzip and double click the "setup" to start the installation
Click on Run to start the installation
Directory Selection :
It is very bad to mix or install other Software in C drive. For example in the C:\Programs\
If you have only one drive, say C, it is a good thing to install under C. For example C:\Oracle
but not a good thing to install in C:\programs etc.
Click on Browse to select a different Drive
Create a folder "oraclexe " if you want to install on different Drive. The below pictures show
my installation on a separate drive
Open SQL Window to learn basic shutdown and startup of a Oracle Database using
commands
Say for an example when you downloaded SQL Developer it is saved in Downloads folder.
Unzip it and open it
Copy or move this folder to C Drive. You can see that in the below screenshots
Right click on this and create a short cut to Desktop (send to Desktop)
Open SQL Developer from desktop now and click on "run" and click on "no" when the
message to migrate older version is asked.
If you live in non English country it is possible the interface will be switched to non English
Below is the configuration file to change the SQL Developer interface to English
Do not open this file with "notepad" but better to open with "WordPad"
Click on OK
Now navigate the Folder "SQL Developer" on your laptop. On my laptop it was as below
Note this path and save it in this file in same way you did for changing the interface to English
language previously
Save and close the file. Below is another SQL Developer Configuration File. Just for
Information
Click on "Test" after giving the details to see the connection status "success" and then check
box "save password". Finally click on Save to save this connection.
To connect click on "connect"
Expand this connection "sys-conn" and finally "other users"
Right click on "HR" to open "edit user" and give password and unlock account. Finally Apply.
Example below shows granting the DBA Role to this user. Click on SQL to see the SQL
Statement. Further see other roles and privileges
Shutdown the database now using SQL Command window that we did in previous step.
We put this Oracle Service to "manual" so that the database is not started automatically.
Open Task Manger and click on "Services" (You can open Task Manager by right click on the
Time, which is at the bottom right on your laptop)
Click on any Service name and press the "o" key ( you save time in searching a Service )
Right click on this now and set it Manual and press Apply button
When you need it work with Oracle you start the "listener" first and then "Service".
Both are important to connect to Oracle database.
Note : MySQL Installer is 32 bit, but will install both 32 bit and 64 bit binaries.
In my case it was :
Go for defaults
Click on execute and watch for the water level rise and later on click next
Give a password for MySQL Root password and see the Service name
Click on execute and watch for the water level rise and later on click next
Allow to start MySQL Workbench and finally click on Finish to complete the installation
Click on options Files in the left pane and see the location of the Configuration File
Create a MySQL Workbench short on the Desktop. Right click on in it and select "send to
Desktop shortcut"
We put this Service to manual so that it does not start up when the laptop is started.
Open Task Manger and click on "Services" (You can open Task Manager by right click on the
Time, which is at the bottom right on your laptop)
Click on any Service name and press the "m" key ( you save time in searching a Service)
Right click on this now and set it Manual and press Apply button.
When you want to use MySQL you have to just start the Service by clicking on "start"
Prerequisite is .Net 3.5 SP1. If you are installing on a Laptop the Windows update would
install it for you. Just run the Windows Update
If you are installing on a Virtual Machine then download it
Download link for .Net 3.5 SP1
http://www.microsoft.com/en-us/download/details.aspx?id=25150
It is of 231 MB size and full package. This is a offline installer of .Net 3.5 SP1. Although I had
installed .Net framework 4 it still threw error
Download link for MS SQL Server Advanced 2008 R2
The SS Express Advanced comes with the Management Studio. This is an important tool
http://www.microsoft.com/en-us/download/details.aspx?id=25174
Select " SQLEXPRADV_x64_ENU" for 64 bit laptop
Takes some time to open up. Click on run to start the installation
Click on "Use the same account..." and let the default account take in this installation.
Create a directory to hold the instance related files. You can follow my example for creating
the names for directories
If you have only C drive even then you create directories to hold the files.
In the MS-SQL-DATA directory there was another directory called "Instances" created. See
the next screenshots for other directories were created
Below are the other directories to hold Temp DB (temporary database) and the databases
created by us are called "user databases".
Right click on Databases to create a new database. Just give a name to create a user
database
Click Refresh to see the newly created user database
After the disconnect from instance you can set the Service to Manual so that SQL Server
does not start up automatically for you
Open Task Manger and click on "Services" (You can open Task Manager by right click on the
Time, which is at the bottom right on your laptop)
Click on any Service name and press the "s" key (you save time in searching a Service). We
set all the SQL Services to Manual
Right click on the service and set it to Manual. Do not forget to press Apply.
In order to connect the other databases using SQL Developer we need to install 3rd party
drivers
Download Link for MySQL Driver
http://dev.mysql.com/downloads/connector/j/
Download Link for MS SQL Server Driver (download this zip file)
http://sourceforge.net/projects/jtds/files/jtds/
Unzip the folder and move or copy the folder to Program Files (x86). In my case it was
In SQL Developer, right click on Connections and you should see this
Click on, for example MySQL , a MySQL Tab to make a connection to MySQL Database from
SQL Developer