The Oracle table object type - error

Hello

I created an oracle object as

[CREATE or REPLACE TYPE t_test_obj () IS OBJECT
TestId INTEGER,
testdesc VARCHAR2 (64)
);]

Then created the type from above table

[create or replace type t_table in table of the t_test_obj;]

I want to create the table containing the type above as below

create the table t_tab_test (test1 t_table); but I got the error as
ERROR on line 1:
ORA-22913: must specify the name of the table for the nested table column or attribute

---
Requirement: As my function returns this object of type table and I want to insert these values in a table where I want this. All other pointers are also useful.


Help, please.

Kind regards
Kapil

and with a function

create function f_test
return t_table
as
begin
   return t_table (t_test_obj (1, 'first'), t_Test_obj (2, 'seconde'));
end;
/

insert into t_tab_test values (10, f_test);

Tags: Database

Similar Questions

  • ODI - read CSV file and write to the Oracle table

    Hello world

    After 4 years, I started to work again with ODI, and I'm completely lost.

    I need help, I don't know what to use for each step, interfaces, variables, procedures...

    What I have to do is the following:

    (1) reading a CSV file-> I have the topologies and the model defined

    (2) assess whether there is a field of this CSV file in TABLE A-> who do not exist in the table is ignored (I tried with an interface joining the csv with the TABLE model a model and recording the result in a temporary data store)

    Evaluate 3) I need to update TABLE C and if not I need to INSERT if another field that CSV exists in TABLE B-> if there

    Could someone help me with what use?

    Thanks in advance

    Hi how are you?

    You must:

    Create an interface with the CSV template in the source and a RDBM table in the target (I'll assume you are using Oracle). Any type of filter or the transformation must be defined to be run in the stadium. (you must use a LKM for SQL file and add an IKM Sql control (it is best to trim them and insert the data when it cames to a file if you want after this process, you may have an incremental update to maintain history or something like that).)

    For validation, you will use a reference constraints in the model of the oracle table: (for this you need a CKM Oracle to check constraints)

    Then, you must select the table that you sponsor and in the column, you choose which column you will match.

    To article 3, you repeat the above process.

    And that's all. Pretty easy. If you do not have the two tables that you need to use your validation that you need to load before loading the CSV file you need valid.

    Hope this can help you

  • Insert data as XML into the Oracle Table

    Hi all

    I have a requirement where the data in XML format, and I need to insert into the Oracle Table. For example, I get XML data in the following format,
    < results >
    < row >
    < BANK_ACCOUNT_ID > 10010 < / BANK_ACCOUNT_ID >
    < BANK_ID > 300968 < / BANK_ID >
    Vision operations < LEGAL_ENTITY > < / LEGAL_ENTITY >
    < BANK_NAME > BofA < / BANK_NAME >
    < BANK_ACCOUNT_NUM > 10271-17621-619 < / BANK_ACCOUNT_NUM >
    < BANK_ACCOUNT_NAME > BofA-204 < / BANK_ACCOUNT_NAME >
    < BRANCH_NAME > New York < / BRANCH_NAME >
    USD < CURRENCY_CODE > < / CURRENCY_CODE >
    < BALANCE_DATE > 2007 - 11 - 09 < / BALANCE_DATE >
    < LEDGER_BALANCE > 432705900.56 < / LEDGER_BALANCE >
    < / row >
    < row >
    < BANK_ACCOUNT_ID > 10091 < / BANK_ACCOUNT_ID >
    < BANK_ID > 300984 < / BANK_ID >
    Vision industries < LEGAL_ENTITY > < / LEGAL_ENTITY >
    Barclay Bank < BANK_NAME > < / BANK_NAME >
    < BANK_ACCOUNT_NUM > 70986798 < / BANK_ACCOUNT_NUM >
    Bank Multi currency-626 < BANK_ACCOUNT_NAME > Barclays < / BANK_ACCOUNT_NAME >
    Reading < BRANCH_NAME > < / BRANCH_NAME >
    GBP < CURRENCY_CODE > < / CURRENCY_CODE >
    < BALANCE_DATE > 2007 - 11 - 14 < / BALANCE_DATE >
    < LEDGER_BALANCE > 24244085.24 < / LEDGER_BALANCE >
    < / row >
    < row >
    < BANK_ACCOUNT_ID > 10127 < / BANK_ACCOUNT_ID >
    < BANK_ID > 300968 < / BANK_ID >
    < LEGAL_ENTITY > SSC U.S. 01 < / LEGAL_ENTITY >
    < BANK_NAME > BofA < / BANK_NAME >
    < BANK_ACCOUNT_NUM > 4898744 < / BANK_ACCOUNT_NUM >
    < BANK_ACCOUNT_NAME > BofA SSC U.S. 02-7188 < / BANK_ACCOUNT_NAME >
    < BRANCH_NAME > New York < / BRANCH_NAME >
    USD < CURRENCY_CODE > < / CURRENCY_CODE >
    < BALANCE_DATE > 2007 - 11 - 28 < / BALANCE_DATE >
    < LEDGER_BALANCE > 10783815.28 < / LEDGER_BALANCE >
    < / row >
    < / results >

    I like to write PLSQL code that will receive these data with XML tags and insert it into the Oracle Table. Is this possible with built-in XML features provided in the Oracle database?

    Please Guide...

    Kind regards
    Priyanka

    But the problem is the file XML is to have the details of the records if you carefully observed the XML file. But by using more high statement select I get output in the following format.
    ORG_ID REQ_LINE PO_NUMBER EXPECTED_REC_QTY USER_NAME REQ_NUMBER
    204204 1444714450 11 64446445 11 OPERATIONSOPERATIONS

    The table has only one row, so you get a single row as output.
    I'm surprised that you find useful examples showing how to divide the data into several lines.

    (1) create the table with the following option, it will optimize the performance of storage and query for large XML documents:

    CREATE TABLE xxios_xml_data_test(xml_data XMLTYPE)
    XMLTYPE COLUMN xml_data STORE AS SECUREFILE BINARY XML
    ;
    

    (2) interview table with:

    SQL> select x.*
      2  from xxios_xml_data_test t
      3     , xmltable(
      4         '/Results/Row'
      5         passing t.xml_data
      6         columns ORG_ID           number       path 'ORG_ID'
      7               , REQ_NUMBER       number       path 'REQ_NUMBER'
      8               , REQ_LINE         number       path 'REQ_LINE'
      9               , PO_NUMBER        number       path 'PO_NUMBER'
     10               , EXPECTED_REC_QTY number       path 'EXPECTED_REC_QTY'
     11               , USER_NAME        varchar2(30) path 'USER_NAME'
     12       ) x
     13  ;
    
        ORG_ID REQ_NUMBER   REQ_LINE  PO_NUMBER EXPECTED_REC_QTY USER_NAME
    ---------- ---------- ---------- ---------- ---------------- ------------------------------
           204      14447          1       6444                1 OPERATIONS
           204      14450          1       6445                1 OPERATIONS
     
    
  • Impdp ORA-39083 error: INDEX could not create with object type error:

    Hi Experts,

    I get the following error when importing schema HR after a fall it. The DB is r12.1.3 11.2.0.3 & ebs


    I did export with this command.

    patterns of HR/hr = hr = TEST_DIR dumpfile = HR.dmp logfile directory expdp = expdpHR.log statistics = none

    that the user HR with the option drop waterfall.


    And try to import it HR schemas in the database by the following.

    Impdp System/Manager schemas = hr = TEST_DIR dumpfile = HR.dmp logfile directory = expdpHR.log statistics = none

    Here is the error

    imported 'HR '. "" PQH_SS_PRINT_DATA "0 KB 0 rows

    ... imdoor 'HR '. "" PQH_TJR_SHADOW "0 KB 0 rows

    . . imported 'HR '. "" PQH_TXN_JOB_REQUIREMENTS "0 KB 0 rows

    . . imported 'HR '. "" PQH_WORKSHEET_BUDGET_SETS_EFC "0 KB 0 rows

    . . imported 'HR '. "" PQH_WORKSHEET_DETAILS_EFC "0 KB 0 rows

    . . imported 'HR '. "" PQH_WORKSHEET_PERIODS_EFC "0 KB 0 rows

    . . imported 'HR '. "" PQP_ALIEN_TRANSACTION_DATA "0 KB 0 rows

    . . imported 'HR '. "" PQP_ANALYZED_ALIEN_DATA "0 KB 0 rows

    . . imported 'HR '. "" PQP_ANALYZED_ALIEN_DETAILS "0 KB 0 rows

    . . imported 'HR '. "" PQP_EXCEPTION_REPORTS_EFC "0 KB 0 rows

    . . imported 'HR '. "" PQP_EXT_CROSS_PERSON_RECORDS "0 KB 0 rows

    . . imported 'HR '. "" PQP_FLXDU_FUNC_ATTRIBUTES "0 KB 0 rows

    . . imported 'HR '. "" PQP_FLXDU_XML_TAGS "0 KB 0 rows

    . . imported 'HR '. "" PQP_GAP_DURATION_SUMMARY "0 KB 0 rows

    . . imported 'HR '. "" PQP_PENSION_TYPES_F_EFC "0 KB 0 rows

    . . imported 'HR '. "" PQP_SERVICE_HISTORY_PERIODS "0 KB 0 rows

    . . imported 'HR '. "" PQP_VEHICLE_ALLOCATIONS_F_EFC "0 KB 0 rows

    . . imported 'HR '. "" PQP_VEHICLE_DETAILS_EFC "0 KB 0 rows

    . . imported 'HR '. "" PQP_VEHICLE_REPOSITORY_F_EFC "0 KB 0 rows

    . . imported 'HR '. "" PQP_VEH_ALLOC_EXTRA_INFO "0 KB 0 rows

    . . imported 'HR '. "" PQP_VEH_REPOS_EXTRA_INFO "0 KB 0 rows

    Processing object type SCHEMA_EXPORT/TABLE/SCHOLARSHIP/OWNER_GRANT/OBJECT_GRANT

    Processing object type SCHEMA_EXPORT/TABLE/SCHOLARSHIP/CROSS_SCHEMA/OBJECT_GRANT

    Object type SCHEMA_EXPORT/TABLE/COMMENT of treatment

    Object type SCHEMA_EXPORT/PACKAGE/PACKAGE_SPEC of treatment

    Processing object type SCHEMA_EXPORT/PACKAGE/COMPILE_PACKAGE/PACKAGE_SPEC/ALTER_PACKAGE_SPEC

    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX

    Processing object type SCHEMA_EXPORT/TABLE/INDEX/FUNCTIONAL_INDEX/INDEX

    Object type SCHEMA_EXPORT/TABLE/CONSTRAINT/treatment

    Object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS of treatment

    Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_INDEX/INDEX_STATISTICS

    Object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY of treatment

    Object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT of treatment

    Object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS treatment

    Processing object type SCHEMA_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX

    ORA-39083: Type what INDEX failed to create object error:

    ORA-29855: an error has occurred in the execution of routine ODCIINDEXCREATE

    ORA-20000: Oracle text error:

    DRG-50857: error oracle in drvxtab.create_index_tables

    ORA-00959: tablespace "APPS_TS_TX_IDX_NEW" does not exist

    Because sql is:

    CREATE INDEXES ' HR'.»» IRC_POSTING_CON_TL_CTX' ON 'HR '. "" INDEXTYPE IRC_POSTING_CONTENTS_TL "("NAME") IS"CTXSYS. "' CONTEXT ' PARALLEL 1

    Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA

    Work 'SYSTEM '. "" SYS_IMPORT_SCHEMA_01 "completed with error (s 1) at 11:16:07

    SQL > select count (parameter), object_type from dba_objects where owner = 'HR' group by object_type.

    OBJECT_TYPE COUNT (OBJECT_NAME)

    ------------------ -------------------

    INDEX 37 PARTITION

    SEQUENCE OF 799

    TABLE 12 PARTITION

    LOB 70

    4 BODY PACKAGE

    PACKAGE OF 4

    3 RELAXATION

    2936 INDEX

    TABLE OF 1306

    Could you please suggest.

    Thank you

    MZ

    MZ,

    I get the following error when importing schema HR after a fall it. The DB is r12.1.3 11.2.0.3 & ebs


    Export and import of individual patterns of Oracle E-Business Suite stocked are not supported as this will violate referential integrity (except for custom schemas provided, you have no dependencies).

    Thank you

    Hussein

  • Help to download the xml of the oracle table below

    Dear all,

    I tried best to download the below xml to oracle table but giving the link between the tables is very difficult for me. can someone help me to import the XML below for oracle table

    <? XML version = "1.0" encoding = "utf-8"? >
    < Claim.Submission xmlns:tns = "http://www.haad.ae/DataDictionary/CommonTypes" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: noNamespaceSchemaLocation = "http://www.haad.ae/DataDictionary/CommonTypes/ClaimSubmission.xsd" >
    < header >
    MF65 < SenderID > < / SenderID >
    C014 < ReceiverID > < / ReceiverID >
    < TransactionDate > 03/12/2012 10:40 < / TransactionDate >
    < RecordCount > 1 < / RecordCount >
    < DispositionFlag > PRODUCTION < / DispositionFlag >
    < / header >
    < claim >
    < ID > 23112 / < ID >
    < MemberID > 100000874 < / MemberID >
    A022 < PayerID > < / PayerID >
    MF65 < ProviderID > < / ProviderID >
    < EmiratesIDNumber > 111-1111-1111111-1 < / EmiratesIDNumber >
    < raw > 115 < / gross >
    < PatientShare > 20 < / PatientShare >
    < net > 95 < / Net >
    < meeting >
    MF65 < FacilityID > < / FacilityID >
    < type > 1 < / Type >
    < > 47685 PatientID < / PatientID >
    < Start > 02/11/2012 12:00 < / Start >
    < / meeting >
    < Diagnostics >
    Principal of < type > < / Type >
    < code > < code > 461.9
    < / Diagnosis >
    < Diagnostics >
    Secondary < type > < / Type >
    < code > < code > 462
    < / Diagnosis >
    < activity >
    23112_1 < ID > < /ID >
    < Start > 02/11/2012 12:00 < / Start >
    < type > 3 < / Type >
    < code > < code > 99202
    < quantity > 1 < / quantity >
    < net > 95 < / Net >
    D1310 < clinician > < / clinician >
    < / activity >
    < / claim >
    < Claim.Submission >

    Pls tell me how I can get

    Have you considered using the storage relational object for this?
    Since you have patterns, you could record in the database, which will automatically create storage appropriate for your XML documents as well as validate at the time of insertion.
    You can then create individual views to query the nested parts of the document and finally insert the data into relational tables final.

    See the documentation for an introduction to the concepts:
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e23094/partpg2.htm#g997354

    You will find examples on the {forum: id = 34} forum and its FAQ: {: identifier of the thread = 410714}

  • Get the number of rows in the oracle table

    Hi all
    I want to get the total number of rows in the sql to the appmodule table.
    After you apply the criteria to view some on the view object. If he try with getallrowsinrange the number of rows found within the viewobject was but I want a total number of rows in the sql table.

    How can I get that

    I use jdev 11.1.1.5

    Thanks in advance

    I threw something together, quick and dirty, don't hesitate to optimize.

    Assuming you want the County table, I put the code in a subclass of EntityDefImpl since it is representing a table in the middle tier.

    public class EmpDefImpl
          extends EntityDefImpl {
      /**
       * This is the default constructor (do not remove).
       */
      public EmpDefImpl( ) {}
    
      //~ Methods ****************************************************************************
    
      public long getTableRowCount( DBTransaction transaction ) {
        String query = getQuery( );
        String countQuery = String.format( "SELECT COUNT(*) FROM (%s)", query );
        long count = 0;
    
        ViewObject vo = transaction.createViewObjectFromQueryStmt( countQuery );
    
        try {
          vo.executeQuery( );
    
          Row row = vo.first( );
          Number number = (Number)row.getAttribute( 0 );
          count = number.longValue( );
        } finally {
          vo.remove( );
        }
    
        return count;
      }
    }
    

    Depending on your card type, you may not get an oracle.jbo.domain.Number, but something else, so the cast may need correction.

    Usage example:

    public class EmpEditViewImpl extends ViewObjectImpl {
      public EmpEditViewImpl() {
      }
    
      protected void executeQueryForCollection( Object object, Object[] object2, int i ) {
        super.executeQueryForCollection( object, object2, i );
    
        EmpDefImpl def = ( EmpDefImpl )getEntityDef( 0 );
        long tableRowCount = def.getTableRowCount( getDBTransaction() ) );
    
        // Do something with it
      }
    }
    

    As you can see, the code is fairly generic. Also, you might be able to put this in a base extension ADF class.

    Sascha

    Published by: Sascha Herrmann on June 7, 2012 14:39

  • Store events in the various tables / AVG function error

    Hello

    I have a very newbie question that I can't solve.

    I want to store events in a database, well, but if I set the events on the context like this file:

    < wlevs:event - type-repository >
    < wlevs:event - type the type name 'Averages' = >
    < wlevs:properties >
    < name wlevs:property = "average_Generator1_ActivePower" type = "float" / >
    < name wlevs:property = "sum_Generator2_ActivePower" type = "int" / >
    < name wlevs:property = "max_Substation_Active_Power" type = "int" / >
    < name wlevs:property = "number_events" type = "int" / >
    < / wlevs:properties >
    < / wlevs:event - type >
    < wlevs:event - type the type name = "WindEvent" >
    < wlevs:properties >
    < name wlevs:property = "generator1_ActivePower" type = "int" / >
    < name wlevs:property = "generator2_ActivePower" type = "int" / >
    < name wlevs:property = "substation_Active_Power" type = "int" / >
    < / wlevs:properties >
    < / wlevs:event - type >
    < / wlevs:event - type-repository >

    They will be stored at the same table, TupleValues table.

    I'm trying to work around this situation by defining one of the events as a class, and in this case the CEP Oracle create another table to store the event. But with this Setup, I have an error on the processor node, more exactly, in the avg function that use a property of the created class. Below it is the context, the class of java and the query file in the processor

    Class #Java

    public class WindEvent {}

    private Generator1_ActivePower entire;
    private Generator1_AverageExpectedEnergy entire;
    private Generator2_ActivePower entire;
    private Generator2_AverageExpectedEnergy entire;
    private Substation_Active_Power entire;
    private Substation_AverageExpectedEnergy entire;


    file #context

    < wlevs:event - type-repository >
    < wlevs:event - type the type name = "WindEvent" >
    < wlevs: class > oracle.cep.demo.events.WindEvent < / wlevs: class >
    < / wlevs:event - type >
    < / wlevs:event - type-repository >

    < wlevs: adapt id = "adapter" provider = "csvgen" >
    < wlevs:listener ref = 'channel' / >
    < wlevs:instance - name of the property = 'port' value = "9001" / >
    < wlevs:instance - name of the property = "eventTypeName" value = "WindEvent" / >
    < wlevs:instance - name of the property = "eventPropertyNames."
    value = "generator1_ActivePower, generator1_AverageExpectedEnergy, generator2_ActivePower, generator2_AverageExpectedEnergy, substation_Active_Power, substation_AverageExpectedEnergy" / >

    < / wlevs: adjust >

    < wlevs: channel id = 'string' - type event = "WindEvent" >
    < wlevs:listener ref = "processor" / >
    < / wlevs: channel >

    < wlevs:processor id = "processor" >
    < / wlevs:processor >


    #query

    < processor >
    processor < name > < / name >
    < rules >
    < request id = "ExampleQuery" >
    <! [CDATA [select avg (substation_Active_Power) got max_Substation_Active_Power, count (*) as number_events of the channel [line 60]]] >
    < / query >
    < / rules >
    < / processor >

    If someone could help him in both questions, I'll be very grateful

    Keep your definition of class as -

    public class WindEvent {}

    private Generator1_ActivePower entire;
    private Generator1_AverageExpectedEnergy entire;
    private Generator2_ActivePower entire;
    private Generator2_AverageExpectedEnergy entire;
    private Substation_Active_Power entire;
    private Substation_AverageExpectedEnergy entire;

    }

    In other words, use integer instead of int.

    Then, change the query for-

    Select avg (* substation_Active_Power.intValue () *) as avg_Substation_Active_Power, count (*) as number_events of the channel [line 60]

  • Remove duplicates from the oracle table using 2 columns

    Hello

    I need to remove the duplicates of an oracle table based on 2 columns in the table.i tried to remove duplicates using the join, but get the error like sql error ora-00933

    Thank you

    Hello

    Here's one way:

    DELETE FROM table_x

    WHERE ROWID NOT IN)

    SELECT MIN (ROWID)

    FROM table_x

    Col_1, col_2

    );

    I hope that answers your question.

    If this isn't the case, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements), and the results you want from this data.

    In the case of a DML operation (for example, REMOVE) the sample data should show what look like the paintings before the DML, and results will be the content of the or the tables changed after the DML.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

  • On the analysis of the oracle Tables, indexes

    Hi guru,.

    Thanks for the previous help.

    I have scenerio

    I have three table which is refreshed weekely (Truncate and load).

    I have to manually analyze using DBMS_STATS. GATHER_TABLE_STATS?

    My knowledge is when we insert frequently so only we analyze tables and their indexes.

    I'm using the Oracle version:

    1 oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    2 PL/SQL Release 11.2.0.3.0 - Production

    3 "CORE 11.2.0.3.0 Production."

    Thnaks,

    truncation does not remove the object statistics:

    -11.2.0.1.

    create table t

    as

    Select rownum id

    of the double

    connect by level<=>

    SQL > exec dbms_stats.gather_table_stats (user, 't')

    PL/SQL-Prozedur been abgeschlossen.

    SQL > select num_rows, last_analyzed from user_tables where table_name = 't';

    NUM_ROWS LAST_ANA

    ---------- --------

    10000 16.04.14

    SQL > truncate table t;

    Tabelle mit TRUNCATED geleert.

    SQL > select num_rows, last_analyzed from user_tables where table_name = 't';

    NUM_ROWS LAST_ANA

    ---------- --------

    10000 16.04.14

    So if your table contains almost the same data after the operation of loading/truncate old statistics may be sufficient. But it is difficult to imagine you do a TRUNCATE/loading operation to re-import data - almost certainly is a good idea to gather statistics after the operation of loading/truncate, if you have the time and resources to do this.

  • Loading metadata from planning to the oracle table

    Hello

    I'm trying to load a metadata dimension of planning to oracle table.we are on 10.1.3

    I chose LKM SQL for SQL to load source for staging and IKM SQL for SQL add to load from the staging to the target.

    I got the below error

    0: null: java.sql.SQLException: Driver must be specified
    java.sql.SQLException: Driver must be specified
    at com.sunopsis.sql.SnpsConnection.a (SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.t (SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.connect (SnpsConnection.java)
    at com.sunopsis.sql.SnpsQuery.updateExecStatement (SnpsQuery.java)
    at com.sunopsis.sql.SnpsQuery.executeQuery (SnpsQuery.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt (SnpSessTaskSqlC.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep (SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession (SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand (DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute (DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.i (e.java)
    at com.sunopsis.dwg.cmd.h.y (h.java)
    at com.sunopsis.dwg.cmd.e.run (e.java)
    at java.lang.Thread.run (unknown Source)

    Please suggest...

    Thank you

    If you want to use the dimension essbase as a source, then you'll need extract the size of a target using the 'LKM Hyperion Essbase METADATA to SQL.
    It would be also possible to go directly to the planning of the relational tables in the applications, but you must have an understanding of how they work.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Update the Oracle Table

    Hi all
    I just updated a table in a flat file to oracle table source.
    using the incremental update of IKM.
    ODI throws an error saying that 'NO KEY IN your target error DECLRED'
    I don't have permission to modify the table structure. should I please?

    Thanks in advance,
    Ido

    Hello

    Do you know which column can be used as a key for the comparison update?
    If Yes, then you can select this column as the KEY in the ODI interface. It is not necessary to have this column that is marked as key in the database.

    Thank you
    Fati

  • How to run a function in the oracle plsql object when the object dies

    I have an object plsql function member as exec_last.
    I want this procedure that is called when the plsql object is cleaned or when the accommodation session this object dies.

    In C, we have a system call as atexit(). Is there such a feature in Oracle 10 g or no workaround using embedded java.

    This feature is required to empty the contents stored in the plsql in the object to the database, when the program terminates.

    Thank you
    Best regards,
    Navin Srivastava

    navsriva wrote:

    Is there a better way to cache in memory.

    What is the Oracle buffer cache? It is exactly that - a cache for data blocks. The two new blocks (created by inserting new rows) and existing blocks (used by selects, updates and deletions and reused (freespace) inserts).

    The Oracle buffer cache is a cache of very mature and sophisticated. Trying to do "+ best +" to the db, buffer cache in another layer of software (such as PL/SQL) is mostly a waste of time and resources... and invariable introduced another layer of s/w which simply increases the number of moving parts. This in turn usually means increased complexity and slow performance.

    Why use the treatment in bulk from PL/SQL? The basic answer is to reduce switching between the PL and engine SQL context.

    During the execution of a code to insert data in SQL, the data must be passed to the SQL engine, PL PL engine must perform a context to the SQL engine switch so that it can process these data and execute the SQL statement.

    If there is a 1000 lines of inserts, this means that a 1000 context switches.

    In bulk treatment makes the "+ pipe communication / data + ' between the two biggest ones. Instead of passing data from one line to the SQL engine via a context switch, a collection of in bulk / picture of a 100 lines is passed. There are now only 10 changes of context necessary to push this 1000 lines of the PL engine to the SQL engine.

    You can do the same on any other client SQL... (remember, that the PL itself is also a SQL client). You can, using C/C++ for example, do exactly the same thing. When the row data to the SQL engine to insert, pass a collection of 100 rows instead of the data for a single line.

    The exact result of the same benefits as in PL/SQL. A pipe communication more, allowing more data to be transferred to and from the SQL, with engine for result less context switching.

    Of course, a context switch ito C/C++ is much more expensive than in PL/SQL - as the engine PL is located in the same physical process as the SQL engine. Using C/C++, this will usually be a separate process, to communicate with the SQL engine on the network process.

    The same applies to other languages, such as Java, c#, Delphi, Visual Basic, and so on.

    It not be wise to introduce another layer of s/w, the motor of PL/SQL and the customer "+ insert +" stored in his memory structures... and then use the PL engine to '+ flower' + for the SQL engine via a process control in bulk.

    It will be faster and more scalable, have the language of the client with treatment directly and dealing with the SQL engine directly in bulk.

    Simple example. What is SQL * Loader program (written in C), use? It uses no PL as a proxy to move data from a CSV file into a SQL table. He calls SQL directly. It uses a treatment in bulk. It is very fast to load data.

    There is an exception to this rule. What PL is used as a layer of processing and validation of business. Instead of the client code, implementation of this logic, it is done using LP. The customer then will not is more manually add an invoice to the table of the INVOICES for example. He called the procedure of PL/SQL AddNewInvoice instead - and this procedure does everything. It checks the valid client code. Ensures that there are stocks of the products ordered on the invoice. Etc.

    But in this scenario, PL is not used a flea market "buffer cache. It is used for what it was designed for - a correct application inside the database layer.

  • Send the oracle table to file pdf through forms 6i

    Please Dear Sirs,
    I want to send oracle table to pdf through forms 6i file

    help waiting
    Thanks in advance
    Yasser

    Yasser,

    What is the error you get?

    Also try changing the line

    ADD_PARAMETER(pl_id, 'DESNAME', TEXT_PARAMETER, 'D:\YASSER');
    

    TO

    ADD_PARAMETER(pl_id, 'DESNAME', TEXT_PARAMETER, 'D:\YASSER\report.pdf');
    

    Kind regards

    Manu.

  • Do not include the Oracle Tables

    I am new to Oracle and need to ask a question.

    Some oracle tables seem to act different than DB2.

    To determine the number of records in dba_jobs is 1.

    Can I describe the table and find there are about
    18 columns in the table.

    Then I run a SELECT * on the table.

    When I select, looks like it is printing on about 8 different records.

    With only the MISC ENV field being filled.

    How should I interpret it

    Here are the commands I entered:
    SQL> select count(*) from dba_jobs;
    
      COUNT(*)
    ----------
             1
    
    SQL> describe dba_jobs;
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
    
     JOB                                       NOT NULL NUMBER
     LOG_USER                                  NOT NULL VARCHAR2(30)
     PRIV_USER                                 NOT NULL VARCHAR2(30)
     SCHEMA_USER                               NOT NULL VARCHAR2(30)
     LAST_DATE                                          DATE
     LAST_SEC                                           VARCHAR2(8)
     THIS_DATE                                          DATE
     THIS_SEC                                           VARCHAR2(8)
     NEXT_DATE                                 NOT NULL DATE
     NEXT_SEC                                           VARCHAR2(8)
     TOTAL_TIME                                         NUMBER
     BROKEN                                             VARCHAR2(1)
     INTERVAL                                  NOT NULL VARCHAR2(200)
     FAILURES                                           NUMBER
     WHAT                                               VARCHAR2(4000)
     NLS_ENV                                            VARCHAR2(4000)
     MISC_ENV                                           RAW(32)
     INSTANCE                                           NUMBER
    
    SQL> select * from dba_jobs;
    
           JOB LOG_USER                       PRIV_USER
    ---------- ------------------------------ ------------------------------
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    ------------------------------ --------- -------- --------- -------- ---------
    NEXT_SEC TOTAL_TIME B
    -------- ---------- -
    INTERVAL
    --------------------------------------------------------------------------------
    
      FAILURES
    ----------
    WHAT
    --------------------------------------------------------------------------------
    
    NLS_ENV
    --------------------------------------------------------------------------------
    
    MISC_ENV                                                           INSTANCE
    ---------------------------------------------------------------- ----------
             1 SYSMAN                         SYSMAN
    
           JOB LOG_USER                       PRIV_USER
    ---------- ------------------------------ ------------------------------
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    ------------------------------ --------- -------- --------- -------- ---------
    NEXT_SEC TOTAL_TIME B
    -------- ---------- -
    INTERVAL
    --------------------------------------------------------------------------------
    
      FAILURES
    ----------
    WHAT
    --------------------------------------------------------------------------------
    
    NLS_ENV
    --------------------------------------------------------------------------------
    
    MISC_ENV                                                           INSTANCE
    ---------------------------------------------------------------- ----------
    SYSMAN                         20-APR-09 22:29:55                    20-APR-09
    
           JOB LOG_USER                       PRIV_USER
    ---------- ------------------------------ ------------------------------
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    ------------------------------ --------- -------- --------- -------- ---------
    NEXT_SEC TOTAL_TIME B
    -------- ---------- -
    INTERVAL
    --------------------------------------------------------------------------------
    
      FAILURES
    ----------
    WHAT
    --------------------------------------------------------------------------------
    
    NLS_ENV
    --------------------------------------------------------------------------------
    
    MISC_ENV                                                           INSTANCE
    ---------------------------------------------------------------- ----------
    22:30:55      17989 N
    
           JOB LOG_USER                       PRIV_USER
    ---------- ------------------------------ ------------------------------
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    ------------------------------ --------- -------- --------- -------- ---------
    NEXT_SEC TOTAL_TIME B
    -------- ---------- -
    INTERVAL
    --------------------------------------------------------------------------------
    
      FAILURES
    ----------
    WHAT
    --------------------------------------------------------------------------------
    
    NLS_ENV
    --------------------------------------------------------------------------------
    
    MISC_ENV                                                           INSTANCE
    ---------------------------------------------------------------- ----------
    sysdate + 1 / (24 * 60)
    
           JOB LOG_USER                       PRIV_USER
    ---------- ------------------------------ ------------------------------
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    ------------------------------ --------- -------- --------- -------- ---------
    NEXT_SEC TOTAL_TIME B
    -------- ---------- -
    INTERVAL
    --------------------------------------------------------------------------------
    
      FAILURES
    ----------
    WHAT
    --------------------------------------------------------------------------------
    
    NLS_ENV
    --------------------------------------------------------------------------------
    
    MISC_ENV                                                           INSTANCE
    ---------------------------------------------------------------- ----------
             0
    
           JOB LOG_USER                       PRIV_USER
    ---------- ------------------------------ ------------------------------
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    ------------------------------ --------- -------- --------- -------- ---------
    NEXT_SEC TOTAL_TIME B
    -------- ---------- -
    INTERVAL
    --------------------------------------------------------------------------------
    
      FAILURES
    ----------
    WHAT
    --------------------------------------------------------------------------------
    
    NLS_ENV
    --------------------------------------------------------------------------------
    
    MISC_ENV                                                           INSTANCE
    ---------------------------------------------------------------- ----------
    EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS();
    
           JOB LOG_USER                       PRIV_USER
    ---------- ------------------------------ ------------------------------
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    ------------------------------ --------- -------- --------- -------- ---------
    NEXT_SEC TOTAL_TIME B
    -------- ---------- -
    INTERVAL
    --------------------------------------------------------------------------------
    
      FAILURES
    ----------
    WHAT
    --------------------------------------------------------------------------------
    
    NLS_ENV
    --------------------------------------------------------------------------------
    
    MISC_ENV                                                           INSTANCE
    ---------------------------------------------------------------- ----------
    NLS_LANGUAGE='AMERICAN' NLS_TERRITORY='AMERICA' NLS_CURRENCY='$' NLS_ISO_CURRENC
    
    
           JOB LOG_USER                       PRIV_USER
    ---------- ------------------------------ ------------------------------
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    ------------------------------ --------- -------- --------- -------- ---------
    NEXT_SEC TOTAL_TIME B
    -------- ---------- -
    INTERVAL
    --------------------------------------------------------------------------------
    
      FAILURES
    ----------
    WHAT
    --------------------------------------------------------------------------------
    
    NLS_ENV
    --------------------------------------------------------------------------------
    
    MISC_ENV                                                           INSTANCE
    ---------------------------------------------------------------- ----------
    Y='AMERICA' NLS_NUMERIC_CHARACTERS='.,' NLS_DATE_FORMAT='DD-MON-RR' NLS_DATE_LAN
    
    
           JOB LOG_USER                       PRIV_USER
    ---------- ------------------------------ ------------------------------
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    ------------------------------ --------- -------- --------- -------- ---------
    NEXT_SEC TOTAL_TIME B
    -------- ---------- -
    INTERVAL
    --------------------------------------------------------------------------------
    
      FAILURES
    ----------
    WHAT
    --------------------------------------------------------------------------------
    
    NLS_ENV
    --------------------------------------------------------------------------------
    
    MISC_ENV                                                           INSTANCE
    ---------------------------------------------------------------- ----------
    GUAGE='AMERICAN' NLS_SORT='BINARY'
    
           JOB LOG_USER                       PRIV_USER
    ---------- ------------------------------ ------------------------------
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    ------------------------------ --------- -------- --------- -------- ---------
    NEXT_SEC TOTAL_TIME B
    -------- ---------- -
    INTERVAL
    --------------------------------------------------------------------------------
    
      FAILURES
    ----------
    WHAT
    --------------------------------------------------------------------------------
    
    NLS_ENV
    --------------------------------------------------------------------------------
    
    MISC_ENV                                                           INSTANCE
    ---------------------------------------------------------------- ----------
    0102000000000000                                                          0
    
           JOB LOG_USER                       PRIV_USER
    ---------- ------------------------------ ------------------------------
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    ------------------------------ --------- -------- --------- -------- ---------
    NEXT_SEC TOTAL_TIME B
    -------- ---------- -
    INTERVAL
    --------------------------------------------------------------------------------
    
      FAILURES
    ----------
    WHAT
    --------------------------------------------------------------------------------
    
    NLS_ENV
    --------------------------------------------------------------------------------
    
    MISC_ENV                                                           INSTANCE
    ---------------------------------------------------------------- ----------
    Thank you

    Published by: user10747262 on April 21, 2009 11:56

    I think you see the results of the formatting in SQL * Plus when you use certain default settings. Try the following and then run your query again

    set pagesize 100
    
  • Querying the oracle table that has a column with the name of "FILE".

    Hi all

    I need to have an oracle table that has the column with the name "FILE".

    I can query all columns with the query "select * from table".

    But I'm not able to use the query "select the table file.

    This table is converted from ms access to oracle and I need to have this column with the name "FILE".

    Any suggestions?

    Thank you

    Abdellaoui

    Hello

    FILE is a keyword from Oracle, so it's not a good name,

    Use FILEDATE, or DATE_FILED, or something else that is not in V$ RESERVED_WORDS. KEYWORD as the name column.

    If you need to use the FILE, then you must use quotation marks.

Maybe you are looking for