Professional Documents
Culture Documents
Experiment No.: 1: Installation of Oracle 11g On Windows
Experiment No.: 1: Installation of Oracle 11g On Windows
Experiment No. : 1
Introduction:
3. 1982 Version 3 - First portable database (mainframes, minicomputers, and PC); first
RDBMS to support SMP
4. 1984 Version 4 - First portable toolset; first RDBMS for IBM PC, introduced read
consistency, was ported to multiple platforms, interoperability between PC and server.
5. 1986 Version 5 - First distributed database, first true client/server database, VAX-
cluster support, and distributed queries. Row Level Locking.
7. 1989 Version 6.2 - Symmetric cluster access using Oracle Parallel Server.
11. 1997 Version 8 - First web database, object-oriented development and multimedia,
Binary datatypes, Table Partitioning. Very Large Database (VLDB) features.
12. 1998 Oracle8i - Java support, SQLJ, XML and Oracle interMedia.
14. 2000 Oracle8i Release 2 - Oracle tools integrated in middle tier: 9i Application Server
available.
15. 2001 Oracle9i Release 1 - RAC and Advanced Analytic Service (business
intelligence), Fine-grained auditing.
17. 2004 Oracle10g - Flashback Query, Data Pump, Automatic Storage Management,
Backup Compression.
18. 2007 Oracle 11g - Cube Organized Materialized Views, Database Replay
(performance analyzer), row-level compression, Referential Partitioning, Real
Application Testing (Option)
19. 2009 Oracle 11g R2 - Database File System (DBFS), ASM Intelligent data placement,
column-level compression, Analytic functions 2.0, Recursive WITH clause, In-
Memory Parallel Execution
Oracle 11g:
Oracle 11g XE is a free edition of Oracle database which supports most of the
functionality of Standard edition. 11g XE is available for Windows and Linux.
Installation:
First, download the Oracle 11g XE and unzip the package. The setup.exe is located at
DISK1 directory. When installation starts, a welcome screen is shown followed by the license
agreement. After these, Oracle checks the requirements for installation, which are:
The next step is to define the installation folder. The default is oraclexe. After that, the
installation prompts for database passwords. This password will be used for both SYS and
SYSTEM. You should use a very strong password as these users are the typical
administrators of an Oracle instance. Also changing for example SYS password to something
else after the installation helps to distinguish these users when logging into the system.
And at the end, before the actual installation, the Summary screen is shown. Note, the
default ports that are used for the instance:
Listener: 1521
Services for MTS: 2030
HTTP listener: 8080
After the installation has ended, let’s have a look at the things that were installed.
Services
If you open the computer management and have a look at the services installed, you’ll
find five new services.
OracleServiceXE
This is the actual database engine.
OracleXETNSListener
This service is responsible for listening to incoming connections and passing
successful connections to the database engine. Note that if this service is down, you
won’t be able to connect to the database remotely. Existing connections won't be
affected.
OracleJobSchedulerXE
This service is used when external jobs are run. By default, it is disabled. If you plan
to run external jobs (such as executables, batches, etc.), modify the account the service
uses to use proper, low-privileged credentials and start the service.
OracleXEClrAgent
On Windows platforms, Oracle offers CLR integration. Since a CLR operation is run
using an extproc process, it’s normally done using a dedicated (single threaded)
extproc for a single session. This may not be the optimal way to handle CLR calls.
ClrAgent provides a multi-threaded mechanism so that a single extproc process may
serve several CLR calls.
OracleMTSRecoveryService
This one is responsible of resolving in-doubt transactions when Oracle is participating
in distributed transactions with Microsoft Transaction Server.
Programs
Start and Stop Database are used to control the OracleServiceXE service
Backup and Restore Database are scripts for backing up or restoring the database data
Run SQL Command Line opens a console based SQL* Plus which can be used to execute
SQL commands or to run scripts against the database
Get Started opens a web site used for investigating
storage, the amount of disk space used by tablespaces or drill to segments
current sessions and basic information about the sessions such as client and application
information and active SQL statement
parameters show current initialization parameter values.
After login using ‘system’ user credentials, Oracle Application Express is used to create
new user and workspace and for further activities like, writing queries and running
Create User:
We can create a database user with the CREATE USER statement. To create a user,
we must have the CREATE USER system privilege. Because it is a powerful privilege, a
database administrator or security administrator is usually the only user who has the
CREATE USER system privilege.
Each Oracle database has a list of valid database users. To access a database, a user
must run a database application, and connect to the database instance using a valid user name
defined in the database. Oracle Database enables you to set up security for your users in a
variety of ways. When you create user accounts, you can specify limits to the user account.
You can also set limits on the amount of various system resources available to each user as
part of the security domain of that user.
Tablespace:
A tablespace is a logical storage unit within an Oracle database. It is considered
logical because a tablespace is not visible in the file system of the machine on which the
database resides.
The tablespace itself is made up of one or more datafiles which are stored in the
server's file system. A datafile belongs to one and only one tablespace (the datafiles are not
shared among tablespaces).
Every table, index, and other object stored in an Oracle database belong to a
tablespace. The tablespace acts as a link or conduit between the database and the physical file
system where the table's or index' data is stored.
Types Of Tablespaces
Permanent tablespaces
Undo tablespaces
temporary tablespaces
Creating Tablespaces:
Tablespaces are created using the CREATE TABLESPACE command
CREATE TABLESPACE <tablespace_name>
Dropping A Tablespace:
Dropping a tablespace is done using the DROP TABLESPACE command
DROP TABLESPACE ts_tablespace;