Home » RDBMS Server » Server Utilities » IOT table restoration (10.2.0.4)
IOT table restoration [message #533967] |
Fri, 02 December 2011 00:27  |
gir_sat
Messages: 64 Registered: October 2008 Location: Mumbai
|
Member |

|
|
Hi,
I am trying to take exp / imp for Index organized table.
Can anyone guide me on it.
Thanks
|
|
|
|
|
Re: IOT table restoration [message #533991 is a reply to message #533983] |
Fri, 02 December 2011 01:14   |
 |
Michel Cadot
Messages: 68737 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
C:\>exp help=y
Export: Release 10.2.0.4.0 - Production on Ven. DÚc. 2 08:13:38 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
You can let Export prompt you for parameters by entering the EXP
command followed by your username/password:
Example: EXP SCOTT/TIGER
Or, you can control how Export runs by entering the EXP command followed
by various arguments. To specify parameters, you use keywords:
Format: EXP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
Example: EXP SCOTT/TIGER GRANTS=Y TABLES=(EMP,DEPT,MGR)
or TABLES=(T1:P1,T1:P2), if T1 is partitioned table
USERID must be the first parameter on the command line.
Keyword Description (Default) Keyword Description (Default)
--------------------------------------------------------------------------
USERID username/password FULL export entire file (N)
BUFFER size of data buffer OWNER list of owner usernames
FILE output files (EXPDAT.DMP) TABLES list of table names
COMPRESS import into one extent (Y) RECORDLENGTH length of IO record
GRANTS export grants (Y) INCTYPE incremental export type
INDEXES export indexes (Y) RECORD track incr. export (Y)
DIRECT direct path (N) TRIGGERS export triggers (Y)
LOG log file of screen output STATISTICS analyze objects (ESTIMATE)
ROWS export data rows (Y) PARFILE parameter filename
CONSISTENT cross-table consistency(N) CONSTRAINTS export constraints (Y)
OBJECT_CONSISTENT transaction set to read only during object export (N)
FEEDBACK display progress every x rows (0)
FILESIZE maximum size of each dump file
FLASHBACK_SCN SCN used to set session snapshot back to
FLASHBACK_TIME time used to get the SCN closest to the specified time
QUERY select clause used to export a subset of a table
RESUMABLE suspend when a space related error is encountered(N)
RESUMABLE_NAME text string used to identify resumable statement
RESUMABLE_TIMEOUT wait time for RESUMABLE
TTS_FULL_CHECK perform full or partial dependency check for TTS
TABLESPACES list of tablespaces to export
TRANSPORT_TABLESPACE export transportable tablespace metadata (N)
TEMPLATE template name which invokes iAS mode export
Database Utilities
Regards
Michel
|
|
|
|
|
Re: IOT table restoration [message #541912 is a reply to message #534024] |
Fri, 03 February 2012 03:00   |
 |
sguinales
Messages: 6 Registered: February 2012 Location: España
|
Junior Member |
|
|
I have the same problem but with thit didn't solve it,
1) table info:
table: S44_IDX$
SQL> desc DGC_USM.S44_IDX$
Name Null? Type
------------------------------------------------------------ -------- --------------------
GX NOT NULL NUMBER(38)
GY NOT NULL NUMBER(38)
MINX NOT NULL NUMBER(38)
MINY NOT NULL NUMBER(38)
MAXX NOT NULL NUMBER(38)
MAXY NOT NULL NUMBER(38)
SP_ID NOT NULL ROWID
SQL> select bytes,SEGMENT_NAME,TABLESPACE_NAME from dba_segments where OWNER='DGC_USM' and SEGMENT_NAME like '%S44%';
BYTES SEGMENT_NAME TABLESPACE_NAME
---------- --------------------------------------------------------------------------------- ------------------------------
458752 S44$_IX1 DGC_USMDATOS
196608 S44$_IX2 DGC_USMDATOS
table def:
CREATE TABLE "DGC_USM"."S44_IDX$"
( "GX" NUMBER(*,0),
"GY" NUMBER(*,0),
"MINX" NUMBER(*,0),
"MINY" NUMBER(*,0),
"MAXX" NUMBER(*,0),
"MAXY" NUMBER(*,0),
"SP_ID" ROWID,
CONSTRAINT "S44$_IX1" PRIMARY KEY ("GX", "GY", "MAXX", "MAXY", "MINX", "MINY",
"SP_ID") ENABLE
) ORGANIZATION INDEX NOCOMPRESS PCTFREE 0 INITRANS 4 MAXTRANS 255 LOGGING
STORAGE(INITIAL 409600 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "DGC_USMDATOS"
PCTTHRESHOLD 5
2) Exporting
sigtst1// /oracled/SIGD >exp "'/ as sysdba'" TABLES=DGC_USM.S44_IDX\$ file=exp_S44.dmp log=exp_S44.log buffer=10000
Export: Release 9.2.0.7.0 - Production on Fri Feb 3 09:00:40 2012
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses WE8DEC character set (possible charset conversion)
About to export specified tables via Conventional Path ...
Current user changed to DGC_USM
EXP-00011: DGC_USM.S44_IDX$ does not exist
Export terminated successfully with warnings.
info:
HP-UX sigtst1 B.11.23 U 9000/800 1252522213 unlimited-user license
Oracle 9.2.0.7.
|
|
|
Re: IOT table restoration [message #541917 is a reply to message #541912] |
Fri, 03 February 2012 03:07   |
 |
Michel Cadot
Messages: 68737 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
How could it be possible that you have a table without segment? I think in the "desc" you have a view or a synonym.
Use SQL*Plus and post:
select name, instance_name from v$database, v$instance;
select owner, object_type from dba_objects where object_name='S44_IDX$' order by 1, 2;
Before, Please read OraFAQ Forum Guide and How to use [code] tags and make your code easier to read.
Make sure that lines of code do not exceed 80 characters when you format.
Indent the code, use code tags and align the columns in result.
Use the "Preview Message" button to verify.
Also always post your Oracle version, with 4 decimals.
In addition:
- Never ever use SYS (or SYSDBA) but for maintenance purpose (startup, shutdown, backup, recover)
- SYS/SYSDBA is special
- SYS/SYSDBA is Oracle proprietary (try to open a SR/TAR starting with "i did that with SYS/SYSDBA" and you'll see the immediate answer)
- SYS/SYSDBA does not act like any other user
- When you use SYS/SYSDBA Oracle deactivates some code path and activates others
- Whatever you do with SYS/SYSDBA will neither validate nor invalidate the same thing with any other user.
NEVER EVER use SYS/SYSDBA for anything that can be done by another user.
Use SYS/SYSDBA ONLY for something that can't be done by someone else.
Regards
Michel
|
|
|
|
|
|
Re: IOT table restoration [message #541943 is a reply to message #541938] |
Fri, 03 February 2012 04:23   |
 |
Michel Cadot
Messages: 68737 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Can you execute the following (as I did, with the owner of the table) and post the result:
SQL> sho user
USER is "MICHEL"
SQL> create table iot (id integer primary key, val varchar2(10)) organization index;
Table created.
SQL> host exp michel/michel file=t.dmp tables=(iot)
Export: Release 10.2.0.4.0 - Production on Ven. FÚvr. 3 11:22:37 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining
and Real Application Testing options
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table IOT 0 rows exported
Export terminated successfully without warnings.
Regards
Michel
|
|
|
|
|
|
|
Re: IOT table restoration [message #541961 is a reply to message #541956] |
Fri, 03 February 2012 06:06  |
 |
Michel Cadot
Messages: 68737 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
'$' should not have any impact for Oracle as it has no more meaning than other any character (but "):
SQL> create table S44_IDX$ (id integer primary key, val varchar2(10)) organization index;
Table created.
SQL> host exp michel/michel file=t.dmp tables=(S44_IDX$)
Export: Release 10.2.0.4.0 - Production on Ven. FÚvr. 3 13:05:32 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining
and Real Application Testing options
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table S44_IDX$ 0 rows exported
Export terminated successfully without warnings.
Can you try to do it inside SQL*Plus (using host command) as I did it.
Regards
Michel
|
|
|
Goto Forum:
Current Time: Mon Mar 03 16:14:50 CST 2025
|