Create a External Table in Oracle 10g:== ERROR: KUP-01005

Hello.
I have a problem working with external tables, hope someone can help me with this problem. Thanks.
This is the code of the external table
========================
CREATE TABLE SIAFI.RNP_IDS
NUMERO_ID VARCHAR2(30 BYTE),
PRIMER_NOMBRE VARCHAR2(300 BYTE),
SEGUNDO_NOMBRE VARCHAR2(300 BYTE),
APELLIDO_PATERNO VARCHAR2(300 BYTE),
APELLIDO_MATERNO VARCHAR2(300 BYTE),
DEPARTAMENTO VARCHAR2(300 BYTE),
CORRELATIVO VARCHAR2(300 BYTE)
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY SEG_DIRECTORIO
ACCESS PARAMETERS
( records delimited by NEWLINE
badfile SEG_DIRECTORIO:'censo.bad'
logfile SEG_DIRECTORIO:'censo.log'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' and '"'LDRTRIM
REJECT ROWS WITH ALL NULL FIELDS
(NUMERO_ID VARCHAR(30) NULLIF NUMERO_ID=BLANKS
TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' and '"'LDRTRIM,
PRIMER_NOMBRE VARCHAR(300) NULLIF PRIMER_NOMBRE=BLANKS
TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' and '"'LDRTRIM,
SEGUNDO_NOMBRE VARCHAR(300) NULLIF SEGUNDO_NOMBRE=BLANKS
TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' and '"'LDRTRIM,
APELLIDO_PATERNO VARCHAR(300) NULLIF APELLIDO_PATERNO=BLANKS
TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' and '"'LDRTRIM,
APELLIDO_MATERNO VARCHAR(300) NULLIF APELLIDO_MATERNO=BLANKS
TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' and '"'LDRTRIM,
DEPARTAMENTO VARCHAR(300) NULLIF DEPARTAMENTO=BLANKS
TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' and '"'LDRTRIM,
CORRELATIVO VARCHAR(300) NULLIF CORRELATIVO=BLANKS
TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' and '"'LDRTRIM,
LOCATION (SEG_DIRECTORIO:'censo.txt')
REJECT LIMIT UNLIMITED
NOPARALLEL
NOMONITORING;
When executing the stament select from RNP_IDS* it returns the following error message:
===========================================================
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "terminated": expecting one of: "and, comma, defaultif, not, nullif, or, )"
KUP-01007: at line 6 column 56
ORA-06512: at "SYS.ORACLE_LOADER", line 19
ORA-06512: at line 1
This is the example of the file I'm using:
==========================
"0","DOUGLAS","AUGUSTO","ABBOTT","","1","3672097"
"0101190600010","MARIA","URBANA","GOMEZ","URBINA","2","1949122"
"0101190600076","ENRIQUETA","","GARCIA","","2","1162025"
"0101190800106","LUCILA","","FLORES","","2","1658013"

Hi
Here we go...
I reduced the 300 length of varcahr t o30 for testing purpose...
SQL> CREATE TABLE RNP_IDS
2 (
3 NUMERO_ID VARCHAR2(30),
4 PRIMER_NOMBRE VARCHAR2(30),
5 SEGUNDO_NOMBRE VARCHAR2(30),
6 APELLIDO_PATERNO VARCHAR2(30),
7 APELLIDO_MATERNO VARCHAR2(30),
8 DEPARTAMENTO VARCHAR2(30),
9 CORRELATIVO VARCHAR2(30)
10 )
11 ORGANIZATION EXTERNAL
12 ( TYPE ORACLE_LOADER
13 DEFAULT DIRECTORY LOG
14 ACCESS PARAMETERS
15 ( records delimited by NEWLINE
16 badfile LOG:'censo.bad'
17 logfile LOg:'censo.log'
18 FIELDS TERMINATED BY ','
19 OPTIONALLY ENCLOSED BY '"' and '"'LDRTRIM
20 REJECT ROWS WITH ALL NULL FIELDS
21 (
22 NUMERO_ID ,
23 PRIMER_NOMBRE ,
24 SEGUNDO_NOMBRE ,
25 APELLIDO_PATERNO,
26 APELLIDO_MATERNO ,
27 DEPARTAMENTO,
28 CORRELATIVO
29 )
30 )
31 LOCATION ('sample1.txt')
32 )
33 REJECT LIMIT UNLIMITED
34 NOPARALLEL
35 NOMONITORING;
Table created.
SQL> desc rnp_ids
Name Null? Type
NUMERO_ID VARCHAR2(30)
PRIMER_NOMBRE VARCHAR2(30)
SEGUNDO_NOMBRE VARCHAR2(30)
APELLIDO_PATERNO VARCHAR2(30)
APELLIDO_MATERNO VARCHAR2(30)
DEPARTAMENTO VARCHAR2(30)
CORRELATIVO VARCHAR2(30)
SQL> select numero_id from rnp_ids;
NUMERO_ID
0
0101190600010
0101190600076
0101190800106
- Pavan Kumar N

Similar Messages

  • How to overwrite a log and bad file in external table in oracle 10g

    Hi,
    I have used external table in oracle 10g.whenever use select query in external table orace internally create one log file in specified directory,
    but this log file is growing.How can i overwrite the log file(old to replace with new).I need overwrite a log and bad file in external table.
    kindly give the solutions.
    By
    Siva

    I don't believe that is possible with the LOGFILE clause, but it may be with the BADFILE clause. Here is an excerpt from the documentation :
    The LOGFILE clause names the file that contains messages generated by the external tables utility while it was accessing data in the datafile. If a log file already exists by the same name, the access driver reopens that log file and appends new log information to the end. This is different from bad files and discard files, which overwrite any existing file. NOLOGFILE is used to prevent creation of a log file.
    If you specify LOGFILE, you must specify a filename or you will receive an error.
    If neither LOGFILE nor NOLOGFILE is specified, the default is to create a log file. The name of the file will be the table name followed by _%p and it will have an extension of .log.

  • External table in Oracle 10g and Windows server 2003 problem

    I'm having a problem accessing an external table in an Oracle 10g and Windows 2003 server environment. The disk is remote (mapped) to the server. It's the usual access errors, kup-04001 or kup-04063.
    I have the [seemingly] exact same setup in an Oracle 9i and Windows 2000 server environment which works perfectly. Services run as local SYSTEM and SYSTEM has full permissions on the disk. Directories exist and so do the permissions to the directories.
    In the Oracle 10g and Windows 2003 environment, services run as local SYSTEM and SYSTEM has full permissions on the mapped disk. Directories exist and so do the permissions to the directories.
    This obviously effects mappings, deployments, etc.
    Does anyone know if something changed in either the db or the os?
    Thank you,
    Michael

    Thank you for your reply.
    Your proposal is the standard solution. As a matter of fact, that's how it is on my "old" system. Server "A" Oracle services are started by SYSTEM. Server "B" Oracle services are started by SYSTEM and is where the flat files reside. SYSTEM has full permissions on a disk local to Server "B". Database directoriies defined on Server "A" point to Server "B" remote disk. External Tables on Server "A" are defined with directories that point to Server "B" remote (mapped) disk. I have no problems with this configuration.
    I'm having a problem acheiving the same configuration with Oracle 10g and Windows 2003. I guess I'm baffled over the fact it isn't working the same way as my "old" environment. Why shouldn't it? Oracle (and you) want me to start services as a specific user. It shouldn't have to be that way unless something changed in the way the database makes calls to the os or if Microsoft slipped something in with one of it's numerous security patches.

  • Unix permission problem for external table in oracle 10g, sun solaris

    Hello All,
    I'm facing a problem in accessing external table which has stumped me a bit.
    What I'm looking for is to use a external table with restricted permission to Others(770) on unix.
    Would appreciate if someone helps me out here.
    Here are the steps:
    1.create directory ext_tab_dir1 as '/home/ravi/test'
    2.grant read,write on directory ext_tab_dir1 to scott
    3.CREATE TABLE scott.emp_load1(employee_number CHAR(5))
    ORGANIZATION EXTERNAL (
    type oracle_loader
    default directory ext_tab_dir1
    access parameters (
    records delimited by newline
    fields terminated by ' '
    optionally enclosed by '"'
    missing field values are null
    location ('info.dat')
    Now I have added unix user oracle to unix group myDbGroup and provided myDbGroup read/write/exec permission on directory /home/ravi/test.
    info.dat has been placed in /home/ravi/test.
    #pwd
    /home/ravi
    #ls -l
    drwxrwx--- 2 ravi myDbGroup 512 Mar 7 17:35 test
    I have manually logged in as user oracle and successfully created a sample file in /home/ravi/test.
    -rwxrwx--- 1 ravi myDbGroup 13 Mar 7 17:33 info.dat
    -rw-r--r-- 1 oracle oinstall 0 Mar 7 18:05 sampleFile
    I then connect to the db using sqlplus as ravi and do a
    #select * from scott.emp_load1
    I get the following error
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04063: unable to open log file emp_load1_18567.log
    OS error Permission denied
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    After this, I gave full permission to /home/ravi/test
    drwxrwxrwx 2 ravi myDbGroup 512 Mar 7 17:35 test
    #select * from scott.emp_load1
    And this was successful.
    It created a log file in /home/ravi/test
    -rwxrwx--- 1 ravi myDbGroup 13 Mar 7 17:33 info.dat
    -rw-r--r-- 1 oracle oinstall 0 Mar 7 18:05 sampleFile
    -rw-r--r-- 1 oracle oinstall 0 Mar 7 18:05 emp_load1_18567.log
    Now what stumped me is the owner and group owner of the file emp_load1_18567.log.
    It is same as the sampleFile which I created manually!!
    From this it can be deducted oracle is not using user id oracle while reading/writing to the unix directory but somehow assigning user id oracle as owner to the log file at the end.
    If someone has encountered this problem earlier or has some info about this...pls share.
    Regards,
    Ravinandan

    Thanks for the reply.
    I have earlier checked this with NOLOGFILE option.
    But no luck.
    I would like to add one more detail(which I missed earlier) about the problem.
    If I give 750 access to /home/ravi(That is read/exec to Group and none perm to Others),
    I will get the same error(KUP-04063: unable to open log file emp_load1_18567.log).
    This obviously means oracle is not even able to access the directory(Although unix user oracle has access via the group perms).

  • External table in Oracle 10g and Windows server 2003

    I'm having a problem accessing an external table in an Oracle 10g and Windows 2003 server environment. The disk is remote (mapped) to the server. It's the usual access errors, kup-04001 or kup-04063.
    I have the [seemingly] exact same setup in an Oracle 9i and Windows 2000 server environment which works perfectly. Services run as local SYSTEM and SYSTEM has full permissions on the disk. Directories exist and so do the permissions to the directories.
    In the Oracle 10g and Windows 2003 environment, services run as local SYSTEM and SYSTEM has full permissions on the mapped disk. Directories exist and so do the permissions to the directories.
    Does anyone know if something changed in either the db or the os?
    Thank you,
    Michael

    Version 9.2.04.
    Server "A" Oracle services are started by SYSTEM. Server "B" Oracle services are started by SYSTEM and is where the flat files reside. SYSTEM has full permissions on a disk local to Server "B". Database directoriies defined on Server "A" point to Server "B" remote disk. External Tables on Server "A" are defined with directories that point to Server "B" remote (mapped) disk. I have no problems with this configuration.
    I'm having a problem acheiving the same configuration with Oracle 10g and Windows 2003. I guess I'm baffled over the fact it isn't working the same way as my "old" environment. Why shouldn't it? Oracle (and you) want me to start services as a specific user. It shouldn't have to be that way unless something changed in the way the database makes calls to the os or if Microsoft slipped something in with one of it's numerous security patches.

  • Creating a new table in oracle 10g

    Hi. been out of the business for 8 months. downloaded oracle 10g and now having trouble creating scripts and tables like i did in 9i. Any thing new I need to know about?
    thanks,
    Lorenzo Harris

    Thanks. I got that. My question is the sign on screen is different. i have to type connect to user/password.
    is this the new way or did i not get the old sql screen that ask for user then password:
    thanks,
    Lorenzo

  • OWB Mapping involving Oracle External Table to  Oracle Target Table.

    Hi All,
    I created a mapping which involves External Table as source & oracle table as target.
    Following were steps followed.
    1> Created Directory & External Table on oracle server
    2> Attached Text file with ',' delimiter to the External Table.
    3> Imported the External Table in source module.
    4> Created mapping which involves External Table as Source & Oracle Table as Target.
    5> Validated & Generated Mapping in OWB.
    6> Deployed the mapping in Deployment Manager.
    7> Executed the mapping in Deployment Manager.
    Execution Results: Completed with errors.
    No error message is displayed, I am wondering where can I get more information about the error message?
    Thanks in Advance.
    Regards,
    Vidyanand

    Hi,
    Look in the logfile <your runtime owner>.log.* under the directory <owb home>/owb/log
    thanks

  • Error in creating an external table referring to a XML file

    I've got an XML file and I've tried to create an external table referring to it in this way:
    CREATE TABLE mytable
        XML_DATA_COLUMN XMLType
      ORGANIZATION EXTERNAL
        TYPE ORACLE_LOADER DEFAULT DIRECTORY TEST_DIR
        ACCESS PARAMETERS ( records delimited BY newline
        (XML_DATA_COLUMN LOB) ) LOCATION ( 'myfile.xml' )
    where TEST_DIR is the directory where myfile.xml is stored,
    but I get this message:
    Error at Command Line:3 Column:4
    Error report:
    SQL Error: ORA-30656: column type not supported on external organized table
    30656.0000 -  "column type not supported on external organized table"
    *Cause:    Attempt to create an external organized table with a column
               of type LONG, LOB, BFILE, ADT, or VARRAY.
    *Action:   These column types are not supported, change the DDL.
    I want to have in the XML_DATA_COLUMN the content of myfile.xml so as to handle it by using extract and extractvalue functions.
    My oracle version is 10gR2 Express Edition
    Thanks!

    The examples in the following thread include an insert, but you could also use the select statement alone without the insert.
    http://www.orafaq.com/forum/mv/msg/172162/511897/0/#msg_511897

  • Os error in external tables in oracle 9i

    hi, iam geting the following err when selecting the external table.
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04063: unable to open log file log.log
    OS error The system cannot find the file specified.
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    ORA-06512: at line 1
    my script for the external table is as follows
    CREATE OR REPLACE DIRECTORY EXT_data AS 'f:\kindle\daily\zippedfiles\';
    CREATE OR REPLACE DIRECTORY EXT_log AS 'd:\2.fin2004\1.sqlloader\3.logentries\thd0\log';
    CREATE OR REPLACE DIRECTORY EXT_bad AS 'd:\2.fin2004\1.sqlloader\3.logentries\thd0\bad';
    grant read, write on directory EXT_data to fincon1;
    grant read, write on directory EXT_log to fincon1;
    grant read, write on directory EXT_bad to fincon1;
    CREATE TABLE THD0_DATA1
    STATUS_CHARACTER               char(1),
    ACCOUNT_NUMBER                    VARchar(13),
    NODEF1                         VARchar(7),
    TRANSACTION_COUNTER               VARCHAR(5)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY ext_data
    ACCESS PARAMETERS
         RECORDS DELIMITED BY '@'
         badfile ext_bad:'bad.bad'
         logfile ext_log:'log.log'
    FIELDs
    STATUS_CHARACTER          ,
    ACCOUNT_NUMBER          ,
    NODEF1               ,
    TRANSACTION_COUNTER     
    LOCATION ('thd0data.dat')
    REJECT LIMIT UNLIMITED
    how to rectify the above error.
    thanks and regards
    S. Djeanthi

    If you have oracle metalink support then refer to Note:150737.1. If no support, i can paste it send to your email id.

  • ORA-0092 error when trying to create an external table

    For some reason, I always received the following error whenever I attempt to create an
    External table.
    ORA-0092:missing or invalid option
    This is the code that I am using in SQL Plus:
    SQL> create table products (
    2 product_no number,
    3 description varchar2(100),
    4 price varchar2(20)
    5 )
    6 organization EXTERNAL (
    7 type oracle_loader
    8 default directory PRODUCT_DIR
    9 access parameters
    10 ( records delimited by newline
    11 badfile 'products.bad'
    12 logfile 'products.log'
    13 fields terminated by ','
    14 )
    15 location ('products.csv')
    16 )
    17 reject ('products.csv')
    18 )
    19 reject limit unlimited
    20 /
    organization EXTERNAL (
    ERROR at line 6:
    ORA-00922: missing or invalid option
    This is the statement that I used to create my directory:
    CREATE DIRECTORY PRODUCT_DIR AS 'd:\products';
    Does that directory have to be an actual physical directory in UNIX for this to work, or
    will it be looking for a products folder in the d drive of my Windows NT machine?

    The directory should exist on the server where Oracle is installed. Since clients can be more than one on various operating
    systems, It can not be a directory on the client (since that would not be valid for other clients or even the same user
    connecting from a different machine).
    Did you install the Standard Edition of Oracle or the Enterprise Edition of Oracle server on your machine?
    External Tables option may not be available on Standard Edition.
    I have Oracle9i Rel 2 installed on my server and the external tables works fine for me.

  • Create multiple external tables from same flat file ?

    using oracle 10g
    currently create many external tables like so..
    CREATE TABLE "XT_UNITS"
    "Q1_2012" VARCHAR2(25 BYTE),
    "Q2_2012" VARCHAR2(25 BYTE),
    "Q3_2012" VARCHAR2(25 BYTE),
    "Q4_2012" VARCHAR2(25 BYTE)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER DEFAULT DIRECTORY "XE_FILES" ACCESS PARAMETERS ( records delimited BY newline
    skip 1 fields terminated BY ',' OPTIONALLY ENCLOSED BY '"' MISSING FIELD VALUES
    ARE NULL ) LOCATION ( 'xtunits.csv' ))
    is there any way I can use 1 flat file (csv) to populate many external tables ?
    maybe by section ?

    Jay wrote:
    using oracle 10g
    currently create many external tables like so..
    CREATE TABLE "XT_UNITS"
    "Q1_2012" VARCHAR2(25 BYTE),
    "Q2_2012" VARCHAR2(25 BYTE),
    "Q3_2012" VARCHAR2(25 BYTE),
    "Q4_2012" VARCHAR2(25 BYTE)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER DEFAULT DIRECTORY "XE_FILES" ACCESS PARAMETERS ( records delimited BY newline
    skip 1 fields terminated BY ',' OPTIONALLY ENCLOSED BY '"' MISSING FIELD VALUES
    ARE NULL ) LOCATION ( 'xtunits.csv' ))
    is there any way I can use 1 flat file (csv) to populate many external tables ?
    maybe by section ?Not a logical question.
    An external table definition relates to one or more files.
    You could probably create multiple externable table definitions to access the same file(s), but you may end up with some operating system file locking issues if you're not careful, and to be honest why would you need to do that?

  • Retrieve data from a large table from ORACLE 10g

    I am working with a Microsoft Visual Studio Project that requires to retrieve data from a large table from Oracle 10g database and export the data into the hard drive.
    The problem here is that I am not able to connect to the database directly because of license issue but I can use a third party API to retrieve data from the database. This API has sufficient previllege/license permission on to the database to perform retrieval of data. So, I am not able to use DTS/SSIS or other tool to import data from the database directly connecting to it.
    Here my approach is...first retrieve the data using the API into a .net DataTable and then dump the records from it into the hard drive in a specific format (might be in Excel file/ another SQL server database).
    When I try to retrieve the data from a large table having over 13 lacs records (3-4 GB) in a data table using the visual studio project, I get an Out of memory exception.
    But is there any better way to retrieve the records chunk by chunk and do the export without loosing the state of the data in the table?
    Any help on this problem will be highly appriciated.
    Thanks in advance...
    -Jahedur Rahman
    Edited by: Jahedur on May 16, 2010 11:42 PM

    Girish...Thanks for your reply...But I am sorry for the confusions. Let me explain that...
    1."export the data into another media into the hard drive."
    What does it mean by this line i.e. another media into hard drive???
    ANS: Sorry...I just want to write the data in a file or in a table in SQL server database.
    2."I am not able to connect to the database directly because of license issue"
    huh?? I never heard this question that a user is not able to connect the db because of license. What error / message you are getting?
    ANS: My company uses a 3rd party application that uses ORACLE 10g. And my compnay is licensed to use the 3rd party application (APP+Database is a package) and did not purchased ORACLE license to use directly. So I will not connect to the database directly.
    3.I am not sure which API is you are talking about, but i am running an application of the visual studio data grid or similar kind of controls; in which i can select (select query) as many rows as i needed; no issue.
    ANS: This API is provided by the 3rd party application vendor. I can pass a query to it and it returns a datatable.
    4."better way to retrieve the records chunk by chunk and do the export without loosing the state of the data in the table?"
    ANS: As I get a system error (out of memory) when I select all rows in a datatable at a time, I wanted to retrieve the data in multiple phases.
    E.g: 1 to 20,000 records in 1st phase
    20,001 to 40,000 records in 2nd phase
    40,001 to ...... records in 3nd phase
    and so on...
    Please let me know if this does not clarify your confusions... :)
    Thanks...
    -Jahedur Rahman
    Edited by: user13114507 on May 12, 2010 11:28 PM

  • How we create new data base in oracle 10g express edition

    hello every body.. i student of B tech n new user of oracle so please help me how we creat new data base in oracle 10g express edition

    Hello, Oracle XE can not create more than one instance, the other editions yes, but like other editions XE allows you to create database schemas, schemas logically grouped objects like tables, views, indexes created by a user. By creating an Oracle user is associated with a schema of the same name.
    Using SYS or system accounts for creating user accounts.
    Syntax to create a user:
    create user Your_user
    IDENTIFIED BY password
    default tablespace users;
    grant connect, resources to your_user;
    Edited by: rober584812 on Jun 25, 2010 9:03 PM

  • Can't Create the ODBC connection for Oracle 10g

    Hi,
         I am working with Oracle 10g Database Release 2 in windows XP professional. I am trying to create an ODBC connection for oracle but become failure because its generating the following errors:
    system error code 998
    could not locate the setup or translator library
    Please help me how can I solve this problem and create the ODBC connection for oracle 10g database.
    Best Regards,

    mwz wrote:
    I am trying to create an ODBC connection for oracle but become failure because its generating the following errors:
    system error code 998
    could not locate the setup or translator libraryThe symptom described is typical of an incorrect system env PATH setting (used by the data source admin tool), compared to that of the Oracle Home (specifically, path $OH/bin). The odbc driver config routine will search directories listed in PATH variable for necessary libraries (Client dll's). If some library fails to load (from e.g. oraoci*.dll or oraclient10.dll) it will probably error out, as in your case.
    Are you creating the odbc dsn on the databse server host or on some other machine? I.e. are you using the db host as a client or not?

  • How to migrate a table from ORACLE 10g to 8i

    have table named 'liuxg_tab_01' in 10g.
    This morning I exported this table using 'exp' and then tried to imp it into 8i, I failed.
    After a while, I created a database link named 'ctf' in 8i which connected to 10g. I issued 'create table test as selct * from liuxg_tab_01@ctf',it returns 'ORA-01723'.
    Then I extraced the DDL of 'liuxg_tab_01' from 10g with QUEST TAOD, it's:
    CREATE TABLE LIUXG_TAB_01
    OWNER VARCHAR2(30 BYTE),
    OBJECT_NAME VARCHAR2(30 BYTE),
    SUBOBJECT_NAME VARCHAR2(30 BYTE),
    OBJECT_ID NUMBER,
    DATA_OBJECT_ID NUMBER,
    OBJECT_TYPE VARCHAR2(19 BYTE),
    CREATED DATE,
    LAST_DDL_TIME DATE,
    TIMESTAMP VARCHAR2(19 BYTE),
    STATUS VARCHAR2(7 BYTE),
    TEMPORARY VARCHAR2(1 BYTE),
    GENERATED VARCHAR2(1 BYTE),
    SECONDARY VARCHAR2(1 BYTE)
    But I can not create a table using the upper DDL in 8i if I do not wipe off those "BYTES".
    After creation of the table using the upper DDL without those 'BYTES', I sucessfully executed 'insert into LIUXG_TAB_01 select * from liuxg_tab_01@ctf'.
    Anyone has a better method to move a table from ORACLE 10g to 8i?

    1) The particular version of 8i and 10g in use here would be useful. I'm not sure that Oracle supports database links between any version of 8i and any version of 10g, though, so you're probably lucky that it worked as well as it did.
    10g 10.1.0.3.0 and 8i 8.1.7.0.0
    2) What version of the export utility did you use? You would need to use the 8i version to generate the dump file to have any chance of working, not the 10g verion.
    I use the 'exp' provided with 10g 10.1.0.3.0 and 'imp' with 8i 8.1.7.0.0. I have tried to export data directly from 10g 10.1.0.3.0 using 'exp' provided with 8i 8.1.7.0.0. Failed.
    3) Why? Since 8i is desupported, there isn't a lot of call for tools to move data from supported releases to unsupported releases.
    We have an 8i DB which is still porivding insentive services. We just wanna migrate some tales from 10g to it.
    FYI, NLS_LENGTH_SEMANTICS was introduced in 9i, so it's no suprise that 8i objected to the BYTE keyword in the DDL.
    What's FYI :P
    Another option would be to generate a CSV file of the data from 10g and use SQL*Loader to load it into 8i. Not sure this would be any easier, though.
    Justin
    Message was edited by:
    user510846

Maybe you are looking for

  • How do i deactivate an itunes account on one computer so i can use it on my new computer?

    I am trying to get my itunes account onto my new macbook pro, but it says i need to deauthorize the account on one computer, because it's already authorized on 5 computers.

  • What is wrong with as3

    this is not a question about 'how i do X'. is rather a 'discussion' (flame or whatever, but to defend or argue about aspects, not people) about 'what is wrong with as3' and what aspects whould be taken into consideration for updates. right now i am u

  • Image upload in sap

    HI all, I have a requirement in which I have to upload a picture. DATA: lr_mime_rep TYPE REF TO if_mr_api. DATA: lv_filename TYPE string. DATA: lv_path     TYPE string. DATA: lv_fullpath TYPE string. DATA: lv_content  TYPE xstring. DATA: lv_length  

  • Can't copy and paste in QT7 Pro

    When I try to copy a video for pasting into another I do this: Select All in one video Copy Click on the second video and take playhead to the start Paste All I get is a blip telling me it can't paste. What has happened is that the Copy didn't work.

  • How to debug using RSNAST00 and jdbg for multiple invoice number

    Hi everyone, I want to debug multiple invoice's print preview. could anybody tell me the step by step process how to do this using RSNAST00 and JDBG. Thanks Lisa