oracle-type

c# select query to Oracle database throws “Custom type mapping for … is not specified or is invalid”

核能气质少年 提交于 2020-01-04 05:25:13
问题 I am trying to map a simple Oracle UDT in my c# application. When I try to extract data from DataReader , it throws the following exception: Custom type mapping for 'dataSource='DB' schemaName='C##LAZAR' typeName='MATICNIBROJ_T'' is not specified or is invalid Oracle UDT is: create or replace TYPE "MATICNIBROJ_T" AS OBJECT ( MaticniBroj NUMBER(13) ) INSTANTIABLE NOT FINAL Custom class used for mapping: [OracleCustomTypeMapping("C##LAZAR.MATICNIBROJ_T")] public class MaticniBrojT :

node-oracledb error when executing stored procedure NJS-012

喜欢而已 提交于 2019-12-24 08:07:07
问题 I'm running Node 8.9.4, Hapi 17.4, and Oracledb 2.2. When attempting to call a stored procedure, I get the error "NJS-012: encountered invalid bind data type in parameter 2". Nothing I've been able to do seems to fix the issue. The code that calls the procedure is: async function getSavedViews(req, h, server) { let connection = await server.app.db.getConnection(); let bindVars = { P_USER_NAME: req.payload.user_name, P_CONTENT_TYPE: req.payload.content_type, P_PROJECT_NUMBER: req.payload

Java program to pass List of Bean to a oracle stored procedure - Pass entire list at one shot rather than appending objects one after the other

倾然丶 夕夏残阳落幕 提交于 2019-12-23 04:47:12
问题 I have the following set of TYPE, PROCEDURE and Java code. I am able to call the stored procedure successfully but i have to append the objects one after the other. I want the process to be happening at one shot as i am dealing with over 50K+ records. Can anyone please let me know what changes needs to be done so that i can send the entire list at one. The code can be found below. TYPES: CREATE OR REPLACE TYPE CER_GL_ENTRY_TYPE AS OBJECT (idKey NUMBER(10) ); CREATE or REPLACE TYPE CER_GL

invalid name pattern when trying to pass custom oracle type object mapping

倖福魔咒の 提交于 2019-11-29 07:47:40
Java spring custom Oracle type as a param and getting following error. I don't understand what does that mean by invalid name pattern ? Any help appreciated. org.springframework.jdbc.UncategorizedSQLException: ### Error updating database. Cause: java.sql.SQLException: invalid name pattern: UPSELL.mkt_list_tab ### The error may involve com.comcast.upsell.dao.ProviderAndRegionalDao.getCorpsToMarketsList-Inline ### The error occurred while setting parameters ### SQL: call upsell_tx_etl_report.GET_OFFER_CORPS_TO_MARKETS( ?, ?, ? ) ### Cause: java.sql.SQLException: invalid name pattern: MY_SCHEMA

invalid name pattern when trying to pass custom oracle type object mapping

蹲街弑〆低调 提交于 2019-11-27 19:03:39
问题 Java spring custom Oracle type as a param and getting following error. I don't understand what does that mean by invalid name pattern ? Any help appreciated. org.springframework.jdbc.UncategorizedSQLException: ### Error updating database. Cause: java.sql.SQLException: invalid name pattern: UPSELL.mkt_list_tab ### The error may involve com.comcast.upsell.dao.ProviderAndRegionalDao.getCorpsToMarketsList-Inline ### The error occurred while setting parameters ### SQL: call upsell_tx_etl_report