Solved

No TableData on Import

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

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 47

Expert Comment

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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert Oracle data into XML document 2 65
Oracle - SQL Parse String 5 34
pl/sql - query very slow 26 60
Where Does Time Value Come From for Database Insert or Update 4 28
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

773 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