SQL Language (MOSC)

MOSC Banner

ODP.Net - OracleBulkCopy - ORA-01031: insufficient privileges when inserting into object of schema o

edited Oct 5, 2011 3:54PM in SQL Language (MOSC) 1 commentAnswered
Troubleshooting Details:

If am I logged in as the owner "CVA" I am able to perform the BCP without any issue.  If I login as another user with INSERT rights to the table it fails with the error below.  I am fairly sure the permissions are configured correctly as I am able to BCP the data using the SqlLdr utility successully when logged in as a user other than CVA.

Example Code:

using (OracleBulkCopy bcOra = new OracleBulkCopy(cnnOra))
{
     bcOra.BulkCopyTimeout = 30;
     bcOra.DestinationTableName = "CVA.RT_SKILL_TEMP";
     bcOra.WriteToServer(drOdbc);
}

Full Exception:

Oracle.DataAccess.Client.OracleException ORA-01031: insufficient privileges    at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center