Oracle

Oracle PLSQL Recurrence Pattern RFC 2445

江枫思渺然 提交于 2021-02-19 08:14:05
问题 I have a requisite on which I need to convert a RFC 2445 Recurrence Pattern to Dates using PLSQL. Example: RRULE = FREQ=DAILY;INTERVAL=5;COUNT=10 From that rule, I need to write a table with the next 10 occurrences of that pattern. Something like the image bellow, considering start date as 1/1/2019 12:00:00 AM : Does Oracle provides any PLSQL Package that allows me to do this? If doesn't, does anybody knows any PLSQL project initiative for this? Ps: this is the same exactly pattern that

Oracle MERGE and prepared statement

五迷三道 提交于 2021-02-19 07:48:05
问题 I have a backup utility, workig on restore section. This is my table: CREATE TABLE "SBOOKS"."DEV_CORPUS" ( "CORPUSID" NUMBER(9,0) NOT NULL ENABLE, "CORPUS_NAME" VARCHAR2(768 BYTE) NOT NULL ENABLE, "CORPUSLASTSYNC" DATE, PRIMARY KEY ("CORPUSID") In restore class I would like to look for a primary key in table, if it exists then update the row, if not then insert a row. now the problem is I need to pass the parameters from the class (they do not exist in any table), how can I do this? what is

Standalone spring app XA transactions with IBM MQ and Oracle as resources

百般思念 提交于 2021-02-19 07:11:27
问题 I am in the process of developing a stand alone Apache camel application (not running on a J2EE container). This apps needs to be capable of routing messages from an IBM MQ queue manager to an Oracle database in a distributed transaction. My google searches pretty much took me to a few places but none of those were able to give me some good clues about how to put everything together. This link below was the closest to what I need but unfortunately it is not cler enough to put me on the right

Standalone spring app XA transactions with IBM MQ and Oracle as resources

喜你入骨 提交于 2021-02-19 07:06:48
问题 I am in the process of developing a stand alone Apache camel application (not running on a J2EE container). This apps needs to be capable of routing messages from an IBM MQ queue manager to an Oracle database in a distributed transaction. My google searches pretty much took me to a few places but none of those were able to give me some good clues about how to put everything together. This link below was the closest to what I need but unfortunately it is not cler enough to put me on the right

Standalone spring app XA transactions with IBM MQ and Oracle as resources

拟墨画扇 提交于 2021-02-19 07:05:34
问题 I am in the process of developing a stand alone Apache camel application (not running on a J2EE container). This apps needs to be capable of routing messages from an IBM MQ queue manager to an Oracle database in a distributed transaction. My google searches pretty much took me to a few places but none of those were able to give me some good clues about how to put everything together. This link below was the closest to what I need but unfortunately it is not cler enough to put me on the right

Query using a statement within a VARCHAR2 column

有些话、适合烂在心里 提交于 2021-02-19 05:55:26
问题 Is there a way for a select statement to include in the WHERE clause a statement that is contained within the table? For example, the following table: CREATE TABLE test_tab( date_column DATE, frequency NUMBER, test_statement VARCHAR2(255) ) / If MOD(SYSDATE - DATE, frequency) = 0 were contained within the column test_statement , is there a way to select rows where this is true? The test_statement will vary and not be the same throughout the table. I am able to do this in PL/SQL but looking to

ORACLe PROCEDURE - AUTHID allowed only in schema level

限于喜欢 提交于 2021-02-19 04:33:59
问题 While trying to create table via procedure, I am facing error like Error(73,9): PLS-00157: AUTHID only allowed on schema-level programs PROCEDURE BCKUP AUTHID CURRENT_USER AS statusmsg VARCHAR2(400); BEGIN --Backup records EXECUTE IMMEDIATE 'CREATE TABLE schemaname.tabname AS SELECT pgm.* FROM XYZ pgm, IJK prf WHERE prf.col1=pgm.col1 AND prf.ID IN(SELECT ID FROM TAB2)'; COMMIT; EXCEPTION WHEN OTHERS THEN statusmsg :='SQL ERRROR CODE ' || SQLCODE|| ' -ERROR- ' ||SQLERRM; dbms_output.put_line(

Temporal tables in Oracle

前提是你 提交于 2021-02-19 03:35:29
问题 Tom Kyte describes temporal tables here: temporal tables are tables that can return the answer that existed at a point in time -- you can ask the table to return the answer that existed at midnight last night, instead of the answer that exists right now Do such tables exist in Oracle? I can't find documentation of them. How can I create one and use it? He says they exist in databases, although he doesn't say that they do in Oracle nor any other product. Is this a conceptual thing not

APEX: Download BLOB from temporary table

旧街凉风 提交于 2021-02-19 03:26:50
问题 I'm trying to build a simple viewing application using Oracle APEX 4.1.1. The info to be displayed is in a table on a different database then the database containing the schema the APEX application accesses. This remote table is accessed using a View ( RemoteTableView ) and a Database Link. The View works as expected, including Oracle's disability to Select a LOB column item through a Database Link. In the APEX application I have defined a Procedure ( DownloadFiles ) that is run whenever a

Rails: rake db:migrate *very* slow on Oracle

泄露秘密 提交于 2021-02-19 03:22:32
问题 I'm using rails with the oracleenhanced adaptor to create a new interface for a legacy application. Database migrations work successfully, but take an incredibly long amount of time before rake finishes. The database changes happen pretty quickly (1 or 2 seconds), but the db/schema.db dump takes over an hour to complete. (See example migration below.) It's a relatively large schema (about 150 tables), but I'm sure it shouldn't be taking this long to dump out each table description. Is there