English 中文(简体)
Oracle 导出: 表格不存在
原标题:Oracle export: table doesn t exist
  • 时间:2012-05-24 10:09:27
  •  标签:
  • oracle

我正试图导出11号甲骨文中的数据

exp user/password file=dump.dmp tables = (table1)

通过 sqlplus 。

我发现以下错误:

About to export specified tables via Conventional Path ...
EXP-00011: USER.TABLE1 does not exist
Export terminated successfully with warnings.

但当我检查谁是这张桌子的主人时:

SELECT owner, table_name from dba_tables where table_name =  TABLE1 ;

我知道 Table1 的所有人是 USER

我该如何出口这张桌子?

UPDATE

Actually, i found a solution. I hope it will help someone else. Since version 11g Oracle has introduced new feature that is called deferred segment creation. Thus oracle doesn t create table segment if there are now rows in it. So i recreated my table with option segment creation immediate

最佳回答

事实上,我找到了一个解决方案。 我希望它会帮助别人。 自从版本 11 版本 甲骨文 11 引入了新特性, 称为延迟段创建。 因此, 甲骨文没有行就不会创建表格段。 我的表格没有包含任何数据 。 因此, 我立即用选项段创建重新创建了我的表格 。

找到的解决方案这里。 有更多的选项可以解决这个问题,并解释为什么这东西碰巧在11g. :

问题回答

除了Olivia的回复之外,

SELECT  alter table   ||  table_name ||   allocate extent; 
from dba_tables where SEGMENT_CREATED =  NO ;

执行输出和解析。 您的方案将导出包含空表格的输出 。

EDIT: similar question here, maybe you ll find your solution there.

更改此更改 :

exp user/password file=dump.dmp tables = (table1);

与此相关的:

exp user/password tables = (table1) file=dump.dmp;

您可以在下面的查询中从特定用户导出表格级别 。

exp user/password file=dump.dmp tables = user.table1




相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

How to make a one to one left outer join?

I was wondering, is there a way to make a kind of one to one left outer join: I need a join that matches say table A with table B, for each record on table A it must search for its pair on table B, ...

Insert if not exists Oracle

I need to be able to run an Oracle query which goes to insert a number of rows, but it also checks to see if a primary key exists and if it does, then it skips that insert. Something like: INSERT ALL ...

How can I store NULLs in NOT NULL field?

I just came across NULL values in NOT-NULL fields in our test database. How could they get there? I know that NOT-NULL constraints can be altered with NOVALIDATE clause, but that would change table s ...

Type reference scope

I m studying databases and am currently working on a object-relational DB project and I ve encountered a small problem with the number of possible constraints in an object table. I m using "Database ...

OracleParameter and DBNull.Value

we have a table in an Oracle Database which contains a column with the type Char(3 Byte). Now we use a parameterized sql to select some rows with a DBNull.Value and it doesn t work: OracleCommand ...

热门标签