oracle11g

Why do I get the following error LISTAGG function: “result of string concatenation is too long"?* [duplicate]

≡放荡痞女 提交于 2019-12-13 04:27:18
问题 This question already has answers here : LISTAGG function: “result of string concatenation is too long” (12 answers) Closed last year . I am using this query HR--Any baby with a HR<80 AS (SELECT fm.y_inpatient_dat, h.pat_id, h.pat_enc_csn_id, LISTAGG(meas_value, '; ') WITHIN GROUP (ORDER BY fm.recorded_time) abnormal_HR_values from ip_flwsht_meas fm join pat_enc_hsp h on fm.y_inpatient_dat = h.inpatient_data_id where fm.flo_meas_id in ('8' ) and (to_number(MEAS_VALUE) <'80') AND fm.recorded

Ords webservice Internal server error 500

让人想犯罪 __ 提交于 2019-12-13 03:59:55
问题 I am using ords to front oracle apex, recently it started giving me 500 internal server error with no reason on page, the error is displayed when ever i try to test webservcice (i.e. click on webservice test button form oracle apex), below is the log for ords SEVERE: java.lang.AbstractMethodError: Method oracle/jdbc/driver/OracleResultSetImpl.isClosed()Z is abstract InternalServerException [statusCode=500, reasons=[]] at oracle.dbtools.rt.ResourceTemplatesServlet.canDispatch

sub string in oracle

自作多情 提交于 2019-12-13 03:53:03
问题 My query goes like below select dbms_metadata.get_ddl('TRIGGER', 'trigger_delete') from dual; Query outputs like below CREATE OR REPLACE TRIGGER "owner"."trigger_delete" BEFORE DELETE ON roles FOR EACH ROW BEGIN DBMS_APPLICATION_INFO.read_client_info (acct_utils.trigger_enabled); IF acct_utils.trigger_enabled <> 'F' THEN INSERT INTO delete_table (ID, key, object, type, keytype, objecttype, created, deleted, deletedby) VALUES( :old.id, :old.key, 'delete', null, :old.keytype, null, :old

LDAP: Empty binddn“” and Authentication type becomes simple from none

我是研究僧i 提交于 2019-12-13 03:47:00
问题 Am Developing an application in Spring MVC & JPA with Spring Security. Now Integrating the OUD (Oracle Unified Directory) through LDAP. While User authentication the response from the LDAP in OUD log file is CONNECT conn=909681 from ******* to *******:1636 protocol=LDAPS Bind REQ conn=909681 op=0 msgID=1 type=SIMPLE dn="" version=3 BindRES conn=909681 op=0 msgID=1 result=1 message="The directory server could not find a network group for the bind dn "" because the client connection does not

Create_record oracle forms

这一生的挚爱 提交于 2019-12-13 03:46:35
问题 I have a multi-record block and what I wanted is to fire insert record after leaving a record (going up or down). I tried to put create_record in WHEN-VALIDATE-RECORD but it say that its an illegal restricted procedure. How can I do create_record in WHEN-VALIDATE-RECORD ? Do I need a procedure/timer? Please show me how. Thanks! 回答1: You might use WHEN-NEW-RECORD-INSTANCE trigger, where using create_record built-in is not restricted , at that mentioned multiple-record block level instead of

Partial commit when Connection close in Oracle with Hibernate/JPA

自作多情 提交于 2019-12-13 03:44:13
问题 Recently got this following error in my application JPA/Hibernate with database Oracle RAC 11g. This error occurred when our storage was full and DBA needed close connections, kill active sessions, or some like this "Connection closed" (now I can know what happened, he was fired....) javax.persistence.RollbackException: Error while commiting the transaction at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:71) at com.cgmp.ValePedagioSite.comprarViagemPorPlaca(ValePedagioSite

Parameter order is incorrect when calling Oracle stored procedures using Oracle.ManagedDataAccess.Client

孤人 提交于 2019-12-13 03:44:07
问题 I am using latest Oracle.ManagedDataAccess.Client 11.2 .dll for getting data from Oracle to .net application. Is it required to pass parameter in same order as expected by the stored procedure? From application side we are add parameter order to command object cmd is KK_C KK_C2 KK_C1 Stored procedure like KK_C KK_C1 KK_C2 And this is generic code I am not able pass parameter same order what the stored procedure expected. Because different stored procedures expect different parameter order My

Oracle How to Map Data Types to CODE/IDs - Dump and dbms_sql.define_column produce data type codes

天涯浪子 提交于 2019-12-13 03:41:44
问题 When using DUMP() or when using dbms_sql.define_column both return the CODE of the Oracle Data type. Is there a MAP that ties the Oracle Data Types to their Oracle CODEs that are returned by the DUMP() function or the dbms_sql.define_column feature? I'm looking for this to aid in testing as well as to locate custom data types such as a NESTED TABLE. A nested table exists in one of my tables and produces a Data Type Code of 109. How do I lookup the type that is associated with Type Code of 109

Recursive query in Oracle to find children and sibling

柔情痞子 提交于 2019-12-13 03:40:02
问题 I'm struggling a hierarchical SQL query. I want to have another 2 columns of the disp_order of its children and sibling. Children - Should hold all disp_order of their child and their grand children and so far. Sibling - Should hold the disp_order of the row having the same parent. +------------+-----+-------------+--------+ | disp_order | lvl | description | parent | +------------+-----+-------------+--------+ | 0 | 1 | A | | | 1 | 2 | B | 0 | | 2 | 3 | C | 1 | | 3 | 4 | D | 2 | | 4 | 5 | E

Why do I get a CannotAcquireResourceException while trying to connect, when I extend AbstractComboPooledDataSource?

坚强是说给别人听的谎言 提交于 2019-12-13 03:39:31
问题 In a Tomcat 8.5.15 environment using an Oracle 11 database, I want to implement a data source that handles encrypted passwords in the context.xml . For example, instead of having: <Resource auth="Container" description="MyDataSource" driverClass="oracle.jdbc.OracleDriver" maxPoolSize="100" minPoolSize="10" acquireIncrement="1" name="jdbc/MyDataSource" user="me" password="mypassword" factory="org.apache.naming.factory.BeanFactory" type="com.mchange.v2.c3p0.ComboPooledDataSource" jdbcUrl="jdbc