advanced db lab1
TRANSCRIPT
-
8/4/2019 Advanced DB Lab1
1/14
Advanced Database Lab1: Oracle 10g
Installation
Pre-Installation Checks
Before you can install Oracle 10g in your
machine, you need to check that the
machine configurations are suitable for
Oracle installation. Oracle 10g requires at
least Pentium 3 or Pentium 4 based PC or a
PC with equivalent CPU, running at a clock
speed of at least 800 MHz. The system will
also require at least 256MB of Ram and a
hard disk free space of 10GB (1.5 for zipped
installation file, 1.5 GB for Oracle installationunzipped file,2GB installation size, and 2 to
5GB for Oracle data files). If the RAM
available is 256 MB, the swap page of virtual
memory needs to be at least 400 MB. To
check the configuration of your PC, right
click on My Computer and then click
Properties. To check the virtual memory
size, right click on My Computer, go to
Properties->Advanced System Settings-
>Advanced->(Performance)Settings-
>Advanced (Windows Vista)
-
8/4/2019 Advanced DB Lab1
2/14
Properties->Advanced-
>(Performance)Settings->Advanced
(Windows XP)
You can change the size of virtual memory
from here using the Change button.
-
8/4/2019 Advanced DB Lab1
3/14
How to uninstall Oracle database
software: (Skip this if Oracle is not
already installed on your system)You need to uninstall Oracle 10g first in case
it is already installed on your system.
Following is the procedure for for unistalling
Oracle 10g.
1. Uninstall all Oracle components usingthe Oracle Universal Installer (OUI).(Start - All Programs - Oracle 10g DS -Oracle Installation Products - Universal
Installer.)2. Run regedit.exe and delete the
HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE key. This containsregistry entire for all Oracle products.
3. Delete any references to Oracle servicesleft behind in the following part of theregistry: HKEY LOCAL MACHINE/SYSTEM/ CurrentControlsSet/
Services/Ora*. It should be prettyobvious which ones relate to Oracle
4. Reboot your machine.5. Delete the C: \Oracle directory, or
whatever directory is your Oracle_Base.6. Delete the C:\Program Files \Oracle
directory.
-
8/4/2019 Advanced DB Lab1
4/14
7. Empty the contents of your c:\tempdirectory.
8. Empty your recycle bin.
Installing Oracle 10g database
software :
Insert Oracle CD , the autorun window opens
automatically. If you are installing from
network or hard disk, click setup.exe in the
installation folder.
The Oracle Universal Installer (OUI) will run
and display the Select Installation
Method Window.
Choose Basic Installation:
Select this option to quickly install Oracle
Database 10g. This method requires
-
8/4/2019 Advanced DB Lab1
5/14
minimal user input. It installs the software
and optionally creates a general-purpose
database based on the information youprovide.
For basic installation, you specify the
following:
Oracle Home Location Enter thedirectory in which to install the Oracle
Database 10g software. You must specify a
new Oracle home directory for each new
installation of Oracle Database 10g. Use the
default value, which is :
c:\oracle\product\10.2.0\db_1
Installation Type Select Enterprise
Edition
If you have limited space, select standard
edition. Personal edition installs thesame software as the Enterprise Edition, but
supports only a single-user development
and deployment environment.
Create Starter Database Check this
-
8/4/2019 Advanced DB Lab1
6/14
box to create a database during installation.
Oracle recommends that you create a
starter database for first Create StarterDatabase time installations. Choose a
Global Database Name, like cs157b, or
just use the default value.
Type a password. (Please Enter adb as
password. I will check to make sure that
everyone has entered adb as password Dr.
Shafi) Dont lose this password, since
you will need it to connect to the database
server.
Click next
The Product-Specific Prerequisite
Checks window appears: Click next
-
8/4/2019 Advanced DB Lab1
7/14
A summary screen appears showing
information such as your global settings,
space requirements and the new products to
be installed. Click Install to start theinstallation.
-
8/4/2019 Advanced DB Lab1
8/14
The Install window appears showing
installation progress.
At the end of the installation phase, the
Configuration Assistants windowappears. This window lists the configuration
assistants that are started automatically.
If you are creating a database, then the
Database Configuration Assistant starts
automatically in a separate window.
-
8/4/2019 Advanced DB Lab1
9/14
At the end of database creation, you are
prompted to unlock user accounts to make
the accounts accessible. The SYS and
SYSTEM accounts are already unlocked.
Click OKto bypass password management.
-
8/4/2019 Advanced DB Lab1
10/14
Note: Oracle 10g still keeps scott / tiger
username and password (UID=scott,
PWD=tiger) from the old version of oracle.
In the old version of oracle, scott/tiger userID is available by default, but not in oracle
10g. If you want to use scott /tiger account,
you must unlock it by clicking Password
Management at the last window.
Password Management window will appearlike the one shown below. Find the user
name Scott and uncheck the Lock
Account? column for the user name.
Your installation and database creation is
now complete. The End of Installation
-
8/4/2019 Advanced DB Lab1
11/14
window displays several important URLs,
one of which is for Enterprise Manager.
You can navigate to this URL in your
browser and log in as the SYS user with the
associated password, and connect as
SYSDBA. You use Enterprise Manager to
perform common database administration
tasks
Note : you can access Oracle Enterprise
Manager using browser by typing the URL
shown above in your browser. Instead oftyping the IP address, you can also access
the Enterprise Manager by typing
http://localhost:1158/em or http://
[yourComputerName]:1158/em or by
clicking Start >> All Programs >>
Oracle [YourOracleHome_home1] >>
-
8/4/2019 Advanced DB Lab1
12/14
Database Control [yourOracleID] in
Windows menu.
By default, use user ID SYSTEM, with thepassword that you have chosen at the
beginning of installation, to connect to
database, SQLPlus, etc. If you want to use
other user ID, you may create a new user .
Post Installation Tasks:
Go to http://localhost:1158/em
Enter SYS as user name
Enter the password that you chose during
installation
Choose SYSDBA option in the connect as
drop-down and click on the login button
Scroll down the page and click on the I
agree button to proceed further. Now youare logged in as the user SYS. You can
logout on the right-top logout button.
http://localhost:1158/emhttp://localhost:1158/em -
8/4/2019 Advanced DB Lab1
13/14
-
8/4/2019 Advanced DB Lab1
14/14
Your database configuration files have been
installed in D:\oracle\product\10.2.0 whileother components selected for installation
have been installed in
D:\oracle\product\10.2.0\db_1. Be cautious
not to accidentally delete these
configuration files.
The iSQL*Plus URL is:
http://ImranKhan-PC:5560/isqlplus
The iSQL*Plus DBA URL is:
http://ImranKhan-PC:5560/isqlplus/dba