Solved

No TableData on Import

Posted on 2003-11-30
5
460 Views
Last Modified: 2008-03-17
I added a larger harddrive to my NT server.  The original instance (Schdora1) was exported to a .dmp file.  I then stopped & disabled the Schdora1 Service, stopped & diabled the Listener, and installed a new Oracle 9i DB on the new drive. The new instance is call Schdora3 (because schdora2 failed, and it wouldn't let me reuse the name).  

After much consternation and cursing about tnsnames.ora and listener.ora files I FINALLY connected to the new schdora3 Service.

I don't really understand this, but the schema "Schedule" is actually a user.  I created my deveopment login of "BX", and the user "Schedule" after reading the IMP error message(s) several times.

I type:
IMP BX/<pwd>@Sch3
answer all the default prompts which include "Import Table Data?" yes.
All the sequences, views, Procedures and Packages come in, and NONE OF THE TABLES or TABLEDATA!!!!!

Its even asks "Import Grants?" to which I answer "yes".  

What the heck?

Bob
0
Comment
Question by:BobMiner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 8

Expert Comment

by:baonguyen1
ID: 9848128
Hi BobMiner,

Did you export the database using FULL=Y option ?

Try this when you import:

c:\set ORACLE_SID=Sch3
c:\imp system/<passwod> file=dump_file.dmp full=y ignore=y log=file_name.log

if you want to import by BX, you have to grant IMPORT_FULL_DATABASE to this account

Hope this helps.
0
 
LVL 48

Accepted Solution

by:
schwertner earned 500 total points
ID: 9848852
You should create the tablespaces for that tables. You should instruct Oracle to use the tablespaces for this schema and set the quota like:

CREATE TABLESPACE "TSDMEDICAL"
    LOGGING
    DATAFILE 'D:\ORACLE\ORADATA\TEST\TSDMEDICAL00.DBF'
    SIZE 100M REUSE AUTOEXTEND
    ON NEXT  100M MAXSIZE  32767M EXTENT MANAGEMENT LOCAL SEGMENT
    SPACE MANAGEMENT  AUTO;

create user lsmedical identified by lsmedical default tablespace TSDMEDICAL;
grant connect to lsmedical;
alter  user lsmedical quota unlimited on  TSDMEDICAL;
0
 
LVL 23

Expert Comment

by:seazodiac
ID: 9850071
Bobminer:

How did you do the EXPORT? Is it a full database, user, or tablespace export?
you have to call IMP differently depending upon how you exported them.

1. if you have exported your Schdora1 database in FULL database mode,
then in the new database Schdora3:

you have to create the same set of users and their corresponding tablespaces as in the old database Schdora1.

like schwertner said, you set the quota for each user as required.

then you do an IMP like this (don't use interactive mode).

C:\>imp sys/password@Sch3 FILE=<dumpfilename> FULL=Y IGNORE=Y

2. if you have exported your Schdora1 database in USER mode:
you can create a arbitary, new user with the default tablespace (it could a new tablespace) in Schdora3 database, and grant this new user quota to this tablespace,

then you import like this;

C:\>imp sys/password@Sch3 FILE=<dumpfilename> FROMUSER=<user_from> TOUSER=<user_to> IGNORE=Y
0
 

Author Comment

by:BobMiner
ID: 9852026
Thanks Schwertner; it was the tablespace issue.  Thanks to Seazodiak and baonguyen1 for the additional information.

Regards.
Bob
0
 
LVL 48

Expert Comment

by:schwertner
ID: 9856478
Good luck! Soon you will be guru in Oracle!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
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.

710 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