Distributed transaction in Oracle ( Over Oracle DBLink)
- ORA-20000: ORA-01403: no data found: This procedure cannot continue because. ORA-20005: ORA-02021: DDL operations are not allowed on a remote database.
- ORA-02011: duplicate database link name Cause You tried to create a database link (using the CREATE DATABASE LINK command), but a link with that name already exists.
- ORA-00942: table or view does not exist SQL grant select on emp@scott.testlink to test; grant select on emp@scott.testlink to test. ERROR at line 1: ORA-02021: DDL operations are not allowed on.
ORA-02021: DDL operations are not allowed on a remote database Message: Have been requested to create a user who can select only a few tables on another database. Has different users but the important is ESCHER. Question: I am getting this ORA-02021 error: ORA-02021: DDL operations are not allowed on a remote database. Answer: The oerr utility says this about the ORA-02021 error: ORA-02021: DDL operations are not allowed on a remote database. Cause: An attempt was made to use a DDL operation on a remote database.
Ora 02051
Learn the cause and how to resolve the ORA-02291 error message in Oracle.
Description
When you encounter an ORA-02291 error, the following error message will appear:
- ORA-02291: integrity constraint <constraint name> violated - parent key not found
Cause
You tried to reference a table using a unique or primary key, but the columns that you listed did not match the primary key, or a primary key does not exist for this table.
Resolution
The option(s) to resolve this Oracle error are:
Option #1
This error commonly occurs when you have a parent-child relationship established between two tables through a foreign key. You then have tried to insert a value into the child table, but the corresponding value does not exist in the parent table.
To correct this problem, you need to insert the value into the parent table first and then you can insert the corresponding value into the child table.
For example, if you had created the following foreign key (parent-child relationship).
Then you try inserting into the products table as follows:
Ora 02019 Error
You would receive the following error message:
Since the supplier_id value of 5000 does not yet exist in the supplier table, you need to first insert a record into the supplier table as follows:
Ora-02021 Dblink
Then you can insert into the products table: