473,883 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating a new Database and New Schema

31 New Member
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
17 22783
Pilgrim333
127 New Member
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
aldsaldrin
31 New Member
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 New Member
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
aldsaldrin
31 New Member
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 New Member
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
aldsaldrin
31 New Member
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 New Member
No problem.

Thanx for letting us know that your problem is solved.

Pilgrim.
Nov 4 '08 #17
amitpatel66
2,367 Recognized Expert Top Contributor
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
2789
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 some suitable default values in the tables. I note that although I can script the schema so that re-creating the structure of the database is simple on the users machine, I cannot script the contents of the tables also (automatically). What I would...
4
3280
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 DBMS. To do this, I will consider the query workload over the XML document. The purpose of this project is to
0
2010
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 file. My problem is that the xsd does not include info concerning the relationships between database tables. Is there an automated way to retrieve programmatically the entire db schema into a single xsd file?
2
9839
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 this even possible using VS.NET 2003? Part of the XML file follows. Thanks for any help. Steven VS.NET 2003 and C# newbie! ----- Part of the XML (one full record across several tables) --------
4
2199
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 computer is connected the application communicates directly with the main database and if it is disconnected it communicates with the local database. When the machine is connected again, data gets syncronized. Now, if we want to update/modify the...
8
19344
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 cause lose of it's context (like: use master / use <mydb>..). I wish to have my sript independed on changes like this and always produce correct result. Does using full name make use of 'use <db>' statement unnecessary?
1
2373
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 that never need to be updated or for architectures with only one database. We store each of the changes included in the package in separate files, which are tracked using version control. It is growing time consuming to maintain parity between...
0
1123
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 for replying.
1
2148
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 manually as I have to do everything twice... Is there a way I can automatically regenerate it from the database via commandline? after all its just an exact duplicate?
2
3330
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 we have made the change so for the purpose i thought of making an small application which will list me the tables or columns which are not in sync.
0
9933
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9781
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10836
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10407
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7960
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5794
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5982
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4211
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3230
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.