ORA-12805, ORA-02063

hi
I got these errors when i'm executing an insert transaction, i'm using Oracle9i, WinXPSP2.
the query is:
SQL> INSERT INTO
2 "TEMP_PRODUCTO2"
3 ("ARINDA_NO_CIA",
4 "ARINDA_CLASE",
5 "ARINDA_CATEGORIA",
6 "ARINDA_NO_ARTI",
7 "ARINDA_DESCRIPCION",
8 "ARINDA_UNIDAD",
9 "ARINDA_PESO",
10 "ARINDA_TIEMPO_REP",
11 "ARINDA_CODIGO",
12 "ARINDA_TRANSITO",
13 "ARINDA_UPC",
14 "ARINDA_MARCA",
15 "ARINDA_GRUPO",
16 "ARINDA_MAXIMO",
17 "ARINDA_MINIMO",
18 "ARINDA_REORDEN",
19 "ARINDA_MONEDA_PRECIOBASE",
20 "ARINDA_PRECIOBASE",
21 "ARINDA_PRECIONUEVO",
22 "ARINDA_MONEDA_PRECIONUEV",
23 "ARINDA_IMP_VEN",
24 "ARINDA_FABRICACION",
25 "ARINDA_PROMOAPP",
26 "ARINDA_DISC_EXC",
27 "ARINDA_CONTTYPE",
28 "ARINDA_IND_LOTE",
29 "ARINDA_IND_ACTIVO",
30 "ARINDA_GRACIA_VENCER",
31 "ARINDA_COSTO_NUEVO",
32 "ARINDA_COSTO_ESTANDAR",
33 "ARINDA_APLICA_IMPUESTO",
34 "ARINDA_PAIS_FABRICA",
35 "ARINDA_PROCEDENCIA",
36 "ARINDA_UNIDAD_COMPRA",
37 "ARINDA_RELACION_UNIDADES",
38 "ARINDA_DESC_MARCA",
39 "ARINDA_FEC_ULT_COMPRA",
40 "ARINDA_FEC_ULT_SALIDA",
41 "ARINDA_NOMBRE_LARGO",
42 "ARINDA_FECHA_REG",
43 "ARINDA_NO_ARTI_NUEVO",
44 "ARINDA_UNIDAD_PESO",
45 "ARINDA_IND_CONTROLADO",
46 "ARINDA_IND_COM_POS",
47 "ARINDA_TIPO_ABC",
48 "ARINDA_IND_LISTAS",
49 "ARINDA_DESCRIPCION1",
50 "ARINDA_CANT_PRESU",
51 "ARINDA_NO_SEGUROS",
52 "ARINDA_CODIGO_GRUPO",
53 "ARINDA_CODIGO_SUBGRUPO",
54 "ARINDA_CODIGO_CATEGORIA",
55 "ARINDA_CODIGO_SUBCATEGOR",
56 "ARINDA_PRINCIPIO_ACTIVO1",
57 "ARINDA_PRINCIPIO_ACTIVO2",
58 "ARINDA_PRINCIPIO_ACTIVO3",
59 "ARINDA_AFECTA_PRECIO",
60 "ARINDA_IND_CANJE",
61 "ARINDA_IND_PUNTOS",
62 "ARINDA_CODIGO_LAB",
63 "ARINDA_CODIGO_CLASE",
64 "ARINDA_OPER",
65 "ARINDA_PASA",
66 "ARINDA_NUEVO",
67 "ARINDA_CONSIGNACION",
68 "ARINDA_CONDICION",
69 "ARINDA_CLASIFICACION",
70 "ARINDA_ESTADO_MERCADO",
71 "ARINCAT_DESCRIPCION",
72 "ARINCAT_NO_ARTI",
73 "ARINCAT_POR_FA",
74 "ARINCAT_POR_L1",
75 "ARINCAT_POR_L2",
76 "ARINCAT_POR_L3",
77 "ARINCAT_POR_L4",
78 "ARINUM_NOM",
79 "GRUPOS_DESCRIPCION",
80 "MARCAS_DESCRIPCION",
81 "CLA_TER_LABORATORIO_DESCRIPCIO",
82 "CLA_TER_CLASE_DESCRIPCION",
83 "CLA_TER_GRUPO_DESCRIPCION_GRUP",
84 "CLA_TER_SUBGRUPO_DESCRIPCION_S",
85 "CLA_TER_SUBGRUPO_CON_GRU_SUB",
86 "CLA_TER_CATEGORIA_DESCRIPCION_",
87 "CLA_TER_CATEGORIA_CON_GR_SUB_C",
88 "CLA_TER_SUBCATEGORIA_DESCRIPCI",
89 "CLA_TER_SUBCATEGORIA_CON_GR_SU",
90 "ARINCA_DESCRIPCION",
91 "ARINCA_CONTROL_ESTAD",
92 "ARINCA_POR_FA",
93 "ARINCA_POR_L1",
94 "ARINCA_POR_L2",
95 "ARINCA_POR_L3",
96 "ARINCA_POR_L4",
97 "ARINCA_PORC_MIN",
98 "ARINCA_PORC_MAX",
99 "ARINCAT_CODIGO",
100 "ARINUM_UNIDAD",
101 "GRUPOS_GRUPO",
102 "MARCAS_CODIGO",
103 "CLA_TER_LABORATORIO_CODIGO_LAB",
104 "CLA_TER_CLASE_CODIGO_CLASE",
105 "CLA_TER_GRUPO_CODIGO_GRUPO",
106 "CLA_TER_SUBGRUPO_CODIGO_SUBGRU",
107 "CLA_TER_CATEGORIA_CODIGO_SUBGR",
108 "CLA_TER_SUBGRUPO_CODIGO_GRUPO",
109 "CLA_TER_CATEGORIA_CODIGO_GRUPO",
110 "CLA_TER_CATEGORIA_CODIGO_CATEG",
111 "CLA_TER_SUBCATEGORIA_CODIGO_GR",
112 "CLA_TER_SUBCATEGORIA_CODIGO_SU",
113 "CLA_TER_SUBCATEGORIA_CODIGO_CA",
114 "CLA_TER_SUBCATEGORIA_CODIGO__1",
115 "ARINCA_CODIGO")
116 (SELECT
117 /*+ DRIVING_SITE("ARFAMC_SOURCE") */
118 "ARINDA_SOURCE"."NO_CIA" "ARINDA_NO_CIA",
119 "ARINDA_SOURCE"."CLASE" "ARINDA_CLASE",
120 "ARINDA_SOURCE"."CATEGORIA" "ARINDA_CATEGORIA",
121 "ARINDA_SOURCE"."NO_ARTI" "ARINDA_NO_ARTI",
122 "ARINDA_SOURCE"."DESCRIPCION" "ARINDA_DESCRIPCION",
123 "ARINDA_SOURCE"."UNIDAD" "ARINDA_UNIDAD",
124 "ARINDA_SOURCE"."PESO" "ARINDA_PESO",
125 "ARINDA_SOURCE"."TIEMPO_REP" "ARINDA_TIEMPO_REP",
126 "ARINDA_SOURCE"."CODIGO" "ARINDA_CODIGO",
127 "ARINDA_SOURCE"."TRANSITO" "ARINDA_TRANSITO",
128 "ARINDA_SOURCE"."UPC" "ARINDA_UPC",
129 "ARINDA_SOURCE"."MARCA" "ARINDA_MARCA",
130 "ARINDA_SOURCE"."GRUPO" "ARINDA_GRUPO",
131 "ARINDA_SOURCE"."MAXIMO" "ARINDA_MAXIMO",
132 "ARINDA_SOURCE"."MINIMO" "ARINDA_MINIMO",
133 "ARINDA_SOURCE"."REORDEN" "ARINDA_REORDEN",
134 "ARINDA_SOURCE"."MONEDA_PRECIOBASE" "ARINDA_MONEDA_PRECIOBASE",
135 "ARINDA_SOURCE"."PRECIOBASE" "ARINDA_PRECIOBASE",
136 "ARINDA_SOURCE"."PRECIONUEVO" "ARINDA_PRECIONUEVO",
137 "ARINDA_SOURCE"."MONEDA_PRECIONUEVO" "ARINDA_MONEDA_PRECIONUEV",
138 "ARINDA_SOURCE"."IMP_VEN" "ARINDA_IMP_VEN",
139 "ARINDA_SOURCE"."FABRICACION" "ARINDA_FABRICACION",
140 "ARINDA_SOURCE"."PROMOAPP" "ARINDA_PROMOAPP",
141 "ARINDA_SOURCE"."DISC_EXC" "ARINDA_DISC_EXC",
142 "ARINDA_SOURCE"."CONTTYPE" "ARINDA_CONTTYPE",
143 "ARINDA_SOURCE"."IND_LOTE" "ARINDA_IND_LOTE",
144 "ARINDA_SOURCE"."IND_ACTIVO" "ARINDA_IND_ACTIVO",
145 "ARINDA_SOURCE"."GRACIA_VENCER" "ARINDA_GRACIA_VENCER",
146 "ARINDA_SOURCE"."COSTO_NUEVO" "ARINDA_COSTO_NUEVO",
147 "ARINDA_SOURCE"."COSTO_ESTANDAR" "ARINDA_COSTO_ESTANDAR",
148 "ARINDA_SOURCE"."APLICA_IMPUESTO" "ARINDA_APLICA_IMPUESTO",
149 "ARINDA_SOURCE"."PAIS_FABRICA" "ARINDA_PAIS_FABRICA",
150 "ARINDA_SOURCE"."PROCEDENCIA" "ARINDA_PROCEDENCIA",
151 "ARINDA_SOURCE"."UNIDAD_COMPRA" "ARINDA_UNIDAD_COMPRA",
152 "ARINDA_SOURCE"."RELACION_UNIDADES" "ARINDA_RELACION_UNIDADES",
153 "ARINDA_SOURCE"."DESC_MARCA" "ARINDA_DESC_MARCA",
154 "ARINDA_SOURCE"."FEC_ULT_COMPRA" "ARINDA_FEC_ULT_COMPRA",
155 "ARINDA_SOURCE"."FEC_ULT_SALIDA" "ARINDA_FEC_ULT_SALIDA",
156 "ARINDA_SOURCE"."NOMBRE_LARGO" "ARINDA_NOMBRE_LARGO",
157 "ARINDA_SOURCE"."FECHA_REG" "ARINDA_FECHA_REG",
158 "ARINDA_SOURCE"."NO_ARTI_NUEVO" "ARINDA_NO_ARTI_NUEVO",
159 "ARINDA_SOURCE"."UNIDAD_PESO" "ARINDA_UNIDAD_PESO",
160 "ARINDA_SOURCE"."IND_CONTROLADO" "ARINDA_IND_CONTROLADO",
161 "ARINDA_SOURCE"."IND_COM_POS" "ARINDA_IND_COM_POS",
162 "ARINDA_SOURCE"."TIPO_ABC" "ARINDA_TIPO_ABC",
163 "ARINDA_SOURCE"."IND_LISTAS" "ARINDA_IND_LISTAS",
164 "ARINDA_SOURCE"."DESCRIPCION1" "ARINDA_DESCRIPCION1",
165 "ARINDA_SOURCE"."CANT_PRESU" "ARINDA_CANT_PRESU",
166 "ARINDA_SOURCE"."NO_SEGUROS" "ARINDA_NO_SEGUROS",
167 "ARINDA_SOURCE"."CODIGO_GRUPO" "ARINDA_CODIGO_GRUPO",
168 "ARINDA_SOURCE"."CODIGO_SUBGRUPO" "ARINDA_CODIGO_SUBGRUPO",
169 "ARINDA_SOURCE"."CODIGO_CATEGORIA" "ARINDA_CODIGO_CATEGORIA",
170 "ARINDA_SOURCE"."CODIGO_SUBCATEGORIA" "ARINDA_CODIGO_SUBCATEGOR",
171 "ARINDA_SOURCE"."PRINCIPIO_ACTIVO1" "ARINDA_PRINCIPIO_ACTIVO1",
172 "ARINDA_SOURCE"."PRINCIPIO_ACTIVO2" "ARINDA_PRINCIPIO_ACTIVO2",
173 "ARINDA_SOURCE"."PRINCIPIO_ACTIVO3" "ARINDA_PRINCIPIO_ACTIVO3",
174 "ARINDA_SOURCE"."AFECTA_PRECIO" "ARINDA_AFECTA_PRECIO",
175 "ARINDA_SOURCE"."IND_CANJE" "ARINDA_IND_CANJE",
176 "ARINDA_SOURCE"."IND_PUNTOS" "ARINDA_IND_PUNTOS",
177 "ARINDA_SOURCE"."CODIGO_LAB" "ARINDA_CODIGO_LAB",
178 "ARINDA_SOURCE"."CODIGO_CLASE" "ARINDA_CODIGO_CLASE",
179 "ARINDA_SOURCE"."OPER" "ARINDA_OPER",
180 "ARINDA_SOURCE"."PASA" "ARINDA_PASA",
181 "ARINDA_SOURCE"."NUEVO" "ARINDA_NUEVO",
182 "ARINDA_SOURCE"."CONSIGNACION" "ARINDA_CONSIGNACION",
183 "ARINDA_SOURCE"."CONDICION" "ARINDA_CONDICION",
184 "ARINDA_SOURCE"."CLASIFICACION" "ARINDA_CLASIFICACION",
185 "ARINDA_SOURCE"."ESTADO_MERCADO" "ARINDA_ESTADO_MERCADO",
186 "ARINCAT_SOURCE"."DESCRIPCION" "ARINCAT_DESCRIPCION",
187 "ARINCAT_SOURCE"."NO_ARTI" "ARINCAT_NO_ARTI",
188 "ARINCAT_SOURCE"."POR_FA" "ARINCAT_POR_FA",
189 "ARINCAT_SOURCE"."POR_L1" "ARINCAT_POR_L1",
190 "ARINCAT_SOURCE"."POR_L2" "ARINCAT_POR_L2",
191 "ARINCAT_SOURCE"."POR_L3" "ARINCAT_POR_L3",
192 "ARINCAT_SOURCE"."POR_L4" "ARINCAT_POR_L4",
193 "ARINUM_SOURCE"."NOM" "ARINUM_NOM",
194 "GRUPOS_SOURCE"."DESCRIPCION" "GRUPOS_DESCRIPCION",
195 "MARCAS_SOURCE"."DESCRIPCION" "MARCAS_DESCRIPCION",
196 "CLA_TER_LABORATORIO_SOURCE"."DESCRIPCION" "CLA_TER_LABORATORIO_DESCRIPCIO",
197 "CLA_TER_CLASE_SOURCE"."DESCRIPCION" "CLA_TER_CLASE_DESCRIPCION",
198 "CLA_TER_GRUPO_SOURCE"."DESCRIPCION_GRUPO" "CLA_TER_GRUPO_DESCRIPCION_GRUP",
199 "CLA_TER_SUBGRUPO_SOURCE"."DESCRIPCION_SUBGRUPO" "CLA_TER_SUBGRUPO_DESCRIPCION_S",
200 "CLA_TER_SUBGRUPO_SOURCE"."CON_GRU_SUB" "CLA_TER_SUBGRUPO_CON_GRU_SUB",
201 "CLA_TER_CATEGORIA_SOURCE"."DESCRIPCION_CATEGORIA" "CLA_TER_CATEGORIA_DESCRIPCION_",
202 "CLA_TER_CATEGORIA_SOURCE"."CON_GR_SUB_CAT" "CLA_TER_CATEGORIA_CON_GR_SUB_C",
203 "CLA_TER_SUBCATEGORIA_SOURCE"."DESCRIPCION_SUBCATEGORIA" "CLA_TER_SUBCATEGORIA_DESCRIPCI",
204 "CLA_TER_SUBCATEGORIA_SOURCE"."CON_GR_SUB_CAT_SUBCAT" "CLA_TER_SUBCATEGORIA_CON_GR_SU",
205 "ARINCA_SOURCE"."DESCRIPCION" "ARINCA_DESCRIPCION",
206 "ARINCA_SOURCE"."CONTROL_ESTAD" "ARINCA_CONTROL_ESTAD",
207 "ARINCA_SOURCE"."POR_FA" "ARINCA_POR_FA",
208 "ARINCA_SOURCE"."POR_L1" "ARINCA_POR_L1",
209 "ARINCA_SOURCE"."POR_L2" "ARINCA_POR_L2",
210 "ARINCA_SOURCE"."POR_L3" "ARINCA_POR_L3",
211 "ARINCA_SOURCE"."POR_L4" "ARINCA_POR_L4",
212 "ARINCA_SOURCE"."PORC_MIN" "ARINCA_PORC_MIN",
213 "ARINCA_SOURCE"."PORC_MAX" "ARINCA_PORC_MAX",
214 "ARINCAT_SOURCE"."CODIGO" "ARINCAT_CODIGO",
215 "ARINUM_SOURCE"."UNIDAD" "ARINUM_UNIDAD",
216 "GRUPOS_SOURCE"."GRUPO" "GRUPOS_GRUPO",
217 "MARCAS_SOURCE"."CODIGO" "MARCAS_CODIGO",
218 "CLA_TER_LABORATORIO_SOURCE"."CODIGO_LAB" "CLA_TER_LABORATORIO_CODIGO_LAB",
219 "CLA_TER_CLASE_SOURCE"."CODIGO_CLASE" "CLA_TER_CLASE_CODIGO_CLASE",
220 "CLA_TER_GRUPO_SOURCE"."CODIGO_GRUPO" "CLA_TER_GRUPO_CODIGO_GRUPO",
221 "CLA_TER_SUBGRUPO_SOURCE"."CODIGO_SUBGRUPO" "CLA_TER_SUBGRUPO_CODIGO_SUBGRU",
222 "CLA_TER_CATEGORIA_SOURCE"."CODIGO_SUBGRUPO" "CLA_TER_CATEGORIA_CODIGO_SUBGR",
223 "CLA_TER_SUBGRUPO_SOURCE"."CODIGO_GRUPO" "CLA_TER_SUBGRUPO_CODIGO_GRUPO",
224 "CLA_TER_CATEGORIA_SOURCE"."CODIGO_GRUPO" "CLA_TER_CATEGORIA_CODIGO_GRUPO",
225 "CLA_TER_CATEGORIA_SOURCE"."CODIGO_CATEGORIA" "CLA_TER_CATEGORIA_CODIGO_CATEG",
226 "CLA_TER_SUBCATEGORIA_SOURCE"."CODIGO_GRUPO" "CLA_TER_SUBCATEGORIA_CODIGO_GR",
227 "CLA_TER_SUBCATEGORIA_SOURCE"."CODIGO_SUBGRUPO" "CLA_TER_SUBCATEGORIA_CODIGO_SU",
228 "CLA_TER_SUBCATEGORIA_SOURCE"."CODIGO_CATEGORIA" "CLA_TER_SUBCATEGORIA_CODIGO_CA",
229 "CLA_TER_SUBCATEGORIA_SOURCE"."CODIGO_SUBCATEGORIA" "CLA_TER_SUBCATEGORIA_CODIGO__1",
230 "ARINCA_SOURCE"."CODIGO" "ARINCA_CODIGO"
231 FROM
232 "ARFAMC"@"SOURCE" "ARFAMC_SOURCE",
233 "ARINDA"@"SOURCE" "ARINDA_SOURCE",
234 "ARINCAT"@"SOURCE" "ARINCAT_SOURCE",
235 "ARINUM"@"SOURCE" "ARINUM_SOURCE",
236 "GRUPOS"@"SOURCE" "GRUPOS_SOURCE",
237 "MARCAS"@"SOURCE" "MARCAS_SOURCE",
238 "CLA_TER_LABORATORIO"@"SOURCE" "CLA_TER_LABORATORIO_SOURCE",
239 "CLA_TER_CLASE"@"SOURCE" "CLA_TER_CLASE_SOURCE",
240 "CLA_TER_GRUPO"@"SOURCE" "CLA_TER_GRUPO_SOURCE",
241 "CLA_TER_SUBGRUPO"@"SOURCE" "CLA_TER_SUBGRUPO_SOURCE",
242 "CLA_TER_CATEGORIA"@"SOURCE" "CLA_TER_CATEGORIA_SOURCE",
243 "CLA_TER_SUBCATEGORIA"@"SOURCE" "CLA_TER_SUBCATEGORIA_SOURCE",
244 "ARINCA"@"SOURCE" "ARINCA_SOURCE"
245 WHERE
246 ( "ARFAMC_SOURCE"."NO_CIA" = "ARINDA_SOURCE"."NO_CIA" ) AND
247 ( "ARINDA_SOURCE"."NO_CIA" = "ARINCAT_SOURCE"."NO_CIA" ) AND
248 ( "ARINDA_SOURCE"."CLASE" = "ARINCAT_SOURCE"."CLASE" ) AND
249 ( "ARINDA_SOURCE"."CATEGORIA" = "ARINCAT_SOURCE"."CODIGO" ) AND
250 ( "ARINDA_SOURCE"."NO_CIA" = "ARINUM_SOURCE"."NO_CIA" ) AND
251 ( "ARINDA_SOURCE"."UNIDAD" = "ARINUM_SOURCE"."UNIDAD" ) AND
252 ( "ARINDA_SOURCE"."NO_CIA" = "GRUPOS_SOURCE"."NO_CIA" ) AND
253 ( "ARINDA_SOURCE"."GRUPO" = "GRUPOS_SOURCE"."GRUPO" ) AND
254 ( "ARINDA_SOURCE"."NO_CIA" = "MARCAS_SOURCE"."NO_CIA" ) AND
255 ( "ARINDA_SOURCE"."MARCA" = "MARCAS_SOURCE"."CODIGO" ) AND
256 ( "ARINCA_SOURCE"."NO_CIA" = "ARINCAT_SOURCE"."NO_CIA" ) AND
257 ( "ARINCA_SOURCE"."CODIGO" = "ARINCAT_SOURCE"."CLASE" ) AND
258 ( "CLA_TER_CATEGORIA_SOURCE"."NO_CIA" = "CLA_TER_SUBGRUPO_SOURCE"."NO_CIA" ) AND
259 ( "CLA_TER_CATEGORIA_SOURCE"."CODIGO_GRUPO" = "CLA_TER_SUBGRUPO_SOURCE"."CODIGO_GRUPO" ) AND
260 ( "CLA_TER_CATEGORIA_SOURCE"."CODIGO_SUBGRUPO" = "CLA_TER_SUBGRUPO_SOURCE"."CODIGO_SUBGRUPO" ) AND
261 ( "CLA_TER_SUBCATEGORIA_SOURCE"."NO_CIA" = "CLA_TER_CATEGORIA_SOURCE"."NO_CIA" ) AND
262 ( "CLA_TER_SUBCATEGORIA_SOURCE"."CODIGO_CATEGORIA" = "CLA_TER_CATEGORIA_SOURCE"."CODIGO_CATEGORIA" ) AND
263 ( "CLA_TER_SUBCATEGORIA_SOURCE"."CODIGO_GRUPO" = "CLA_TER_CATEGORIA_SOURCE"."CODIGO_GRUPO" ) AND
264 ( "CLA_TER_SUBCATEGORIA_SOURCE"."CODIGO_SUBGRUPO" = "CLA_TER_CATEGORIA_SOURCE"."CODIGO_SUBGRUPO" ) AND
265 "ARFAMC_SOURCE"."NO_CIA" IN('01','02','03'));
"ARFAMC_SOURCE"."NO_CIA" IN('01','02','03'))
ERROR at line 265:
ORA-12805: parallel query server died unexpectedly
ORA-02063: preceding line from SOURCE
what could be??
please i'll appreciate your help
thanks

Friend merovingio
As you can see in the error message. You are getting some troubles with the parallel query done there. I recommend you to carry some test on the query first like:
1.- Try to get that query completely without insert those rows in a table.
2.- Try to create a test table with those rows so:
create table <my_table> as
select ..........
in order to test if the transaction got an error again
3.- Try to check the the parallelism grades of the tables included in the select
Possibles Causes:
1.- Need to upgrade your version up to the last patch
2.- Need of more grades of parallelism in the tables included in the select
Have you analyze the select through a explain plan to check if there are full scans ?
Joel Pérez
DBA Oracle

Similar Messages

  • ORA-01460 and ORA-02063 errors in form built on a view

    We have built an apex form on a view against a remote database (via dblink).
    Running the page brings back data as desired.
    However, clicking on the "edit icon" to make updates results in:
    ORA-01460: unimplemented or unreasonable conversion requested ORA-02063: preceding line from my_dblink
    I have searched and cannot seem to locate a fix. Can anyone provide a solution or further steps to troubleshoot?
    Thanks in advance.

    Right now you will be able to base a portal form only on updatable views. Non updatable views are not supported.
    As a work around you can use QBE reports to query the data, without having the delete and update links.
    Regards,
    Sunil.
    null

  • Error in database link(ORA-02063 and ORA-02391)

    Hi
    database link was working fine till this morning. now when i try to query using the database link, i get the following error
    ORA-02391: exceeded simultaneous SESSIONS_PER_USER limit
    ORA-02063: preceding line from RMSLIVE
    It would beof great help if you can advise why this error is occuring.
    many thanks.

    The error stack is quite obvious.
    Either, the profile, with which the database user on remote database is running, must be modified to allow more connections or investigate the session leak in the application talking over database links.

  • Trying to query data from a view - ORA-01882 and ORA-02063 Errors

    Hey there,
    I tried to query data from a view that was provided by a colleague. This view works fine and gives correct data using PL/SQL Developer or SQLPLUS, but in SQL Developer, I get the following error:
    ORA-01882: Time zone region not found
    ORA-02063: preceding line from SYSTOOLS
    01882.00000 - "timezone region %s not found"
    * Cause: Specified reason name was not found
    * Action: Please contact Oracle Customer Support
    Vendor Code 1882
    Where comes this error message from?! SYSTOOLS is the database link.
    Can't see an obvious reason for this error.
    OS is Windows 2000 SP4, SQL Developer is v1.1.1.25 BUILD MAIN-25.14
    Regards,
    Thomas

    From Oracle Messages 'Cause and Action'
    http://www.oracle.com/technology/products/designer/supporting_doc/des9i_90210/cmnhlp72/messages/ora_messages.htm
    ORA-01882, 00000, "timezone region %s not found"
    Cause: The specified region name was not found.
    Action: Please contact Oracle Customer Support.
    Maybe invalid region in NLS_LANG?
    "select * from v$nls_parameters"
    Starting this script in all developer program and compared result...

  • I am getting ORA-02063 error while copying bulk data from DBLINK

    Hi all ,
    I am trying to copy data from DBlink ,whenever i am trying to pull more data ,The db link break down ,
    I have try to put /*+ APPEND */  (Hint) in insert statement.Below is the insert code from my procedure
    from where i am getting below error
    "Error in copy_data_pkg-3113 ORA-03113: end-of-file on communication channel
    ORA-02063: preceding line from TESTDBLINK"
    Insert code:
    INSERT /*+ APPEND */ INTO target_tab
    select
    col1,
    col2,
    col3,
    col4,
    col5,
    o_time
    FROM padmin.V_tab1@testdblink
        where
    trunc (sysmodtime) = trunc(sysdate)-1
    and O_time >= al_time
    and (CLEAR_TIME is null or  CLEAR_TIME >= occur_time)
        and (res_code is null or (UPPER(res_code) not LIKE '%TEST TT%' and UPPER(res_code) not LIKE '%TEST SITE%'))
        and ((UPPER(BRIEF_DESC) not like '%TEST TT%' and UPPER(BRIEF_DESC) not LIKE '%TEST SITE%'))
        and (o_time+(330/(24*60))) <= trunc(SYSDATE)-1/24/60/60
        and  catvar IN('POS')
      and UPPER(action_var) not like '%SC_NET%' and UPPER(action) not like '%ROAM_NET%' and UPPER(action) not like '%PUP_NET%';
      COMMIT ;
    Please suggest me ,why i am getting this error.

    Can you elaborate the thing... I don't think  /*+ APPEND */ this is working for me ,still I am getting same error.
    If you have any other suggestion,I would like to hear.
    Should i not put commit after some 500 records inserted ? As i am putting commit once after whole data gets inserted.

  • 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-02291 - ORA-02063 on merge with dml error logging through DB link

    Hello all,
    I have 2 DB's and I would like to merge records from A into B with dml error logging through a db link.
    Exemple:
    merge into B@dblink
    using (select ... from A where...)
    when matched then
    when not matched then
    log errors into err$_A reject limit unlimited;
    When I use this, and exception is thrown:
    ORA-02291: integrity constraint (B.constraint_name) violated - parent key not found
    ORA-02063: preceding line from dblink
    I've got no idea of what causes this.
    Could anyone please help me ?
    Thanks !
    Regards,
    TDE.

    Hello damorgan,
    Thanks for your answer.
    I've well understood that its was a foreign key violation, and I guess that's an error in the source: wee make only logical deletes, and I'm quite sure the problem is there.
    Anyway, I really would understand why dml error logging doesn't work in this case.
    I'll investigate and keep you informed.
    Regards.

  • 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-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

  • 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 #

  • ORA-28500 and ORA-02063 while connecting MySQL from Oracle-

    Dear All,
    My Database is Oracle 11gR2 Rac of 2 nodes and on Linux 64-Bit operating system.
    Version of my MySQL database is 5.5.17 it is on Linux 32-Bit operating system.
    I am trying to connect MySQL database from Oracle database using a database link.
    These are the step by step process that I am following to achieve my target. All my processes are on one node of Oracle RAC.
    1)
    Yum install mysql-connector-odbc
    Yum install unixODBC
    2)
    Edit file /etc/odbc.ini
    [test]
    Driver = /usr/lib64/libmyodbc3.so
    Description = MySQL ODBC 3.51 Driver DSN
    SERVER = 10.0.0.1
    PORT = 3306
    USER = test
    Password = test
    Database = test
    OPTION = 3
    SOCKET =
    3)
    Edit file /etc/odbcinst.ini
    [MySQL]
    Description = ODBC for MySQL
    Driver = /usr/lib64/libmyodbc3.so
    Setup = /usr/lib64/libodbcmyS.so
    FileUsage = 1
    4) test connection
    isql –v test test test
    Returns:
    | Connected! |
    | |
    | sql-statement |
    | help [tablename] |
    | quit |
    | |
    SQL>
    5) Now I edit listener.ora file and add the entry. After entry my listener.ora file is like this:
    LISTENER =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER))
    (ADDRESS = (PROTOCOL = TCP)(HOST=testnode1)(PORT = 1521))
    # line added by Agent
    LISTENER_SCAN1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER_SCAN1))
    # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1 = ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON # line added by Agent
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (PROGRAM = dg4odbc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
    (SID_NAME = test)
    (ENVS=LD_LIBRARY_PATH = /usr/local/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
    6) After these entries the listener status after RESTART is as following:
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 27-DEC-2011 01:19:32
    Uptime 0 days 9 hr. 31 min. 12 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
    Listener Log File /u01/app/grid/diag/tnslsnr/racnode1/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=testnode1)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
    Instance "+ASM1", status READY, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "test" has 1 instance(s).
    Instance "test", status UNKNOWN, has 1 handler(s) for this service...
    Service "testdb" has 1 instance(s).
    Instance "testdb1", status READY, has 1 handler(s) for this service...
    Service "racdbXDB" has 1 instance(s).
    Instance "testdb1", status READY, has 1 handler(s) for this service...
    The command completed successfully
    7) Then in the tnsnames.ora file I added the following entry:
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = EXTPROC1521)
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    test =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
    (SID = test)
    (HS = OK)
    When i tnsping test, it works.
    8) I edit the .bash_profile file for Oracle
    ORACLE_HOME, ORACLE_BASE were already pointing to the correct destination, I added:
    LD_LIBRARY_PATH=/usr/local/lib:/u01/app/oracle/product/11.1.0/db_1/lib:/u01/app/oracle/product/11.2.0/dbhome_1/hs/lib:/usr/lib64:/usr/lib
    export LD_LIBRARY_PATH
    ODBCINI=/etc/odbc.ini
    export ODBCINI
    ODBCINSTINI=/etc/odbc.ini
    export ODBCINSTINI
    ODBCSYSINI=/etc
    export ODBCSYSINI
    9) Then i configured $ORACLE_HOME/hs/admin/inithsodbc.ora
    And Modified these lines:
    HS_FDS_CONNECT_INFO = test
    HS_FDS_TRACE_LEVEL = ON
    HS_FDS_TRACE_FILE_NAME = odbc_test.log
    HS_FDS_TRACE_LEVEL = 4
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
    HS_FDS_SUPPORT_STATISCTICS = FALSE
    HS_LANGUAGE = AMERICAN_AMERICA.WE8ISO8859P1
    set ODBCINI = /etc/odbc.ini
    10) Then i created a database link with the following command:
    Create public database link test connect to test identified by test using ‘test’;
    I tried username and password in database link with double quotes also.
    11) Now Finally when I try to select records from mysql table:
    select count(*) from "table"@"test"; -- I have tried with and without double quotes
    I get the following error:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from TEST
    How to get through this error, and how to check logs for HS?
    Your help is required.
    Regards, Imran
    Edited by: misterimran on Dec 27, 2011 1:21 PM

    Hi,
    In your listener.ora for the DG4ODBC entry you had -
    (ENVS=LD_LIBRARY_PATH = /usr/local/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
    but this should also include the path for the driver manager directory which in your case is /usr/lib64 so could you add this ?
    The error -
    Failed to load ODBC library symbol: /usr/lib64/libmyodbc3.so(SQLSetDescRec)
    indicates the /usr/lib64 directory cannot be accessed.
    The entry should then look like -
    (SID_DESC =
    <space>(PROGRAM = dg4odbc)
    <space>(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
    <space>(SID_NAME = test)
    <space>(ENVS=LD_LIBRARY_PATH = /usr/local/lib:/usr/lib64:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
    <space>)
    The spaces may have bene lost when posting but there should be at least one space in the file as indicated by the <space>.
    After making the change then stop and start the listener.
    If you still have problems then please post again the current versions of the configuration files, the full errors shown in SQLPLUS for a select and the output from a debug trace showing the errors.
    The information shows you are using the 3.51 MySQL ODBC driver so could you also try with the latest version of the 5.1 driver and see if you have the same problem ?
    Regards,
    Mike

  • Accessing DB2 data through DBLINK in Java program recieves ORA-02063 error

    Hello,
    Is it posible to access a mainframe DB2 table through a Java JDBC connection utilizing a DBLink / Synonym. Using Toad or SQLDeveloper, I can select the DB2 data just fine. Also, PL/SQL programs can access the data without issues. When I try to select data from the DB2 Table in a Java program, I get ORA-01002: fetch out of sequence -- ORA-02063 preceding line from DB2D errors.
    The code I am using to test is:
    (Note: TBL_LOC_ADR is the Synonym that points to the Mainfram DB2 table)
    public static void main(String[] args) {
              Connection con = null;
              Statement stmt = null;
              String query = "SELECT * FROM tbl_loc_adr";
              ResultSet rs;
              try {
                   System.out.println("Getting connection");
                   con = BatchDBConnection.getDBConnection();
                   TestConnection tc = new TestConnection();
                   System.out.println("Creating ps");
                   stmt = con.createStatement();
                   System.out.println("Calling qds");
                   rs = stmt.executeQuery(query);
                   System.out.println(" Returned data " );
              } catch (Exception e) {
                   System.out.println("Error " + e.getMessage());
                   e.printStackTrace();
    The error occurs on the rs = stmt.executeQuery(query); line.
    Thanks for any input into this error. It's been driving me nuts all day.
    Chris

    Chris,
    What's your oracle version? You might be hitting a bug as identified in this metalkink doc id, see if this helps out. Resolution posted in the metalink by applying patches or confirm that you have applied all the required patches.
    Doc ID: 456815.1 ORA-01002 ORA-2063 When Profiling DB2/400 Table Accessed by View via Transparent Gateway for DRDA
    Regards

  • OCIStmtExecute: ORA-00028: your session has been killed ORA-02063

    Oracle Kills database sessions and my PHP script stops-
    "Warning: ociexecute(): OCIStmtExecute: ORA-00028: your session has been killed ORA-02063: preceding line from <Databasename>"
    I am not sure how to handle this. I am trying to see if PHP can identify when oracle drops session, can another script restart it. Any suggestions.
    Thanks,
    M

    Oracle Kills database sessions and my PHP script stops-
    "Warning: ociexecute(): OCIStmtExecute: ORA-00028: your session has been killed ORA-02063: preceding line from <Databasename>"
    I am not sure how to handle this. I am trying to see if PHP can identify when oracle drops session, can another script restart it. Any suggestions.
    Thanks,
    M

  • Database links issue ORA-01017 ORA-02063

    Oracle 11g R1 , RHEL 5 64bit
    HI all,
    I am having this strange issue with my database links. They used to work in the past but now they are not. Here is what I have checked:
    - All the TNSnames.ora file entries are there and are correct...I double checked with tnsping
    - I changed all the passwords to be the same on all environments (DEV/QA/PROD)
    - I have dropped and re-created all the database links
    However, I still get the same error when I test them:
    ORA-01017: invalid username/password; logon denied ORA-02063: preceding line from <database_name>
    Here are the links created on DEV:
    SQL> select * from dba_db_links;
    OWNER DB_LINK USERNAME HOST CREATED
    PUBLIC FPRCQA.FPRC.OPHTH.WISC.EDU FPRCQA 01282009
    FPRCHR FPRCQA.FPRC.OPHTH.WISC.EDU FPRCHR FPRCQA 01282009
    PUBLIC FPRCPROD.FPRC.OPHTH.WISC.EDU FPRCPROD 01282009
    FPRCHR FPRCPROD.FPRC.OPHTH.WISC.EDU FPRCHR FPRCPROD 01282009
    The above links were created using the following syntax:
    SQL> conn sys as sysdba
    Enter password:
    Connected.
    SQL> create public database link FPRCQA.FPRC.OPHTH.WISC.EDU using 'FPRCQA';
    Database link created.
    SQL> create public database link FPRCPROD.FPRC.OPHTH.WISC.EDU using 'FPRCPROD';
    Database link created.
    SQL> conn fprchr
    Enter password:
    Connected.
    SQL> CREATE DATABASE LINK FPRCQA.FPRC.OPHTH.WISC.EDU CONNECT TO FPRCHR IDENTIFIED by <passwd> using 'FPRCQA';
    Database link created.
    SQL> CREATE DATABASE LINK FPRCPROD.FPRC.OPHTH.WISC.EDU CONNECT TO FPRCHR IDENTIFIED by <passwd> using 'FPRCPROD';
    Database link created.
    Now when I do a simple query, I get the error:
    SQL> select count(*) from fprchr.department@FPRCQA;
    select count(*) from fprchr.department@FPRCQA
    ERROR at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from FPRCQA
    I have read some notes on metalink, but they were talking about situations where you have a 10g database connecting to an 11g database and the whole password case-sensitivity issue, but this is not the case here as all the databases are 11g.
    I would appreciate any and all help on this issue.
    Thank you much.

    The documentation has the answer:
    user IDENTIFIED BY passwordSpecify the username and password used to connect to the remote database using a fixed user database link. If you omit this clause, the database link uses the username and password of each user who is connected to the database. This is called a connected user database link.>
    Since you haven't specified user/password in your public database links, then Oracle will try to create a connection on the remote db with the same user/password who is trying to use the database link. If the user doesn't exists or has a different password then you get an error (the same you mentioned in you original post)
    HTH
    Enrique

  • How to resolve ora-28500 & ora-02063?

    HI guys, recently, I have to read the data in MS SQL2008 into the oracle11gr2. At the first glance, I thought about the GateWay.
    there are two servers in my team(run on vmware), which are:
    server A:  192.168.184.130, winserver2003, 64 edition, MS server2008 installed, SP2 installed
    server B:  192.168.184.134, winserver2003, 64 edition,  oracle11gr2 and gateway installed, SP1.
    on server A, the table of msdb.dbo.user_sqlserver2008 is the one the Oracle plans to read.
    on server B, the ORACLE_HOME is C:\app\Administrator\product\11.2.0\dbhome_1, and the GATEWAY_HOME is C:\product\11.2.0\tg_1, both are default directories.
    after the gateway component was installed, I configured the following files:
    1. created C:\product\11.2.0\tg_1\dg4msql\admin\initmsdb.ora, the contents in this file are:
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Microsoft SQL Server
    # HS init parameters
    HS_FDS_CONNECT_INFO=192.168.184.130//msdb
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    2. compiled the file of C:\product\11.2.0\tg_1\NETWORK\ADMIN\listener.ora, and the contents are:
    # listener.ora Network Configuration File: C:\product\11.2.0\tg_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = msdb)
          (ORACLE_HOME = C:\product\11.2.0\tg_1)   
          (PROGRAM = dg4msql)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.184.134)(PORT = 1523))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1523))
    ADR_BASE_LISTENER = C:\product\11.2.0\tg_1
    3. modified the tns file in C:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN, namely tnsnames.ora, the contents are:
    # tnsnames.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.184.134)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    msdb =
    (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST =192.168.184.134)(PORT = 1523))
        (CONNECT_DATA =
          (SID = msdb)
        (HS = OK)
    after that, restarted the listeners for gateway and for orcl instance and the orcl instance as well,  then on server B, logon as the user msdb possessing the resource and dba role,(what's more, there is another user id msdb on sqlserver2008, who is the owner of msdb database)
    ran the following sql script via plsql:
    1. create database link msdb connect to msdbadmin identified by "oracle_4u" using 'msdb';
    2. select * from dbo.user_sqlserver2008@msdb
    the script No.1 was successfully completed, while an error message was got in script 2. the message is:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Oracle][[ODBC SQL Server Driver][DBNETLIB]SQL Server dose not exist or access denied. {08001, NativeErr = 17}[Oracle][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen(Connect()). {01000, NativeErr = 2}[Oracle][ODBC SQL Server Driver]Invalid connection string attribute{01S000}
    ORA-02063: preceding 2 lines from MSDB.
    Could anyone familiar with this help me figure this out? Thanks, it made me crazy.

    On the gateway side you don't need to specify the port number when your SQL Server is listening on the default port. But in your update you also mentioned that you had to configure also the SQL Server to use port 1433 - this indicates that it wasn't configured earlier ... so the SQL Server was using dynamic ports and when you use dynamic ports and the gateway you have to make sure on the SQL Server side the SQL Browser service is running AND you specify the instance name in your HS_FDS_CONNECT_INFO like HS_FDS_CONNECT_INFO=192.168.184.130/<instance name of the SQL Server>/msdb
    - Klaus
    P.S.: Please mark the thread as answered if your issue is solved.

Maybe you are looking for