?
Solved

How do I create a user in Oracle?

Posted on 2011-02-11
5
Medium Priority
?
520 Views
Last Modified: 2012-05-11
I have installed a new Oracle server. I am trying to create a user so I can import a database (DMP file).

I am using this command: "create user SAMPLE identified by password;" but it comes back with "SP2-0640 - Not connected".

how do I create user so I can import database from DMP file??
0
Comment
Question by:ob1_
  • 3
5 Comments
 
LVL 4

Expert Comment

by:Alex Matzinger
ID: 34873380
Make sure that your server is up and running
0
 
LVL 6

Author Comment

by:ob1_
ID: 34873392
it is i guess - i had to issue a "connect" statement and then i was able to create user.



0
 
LVL 4

Expert Comment

by:Alex Matzinger
ID: 34873393
sqlplus "/AS SYSDBA"
<enter your password>
Startup

Open in new window


Then you will be able to create users
0
 
LVL 4

Accepted Solution

by:
Alex Matzinger earned 1000 total points
ID: 34874058
That makes sense.  I had forgotten the connect command.

If you need help importing the dmp file here is a link that can guide you.  Otherwise, GL.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#i1023560
0
 
LVL 35

Assisted Solution

by:Mark Geerlings
Mark Geerlings earned 1000 total points
ID: 34876801
You may not need to create a user first, depending on how the *.dmp file was created.  If that was a whole-database export, it will create the user(s) for you.  If however you have a schema-level or table-level export file, then you will need to create the user first.

Another problem could be the tablespace(s) and/or datafile(s) in the export file.  When you run import, Oracle will assume that your disk and directory structure in this server is the same as it was in the server where the export file was created.  But, that may or may not be true for you.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
MSSQL DB-maintenance also needs implementation of multiple activities. However, unprecedented errors can hamper the database management. In that case, deploying Stellar SQL Database Toolkit ensures fast and accurate database and backup repair as wel…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question