[Solved] ORA-02063: preceding line from [databaselink name]

Friends
When I run below query, it works and returns records.
===>>
SELECT
R1.TRANSACTION_ID,
R1.CREATION_DATE,
R1.TRANSACTION_TYPE,
R1.QUANTITY,
R1.PRIMARY_UNIT_OF_MEASURE UOM,
R1.CURRENCY_CODE,
R1.PO_UNIT_PRICE,
R1.PO_HEADER_ID,
R1.PO_LINE_ID,
P1.CATEGORY_ID,
CAT.SEGMENT1, CAT.SEGMENT2, CAT.SEGMENT3
FROM
RCV_TRANSACTIONS@APPS_TST R1,
PO_LINES_ALL@APPS_TST P1,
MTL_CATEGORIES_4_ATS@APPS_TST CAT
WHERE
R1.PO_LINE_ID = P1.PO_LINE_ID AND
P1.CATEGORY_ID = CAT.CATEGORY_ID AND
R1.TRANSACTION_TYPE = 'ACCEPT' AND
TO_DATE(TO_CHAR(R1.CREATION_DATE,'DD/MM/YYYY'),'DD/MM/YYYY') = TO_DATE(TO_CHAR(SYSDATE-92,'DD/MM/YYYY'),'DD/MM/YYYY') AND
EXISTS (SELECT * FROM MTL_CATEGORIES_4_ATS@APPS_TST WHERE P1.CATEGORY_ID = CAT.CATEGORY_ID)
ORDER BY
R1.LAST_UPDATE_DATE DESC;
<<===
I have created a view based on this query.
===>>
CREATE OR REPLACE VIEW PO_RECEIVINGS_V
AS
SELECT ...
<<===
View was created successfully. When I perform a select on the view, it returns this message.
===>>
SQL> SELECT * FROM PO_RECEIVINGS_V;
SELECT * FROM PO_RECEIVINGS_V
ERROR at line 1:
ORA-00907: missing right parenthesis
ORA-02063: preceding line from APPS_TST
<<===
I have created this view on a 10G database. The tables what I'm using in the view, are from a 9i database.

Consider to create the view (view1) on the 9i database.
Then create a second view on the 10g database
Select * from v1@dbLink
Also as it was already mentioned: avoid not needed data conversions.
TO_DATE(TO_CHAR(SYSDATE-92,'DD/MM/YYYY'),'DD/MM/YYYY')this is identical to trunc(sysdate-92)So you better rewrite the line R.K. mentioned to:
R1.CREATION_DATE >= trunc(sysdate-92)
AND R1.CREATION_DATE < trunc(sysdate-92)+1

Similar Messages

  • ORA-02063: preceding line from view from dblink

    Hi,
    Iam creating a standared report.using a query from a view.
    view is built on a select query which retrives data from a view through a dblink. view exists in another schema.
    report error:
    ORA-01858: a non-numeric character was found where a numeric was expected
    ORA-02063: preceding line from <<DBLink Name>>
    when i run the query from sql workshop it executed perfectly.
    any one has any suggestions??
    Thanks

    Always include the following information when asking a question:
    <ul>
    <li>Full APEX version</li>
    <li>Full DB/version/edition/host OS</li>
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)</li>
    <li>Browser(s) and version(s) used</li>
    <li>Theme</li>
    <li>Template(s)</li>
    <li>Region/item type(s)</li>
    </ul>

  • 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-02063: preceding line from HSLINK

    When i try to connect to ms sql from oracle (in solaries 11.1.0.7) i get the error connection from ORACLE to a non-Oracle system returned this message: preceding line from HSLINK
    SQL> SELECT * FROM Banks@hslink;
    SELECT * FROM Banks@hslink
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from HSLINK
    TNSPING and lsnrctl status are okay

    how can i compile the FreeTDS as 64bit in solaries 10 64bit?
    i have the odbc manager as 64bit from package install.
    bash-3.00$ file /usr/local/lib/libodbc.so
    /usr/local/lib/libodbc.so: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped
    but on freeTDS 0.91 version from source i try to compile but get a make error:
    root@adnerpapp # export CPPFLAGS="-DSIZEOF_LONG_INT=8"
    CPPFLAGS=-DSIZEOF_LONG_INT=8: is not an identifier
    root@adnerpapp # export CFLAGS="-DBUILD_REAL_64_BIT_MODE"
    CFLAGS=-DBUILD_REAL_64_BIT_MODE: is not an identifier
    root@adnerpapp # CPPFLAGS="-DSIZEOF_LONG_INT=8"
    root@adnerpapp # CFLAGS="-DBUILD_REAL_64_BIT_MODE"
    root@adnerpapp # export CFLAGS
    root@adnerpapp # export CPPFLAGS
    root@adnerpapp # mkdir /usr/local/freetds
    root@adnerpapp # ./configure prefix=/usr/local/freetds with-tdsver=8.0 --with-unixodbc=/usr/local/
    on make i get the following error:
    Making all in odbc
    Making all in unittests
    source='odbc.c' object='odbc.lo' libtool=yes \
    DEPDIR=.deps depmode=none /bin/bash ../../depcomp \
    /bin/bash ../../libtool tag=CC    mode=compile cc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include -DSIZEOF_LONG_INT=8 -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_REENTRANT -DBUILD_REAL_64_BIT_MODE -c -o odbc.lo odbc.c
    libtool: compile: cc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include -DSIZEOF_LONG_INT=8 -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_REENTRANT -DBUILD_REAL_64_BIT_MODE -c odbc.c -KPIC -DPIC -o .libs/odbc.o
    "odbc.c", line 958: warning: statement not reached
    libtool: compile: cc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include -DSIZEOF_LONG_INT=8 -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_REENTRANT -DBUILD_REAL_64_BIT_MODE -c odbc.c -o odbc.o >/dev/null 2>&1
    source='connectparams.c' object='connectparams.lo' libtool=yes \
    DEPDIR=.deps depmode=none /bin/bash ../../depcomp \
    /bin/bash ../../libtool tag=CC    mode=compile cc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include -DSIZEOF_LONG_INT=8 -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_REENTRANT -DBUILD_REAL_64_BIT_MODE -c -o connectparams.lo connectparams.c
    libtool: compile: cc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include -DSIZEOF_LONG_INT=8 -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_REENTRANT -DBUILD_REAL_64_BIT_MODE -c connectparams.c -KPIC -DPIC -o .libs/connectparams.o
    "connectparams.c", line 101: identifier redeclared: SQLGetPrivateProfileString
    current : static function(pointer to const char, pointer to const char, pointer to const char, pointer to char, int, pointer to const char) returning int
    previous: function(pointer to const char, pointer to const char, pointer to const char, pointer to char, int, pointer to const char) returning int : "/usr/local/include/odbcinst.h", line 205
    cc: acomp failed for connectparams.c
    *** Error code 1
    make: Fatal error: Command failed for target `connectparams.lo'
    Current working directory /freetds-0.91/src/odbc
    *** Error code 1
    The following command caused the error:
    fail= failcom='exit 1'; \
    for f in x $MAKEFLAGS; do \
    case $f in \
    *=* | --[!k]*);; \
    k) failcom='fail=yes';; \
    esac; \
    done; \
    dot_seen=no; \
    target=`echo all-recursive | sed s/-recursive//`; \
    list='unittests'; for subdir in $list; do \
    echo "Making $target in $subdir"; \
    if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
    else \
    local_target="$target"; \
    fi; \
    (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make $local_target) \
    || eval $failcom; \
    done; \
    if test "$dot_seen" = "no"; then \
    make "$target-am" || exit 1; \
    fi; test -z "$fail"
    make: Fatal error: Command failed for target `all-recursive'
    Current working directory /freetds-0.91/src/odbc
    *** Error code 1
    The following command caused the error:
    fail= failcom='exit 1'; \
    for f in x $MAKEFLAGS; do \
    case $f in \
    *=* | --[!k]*);; \
    k) failcom='fail=yes';; \
    esac; \
    done; \
    dot_seen=no; \
    target=`echo all-recursive | sed s/-recursive//`; \
    list='replacements tds ctlib dblib odbc apps server pool'; for subdir in $list; do \
    echo "Making $target in $subdir"; \
    if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
    else \
    local_target="$target"; \
    fi; \
    (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make $local_target) \
    || eval $failcom; \
    done; \
    if test "$dot_seen" = "no"; then \
    make "$target-am" || exit 1; \
    fi; test -z "$fail"
    make: Fatal error: Command failed for target `all-recursive'
    Current working directory /freetds-0.91/src
    *** Error code 1
    The following command caused the error:
    fail= failcom='exit 1'; \
    for f in x $MAKEFLAGS; do \
    case $f in \
    *=* | --[!k]*);; \
    k) failcom='fail=yes';; \
    esac; \
    done; \
    dot_seen=no; \
    target=`echo all-recursive | sed s/-recursive//`; \
    list='include src doc samples win32 vms'; for subdir in $list; do \
    echo "Making $target in $subdir"; \
    if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
    else \
    local_target="$target"; \
    fi; \
    (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make $local_target) \
    || eval $failcom; \
    done; \
    if test "$dot_seen" = "no"; then \
    make "$target-am" || exit 1; \
    fi; test -z "$fail"
    make: Fatal error: Command failed for target `all-recursive'
    root@adnerpapp #

  • Dblink erro ORA-02063: preceding line from ERP_PRD_LINK

    HI all,
    i have created a db link from PROD AND TEST database ( 10g) which are on different solaris sparc server.
    db link deatils as follows.
    OWNER
    DB_LINK
    USERNAME
    HOST
    CREATED
    INTUSR
    ERP_PRD_LINK
    APPS
    prod
    04-AUG-09
    but when i try to access data from test database using dblink i get error as follows...
    ORA-02063: preceding line from ERP_PRD_LINK
    Can You please help regarding same ...
    Thanks,
    Rajesh Rathod.

    HI..
    what is the 4 digit oracle version you are using.
    From metalink
    ORA-02063: "preceding %s%s from %s%s" Cause: an Oracle error was received from a remote database link.
    Action: refer to the preceding error message(s)
    >
    So let us know all the ORA errors.
    Anand

  • ORA-01810: format code appears twice ORA-02063: preceding line from PULSARL

    Hi ,
    I am running this query
    select distinct to_char(a.USAGEDATE, 'dd/mm/yyyy hh:mm'),round((a.avgifoutoctets * a.numberofrows / (a.avgdeltatime * a.numberofrows) * 8 / 1000 ), 2)as avginoctetrate from vware.vhourlyrtgusageextract a ,vware.rtginterface b where a.id = b.ID and a.id = 125555 and a.USAGEDATE >= TO_CHAR(TO_DATE('2011-05-22 11:40:47', 'yyyy-MM-dd HH:mm:ss')) and a.USAGEDATE < TO_CHAR(TO_DATE('2011-05-29 11:40:47', 'yyyy-MM-dd HH:mm:ss')) and a.IFDESCRIPTION = 'Serial1/0' order by 1
    I am getting this exception
    ORA-01810: format code appears twice ORA-02063: preceding line from PULSARL
    Could anybody please tell me what is the issue ??

    Hi,
    The issue is:
    SQL> select TO_DATE ( '2011-05-29 11:40:47', 'yyyy-MM-dd HH:mm:ss') from dual;
    select TO_DATE ( '2011-05-29 11:40:47', 'yyyy-MM-dd HH:mm:ss') from dual
    ERROR at line 1:
    ORA-01810: format code appears twiceYou are using MM twice. MM means two digit months. You probably mean MI for minutes for the last one:
    SQL> select TO_DATE ( '2011-05-29 11:40:47', 'yyyy-MM-dd HH:mi:ss') from dual;
    TO_DATE(
    11-05-29
    SQL>Note that you have same mistake in your to_char as well, only this does not fail.
    The ORA-02063 just tells you that the error came from a different server, PULSARL, which means you must be selecting across a database link.
    Btw, what does this mean:
             AND a.usagedate >=
                   TO_CHAR (TO_DATE ( '2011-05-22 11:40:47', 'yyyy-MM-dd HH:mm:ss'))Why are you converting a string into DATE and then back into string? - What data type is usagedate?
    Regards
    Peter

  • Regarding ORA 02063 : preceding line from dblink

    Hi Team,
    I am facing one issue, while using the DBlink for fetching data from different Database in PLSql.
    **********Query***********
    select a.A, b.B
    from ABC a,
    ABC@ XYZ b
    Please suggest and help me in this regards.
    Best Regards
    Manpreet Singh

    810148 wrote:
    Hi Team,
    I am facing one issue, while using the DBlink for fetching data from different Database in PLSql.
    **********Query***********
    select a.A, b.B
    from ABC a,
    ABC@ XYZ b
    Please suggest and help me in this regards.
    Best Regards
    Manpreet Singh
    bcm@bcm-laptop:~$ oerr ora 2063
    02063, 00000, "preceding %s%s from %s%s"
    // *Cause: an Oracle error was received from a remote database link.
    // *Action: refer to the preceding error message(s)You have a mystery & we have no clues.
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • ORA-19706: invalid SCN ORA-02063: preceding line from

    I have created a dblink and it got created fine.however whenever there is a use of this dblink we keep getting this error.
    I checked online and found that "alter system set "_external_scn_rejection_threshold_hours" = 24 scope=spfile;" followed by db restart can solve the issue however this is a production area and i need to be sure before doing that...
    So i created the same dblink in another environment and saw that it gives a different error -"ORA-12170: TNS:Connect timeout occurred"
    Please suggest...

    Hi,
    Have you followed the instructions in Doc ID 1503937.1?
    If yes, then this parameter should be set.
    For the other environment, check the db link again and the target db listener configuration.
    I recommend applying the latest PSU for your release.
    BTW, what is your db version and platform?
    Regards,
    Bashar

  • ORA-02063 : PRECEDING LINE FROM MSACCESS

    I AM TRYING TO CONNECT MSACCESS DATABASE THROUGH ORACLE BUT SUBJECT ERROR OCCURED, WHAT COULD BE THE REASON ?
    I HAVE ALREADY CREATED SYSTEM DSN OF ACCESS DATABASE AND NAME IT : MSACCESS
    INITMSACCESS.ORA
    ================
    HS_FDS_CONNECT_INFO = MSACCESS
    HS_FDS_TRACE_LEVEL = ON
    HS_FDS_TRACE_FILE_NAME = MSACCESS.TRC
    LISTENER.ORA
    ============
    LISTENER =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=IBM)(PORT=1521))
    (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=MSACCESS)
    (ORACLE_HOME=C:\ORACLE\ORA81)
    (PROGRAM=hsodbc)
    CONNECT_TIMEOUT_LISTENER = 0
    TNSNAMES.ORA
    ============
    MSACCESS = (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=IBM)(PORT=1521))
    (CONNECT_DATA=(SID=MSACCESS))
    (HS=OK)
    ANY IDEA PLEASE?
    BEST REGARDS,
    LUQMAN

    What is the exact error that you are getting?

  • 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-02063: preceding line

    Dear all,
    DB : 10.2.0.4.
    Solaris 5.10
    When am trying to run a heavy query which connects to the remote db using db link called erp2uat. am getting the below error:
    SQL> @quer4.sql
    where trunc(upddate) between '01-JAN-2009' and '30-APR-2009' and subno like '55%'
    ERROR at line 12:
    ORA-01555: snapshot too old: rollback segment number with name "" too small
    ORA-02063: preceding line from erp2uat
    is the error from the remote db ?
    am trying to create a table in the local db using a select command which fetches data from the remote database..
    SEGMENT_NAME      INITIAL_EXTENT     TABLESPACE_NAME     MAX_EXTENTS
    _SYSSMU1$     131072     UNDOTBS1     32765
    _SYSSMU2$     131072     UNDOTBS1     32765
    _SYSSMU3$     131072     UNDOTBS1     32765
    _SYSSMU4$     131072     UNDOTBS1     32765
    _SYSSMU5$     131072     UNDOTBS1     32765
    _SYSSMU6$     131072     UNDOTBS1     32765
    _SYSSMU7$     131072     UNDOTBS1     32765
    _SYSSMU8$     131072     UNDOTBS1     32765
    _SYSSMU9$     131072     UNDOTBS1     32765
    _SYSSMU10$     131072     UNDOTBS1     32765

    KaiS wrote:
    Thanks
    But still am getting the same error
    WHERE UPDDATE >= TO_DATE('01-JAN-2009', 'DD-MON-YYYY') AND UPDDATE < TO_DATE('30-APR-2009', 'DD-MON-YYYY') AND SUBNO LIKE '55%'
    ERROR at line 12:
    ORA-01555: snapshot too old: rollback segment number with name "" too small
    ORA-02063: preceding line from TABS2CALLS
    KaiHemant's response possibly answered your question.
    Do you receive the above error message immediately when the query starts? How long does it take for the query to execute? Is it possible that a session connected to the remote database made a change in one of the tables referenced by your query, and then did not commit? For instance, a long running batch job is running in the remote database, and a commit is performed only at the end of the batch job? Or, a user started making changes, and walked away from their desk for 30 minutes before the changes were committed?
    I believe that when a query is sent to a remote database, a transaction is started in the remote database which is only ended when a commit or rollback is performed in your session. Is it possible that your script is executing several queries against the remote data source, and the script is having problems after several SQL statements are sent? If the error happens after sending several queries, is it possible to add a ROLLBACK or COMMIT between the queries?
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/ds_appdev.htm
    "The connections and sessions established to remote databases persist for the duration of the local user's session, unless the application or user explicitly terminates them. Note that when you issue a SELECT statement across a database link, a transaction lock is placed on the undo segments. To rerelease the segment, you must issue a COMMIT or ROLLBACK statement."
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • ORA-00028 combined with ORA-02063 - preceding line

    Hello,
    We had undergone an SAP release upgrade form SAP 4.7 to SAP 6.0.
    From time to time, some of the customer legacy programs, dumps while trying to enter parameters in the Oracle database. They are not crashing every time but latley every night. After we restart then, they are working ok without a dump.
    We are suspectin an Database peak, that is killing our session.
    If you encounter this type or error before, can you please advise on how to proceed further. To singe out what parameter in Oracle or SAP may need updating ?
    The error is like this:
      Fehlertext der Datenbank...: "ORA-00028: your session has been                  
       killed#ORA-02063: preceding line from VVS"                                     
      Fehlercode der Datenbank...: 28                                                 
      Auslösende SQL-Anweisung...: "update v_sap_sbdc@vvs set sap_uebernahme_dat =    
       trunc ( sysdate ) where vvs_batch_nr = ? "                                     
      Interne Aufrufcodierung....: "[DBDS/NEW DSQL]"           
    Thanks and regards,
    Adrian Irimes

    Hello,
    Thx for following up.
    The ABAP code is :
          EXEC sql.
            update v_sap_sbdc@vvs
            set    sap_uebernahme_dat = trunc(sysdate)
            where  vvs_batch_nr       = :zbtchnr
          ENDEXEC.
    We are suspecting that some think is happening in the database, also if we look to the record in st22, coudl it be also 2062 to blame ?
    FC DBIF_DSQL2_SQL_ERROR                    
    AP ZZVVS                                   
    AI ZZVVS                                   
    AL 2756                                    
    TD 4DBA75995C743122E1000000A0321162        
    XC CX_SY_NATIVE_SQL_ERROR                  
    CM //bas/701_REL/src/krn/runt/abexsql.c#1  
    CF DsqlErrorHandler                        
    CL 2062                                    
    RT 20110430015055                          
    SR 16128                                   
    SP 24576                                   
    SV 0                                       
    SA 17751264                                
    MU 14442872                                
    MF 170688                                  
    SX 18446697011922745759          
    Thx and regards,
    Adrian Irimes

  • Integra - ORA-02063: preceding line

    Hi All,
    We have Oracle Integra ( Applimation ) 5.1.3 and E Business suite 11.5.10.2 with Database version 10.2.0.3
    In one of the snap shot definition of applimation, we are getting the below error message
    tick_f_0000000008024634(A.SET_OF_BOOKS_ID) = 'MCE'
    Error: Populate Snapshot Selects routine failed. ORA-00942: table or view does not exist
    ORA-02063: preceding line from <SID>AMAGENT_LINK
    <SID>AMAGENT_LINK is the link between Applimation and the E Business suite.
    Is this error related to any issue in the E Business suite database ?
    Few notes ask to increase DISTRIBUTED_TRANSACTIONS parameter in init file, but we have 10.2.0.3 and DISTRIBUTED_TRANSACTIONS parameter is a obsolete parameter above 9i database.
    Please advice
    Thanks & Regards,
    Rakesh

    Rakesh,
    Please review the following documents and see if it helps.
    Note: 562035.1 - Snaphot occurrence fails with ORA-00942 error
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=562035.1
    Note: 733132.1 - LOV ERRORS WHILE CREATING SNAPSHOT DEFINITION WITH NON STANDARD SCHEMAS
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=733132.1
    If the above does not work and as changing the initialization parameter is not possible, then I would suggest you log a SR.
    Regards,
    Hussein

  • How to resolve errors - ORA-01033: ORACLE, or closed, or initialized ,ORA-02063: Previous line from D1558A_IFRSQRY

    Hi Expert,
        Please tell me how to resolve errors - ORA-01033: ORACLE, or closed, or initialized ,ORA-02063: Previous line from D1558A_IFRSQRY
    Thanks and Regards

    Google is obviously broken for you: so I've posted what you need to put into your browser.
    https://www.google.co.uk/search?q=ORA-01033

  • ORA-02063: preceding line error while using dblink

    CREATE OR REPLACE PROCEDURE TEST AS
    BEGIN
    DECLARE
    v_circle VARCHAR(10);
    CURSOR c1 IS SELECT file_number,SUBSTR(file_name,INSTR(file_name,'.',1,2)+1,LENGTH(file_name)) AS ftm_id FROM TABLE1 WHERE trim(a.start_TIME) = trim(SYSDATE-1);
    BEGIN
    FOR r1 IN c1 LOOP
    BEGIN
    dbms_output.put_line(r1.file_number);
    SELECT CIRCLE INTO v_circle FROM METHODLOG@ictprd_to_amdica a,METHODINFO_INTEC_DASHBORD@ictprd_to_amdica b
    WHERE a.METHOD=b.method_name AND FTMID=r1.ftm_id;
    UPDATE TABLE1 SET CIRCLE=v_circle WHERE FILE_number=r1.file_number;
    COMMIT;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    END;
    END LOOP;
    END;
    END;

    When posting code, use the \ tag at the start and at the end of the code being copy and and pasted. This formats the code into a readable format for forum members to view..
    Also, it is a bad idea to commit inside a loop. Each commits does "+work"+ and user resources. If you loop iterates a 1000 times, it means doing a "1000 units of work" plus "using a 1000 units of resources".
    It is much faster, and use less resources, when you only commit once at the end of the loop.
    You also need to consider what happens when doing the 501st row, the loop fails. You now have 500 updated rows and 500 rows that have not been updated. Only.. which is which? It makes far better sense to update all 1000 rows and succeed, or not to update any rows (using a rollback) when any single row update fails.
    Finally, you should use SQL to do as much of the processing for you. It is slow and expensive using a SQL to ship data from the SQL engine into the PL engine, and then ship that very same data back to the SQL engine to run another SQL statement. Stay within the SQL engine.
    You could rewrite this entire block of code as a single SQL statement.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for