Oracle constraints not enabled - oracle

In one of my Oracle databases, I tried to enable some constraints on a particular table. It shows that the table is altered and no error is showed.
When I query all_constraints, the constraint is disabled. I tried this several times but i got the same issue. On another database it's working fine. It sounds weird to me.

Related

When will camunda executeAsync() actually run

I am not clear how the executeAsync works in Camunda 7.15.0 version.
Using Java code in spring-boot application, I am trying to migrate few process instances from one process version to another using migration plan.
In java code when I use execute() method then the code is obviously executed immediately.
import org.camunda.bpm.engine.RuntimeService;
final MigrationPlan migrationPlan = runtimeService.createMigrationPlan(fromProcessDefinitionId, toProcessDefinitionId).mapEqualActivities().build();
final ProcessInstanceQuery processQuery = runtimeService.createProcessInstanceQuery().processDefinitionId(fromProcessDefinitionId);
runtimeService.newMigration(migrationPlan).processInstanceQuery(processQuery).executeAsync();
But When I use executeAsync() method then I see the batch job waiting in the batches section but does not complete. How to know when will it execute?
Issue can be recreated in https://github.com/firstpostt/camunda-demo-migration. It needs postgres database and credentials need to be given in application.yml
There is an entry in act_ru_batch table. I don't see any entry in act_ru_job table
Can I configure in bpm-platform.xml file to make sure my migration plan runs within next 15 minutes when I use executeAsync() method?
Is there any option to force-trigger the batch from the admin cockpit when needed?
Found the problem. The issue was with Postgres database but I am not sure what is the exact root cause because the issue is not easy to recreate. I dropped the database and created it again from scratch which seems to resolve the issue (I used the same sql scripts again using flyway so nothing changed w.r.t database schema. The only difference I can think of is that after some data is populated already into the tables then I created the unique constraint on camunda tables which might have caused the issue. Now I created unique constraint immediately before populating any data into the tables)
P.S:
I was using unique constraint in postgres Database https://docs.camunda.org/manual/7.5/user-guide/process-engine/database/#additional-database-schema-configuration
I figured out that the issue was with database because I tried with h2 filesystem database(camunda.bpm.database.schema-update as true and spring.datasource.url=jdbc:h2:~/camunda;DB_CLOSE_ON_EXIT=false) and batch worked fine.
Then I used postgres database (without the unique constraint script) and batch worked fine. When I created a new database schema with the unique constraint script then the batch did not work and even if I dropped the constraint the batch did not work anymore
So I dropped the database and created a new database again without unique constraint and then the batch worked fine. After that I added the unique constraint and the batch still works fine.
I am not able to recreate the issue consistently but my guess is that it has something to do with the unique constraint. If you are not using this unique constraint then I am sure that this problem will never occur at all

Datagrip - table names do not appear when clicking on schema names in left-hand panel

I recently installed Datagrip to view my Company's Postgres database, however I am currently unable to view the tables in the different schemas by clicking on the schema name:
In the image, I've clicked to open and show the ab-testing schema, however nothing appears below it. This behavior is consistent across all of the schemas in the database. I am able to use the query editor to query tables in the schemas (assuming i know the table names), yet I cannot see the names in the left-side panel. I am using datagrip 2020.2
Thanks!
I had the same problem with a MySQL database. As a test, I used the MariaDB driver instead of the MySQL driver as usual. This was intentional and not an oversight, but it was not a good idea!
The tables, views and server objects were not displayed. Although I was able to display the tables and views after activating Schema Properties -> Advanced -> "Introspect using JDBC metadata", the server objects were not displayed. Working with the displayed tables and views was not possible in the usual way.
Only when I used the MySQL driver again, everything worked correctly again. The tables, views and server objects were displayed correctly and the work with it was possible in the usual way.
As a small quintessence I would like to recommend to all who "struggle" with similar problems to check your chosen drivers. Maybe the problem is caused by choosing the wrong driver, as it was in my case.
Whick kind of message do you get when instrospecting the schema?
I had a java.io.CharConversionException caused by a not valid UTF-8 string.
If this is the case, you can add the following VM option -Ddb2.jcc.charsetDecoderEncoder=3.

Strange situation with Oracle RAC database

We had a very unusual situation at work. Giving a bit of context first, the setup is: we have a Java application, using Spring Boot and Hibernate, connected to an Oracle RAC database.
We added an item to one of the database tables using that application. We could SELECT this object, and we could UPDATE it... but only for a couple of minutes. Then it simply vanished.
We though it could have been removed by someone, but according to the DBA logs, there wasn't any INSERT in that table during that whole day; although, the person which added the item happened to be recording her screen, so we know for sure that it happened, and when it happened.
How could this situation happen? There were no errors in the application logs indicating that there could have been an error during commit. And during the times we updated the item, it had to be listed first, using a SELECT.
Also, we never had a situation like that one before, and we have been using that same database, and that same application, together, for over a year.
In case I missed any relevant details, just ask.

Apex/Oracle: When creating a new page, the tables I've created won't show up

I am creating an application in Oracle for a piece of coursework.
I've been using it for a few weeks and have just come across an issue;
I need to submit this on friday, and it's a mess, so I created a new application and tried to add a new page, but none of the tables that I have created are available to choose... I've tried dropping all my previous tables and objects etc. and then re-inserted everything back in. My SQL queries etc work fine.
All of my tables appear in the SQL Browser. I've even tried creating a new application a few times and trying different combinations of thing, but to no avail.
I have searched and searched google and online help for Oracle etc, but with no results
I am using my Universitys local oracle apex, but this is happening on the normal apex as well....
Any help would be appreciated... freaking out as this is due in less than 2 days!
After consulting one of my lectures, he informed me that as I am referencing an object table, that they won't show up on the drop down list - you need to reference it using SQL instead

ORA-00942: table or view does not exist (ColdFusion application)

I have a ColdFusion 10 application with an Oracle 11g backend.
The Production version works fine. Recently, I had the Oracle DBAs refresh the Test database from Production. Now, I receive the ORA-00942: table or view does not exist error.
All the tables are there when I use SQLPlus and the queries run fine. I am at a loss as to what to check now. The trace sends me to the query that is running fine in SQLPlus. What have I missed?
Update - 17 October 2014
I don't know if it makes any difference, but the line throwing the code is the 1st one here:
`<cfquery name="getWebMaster" datasource="xxxxtest">
select * from users where secureuserid in (select secureuserid from hd_role where webmaster='Yes')
and userstatus='Active' and UserLevel='XXX/XXIT'
</cfquery>`
That means that the entire cfquery section is the error, or just the 1st line? BTW, I think I've figured out how to imbed code. Thanx!
There is only one thing I can think of. The user that you used to run the application/script in your testing environment, and the permission that particular user has - it missed some privileges, so it can not see certain things even though they are there.

Resources