Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

add Validation when inserting in ADF table

User_7TK0DAug 23 2022 — edited Aug 23 2022

Hello,
I need some help.
I'm a newbie and I'm using JDeveloper 12.2.1.4.0.
How can I add validation in ADF table when inserting? My requirement was if the status of the person number is NEW and PENDING with same cycle, it will not insert to avoid duplication and it will insert only if the status is already set to PROCESSED
For example,
The UI page
image.pngclicked the create button
image.pngafter inputting the data, when I click save button it should not insert because the person number and the cycle is already existing the table
image.pngimage.png
This is the functionality of the buttons
image.png
Thank you.

This post has been answered by Timo Hahn on Aug 23 2022
Jump to Answer

Comments

Brian Bontrager

It sounds like all the data will remain where it is, but ONLY the EX schema will move to a remote instance, but need data in the original instance?  Am I understanding your situation correctly?

what is the best way to "repoint" our code without make changes?

"Repoint"ing your code is, by definition, making changes. You won't avoid the testing.

is it possible not use DB links?

If you move EX to a different instance and need data from the original you will, by necessity, use database links.

then create a synonym to the schema (the whole schema not to a specific schema object)

What syntax have you tried to do that? Synonyms point to specific objects.

We don't want to modify our PL/SQL code because that implies execute long testings, many hours of effort...

Whether you modify PL/SQL directly to reference tables over a link or you leave code the same and create synonyms to objects over database link, you still need full regression testing to make sure everything works as expected, and to learn what performance degradation you can expect in such an arrangement.

The business justification to move the schema should include the cost of testing in the cost-benefit analysis used to determine whether to make this significant system change.

Is it possible to block or "hide" (disable) the EX schema in the current DB and then use the new schema (remote database)?

Revoke all privileges on the objects in EX.

unknown-7404

We have an Oracle DB 11gR2 which is used to store the EBS data.

Inside that DB, we also have a schema called EX to store our custom tables, views, etc...

Many of our developments (PL/SQLs, APEX) use the EX schema objects.

Ok - so far so good.

Our boss has requested to separate the EX schema, I mean, export the EX schema and import it into a new Oracle DB.

And here is where it all goes bad.

1. WHY? We can't help you with solutions without knowing and understanding the actual PROBLEM. Tell us what PROBLEM your 'boss' is trying to solve. Also tell us WHY your 'boss' chose whatever solution it is that you are talking about.

2. You can't 'separate' a schema. A schema is a single, indivisible object. So tell us what this means to you. Nothing in your statement implies 'separate'; it suggests that you still intend to use that same schema with the same objects but, for some bewildering and unknown reason, your 'boss' wants the schema on a different database.

We don't want to modify our PL/SQL code because that implies execute long testings, many hours of effort

If someone has suggested to you that your proposed changes will NOT require complete retesting then they are delusional. Ask them to seek help ASAP - there are some good medications that can help them adjust to, and cope with, reality. That reality is that EVERYTHING in that application will need to be thoroughly tested.

Code and queries that execute across database links with typically work differently and sometimes will not work at all. It all depends on what the code/queries do and whether they use object types. Execution plans will change.

... what is the best way to "repoint" our code without make changes? is it possible not use DB links?

The 'best' way, IMHO, is to NOT do it at all. If you even have to ask about NOT using DB links to communicate between two different databases then you have a serious problem on your hands. That question means that whoever came up with this plan doesn't understand the issues involved and/or how your code works.

Totally unmentioned (and unconsidered) are the substantial changes to the backup/recovery/archive processes and procedures that are being used. Those will be radically different in a two-database application that for a single database.

I suggest that your 'boss' put this plan on hold and, instead, request the creation of a functional requirements document. That document should have sections for:

1. Current architecture, SLAs, data volumes, performance metrics,

2. Problems/Issues/limitations with the current architecture

3. Specific goals for mitigating/eliminating the problems/issues/limitations in #2 above

4. Timeline for development, testing and rollout

Only AFTER that document has been completed and SIGNED OFF by the business users and your 'boss' can you even begin to consider the potential solutions that might be applicable.

1 - 2

Post Details