oracle12c

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

How can I force flyway to clean my docker oracle database?

≯℡__Kan透↙ 提交于 2021-02-18 17:39:24
问题 I've downloaded the official oracle docker image for Oracle Database EE. I've got a flyway configuration and often run flyway:clean against the locally installed XE version of the database. However flyway tells me it is not allowed to clean the database in the docker image, but it can migrate it. Is there a way to force flyway to clean the oracle db? To answer the questions from the comments: Here's the error message when running flyway through maven: org.flywaydb.core.api.FlywayException:

Oracle Universal Installer Terminates execution

…衆ロ難τιáo~ 提交于 2021-02-11 18:19:58
问题 I am installing oracle 12c on Windows server 2016 OS . But just after double-clicking on setup.exe my installer disappears without any progress. I am running setup.exe file with administrator privilege. Also disabled UAC . When I checked log files content of the same was Using paramFile: C:\abc\database\install\oraparam.ini Checking monitor: must be configured to display at least 256 colors. Actual 4294967296 Passed The number of files bootstrapped for the jre is 0. The number of files

Oracle Universal Installer Terminates execution

丶灬走出姿态 提交于 2021-02-11 18:19:48
问题 I am installing oracle 12c on Windows server 2016 OS . But just after double-clicking on setup.exe my installer disappears without any progress. I am running setup.exe file with administrator privilege. Also disabled UAC . When I checked log files content of the same was Using paramFile: C:\abc\database\install\oraparam.ini Checking monitor: must be configured to display at least 256 colors. Actual 4294967296 Passed The number of files bootstrapped for the jre is 0. The number of files

Oracle Client and ODP.NET version compatibility

两盒软妹~` 提交于 2021-02-11 15:23:52
问题 We have upgraded Oracle to 19C and also upgraded the Oracle.ManagedDataAccess package to 19.6. However, when we try to open our application on Oracle database 12 then it is showing error, as some machines still has Oracle 12 (Old) database. can someone please share the Oracle Data Provider (ODP.Net) compatibility details with Oracle Clients? 回答1: The error message does not indicate any incompatibility. Looks like the Oracle.ManagedDataAccess driver does not find your tnsnames.ora file Have a

Sql Script file (apex_epg_config.sql) is missing in Oracle Apex 20.2

风格不统一 提交于 2021-02-11 12:41:48
问题 I have Oracle Apex 20.1 Installed on Oracle Linux 6.10 Server with Oracle Database 12.2. Recently I am trying to update into Apex 20.2 but this script file (apex_epg_config.sql) is missing in zip folder. When I load the site then giving me this error: There is a problem with your environment because the Application Express files are not up-to-date! The files for version 20.1.0.00.13 have been loaded, but 20.2.0.00.20 is expected. Please verify that you have copied the images directory to your

How to tell which partition a row would go into, given a known partition key value in Oracle?

那年仲夏 提交于 2021-02-08 04:38:55
问题 CREATE TABLE foos ( batch_id NUMBER, creation_date DATE ) PARTITION BY RANGE (creation_date) SUBPARTITION BY HASH (batch_id) SUBPARTITION TEMPLATE ( SUBPARTITION H0, SUBPARTITION H1, SUBPARTITION H2, SUBPARTITION H3 ) ( PARTITION R0 VALUES LESS THAN (DATE'2018-04-01') ) ; CREATE INDEX foos_n1 ON foos (batch_id); INSERT INTO foos VALUES (1234, SYSDATE); INSERT INTO foos VALUES (1234, SYSDATE); INSERT INTO foos VALUES (1234, SYSDATE); INSERT INTO foos VALUES (1234, SYSDATE); If I know a batch

Are nested parentheses in the FROM clause valid Oracle SQL syntax?

别来无恙 提交于 2021-02-07 14:40:48
问题 Does this query use correct Oracle syntax? select * from ( ( ( dual a) ) ) where a.dummy = 'X'; It works in 11g and 12c but is it truly valid syntax? Or is this is just a compiler "mistake" that might be fixed in the future, causing the code the fail? I doubt this is the correct syntax for the following reasons: It doesn't seem to do anything other than add extra parentheses. Expressions like ((1+2)*3) can obviously benefit from nested parentheses but I don't see how they would ever help the

Are nested parentheses in the FROM clause valid Oracle SQL syntax?

こ雲淡風輕ζ 提交于 2021-02-07 14:39:29
问题 Does this query use correct Oracle syntax? select * from ( ( ( dual a) ) ) where a.dummy = 'X'; It works in 11g and 12c but is it truly valid syntax? Or is this is just a compiler "mistake" that might be fixed in the future, causing the code the fail? I doubt this is the correct syntax for the following reasons: It doesn't seem to do anything other than add extra parentheses. Expressions like ((1+2)*3) can obviously benefit from nested parentheses but I don't see how they would ever help the

Flag individuals that share common features with Oracle SQL

﹥>﹥吖頭↗ 提交于 2021-02-07 11:13:41
问题 Consider the following table: ID Feature 1 1 1 2 1 3 2 3 2 4 2 6 3 5 3 10 3 12 4 12 4 18 5 10 5 30 I would like to group the individuals based on overlapping features. If two of these groups again have overlapping features, I would consider both as one group. This process should be repeated until there are no overlapping features between groups. The result of this procedure on the table above would be: ID Feature Flag 1 1 A 1 2 A 1 3 A 2 3 A 2 4 A 2 6 A 3 5 B 3 10 B 3 12 B 4 12 B 4 18 B 5 10