Welcome to plsql4all.blogspot.com SQL, MYSQL, ORACLE, TERADATA, MONGODB, MARIADB, GREENPLUM, DB2, POSTGRESQL.

Monday, 29 January 2024

20 Frequently faced Errors in Oracle

1. ORA-00904

   - Description: Invalid identifier.

   - Solution: Check for typos in column or table names.

 

2. ORA-12154

   - Description: TNS: could not resolve the connect identifier specified.

   - Solution: Verify the correctness of the TNS entry in the connection string.

 

3. ORA-01017

   - Description: Invalid username/password; logon denied.

   - Solution: Double-check and provide the correct username and password.

 

4. ORA-00942

   - Description: Table or view does not exist.

   - Solution: Ensure the table or view exists and the name is spelled correctly.

 

5. ORA-12514

   - Description: TNS: listener does not currently know of the service requested in connect descriptor.

   - Solution: Verify the database service name and ensure the listener is running.

 

6. ORA-02291

   - Description: Integrity constraint violated.

   - Solution: Resolve issues with foreign key constraints.

 

7. ORA-04030

   - Description: Out of process memory.

   - Solution: Adjust memory parameters or investigate memory usage.

 

8. ORA-01403

   - Description: No data found.

   - Solution: Handle the no-data-found condition in PL/SQL code.

 

9. ORA-01722

   - Description: Invalid number.

   - Solution: Check for data type mismatches in numeric operations.

 

10. ORA-12170

    - Description: TNS: connect timeout occurred.

    - Solution: Check network connectivity and adjust timeout settings.

 

11. ORA-06512

    - Description: At line nnn.

    - Solution: Identify and fix errors at the specified line in PL/SQL code.

 

12. ORA-04088

    - Description: Error during execution of trigger.

    - Solution: Review and fix errors in the trigger code.

 

13. ORA-01422

    - Description: Exact fetch returns more than requested number of rows.

    - Solution: Refine queries to fetch a single row.

 

14. ORA-01031

    - Description: Insufficient privileges.

    - Solution: Grant the necessary privileges to the user.

 

15. ORA-01843

    - Description: Not a valid month.

    - Solution: Check date formats in SQL queries.

 

16. ORA-00911

    - Description: Invalid character.

    - Solution: Correct syntax errors in SQL statements.

 

17. ORA-02292

    - Description: Integrity constraint violated - child record found.

    - Solution: Ensure foreign key constraints are satisfied.

 

18. ORA-04021

    - Description: Timeout occurred while waiting to lock object.

    - Solution: Investigate and address lock contention issues.

 

19. ORA-01400

    - Description: Cannot insert NULL into.

    - Solution: Provide a non-NULL value for the column.

 

20. ORA-01000

    - Description: Maximum open cursors exceeded.

    - Solution: Close unused cursors or increase OPEN_CURSORS parameter.


No comments:

Post a Comment

Please provide your feedback in the comments section above. Please don't forget to follow.