ORA-01031: insufficient privileges in Forms [message #672121] |
Wed, 03 October 2018 07:51 |
|
RaShi.Raj
Messages: 84 Registered: May 2014 Location: Bangalore
|
Member |
|
|
Hi all,
I have new table (my_table) used in a new form which is given all required grants and privileges. When forms user, same as oracle user ( user1 ) tries to enter some data in forms and save, forms throw error 'ORA-01031 - Insufficient Privileges' while executing INSERT INTO statement.
If I login to oracle via back end as the same user (user1) and run the same INSERT statement, it is successfully executed.
Any idea what is happening in forms ?
Thanks,
Rashi
|
|
|
Re: ORA-01031: insufficient privileges in Forms [message #672124 is a reply to message #672121] |
Wed, 03 October 2018 08:23 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
Maybe there is a forms trigger that is trying to use another table or worse, a database trigger that is does not have access to a table.
I hope you are not using an INSERT INTO in the code of the form to insert into the table the block is based on, because that is not how forms works.
|
|
|
|
|
|
|
Re: ORA-01031: insufficient privileges in Forms [message #672131 is a reply to message #672125] |
Wed, 03 October 2018 12:45 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
RaShi.Raj wrote on Wed, 03 October 2018 09:42Hi Joy,
I'm using "insert into table_1...." which is not used as a DB block. If there a is database trigger that does not have access to a table then INSERT via back end should also throw this error right?
Good point, but...after reading further in this posting, you said it happens at a client site that you do not have access to. If so, then how do you know a regular insert works?
Differences in environments can have any of the following:
different roles
different grants
etc.
You would have to compare everything between the tow environments
|
|
|
|
|
Re: ORA-01031: insufficient privileges in Forms [message #672139 is a reply to message #672137] |
Thu, 04 October 2018 03:19 |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
I'd try my test first.
I think forms can work with roles, but I'm not sure and can't check.
As stated above, something has to be different between failing system and the working test - user, privs or code.
Does the insert use any functions?
Are you absolutely sure it's the insert that throws that error rather than some other code?
|
|
|
|
|
|
|
Re: ORA-01031: insufficient privileges in Forms [message #672159 is a reply to message #672148] |
Thu, 04 October 2018 08:31 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
There would be no difference between for 6i, 11g or 12c as far as needed privileges. It has nothing to do with Forms. Forms runs a a user, sqlplus runs as a user. Forms can be seen as a front-end to sqlplus. Yes, there are difference as to what can be done in forms vs sqlplus, but as far as privileges, no difference.
|
|
|
|