Iam trying to create DB Manually instead of DBCA. this is what i have done...
Win2K and Oracle9.2
1) set ORACLE_SID=heatdb
2) created initheatdb.ora file , included all relevent info like db_block_size....etc. and saved that file in
c:\oracle9i\ora92\admin\heatdb\pfile
3)Created a sql script that includes info about CREATE Database Script
***********************************just a sample*********
CREATE DATABASE heatdb
MAXINSTANCES 1
MAXLOGHISTORY 1
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXDATAFILES 100
DATAFILE 'c:/oracle9i\ora92\oradata\heatdb\system01.dbf' SIZE 325M REUSE
************************************* just a sample ********
4) then i went to DOS prompt....and issued the following Command
*****************************************************
C:\>sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on Tue Jan 7 16:37:44 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect / as sysdba
ERROR:ORA-12560: TNSrotocol adapter error
So my questios are
1) how can i create a Database manually, by running the script which i created in STEP 3. Its not conencting me into the database
2) Am i doing the right Way ?..
3) is there any alternate way we can create DB manually ?
what is sometimes useful is running dbca thwn saving the create scripts instead of running them, then you can see what needs to be done to start a full database on your platform
Hi,
you need to use ORADIM utility to create a service for your instance:
oradim -new -sid heatdb -pfile c:\oracle9i\ora92\admin\heatdb\pfile\initheatdb.ora -startmode a
set ORACLE_SID=heatdb
sqlplus /nolog
now create the database.
Cheers.
It is better to ask and appear ignorant, than to remain silent and remain ignorant.
Originally posted by jmodic Before anything else, you have to create (and start) Oracle database service if you are in Windows enviroment. Check the ORADIM utility in manuals...
Just to add the quote...
After u create a service, if u have existing database running ,
then u need to set ENIVRONMENTAL VARILABLES to created SID...
Or Configure Listener,TNS names & give connect string to connect to the IDLE Instance created.
Abhay.
funky...
"I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."
"Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"
Originally posted by davey23uk what is sometimes useful is running dbca thwn saving the create scripts instead of running them, then you can see what needs to be done to start a full database on your platform
Hi, that's the way !
i always do it in this manner
after getting the complete scripts, you can modify them
and start the creating of the db.
Orca
Bookmarks