Unix Technical Forum

How to restore over an existing DB

This is a discussion on How to restore over an existing DB within the Oracle Database forums, part of the Database Server Software category; --> We are using Oracle 10g release2. We have a database csv5.dmp and want to restore it over CSV5, a ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2008, 09:04 AM
RobbMichel@gmail.com
 
Posts: n/a
Default How to restore over an existing DB

We are using Oracle 10g release2. We have a database csv5.dmp and want
to restore it over CSV5, a database currently on our Oracle server. We
get the errors below when trying to restore it. We are not very
familiar with Oracle and I imagine the answer is simple?

imp sys/oracle file=csv5.dmp full=y
We get the error ->
IMP-00003 oracle error 1435
ORA-01435 user does not exist

imp fromuser = sys/oracle to user sys/oracle file=csv5.dmp full=y
We get the error ->
IMP-00058 Oracle error 1017
ORA-01017 Invalid user name password
User does not exist ORA-01435

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-25-2008, 09:04 AM
sybrandb
 
Posts: n/a
Default Re: How to restore over an existing DB


RobbMic...@gmail.com wrote:
> We are using Oracle 10g release2. We have a database csv5.dmp and want
> to restore it over CSV5, a database currently on our Oracle server. We
> get the errors below when trying to restore it. We are not very
> familiar with Oracle and I imagine the answer is simple?
>
> imp sys/oracle file=csv5.dmp full=y
> We get the error ->
> IMP-00003 oracle error 1435
> ORA-01435 user does not exist
>
> imp fromuser = sys/oracle to user sys/oracle file=csv5.dmp full=y
> We get the error ->
> IMP-00058 Oracle error 1017
> ORA-01017 Invalid user name password
> User does not exist ORA-01435


cvs5.dmp is NOT a database, it is an export! (which is a *logical*
dump)
Basically you can not 'restore' an export,
as the export is just a series of INSERTs.
So you can also not 'restore' it *over* an existing database, without
dropping the existing users.
There are several export types. Only a *full* export contains create
user statements.
As you get an error for a non-existing user, you don't have a full
export, but an user export.
You can verify this by
imp <username>/<password> full=y show=y log=<any file>
This will dump all commands which are going to be executed in <any
file>
If the user is missing, use the CREATE USER statement to precreate the
user.

--
Sybrand Bakker
Senior Oracle DBA

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-25-2008, 09:04 AM
RobbMichel@gmail.com
 
Posts: n/a
Default Re: How to restore over an existing DB

Is there a way to delete the imported CSV5 files and replace them with
the new information in the dmp file?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-25-2008, 09:04 AM
EdStevens
 
Posts: n/a
Default Re: How to restore over an existing DB


RobbMichel@gmail.com wrote:
> Is there a way to delete the imported CSV5 files and replace them with
> the new information in the dmp file?


There is no "imported CSV5 files". There are only tablespace files.
(Well, and redo log files, and control files, and initialization
files,....). As Sybrand said, the .dmp file is *not* a database file,
it is a collection of INSERT (and possibly CREATE and ALTER)
statements.

If you delete the "imported CSV5 files" ... what files are you thinking
of? You might want to spend some time in the Utilities manual (see
tahiti.oracle.com) and the Concepts manual.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-25-2008, 09:04 AM
DA Morgan
 
Posts: n/a
Default Re: How to restore over an existing DB

RobbMichel@gmail.com wrote:
> Is there a way to delete the imported CSV5 files and replace them with
> the new information in the dmp file?


What CSV5 files? You have a dump file created by an export named
csv5.dmp. What else is there?

You can not restore or recover from an export.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-25-2008, 09:05 AM
RobbMichel@gmail.com
 
Posts: n/a
Default Re: How to restore over an existing DB

the CSV5 files were imported from an earlier dump file over a month
ago. We now want to import the CSV5 dump that we got last week to make
the information in the tables associated with the dump current.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-25-2008, 09:05 AM
mRangel
 
Posts: n/a
Default Re: How to restore over an existing DB

RobbMichel@gmail.com wrote:
> the CSV5 files were imported from an earlier dump file over a month
> ago. We now want to import the CSV5 dump that we got last week to make
> the information in the tables associated with the dump current.


Can you lose the data entered in the database between "over a month
ago" and now ?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-25-2008, 09:05 AM
DA Morgan
 
Posts: n/a
Default Re: How to restore over an existing DB

mRangel wrote:
> RobbMichel@gmail.com wrote:
>> the CSV5 files were imported from an earlier dump file over a month
>> ago. We now want to import the CSV5 dump that we got last week to make
>> the information in the tables associated with the dump current.

>
> Can you lose the data entered in the database between "over a month
> ago" and now ?


And can you consider using a better technology for accomplishing this
goal if you are going to be doing it on a regular basis? Export-Import
does not seem to be a good technique for what you are trying to do.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-25-2008, 09:05 AM
Hans
 
Posts: n/a
Default Re: How to restore over an existing DB

RobbMichel@gmail.com wrote:
> We are using Oracle 10g release2. We have a database csv5.dmp and want
> to restore it over CSV5, a database currently on our Oracle server. We
> get the errors below when trying to restore it. We are not very
> familiar with Oracle and I imagine the answer is simple?
>
> imp sys/oracle file=csv5.dmp full=y
> We get the error ->
> IMP-00003 oracle error 1435
> ORA-01435 user does not exist
>
> imp fromuser = sys/oracle to user sys/oracle file=csv5.dmp full=y
> We get the error ->
> IMP-00058 Oracle error 1017
> ORA-01017 Invalid user name password
> User does not exist ORA-01435


Question :
- How can you use an Oracle database if you are unfamiliar with Oracle

I think :
- the data in your Oracle database is not important to your company
- you don't have a backup procedure other than an export
- your company doesn't have a database administrator
....
etc. etc.

Bottom line : if your data is important to you, get a DBA, right now

Hans

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-25-2008, 09:05 AM
RobbMichel@gmail.com
 
Posts: n/a
Default Re: How to restore over an existing DB

The goal is to query the data in the Oracle database and move it into
our SQL database. We get the data from a client (they only know how to
send a dmp), and we do not use Oracle here we use SQL.

We just have an Oracle test enviroment to practice writing queries to
get data from the client's Oracle database. So we threw together an
Oracle enviroment to allow easier development. The developer wanted
more recent data than the last dump we imported and we are now in this
situation. We have about 4 employees total and can not just hire a new
person to monitor this enviroment. That is why I am using gooogle
groups to discuss the problems we are having. I have gotten great
advice from google groups in the past.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:09 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com