Oracle

Concatenate XMLType nodes in Oracle query

二次信任 提交于 2021-02-05 09:11:25
问题 I have a CLOB column that contains XML type data. For example XML data is: <A><B>123</b><C>456</C><B>789</b></A> I have tried the concat function: concat(xmltype (a.xml).EXTRACT ('//B/text()').getStringVal (),';')) or xmltype (a.xml).EXTRACT (concat('//B/text()',';').getStringVal ())) But they are giving ";" at end only not after each <B> tag. I am currently using xmltype (a.xml).EXTRACT ('//B/text()').getStringVal () I want to concatenate all <B> with ; and expected result should be 123;789

Concatenate XMLType nodes in Oracle query

烂漫一生 提交于 2021-02-05 09:06:09
问题 I have a CLOB column that contains XML type data. For example XML data is: <A><B>123</b><C>456</C><B>789</b></A> I have tried the concat function: concat(xmltype (a.xml).EXTRACT ('//B/text()').getStringVal (),';')) or xmltype (a.xml).EXTRACT (concat('//B/text()',';').getStringVal ())) But they are giving ";" at end only not after each <B> tag. I am currently using xmltype (a.xml).EXTRACT ('//B/text()').getStringVal () I want to concatenate all <B> with ; and expected result should be 123;789

ORA-02270: no matching unique or primary key for this column-list

 ̄綄美尐妖づ 提交于 2021-02-05 08:56:11
问题 I have a table, and the structure is CREATE TABLE "COURSE_ACCREDITED" ("COURSE_ID" VARCHAR2(50) NOT NULL ENABLE, "ACCREDITATION_BODY_ID" VARCHAR2(50) NOT NULL ENABLE, "DATE_OBTAINED" VARCHAR2(50), PRIMARY KEY ("COURSE_ID", "ACCREDITATION_BODY_ID", "DATE_OBTAINED") ENABLE, CONSTRAINT "COURSE_ACCREDITED_CON" FOREIGN KEY ("COURSE_ID") REFERENCES "COURSE" ("COURSE_ID") ENABLE) When I add a constrain alter table "COURSE_ACCREDITED" add constraint "COURSE_ACCREDITED_CON2" foreign key (

Primary keys and indexes in Hive query language is poosible or not?

限于喜欢 提交于 2021-02-05 08:50:08
问题 We are trying to migrate oracle tables to hive and process them. Currently the tables in oracle has primary key,foreign key and unique key constraints. Can we replicate the samein hiveql? We are doing some analysis on how to implement it. 回答1: Hive indexing was introduced in Hive 0.7.0 (HIVE-417) and removed in Hive 3.0 (HIVE-18448) Please read comments in this Jira. The feature was completely useless in Hive. These indexes was too expensive for big data, RIP. As of Hive 2.1.0 (HIVE-13290)

Support for CHECKSUM in Oracle 11g

天大地大妈咪最大 提交于 2021-02-05 08:40:40
问题 I have the following in Postgres 9.2.4: postgres=# SELECT CHECKSUM(O_ORDERKEY) FROM tpch.orders; checksum -------------------- 322119959934139382 (1 row) Time: 41437.050 ms I have an instance of Oracle 11g database, with the same TPCH data, which I want to check consistency with the Postgres instance by comparing table checksums. From this link https://docs.oracle.com/en/database/oracle/oracle-database/20/sqlrf/checksum.html#GUID-3F55C5DF-F23A-4B2F-BC6F-E03B34B78BA8 I found out that CHECKSUM

Dynamic Action refresh all reports in a page

时间秒杀一切 提交于 2021-02-05 08:08:31
问题 I have a page with to many reports When I change an Item I want to refresh all the reports on the page I have one dynamic action (on item change) that as a lot of refresh (true) actions to refresh all the reports. I want to know if theres a way/comand/DynamicAction/Code that refreshes all the reports in the page with a single DynamicAction? Thanks in advance 回答1: Create a single JavaScript action the executes the following $('.refreshme').trigger('apexrefresh'); And apply the refreshme class

Dynamic Action refresh all reports in a page

被刻印的时光 ゝ 提交于 2021-02-05 08:05:05
问题 I have a page with to many reports When I change an Item I want to refresh all the reports on the page I have one dynamic action (on item change) that as a lot of refresh (true) actions to refresh all the reports. I want to know if theres a way/comand/DynamicAction/Code that refreshes all the reports in the page with a single DynamicAction? Thanks in advance 回答1: Create a single JavaScript action the executes the following $('.refreshme').trigger('apexrefresh'); And apply the refreshme class

Dynamic Action refresh all reports in a page

 ̄綄美尐妖づ 提交于 2021-02-05 08:03:12
问题 I have a page with to many reports When I change an Item I want to refresh all the reports on the page I have one dynamic action (on item change) that as a lot of refresh (true) actions to refresh all the reports. I want to know if theres a way/comand/DynamicAction/Code that refreshes all the reports in the page with a single DynamicAction? Thanks in advance 回答1: Create a single JavaScript action the executes the following $('.refreshme').trigger('apexrefresh'); And apply the refreshme class

Oracle SQL Developer: Test failed: The Network Adapter could not establish the connection?

狂风中的少年 提交于 2021-02-05 08:01:27
问题 I'm in real need of a help here. I setup a Oracle Database server on a VirtualBox VM and until yesterday everything seemed to work just fine. Today when I initiated the database to keep working, and turned on SQLDeveloper in my local machine (Client machine) it threw me this error: Erro de ES: The Network Adapter could not establish the connection My VirtualBox VM network setting is configure to bridged adapter . And I was able to connect just fine and today, out of nothing this error started

Changes in database session context persists with pooled connection reuse

二次信任 提交于 2021-02-05 07:17:44
问题 In my application I have multithreads that needs to access database and I am using apache.tomcat.jdbc.pool.DataSource as a JDBC connection pool. In some cases users execute stored procedures that might affect the database session context/variables before executing another query to retrieve some data. After a thread is finished, connection is closed but the way the pooled connections work, the connection is not actually closed but rather returned to the connection pool for reuse. The problem