Unix Technical Forum

Creating database manually

This is a discussion on Creating database manually within the Oracle Database forums, part of the Database Server Software category; --> I have installed Oracle Database 9.2.0.1.0. I have not created any databases yet. Instead of using ODCA I would ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 10:01 AM
Pawel =?iso-8859-2?Q?M=B3y=F1ski?=
 
Posts: n/a
Default Creating database manually

I have installed Oracle Database 9.2.0.1.0.
I have not created any databases yet. Instead of using ODCA I would like to
create a database manually. In order to do it I have to issue CREATE
DATABASE command. Unfortunatelly I don't know how to gain access to SQL, is
there any way I can do it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 10:01 AM
Dave
 
Posts: n/a
Default Re: Creating database manually


"Pawel Mlynski" <pmg3@op.pl> wrote in message
news:812qlhf236s8$.17fasuhp8l9d3$.dlg@40tude.net.. .
>I have installed Oracle Database 9.2.0.1.0.
> I have not created any databases yet. Instead of using ODCA I would like
> to
> create a database manually. In order to do it I have to issue CREATE
> DATABASE command. Unfortunatelly I don't know how to gain access to SQL,
> is
> there any way I can do it?


you dont have access to sql*plus? f you dont you cant do it. best way is to
fire up dbca and save the scripts at the end, then you can see how it is
done


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 10:01 AM
DA Morgan
 
Posts: n/a
Default Re: Creating database manually

Pawel Młyński wrote:

> I have installed Oracle Database 9.2.0.1.0.
> I have not created any databases yet. Instead of using ODCA I would like to
> create a database manually. In order to do it I have to issue CREATE
> DATABASE command. Unfortunatelly I don't know how to gain access to SQL, is
> there any way I can do it?


write a create database script and save it on a local hard disk
modify the init.ora
start SQL*Plus

SQL> / as sysdba
SQL> startup nomount
SQL> pfile=<path_and_init_dot_ora_file_name>
SQL> @<path_and_script_name>

Some samples can be found at: http://www.psoug.org
click on Morgan's Library
click on database
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-24-2008, 10:01 AM
Syltrem
 
Posts: n/a
Default Re: Creating database manually

DBCA will create some disk structures for you, on top of creating the
database.
If you don't use it, you will have to create those directories (that contain
the init.ora, trace files, alert log) yourself. If you don;t use standard
locations another DBA logging on your system will have to check where you
choose to put those files. Not hard but a loss of time.
Also on OpenVMS (don't know for Unix) you have procedure files (you may call
them scripts) that are created from sample files, in order to connect to the
database (those are executed "forked" when a dedicated server process is
started for the new connection). You can easily create those yourself if you
know how (or modify them for troubleshooting purposes), but again that's
time consuming when you have a tool that can do it for you.

Other than that, use the CREATE DATABASE command.

--
Syltrem

OpenVMS 7.3-1 + Oracle 8.1.7.4
http://pages.infinit.net/syltrem (OpenVMS related web site, en français)
---zulu is not in my email address---
"Pawel M³yñski" <pmg3@op.pl> a écrit dans le message de
news:812qlhf236s8$.17fasuhp8l9d3$.dlg@40tude.net.. .
> I have installed Oracle Database 9.2.0.1.0.
> I have not created any databases yet. Instead of using ODCA I would like

to
> create a database manually. In order to do it I have to issue CREATE
> DATABASE command. Unfortunatelly I don't know how to gain access to SQL,

is
> there any way I can do it?
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-24-2008, 10:01 AM
GreyBeard
 
Posts: n/a
Default Re: Creating database manually

On Mon, 03 Jan 2005 17:46:36 +0100, Pawel Młyński wrote:

> I have installed Oracle Database 9.2.0.1.0.
> I have not created any databases yet. Instead of using ODCA I would like to
> create a database manually. In order to do it I have to issue CREATE
> DATABASE command. Unfortunatelly I don't know how to gain access to SQL, is
> there any way I can do it?


Why do you want to create the database manually?

While there is nothing wrong with doing so, many who ask that question
have a basic misunderstanding of Oracle. Just checking that you are
heading down the right thought process.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-24-2008, 10:01 AM
Hans Erik Busk
 
Posts: n/a
Default Re: Creating database manually

On Mon, 3 Jan 2005 17:46:36 +0100, Pawel M³yñski <pmg3@op.pl> wrote:

>I have installed Oracle Database 9.2.0.1.0.
>I have not created any databases yet. Instead of using ODCA I would like to
>create a database manually. In order to do it I have to issue CREATE
>DATABASE command. Unfortunatelly I don't know how to gain access to SQL, is
>there any way I can do it?


On windows you have to create a service first with oradim. You will
need an *.ini file.
When the service is running you can connect to that from SQLPLUS.

It is a fine educational excersize to create the databse yourself, and
good for finetuning a production database (if you know what you are
doing .-)
But don't make it harder than necessary. Use ODCA to create the
scripts You don't have to create the database!
Then study and modify the script to your whishes.

Hans Erik Busk
Denmark
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-24-2008, 10:02 AM
Dave
 
Posts: n/a
Default Re: Creating database manually


"Hans Erik Busk" <tbf@cn.stam.dk> wrote in message
news:4q5jt092kfbqpnnodvg0pctrj5nle9v5ks@4ax.com...
> On Mon, 3 Jan 2005 17:46:36 +0100, Pawel M³yñski <pmg3@op.pl> wrote:
>
>>I have installed Oracle Database 9.2.0.1.0.
>>I have not created any databases yet. Instead of using ODCA I would like
>>to
>>create a database manually. In order to do it I have to issue CREATE
>>DATABASE command. Unfortunatelly I don't know how to gain access to SQL,
>>is
>>there any way I can do it?

>
> On windows you have to create a service first with oradim. You will
> need an *.ini file.
> When the service is running you can connect to that from SQLPLUS.
>
> It is a fine educational excersize to create the databse yourself, and
> good for finetuning a production database (if you know what you are
> doing .-)
> But don't make it harder than necessary. Use ODCA to create the
> scripts You don't have to create the database!
> Then study and modify the script to your whishes.
>
> Hans Erik Busk
> Denmark


what a .ini file?

Also its called dbca not odca


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-24-2008, 10:02 AM
Rauf Sarwar
 
Posts: n/a
Default Re: Creating database manually


GreyBeard wrote:
<snip>

> Why do you want to create the database manually?


Why not? It's a good learning exercise to get intimate with Oracle. As
a personal choice, I don't use DBCA and prefer to create a database
using scripts.

> While there is nothing wrong with doing so, many who ask that

question
> have a basic misunderstanding of Oracle.

Care to elaborate on this.

Regards
/Rauf

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-24-2008, 10:02 AM
fitzjarrell@cox.net
 
Posts: n/a
Default Re: Creating database manually


Rauf Sarwar wrote:
> GreyBeard wrote:
> <snip>
>
> > Why do you want to create the database manually?

>
> Why not? It's a good learning exercise to get intimate with Oracle.

As
> a personal choice, I don't use DBCA and prefer to create a database
> using scripts.
>
> > While there is nothing wrong with doing so, many who ask that

> question
> > have a basic misunderstanding of Oracle.

> Care to elaborate on this.
>
> Regards
> /Rauf


Apparently you've not experienced someone used to SQL Server, Sybase,
Access or MySQL thinking that creating a database in Oracle is just as
simple as issuing a 'create databse mydb' command. Many who ask think
such is the 'end of the line', yet those of us who do know realise this
is not the case. Creating a database in Oracle is far more involved,
starting with the 'Create database' command and running through the
catalog creation scripts, tabkespace creation commands, and package
installation scripts, as well as creating the init.ora file, the
directory locations for all of the files (control files, redo logs,
tablespaces, archive logs) and whether or not to configure the database
for archivelog mode. Mistakes in any of these scripts will be
difficult for anyone not familiar with the process to discover, much
less resolve.

It is far better for a newbie to use DBCA, choose the option of
creating scripts for the database creation, then using those scripts as
a roadmap or blueprint for any further databases they may choose to
create. Having a solid example to follow is worth far more than
letting someone unfamiliar with database creation start from scratch,
make mistakes, become disillusioned or frustrated and curse Oracle
becuase it is not like the above mentioned database products.

Simpluy because you and I (and most others who contribute here) are
capable of creating a database from scratch, calling it a 'good
learning experience', in no way qualifies someone completely unfamiliar
with the product to do so. In such a case compassion is better than
throwing someone to the wolves, so to speak. making DBCA the logical
starting point for a persons first Oracle database.

David FItzjarrell

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-24-2008, 10:02 AM
GreyBeard
 
Posts: n/a
Default Re: Creating database manually

On Tue, 04 Jan 2005 01:34:43 -0800, Rauf Sarwar wrote:

>
> GreyBeard wrote:
> <snip>
>
>> Why do you want to create the database manually?

>
> Why not? It's a good learning exercise to get intimate with Oracle. As
> a personal choice, I don't use DBCA and prefer to create a database
> using scripts.


As I said, there is nothing wrong with creating the database manually.

>
>> While there is nothing wrong with doing so, many who ask that

> question
>> have a basic misunderstanding of Oracle.

> Care to elaborate on this.


Go through the archives and check how many people want to 'create
databases on the fly', 'create databases using program', etc.

When coming from other RDBMSs, some people assume they already understand
what is meant by the term 'database'. Because of the difference in
meaning of the term between Oracle and, say SQL Server, they feel they
need to create databases manually to be able to create a lot of them.

In many cases, all they want is to create a schema on the fly.

lol/FGB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:31 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com