1. LECTURE -1
INSTALL ATION &
UNINSTALL ATION
ORACLE
L e c t u r e D e l i v e r e d B y :
S h u b h a m S h u k l a
( A s s i s t a n t P r o f e s s o r )
( D e p a r t m e n t o f I T , G . L . B a j a j I n s t i t u t e o f T e c h n o l o g y & M a n a g e m e n t , G r . N o i d a )
2. INSTALLATION
• Purpose:
Installation of the Oracle Database 12c Release-1 software on Microsoft Windows.
• Hardware and Software Requirements:
i. Minimum 2 GB of physical memory
ii. Sufficient virtual memory (swap)
iii. At least 10 GB of free disk space
• Prerequisites
i. Have access to the Oracle Database 12c distribution media, or have an internet
connection so that you can download the software
ii. Have general knowledge of product installation
3. DOWNLOADING THE ORACLE SOFTWARE
• Step1. open link
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
Step2- Accept the OTN License Agreement
Step3- Move to Oracle Database 12c Release 1
Step4- Download Enterprise edition 12.1.0.2.0
i. It will open login window –
4. If have credentials already then login otherwise click on signup to create account with oracle (Its only for update and
authentication purpose no money will be charged for it).
ii. After login it will start downloading.
iii. Download both File 1 and File 2
Step4- Create a new folder lets name it ‘Oracle’ on your drive (lets its E drive) and paste both downloaded zip file on oracle
folder. Now
I. Extract winx64_12102_database_1of2
II. Extract winx64_12102_database_2of2
5.
6. Step5- Both file will be unzipped under database folder.
Step-6 Open database folder, it will looks like –
22. LOGIN
Enter user-name: OracleHomeUser1 as sysdba
Password: Welcome1
Note: Use Username and password that you defined during installation phase.
Now You are ready to work on Oracle i.e. start execution of SQL commands
23. UNINSTALLATION
Manual Approach
Step 1: Delete Environment Variable.
Right Click your Computer Icons and Select “Properties”. Then from the left hand side
panel of the System Properties Windows Select “Advance System Settings”. This will
open up “System Properties” Windows.
Inside the “System Properties” Windows go to “Advance” Tab and select “Environment
Variable”
On the “Environment Variable” Window inside the “System Variable Section” Find entry
with the name “Path”, then double click and open it. Doing so will open up an “Edit
System Variable” dialogue box. On that dialogue box under the “Variable value field”
your Oracle Home entry and Delete it.
24.
25.
26.
27.
28.
29.
30. Step 2: Delete Registries
Press Win Key + R --> Run Dialouge Box
Write regedit in text box.
31.
32. 1. Now first we have to delete the “Oracle Software” Registry. To access this registry first go to
HKEY_LOCAL_MACHINE and then go to sub directory SOFTWARE. Under the software – search for
directory “Oracle”. Once you have reached this directory, right click and Delete it.
HKEY_LOCAL_MACHINE --> SOFTWARE --> ORACLE
2. To access these registries first go to HKEY_LOCAL_MACHINE and then go to sub directory “Systems”
then “CurrentControlSet” and then “Services”. Under the Services directory you have to find all the
Registries which are responsible for your oracle database services. If Oracle Database 12c is the only
product from Oracle that is installed on your system then search for all the registries whose names start
with Oracle and Delete them. If you have other products from Oracle installed on your system then be
careful and delete accordingly. In the screenshot below you can see some general Oracle Service
Registries.
HKEY_LOCAL_MACHINE → SYSTEM → CurrentControlSet → SERVICES
33.
34. • Step 3: Restart your system.
• Next you have to restart your system so that your operating system can blend in all the settings
we just altered.
• Step 4: Delete the Oracle Home Directory
• An Oracle home is a directory into which all Oracle software is installed. Once you have deleted all
registries of oracle database 12c you are free to delete oracle home directory from your system. In
order to delete Oracle Home open up your computer and go to your C drive as well as any other
where you have installed your oracle database 12c. Now go to APP directory then to the directory
your username here select all the files and delete them. If you want to save backups then do not
delete flash_recovery_area.
If in case your folder is not getting deleted then don’t worry. First try to refresh your system or you
also reboot the system then try deleting again. If it is still not deleting then re-check the services and
registries and see whether you have deleted all the oracle registries or not. If not then delete those
that are still left and then try deleting the Oracle database folder again.
In case not able to delete run cmd as administrator and run rmdir app /s command to delete it.
•
35. • Step 5: Delete Directory from Program File
• Next go to your program file directory and search for folder with the name Oracle. I have
one here and then delete it.
36.
37. • Step 6: Delete Directory from Start Menu.
• Next you have to delete the directory from start menu. For that go to
“C:ProgramDataMicrosoftWindowsStart MenuPrograms” and here search for
Oracle Folder and delete it.
38. • Step 7: Clear the Temporary files and Recycle bin
• Again open your Run dialogue box and write %temp% this will open the temporary
folder and here delete all the files. Next come to your desktop and empty your
bin.
39. • Step 8: Delete the Oracle user
• Next and the last step is to delete the oracle home user which we created during the installation of the oracle database. In
order to do so, right click “Computer Icon” and select “Manage”. Inside the computer management window click “Local
Groups” and then click and open “Users” folders. From the list of the user you can delete the ones which you have
as an oracle home user during the installation. Then select Right click and Select Delete.
• For window 10 type computer management and open it, I have shown it below:
• Now oracle is completely uninstalled from your system.
42. • Click the Deinstall Products button.
• The Inventory window appears.
• Select the Oracle home you wish to remove. Expand the tree of installed components
only if you want to remove selected components of an Oracle home.
• For example, if you installed Oracle Database Client with the Runtime option and later
installed additional components with the Custom option, then expand the Oracle
home component to display all the components installed in the Oracle home.
• Check the boxes of components to remove.
• Click Remove.
• The Confirmation window appears.
• Click Yes to remove the selected components.
43.
44. • Note:
• A message may appear indicating that removing some components may cause other
components to not function properly.
• After the components are removed from your computer, the Inventory window
appears without the removed components.
• Click Close to close the Inventory window.
• Click Cancel to exit Oracle Universal Installer.
• Click Yes to confirm that you want to exit.
• After Oracle Universal Installer exits, go to the next section to remove the remaining
Oracle Database Client components.
• Then restart the computer.
45. THANK YOU
• In case you face any problem in any step please email me on the emailed with the detailed problem including snapshot
of problem.