Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting Tables from Oracle 9 instance 1

Status
Not open for further replies.

bobby13

Technical User
Jun 18, 2003
93
GB
Hi before i start i have to confess, i've never used the import and export utility in Oracle before. I'm basically trying to export a table called security_users from my live instance. This table contains all login information regarding our users, the table has 800 rows.

I successfully managed to export the table to file called users.expdat, the command i used was:

exp system/manager file=users.expdat tables=security_users log=users.log

but i noticed in the logfile it only exported 13 rows, not 800. Why is that?

[afro]

Regards
Bobby
 
Hi,
Just for kicks, try:

select count(distinct user_id) from ems_connection_data.security_users;


[profile]
 
select count(distinct user_id) from ems_connection_data.security_users;

same result 866 rows!

Regards
Bobby
 
Hi,
just to be sure:
Did you look in your alert log file?
Any error messages at times when you did an exp or an 'select *' ?
regards
 
Hi all,

I checked the alert log no error messages in there regarding the export.

Regards
Bobby
 
Hi,

another question just to be sure:
Above you wrote:
I succesfully imported the security_users table to another schema i had exported earlier on, and all 14 rows were exported.

Should this read:
..., and all 14 rows were IMported. ?!

Have you got 14 rows in the new table in an other user's schema?

regards
 
sorry about the miss-spell yes 14 rows were imported successfully, i've got the chaps from oracle coming over next week to sort this out for me, amongst other things.

Do i need to grant any rights or permissions to ems_connection_data user to export a table?

Regards
Bobby
 
Hi,
I don't know what grants exactly you need to export tables.
But if you can export only some rows of a table, the reason for this cannot be missing grants.
(Your table is a table, isn't it? Not some weird kind of view?)
And for now, sorry, i haven't got any good ideas.
Lets hope the chaps from oracle will find out.
regards
 
Hi, Sounds like the same problem I had today which I fixed by specifying the instance thus:
exp user/pwd@instance file=tbl.exp tables=user.tblname
- there was an old instance of the database I had forgotten about that I had fewer records in the exported table.
Hope this helps...
 
Thanks sandman and everyone else, the problem has now been resolved!

Regards
Bobby
 
sandman,
good point; we should have thought of that!

bobby,
fine to see that the problem has now been resolved!
But now I (and some others too, I presume) would like to know what was the reason. Could you tell us, please?
 
We have two instances runnning a test instance and live instance, I was not specifying what instance to connect to so I think it was connecting to the test instance which must have only 13 users.

Regards
Bobby
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top