Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating DB from script in Toad or SQL+

Status
Not open for further replies.

martinm

IS-IT--Management
Mar 30, 2001
113
GB
I have a Toad generated DB creation script of a DB created using the Oracle Admin tool, this needs to be run as a script to create on users sites. Problem is, you need to be logged into a DB to create it (or any Oracle command), and many of the tablespace names used in the script exist in the 'current' db........

I'm sure the answer is simple, but I don't know what it is!!
 
How do I create a DB from a script!!
 
Ok, to create database you should be connected to instance, not to database. You can not create more than 1 database per instance.

Regards, Dima
 
Hi Sem - I think I'm getting there!!

How do I connect to an instance in SQL+ - I have user/pwd/hoststring params needed.

They guy who set it up has left - what are the default pwds I may need (hopefully he hasn't changed them :( )

Cheers.
 
It's a db or Schema. Somewhere new to add tables to.So no, not quite sure of the difference %-)
 
In fact, creating it via Oracle, it creates a new db.
 
You should prepare pfile, create and start oracle service with oradim, set ORACLE_SID, connect from sql*plus /as SYSDBA and launch the script.
But I'd strongly recommend you to read manuals or at least learn basic Oracle concepts.

Regards, Dima
 
Thanks Sem. I've advised my client that db creation is a DBA task (most won't let a user/developer create anyway), so they should be given the script and left to it. Job done. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top