﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals / Oracle Forum / ORA - Oracle Database Error Codes - Search via specific error codes. / ORA-00000 Through ORA-09989   / ORA-01031 Insufficient privileges / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals</description><link>http://www.franklinfaces.com/</link><webMaster>no-reply@FranklinFaces.com</webMaster><lastBuildDate>Thu, 09 Sep 2010 14:38:06 GMT</lastBuildDate><ttl>20</ttl><item><title>ORA-01031 Insufficient privileges</title><link>http://www.franklinfaces.com/Topic138-54-1.aspx</link><description>&lt;FONT color=#3333dd&gt;&lt;STRONG&gt;I had a user that was getting the following ora error message while creating a table in another user's schema:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT color=#113333&gt;&lt;STRONG&gt;ORA-01031 Insufficient privileges&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;&lt;STRONG&gt;When i looked it up this is what oracle suggests:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#113333&gt;&lt;EM&gt;01031, 00000, "insufficient privileges"&lt;BR&gt;// *Cause: An attempt was made to change the current username or password&lt;BR&gt;//         without the appropriate privilege. This error also occurs if&lt;BR&gt;//         attempting to install a database without the necessary operating&lt;BR&gt;//         system privileges.&lt;BR&gt;//         When Trusted Oracle is configure in DBMS MAC, this error may occur&lt;BR&gt;//         if the user was granted the necessary privilege at a higher label&lt;BR&gt;//         than the current login.&lt;BR&gt;// *Action: Ask the database administrator to perform the operation or grant&lt;BR&gt;//          the required privileges.&lt;BR&gt;//          For Trusted Oracle users getting this error although granted the&lt;BR&gt;//          the appropriate privilege at a higher label, ask the database&lt;BR&gt;//          administrator to regrant the privilege at the appropriate label.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;&lt;STRONG&gt;However, this didn't solve my problem.   I gave the user the following privileges and still didn't work:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#113333&gt;grant select any table to &amp;lt;user&amp;gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#113333&gt;grant drop any table to &amp;lt;user&amp;gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#113333&gt;grant create any table to &amp;lt;user&amp;gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;&lt;STRONG&gt;After doing this, still the user was having issues when logging in through his application via odbc connection.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;&lt;STRONG&gt;After many tries, and research I granted all to the tables he was using :&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#113333&gt;&lt;EM&gt;grant all on &amp;lt;schema&amp;gt;.&amp;lt;table_name&amp;gt; to &amp;lt;user&amp;gt;;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;&lt;STRONG&gt;and then also did the following:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#113333&gt;&lt;EM&gt;grant references on &amp;lt;schema&amp;gt;.&amp;lt;table_name&amp;gt; to &amp;lt;user&amp;gt;;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;&lt;STRONG&gt;That did the trick.  I hope this helps you out as well.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color=#3333dd&gt;If that didn't work my last resort was to grant dba to the user.   Which I didn't want to do because that was just way too much privilege for him.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color=#3333dd&gt;Thanks,&lt;/FONT&gt;&lt;/STRONG&gt;</description><pubDate>Thu, 09 Jul 2009 14:20:34 GMT</pubDate><dc:creator>Admin</dc:creator></item></channel></rss>