472,328 Members | 1,472 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

Creating a new Database and New Schema

My Team Lead recently asked me to create a local schema but I this is my first time using Oracle Database so Im really really lost..

How do create a schema? Do I need to create a database first before creating a schema?

Many thanks..
Nov 3 '08 #1
17 22611
amitpatel66
2,367 Expert 2GB
You need to ask that question to your team lead. Check with him whether you want to create a schema in the existing database or in a new database?
Nov 3 '08 #2
tnx amitpatel66,

I asked her, she said create a schema for a new database.. A follow-up question how can I create a new database in Oracle?

Many thanks..
Nov 3 '08 #3
debasisdas
8,127 Expert 4TB
createing a database and a schema are two different things . Which one you want.
Nov 3 '08 #4
tnx debasisdas,

Creating a database first, pls teach me..

Many thanks..
Nov 3 '08 #5
debasisdas
8,127 Expert 4TB
you can use DBCA for the purpose.
Nov 3 '08 #6
Pilgrim333
127 100+
Hi,

Hope this helps you

Create database and manage users

Pilgrim
Nov 3 '08 #7
I have created a new database in Oracle 9i using DBCA, how do I create a schema for it?

Many thanks..
Nov 4 '08 #8
if you have existing dump files then import them into new database, or other wise create users and tables as per your requirement, don't forgot to observe the tablespace sizes...
Nov 4 '08 #9
if you have existing dump files then import them into new database, or other wise create users and tables as per your requirement, don't forgot to observe the tablespace sizes...
tnx daitaravi2002,

how do I create users and table?

Many thanks..
Nov 4 '08 #10
Pilgrim333
127 100+
Hi,

I posted a link in your previous topic with a link to how to create users in oracle. I'll post you a link to how to it here.

Create users in Oracle

I think your problem is with the schema part. The objects a user owns are collectively called a schema. So create a user, and then you have your schema.

Pilgrim.
Nov 4 '08 #11
Hi,

I posted a link in your previous topic with a link to how to create users in oracle. I'll post you a link to how to it here.

Create users in Oracle

I think your problem is with the schema part. The objects a user owns are collectively called a schema. So create a user, and then you have your schema.

Pilgrim.
tnx Pilgrim333,

Now Im getting it, follow-up question: Suppose I create a User with this code:

CREATE USER "TEST" PROFILE "DEFAULT" IDENTIFIED BY "test" ACCOUNT UNLOCK;

but now I want to use/access it using toad, what is the database for that user?
Nov 4 '08 #12
Pilgrim333
127 100+
Hi,

the database is the same database as the database you created it in.
If you connected with dba/dba@TEST and you create a user scott with password tiger then you should connect with scott/tiger@TEST.

The database connect string stays the same, just your user and pass change. You give the user space in your database.

Hope this is explained a bit understandable. If not, just let me know.

Pilgrim.
Nov 4 '08 #13
tnx Pilgrim333,

I got what you said last time, so I created the user using this code:

CREATE USER "TEST" PROFILE "DEFAULT" IDENTIFIED BY "test" ACCOUNT UNLOCK;

and when I tried to use/access it using toad, a prompt appeared saying that:

ORA-01045: user TEST lacks CREATE SESSION privilege

how can I remedy this?

Many thanks..
Nov 4 '08 #14
Pilgrim333
127 100+
Hi,

you have to assign some standard priviliges to the user. Login as dba and issue the following command:

grant create session, connect, resource to <user>

You will need more info on the grants for the user. More info on:

Oracle Grants security

Pilgrim.
Nov 4 '08 #15
Hi,

you have to assign some standard priviliges to the user. Login as dba and issue the following command:

grant create session, connect, resource to <user>

You will need more info on the grants for the user. More info on:

Oracle Grants security

Pilgrim.

tnx a lot Pilgrim, you've been very helpful..
Nov 4 '08 #16
Pilgrim333
127 100+
No problem.

Thanx for letting us know that your problem is solved.

Pilgrim.
Nov 4 '08 #17
amitpatel66
2,367 Expert 2GB
Duplicate Threads merged for better management of forum

Moderator
Nov 4 '08 #18

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Robin Tucker | last post by:
Hi there, I have a database on my test machine that will need to be installed on users machines. I would like to create the database with the...
4
by: Heejeong Lee | last post by:
I am going to begin following project Description of the project: One of the proposed ways of storing XML is to "shred" the structure of the...
0
by: Dimitris Katsikas | last post by:
Hi everybody, I am trying to find a way to export automatically an entire database schema into an .xsd A graphical way is to drag & drop the...
2
by: Steven (dotnet newbie) | last post by:
Hello. I am trying to create a database from an XML file. I am able to create a dataset from the XML doc, but how can I create a database schema...
4
by: RS | last post by:
Hello All, Does anyone know what the best practice is for updating database schema? We are designing a smart client application where the .Net...
8
by: fireball | last post by:
I wihsh to discuss whether to use fully qualified names: ..object of objects to operate (create, query..) on is good or not? If someone change...
1
by: Ben | last post by:
We currently use SSIS to build DTS packages in which we store changes to our database schema, as well as scripts that need to be run upon each...
0
by: vincent90152900 | last post by:
I need to export a database, x, of a server, X, to another database, y, of a server, Y and I need export the database schema only, not include the...
1
by: John | last post by:
Hello, I am working on a project with a strongly typed dataset...I have to make alot of changes to it as I change the database schema. Its...
2
by: jack | last post by:
Hi In my project there's a frequent change in database schema of production and testing due to the weekly production. so this talks lot of...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.