ORA-01788: CONNECT BY clause required in this query block

My Oracle version is: 10.2.0.4.0 (for both DEV and PROD)
Below is the SQL which throws error ORA-01788 on PROD during the execution. I can guarantee that the syntax is right.
Also, the odd thing about this is that, it works fine on the DEV which is the same version as the PROD.
So, could anyone help explain why? Is it a oracle bug?
is there any easy workaround for this?
Thanks in advance
SELECT  *
FROM
  DI_CODE_LEVEL,
  ( SELECT D.TYPE_CODE,D.CODE,D.CODE_DESC FROM DI_CODE_LEVEL D WHERE D.TYPE_CODE='KHLX-V'
  )  KHLX,
  DM_D_LO_CUST,
  DM_D_ALL_ORG,
  DM_D_DATE,
  DM_F_LO_HTZXFX,
  DM_D_AREA_CONFIG
WHERE
  ( DM_F_LO_HTZXFX.ORG_ID=DM_D_ALL_ORG.ORG_ID
AND DM_D_ALL_ORG.FROM_DT<=to_date(20100225,'YYYYMMDD')
and DM_D_ALL_ORG.TO_DT>to_date(20100225,'YYYYMMDD') )
  AND  ( DM_F_LO_HTZXFX.CUST_ID=DM_D_LO_CUST.CUST_ID  )
  AND  ( to_date(DM_D_DATE.DAY_ID,'YYYYMMDD')=DM_F_LO_HTZXFX.CURRENT_DT  )
  AND  ( DI_CODE_LEVEL.TYPE_CODE='QY'  )
  AND  ( DM_D_LO_CUST.AREA_ID=DM_D_AREA_CONFIG.DQ_ID   
  and DM_D_AREA_CONFIG.FROM_DT<=to_date(20100225,'YYYYMMDD')
  and DM_D_AREA_CONFIG.TO_DT>to_date(20100225,'YYYYMMDD') )
  AND  ( KHLX.CODE=DM_D_LO_CUST.CUST_TYPE  )
  AND  ( DM_D_ALL_ORG.S_SYSTEM='EAS-LO'  )
  AND  ( DI_CODE_LEVEL.CODE=DM_D_AREA_CONFIG.QY_ID  )
---problematic part starts
  AND  ( DM_D_ALL_ORG.ORG_ID in
       ( select distinct org_id from DM_D_ALL_ORG
          where (S_SYSTEM='EAS-LO')start with org_id in 
              (select org_id from T_USER_ORG_MAPPING where upper(user_id)= upper('Administrator') ) 
         CONNECT BY  UP_ORG_ID=PRIOR ORG_ID )  )
---ends
  AND  DM_D_ALL_ORG.ORG_ID  =  '12110000'
   AND  (DI_CODE_LEVEL.CODE  =  '100000'  OR  DI_CODE_LEVEL.UP_CODE  =  '100000' )
   AND  ( DM_D_DATE.DAY_ID=20100225  );PS: the code is created by program, so please bear with the ugliness.
Thanks

PhoenixBai wrote:
Futher findings about this case is that it works perfectly fine when I don`t create any bitmap indexes for the fact tables.
Once I create bitmap indexes for the fact table, it throws this annoying ORA-01788 errors.This has got to be frustrating! Indexes (bitmap or btree) should not influence query parsing errors :(
You say the same code workes in dev. Something is different:
* are you certain the code is the same in both places?
* initialization/session parameters?
* database patches level?
Query transformation gone bad? Try using the NO_QUERY_TRANSFORMATION hint to see if the error recurs (warning: this may affect performance)

Similar Messages

  • Database error says connect by clause for Oracle10g

    Hi All,
    I am trying to select details from anodestable where error says SQLException connect by clause is required in this query block.
    Please respond if you know how to resolve this error.
    Thanks in advance.
    Bye

    Katheresh wrote:
    Hi All,
    I am trying to select details from anodestable where error says SQLException connect by clause is required in this query block.
    Please respond if you know how to resolve this error.
    Thanks in advance.
    ByeCould you post the SQL code and the error you got?

  • What is wrong with this query?

    Hi,
    The below query is showing this error:
    ORA-01788:CONNECT BY LOOP in user data.
    Please let me know where i am going wrong?
    The data in the table xx_dates is :
    Empno        date1                      date2
    1           20-JAN-2008            24-JAN-2008
    2           20-JAN-2008            20-JAN-2008The query i am using is:
    select empno,date1,date2,date1+level-1,level,DBMS_RANDOM.random
    from xx_dates
    connect by empno=prior empno  start with empno=1
               and date1 <= date2-level + 1Edited by: Sreekanth Munagala on Nov 17, 2008 6:01 AM

    Or maybe it's this you are looking for...
    SQL> ed
    Wrote file afiedt.buf
      1  with xx_dates as (select 1 as empno, to_date('20-JAN-2008','DD-MON-YYYY') as date1, to_date('24-JAN-2008','DD-MON-YYYY') as date2 from dual union all
      2                    select 2, to_date('20-JAN-2008','DD-MON-YYYY'), to_date('20-JAN-2008','DD-MON-YYYY') from dual)
      3  --
      4  select empno,date1,date2,date1+level-1,level,DBMS_RANDOM.random
      5  from xx_dates
      6  connect by level <= (date2-date1) + 1
      7* start with empno=1
    SQL> /
         EMPNO DATE1                DATE2                DATE1+LEVEL-1             LEVEL     RANDOM
             1 20-JAN-2008 00:00:00 24-JAN-2008 00:00:00 20-JAN-2008 00:00:00          1 -291581367
             1 20-JAN-2008 00:00:00 24-JAN-2008 00:00:00 21-JAN-2008 00:00:00          2 1347815622
             1 20-JAN-2008 00:00:00 24-JAN-2008 00:00:00 22-JAN-2008 00:00:00          3 -595509310
             1 20-JAN-2008 00:00:00 24-JAN-2008 00:00:00 23-JAN-2008 00:00:00          4 -1.602E+09
             1 20-JAN-2008 00:00:00 24-JAN-2008 00:00:00 24-JAN-2008 00:00:00          5 -1.511E+09
    SQL>

  • ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75

    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75
    Scenario:
    I am having difficulty getting ODBC connection between Oracle OWB app with an 11gR2 DB (running on a VirtualBox Linux) and SQL Server 2008 running directly on the host. (Windows 8)
    I am trying to take a SQL Server 2008 feed into Oracle Ware house Builder, and think(!) I have read everything and configured it in accordance (but I presume not given 3 days of failed attempts to fix it). I have also read several blogs, hence there might be a few more settings in the configuration files than the formal documentation says, but these have come from blogs that have “Solved” problems for other similar situations.
    The environments:
    HOST:
    Name: RESOLVEIT-PC
    IP: 192.168.1.80
    Windows 8 (64bit) , with system DSN ODBC connection ACME_POS created with 32 bit ODBC set up (This setting still shows up fine in the 64 bit ODBC).
    GUEST VM:
    Name: OraDBSvr.com
    GUES fixed IP Address: 192.1.200
    Oracle VirtualBox (4.2.16)
    Oracle Redhat Linux 6 (x86)
    Oracle 11gR2 Enterprise Edition (11.2.0.1.0)
    ODBC: Freetds driver
    Configuration files:
    initacmepos.ora
    HS_FDS_CONNECT_INFO = 192.168.1.80/SQLEXPRESS/ACME_POS
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_RPC_FETCH_REBLOCKING= OFF
    HS_FDS_FETCH_ROWS = 1
    HS_FDS_SHAREABLE_NAME = /usr/local/lib/libtdsodbc.so
    set ODBCINI=/opt/odbc/odbc.ini
    # set <envvar>=<value>
    odbc.ini
    [ACME_POS]
    Driver     = FreeTDS
    Description = ODBC Connection via FreeTDS
    Trace       = 1
    Servername  = 192.168.1.80
    Database    = dbo
    odbcinst.ini
    [PostgreSQL]
    Description                        = ODBC for PostgreSQL
    Driver                   = /usr/lib/psqlodbc.so
    Setup                    = /usr/lib/libodbcpsqlS.so
    Driver64                              = /usr/lib64/psqlodbc.so
    Setup64                              = /usr/lib64/libodbcpsqlS.so
    FileUsage                           = 1
    [MySQL]
    Description                        = ODBC for MySQL
    Driver                   = /usr/lib/libmyodbc5.so
    Setup                    = /usr/lib/libodbcmyS.so
    Driver64                              = /usr/lib64/libmyodbc5.so
    Setup64                              = /usr/lib64/libodbcmyS.so
    FileUsage                           = 1
    [FreeTDS]
    Discription             = TDS driver (Sybase / MS SQL)
    Driver                           = /usr/local/lib/libtdsodbc.so
    # Setup                         = /usr/local/lib/libtdsS.so
    FileUsage                           = 1
    CPTimeout               =
    CPReuse                 =
    [oracle@oraDBsvr etc]$
    freetds.conf
    #   $Id: freetds.conf,v 1.12 2007-12-25 06:02:36 jklowden Exp $
    # This file is installed by FreeTDS if no file by the same
    # name is found in the installation directory. 
    # For information about the layout of this file and its settings,
    # see the freetds.conf manpage "man freetds.conf". 
    # Global settings are overridden by those in a database
    # server specific section
    [global]
            # TDS protocol version
    ;              tds version = 4.2
                   # Whether to write a TDSDUMP file for diagnostic purposes
                   # (setting this to /tmp is insecure on a multi-user system)
    ;              dump file = /tmp/freetds.log
    ;              debug flags = 0xffff
                   # Command and connection timeouts
    ;              timeout = 10
    ;              connect timeout = 10
                   # If you get out-of-memory errors, it may mean that your client
                   # is trying to allocate a huge buffer for a TEXT field.
                   # Try setting 'text size' to a more reasonable limit
                   text size = 64512
    # A typical Sybase server
    [egServer50]
                   host = symachine.domain.com
                   port = 5000
                   tds version = 5.0
    # A typical Microsoft server
    [ACME_POS]
      host = 192.168.1.80
      port = 60801                                # also tried 1433
      instance = SQLEXPRESS
      tds version = 8.0
      client charset = UTF-8
    tsql -LH 192.168.1.80
         ServerName RESOLVEIT-PC
       InstanceName SQLEXPRESS
        IsClustered No
            Version 10.50.4000.0
                tcp 60801
                 np \\RESOLVEIT-PC\pipe\MSSQL$SQLEXPRESS\sql\query
                via RESOLVEIT-PC,0:1433
    Oracle listener:
    [oracle@oraDBsvr log]$ cat /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.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = acmepos)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
    (PROGRAM = dg4odbc)
    (HS = OK)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oraDBsvr)(PORT = 1521))
    ADR_BASE_LISTENER = /u01/app/oracle
    [oracle@oraDBsvr log]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 16-SEP-2013 13:57:41
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oraDBsvr)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                16-SEP-2013 13:50:34
    Uptime                    0 days 0 hr. 7 min. 7 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/diag/tnslsnr/oraDBsvr/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oraDBsvr)(PORT=1521)))
    Services Summary...
    Service "acmepos" has 1 instance(s).
    Instance "acmepos", status UNKNOWN, has 1 handler(s) for this service...
    Service "dw" has 1 instance(s).
    Instance "dw", status READY, has 1 handler(s) for this service...
    Service "dwXDB" has 1 instance(s).
    Instance "dw", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Oracle tnsnames.ora
    [oracle@oraDBsvr admin]$ cat 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.
    dw =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dw)
    acmepos  =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=acmepos)
    (HS=OK)
    Oracle sqlnet.ora
    [oracle@oraDBsvr admin]$ cat sqlnet.ora
    # sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DIRECTORY_PATH= (EZCONNECT, TNSNAMES)
    ADR_BASE = /u01/app/oracle
    I can connect from the linux server to SQL Server, and query the database:
    [oracle@oraDBsvr etc]$ tsql -S acme_pos -U acme_dw_user -P acme1234
    locale is "en_US.utf8"
    locale charset is "UTF-8"
    using default charset "UTF-8"
    1> select last_name from dbo.employees;
    2> go
    last_name
    Davolio
    Fuller
    Leverling
    Peacock
    Buchanan
    Suyama
    King
    Callahan
    Dodsworth
    (9 rows affected)
    1>
    However, I can’t get a response through Oracle OWB , and I get:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75
    In the hs log file I get:
    [oracle@oraDBsvr log]$ cat acmepos_agt_3821.trc
    Oracle Corporation --- MONDAY    SEP 16 2013 13:51:22.170
    Heterogeneous Agent Release
    11.2.0.1.0
    HS Gateway:  NULL connection context at exit
    [oracle@oraDBsvr log]$
    I am really stuck now and going round in circles and can’t see the wood for trees! Can anyone please help?!!
    Many Thanks.
    Rafe.

    Let us rewrite your ODBC DSN a little bit... Your current odbc.ini looks like:
    [ACME_POS]
    Driver     = FreeTDS
    Description = ODBC Connection via FreeTDS
    Trace       = 1
    Servername  = 192.168.1.80
    Database    = dbo
    Let us change it a little bit so that we only need one config file - no odbcinst.ini nor freetds.conf file anymore:
    [ACME_POS]
    Driver =/usr/local/lib/libtdsodbc.so
    Server = 192.168.1.80
    Database
    = dbo     ####  I have some doubts that you have a SQL Server database called dbo - one database that always exists is master - so as a test use master here or get the real database name of the SQL Server database you want to connect
    Port = 60801 ## make sure it really is the correct port - best would be to check on the SQL server and then try telnet <ip> <port> if you can connect to the SQL server
    TDS_Version = 8.0
    QuotedId=YES
    Especially the last 2 parameters are mandatory. TDS_Version specifies the TDS Version you have to use to connect to the SQL Server and QuotedID is required for DG4ODBC as it surrounds objevt names by double quotes.
    What happens now when you try to connect with for example isql - the ODBC test utility shipped with the ODBC Driver manager?
    In addition, could you please do me another favour and check the word size of DG4ODBC and the ODBC Driver Manager as well as the ODBC Driver - just execute:
    file /u01/app/oracle/product/11.2.0/dbhome_1/bin/dg4odbc
    file /usr/local/lib/libtdsodbc.so
    file < the patch to your libodbc.so library>/libodbc.so
    and post the output.

  • ORA-28500: connection from ORACLE to a non-Oracle system returned this

    Hi ALL<
    Please assist i am doing heterogeneous connectivity as oracle to sql server the below error encounterd after created db link.
    SQL> select * from SqlTest@jadoo;
    select * from SqlTest@jadoo
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-28541: Error in HS init file on line 20.
    ORA-02063: preceding 2 lines from JADOO

    Hi,
    my dg4odbc.ora is as below:
    $ cat initdg4odbc.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 = mssqlserver
    HS_FDS_TRACE_LEVEL = off
    HS_FDS_SHAREABLE_NAME = /usr/opt/ibm/WSII/odbc/ddl/lib/FRmsss21.so
    # ODBC specific environment variables
    set ODBCINI=/usr/opt/ibm/WSII/odbc/ddl/odbc.ini
    # Environment variables required for the non-Oracle system
    set <envvar>=<value>
    $
    MY odbc.ini file is as :
    $ cat odbc.ini
    [ODBC Data Sources]
    DB2 Wire Protocol=DataDirect 5.1 DB2 Wire Protocol
    Informix Wire Protocol=DataDirect 5.1 Informix Wire Protocol
    Oracle Wire Protocol=DataDirect 5.0 Oracle Wire Protocol
    Oracle=DataDirect 5.1 Oracle
    SQLServer Wire Protocol=DataDirect 5.1 SQL Server Wire Protocol
    Sybase Wire Protocol=DataDirect 5.1 Sybase Wire Protocol
    mssqlserver=MS SQL Server 2008
    [DB2 Wire Protocol]
    Driver=/home2/alesio/odbc64v51/lib/dddb221.so
    Description=DataDirect 5.1 DB2 Wire Protocol
    AddStringToCreateTable=
    AlternateID=
    AlternateServers=
    ApplicationUsingThreads=1
    CatalogSchema=
    CharsetFor65535=0
    #Collection applies to OS/390 and AS/400 only
    Collection=
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    #Database applies to DB2 UDB only
    Database=<database_name>
    DynamicSections=200
    GrantAuthid=PUBLIC
    GrantExecute=1
    IpAddress=<DB2_server_host>
    LoadBalancing=0
    #Location applies to OS/390 and AS/400 only
    Location=<location_name>
    LogonID=
    Password=
    PackageOwner=
    ReportCodePageConversionErrors=0
    SecurityMechanism=0
    TcpPort=<DB2_server_port>
    UseCurrentSchema=1
    WithHold=1
    [Informix Wire Protocol]
    Driver=/home2/alesio/odbc64v51/lib/ddifcl21.so
    Description=DataDirect 5.1 Informix Wire Protocol
    AlternateServers=
    ApplicationUsingThreads=1
    CancelDetectInterval=0
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    Database=<database_name>
    HostName=<Informix_host>
    LoadBalancing=0
    LogonID=
    Password=
    PortNumber=<Informix_server_port>
    ReportCodePageConversionErrors=0
    ServerName=<Informix_server>
    TrimBlankFromIndexName=1
    [Oracle Wire Protocol]
    Driver=/home2/alesio/odbc64v51/lib/ddora21.so
    Description=DataDirect 5.1 Oracle Wire Protocol
    AlternateServers=
    ApplicationUsingThreads=1
    ArraySize=60000
    CachedCursorLimit=32
    CachedDescLimit=0
    CatalogIncludesSynonyms=1
    CatalogOptions=0
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    DefaultLongDataBuffLen=1024
    DescribeAtPrepare=0
    EnableDescribeParam=0
    EnableNcharSupport=0
    EnableScrollableCursors=1
    EnableStaticCursorsForLongData=0
    EnableTimestampWithTimeZone=0
    HostName=<Oracle_server>
    LoadBalancing=0
    LocalTimeZoneOffset=
    LockTimeOut=-1
    LogonID=
    Password=
    PortNumber=1521
    ProcedureRetResults=0
    ReportCodePageConversionErrors=0
    ServiceType=0
    ServiceName=
    SID=<Oracle_SID>
    TimeEscapeMapping=0
    UseCurrentSchema=1
    [Oracle]
    Driver=/home2/alesio/odbc64v51/lib/ddor821.so
    Description=DataDirect 5.1 Oracle
    AlternateServers=
    ApplicationUsingThreads=1
    ArraySize=60000
    CatalogIncludesSynonyms=1
    CatalogOptions=0
    ClientVersion=9iR2
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    DefaultLongDataBuffLen=1024
    DescribeAtPrepare=0
    EnableDescribeParam=0
    EnableNcharSupport=0
    EnableScrollableCursors=1
    EnableStaticCursorsForLongData=0
    EnableTimestampWithTimeZone=0
    LoadBalancing=0
    LocalTimeZoneOffset=
    LockTimeOut=-1
    LogonID=
    OptimizeLongPerformance=0
    Password=
    ProcedureRetResults=0
    ReportCodePageConversionErrors=0
    ServerName=<Oracle_server>
    TimestampEscapeMapping=0
    UseCurrentSchema=1
    [SQLServer Wire Protocol]
    Driver=/home2/alesio/odbc64v51/lib/ddmsss21.so
    Description=DataDirect 5.1 SQL Server Wire Protocol
    Address=<SQLServer_host, SQLServer_server_port>
    AlternateServers=
    AnsiNPW=Yes
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    Database=<database_name>
    LoadBalancing=0
    LogonID=
    Password=
    QuotedId=No
    ReportCodePageConversionErrors=0
    [Sybase Wire Protocol]
    Driver=/home2/alesio/odbc64v51/lib/ddase21.so
    Description=DataDirect 5.1 Sybase Wire Protocol
    AlternateServers=
    ApplicationName=
    ApplicationUsingThreads=1
    ArraySize=50
    Charset=
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    CursorCacheSize=1
    Database=<database_name>
    DefaultLongDataBuffLen=1024
    EnableDescribeParam=0
    EnableQuotedIdentifiers=0
    InitializationString=
    Language=
    LoadBalancing=0
    LogonID=
    NetworkAddress=<Sybase_host, Sybase_server_port>
    OptimizePrepare=1
    PacketSize=0
    Password=
    RaiseErrorPositionBehavior=0
    ReportCodePageConversionErrors=0
    SelectMethod=0
    TruncateTimeTypeFractions=0
    WorkStationID=
    [mssqlserver]
    Driver=/usr/opt/ibm/WSII/odbc/ddl/lib/FRmsss21.so
    Description=MS SQL Server Driver for AIX
    Database=TraceTest
    LogonID=TraceAdmin
    Password=sqltest@123$
    Address=10.10.1.92\MSSQL2008
    QuotedId=YES
    QEWSD=41143
    AnsiNPW=YES
    [ODBC]
    IANAAppCodePage=4
    InstallDir=/usr/opt/ibm/WSII/odbc/ddl
    Trace=0
    TraceDll=/usr/opt/ibm/WSII/odbc/dd/lib/odbctrac.so
    TraceFile=odbctrace.out
    UseCursorLib=0
    $
    Please advise.
    Best Regards,
    Edited by: user13707876 on 23-Aug-2012 04:54

  • Dblink oracle to postgres with dg4odbc | ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line

    Hi, i'm trying to create database link from a database Oracle 11g to PostgreSQL with DG4ODBC, and unixODBC
    my configured to /etc/odbc.ini
    [PostgreSQL]
    Description = Test to Postgres
    Driver = psqlodbc
    Trace = Yes
    TraceFile = /tmp/sql.log
    Database = danieldb
    Servername =
    UserName = SA
    Password = password
    Port = 5432
    Protocol = 6.4
    ReadOnly = No
    RowVersioning = No
    ShowSystemTables = No
    ShowOidColumn = No
    FakeOidIndex = No
    my configured to /etc/odbcinst.ini
    [ODBC]
    CommLog=1
    Debug=1
    FileUsage=1
    Pooling=No
    Trace=1
    [psqlodbc]
    Description=PostgreSQL ODBC driver
    Driver=/usr/lib64/psqlodbcw.so
    CommLog=1
    Debug=0
    FileUsage=1
    my configured to /u01/app/oracle/product/11.2.0/xe/hs/admin/initPostgreSQL.ora
    HS_FDS_CONNECT_INFO = PostgreSQL
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbcpsql.so
    set ODBCINI=/etc/odbc.ini
    my configured to /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
    Listener =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521))
    SID_LIST_LISTENER =
            (SID_LIST =
                    (SID_DESC=
                            (SID_NAME=PostgreSQL)
                            (ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe)
                            (PROGRAM=dg4odbc)
                            (ENVS="LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2.0/xe/lib")
    my configured to /u01/app/oracle/product/11.2.0/xe/network/admin/tnsname.ora
    PostgreSQL=
            (DESCRIPTION =
                    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521))
                    (CONNECT_DATA =
                            (SID = PostgreSQL)
                    (HS = OK)
    i'm try to created public database link :
    CREATE PUBLIC DATABASE LINK "orapos" CONNECT TO "SA" IDENTIFIED BY "password" USING 'PostgreSQL';
    when i used tnsping
    [root@oracle-poc admin]# tnsping PostgreSQL
    TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 16-MAY-2013 20:34:19
    Copyright (c) 1997, 2011, Oracle.  All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/xe/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521)) (CONNECT_DATA = (SID = PostgreSQL)) (HS = OK))
    OK (0 msec)
    and last i try to use the database link :
    SQL> select * from "tabel2"@orapos
      2  ;
    select * from "tabel2"@orapos
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from ORAPOS
    Whats wrong with my configuration??
    Thank you and best regards,
    Daniel

    Mike,
    yes i've downloaded the ODBC driver manager..
    for HS_FDS_SHAREABLE_NAME i use /usr/lib/psqlodbc.so
    and i get this error when i call the db link(orpos)
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from ORAPOS
    for HS_FDS_SHAREABLE_NAME = /usr/lib64/psqlodbcw.so
    and i get this error when i call the db link(orpos)
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    c
    and when i used isql isql to call DNS(PostgreSQL) is success
    whats wrong with my config?
    about PostGres ODBC did you mean postgresql-odbc-08.04.0200-1.el6.x86_64 ??
    Thank you and best regards,
    Daniel

  • ORA-28500: connection from ORACLE to a non-Oracle system returned this mess

    Hi,
    I scheduled a job .. got this error what could be the reason ?
    *** 2011-09-27 05:00:21.239
    *** SESSION ID:(273.6080) 2011-09-27 05:00:21.239
    *** CLIENT ID:([email protected]@Mozilla/4.0 (compatible; MSIE 8.0; Windows) 2011-09-27 05:00:21.239
    *** SERVICE NAME:(SYS$USERS) 2011-09-27 05:00:21.239
    *** MODULE NAME:(DBMS_SCHEDULER) 2011-09-27 05:00:21.239
    *** ACTION NAME:(XXINSERTKEY) 2011-09-27 05:00:21.239
    ORA-12012: error on auto execute of job 3311903
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. {08001,NativeErr = 17}[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()). {01000,NativeErr = 53}
    ORA-02063: preceding 2 lines from VISABG
    ORA-06512: at "APPS.XXDMIG_INSERT", line 3
    Thanks
    Vishwa

    ORA-12012: error on auto execute of job 3311903
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. {08001,NativeErr = 17}[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()). {01000,NativeErr = 53}
    ORA-02063: preceding 2 lines from VISABG
    ORA-06512: at "APPS.XXDMIG_INSERT", line 3Search MOS website for ORA-28500 and go through the docs!
    Ora-28500 with Ms Sqlserver - Not associated with a trusted SQL Server connection [ID 333775.1]
    How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit to Connect to Non-Oracle Databases Post Install [ID 466225.1]
    Select From Non-Oracle Database Using Dg4odbc Returns Ora-28500 From Sqlplus [ID 1254254.1]
    ORA-28500: Login failed via Transparent Gateway when Connect to SQL Server 2000 on WinXP [ID 1165743.1]
    Error Ora-28500 and Sqlstate I Issuing Selects From a Unicode Oracle RDBMS With Dg4odbc To Mysql or SQL*Server [ID 756186.1]
    Thanks,
    Hussein

  • ORA-28500: connection from ORACLE to a non-Oracle system returned this mesg

    Hi,
    I am able to access ACCESS DB from local system having Oracle DB in the same machine using Oracle Heterogenious services.
    Now when I try to access from remote system, I am getting error message as mentioned.
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][Microsoft][ODBC Microsoft Access Driver]
    '(unknown)' is not a valid path.  Make sure that the path name is spelled
    correctly and that you are connected to the server on which the file resides.
    (SQL State: 00000; SQL Code: -1023)

    That's a specific problem with mapped drives, on metalink:
    ORA-28500: not a valid path via hsodbc over a mapped drive
    Doc ID: Note:266187.1
    Werner

  • ORA-01436 CONNECT by loop in user data Oracle HRMS - How do I prevent this?

    I am getting from time to time an error when users are performing tasks in Oracle HRMS that comes back as ORA-01436 CONNECT by loop in user data.
    This issue is caused when there exists a loop in the Supervisor hierarchy.
    For ex: Emp A reports to Emp B and Emp B reports to A
    OR
    Emp A reports to B and B reports to C and C reports to A.
    It can be any of the above or if there are more approvers then there can be a
    bigger loop.
    This is described on Oracle Metalink Doc ID: 275819.1
    This happens to us regularly; someone puts the manager of an employee as the subordinate of the 1st employee - of course this is not logically possible!
    My question is how do i prevent this in the HRMS Manager tool or the Self Service functionality - I want the user to be informed and prevented from creating these infinite loops in the first place ...any ideas?

    Hi,
    We suffer same the kind of issue but as you might have seen there is no immediate answer from Oracle about implementing a check within the Application forms/SS. In the end we wrote a report to hunt to locate loops in employee supervisor chain and report any circular references it finds. This report is scheduled to run every day and the customer reviews the output and then fixes the loops. Not ideal but we've not had chance to investigate a custom trigger say on the per_all_assignments_f table.

  • [S1000][unixODBC][Oracle][ODBC][Ora]ORA-03134: Connections to this server version are no longer supported

    Hello,
    I'm using  unixODBC with ODBC Oracle client 11 (Debian 7) to connect to Oracle database version 9.2.0.6 (Solaris 10),  but show me this message:
    [S1000][unixODBC][Oracle][ODBC][Ora]ORA-03134: Connections to this server version are no longer supported.
    Note: I can connect to Oracle database version 10+.
    Please can you help me.
    Thank you

    Are you positive you're using version 11 Oracle client and 9206 database?  That combination should work, and Ive never seen that error message occur for anything but the expected reason.  
    If you have MOS access you can check the client/database compatibility with the following note:
    Client / Server / Interoperability Support Matrix For Different Oracle Versions (Doc ID 207303.1)
    Hope it helps,
    Greg

  • ORA-03134: Connections to this server version are no longer supported from 11.2 to 9.2.0.8 database

    Hi,
    I am using the ODP.NET 11.2 (Oracle.DataAccess.dll 4.112.3.0) for .NET 4.5 (in Visual Studio 2012). I can connect to 11g Databases but when trying to connect to 9.2.0.8 database this error is thrown:
    ORA-03134: Connections to this server version are no longer supported
    I don't understand why, as I could connect using Toad, but not from a .NET application.
    By the way, I'm using Windows 7 64bits.
    Any idea?
    Thanks in advance,
    Dave

    Thanks Mark for looking into this.
    The GAC contains the following assemblies:
    Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.17929
    Copyright (c) Microsoft Corporation.  All rights reserved.
    The Global Assembly Cache contains the following assemblies:
      Oracle.DataAccess, Version=2.102.4.0, Culture=neutral, PublicKeyToken=89b483f4
    29c47342, processorArchitecture=AMD64
      Oracle.DataAccess, Version=2.112.3.0, Culture=neutral, PublicKeyToken=89b483f4
    29c47342, processorArchitecture=AMD64
      Oracle.DataAccess, Version=2.112.3.0, Culture=neutral, PublicKeyToken=89b483f4
    29c47342, processorArchitecture=x86
      Oracle.DataAccess, Version=2.121.1.0, Culture=neutral, PublicKeyToken=89b483f4
    29c47342, processorArchitecture=x86
      Oracle.DataAccess, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89b483f4
    29c47342, processorArchitecture=AMD64
      Oracle.DataAccess, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89b483f4
    29c47342, processorArchitecture=x86
      Oracle.DataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f4
    29c47342, processorArchitecture=x86
    Number of items = 7
    As you can see, I have been trying with different versions but nothing. Anyway, as far as I know if the referenced library in VStudio is marked as CopyToLocal, it shouldn't take any library from GAC.
    And SQL query is returning this info:
    PRODUCT
    VERSION
    NLSRTL
    9.2.0.8.0
    Oracle9i Enterprise Edition
    9.2.0.8.0
    PL/SQL
    9.2.0.8.0
    PRODUCT
    VERSION
    TNS for HPUX:
    9.2.0.8.0
    Thanks.

  • Error cannot use device the connected USB device requires too much power this error appeared  when I added my camera

    Error appeared when I connected my camera to iPad I used a camera connection device error  cannot use device t he connected USB device requires too much power
    Thanking you
    Wendy Banks

    Some cameras are designed to use the power suppled via USB when they're plugged into another device, usually a PC or laptop. The iPad does not supply sufficient power for a camera. The iPad Camera kit allows for either a camera to be plugged in only for the transfer of photos, not as a power sourse, or the removal of the SD Card from a camera so it can transfer photos as an alternative.

  • How to bypass "ORA-01436: CONNECT BY loop in user data" ?

    Hello everybody
    I have a problem with a ORA-01436 firing too early on a query I'm trying to execute.
    There is a table of strings. Each string on that table should be composed of a single character or it must be obtained by the concatenation of a single character on another string in the table.
    Sometime this requirement is missing. I can't do anything to drive the table to be in that way. So I would like to execute a query witch corrects that table by adding the missing strings in it. When there are some strings that can't be obtained by appending a single char from another string the the query should list also the missing chain of strings to make that string valid in the table.
    An example.
    create table strings (
         val varchar2(10) not null
    insert into strings (val) values ('A')
    insert into strings (val) values ('ABCDE')
    insert into strings (val) values ('AD')
    insert into strings (val) values ('ADF')
    select *
    from strings
    order by val
    Query finished, retrieving results...
        VAL   
    A         
    ABCDE     
    AD        
    ADF       
    4 row(s) retrievedAs you can see the bold string ABCDE is not valid because it can't be obtained by
    appending a single char to any other string in the table.
    In this case a valid result should also list the chain of strings 'AB', 'ABC' and 'ABCD'.
    To find the strings where a chain of missing strings begins and finishes I use this query.
    Processing ...
    select val,p_val
    from (
         select val,lag(val) over (order by val) as p_val
         from strings
    ) a
    WHERE val not like p_val||'_' and val like p_val||'%' AND p_val IS NOT NULL
    Query finished, retrieving results...
        VAL       P_VAL  
    ABCDE      A         
    1 row(s) retrievedIn this simple case a can list the missing strings with this query.
    Processing ...
    select val,p_val,p_val||SUBSTR(val,LENGTH(p_val)+1,LEVEL) as chain_string,LEVEL
    FROM (
    select val,p_val
    from (
         select val,lag(val) over (order by val) as p_val
         from strings
    ) a
    WHERE val not like p_val||'_' and val like p_val||'%' AND p_val IS NOT NULL
    CONNECT BY LENGTH(val)>LENGTH(p_val)+LEVEL
    Query finished, retrieving results...
        VAL       P_VAL       CHAIN_STRING                      LEVEL                
    ABCDE      A          AB                                                        1
    ABCDE      A          ABC                                                       2
    ABCDE      A          ABCD                                                      3
    3 row(s) retrievedBut when I have more than one string to be validated things change and the hierarchical query is not good any more in this way.
    insert into strings (val) values ('ADFGH')
    Processing ...
    select *
    from strings
    order by val
    Query finished, retrieving results...
        VAL   
    A         
    ABCDE     
    AD        
    ADF       
    ADFGH     
    5 row(s) retrievedBecause I retrieve solutions regarding the one string mixed with all the others
    Processing ...
    select val,p_val,p_val||SUBSTR(val,LENGTH(p_val)+1,LEVEL) as chain_string,LEVEL
    FROM (
    select val,p_val
    from (
         select val,lag(val) over (order by val) as p_val
         from strings
    ) a
    WHERE val not like p_val||'_' and val like p_val||'%' AND p_val IS NOT NULL
    CONNECT BY LENGTH(val)>LENGTH(p_val)+LEVEL
    Query finished, retrieving results...
        VAL       P_VAL       CHAIN_STRING                      LEVEL                
    ABCDE      A          AB                                                        1
    ABCDE      A          ABC                                                       2
    ABCDE      A          ABCD                                                      3
    ADFGH      ADF        ADFG                                                      1
    ABCDE A ABC 2
    ABCDE A ABCD 3
    6 row(s) retrievedTo avoid this I should add a condition to link val to prior val in the connect by clause but here it throws ORA-01436.
    Processing ...
    select val,p_val,p_val||SUBSTR(val,LENGTH(p_val)+1,LEVEL) as chain_string,LEVEL
    FROM (
    select val,p_val
    from (
         select val,lag(val) over (order by val) as p_val
         from strings
    ) a
    WHERE val not like p_val||'_' and val like p_val||'%' AND p_val IS NOT NULL
    CONNECT BY LENGTH(val)>LENGTH(p_val)+LEVEL AND val = PRIOR val
    select val,p_val,p_val||SUBSTR(val,LENGTH(p_val)+1,LEVEL) as chain_string,LEVEL
    ORA-01436: CONNECT BY loop in user dataWhat could I do to bypass that check?
    I know I could query for distinct values on the first query (the one without the condition val = PRIOR val ) but I'd like to know if you had similar problems and how did you solved them in this case.
    Thanks
    Bye Alessandro

    I don't know why but with 10.2.0.4 Oracle now found a way to raise this error again.
    Connected to:                                                                         
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production          
    With the Partitioning, Real Application Clusters, OLAP, Data Mining                   
    and Real Application Testing options                                                  
    SQL> create table strings (                                                        
      2     val varchar2(10) not null                                                     
      3  )                                                                                
      4  /                                                                                
    Table created.                                                                        
    SQL>                                                                               
    SQL> insert into strings (val) values ('A')                                        
      2  /                                                                                
    1 row created.                                                                        
    SQL> insert into strings (val) values ('ABCDE')                                    
      2  /                                                                                
    1 row created.                                                                        
    SQL> insert into strings (val) values ('AD')                                       
      2  /                                                                                
    1 row created.                                                                        
    SQL> insert into strings (val) values ('ADF')                                      
      2  /                                                                                
    1 row created.                                                                        
    SQL>                                                                               
    SQL> select val,p_val,p_val||SUBSTR(val,LENGTH(p_val)+1,LEVEL) as chain_string,LEVEL
      2  FROM (select val,p_val                                                           
      3        from (                                                                     
      4              select val,lag(val) over (order by val) as p_val                     
      5              from strings) a                                                      
      6        WHERE val not like p_val||'_' and val like p_val||'%' AND p_val IS NOT NULL)
      7  CONNECT BY LENGTH(val)>LENGTH(p_val)+LEVEL  AND val = PRIOR val                  
      8  and prior dbms_random.value is not null                                          
      9  /                                                                                
    ERROR:                                                                                
    ORA-01436: CONNECT BY loop in user data                                               
    no rows selected                                                                      
    SQL>Had someone of you found a way to do it again.
    Thanks
    Bye Alessandro

  • Error Ora-3134, connection to Oracle 9.2.0.6

    Hi,
    I want to create connection from Windows 2008 server 64 bit to Oracle database version 9.2.0.6.
    I have installed "Oracle 11g Release 2 ODAC 11.2.0.1.2 with Oracle Developer Tools for Visual Studio" where in installation instruction I have found following requirement:
    "Access to an Oracle Database Server (Oracle 9i Release 2 or later)".
    After that I create simple .net application using Oracle.DataAccess.dll version 2.112.1.2. But while connecting I have error Ora-3134 Connections to this server version are no longer supported.. Do you know why I have this error?
    Thanks for any help
    Mark

    Hi,
    You should not get that error with 11.2 client and ODP and a 9.2.0.6.0 database as they are supported. The 9.2 end must be 9.2.0.4.0 or higher which you seem to have.
    Do you get the same error running SQL PLUS from the same 11.2.0.1.2 home and connecting to the same database?
    Are you verified by some other means like client side SQL NET tracing that you are indeed connection to the a 9.2.0.6.0 DB and not some lesser version?
    HTH
    Jenny B.

  • ORA-28500: connection from ORACLE to a non-Oracle system

    Hi, I need to connect to a OWB mysql database, but when making a query in sql plus sends me this error.
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][H006] The init parameter
    <HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
    ORA-02063: preceding 2 lines from MYSQLINK
    listener.ora
    # listener.ora Network Configuration File: C:\oraclebi\db\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
         (SID_NAME = PLSExtProc)
         (ORACLE_HOME = C:\oraclebi\db)
         (PROGRAM = extproc)
         (SID_DESC =
         (SID_NAME = MYSQL)
         (ORACLE_HOME = C:\oraclebi\db)
         (PROGRAM = hsodbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = bi.oratechla.com)(PORT = 1521))
    tnsnames.ora
    # tnsnames.ora Network Configuration File: C:\oraclebi\db\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    BISE1DB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bi.oratechla.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = bise1db)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    OTCL_MORDOR =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.31.210)(PORT = 1620))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TEST)
    MYSQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bi.oratechla.com)(PORT = 1521))
    (CONNECT_DATA =
    (SID = MYSQL))
    (HS = OK)
    inithMYSQL.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = MYSQL
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    system dsn --> MYSQL
    databaselink
    CREATE PUBLIC DATABASE LINK mysqlink CONNECT TO "oracle" IDENTIFIED BY "oracle" using 'ejemplo';
    Database link created.
    select * from empleado@mysqlink;
    ERROR at line 1:
    ORA-12154: TNS:could not resolve the connect identifier specified
    or
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][H006] The init parameter
    <HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
    ORA-02063: preceding 2 lines from MYSQLINK
    tnsping
    C:\Documents and Settings\Administrator>tnsping MYSQL
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-AUG-2
    010 06:31:57
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclebi\db\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = bi.orate
    chla.com)(PORT = 1521)) (CONNECT_DATA = (SID = MYSQL)) (HS = OK))
    OK (30 msec)

    Use the setup failing with
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][H006] The init parameter
    <HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
    ORA-02063: preceding 2 lines from MYSQLINK
    There is a typo in the name of you gateway init file. You posted the content of inithMYSQL.ora but the naming is init<SID>.ora which is in your case initMYSQL.ora.
    In addition please keep in mind HSODBC has been desupported since 2008 and when starting a new configuration you should use the follow up product dg4odbc (Database Gateway for ODBC) V11.

Maybe you are looking for