473,396 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 22747
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 given schema on the users machine and also with...
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 XML document and insert it into a relational...
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 tables from Server Connection into an empty .xsd...
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 from the dataset and populate the database? Or is...
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 application is used online and offline. If the...
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 order of sql code blocks in my script - this may...
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 release. This works well for small sets of changes...
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 data. Does anyone know how to do that? Many thanks...
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 tedious, error prone and time consuming updating it...
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 effort to figure out which is the exact table which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.