You are on page 1of 6

*****First of all needs to create the directories which mentioned in the below steps

Go to D: drive right click and select new folder and rename it as oracle

Go into “oracle” and do the same thing and now rename it as “databases” and inside “databases”
create “ora10” and like this so on….required folders in GUI..

Specifying the instance SID:

D:\oracle\product\10.2.0>set ORACLE_SID=HOTL

# D:\oracle\product\10.2.0 is the path where we have installed the software


# is the instance name

Creating an oracle service:

On Windows, each instance requires a Windows service. This service must first be created with oradim :

D:\oracle\product\10.2.0\Db_1>oradim -new -sid %ORACLE_SID% -intpwd MYSECRETPASSWORD


-startmode M

Output is:Instance created.

Creating the parameter file:

%ORACLE_HOME%\database is the location for parameter file(init.ora)

We have to copy that into initnag.ora and modify the meters in the parameters in the file according to
our environment

Must and should below parameters:

Bdump=d: /oracle/databases/ora10/admin/bdump
Cdump= d: /oracle/databases/ora10/admin/cdump
Udump= d: /oracle/databases/ora10/admin/udump

Control_files = (d:\oracle\databases\ora10\control01.ora,

d:\oracle\databases\ora10\control02.ora)

undo_management = auto

db_name = HOTL

db_block_size = 8192
Now we have to make the directories

d:\oracle\databases\ora10\control01.ora

d:\oracle\databases\ora10\control02.ora

now connect to databse.

Assume you are in oracle user

D:\oracle\product\10.2.0\Db_1>sqlplus /as sysdba

SQL*Plus: Release 10.2.0.2.0 - Production on Sat Mar 5 16:05:15 2005

Copyright (c) 1982, 2004, Oracle. All rights reserved.

Connected to an idle instance.

At this stage ideal instance is started

SQL>startup nomount pfile= ‘D:\oracle\product\10.2.0\Db_1\database/initNAG.ora’;

SQL>

Now we have to create database (datafiles, redolog files) by creating a new controlfile in this step.

SQL>

SQL>create database NAG


logfile group 1 ('D:\oracle\databases\ora10\redo1.log') size 10M,

group 2 ('D:\oracle\databases\ora10\redo2.log') size 10M,

group 3 ('D:\oracle\databases\ora10\redo3.log') size 10M

character set WE8ISO8859P1

national character set utf8

datafile 'D:\oracle\databases\ora10\system.dbf'

size 50M

autoextend on

next 10M maxsize unlimited

extent management local

sysaux datafile 'D:\oracle\databases\ora10\sysaux.dbf'

size 10M

autoextend on

next 10M

maxsize unlimited

undo tablespace undo

datafile 'D:\oracle\databases\ora10\undo.dbf'

size 10M

default temporary tablespace temp

tempfile 'D:\oracle\databases\ora10\temp.dbf'

size 10M;

SQL> Controlfile Created (output)

SQL> alter database mount;


SQL> database mounted (output)

SQL> alter database open resetlogs;

SQL>database opened (output)

****From the above steps Database has been created successfully.

Just verify some information as shown below

SQL>select name,open_mode from v$database;

NAME OPEN_MODE

---- ----------

NAG READ_WRITE

SQL> select instance_name,status from v$instance;

INSTANCE_NAME STATUS

--------------- -------

NAG OPEN
***From the above 2 steps we got to know database is open for all connections and operations

Create additional tablespaces what you want like below:

SQL> create tablespace USERS datafile 'D:\oracle\databases\ora10\users.dbf' size 100M;

SQL> tablespace created (output)

Create additional users what you want like below

SQL>create user RAJAMOULI identified by MAGADEERA;

SQL> user created

You might also like