Results 1 to 4 of 4

Thread: Getting exception in SQL

  1. #1
    Join Date
    May 2008
    Posts
    69

    Getting exception in SQL

    Hi friends,

    I am getting error while running the below sql query:

    INSERT INTO Stud_Detail(stud_ID,stud_name,stud_address)VALUES(1,'DAJ06TABO.SAM, 'DAJ06TABO.LANA')
    When I trying to run below query I get below exception:

    "java.sql.SqlException: or A-28115: policy with violation of check option"


    but the thing is that the same query is running successfully in DBA.ADMIN.

    Please recommend me a way to sort out this exception and correct way to use this in DAJ06TABO.ADMIN.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Getting exception in SQL

    Dear friend,

    First I want to ask you a question, Do you have more than one domains? If yes,then let me know which domain is the agent in and which domain you was trying to insert the record to?

    I am asking you because I also had similar type of exception while using an agent to act on objects in another domain.

    And unfortunately I also haven't got right solution yet.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: Getting exception in SQL

    If you want my suggestion, The actual problem is not in accessing another domains or multiple domains.

    The actual cause of this i.e "java.sql.SqlException" exception is that your query is not proper according to the number of fields or formatting of fields in the database table.

    If you are trying provide less or more values, you will get the above exception and query won't execute successfully.

    I hope this information will work for you............

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Getting exception in SQL

    I don't have sound knowledge of the SQL .
    But I think you should check the datatype of fields of table with the datatype of values which you wanted to enter.

    Because if the this datatypes get mismatched you will definitely get the runtime error.

    This may solve your problem..........

Similar Threads

  1. Exception handling in PL/SQL
    By Ameeryan in forum Software Development
    Replies: 5
    Last Post: 25-02-2010, 11:04 PM
  2. Exception handling in EJB
    By KennedII in forum Software Development
    Replies: 5
    Last Post: 25-02-2010, 04:40 AM
  3. Exception Class
    By Triple-X in forum Software Development
    Replies: 3
    Last Post: 06-11-2009, 12:22 PM
  4. How to handle exception in VBA
    By afidelino in forum Software Development
    Replies: 3
    Last Post: 03-09-2009, 03:30 PM
  5. Unhandled exception
    By SeCTor 1 in forum Software Development
    Replies: 3
    Last Post: 25-10-2008, 03:02 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,401,752.33765 seconds with 16 queries