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..
17 22611
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?
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..
createing a database and a schema are two different things . Which one you want.
tnx debasisdas,
Creating a database first, pls teach me..
Many thanks..
you can use DBCA for the purpose.
I have created a new database in Oracle 9i using DBCA, how do I create a schema for it?
Many thanks..
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...
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..
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.
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?
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.
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..
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.
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..
No problem.
Thanx for letting us know that your problem is solved.
Pilgrim.
Duplicate Threads merged for better management of forum
Moderator
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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....
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was...
|
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.
...
|
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...
| |