Solved

No TableData on Import

Posted on 2003-11-30
5
464 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Suggested Courses

623 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