Moving data type with imp/exp

i used this line in one database:
create or replace type sagi_row as object (
ids varchar2 (250)
str varchar2 (250));
create or replace type sagi_srray os table or sagi_row;
it work and i can use it.
i duplicate the database by simple defaul exp and imp, it do every tink but not the data_type.
it is simply do not transfer with all the data.
and my question is WHY????????
Thank you

What version of Oracle are you using? Can you post the export and import logfiles?

Similar Messages

  • Howto call custom Oracel Data Type with TopLink?

    Hello,
    in our DB we have a custom Oracle type and a PL/SQL method which uses it.
    I would like to call the Oracle data type with TopLink. How can I do this?
    I could not find any documentation on this.
    I know JPublisher can do this but I don't want to use it!
    Please see code below
    cheers,
    Pete
    **************Datatype********************************
    CREATE TYPE My_Sub_Object AS OBJECT (Sub_Object_ID Number,
    Sub_Object_Txt VARCHAR2(200));
    CREATE TYPE My_Sub_Objects AS VARRAY (20) OF My_Sub_Object;
    CREATE TYPE My_object AS OBJECT (Object_id Number,
    Object_txt VARCHAR2(200),
    Sub_Objects My_Sub_Objects);
    ************PL/SQL-Method*****************************
    CREATE OR REPLACE PROCEDURE My_object_pro
    (Item_Object out My_Object) is
    Item_Sub_Object My_Sub_Object;
    Item_Sub_Objects My_Sub_Objects;
    Begin
    Item_Sub_Object := My_Sub_Object(10, 'Sub Object 10');
    Item_Sub_Objects := My_Sub_Objects(Item_Sub_Object);
    Item_Sub_Objects.Extend;
    Item_Sub_Object := My_Sub_Object(11, 'Sub Object 11');
    Item_Sub_Objects(2) := Item_Sub_Object;
    Item_Object := My_Object(1, 'Object', Item_Sub_Objects);
    End;
    /

    Object types and Varrays can be used from TopLink stored procedure calls. There was some support for this in 10.1.3, but the support in 11g (preview) is much better. You can also access the JDBC connection from TopLink or your DataSource and use JDBC directly.
    In TopLink 11g you can use an ObjectRelationalDescriptor to map the Object type to a Java class, and use this class as the argument type in your StoredProcedureCall.
    PL/SQL types are more difficult as they are not supported by JDBC, but your example only includes object types. If you had PL/SQL types you would need to wrap the types in object types, or use a PL/SQL block to convert them. TopLink 11g (preview 3) should have support for these as well.

  • Which Data Type with 255 cars +

    Hi,
    I have a flat structure table with 15-20 fields, and I need for one of the field a data type with more than 255 cars
    I cant put a STRING without having the flat structure error ...
    Which one should I use ? How should I proceed ?
    Thanks !
    Kr,
    BA

    Hi Benjamin,
    use SE80, click repository info system, click dictionary - data elemets. Chose length > 1024. F8 to execute.
    Check where-used-list of what you like to use to make sure it is so frequently used that SAP will not change it.
    Or better create your own Z data element with required length
    Regards
    Clemens

  • Jdev11g: How to use a Ord.image data type with ADF Faces 11g

    Where to find an example about Ord.image data type with ADF Faces 11g preview3

    Hi,
    such a sample doesn't yet exist.
    Frank
    Btw.: The Jdeveloper 11 forum is JDeveloper and OC4J 11g Technology Preview

  • Problem with central build of Simple Date Type with Enumeration

    Dear gurus,
    I hope I'm posting this in the correct forum. Please advise if I'm in the wrong forum.
    I have a Web Dynpro DC in which I've created a simple data type with enumeration.  It is used for binding to a radio box. The data type is called DownloadType; the enumeration contains two vales: current and archive. To allow me to access the enumeration values, I turn on the "Generate a class representation of the enumeration" in the data type builder.
    I then reference the enumeration values with code like:
    if (downloadType.equals (DownloadType._CURRENT))
        yada yada yada
    This works fine when building locally and deploying directly. But when the DC is built by CBS (or doing a "Development Component->Build..." in NW Dev Studio), the build fails, stating that the DownloadType._CURRENT symbol cannot be resolved.
    For example:
    C:yadayadayada.java:227: cannot resolve symbol
    symbol  : variable _CURRENT
    location: class yadayadayada.DownloadType
                    equals(DownloadType._CURRENT))  {
    Apparently the central builder is not smart enough to handle the "Generate a class representation" flag.
    Is this a known problem? Are there any workarounds?
    Thanks in advance for any help you can provide.
    -Kelly
    P.S. Environment: 2004s

    Hi Kelly,
    works for me using SP10, what SP are you on?
    There's a line in the DC log that says:
         [ddgen] [Info]    Generating datatypes/com/x/x/x/MyEnum.java
    and the java compiler includes the matching path for compilation:
          [echo]   source paths:
          [echo]     ...\_comp\src\packages
          [echo]     ..\t\ABF37B5AFB3B2E8A76FFD29E7862EA48\gen_ddic\datatypes
    Regards,
    Marc

  • Data type with large size in a table and updating it

    Hi guys,
    i am working on a requirement in which i need to create 4 tables. Here, 2 tables will be updated by the user and a program will update this content to the other 2 table.
    2 days before i posted a query on this, Previously i stucked on a part where, table need to entries with size char 400 and char 9000. As from the reply, i changed it to STRING with which table was sucessfully created and i was able to update data through a report program.
    Now we ned to provide an sm30 option to users, so they can insert new contents and update the status of old contents. But when i tried this table maintanance generator, i got an error that table contains string, so maintanance generator cannot be done ! i changed the data type to rawstring also. Now maintanance generator got saved, but when i open the table in sm30, i am getting dump saying tht table is using string/char etc.
    can anyone tell me what data type to use in this scenario with which we can enter data through sm30 ?

    Hi Kithu,
    you can use STRING (or XSTRING) fields. Then there is no limit on the field size. As long as it is not (fully) filled with data, no space is wasted.
    The disadvantage is that STRING type data are treated as 'deep' structures. That leads to some trouble in the definition of interfaces. Give it a try!
    Regards,
    Clemens

  • IT0041 : Same date type with different values in the same infotype

    Hi,
    Is it possible to store in the 0041 infotype, the same type date but with a diffentent date.
    Example :
    IT0041
    employee 1000:
    date type : xx 01.05.10
    date type : xx 02.05.10.....
    Thanks

    Hi there,
    My two cents.
    I don't think it can be done in standard. Also copying IT 0041 would limit you to enter only 12 dates.
    My suggestion:
    Create a custom infotype with subtype field and a date field like IT 0015.
    On the screen you will only be seeing subtype and date. And assign time constraint 3 to it.
    In this way with the same subtype you can record several dates.
    cheers
    Ajay

  • Data Type with reference and view maintenance

    Dear all,
    There are two questions that I want to ask.
    1.     Error when referencing a table with data type = u2018STRINGu2019.
    I have a Z table with some fields = u2018stringu2019, when I use this as a reference, an error prompted.
    "ZTBL_ABC" must be a flat structure. You cannot use internal
    tables, strings, references, or structures as components.-
    2.     Error in generating the View maintenance for field length > 255.
    Actually, I want to create fields with
    1.     data type = char(255),
    2.     data type = text
    3.     data type = char(3000)
    It is okay if I create the field with the selected size, however, when I generate the View maintenance (which can be access through SM30); it does not allow me to do so. It still not working if I change it into string. How can I create such table and use the table maintenance, as well as using that as the reference type of an internal table for another program?
    Regards,
    Mandy Au

    Hello,
    1st of all a table which has a field of type string can be converted in to table maintenance because TM does not support string type as it becomes a very big field to be displayed on screen ... so u need to change that.
    and then about the CHAR of length 3000 is too big ... to have a max limit of 255.
    If you change this both u will be able to generate TM.
    Incase after changing the field length it it gives error in activatin your table then go to SE14 put your table name EDIT and then Adjust n activate it....
    hope this was helpful
    --- Close the post once you get the solution

  • Generate Serializable data types with WSDLC

    Hello everyone,
    I'll was pretending to send a through a JMS ObjectMessage a type generated from WSDL with the wsdlc ant task. Unfortunately the generated types are not serializable and so I'm unable to send the message. It's really ackward to manualy change all of them so I would like to know if it's possible to instruct wsdlc to generate serializable data types. I'm using Weblogic 11gR1PS1. If it's not possible what do you recommend ?
    Currently the tasks are configured like this:
    <taskdef name="wsdlc" classpathref="weblogic.classpath" classname="weblogic.wsee.tools.anttasks.WsdlcTask" />
    <wsdlc srcWsdl="ejbModule/META-INF/wsdl/DataCatalog.wsdl" destJwsDir="gen" destImplDir="gen" packageName="br.com.allwayx.schema" type="JAXWS">
    Obs: I noticed that If I use a binding element inside the task passing any xjb file the wsdlc task generates a pair of Entity interface - EntityImpl implementation class. It stays like this:
    <wsdlc srcWsdl="ejbModule/META-INF/wsdl/DataCatalog.wsdl" destJwsDir="gen" destImplDir="gen" packageName="br.com.allwayx.schema" type="JAXWS">
                   <binding dir="${binding.declaration.dir}" includes="${binding.declaration.file}" />
    </wsdlc>
    Still I would like to keep the old way, without the binding element which generates just a concrete class for each element. Maybe this is a bug?
    Thank you !
    Edited by: Lupan on 28/04/2010 13:13

    Hi Lupan,
    Currently I believe there is no way to instruct WSDLC task to generate the Serializable data types.
    There was already a BUG opened with BEA for WLS -9.0 following are the BUG details:
    http://download.oracle.com/docs/cd/E13222_01/wls/docs100/issues/known_resolved.html
    CR228385
    Description:
    The Web Service Description Language (WSDL) compiler does not generate serializable data types, so data cannot be passed to remote EJBs or stored in a JMS destination.
    You should contact the Oracle Weblogic Support to get the current status of the BUG.
    Thanks,
    Sandeep

  • Decimal data type with negative sign

    Hi Gurus,
    I wanted to created a z table with a filed of type decimal with sign.  What I did is I created a field in predifined type with dec type, but -ve sign is not taking at the time of entering the data in SM30. Its saying only +ve values are allowed. Please let me know how can I achieve this. My data will be like -4.1242.
    Thanks,
    David.

    Hi..
    Try using another field as an indicator for negative fields so that you can consider those signs in your program.
    Regards,
    Karthik

  • Problem With Imp/Exp

    I have exported a database schema containing spatial data using exp and Imported it into a new database using imp. It seems to be dropping rows from the user_sdo_geom_metadata table in the new database.
    Has anyone else seen this problem and is there a solution to the problem?

    Oracle Spatial will only carry rows from the user_sdo_geom_metadata view for tables that have spatial indexes. You could choose to export the contents of the view by doing something like this:
    create table my_sdo_geom_metadata as select * from user_sdo_geom_metadata;Export the my_sdo_geom_metadata table, then after the import
    insert into user_sdo_geom_metadata
      (select *
       from my_sdo_geom_metadata
       where table_name not in
          (select table_name from user_sdo_geom_metadata);

  • How do you mix data types with Producer/C​onsumer?

    Hi,
    I am trying to build a VI using Producer/Consumer architecture and trying to learn how to do it.  I am measuring two types of data that must be used "simultaneously" to create output commands.  The attached vi is a simplified version that I am using to try to understand how the data flows before I build my much larger more complex VI. 
    I will be collecting three values in an array from a DAQ sequence, and then one single value (also from another DAQ function) in another loop, so, the two loops are labelled THREE VALUES and ONE VALUE.   The DAQ's run at different rates, so, that is the reason for the producer/consumer architecture.   I want to take each of the three values, and pair it with the most recent one value, (hence the LOSSY ENQUEUE set to max size 1) and create a serial command to be output.  (Actually, I would create 3 serial commands, one per value from the THREE loop.)
    In the attached VI, I create an array of 3 values, but, I see only one of them during execution.  I am trying to see all 4 values, but, I see only one of the THREE, and one of ONE.    I think I should see 1, 23, 44, and 99, but, I see only 44 and 99.  Where  did 1 and 23 go?  I want to be able to use (see) 1 and 23 in my consumer loop.
    Thanks
    Attachments:
    forum oct 6 2013.vi ‏17 KB

    apok wrote:
    try this...
    Spoiler (Highlight to read)
    (OP NI did you a slight disservice stating Producer Consumer vice Master Slave pattern- you need a master slave pattern)
    Close to right Apok,  A problem.  Two solutions possible:
    1)The slowest notifier needs to be waited first and have the ignore previous boolean T (Not sure which is slowest)  This "Slow Loop" then throttles the slave loop and the "Fast Loop's" notifier looses data between slow loop samples.
    2) Wait the Fast loop's notifier first. and leave both notifiers ignore previous =F  And, set the slow loop timeout to 0.  This duplicates the slow loop value for each fast loop acquisition.
    Jeff

  • ORA-01012: not logged on error while Moving data file with BrTools

    Hi,
        I'm trying to move a data file to another windows drive with BrTools.
    It fails before it actually starts to move the file. The error it shows is:
    ORA-01012: not logged on.
    Thanks,
    Anil.

    Hi,
    BRSPACE  has a command option -u to specify the Database user and password. How ever BRSPACE connects to the database as SYSDBA, you do not have to specify the user and password if the operating system user belongs to the dba group.SO check if the user is falling in DBA group with proper authorizations.
    PLease reward points for useful answers.
    Regards,
    Phani

  • How do I locate variable length data types with lengths of 2 or less???

    How do I locate VARCHAR datatype where the lengths are 2 or less?  I want to search the table list on a particular instance.

    Correction to the query above:
    select * from INFORMATION_SCHEMA.COLUMNS c
    where DATA_TYPE = 'varchar'
    and c.CHARACTER_MAXIMUM_LENGTH between 1 and 2
    We need to exclude rows where it's -1 for varchar(max) columns.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Data types in pi 7.1

    Hi,
    when do you use core, free and aggregated data types?
    Thanks in advance
    regards,
    Ramya Shenoy

    This may help you,
    Introduction
    SAP delivers descriptions of Global Data Types (GDTs) as Enterprise Services Repository (ESR) content to customers. Customers can create their own data types in the ES Repository and use SAP GDTs.
    u2022
    Two ways of modeling data types are supported: Classical XSD style and new CCTS (Core Component Technical Specification) style.
    u2022
    Data types are classified as free-style (classical), core (atoms of CCTS modeling), or aggregate (complex CCTS)
    u2022
    Standard fault data types are no longer created automatically for every namespace (only when fault message type is created).
    u2022
    Additional functions in data type editor provide better support for structural changes (e.g., moving subtrees).
    More Information:
    SAP Help Portal: Global Data Types
    According to this, we distinguish between SAP Core Data Type and SAP Global Data Type. The SAP Core Data Type as well as the W3C Type (XSD type) does not have any business semantics. The SAP GDT has business semantics, it actually can be based on either a core or an aggregated DT.
    Free-style data types are directly based on the primitive data types, e.g., xsd:decimal. They do not need any further parameters to define themselves.
    More Information:
    u2022
    SAP Help Portal: Core Data Types and Aggregated Data Types Recommendation
    When to use free, core and aggregated data types
    Core data types are based on CCTS specification. Aggregated data types have business semantics, are based on CDTs, and are the basis for application-specific data types SAP-wide.
    Customers who adhere to the CCTS specification or have business scenarios dealing with SAP backend systems, should try and reuse the existing core and aggregated data types delivered by SAP. However, customers who wish to use their own schema for defining the data types, free-style data type is the preferred approach.
    While transferring the business scenarios from XI 3.0/PI 7.0 to PI 7.1, all the data types in the design objects will be transferred as free-style data types by default.
    While creating new objects in PI 7.1x, it is recommended to reuse the core and aggregated global data types provided by SAP.
    The detailed list of SAP delivered data types is available on SAP Developer Network (SDN) at ES Workplace.
    https://www.sdn.sap.com/irj/sdn/esworkplace
    Core data types
    Core data types are based on representation terms which are ISO 15000 5 (ebCCTS) compliant.
    SAP delivers core data types with the same name as representation terms. Applying the standard methodology simplifies the implementation of cross-company processes.
    CDTs are intermediate data types, and are a level above primitive data types like decimal, string, etc. They are defined by representation terms such as Amount, Identifier, etc. They are themselves not yet application-specific and are therefore referred to as context-free.
    While creating core data type based on any given representation term, we get an option to either use a default XSD type or reuse an existing core data types.
    For using the standard XSD types we select Type as u2018XSD Typeu2019
    For reusing already existing core data type we select Type as u2018Data Typeu2019 Prerequisite
    Define a dependency on the SWC SAP Global to reuse any of the standard core data types shipped by SAP.
    xample

Maybe you are looking for