Problem importing a table with data in an existing schema

Hi,
I am trying to import a schema and found an error while importing
ORA-39083: Object type TABLE failed to create with error:
ORA-01843: not a valid month
Failing sql is:
CREATE TABLE "AMBERSAP"."QUOTE" ("QUOTE_ID" VARCHAR2(15) NOT NULL ENABLE, "CONTRACT_ID" VARCHAR2(12), "QUOTE_OWNER" VARCHAR2(100) NOT NULL ENABLE, "TEMP_CONTRACT" VARCHAR2(1) DEFAULT 'N', "QUOTE_STATUS_CODE" VARCHAR2(1), "QUOTE_INITIATE_DATE" DATE NOT NULL ENABLE, "QUOTE_EXPIRY_DATE" DATE NOT NULL ENABLE, "EXTENDED_EXPIRY_DATE" DATE, "OFFER_DAYS" NUMBER(*,0), "OFFER_CLOSED_DATE" DATE, "BRAND_CODE" VARCHA
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Any feedback on this is highly apprciated.
Thanks in advance .

I've set the NLS_DATE_FORMAT='DD/MM/YYYY'
by export NLS_DATE_FORMAT='DD/MM/YYYY'
but still failing to create the quote table while i try to import the whole schema.
here is the error message
wlgora(oracle)[HDM_D]/db/HDM_D/dba/exp$: file=amberquota1.dmp logfile=impquote1.log TABLE_EXISTS_ACTION=APPEND <
Import: Release 10.2.0.4.0 - 64bit Production on Tuesday, 11 October, 2011 14:52:58
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
Master table "AMBER"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "AMBER"."SYS_IMPORT_FULL_01": amber/******** directory=EXPORT dumpfile=amberquota1.dmp logfile=impquote1.log TABLE_EXISTS_ACTION=APPEND
Processing object type TABLE_EXPORT/TABLE/TABLE
ORA-39083: Object type TABLE failed to create with error:
ORA-01843: not a valid month
Failing sql is:
CREATE TABLE "AMBER"."QUOTE" ("QUOTE_ID" VARCHAR2(15) NOT NULL ENABLE, "CONTRACT_ID" VARCHAR2(12), "QUOTE_OWNER" VARCHAR2(100) NOT NULL ENABLE, "TEMP_CONTRACT" VARCHAR2(1) DEFAULT 'N', "QUOTE_STATUS_CODE" VARCHAR2(1), "QUOTE_INITIATE_DATE" DATE NOT NULL ENABLE, "QUOTE_EXPIRY_DATE" DATE NOT NULL ENABLE, "EXTENDED_EXPIRY_DATE" DATE, "OFFER_DAYS" NUMBER(*,0), "OFFER_CLOSED_DATE" DATE, "BRAND_CODE" VARCHAR2(
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
ORA-39112: Dependent object type OBJECT_GRANT:"AMBER" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"AMBER" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"AMBER" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"AMBER" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"AMBER" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"AMBER" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"AMBER" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"AMBER" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"AMBER" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"AMBER" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"AMBER" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"AMBER" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"AMBER" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"AMBER" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
ORA-39112: Dependent object type INDEX:"AMBER"."QT_PK" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
ORA-39112: Dependent object type CONSTRAINT:"AMBER"."QPPS_ACTIVE_CHK" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type CONSTRAINT:"AMBER"."QTC_ACTIVE_CHK" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type CONSTRAINT:"AMBER"."QT_ACTIVE_CHK" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type CONSTRAINT:"AMBER"."QL_ACTIVE_CHK" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type CONSTRAINT:"AMBER"."QP_ACTIVE_CHK" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type CONSTRAINT:"AMBER"."QF_ACTIVE_CHK" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type CONSTRAINT:"AMBER"."QTEXP_ACTIVE_CHK" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type CONSTRAINT:"AMBER"."QNC_ACTIVE_CHK" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type CONSTRAINT:"AMBER"."QT_PK" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type CONSTRAINT:"AMBER"."CON_AUTH_CON_CHECK" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"AMBER"."QT_PK" creation failed
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
ORA-39112: Dependent object type REF_CONSTRAINT:"AMBER"."QUOTE_QUOTESTATUS_FK" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type REF_CONSTRAINT:"AMBER"."QUOTE_BRAND_FK" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
ORA-39112: Dependent object type REF_CONSTRAINT:"AMBER"."QCST_QUOTE_FK" skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"AMBER"."QUOTE" creation failed
Job "AMBER"."SYS_IMPORT_FULL_01" completed with 31 error(s) at 14:53:00
wlgora(oracle)[HDM_D]/db/HDM_D/dba/exp$: sqlp
SQL*Plus: Release 10.2.0.4.0 - Production on Tue Oct 11 14:53:09 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
Edited by: 790072 on 10/10/2011 18:54
Edited by: 790072 on 10/10/2011 18:55

Similar Messages

  • Problem importing a table with blob's

    hi all, I'm facing the following situation.
    Source DB : 10.2.0.3 (client's DB)
    Destination DB (mine): 10.2.0.4
    I've a dump file (traditional) of a particular schema.
    I'm running import (imp) to import on my DB.
    It runs fine until it reaches one particular table. This table has 6 colums, 3 of them are BLOB.
    This table has 260000 rows (checked with export log).
    When import reaches row 152352 it stops loading data, but import is still running.
    what can I do to get more information from this situation in order to solve this problem?
    Any suggestion will be appreciated!
    Thanks in advance.

    Pl identify the source and target OS versions. Are there any useful messages in the alert.log ? How long did the export take ? Rule of thumb states import will take twice as long. Have you tried expdp/impdp instead ? Also see the following -
    How To Diagnose And Troubleshoot Import Or Datapump Import Hung Scenarios          (Doc ID 795034.1)
    How To Find The Cause of a Hanging Import Session          (Doc ID 184842.1)
    Import is Slow or Hangs          (Doc ID 1037231.6)
    Export and Import of Table with LOB Columns (like CLOB and BLOB) has Slow Performance          (Doc ID 281461.1)
    HTH
    Srini

  • Problem import excel table with photos

    When I import excel table with photos, the photos don't appear

    Welcome to Project Siena!
    If you're seeing an 'x' instead of your photo in the data source it's possible that Project Siena can't access the directory.  Try saving your images in another folder such as C:\Users\Public\Pictures.
    Others have also reported that if the Library isn't set up correctly in Windows 8 that they've had issues.
    Here are some posts to look at while we wait for additional information from you:
    Importing local images via an Excel file
    Siena Gallery unable to load image
    Images in Public Pictures directories showing
    up as X in Img from URL
    (fyi - this last post's screenshot will look different than yours as it was from Beta 1.)
    Thor

  • Help on export sybase iq tables with data and import in another database ?

    Help on export Sybase iq 16 tables with data and import into another database ?

    Hi Nilesh,
    If you have table/index create commands (DDLs), you can create them in Developper and import data using one of methods below
    Extract/ Load table
    Insert location method : require IQ servers to be entered in interfaces file
    Backup/Restore : copy entire database content
    If you have not the DDLs, you can generate them using IQ cockpit or SCC.
    http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01773.1604/doc/html/san1288042631955.html
    http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01840.1604/doc/html/san1281564927196.html
    Regards,
    Tayeb.

  • Import of Tables with CLOB problem.

    Hi,
    I am having problems with the import of tables with CLOB columns.
    Tables with CLOB columns will force the use of the tablespace in which it (table) was created originally. It will not be created on the new schema's default tablespace. Is there a way to get around this problem?
    More on this problem can be found here :
    Re: Import error 1647, CLOB fields problem, need help!
    I am using Oracle 9.2.0.6 standard edition, that is why the transportable tablespace option will not work.
    Thanx
    Rob

    Sorry I have posted the wrong link, it should be:
    Re: Import error 1647, CLOB fields problem, need help!
    Regards
    Rob

  • How to pass internal table with data in ABAP OO

    Hi experts ,
    Here is the problem...
    I create a screen 100 and use the internal table to get data from database, and then press the button on screen 100 , it will call screen 200.
    I use ABAP OO code in screen 200, and i want to keep the internal table with data that i get from the sceen 100 parts, but it seems that it just supports to create a new internal table and get data from database in ABAP OO. That means i need to create a new table to save the data in internal table ? Or there is any other solution something like exporting or memory id ...
    ps . the internal table in screen 100 is declared in global area, the beginning of the code.
    Please give me some advice, thanks a lot!
    Regards ,
    Claire

    I have already know how to do, here is my code:
    METHODS fill_tree importing itab2 like itab1.
    CALL METHOD: me->fill_tree exporting itab2 = itab1.
    In METHOD fill_tree,
    declare
    data: itab3 TYPE STANDARD TABLE OF itab,
    itab3[] = itab1[].
    It is useful to me, thanks a lot.

  • How to move tables with data from one client to another

    Hello friends
    I have 2 clients 001 and 002.
    I have created a table with lots of data on client 001.
    I have to get the same table on 002 also with the same data.
    Is there an easier way of transfering this data from one table to another?
    I would appreciate any feedback on this.
    I know that mappings etc., can be done using the export and import of tpz file. So I want to know if there is any similar thing to transfer a table with data.
    THanks
    Ram

    hi
    thanks for the response
    We are working on a sandbox system for demo purpose.
    Actually we have two different group of people using two different clients created on the same server.
    Our group is using client 001 and another group is using client 002.
    We don't want the changes that one group does to the table to affect the other.
    Our group has created a z-table and have entered considerable amount of data.
    However, the other group also need to create the same table with the same data.
    So to avoid double work, we were trying to see if there is a way to copy the table with data created on 001 to 002.
    Any suggestions / feedback will be greatly appreciated.
    Thanks
    Ram

  • Moving tables with data from one client to another

    Hello friends
    I have 2 clients 001 and 002.
    I have created a table with lots of data on client 001.
    I have to get the same table on 002 also with the same data.
    Is there an easier way of transfering this data from one table to another?
    I would appreciate any feedback on this.
    I know that mappings etc., can be done using the export and import of tpz file. So I want to know if there is any similar thing to transfer a table with data.
    THanks
    Ram

    If you do not have the client field in your table, then the table is cross-client.
    IF you have the client field filled with 001, then you need to create the same entries with client 002, I dont think that you can do this with a transport.
    You have to write an ABAP that reads and writes the data.

  • Trying to populate a table with data from WebRowset

    Hi,
    I want to be able to populate my tables with data from WebRowsets that have been saved to files. Everything goes good until I get to acceptChanges(). At which point I get a NullPointerException.
    Here's the code...
    WebRowSet wrs = new WebRowSetImpl();
    FileReader reader = new FileReader(inputFile);
    wrs.readXml(reader);
    wrs.beforeFirst();
    CachedRowSet crs = new CachedRowSetImpl();
    crs.setSyncProvider("com.sun.rowset.providers.RIXMLProvider");
    crs.populate(wrs);
    crs.beforeFirst();
    crs.acceptChanges(con);
    Results in...
    java.lang.NullPointerException
    at com.sun.rowset.CachedRowSetImpl.acceptChanges(CachedRowSetImpl.java:867)
    at com.sun.rowset.CachedRowSetImpl.acceptChanges(CachedRowSetImpl.java:919)
    I'm using Java 1.5_02. I looked at the source code for CachedRowSetImpl, and the only thing I could think of is that maybe "provider.getRowSetWriter()" in the following snippet is returning null....
    public void setSyncProvider(String s)
    throws SQLException
    provider = SyncFactory.getInstance(s);
    rowSetReader = provider.getRowSetReader();
    rowSetWriter = (TransactionalWriter)provider.getRowSetWriter();
    Any ideas?? Thanks!

    I have the same problem after setting com.sun.rowset.providers.RIXMLProvider.
    Looks like a bug to me.
    By the way, why are you creating a new CachedRowSet and populate it with a WebRowset (which extends CachedRowSet)?

  • What is the best wayt to copy tables with data from development to Prod?

    Dear all,
    We have Oracle tables with data in a development server, I would like to know if there is any ‘easy’ and ‘direct’ way to copy them to the production server.
    As I think import and export would be the best way. Any other althernatives?
    Thanks.

    There are a number of methods you could use.
    <ul><li>
    Export and import would work or their 10g+ equivalents data pump. </li>
    <li>You could create a database link between the 2 databases and use SQL*Plus copy to transfer data on a table by table basis (probably quite laborious unless there's only a few tables). </li>
    <li>You could use transportable tablespaces (there are some restirctions - check the documentation http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/tspaces013.htm#sthref1632) </li>
    <li>You could use RMAN to clone the development database (assuming the prod database hasn't been used yet and that there's nothing in it you need to keep).</li>
    <li>You could create the prod database as a standby copy of the dev database </li>
    </ul>
    Using transportable tablespaces would be much faster than using data pump or import/export depending on how much data there is.

  • How to Copy complete structure of a table with data from one database table to another databse table

    I need a sql query to copy structure of table with data from production table of ONLINEBTREKDB database to production table of Archive database.
    I tried this query
    select * into Archive.dbo.Production from ONLINEBTREKDB.dbo.Production p
    but problem is I am able to copy the table schema and data but not able to copy constraints(PK)
    Any Help?
    seema

    You've multiple options
    1. Use generate scripts wizard available in SQL management studio. This is particularly helpful when you want to script out lot of objects. You can also choose to script data as well inside this. This can be launched by right clicking the db, choosing tasks
    -> generate scripts and then selecting required options inside the wizard
    2. Use object explorer and right click and script out table. You can also use search functionality to find object you want inside object explorer
    http://visakhm.blogspot.in/2013/02/object-filtering-using-ssms-object.html
    3. Use query based on INFORMATION_SCHEMA views like TABLES,COLUMNS,CONSTRAINT_COLUMN_USAGE etc to generate the script
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to import a table with renamed name

    If I want to import a table from a DMP on UNIX towards my user where I already have a new version but I don't want to drop this new version 'cause I have only to move some records from one to the other, is there an import option for importing the table with another name? I mean I want to import on the same user, where there already exists the table MYTABLE, an old version of MYTABLE by impoting it with the new name MYTABLE_OLD, so afterwards I can update MYTABLE with some of old records of its old versione MYTABLE_OLD. Is it possible?

    You cannot directly do this.
    You can import the Table into a different schema and then rename the table.
    export and import back into the required schema.
    Import DataPump: How to Import Table Data into a Table that has Different Name ? [ID 342314.1]
    Regards
    Rajesh

  • How to transport/move a table with data from development to Test to Production

    Hi,
    How to transport/move a table with data from development to Test to Production..? Export-Import a Delivery Unit does only the structure and not the data
    Reg
    Sri

    Hi Sri,
    You cannot transport Data via Transport route in HANA, you can only transport code changes/Structure via DU. For Data movement, you either have a do a export/import from a flat file or replication from a Source System to HANA.
    Thanks Much,
    Abhishek

  • Rename the existing table with date suffix

    Hi,
    I'm trying to rename a table with date suffix at the end of the table name, and drop the date suffix table which is greater than 7 days. for that I have the below sql, I have not included the drop syntax in this.
    I'm not able to rename with the date suffix in the below sql, syntax error at '+'  
    DECLARE
    @TPartitionDate date
    IF EXISTS (SELECT * FROM sysobjects WHERE Name = 'IIS_4')
    BEGIN
    SELECT
    @TPartitionDate = MAX(PartitionDate)
    FROM PartitionLog (NOLOCK)
    EXEC sp_rename 'IIS_4','IIS_4_'+ @TPartitionDate
    END

    create table Test(sno int)
    DECLARE
    @TPartitionDate date = getdate()
    declare @a varchar(200)
    IF EXISTS (SELECT * FROM sysobjects WHERE Name = 'Test')
    BEGIN
    select @a='TEST_'+ cast(@TPartitionDate as varchar(10))
    EXEC sp_rename 'TEST',@a
    END
    drop table [test_2015-04-23]
    Hope it Helps!!

  • Using expdp to export a mix of tables with data and tables without data

    Hi,
    I would like to create a .dmp file using expdp, exporting a set of tables with data and another set without data. Is there a way to do this in a single .dmp file? For example, I want all the tables in a schema with data, but for the fact tables in that schema, I only want the fact table objects, not the data. I thought it might be easier to create two separate .dmp files, one for each scenario, but would be nice to have one .dmp file that satisfies my requirement. Any help is appreciated.
    Thanks,
    -Rodolfo
    Edited by: user6902559 on May 11, 2010 12:05 PM

    You could do this with where clauses. Let's say you have 10 tables to export, 5 with data and 5 without data. I would do it like this
    tab1_w_data
    tab2_w_data
    tab3_w_data
    tab4_w_data
    tab5_w_data
    tab1_wo_data
    tab2_wo_data
    tab3_wo_data
    tab4_wo_data
    tab5_wo_data
    I would make one generic query
    query="where rownum = 0"
    and I would make 5 specific queries
    query=tab1_w_data:"where rownum > 0"
    query=tab2_w_data:"where rownum > 0"
    query=tab3_w_data:"where rownum > 0"
    query=tab4_w_data:"where rownum > 0"
    query=tab5_w_data:"where rownum > 0"
    The first query will be applied to all tables that don't have their own specific query and it will export no rows, the next 5 will apply to each of the corresponding table.
    Dean

Maybe you are looking for