Does 11g support no auto_increment / auto_assigned columns?

Hi,
I am using openJPA and run into following issue when using Oracle 11g:
"Oracle" does not support auto-assigne d column values. The column may not behave as desired.
In other words: The database does not support auto_increment values for rows?
Is there a workaround for that?
The openJPA community did create some warning for Oracle in their framework:
https://issues.apache.org/jira/browse/OPENJPA-1090
However ... the warning does of course not fix anything.
Is that a workaround for that? Is there a special way of creating Oracle Database so that auto_assigned / auto_incrementor is allowed in fields? I mean currently Oracle does not seem to be compatible to openJPA so we cannot use this database or recommend it using it to our users.
You can see our sample db configuration that we have been publishing for Oracle here:
http://code.google.com/p/openmeetings/wiki/Configuration_Oracle_11g
I would be very happy if we could officially release OpenMeetings with support for Oracle.
Thank you very much,
Sebastian Wagner
Lead Developer OpenMeetings - Open-Source Web-Conferencing
http://www.openmeetings.de

seba.wagner wrote:
Thanks for your answers,
well of course I do know that Oracle supports sequences, my question is why openJPA does not generate those by default cause the same code works with DBs of other vendors.
However I am already posting the same question to the openJPA mailing list, maybe they have some workaround for such issue. I guess it must be some kind of configuration or setup problem, not really a coding issue.
Thanks,
SebastianActually, it would be a coding issue. For instanced, MS SQL Server does have an auto increment data type. Just define the table with that datatype for a PK column, and no further consideration needed. Oracle is not SQL Server under a different lable. To get a "auto increment" PK, you have to (1) define a sequence, and (2) be sure every insert issued against that table uses/references that sequence to populate that PK column. And the best way to make 100% sure that happens is to write an ON INSERT trigger. And one also needs to be aware that Oracle makes no guarantee that a given sequence number won't be 'wasted', so the behavior is likely different from SQL Server's AUTOINCREMENT data type.
So... any third pary app written to work with both products needs to be able to take into account all of the differences, of which this is only one. There are ways to deal with this to minimize the burden of maintaining separate code bases, but I'm afraid most vendors take the worst possible approach and simply treat the dbms as a data dump and write to the least common denominator. And lest you think that just because a vendor has a big name they know what they are talking about think again. I've mentioned several times on these forums about the experience I once had with a vendor making his pitch and claiming that his company did not recommend Oracle because "it won't support more than five concurrent connections." I made sure they didn't make the short list.

Similar Messages

  • Does and how osb 11g support  WLST scripts

    Does 11g support WLST scripts to import and export OSB configuration?
    Here are the old ones (as I see, dated 03.03.2009). For old 10.3 they worked perfectly.
    http://www.oracle.com/technology/products/soa/service-bus/collateral/osbsamples.html
    In new release names of few libraries changed (e.g. from com.bea.common.configfwk_1.2.1.0.jar to com.bea.common.configfwk_1.3.0.0.jar), so I simply changed the names in my scripts to use them for 11g. It didn't work. Old scripts (with old libs) don't work for 11g either.
    So my question is does OSB still support this kind of deploying, and how can I do that?
    Thanks in advance.

    @ frf
    Is it working for you ? The scripts are running fine for me but the values are not geting changed.
    This is my custom xml which is created
    <?xml version="1.0" encoding="UTF-8"?>
    <cus:Customizations xmlns:cus="http://www.bea.com/wli/config/customizations" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xt="http://www.bea.com/wli/config/xmltypes">
    <cus:customization xsi:type="cus:FindAndReplaceCustomizationType">
    <cus:description>Update to the correct server and port number</cus:description>
    <cus:query>
    <xt:refsToSearch xsi:type="xt:LocationRefType">
    <xt:type>Project</xt:type>
    <xt:path>Test OSB Project</xt:path>
    </xt:refsToSearch>
    <xt:includeOnlyModifiedResources>false</xt:includeOnlyModifiedResources>
    <xt:searchString>http://localhost:7001/business/ValidateCoverage/ValidateCoverageService</xt:searchString>
    <xt:isCompleteMatch>false</xt:isCompleteMatch>
    </cus:query>
    <cus:replacement>http://192.20.51.150:7001/business/ValidateCoverage/ValidateCoverageService</cus:replacement>
    </cus:customization>
    </cus:Customizations>
    But import.py is simply not replacing the values in the WSDL

  • Does 91 Support LONG RAW ?

    I was told that Oracle 9i does not support LONG / LONG RAW columns and all need to change to BLOB or CLOB. Is this true. Is there any place in oracle web site or any authentic document where this is true.
    If so, I got truck load of job to do out here.
    Keep me informed
    many thanks
    -Sathya

    Hi,
    LONG and LON RAW datatypes are supported in Oracle9i.
    Check the following document on 9.2
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96540/sql_elements2a.htm#54201
    It is specified in the document that
    'Oracle Corporation strongly recommends that you convert LONG columns to LOB columns as soon as possible. Creation of new LONG columns is scheduled for desupport.'
    The document even contains details on how to convert LONG/LONG RAW to BLOB/CLOB
    Hope this helps.
    Regards,
    Anupama

  • Migration from 9i to 11g Transparent Gateway results in a) ORA-12704: character set mismatch b) ORA-02070: database ... does not support SYS_OP_C2C in this context

    Migration from 9i to 11g Transparent Gateway results in a) ORA-12704: character set mismatch b) ORA-02070: database ... does not support SYS_OP_C2C in this context
    What Transparent Gateway (TG) 11g configuration steps prevent the following errors?:
    a) ORA-12704: character set mismatch
    b) ORA-02070: database <DB_link_name> does not support SYS_OP_C2C in this context
    Hints:
    The current 9i TG works with the existing views and packages.  These same db objects will not compile using the new 11g TG.
    The db objects are on an Oracle 10g database linked to an SQL Server 2008 R2 database.
    Since the 9i TG works I assume a configuration to the 11g TG will get it working same as before.  But what...
    Is is something controlled by these parameters?  (Sorry, I don't know how this stuff works.  I'm the application developer.  My DBAs setup the Transparent Gateways.):
      Parameters in the Gateway Startup Shell script:
        ORA_NLS33
        NLS_LANG
      Parameters in the initsid.ora file:
        HS_LANGUAGE
        HS_NLS_DATE_FORMAT
        HS_NLS_DATE_LANGUAGE
    I'm avoiding the known workaround to refactor the VIEWS and PACKAGES to contain CAST() statements to explicitly match the data types.  A server side fix to the 11g TG is preferred. 
    Sample code:
    a) ORA-12704: character set mismatch
       ... is caused by SQL that works with my 9i TG but not with my 11g TG.  It's a snippit from my view that won't compile:
                      select status_code                  -- Oracle VARCHAR2(30)
                      from   ora_app_interfaces
                     UNION
                      select "StatusCode" as status_code  -- SQL Server NVARCHAR(30)
                      from   SqlAppInterfaces
       Example workaround that I'm avoiding:
                      select status_code
                      from   ora_app_interfaces
                     UNION
                      select CAST("StatusCode" as VARCHAR(30)) as status_code
                      from   SqlAppInterfaces
    b) ORA-02070: database <DB_link_name> does not support SYS_OP_C2C in this context
       A line of code in the procedure that compiles correctly but fails to execute:
               -- Insert into SQL Server from Oracle
               insert into PatientMedRecNum ( 
                  "PatID",         -- SQL Server INT
                  "MedRecNum",     -- SQL Server NVARCHAR(11)
                  "Hospital")      -- SQL Server NVARCHAR(30)
               values (
                  pi_pat_id,       -- Oracle NUMBER
                  pi_med_rec_num,  -- Oracle VARCHAR2
                  pi_hospital);    -- Oracle VARCHAR2
    I'd guess the errors are caused by the TG's implicit conversion between the Oracle VARCHAR2 and the SQL Server NVARCHAR... but this works fine on the 9i TG... how do I set it up to work on the 11g TG? 
    Thanks!

    Trace of 11g TG... generating errors due to lack of automatic mapping from SQL NVARCHAR to Oracle NVARCHAR, where the previous 9g TG mapped from SQL NVARCHAR to Oracle VARCHAR2.
    Oracle Corporation --- MONDAY    SEP 22 2014 13:35:08.186
    Heterogeneous Agent Release
    11.2.0.4.0
    Oracle Corporation --- MONDAY    SEP 22 2014 13:35:08.186
    Version 11.2.0.4.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "DEBUG"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "UCS2"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "FALSE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "TRUE"
    setting HS_FDS_QUOTE_IDENTIFIER to default of "TRUE"
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    setting HS_FDS_ARRAY_EXEC to default of "TRUE"
    Exiting hgosdip, rc=0
    ORACLE_SID is "xxxDEV"
    Product-Info:
      Port Rls/Upd:4/0 PrdStat:0
    Agent:Oracle Database Gateway for MSSQL
    Facility:hsa
    Class:MSSQL, ClassVsn:11.2.0.4.0_0019, Instance:xxxDEV
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=1000
    HOCXU_DB_CSET=178
    HS_LANGUAGE not specified
    rc=1239980 attempting to get LANG environment variable.
    HOCXU_SEM_VER=102000
    Entered hgolofn at 2014/09/22-13:35:08
    RC=-1 from HOSGIP for "PATH"
    Setting PATH to "C:\oracle\product\11.2.0\tg_2\dg4msql\driver\lib"
    Exiting hgolofn, rc=0 at 2014/09/22-13:35:08
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2014/09/22-13:35:08
    Entered hgolgon at 2014/09/22-13:35:08
    reco:0, name:abaccess, tflag:0
    Entered hgosuec at 2014/09/22-13:35:08
    uencoding=UTF16
    Entered shgosuec at 2014/09/22-13:35:08
    Exiting shgosuec, rc=0 at 2014/09/22-13:35:08
    shgosuec() returned rc=0
    Exiting hgosuec, rc=0 at 2014/09/22-13:35:08
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    HOSGIP for "HS_FDS_DEFAULT_OWNER" returned "dbo"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2014/09/22-13:35:08
    HS_FDS_CONNECT_INFO = "sqlserverxxx/sqlinstancexxx/SQL_Server_2008_xxx_DEV"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2014/09/22-13:35:08
    dsn: sqlserverxxx/sqlinstancexxx/SQL_Server_2008_xxx_DEV, name:xxx_admin
    optn:
    Entered hgocip at 2014/09/22-13:35:08
    dsn:sqlserverxxx/sqlinstancexxx/SQL_Server_2008_xxx_DEV
    Exiting hgocip, rc=0 at 2014/09/22-13:35:08
    Entered shgogohn at 2014/09/22-13:35:08
    ohn is 'OraGtw11g_home2'
    Exiting shgogohn, rc=0 at 2014/09/22-13:35:08
    RC=-1 from HOSGIP for "HS_FDS_ENCRYPT_SESSION"
    using 0 as default value for "HS_FDS_ENCRYPT_SESSION"
    RC=-1 from HOSGIP for "HS_FDS_VALIDATE_SERVER_CERT"
    using 1 as default value for "HS_FDS_VALIDATE_SERVER_CERT"
    Entered hgocont_OracleCsidToIANA at 2014/09/22-13:35:08
    Returning 2252
    Exiting hgocont_OracleCsidToIANA at 2014/09/22-13:35:08
    Exiting hgogenconstr, rc=0 at 2014/09/22-13:35:08
    Entered hgopoer at 2014/09/22-13:35:08
    hgopoer, line 231: got native error 5701 and sqlstate 01000; message follows...
    [Oracle][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Changed database context to 'Xxx_XXX_DEV'. {01000,NativeErr = 5701}[Oracle][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Changed language setting to us_english. {01000,NativeErr = 5703}
    Exiting hgopoer, rc=0 at 2014/09/22-13:35:08
    hgocont, line 2764: calling SqlDriverConnect got sqlstate 01000
    Entered hgolosf at 2014/09/22-13:35:08
    Exiting hgolosf, rc=0 at 2014/09/22-13:35:08
    DriverName:HGmsss23.dll, DriverVer:07.01.0093 (B0098, U0065)
    DBMS Name:Microsoft SQL Server, DBMS Version:10.00.2531
    Exiting hgocont, rc=0 at 2014/09/22-13:35:08 with error ptr FILE:hgocont.c LINE:2764 ID:SQLDriverConnect
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 128 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2014/09/22-13:35:08
    Entered hgoulcp at 2014/09/22-13:35:08
    Entered hgowlst at 2014/09/22-13:35:08
    Exiting hgowlst, rc=1 at 2014/09/22-13:35:08
    SQLGetInfo returns Y for SQL_PROCEDURES
    SQLGetInfo returns 0x1f for SQL_OWNER_USAGE
    TXN Capable:2, Isolation Option:0xf
    SQLGetInfo returns 128 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 128 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 134 for SQL_MAX_PROCEDURE_NAME_LEN
    HOSGIP returned value of "TRUE" for HS_FDS_QUOTE_IDENTIFIER
    SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
    13 instance capabilities will be uploaded
    capno:1992, context:0x0001ffff, add-info:        0
    capno:3042, context:0x00000000, add-info:        0, translation:"42"
    capno:3047, context:0x00000000, add-info:        0, translation:"57"
    capno:3049, context:0x00000000, add-info:        0, translation:"59"
    capno:3050, context:0x00000000, add-info:        0, translation:"60"
    capno:3066, context:0x00000000, add-info:        0
    capno:3067, context:0x00000000, add-info:        0
    capno:3068, context:0x00000000, add-info:        0
    capno:3069, context:0x00000000, add-info:        0
    capno:3500, context:0x00000001, add-info:       91, translation:"42"
      capno:3501, context:0x00000001, add-info:       93, translation:"57"
    capno:3502, context:0x00000001, add-info:      107, translation:"59"
    capno:3503, context:0x00000001, add-info:      110, translation:"60"
    Exiting hgoulcp, rc=0 at 2014/09/22-13:35:08
    Entered hgouldt at 2014/09/22-13:35:08
    NO instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2014/09/22-13:35:08
    Entered hgobegn at 2014/09/22-13:35:08
    tflag:0 , initial:1
    hoi:0x12ee18, ttid (len 32) is ...
      xxx
      xxx
    tbid (len 10) is ...
      0: 09000F00 0FAC1E00 010A [..........]
    Exiting hgobegn, rc=0 at 2014/09/22-13:35:08
    Entered hgodtab at 2014/09/22-13:35:08
    count:1
      table: XXX_INTERFACE
    Allocate hoada[0] @ 0000000005F58270
    Entered hgopcda at 2014/09/22-13:35:08
    Column:1(InterfaceID): dtype:2 (NUMERIC), prc/scl:20/0, nullbl:0, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    Entered hgopcda at 2014/09/22-13:35:08
    Column:2(TableName): dtype:-9 (WVARCHAR), prc/scl:30/0, nullbl:0, octet:60, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    Entered hgopcda at 2014/09/22-13:35:08
    Column:3(TableID): dtype:4 (INTEGER), prc/scl:10/0, nullbl:0, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    Entered hgopcda at 2014/09/22-13:35:08
    Column:4(StatusCode): dtype:-9 (WVARCHAR), prc/scl:30/0, nullbl:0, octet:60, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    Entered hgopcda at 2014/09/22-13:35:08
    Column:5(StatusTimestamp): dtype:93 (TIMESTAMP), prc/scl:23/3, nullbl:0, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    Entered hgopcda at 2014/09/22-13:35:08
    Column:6(InterfaceLog): dtype:-9 (WVARCHAR), prc/scl:400/0, nullbl:1, octet:800, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    The hoada for table XXX_INTERFACE follows...
    hgodtab, line 1073: Printing hoada @ 0000000005F58270
    MAX:6, ACTUAL:6, BRC:1, WHT=6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR,0x400:UNICODE_COLUMN)
    DTY NULL-OK  LEN  MAXBUFLEN   PR/SC  CST IND MOD NAME
      3 DECIMAL N         22         22 20/  0    0   0   0 InterfaceID
    12 VARCHAR N         60         60 128/ 30 1000   0 440 TableName
      4 INTEGER N          4 4   0/  0    0   0   0 TableID
    12 VARCHAR N         60         60 128/ 30 1000   0 440 StatusCode
    91 DATE N         16         16 0/  0    0   0   0 StatusTimestamp
    12 VARCHAR Y        800        800 129/144 1000   0 440 InterfaceLog
    Exiting hgodtab, rc=0 at 2014/09/22-13:35:08
    Entered hgodafr, cursor id 0 at 2014/09/22-13:35:08
    Free hoada @ 0000000005F58270
    Exiting hgodafr, rc=0 at 2014/09/22-13:35:08
    Entered hgotcis at 2014/09/22-13:35:08
    Calling SQLStatistics for XXX_INTERFACE
    IndexType=SQL_TABLE_STAT: cardinality=0
    IndexType=1: PK_XXX_Interface
    IndexType=3: IX_TableID
    IndexType=3: IX_TableName
    Calling SQLColumns for dbo.SQL_app_INTERFACE
    #1 Column "InterfaceID": dtype=2, colsize=20, decdig=0, char_octet_length=0, cumulative avg row len=15
    #2 Column "TableName": dtype=-9, colsize=30, decdig=0, char_octet_length=60, cumulative avg row len=60
    #3 Column "TableID": dtype=4, colsize=10, decdig=0, char_octet_length=0, cumulative avg row len=64
    #4 Column "StatusCode": dtype=-9, colsize=30, decdig=0, char_octet_length=60, cumulative avg row len=109
    #5 Column "StatusTimestamp": dtype=93, colsize=23, decdig=3, char_octet_length=0, cumulative avg row len=125
    #6 Column "InterfaceLog": dtype=-9, colsize=400, decdig=0, char_octet_length=800, cumulative avg row len=725
    3 Index(es) found:
      Index: PK_XXX_Interface, type=1, ASCENDING, UNIQUE, cardinality=0
    #1 Column 1: InterfaceID
      Index: IX_TableID, type=3, ASCENDING, NON-UNIQUE, cardinality=0
    #1 Column 3: TableID
      Index: IX_TableName, type=3, ASCENDING, NON-UNIQUE, cardinality=0
    #1 Column 2: TableName
    Exiting hgotcis, rc=0 at 2014/09/22-13:35:08

  • Does Oracle Database Express Edition 11g support CLOB datatype?

    I am having problems in displaying CLOB data type columns when I query my tables in Oracle Database Express Edition 11g. I am getting garbage values. However when I do the exact same thing in the Enterprise Edition I do not have any problems. So I am thinking that the Express Edition does not support CLOB data types due to its size limitations. Am I missing something here?

    Hi, and welcome to the OTN forums!
    I download a year ago oracle 10g and installed in windows7/64bit.
    Now 11g is available. But it says does not work in x64.Well, in fact, 10.2 XE wasn't certified for x64 either, not even for Linux x64...
    11.2 XE has a Linux x86_64 release, and there has been an announcement that there'll be a x64 release for Windows as well, but it's not available (yet).
    There have been a lot of reports that people got 11.2 XE work on x64 Windows machines as well, with a few tweaks at installation time and/or afterwards...
    You'll find tons of posts on that topic when using forum search...
    oracle 10g seems to be not available anymore.Right, the official downloads have been removed after all database 10.2 releases fell out of (regular) support.
    -Udo
    Edited by: Udo on 15.04.2013 21:48

  • Does obiee 11g supports XSL format

    Dears,
    Does Obiee 11g supports XSL style sheet files? Some of the legacy reports are using data which are pulled from the database and formatted via XSL and some are generated from XML/XSL files?
    I have looked at XML connection pool, it only supports importing XML format as source file.May be I am wrong? I do not have great hands on BI publisher.
    Thanks,
    Uday

    Hi Uday,
    If I understand correctly, XSLT is mostly about parsing through the XML and presenting it to the user in some format with colors,fonts etc (Just like CSS).
    So in case of OBI,
    1.It can read the data from the source XML documents itself (Doing the job like of XSL Parser)
    2. Present to the users in the format you need (Doing the job of XSL Renderer).
    So, you just give BI the source data in the form of XML, design the metadata as per your business needs and the OBI Presentation Services component can do the job of presenting.
    Hope this gives you some idea of BI just working like XSL.
    Thank you,
    Dhar

  • Does BI Publisher 11g Support Restful Web Services as Data Set

    Hi,
    Could you tell me if BI Publisher 11g supports the REST API or is SOAP based API required for web services defined as data sets.
    Thanks in advance,
    Jean

    There are External API's which only do JSON outputs. Can this be integrated into a Report? If not, Is there a Enhacement to Add RESTful returning JSON or XML for a Dataset?

  • Error "This class does not support SAAJ 1.3" in oim 11g

    hai all,
    i have error "This class does not support SAAJ 1.3" when i running create user.
    i already tried added in startWeblogic.cmd and in setDomainEnv.cmd :
    -Djavax.xml.soap.MessageFactory=weblogic.xml.saaj.MessageFactoryImpl and -Djavax.xml.soap.MessageFactory=com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
    step like this site (http://blog.xebia.com/2009/07/14/jax-ws-cxf-and-saaj-on-oracle-weblogic-103/)
    i already too set path for = saaj-impl-1.3.jar but the error still same "This class does not support SAAJ 1.3"
    i used weblogic 10.3.5, i'm generate soap message used rt.jar (import javax.xml.namespace.QName; etc)
    any idea to solving this error ?
    thank's
    darvesth
    Edited by: darvesth on Mar 19, 2013 4:08 AM

    thank you darvest, i follow your step before.
    but i added any steps after that.
    1. include saaj-impl-1.13.jar and saaj-api.jar in project adapter
    2. add parameter "SOAPConstants.SOAP_1_2_PROTOCOL" in line code, MessageFactory mf= MessageFactory.newInstance()
    -> MessageFactory mf= MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
    so, my problem already resolve..
    i hope this solution usefull to resolve our problem, darvest.
    thanks,
    Tim BENGA

  • Dg4odbc to MySQL update errors: "does not support IS NULL in this context"

    I am having a problem with 'where x is null' clauses in update statements to MySQL from 11g, using dg4odbc. Updates using the clause 'where x is null' return errors like this:
    ORA-02070: database PLAZAHOST does not support IS NULL in this context
    The rejected queries never get to mysql. Furthermore, I noticed that select statements with 'where x is null' show up in the mysql query log with the where clause stripped out, although correct results are returned to SQLPlus. It looks as though 'where x is null' is stripped off by dg4odbc, which subsequently applies a secondary filter to the results received from MySQL.
    Note, both statements above work properly when issued from the MySQL client.
    Has anybody seen this? It's a big problem for me, but I can't find any references to other people having the same problem, so I assume I've got something misconfigured -- but I don't know what.
    I'm using MySQL ODBC 5.1 Driver, MySQL 5.1 Community Edition, and Oracle 11g R1 all running on a 32-bit Windows server.
    Thank you -- rick
    =============
    here's a spool of a sample oracle session:
    SQL> col descr1 for a40
    SQL> select * from t1@plazahost;
    id1 descr1
    1 hello
    2
    SQL> descr t1@plazahost
    Name Null? Type
    id1 NUMBER(10)
    descr1 VARCHAR2(255)
    SQL> select * from t1@plazahost where "descr1" is null;
    id1 descr1
    2
    SQL> update t1@plazahost set "descr1"='updated' where "descr1" is null;
    update t1@plazahost set "descr1"='updated' where "descr1" is null
    ERROR at line 1:
    ORA-02070: database PLAZAHOST does not support IS NULL in this context
    SQL> spool off
    =============
    here's the mysql query log snip for the oracle session:
    100804 10:24:20 1637 Connect     moms_oracle@MOMS_HOST on moms
              1637 Query     SET NAMES utf8
              1637 Query     SET character_set_results = NULL
              1637 Query     SET SQL_AUTO_IS_NULL = 0
              1637 Query     set autocommit=0
              1637 Query     select database()
              1637 Query     COMMIT
              1637 Query     SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED
              1637 Query     SHOW TABLE STATUS FROM `moms` LIKE 'T1'
              1637 Query     SHOW COLUMNS FROM `moms`.`t1`
              1637 Query     SELECT `id1`,`descr1` FROM `moms`.`t1` LIMIT 0
              1637 Query     SHOW KEYS FROM `moms`.`T1`
              1637 Query     SHOW TABLE STATUS FROM `moms` LIKE 'T1'
              1637 Query     SHOW COLUMNS FROM `moms`.`t1`
              1637 Query     SELECT `id1`,`descr1` FROM `moms`.`t1` LIMIT 0
              1637 Query     SELECT A1.`id1`,A1.`descr1` FROM `T1` A1
              1637 Query     SELECT `id1`,`descr1` FROM `T1`
    100804 10:24:28 1637 Query     COMMIT
              1637 Quit     
    =============
    here's the Oracle HS trace file for the same oracle session:
    Oracle Corporation --- WEDNESDAY AUG 04 2010 10:24:19.608
    Heterogeneous Agent Release
    11.1.0.7.0
    Oracle Corporation --- WEDNESDAY AUG 04 2010 10:24:19.608
    Version 11.1.0.7.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "DEBUG"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of "HS_TRANSACTION_LOG"
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "UCS2"
    setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "TRUE"
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics"
    Exiting hgosdip, rc=0
    ORACLE_SID is "plazahost"
    Product-Info:
    Port Rls/Upd:7/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.1.0.7.0_0006, Instance:plazahost
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=1000
    HOCXU_DB_CSET=178
    HOCXU_SEM_VER=110000
    Entered hgolofn at 2010/08/04-10:24:19
    Exiting hgolofn, rc=0 at 2010/08/04-10:24:20
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    Exiting hgoinit, rc=0 at 2010/08/04-10:24:20
    Entered hgolgon at 2010/08/04-10:24:20
    reco:0, name:moms_oracle, tflag:0
    Entered hgosuec at 2010/08/04-10:24:20
    Exiting hgosuec, rc=0 at 2010/08/04-10:24:20
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using moms_oracle as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2010/08/04-10:24:20
    HS_FDS_CONNECT_INFO = "momsPlazaHost"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2010/08/04-10:24:20
    dsn:momsPlazaHost, name:moms_oracle
    optn:
    ##>Connect Parameters (len=43)<##
    ## DSN=momsPlazaHost;
    #! UID=moms_oracle;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2010/08/04-10:24:20
    DriverName:myodbc5.dll, DriverVer:05.01.0005
    DBMS Name:MySQL, DBMS Version:5.1.35-community-log
    Exiting hgocont, rc=0 at 2010/08/04-10:24:20
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 64 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2010/08/04-10:24:20
    Entered hgoulcp at 2010/08/04-10:24:20
    Entered hgowlst at 2010/08/04-10:24:20
    Exiting hgowlst, rc=0 at 2010/08/04-10:24:20
    SQLGetInfo returns ` for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo returns Y for SQL_COLUMN_ALIAS
    2 instance capabilities will be uploaded
    capno:1991, context:0x0001ffff, add-info: 0
    capno:1992, context:0x0001ffff, add-info: 1, translation:"`"
    Exiting hgoulcp, rc=0 at 2010/08/04-10:24:20
    Entered hgouldt at 2010/08/04-10:24:20
    0 instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2010/08/04-10:24:20
    Entered hgobegn at 2010/08/04-10:24:20
    tflag:0 , initial:1
    hoi:0x12f03c, ttid (len 26) is ...
    00: 4D4F4D53 44422E38 62393537 3032392E [MOMSDB.8b957029.]
    10: 322E3130 2E333131 3531 [2.10.31151]
    tbid (len 23) is ...
    00: 4D4F4D53 44425B32 2E31302E 33313135 [MOMSDB[2.10.3115]
    10: 315D5B31 2E345D [1][1.4]]
    TXN Capable:3, Isolation Option:0xf
    Exiting hgobegn, rc=0 at 2010/08/04-10:24:20
    Entered hgodtab at 2010/08/04-10:24:20
    count:1
    table: T1
    Entered hgopcda at 2010/08/04-10:24:20
    Column:1(id1): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/08/04-10:24:20
    Entered hgopcda at 2010/08/04-10:24:20
    Column:2(descr1): dtype:12 (VARCHAR), prc/scl:255/0, nullbl:1, octet:255, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/08/04-10:24:20
    The hoada for table T1 follows...
    hgodtab, line 651: Printing hoada @ 02A32DDC
    MAX:2, ACTUAL:2, BRC:1, WHT=6 (TABLE_DESCRIBE)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    4 INTEGER Y 4 4 0/ 0 0 0 0 id1
    12 VARCHAR Y 255 255 0/ 0 0 0 0 descr1
    Exiting hgodtab, rc=0 at 2010/08/04-10:24:20
    Entered hgodafr, cursor id 0 at 2010/08/04-10:24:20
    Exiting hgodafr, rc=0 at 2010/08/04-10:24:20
    Entered hgotcis at 2010/08/04-10:24:20
    Calling SQLStatistics for T1
    Calling SQLColumns for moms_oracle.T1
    Column "id1": dtype=4, colsize=10, decdig=0, char_octet_length=0, cumulative avg row len=4
    Column "descr1": dtype=12, colsize=255, decdig=0, char_octet_length=255, cumulative avg row len=195
    Exiting hgotcis, rc=0 at 2010/08/04-10:24:20
    Entered hgopars, cursor id 1 at 2010/08/04-10:24:20
    type:0
    SQL text from hgopars, id=1, len=40 ...
    00: 53454C45 43542041 312E6069 6431602C [SELECT A1.`id1`,]
    10: 41312E60 64657363 72316020 46524F4D [A1.`descr1` FROM]
    20: 20605431 60204131 [ `T1` A1]
    Exiting hgopars, rc=0 at 2010/08/04-10:24:20
    Entered hgoopen, cursor id 1 at 2010/08/04-10:24:20
    hgoopen, line 83: NO hoada to print
    Exiting hgoopen, rc=0 at 2010/08/04-10:24:20
    Entered hgodscr, cursor id 1 at 2010/08/04-10:24:20
    Entered hgopcda at 2010/08/04-10:24:20
    Column:1(id1): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/08/04-10:24:20
    Entered hgopcda at 2010/08/04-10:24:20
    Column:2(descr1): dtype:12 (VARCHAR), prc/scl:255/0, nullbl:1, octet:256, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/08/04-10:24:20
    hgodscr, line 506: Printing hoada @ 02A32DDC
    MAX:2, ACTUAL:2, BRC:100, WHT=5 (SELECT_LIST)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    4 INTEGER Y 4 4 0/ 0 0 0 0 id1
    12 VARCHAR Y 256 256 0/ 0 0 0 0 descr1
    Exiting hgodscr, rc=0 at 2010/08/04-10:24:21
    Entered hgoftch, cursor id 1 at 2010/08/04-10:24:21
    hgoftch, line 117: Printing hoada @ 02A32DDC
    MAX:2, ACTUAL:2, BRC:100, WHT=5 (SELECT_LIST)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    4 INTEGER Y 4 4 0/ 0 0 0 0 id1
    12 VARCHAR Y 256 256 0/ 0 0 0 0 descr1
    SQLBindCol: column 1, cdatatype: -16, bflsz: 4
    SQLBindCol: column 2, cdatatype: 1, bflsz: 257
    2 rows fetched
    Exiting hgoftch, rc=0 at 2010/08/04-10:24:21
    Entered hgoftch, cursor id 1 at 2010/08/04-10:24:21
    hgoftch, line 117: Printing hoada @ 02A32DDC
    MAX:2, ACTUAL:2, BRC:2, WHT=5 (SELECT_LIST)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    4 INTEGER Y 4 4 0/ 0 0 0 0 id1
    12 VARCHAR Y 5 256 0/ 0 0 0 0 descr1
    0 rows fetched
    Exiting hgoftch, rc=1403 at 2010/08/04-10:24:21
    Entered hgoclse, cursor id 1 at 2010/08/04-10:24:23
    Exiting hgoclse, rc=0 at 2010/08/04-10:24:23
    Entered hgodafr, cursor id 1 at 2010/08/04-10:24:23
    Exiting hgodafr, rc=0 at 2010/08/04-10:24:23
    Entered hgopars, cursor id 1 at 2010/08/04-10:24:23
    type:0
    SQL text from hgopars, id=1, len=31 ...
    00: 53454C45 43542060 69643160 2C606465 [SELECT `id1`,`de]
    10: 73637231 60204652 4F4D2060 543160 [scr1` FROM `T1`]
    Exiting hgopars, rc=0 at 2010/08/04-10:24:23
    Entered hgoopen, cursor id 1 at 2010/08/04-10:24:23
    hgoopen, line 83: NO hoada to print
    Exiting hgoopen, rc=0 at 2010/08/04-10:24:23
    Entered hgodscr, cursor id 1 at 2010/08/04-10:24:23
    Entered hgopcda at 2010/08/04-10:24:23
    Column:1(id1): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/08/04-10:24:23
    Entered hgopcda at 2010/08/04-10:24:23
    Column:2(descr1): dtype:12 (VARCHAR), prc/scl:255/0, nullbl:1, octet:256, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/08/04-10:24:23
    hgodscr, line 506: Printing hoada @ 02A32DDC
    MAX:2, ACTUAL:2, BRC:100, WHT=5 (SELECT_LIST)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    4 INTEGER Y 4 4 0/ 0 0 0 0 id1
    12 VARCHAR Y 256 256 0/ 0 0 0 0 descr1
    Exiting hgodscr, rc=0 at 2010/08/04-10:24:24
    Entered hgoftch, cursor id 1 at 2010/08/04-10:24:24
    hgoftch, line 117: Printing hoada @ 02A32DDC
    MAX:2, ACTUAL:2, BRC:100, WHT=5 (SELECT_LIST)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    4 INTEGER Y 4 4 0/ 0 0 0 0 id1
    12 VARCHAR Y 256 256 0/ 0 0 0 0 descr1
    SQLBindCol: column 1, cdatatype: -16, bflsz: 4
    SQLBindCol: column 2, cdatatype: 1, bflsz: 257
    2 rows fetched
    Exiting hgoftch, rc=0 at 2010/08/04-10:24:24
    Entered hgoftch, cursor id 1 at 2010/08/04-10:24:24
    hgoftch, line 117: Printing hoada @ 02A32DDC
    MAX:2, ACTUAL:2, BRC:2, WHT=5 (SELECT_LIST)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    4 INTEGER Y 4 4 0/ 0 0 0 0 id1
    12 VARCHAR Y 5 256 0/ 0 0 0 0 descr1
    0 rows fetched
    Exiting hgoftch, rc=1403 at 2010/08/04-10:24:24
    Entered hgoclse, cursor id 1 at 2010/08/04-10:24:27
    Exiting hgoclse, rc=0 at 2010/08/04-10:24:27
    Entered hgodafr, cursor id 1 at 2010/08/04-10:24:27
    Exiting hgodafr, rc=0 at 2010/08/04-10:24:27
    Entered hgocomm at 2010/08/04-10:24:28
    keepinfo:0, tflag:1
    00: 4D4F4D53 44422E38 62393537 3032392E [MOMSDB.8b957029.]
    10: 322E3130 2E333131 3531 [2.10.31151]
    tbid (len 23) is ...
    00: 4D4F4D53 44425B32 2E31302E 33313135 [MOMSDB[2.10.3115]
    10: 315D5B31 2E345D [1][1.4]]
    cmt(0):
    Entered hgocpctx at 2010/08/04-10:24:28
    Exiting hgocpctx, rc=0 at 2010/08/04-10:24:28
    Exiting hgocomm, rc=0 at 2010/08/04-10:24:28
    Entered hgolgof at 2010/08/04-10:24:28
    tflag:1
    Exiting hgolgof, rc=0 at 2010/08/04-10:24:28
    Entered hgoexit at 2010/08/04-10:24:28
    Exiting hgoexit, rc=0 at 2010/08/04-10:24:28

    is null statement is post processed. This means in case of a select ALL records from the remote database are fetched into the Oracle database and the is null statement is then processed locally in the Oracle db.
    So thze select will work as it is handled internally in the Oracle database. This also means as But "is null" isn't sent to the foreign MySQL db the update clause will fail with ORA-02070: database PLAZAHOST does not support IS NULL in this context
    You need to recode the statement or use passthrough statements.

  • [unixODBC][Driver Manager]Driver does not support this function {IM001}

    Hello,
    I start from the end and details show below - this error message i got in sql session:
    SQL> select count(*) from EnergyType@ENERGOPLAN;
    select count(*) from EnergyType@ENERGOPLAN
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [unixODBC][Driver Manager]Driver does not support this function {IM001}
    ORA-02063: preceding 2 lines from ENERGOPLAN
    SQL>
    First question - is Oracle Heterogeneous Services are licensed for standard edition ? I cant find this information, and my database - is SE 11.2.0.3.0 - 64bit.
    If its ok and HS are licensed for SE, then please see details of my problem:
    ----OS and packages version
    [oracle@aris_sv_db log]$ uname -a
    Linux aris_sv_db 2.6.18-308.24.1.el5 #1 SMP Tue Dec 4 17:43:34 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
    [oracle@aris_sv_db log]$
    [oracle@aris_sv_db log]$ rpm -qa | grep odbc
    [oracle@aris_sv_db log]$ rpm -qa | grep unixodbc
    [oracle@aris_sv_db log]$ rpm -qa | grep unixODBC
    unixODBC-libs-2.2.11-10.el5
    unixODBC-libs-2.2.11-10.el5
    unixODBC-devel-2.2.11-10.el5
    unixODBC-2.2.11-10.el5
    unixODBC-devel-2.2.11-10.el5
    [oracle@aris_sv_db log]$ rpm -qa | grep freetds
    freetds-0.91-1.el5.rf
    [oracle@aris_sv_db log]$
    -----ODBC.INI, ODBCINST.INI and FREETDS.CONF
    [oracle@aris_sv_db log]$ more /home/oracle/.odbc.ini
    [ENERGOPLAN]
    Driver = FreeTDS
    Servername = ENERGOPLAN
    Database = ess2
    [oracle@aris_sv_db log]$
    [oracle@aris_sv_db log]$ more /etc/odbcinst.ini
    # Example driver definitions
    [FreeTDS]
    Description = MSSQL Driver
    Driver = /usr/lib64/libtdsodbc.so.0
    #Setup = /usr/lib64/libtdsodbc.so.0
    #Driver = /usr/lib64/libodbc.so
    #Driver = /usr/lib/libodbc.so
    UsageCount = 1
    Trace = Yes
    TraceFile = /tmp/freetds.log
    [ODBC]
    DEBUG = 1
    TraceFile = /tmp/sqltrace.log
    Trace = Yes
    [oracle@aris_sv_db log]$
    [oracle@aris_sv_db log]$ more /etc/freetds.conf
    # A typical Microsoft server
    [ENERGOPLAN]
    host = 192.168.10.64
    port = 1433
    tds version = 8.0
    # client charset = UTF-8
    client charset = cp1251
    [oracle@aris_sv_db log]$
    ----CHECK CONNECT from ODBC
    [oracle@aris_sv_db log]$ isql -v ENERGOPLAN user pass
    | Connected! |
    | |
    | sql-statement |
    | help [tablename] |
    | quit |
    | |
    SQL> select count(*) from EnergyType;
    | |
    | 8 |
    SQLRowCount returns 1
    1 rows fetched
    SQL> [oracle@aris_sv_db log]$ tsql -S ENERGOPLAN -U user -P pass
    locale is "en_US.UTF-8"
    locale charset is "UTF-8"
    using default charset "cp1251"
    1> select count(*) from EnergyType;
    2> go
    8
    (1 row affected)
    1> [oracle@aris_sv_db log]$
    ----LISTENER.ORA, TNSNAMES and initENERGOPLAN.ora
    [oracle@aris_sv_db log]$ more /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    SID_LIST_ENERGOPLAN =
    (SID_LIST =
    (SID_DESC=
    (SID_NAME=ENERGOPLAN)
    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
    (PROGRAM=dg4odbc)
    (ENVS="LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2.0/dbhome_1/lib")
    ENERGOPLAN =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = PNPKEY))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.72)(PORT = 1523))
    ADR_BASE_LISTENER = /u01/app/oracle
    [oracle@aris_sv_db log]$ more /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    ENERGOPLAN =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.72)(PORT=1523))
    (CONNECT_DATA=(SID=ENERGOPLAN))
    (HS=OK)
    [oracle@aris_sv_db log]$ more /u01/app/oracle/product/11.2.0/dbhome_1/hs/admin/initENERGOPLAN.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = ENERGOPLAN
    #HS_FDS_CONNECT_INFO = 192.168.0.199:1433//test
    HS_FDS_TRACE_LEVEL = DEBUG
    #HS_FDS_TRACE_FILE_NAME = /tmp/hs1.log
    HS_FDS_TRACE_FILE_NAME = /u01/app/oracle/product/11.2.0/dbhome_1/hs/log/mytrace.log
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so #/usr/lib64/libtdsodbc.so.0
    #HS_FDS_SHAREABLE_NAME = /usr/lib64/libtdsodbc.so.0
    #HS_FDS_SHAREABLE_NAME = /usr/lib/libodbc.so
    #HS_LANGUAGE=american_america.we8iso8859p1
    #HS_LANGUAGE=AMERICAN_AMERICA.AL32UTF8
    #HS_LANGUAGE=AMERICAN_AMERICA.CL8MSWIN1251
    #HS_LANGUAGE=RUSSIAN_RUSSIA.UTF8
    #HS_LANGUAGE=Russian_CIS.AL32UTF-8
    #HS_FDS_FETCH_ROWS=1
    HS_NLS_NCHAR = UCS2
    HS_FDS_SQLLEN_INTERPRETATION=32
    # ODBC specific environment variables
    set ODBCINI=/home/oracle/.odbc.ini
    set ODBCINSTINI=/etc/odbcinst.ini
    #HS_KEEP_REMOTE_COLUMN_SIZE=ALL
    #HS_NLS_LENGTH_SEMANTICS=CHAR
    #HS_FDS_SUPPORT_STATISTICS=FALSE
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    [oracle@aris_sv_db log]$
    [oracle@aris_sv_db log]$ tnsping ENERGOPLAN
    TNS Ping Utility for Linux: Version 11.2.0.3.0 - Production on 01-APR-2013 16:27:49
    Copyright (c) 1997, 2011, Oracle. All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.72)(PORT=1523)) (CONNECT_DATA=(SID=ENERGOPLAN)) (HS=OK))
    OK (0 msec)
    [oracle@aris_sv_db log]$
    ----CREATE DBLINK and test from sqlplus
    CREATE DATABASE LINK "ENERGOPLAN" CONNECT TO "user" IDENTIFIED BY "pass" USING 'ENERGOPLAN';
    [oracle@aris_sv_db log]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.3.0 Production on Mon Apr 1 16:30:14 2013
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
    SQL> select count(*) from EnergyType@ENERGOPLAN;
    select count(*) from EnergyType@ENERGOPLAN
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [unixODBC][Driver Manager]Driver does not support this function {IM001}
    ORA-02063: preceding 2 lines from ENERGOPLAN
    SQL>
    ----logs from hs and odbc
    [oracle@aris_sv_db log]$ tail -50 ENERGOPLAN_agt_12117.trc
    12 VARCHAR N 100 100 0/ 0 1000 0 200 ConsumptionYearCostUOM
    3 DECIMAL N 24 24 9/ 3 0 0 0 ConsumptionYearFactorAmount
    -7 BIT N 1 1 0/ 0 0 0 20 NeedToBeApprovedByREK
    Exiting hgodtab, rc=0 at 2013/04/01-16:30:42
    Entered hgodafr, cursor id 0 at 2013/04/01-16:30:42
    Free hoada @ 0x14e5fd20
    Exiting hgodafr, rc=0 at 2013/04/01-16:30:42
    Entered hgopars, cursor id 1 at 2013/04/01-16:30:42
    type:0
    SQL text from hgopars, id=1, len=36 ...
    00: 53454C45 43542043 4F554E54 282A2920 [SELECT COUNT(*) ]
    10: 46524F4D 2022454E 45524759 54595045 [FROM "ENERGYTYPE]
    20: 22204131 [" A1]
    Exiting hgopars, rc=0 at 2013/04/01-16:30:42
    Entered hgoopen, cursor id 1 at 2013/04/01-16:30:42
    hgoopen, line 87: NO hoada to print
    Deferred open until first fetch.
    Exiting hgoopen, rc=0 at 2013/04/01-16:30:42
    Entered hgodscr, cursor id 1 at 2013/04/01-16:30:42
    Allocate hoada @ 0x14e5fd80
    Entered hgodscr_process_sellist_description at 2013/04/01-16:30:42
    Entered hgopcda at 2013/04/01-16:30:42
    Column:1(): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/04/01-16:30:42
    Entered hgopoer at 2013/04/01-16:30:42
    hgopoer, line 231: got native error 0 and sqlstate IM001; message follows...
    [unixODBC][Driver Manager]Driver does not support this function {IM001}
    Exiting hgopoer, rc=0 at 2013/04/01-16:30:42
    hgodscr, line 407: calling SQLSetStmtAttr got sqlstate IM001
    Free hoada @ 0x14e5fd80
    hgodscr, line 464: NO hoada to print
    Exiting hgodscr, rc=28500 at 2013/04/01-16:30:42 with error ptr FILE:hgodscr.c LINE:407 FUNCTION:hgodscr() ID:Set array fetch size
    Entered hgoclse, cursor id 1 at 2013/04/01-16:31:24
    Exiting hgoclse, rc=0 at 2013/04/01-16:31:24
    Entered hgocomm at 2013/04/01-16:31:24
    keepinfo:0, tflag:1
    00: 4F52434C 2E343535 32623466 342E362E [ORCL.4552b4f4.6.]
    10: 32322E37 363237 [22.7627]
    tbid (len 20) is ...
    00: 4F52434C 5B362E32 322E3736 32375D5B [ORCL[6.22.7627][]
    10: 312E345D [1.4]]
    cmt(0):
    Entered hgocpctx at 2013/04/01-16:31:24
    Exiting hgocpctx, rc=0 at 2013/04/01-16:31:24
    Exiting hgocomm, rc=0 at 2013/04/01-16:31:24
    Entered hgolgof at 2013/04/01-16:31:24
    tflag:1
    Exiting hgolgof, rc=0 at 2013/04/01-16:31:24
    Entered hgoexit at 2013/04/01-16:31:24
    Exiting hgoexit, rc=0
    [oracle@aris_sv_db log]$
    [oracle@aris_sv_db log]$ tail -50 /tmp/sqltrace.log
    Native = 0x7fff6ca974f4
    Message Text = 0x14e5f968
    Buffer Length = 510
    Text Len Ptr = 0x7fff6ca97750
    [ODBC][12117][SQLGetDiagRecW.c][582]
    Exit:[SQL_SUCCESS]
    SQLState = IM001
    Native = 0x7fff6ca974f4 -> 0
    Message Text = [[unixODBC][Driver Manager]Driver does not support this function]
    [ODBC][12117][SQLGetDiagRecW.c][540]
    Entry:
    Statement = 0x14e399f0
    Rec Number = 2
    SQLState = 0x7fff6ca97700
    Native = 0x7fff6ca974f4
    Message Text = 0x14e5f908
    Buffer Length = 510
    Text Len Ptr = 0x7fff6ca97750
    [ODBC][12117][SQLGetDiagRecW.c][582]
    Exit:[SQL_NO_DATA]
    [ODBC][12117][SQLEndTran.c][315]
    Entry:
    Connection = 0x14dbd4b0
    Completion Type = 0
    [ODBC][12117][SQLGetInfo.c][214]
    Entry:
    Connection = 0x14dbd4b0
    Info Type = SQL_CURSOR_COMMIT_BEHAVIOR (23)
    Info Value = 0x7fff6ca9781e
    Buffer Length = 8
    StrLen = 0x7fff6ca9781c
    [ODBC][12117][SQLGetInfo.c][528]
    Exit:[SQL_SUCCESS]
    [ODBC][12117][SQLEndTran.c][488]
    Exit:[SQL_SUCCESS]
    [ODBC][12117][SQLDisconnect.c][204]
    Entry:
    Connection = 0x14dbd4b0
    [ODBC][12117][SQLDisconnect.c][341]
    Exit:[SQL_SUCCESS]
    [ODBC][12117][SQLFreeHandle.c][268]
    Entry:
    Handle Type = 2
    Input Handle = 0x14dbd4b0
    [ODBC][12117][SQLFreeHandle.c][317]
    Exit:[SQL_SUCCESS]
    [ODBC][12117][SQLFreeHandle.c][203]
    Entry:
    Handle Type = 1
    Input Handle = 0x14dbb0c0
    [oracle@aris_sv_db log]$

    To see which ODBC function DG4ODBC is looking for and unixODBC isn't supporting it would be best to get an ODBC trace file. But as your unixODBC driver (unixODBC-2.2.11-10.el5) is outdated and these old drivers had a lot of issues when being used on 64bit operating systems (for example wrong sizeofint etc). So best would be to update the unixODBC Driver manager to release 2.3.x. More details can be found on the web site: www.unicodbc.org
    - Klaus

  • Xdb_installation_trigger does not support object creation of type SNAPSHOT

    hi everyone, i'm using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit on solaris sparc 5.10
    we like to send an email through SSL, and after searching here and there I found out that oracle DB 11g able to go throught the SSL.
    since upgrade our DB to 11g would not be an option, so i tried to export XDB of 11g and import it into XDB 10gR2 schema, it was a mess...
    then i just reinstall XDB using catnoqm.sql & catqm.sql
    and now one of our programmer cant run some script like above
    CREATE MATERIALIZED VIEW FIFSYS_MKT_SCHEME_MV_COY
    TABLESPACE MARKETING_TABLES
    PCTUSED    40
    PCTFREE    10
    INITRANS   2
    MAXTRANS   255
    STORAGE    (
    INITIAL          64K
    MINEXTENTS       1
    MAXEXTENTS       UNLIMITED
    PCTINCREASE      0
    FREELISTS        1
    FREELIST GROUPS  1
    BUFFER_POOL      DEFAULT
    +)+
    NOCACHE
    LOGGING
    NOCOMPRESS
    NOPARALLEL
    BUILD IMMEDIATE
    REFRESH FORCE ON DEMAND
    WITH PRIMARY KEY
    AS
    +/* Formatted on 9/23/2010 1:07:42 PM (QP5 v5.114.809.3010) */+
    SELECT   coy_id,
    appl_branch_id,
    appl_object_code,
    product_type,
    ppdcf_paid_date,
    SUM (scheme_adm) scheme_adm,
    SUM (appl_unit) appl_unit,
    SYSDATE mkt_sysdate
    FROM   (SELECT   NVL (a.coy_id, '01') coy_id,
    a.branch_id appl_branch_id,
    DECODE (a.buss_unit, 'NMC', '2101', 'UMC', '2102', '2352')
    appl_object_code,
    a.platform product_type,
    TRUNC (c.contract_active_date) ppdcf_paid_date,
    NVL (s.ms_amt, 0) scheme_adm,
    NVL (o.total_item, 0) appl_unit
    FROM   ordmgmt.om_trn_appl_ms_lvl_object s,
    ordmgmt.om_trn_appl_hdr a,
    acctmgmt.ar_trn_sum_contracts c,
    +( SELECT appl_no, COUNT ( * ) total_item+
    FROM   ordmgmt.om_trn_appl_object
    GROUP BY   appl_no) o
    WHERE       s.appl_no = a.appl_no
    AND a.appl_no = o.appl_no
    AND s.ms_code IN ('MS03', 'MS14')
    AND c.appl_no = a.appl_no
    AND c.contract_no = a.contract_no
    +/*AND c.office_code = a.branch_id*/+
    AND NVL (a.coy_id, '01') = NVL (c.coy_id, '01'))
    GROUP BY   coy_id,
    appl_branch_id,
    appl_object_code,
    product_type,
    ppdcf_paid_date;
    COMMENT ON MATERIALIZED VIEW FIFSYS_MKT_SCHEME_MV_COY IS 'snapshot table for snapshot MARKETING.FIFSYS_MKT_SCHEME_MV_COY';
    and this error shown:
    ORA-00604 error occurred at recursive SQL level 1
    ORA-20000 Trigger xdb_installation_trigger does not support object creation of type SNAPSHOT
    ORA-06512 at line 32
    maybe some of you know how to solve this problem??
    and, this in the script of the xdb_installation_trigger
    DROP TRIGGER SYS.XDB_INSTALLATION_TRIGGER;
    CREATE OR REPLACE TRIGGER SYS.xdb_installation_trigger
    BEFORE
    CREATE ON DATABASE
    DECLARE
    sql_text varchar2(200);
    val number;
    BEGIN
    if (dictionary_obj_owner != 'XDB') then
    if (dictionary_obj_type = 'FUNCTION' or
    dictionary_obj_type = 'INDEX' or
    dictionary_obj_type = 'PACKAGE' or
    dictionary_obj_type = 'PACKAGE BODY' or
    dictionary_obj_type = 'PROCEDURE' or
    dictionary_obj_type = 'SYNONYM' or
    dictionary_obj_type = 'TABLE' or
    dictionary_obj_type = 'TABLESPACE' or
    dictionary_obj_type = 'TYPE' or
    dictionary_obj_type = 'VIEW' or
    dictionary_obj_type = 'USER'
    +)then+
    if (dictionary_obj_type  != 'PACKAGE BODY'
    +) then+
    sql_text := 'select count(*) from ALL_OBJECTS where owner = :1 and object_name = :2 and object_type = :3';
    execute immediate sql_text into val using dictionary_obj_owner, dictionary_obj_name, dictionary_obj_type;
    if (val = 0) then
    sql_text := 'select count(*) from dropped_xdb_instll_tab where owner = :1 and object_name = :2 and object_type = :3';
    execute immediate sql_text into val using dictionary_obj_owner, dictionary_obj_name, dictionary_obj_type;
    if (val = 0) then
    insert into xdb_installation_tab values
    +(dictionary_obj_owner, dictionary_obj_name, dictionary_obj_type);+
    end if;
    end if;
    end if;
    else
    raise_application_error(-20000, 'Trigger xdb_installation_trigger does not support object creation of type '||dictionary_obj_type);
    end if;
    end if;
    end;
    +/+
    /********************************************************************************/

    i'm so careless, after checking a fresh installation of the same version DB, i dont found xdb_installation_trigger.
    so just by simply remove that trigger & everything works just fine. :)

  • ORA-24335 - cannot support more than 1000 columns - How to solve this?

    Hi,
    I got error message 'ORA-24335 - cannot support more than 1000 columns ' when i try to insert x no of rows for a table with following code:
    INSERT ALL
    INTO tableA Values ('A', 'B', 'C', 1, 2, 3)
    INTO tableA Values ('D', 'E', 'F', 4, 5, 6)
    INTO tableA Values ('G', 'H', 'I', 7, 8, 9)
    SELECT *
    FROM DUAL
    How to solve above?
    What does it really mean? It's not as easy as if my table has 10 columns than I can't insert more than 100 rows (1000 columns divided with 10 columns = maximun 100 rows to insert), or?
    Is there a better/more appropriate way to do insert many rows?
    Should I do my inserts with an OracleTransaction (My application is developed with C# and asp.net), as ~follows
    BEGIN
    INSERT INTO tableA Values ('A', 'B', 'C', 1, 2, 3)
    INSERT INTO tableA Values ('D', 'E', 'F', 4, 5, 6)
    INSERT INTO tableA Values ('G', 'H', 'I', 7, 8, 9)
    COMMIT
    END
    Thx in advance!
    Edited by: user8819407 on 2010-mar-07 15:40

    Hi,
    So how did you solve the problem? Can you please give an example?
    I have the same problem inserting over 1000 values into my Oracle DB. The table only has 51 columns but to speed up the insert command, I use bulk inserts via insert all command. I need to insert 100 rows at a time for a total of 5100 values.
    Example:
    SQLCmd = INSERT ALL INTO MYTABLE (VAL_ID,VAL_NAME,VAL_NUM,VAL_TIME,VAL_CMM,VAL_TIME1,VAL_TRIP,VAL_REMAINING,VAL_AGE,VAL_COUNT,VAL_RSTS,VAL_VOLT,VAL_RF,VAL_DC,VAL_HOPS,VAL_STATUS,VAL_ELAPSED,MODIFY_TIME) VALUES (?,?,?,TO_DATE(?,?),?,TO_DATE(?,?),?,?,?,?,?,?,?,?,?,?,?,SYSTIMESTAMP)
    INTO MYTABLE (VAL_ID,VAL_NAME,VAL_NUM,VAL_TIME,VAL_CMM,VAL_TIME1,VAL_TRIP,VAL_REMAINING,VAL_AGE,VAL_COUNT,VAL_RSTS,VAL_VOLT,VAL_RF,VAL_DC,VAL_HOPS,VAL_STATUS,VAL_ELAPSED,MODIFY_TIME) VALUES (?,?,?,TO_DATE(?,?),?,TO_DATE(?,?),?,?,?,?,?,?,?,?,?,?,?,SYSTIMESTAMP)
    INTO MYTABLE (VAL_ID,VAL_NAME,VAL_NUM,VAL_TIME,VAL_CMM,VAL_TIME1,VAL_TRIP,VAL_REMAINING,VAL_AGE,VAL_COUNT,VAL_RSTS,VAL_VOLT,VAL_RF,VAL_DC,VAL_HOPS,VAL_STATUS,VAL_ELAPSED,MODIFY_TIME) VALUES (?,?,?,TO_DATE(?,?),?,TO_DATE(?,?),?,?,?,?,?,?,?,?,?,?,?,SYSTIMESTAMP)
    INTO MYTABLE (VAL_ID,VAL_NAME,VAL_NUM,VAL_TIME,VAL_CMM,VAL_TIME1,VAL_TRIP,VAL_REMAINING,VAL_AGE,VAL_COUNT,VAL_RSTS,VAL_VOLT,VAL_RF,VAL_DC,VAL_HOPS,VAL_STATUS,VAL_ELAPSED,MODIFY_TIME) VALUES (?,?,?,TO_DATE(?,?),?,TO_DATE(?,?),?,?,?,?,?,?,?,?,?,?,?,SYSTIMESTAMP)
    SELECT 1 FROM DUAL
    SQLVals = 1 22C38299 80700334 04-19-2012 13:55:33 mm-dd-yyyy hh24:mi:ss MCC93000 04/19/2012 13:55:42 mm-dd-yyyy hh24:mi:ss 12 4 0.792191 23 1 0.00 -113.50 13.48 9 1 9
    1 36PR7038 8070EDC2 04-19-2012 12:24:35 mm-dd-yyyy hh24:mi:ss MCC60360 04/19/2012 12:24:41 mm-dd-yyyy hh24:mi:ss 7 4 0.757501 3 2 13.88 -114.80 14.06 5 1 6
    1 42C63512 8050166F 04-19-2012 16:02:50 mm-dd-yyyy hh24:mi:ss MCC52420 04/19/2012 16:02:57 mm-dd-yyyy hh24:mi:ss 10 4 0.778471 8 1 0.00 -122.30 13.05 8 1 7
    1 33MR3076 80803E75 04-19-2012 13:13:16 mm-dd-yyyy hh24:mi:ss MCC60330 04/19/2012 13:13:22 mm-dd-yyyy hh24:mi:ss 13 5 0.636721 28 3 0.00 -122.19 0.70 8 1 6
    Then I call: &DBInsert($sqlCmd, @sqlVals);
    This is the error I get: ORA-24335: cannot support more than 1000 columns.
    I need to insert about 879,500 rows (51 cols per row). The values I read from a text file in sets of about 48,000 and put them into a hash. I tried inserting one row at a time, but it takes too long, about 28 hrs! Then, I tried the bulk update with only 6 rows and the total time was about 25 minutes. Which is acceptable to us.
    Thanks!

  • The requested operation could not be performed because OLE DB provider "MSOLAP" for linked server does not support the required transaction interface.

    I am getting the following error when attempting to INSERT the results of an "EXEC(@MDXQuery) at SSAS LinkedServer":
    The requested operation could not be performed because OLE DB provider "MSOLAP" for linked server does not support the required transaction interface.
    Here is code that illustrates what I am doing:
    DECLARE @MDX varchar(max);
    SET @MDX='
    SELECT
    [Measures].[Extended Service Count]
    } ON COLUMNS,
    NON EMPTY [Organization].[By Manufacturer].[Manufacturer]
    ON ROWS
    FROM (
    SELECT
    {[Organization].[Org Tree].&[2025],[Organization].[Org Tree].&[2040]} ON 0
    FROM [MyCube]
    /* Test 1 */
    EXECUTE(@MDX) at SSASLinkedServer;
    /* Test 2 */
    DECLARE @ResultsB TABLE (
    Manufacturer varchar(255)
    , ExtendedServiceCount float
    INSERT INTO @ResultsB (Manufacturer, ExtendedServiceCount) EXECUTE(@MDX) at SSASLinkedServer;
    Test 1 succeeds, returning expected results, and Test 2 fails returning the error mentioned above.
    Other articles I've found so far don't seem to apply to my case.  I am not creating any explicit transactions in my code.   When I use OPENQUERY, I am able to do the insert just fine, but not when I use EXEC @MDX at LinkedServer.
    Unfortunately in some variations of the query, I run into the 8800 character limit on OPENQUERY, so I need to use this other approach.
    Any ideas?
    -Tab Alleman

    Hi Tab,
    In this case, SQL Server Analysis Services doesn’t support Distributed Transactions by design. Here is a similar thread about this issue for your reference, please see:
    http://social.technet.microsoft.com/Forums/en-US/8b07be45-01b6-49d4-b773-9f441c0e44c9/olaplinked-server-error-msolap-for-linked-server-olaplinked-server-does-not-support-the?forum=sqlanalysisservices
    One workaround is that use SQLCMD to execute the EXEC AT command and saved the results to a file, then import using SSIS.
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • DRG-11110: matches does not support functional invocation

    Hi all,
    We are working on the some prototype and we hit this road block.
    When 'matches' was included with other conditions in query and used in pl/sql we are getting this error.
    Oracle Text error: DRG-11110: matches does not support functional invocation
    We tried including the hint /*+ index(t2 t2x) */ * (t2 table and t2x index ) in query but it didn't help.
    The query works fine from SQL developer, but included in pl/sql gives the error 9 out of 10times.
    Is there something that anyone can help
    Regards,
    Chaitanya.

    The optimizer tends to choose functional invocation, which will cause the query to fail, when the structured portion of the query is most restrictive. So you will need to stop it from selecting what might otherwise be the most efficient plan at the times when you might have otherwise gained the most performance benefit from it. You want to try to force the optimizer to use the domain index to select the rows based on the matches criteria first, then evaluate the other conditions. You will need to experiment with things like your date filter to see if that causes funcitonal invocation or not. It will depend on how restricitve that is, whether there is an index on the date column and whether there is a small enough amount of data to do a full table scan benficially. You might benefit from hints but the "rownum > 0" seems to have the most consistent effect. You can use "explain plan for" on a query that fails to see what it was trying to do. Notice the difference in the execution plans below for the first failed query and the second working query that uses the domain index.
    SCOTT@orcl_11g> SET AUTOTRACE ON EXPLAIN
    SCOTT@orcl_11g> SELECT req_id, request, query_id, query_string
      2  FROM   queries, requests, tmptab
      3  WHERE  matches (query_string, request) > 0
      4  AND    tmptab.ID = query_id
      5  /
    SELECT req_id, request, query_id, query_string
    ERROR at line 1:
    ORA-20000: Oracle Text error:
    DRG-11110: matches does not support functional invocation
    SCOTT@orcl_11g> SET AUTOTRACE OFF
    SCOTT@orcl_11g> EXPLAIN PLAN FOR
      2  SELECT req_id, request, query_id, query_string
      3  FROM   queries, requests, tmptab
      4  WHERE  matches (query_string, request) > 0
      5  AND    tmptab.ID = query_id
      6  /
    Explained.
    SCOTT@orcl_11g> SELECT * FROM TABLE (DBMS_XPLAN.DISPLAY)
      2  /
    PLAN_TABLE_OUTPUT
    Plan hash value: 3854985881
    | Id  | Operation           | Name     | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT    |          |     1 |   855 |    13   (8)| 00:00:01 |
    |   1 |  NESTED LOOPS       |          |     1 |   855 |    13   (8)| 00:00:01 |
    |*  2 |   HASH JOIN         |          |     3 |  1320 |     7  (15)| 00:00:01 |
    |   3 |    TABLE ACCESS FULL| TMPTAB   |     3 |    39 |     3   (0)| 00:00:01 |
    |   4 |    TABLE ACCESS FULL| QUERIES  |   300 |   125K|     3   (0)| 00:00:01 |
    |*  5 |   TABLE ACCESS FULL | REQUESTS |     1 |   415 |     2   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("TMPTAB"."ID"="QUERY_ID")
       5 - filter("CTXSYS"."MATCHES"("QUERY_STRING","REQUEST")>0)
    Note
       - dynamic sampling used for this statement
    22 rows selected.
    SCOTT@orcl_11g> DELETE plan_table
      2  /
    6 rows deleted.
    SCOTT@orcl_11g> SET AUTOTRACE ON EXPLAIN
    SCOTT@orcl_11g> SELECT req_id, request, query_id, query_string
      2  FROM   (SELECT req_id, request, query_id, query_string
      3            FROM   queries, requests
      4            WHERE  matches (query_string, request) > 0
      5            AND    ROWNUM > 0),
      6           tmptab
      7  WHERE tmptab.ID = query_id
      8  /
        REQ_ID REQUEST           QUERY_ID QUERY_STRING
             1 A B C                  699 A | B
             2 B C                    699 A | B
    Execution Plan
    Plan hash value: 615182442
    | Id  | Operation                        | Name             | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                 |                  |    45 | 37935 |    14   (8)| 00:00:01 |
    |*  1 |  HASH JOIN                       |                  |    45 | 37935 |    14   (8)| 00:00:01 |
    |   2 |   TABLE ACCESS FULL              | TMPTAB           |     3 |    39 |     3   (0)| 00:00:01 |
    |   3 |   VIEW                           |                  |    45 | 37350 |    10   (0)| 00:00:01 |
    |   4 |    COUNT                         |                  |       |       |            |          |
    |*  5 |     FILTER                       |                  |       |       |            |          |
    |   6 |      NESTED LOOPS                |                  |    45 | 37890 |    10   (0)| 00:00:01 |
    |   7 |       TABLE ACCESS FULL          | REQUESTS         |     3 |  1245 |     3   (0)| 00:00:01 |
    |   8 |       TABLE ACCESS BY INDEX ROWID| QUERIES          |    15 |  6405 |    10   (0)| 00:00:01 |
    |*  9 |        DOMAIN INDEX              | QUERY_STRING_IDX |       |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - access("TMPTAB"."ID"="QUERY_ID")
       5 - filter(ROWNUM>0)
       9 - access("CTXSYS"."MATCHES"("QUERY_STRING","REQUEST")>0)
    Note
       - dynamic sampling used for this statement
    SCOTT@orcl_11g>

  • DRG-10849 catsearch does not support functional invocation

    I have this error message: DRG-10849 catsearch does not support functional invocation
    this is my query:
    SELECT *
    FROM
    (SELECT
    /*+ FIRST_ROWS(50) */
    NTQ.*,
    ROWNUM RNUM1
    FROM
    (SELECT
    /*+ INDEX(DL_TSD_DEFTR_CI) */
    FROM ima_ol.DL_TSD_SITUATION s
    WHERE (CATSEARCH(DEF_TRANS,'milano ',NULL)>0)
    AND (s.FORECAST = 0)
    AND (s.STATE IN (1,0,4))
    AND (s.ARCH_STATE = 0)
    ORDER BY s.VET_TS DESC
    ) NTQ
    WHERE ROWNUM <=50
    WHERE RNUM1 >=1
    my oracle and system version:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    "CORE 11.1.0.7.0 Production"
    TNS for Solaris: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    have suggested that to solve the problem I should alter the statistics of the offending table to force to use this index how do I do?
    thanks in advance

    there is a topic which is older. maybe it helped.
    Oracle Text 10g Release 2

Maybe you are looking for