gives error of insufficient privileges creating triggers

Hi all


I am facing the problem of insufficient privilege on the base tables when creating triggers. I said three diagrams A, B, C in my database.

Base tables are in the schema A. I gave all subsidies on the base table to the schema B and C.

grant all on base_table_name to B;
grant all on base_table_name to C;

I created synonym also on this base table.

And I m creating triggers in the schema B.

When I run the query to trigger computer giving following error:


+ AFTER INSERT OR UPDATE OR DELETE ON BASE_TBALE_NAME * +.
ERROR at line 3:
ORA-01031: insufficient privileges


even I checked in dba_tab_privs for this base_table... is to show all grants the user B and C.

What should I do now?
Please suggest...


Kind regards
Andy.

The thing is that to create a trigger in your own schema on a table in your schema, you must have the trigger system privilege to create, to create a trigger in any schema on a table in a diagram, like SCOTT. SCHEMA, you must create any trigger system privilege, also to create a trigger on the database, you must have the privilege of database trigger system administer...

and don't give any privileges on the base unnecessarily tables, you don't need them... you just have to create any trigger for IT... Why give all the base tables...

because when you give everything on the base tables give them unnecessarily FLASHBACK, DEBUG, QUERY REWRITE, WE COMMIT REFRESH, REFERENCES, UPDATE, SELECT, INSERT, INDEX, DELETE, ALTER privileges

Concerning
Karan

Published by: Karan on July 25, 2012 12:22

Tags: Database

Similar Questions

  • Error of insufficient privileges on the creation of model running in a stored procedure

    Hello

    I get the error of insufficient privileges on execution of the DBMS_DATA_MINING. Script CREATE_MODEL in a stored procedure.

    If I run the same DBMS_DATA_MINING. Script CREATE_MODEL in an anonymous block with just begin... end;

    I am able to create a model successfully, but if I do the same thing after having stored the script in the stored procedure, it is throwing error of insufficient privileges.

    Scripts:

    BEGIN

    DBMS_DATA_MINING. () CREATE_MODEL

    Model_name = > < template name >

    mining_function = > dbms_data_mining. CLASSIFICATION,

    DATA_TABLE_NAME = > < data table name >

    CASE_ID_COLUMN_NAME = > < case ID >

    target_column_name = > < target column >

    SETTINGS_TABLE_NAME = > < settings table >

    DATA_SCHEMA_NAME = > < schema >

    SETTINGS_SCHEMA_NAME = > < schema >

    );

    END;

    The foregoing, works very well and created a model with the model given with success.

    But if I keep the above, in a stored procedure as - MINING_TESTING

    create or replace procedure MINING_TESTING as

    BEGIN

    DBMS_DATA_MINING. () CREATE_MODEL

    Model_name = > < template name >

    mining_function = > dbms_data_mining. CLASSIFICATION,

    DATA_TABLE_NAME = > < data table name >

    CASE_ID_COLUMN_NAME = > < case ID >

    target_column_name = > < target column >

    SETTINGS_TABLE_NAME = > < settings table >

    DATA_SCHEMA_NAME = > < schema >

    SETTINGS_SCHEMA_NAME = > < schema >

    );

    END;

    Compiles correctly.

    Enforcement - EXEC MINING_TESTING;

    Error message throw sufficient privileges.

    The error message complete below:

    Error report:

    ORA-01031: insufficient privileges

    ORA-06512: at "SYS." DBMS_DATA_MINING', line 1798

    ORA-06512: at "MIS_ORABI_ODM.CA_MINING_TESTER", line 3

    ORA-06512: at line 1

    01031 00000 - "insufficient privileges".

    * Cause: An attempt was made to change the user name or password

    without the privilege appropriate. This error also occurs if

    trying to install a database without the need for employment

    access privileges.

    When Trusted Oracle is configure in DBMS MAC, this error may occur

    If the user has been granted the privilege necessary for a higher label

    that the connection is active.

    * Action: Ask the database to perform the operation or grant administrator

    the required privileges.

    For users Trusted Oracle get this error, well that granted the

    the privilege that is suitable for the top label, ask the database

    administrator to grant the privilege to the appropriate label.

    Hello

    DataMiner UI grants privileges to a role, so if you're depending on these privileges you must proceed as follows when you create a stored procedure.

    Your stored procedure was created with the default authid which is definers. It will not use the privileges for the role. Solution is to create the stored procedure with authid current_user. This will pick up the privileges for the role. Another option is to apply the following subsidies directly to the user account:

    grant CREATE MINING MODEL

    CREATE THE TABLE,

    IN ORDER TO CREATE

    Example of stored procedure:

    create or replace procedure MINING_TESTING AUTHID CURRENT_USER as

    BEGIN

    DBMS_DATA_MINING. () CREATE_MODEL

    MODEL_NAME =>

    mining_function-online dbms_data_mining. CLASSIFICATION,

    DATA_TABLE_NAME =>

    CASE_ID_COLUMN_NAME =>

    target_column_name =>

    SETTINGS_TABLE_NAME =>

    DATA_SCHEMA_NAME =>

    SETTINGS_SCHEMA_NAME =>

    );

    END;

    Thank you, Mark

  • ORA-01031: error of insufficient privileges when I try to use ALERT_QUE

    Hello
    I'm working on SYS. ATTENTION. THAT for system alerts. I use ODP in c# to connect to the Oracle database with username = SYSTEM, but when I try to survey or deque any message from SYS. ATTENTION. Que., its gives an error ORA-01031: insufficient privileges. I am not able to understand how to assign SYSDBA privileges to the SYSTEM and access ALERT_QUE to get alerts of system. I write my code below, please take a look and let me know what is wrong with the code. I am able to connect to the database using the SYSTEM, do I have to use username = SYS for access to the content database ALERT_QUE? Please let me know what is the solution.


    Con OracleConnection = new OracleConnection (constr.);

    Create the queue
    Queue OracleAQQueue = new OracleAQQueue ("sys.alert_que", con);

    Open connection
    con. Open();

    BEGIN txn for enqueue
    OracleTransaction txn = con. BeginTransaction();

    Set the type of message to the queue
    queue. MessageType = OracleAQMessageType.Raw;

    Prepare the message and payload BRUTE
    OracleAQMessage enqMsg = new OracleAQMessage();
    Byte [] bytePayload = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
    enqMsg.Payload = bytePayload;
    Agent [] OracleAQAgent = new OracleAQAgent [1];

    Agent [0] = new OracleAQAgent ("SUBSCRIBER1");
    enqMsg.Recipients = agent;
    enqMsg.SenderId = new OracleAQAgent ("SENDER1");

    Prepare for the queue
    queue. EnqueueOptions.Visibility = OracleAQVisibilityMode.OnCommit;

    Message from the queue
    queue. Enqueue (enqMsg);


    The code throws the exception to the line "queue. Enqueue (enqMsg); "saying: ORA-01031: insufficient privileges

    Published by: 916462 on February 27, 2012 03:31

    You are looking for a connection preferred, which means that you must connect as SYSDBA
    Check this doc on how to do it.
    http://docs.Oracle.com/CD/B19306_01/win.102/b14307/featConnecting.htm

  • MAXL drop database fails - ERROR - 1051041 - insufficient privilege for this operation - with Application Manager

    Hello

    SSP database security.

    User and group are both part of the native repertoire, but also exists in the active directory configuration.

    I create a group.

    I set up the Group Application Manager for Application X

    I make A user a member of the Group

    User A runs a MAXL script; -

    Drop database X.Y;

    The drop falls down-

    For this operation, the insufficient privilege ERROR - 1051041 -.

    Essbase 11.1.2.2.

    Is this a bug?

    Is there a solution?

    Thank you

    Robert.

    Robert, read Cameron link I see this:

    "An Application Manager can remove only the applications and databases that he created."

    Leaving aside the question of whether this applies also to female users, this is probably your problem, is it not?

  • Security of ADF, added then I get error of insufficient privileges during validation.

    I was using a database user, then I have no error. After the addition of security of the ADF and the weblogic user, I got the following error message. Please suggest me, how to solve this error.

    < MethodExpressionActionListener > < processAction > received 'javax.faces.event.AbortProcessingException' when calling listener action "#{bindings.Commit.execute}" to the component 'cb4 '.

    < MethodExpressionActionListener > < processAction > javax.faces.event.AbortProcessingException: ADFv: interrupt exception.

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:199)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at com.sun.el.parser.AstValue.invoke (unknown Source)

    at com.sun.el.MethodExpressionImpl.invoke (unknown Source)

    at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)

    at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148)

    at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:824)

    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:130)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:130)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)

    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)

    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:973)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    < Utils > < buildFacesMessage > ADF: addition of the JSF error message: ORA-01031: insufficient privileges

    java.sql.SQLSyntaxErrorException: ORA-01031: insufficient privileges

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1512)

    at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:172)

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:432)

    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8518)

    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6745)

    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)

    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)

    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)

    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)

    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)

    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)

    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)

    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:185)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at com.sun.el.parser.AstValue.invoke (unknown Source)

    at com.sun.el.MethodExpressionImpl.invoke (unknown Source)

    at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)

    at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148)

    at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:824)

    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:130)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:130)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)

    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)

    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:973)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    < Utils > < buildFacesMessage > ADF: addition of the JSF error message: ORA-01031: insufficient privileges

    java.sql.SQLSyntaxErrorException: ORA-01031: insufficient privileges

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1512)

    at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:172)

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:432)

    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8518)

    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6745)

    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)

    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)

    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)

    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)

    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)

    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)

    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)

    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:185)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at com.sun.el.parser.AstValue.invoke (unknown Source)

    at com.sun.el.MethodExpressionImpl.invoke (unknown Source)

    at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)

    at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148)

    at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:824)

    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:130)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:130)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)

    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)

    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:973)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    All communications of the db is made via the connection db defined in your application. Here, you set the user who speaks of the db. If this user has the power to hire you should be able to commit. You can use security adf to grant the insert, update, and delete on EO in your application to roles that belongs to the user of your application. I you have not done so each user of the application should be able to commit.

    Timo

  • ORA-01031: insufficient privileges - creating a Package

    Hai,

    11.2.0.4 Linux

    SQ

    I can access all objects in the creation script and it works fine...

    No idea

    I'm sure if you searched this forum for "insufficient privileges" you would have found as 100 entries with the solution in it.

    Inside the package, grants you have received a role do not work... you must direct subsidies unless the package is a package of the Summoner.

    HTH

  • Error 1303: Insufficient Privileges

    I tried to install this on a Win7x64 and also a Win10x64 computer with the same results. I am the administrator of the computer. I am the only user of the computer. The file that I use is VMware-converter-en - 6.0.0 - 2716716.exe. I tried to run upward and also by clicking right and running it as an administrator. Same results.

    Advice/suggestions would be greatly appreciated.

    vm.jpg

    Hi theire,.

    Strange HM. normally administrators accessing this ProgramData.

    could you please check the permissions directly? Also the advanced permissions.

    Worst case is that the ACL is damaged and it takes reforced this folder recursively.  (with icacls).

    What about the UAC?  you started Setup with "Run as Administrator"?

    THX

    Max

  • insufficient privileges when you create sequence using the procedure

    CREATE OR REPLACE PROCEDURE schema1.proc1 AS
    BEGIN
    EXECUTE IMMEDIATE 'DROP SEQUENCE schema1.add_ins_seq';
    EXECUTE IMMEDIATE 'CREATE SEQUENCE schema1.add_ins_seq MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 1000 NOORDER  NOCYCLE';
    END;
    

    This procedure is created to schema1 by schema1.

    Schema1 boasts a CREATE SEQUENCE privilege.

    When I run this procedure through SQL Developer after the Cup to schema1, the error is thrown in insufficient privilege to CREATE SEQUENCE, however, DROP SEQUENCE is executed. I can create the sequence without the procedure call.

    If I add AUTHID CURRENT_USER so I don't get the error of insufficient privileges.

    Why it gives this error when the owner and the applicant of the procedure is schema1?

    Hello

    1st thing to know: when a procedure is defined (and updated), any privileges granted through ROLE is not taken into account. This is because these privileges can be active or not at the level of the session (as happens if for example a user has active 'role A' in session 1 but not in session 2 and if this role has been used to define a procedure?) The proecedure must at the same time be VALID in session 1 and INVALID session 2? Is not possible.

    Thus, for instance in a situation of 'standard': user SYSTEM has 'DBA Rôle', so you can for example make a sqlplus session "SELECT * v $ instance;", but you would write a procedure owned by system making instance_name SELECT INTO l_variable OF v$ instance;  "then"surprise": the procedure cannot be compiled because of the ORA-904 Table or view does not exist..." To be able to create the procedure, a DSS system needs to be done.

    2nd thing for your special case, a little more complex: default for a procedure is 'AUTHID DEFINE', but once more: it means "privileges of the author creating the procedure", so without taking into account the acquired privileges through roles... Your user name is 'sequence create' through a role, it cannot use the privilege within the procedure.  But... but when you define the procedure with AUTHID CURRENT_USER, privileges are evaluated at run time, and thanks to the active ROLE in the session by calling the procedure, at this time, the user can create the sequence.  If try again you but with 'The VALUE NONE ROLE' in the session before the call, you will again have the question.

    Conclusion: If you need to do the action, you must grant the user the necessary privilege directly.

    Best regards

    Bruno Vroman.

  • Target schema differs from the scheme of work: insufficient privileges

    I created a scheme of work called ODI_STAGE in the same database where is my target db.

    In topology about dataserver ODI I gave details of my scheme target (user) say ODI_Target.

    ODI_Target does not have the privileges on ODI_Stage.So during execution of mapping it throw error saying insufficient privilege.

    Please let me know how to solve this and what a privilege to command that I need to run?

    Thanks Prashant da Silva and Aramast Oghiguian for your help and suggestions.

    What I did that I've given DBA privileges to ODI_STAGE and serving as ODI_STAGE the user to the database server target. In this way, got problem solved and my manager has been fine with it.

  • insufficient privileges when executing stored procedure

    Hello gurus,
    I'm new to plsql, working on a stored procedure.
    Basically, trying to create a temporary table by using the dynamic sql... Here is my code, the runtime, I'm encoutering error of insufficient privileges. not sure where I'm wrong. any help is appreciated, thanks

    -successfully - compiled code
    SQL > CREATE or REPLACE procedure stp_temp (i_table in varchar2)
    2 is
    3 table_creation_stmt varchar2 (4000): = ";
    4 start
    5
    6 table_creation_stmt: = 'CREATE of TABLE TEMPORARY GLOBAL' | i_table | ' AS select * from TABLE_STGG';
    7 dbms_output.put_line (' query is :'|| table_creation_stmt);
    8 execution immediate table_creation_stmt;
    9 end;
    10.

    Created procedure.

    SQL > exec stp_temp ('table123');
    Request: CREATE TEMPORARY TABLE global table123 AS select * from TABLE_STGG
    BEGIN stp_temp ('table123'); END;

    *
    ERROR on line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "E3US9T. STP_TEMP', line 8
    ORA-06512: at line 1


    -table gets created to copy/paste on top of the output (that is the query)

    SQL > CREATE GLOBAL TEMPORARY TABLE table123 AS select * from TABLE_STGG;

    Table created.

    Why the hell you create a TWG in a stored procedure?

    Create once and be done with it.

    To answer your question, your create table privilege granted to you via a role. Roles are not in pl/sql, you need the privilege granted to you directly.

  • Login Analytics gives insufficient privileges error page

    Hello Experts,

    I am new to OBIEE (and controlling). Completing the installation and I am able to connect to the console weblogic as em. But when I try to connect to Analytics using the link http://< host >: 7001/analytical, I land on a page with the error:

    Error on the link < host > http://: 7001/analytics

    Insufficient privileges. "Access homepage.

    Error details

    Error codes: C64RS3Z2

    The user is the same that I use to log 'em and weblogic console. All applications are on the rise in em

    I checked some links:

    1) insufficient privileges: this link asked Srini VIEREN change password in 2 places to get it even. I did this, but of no use.

    2) on Oracle support, I found this link: how to create A user who can work with Oracle knowledge Analytics OBIEE Reporting System? (Doc ID 1560120.1). I followed, created new analytical user according to the instructions but again had the same error.

    (3) nqserver.log gives no error:

    nqserver.log

    [2014 02-20 T 01: 07:07.000 + 00:00] [OracleBIServerComponent] [NOTIFICATION: 1] [] [] [ecid: ce647810d4459b12:2a96e3f1:1444e6b6c6a: - 8000-0000000000000093] [tid: c1c] user OBIS spent 68,000000 milliseconds for the http response when authenticateWithLanguage

    [2014 02-20 T 01: 07:07.000 + 00:00] [OracleBIServerComponent] [NOTIFICATION: 1] [] [] [ecid: ce647810d4459b12:2a96e3f1:1444e6b6c6a: - 8000-0000000000000093] [tid: c1c] user OBIS spent 1,000000 milliseconds for xerces parsing when authenticateWithLanguage

    [2014 02-20 T 01: 07:07.000 + 00:00] [OracleBIServerComponent] [NOTIFICATION: 1] [] [] [ecid: ce647810d4459b12:2a96e3f1:1444e6b6c6a: - 8000-0000000000000093] [tid: c1c] [nQSError: 13045] "weblogic" logged in as a user of the Security Service of BI.

    [2014 02-20 T 01: 07:07.000 + 00:00] [OracleBIServerComponent] [NOTIFICATION: 1] [] [] [ecid: ce647810d4459b12:2a96e3f1:1444e6b6c6a:-8000 - 00000000000000 has 4] [tid: c1c] user OBIS spent 32,000000 milliseconds for the http response when authenticateWithLanguage

    [2014 02-20 T 01: 07:07.000 + 00:00] [OracleBIServerComponent] [NOTIFICATION: 1] [] [] [ecid: ce647810d4459b12:2a96e3f1:1444e6b6c6a:-8000 - 00000000000000 has 4] [tid: c1c] user OBIS spent 1,000000 milliseconds for xerces parsing when authenticateWithLanguage

    [2014 02-20 T 01: 07:07.000 + 00:00] [OracleBIServerComponent] [NOTIFICATION: 1] [] [] [ecid: ce647810d4459b12:2a96e3f1:1444e6b6c6a:-8000 - 00000000000000 has 4] [tid: c1c] user BISystemUser spent 10,000000 milliseconds for the http response when getRoles

    [2014 02-20 T 01: 07:07.000 + 00:00] [OracleBIServerComponent] [NOTIFICATION: 1] [] [] [ecid: ce647810d4459b12:2a96e3f1:1444e6b6c6a:-8000 - 00000000000000 has 4] [tid: c1c] BISystemUser of the user spent 1,000000 milliseconds for xerces parsing when getRoles

    (4) nqquery.log:

    nqquery.log

    [2014 02-20 T 01: 07:07.000 + 00:00] [OracleBIServerComponent] [TRACK: 4] [USER-0] [] [ecid: ce647810d4459b12:2a96e3f1:1444e6b6c6a:-8000 - 00000000000000 has 4] [tid: c1c] [requestid: 39490001] [sessionid: 39490000] [username: BISystemUser] # []

    -Query SQL, logical query hash:

    6c7c547

    {call NQSGetGroups('NAME_PATTERN=*')}

    ]]

    (5) the user is assigned ALL privileges (administrators, BIAdministrators, AdminChannelUsers, AppTesters, BIAuthors, BIConsumers etc.).

    6) when I change the url of Analytics to hit the Admin page (http://< host >: 7001/analytics/saw.dll?) Admin), I see a warning: not allowed only administrators can view this page.

    I have searched and tried many things, but doesn't seem to work.

    Please let me know where I'm going wrong and how I can fix it.

    Thanks in advance!

    ADI-

    Remove the user weblogic to the folder of the user of the catalogue (online or offline) and then restart services and see how it goes

    or have it if above did not work

    do something... Create an empty folder catalog and copy the folders and system in this new catalogue and a restart it and log in with the user weblogic it will create user in the catalog folder

  • Creating the javax/activation/ActivationDataFlavor class error ORA - 01031: insufficient privileges

    Hi all

    I created mail.jar is correctly loaded in the database, but while loading activation.jar I get the following error.

    Version of Oracle 11.2.0.4.0 database.

    loadjava.bat u sys / * o - r - v f - noverify-synonym g public D:\EXCEL_ORACLE_DIR\activation.jar

    arguments: '-u' ' sys / *' 'o' '-r' '-v' '-f' '-noverify' '-synonym ' "-g' 'Public' 'D:\EXCEL_ORACLE_DIR\activation.jar'"

    creation: resource META-INF/MANIFEST. MF

    loading: resource META-INF/MANIFEST. MF

    creation: resource META-INF/mailcap.default

    loading: resource META-INF/mailcap.default

    creation: resource META-INF/mimetypes.default

    loading: resource META-INF/mimetypes.default

    creation: javax/activation/ActivationDataFlavor class

    loading: javax/activation/ActivationDataFlavor class

    Error when creating class javax/activation/ActivationDataFlavor

    ORA-01031: insufficient privileges

    ORA-06512: at line 1

    creation: class javax/activation/CommandInfo

    load: class javax/activation/CommandInfo

    Error when creating class javax/activation/CommandInfo

    ORA-01031: insufficient privileges

    ORA-06512: at line 1

    Something that I missed.

    Thank you all for your response.

    I connect sys as sysdba.

    I checked the sys schema which classes activation.jar is already there that is why it is showing error.

  • Creating master repository error: ORA-01031: insufficient privileges

    Hello

    I try to install ODI in my VM.

    I did the installation and creating master repository, I am getting following error:

    ORA-01031: insufficient privileges

    I'm using Oracle & created as ODI_MASTER user with administrator privileges.
    I will use it to load the metadata on planning (Version 11.1.2)

    Am I missing out on.

    Jitendra.

    Seems missing grants on the user that you use to create the master repository.

    you use Oracle... Grant connect, resource to . These two rolesa have sufficient access to db to create the master repository.

    execuute the sql code of the sys user

    Kind regards
    Amit

    Published by: amitgupta1202 on August 20, 2009 22:42

  • ORA-01031: insufficient privileges error?

    Hello

    I changed the password for user SYS and SYSTEM. I can connect before changing
    sqlplus "/ as sysdba" automatically.
    but now I can not connect and it gives me ORA-01031: insufficient privileges error.
    But if I type SYS user name and his password I can connect.

    for example:
    -------------------
    oradw@trdw1test:/ORCL/bin > sqlplus "/ as sysdba".

    SQL * more: version 9.2.0.8.0 - Production Thursday, May 26, 16:21:17 2011

    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

    ERROR:
    ORA-01031: insufficient privileges


    Enter the user name: sys as sysdba
    Enter the password:

    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64 bit Production
    With partitioning, OLAP and Oracle Data Mining options
    Release 9.2.0.8.0 - Production jserver

    SQL >
    -------------------------------

    I created the new password file, but still I can not connect. I checked the user of the OS, but we never touch any configuration.


    Could you please help me how can I solve this problem?

    DB version: 9.2.0.8

    greetings and thanks

    Check your sqlnet.ora file in ...db_1\NETWORK\ADMIN (default)

    If in file

    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # _authentication, they will not be able to connect to the database on NT._
    SQLNET.AUTHENTICATION_SERVICES = (NT)
    

    to take

    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    
  • Create table ORA-01031: insufficient privileges

    SQL > indicate user USER is 'TEST_RPT.

    SQL > CREATE TABLE mytest (id NUMBER); - it does not work

    CREATE TABLE mytest (id NUMBER)

    * ERROR at line 1: ORA-01031: insufficient privileges

    SQL > CREATE TABLE TEST_RPT.mytest (id NUMBER).

    Table created. SQL >


    SQL > select * from session_privs;

    PRIVILEGE

    ----------------------------------------

    ANY PROCEDURE DEBUG

    DEBUGGING SESSION CONNECT

    CREATE INDEXTYPE

    OPERATOR TO CREATE

    CREATE THE TYPE

    CREATE THE TRIGGER

    CREATE PROCEDURE

    CREATE SEQUENCES

    CREATE VIEW

    CREATE SYNONYM

    CREATE THE CLUSTER

    CREATE TABLE

    UNLIMITED TABLESPACE

    ALTER SESSION STATEMENT

    CREATE SESSION

    Try this:

    SELECT USER, SYS_CONTEXT('USERENV','CURRENT_SCHEMA') FROM DUAL;

    The two identical values? CURRENT_SCHEMA is what will determine the owner of the table you create, if you do not specify an owner.

    This can be changed by

    ALTER SESSION SET CURRENT_SCHEMA = whatever_you_want_it_to_be;

Maybe you are looking for