Error while selecting from a view ORA-01031: Insufficient privileges

As DBA I have granted select privileges on a view to a user, but whenever I login as that user and try to select from the view I get the message 'ORA-01031'. When I run the query in the view as the user I do not have problem and can see the results. This view joins tables from more than one schema and does a distinct on the resultset. I am new to Oracle and would appreciate any help I can get.
Thanks

Back on this problem when I created another user with select permission on the same view and a default role that has reference on all the objects on the other schemas, I end up with the same error message. Although this time the schema owner of the view has select privileges on all the tables from other schemas referenced in the view.
Thanks

Similar Messages

  • ORA-01031: insufficient privileges from auxiliary database while connecting

    i am getting this error ORA-01031: insufficient privileges from auxiliary database while connecting plz help.
    TNS-01106: Listener using listener name VINAR has already been started
    [oraclone@server VINTEST_server]$ tnsping VINAR
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 17-JAN-2013 19:10:49
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    /d04/oraclone/db/tech_st/11.1.0/network/admin/VINTEST_server/sqlnet_ifile.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=server.csacons.com)(PORT=1571)) (CONNECT_DATA= (SERVICE_NAME=VINAR) (INSTANCE_NAME=VINAR)))
    OK (0 msec)
    [oraclone@server VINTEST_server]$ rman target sys/change_on_install@VINAR auxiliary /
    Recovery Manager: Release 11.1.0.7.0 - Production on Thu Jan 17 19:11:38 2013
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04005: error from target database:
    ORA-01031: insufficient privileges
    [oraclone@server VINTEST_server]$ sqlplus sys/change_on_install@VINAR as sysdba
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Jan 17 19:31:52 2013
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    ERROR:
    ORA-01031: insufficient privileges
    Enter user-name: sys@VINAR as sysdba
    Enter password:
    ERROR:
    ORA-01031: insufficient privileges
    Enter user-name: [oraclone@server VINTEST_server]$
    [oraclone@server VINTEST_server]$
    SQL> select * from v$pwfile_users;
    no rows selected
    SQL>
    listner.ora
    SID_LIST_VINTEST =
      (SID_LIST =
        (SID_DESC =
          (ORACLE_HOME= /d04/oraclone/db/tech_st/11.1.0)
          (SID_NAME = VINTEST)
          #(GLOBAL_DBNAME = VINAR)
          #(ORACLE_HOME= /d03/oravnr/db/tech_st/11.1.0)
          #(SID_NAME = VINAR)
          (SID_DESC =
          #(ORACLE_HOME= /d04/oraclone/db/tech_st/11.1.0)
          #(SID_NAME = VINTEST)
          (GLOBAL_DBNAME = VINAR)
          (ORACLE_HOME= /d03/oravnr/db/tech_st/11.1.0)
          (SID_NAME = VINAR)
    tnsnames.ora
    VINTEST=
            (DESCRIPTION=
                    (ADDRESS=(PROTOCOL=tcp)(HOST=server.csacons.com)(PORT=1591))
                (CONNECT_DATA=
                    (SERVICE_NAME=VINTEST)
                    (INSTANCE_NAME=VINTEST)
    VINAR=
            (DESCRIPTION=
                    (ADDRESS=(PROTOCOL=tcp)(HOST=server.csacons.com)(PORT=1571))
                (CONNECT_DATA=
                    (SERVICE_NAME=VINAR)
                    (INSTANCE_NAME=VINAR)
    kind regards
    plz help

    Pl do not post duplicates - ORA-01031: insufficient privileges from auxiliary database while connecting

  • Error ORA-01031: insufficient privileges when backup via DB13

    Hi expert,
    Currently, I have system on SuSE 10 SP2 with ECC6 and Oracle 10.2 installed.
    Database backup works fine when using BRTOOLS from command line.
    Error like this :
    BR0278E Command output of 'SHELL=/bin/sh /oracle/I20/920_32/bin/rman
    nocatalog':
    Recovery Manager: Release 9.2.0.4.0 - Production
    Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.
    RMAN>
    RMAN> connect target /;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    ORA-01031: insufficient privileges
    RMAN> *end-of-file*
    happened when I try to schedule backup through DB13.
    I try to solved this with SAP Note 776505 but still doesn't work.
    Any suggestion ?
    ardhian

    Hi,
    Execute the following command at sql prompt.
    grant dba,resource,connect,sapdba to OPS$<SID>ADM  OPS$ORA<SID>
    grant dba,resource,connect,sapdba to O OPS$ORA<SID>
    grant dba,resource,connect,sapdba to  SAPSR3 or SAP<SID>(YOUR SCHEMA NAME)
    Also check owner of SAPUSER table
    SELECT OWNER FROM DBA_TABLES WHERE TABLE_NAME = 'SAPUSER';
    If it returns value OPS$<SID>ADM than its ok, otherwise you have to drop this & recreate with command
    CREATE TABLE "OPS$QASADM".SAPUSER
           (USERID VARCHAR2(256), PASSWD VARCHAR2(256));
            INSERT INTO "OPS$<sid>ADM".SAPUSER VALUES ('<sapowner>',
    '<password>');
    For more info go through the snote 400241
    [https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=400241]
    Thanks & Regards
    Karan

  • ORA - 01031: insufficient privileges from report region

    Hi All,
    I'm getting below error from report region query (2 on a page and both return same error):
    failed to parse SQL query
    ORA - 01031: insufficient privileges
    When I refresh page, it does not throw error and displays proper data. Can anyone please advice what could have gone wrong here?
    Thanks.

    Hi
    It would be easy to help you if you please provide the details about your environment like Database & Apex version.
    Is the query in your report region is using tables? Are they in the same schema which your application's workspace is based on? Or are you using some DB Link or views or querying data from some other schema?
    Also trying using Debug option in Apex to get some idea what's actually executing behind it? Try that query in SQL Plus/SQL Developer and see what you are getting?
    Zulqarnain
    MaxApex Hosting
    http://www.maxapex.com

  • Error with fullonline_backup (ORA-01031: insufficient privileges)

    Hi experts,
    we are facing problem during sap fullonline + redolog backup. while wholeonline+redolog backup working fine.
    please see the detail.
    BR0280I BRBACKUP time stamp: 2011-12-22 16.06.40
    BR0063I 35 of 35 files processed - 117460.273 of 117460.273 MB done
    BR0204I Percentage done: 100.00%, estimated end time: 16:06
    BR0001I **************************************************
    BR0280I BRBACKUP time stamp: 2011-12-22 16.06.40
    BR0317I 'Alter tablespace SYSTEM end backup' successful
    BR0280I BRBACKUP time stamp: 2011-12-22 16.06.42
    BR0530I Cataloging backups of all database files...
    BR0278E Command output of 'SHELL=/bin/sh /oracle/R3P/102_64/bin/rman nocatalog':
    Recovery Manager: Release 10.2.0.4.0 - Production on Thu Dec 22 16:06:42 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    RMAN>
    RMAN> connect target *
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    ORA-01031: insufficient privileges
    RMAN> **end-of-file**
    RMAN>
    host command complete
    RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24> 25> 26> 27> 28> 29> 30> 31> 32> 33> 34> 35> 36> 37>
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of catalog command at 12/22/2011 16:06:42
    RMAN-06171: not connected to target database
    RMAN>
    Recovery Manager complete.
    BR0280I BRBACKUP time stamp: 2011-12-22 16.06.42
    BR0279E Return code from 'SHELL=/bin/sh /oracle/R3P/102_64/bin/rman nocatalog': 1
    BR0536E RMAN call for database instance R3P failed
    BR0280I BRBACKUP time stamp: 2011-12-22 16.06.42
    BR0532E Cataloging backups of all database files failed
    BR0056I End of database backup: behmnbjo.fnt 2011-12-22 16.06.42
    BR0280I BRBACKUP time stamp: 2011-12-22 16.06.42
    BR0054I BRBACKUP terminated with errors
    Regards
    Imran Khan

    Hi,
    i dont think is due to authorization issue. There's a different between "FULL" and "WHOLE" database online backup.
    Full database backup : Will backup all the databasee files (Inclusing datafiles, online redolog files and the control files) and do the catalog. So that we can use this as the referance backup and we can do the incremental backup.
    Whole database backup : Will backup all the databasee files (Inclusing datafiles, online redolog files and the control files). We can't use this for the incremental backup.
    As you see from the log, full database online backup is calling RMAN. FYI, backup your system with "Whole" is equally good unless you want to to use incremental backup.
    Thanks,
    Nicholas Chang
    Edited by: Nicholas Chang on Dec 23, 2011 12:03 AM

  • ORA-01031: insufficient privileges , what's the fix?

    [oracle@ora-lab2 ~]$ sqlplus /nolog
    SQL*Plus: Release 11.1.0.6.0 - Production on Fri Sep 18 14:01:43 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SQL> connect /as sysdba;
    ERROR:
    ORA-01031: insufficient privileges
    SQL> connect sys/test as sysdba;
    Connected.
    SQL> show parameter remote
    NAME TYPE VALUE
    remote_dependencies_mode string TIMESTAMP
    remote_listener string
    remote_login_passwordfile string EXCLUSIVE
    remote_os_authent boolean TRUE
    remote_os_roles boolean FALSE
    result_cache_remote_expiration integer 0
    [oracle@ora-lab2 ~]$ rman
    Recovery Manager: Release 11.1.0.6.0 - Production on Fri Sep 18 14:02:24 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    RMAN> connect target;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    ORA-01031: insufficient privileges
    RMAN> connect target sys/test@prim01;
    connected to target database: PRIM01 (DBID=2934738896)
    RMAN> exit
    Recovery Manager complete.
    [oracle@ora-lab2 admin]$ cat sqlnet.ora
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    SQLNET.AUTHENTICATION_SERVICE= (NONE)
    #NAMES.DEFAULT_DOMAIN = WORLD
    TRACE_LEVEL_CLIENT = OFF
    SQLNET.EXPIRE_TIME = 30

    Pavan Kumar wrote:
    Refer to http://www.psoug.org/reference/net_services.html
    Pavan - please note that Dan Morgan's Library is no longer hosted at psoug. Your reference is to an archive copy which is still available but no longer maintained.
    Please change your links to replace www.psoug.org with www.morganslibrary.com to get thye latest information from Dan's wonderful resource. The correct link would be http://www.morganslibrary.com/reference/net_services.html

  • BRBACKUP: ORA-01031: insufficient privileges

    Hello,
    where I try to make a online control file backup test, with command "brback -u / -d disk -t online -m 0 -c", it comes always the error message:
    root@odrt88:/oracle/IH3/102_64/cpu/CPUJul2006 > su - oraih3
    odrt88:oraih3 51> brbackup -u / -d disk -t online -m 0 -c
    BR0051I BRBACKUP 7.00 (11)
    BR0055I Start of database backup: bdtsqfrg.pnd 2006-10-16 15.08.04
    BR0280I BRBACKUP time stamp: 2006-10-16 15.08.04
    BR0301W SQL error -1031 at location BrbDbLogOpen-5
    ORA-01031: insufficient privileges
    BR0324W Insertion of database log header failed
    BR0280I BRBACKUP time stamp: 2006-10-16 15.08.04
    BR0319I Control file copy created: /oracle/IH3/sapbackup/cntrlIH3.dbf 12664832
    BR0280I BRBACKUP time stamp: 2006-10-16 15.08.04
    BR0301W SQL error -1031 at location BrDbfInfoGet-30
    ORA-01031: insufficient privileges
    BR0280I BRBACKUP time stamp: 2006-10-16 15.08.04
    BR0301W SQL error -1031 at location BrDbfInfoGet-31
    ORA-01031: insufficient privileges
    BR0280I BRBACKUP time stamp: 2006-10-16 15.08.04
    BR0301E SQL error -1031 at location BrComprDurGet-1
    ORA-01031: insufficient privileges
    BR0314E Collection of information on database files failed
    BR0280I BRBACKUP time stamp: 2006-10-16 15.08.04
    BR0301W SQL error -1031 at location BrbDbLogOpen-5
    ORA-01031: insufficient privileges
    BR0324W Insertion of database log header failed
    BR0056I End of database backup: bdtsqfrg.pnd 2006-10-16 15.08.04
    BR0280I BRBACKUP time stamp: 2006-10-16 15.08.04
    BR0054I BRBACKUP terminated with errors
    The system is Netweaver 2004s SR1 Enterprise Portal on Oracle 10.2.0.2.0 on SLES 9(SP3 x86_64).
    I have check the user and group. <sapid>adm belongs to groups sapsys, oper, dba, sapinst and ora<dbsid> belongs to dba, oper, sapinst.
    Is there anybody has idea? Any answer is appreciated!
    Rongfeng

    I'm facing the same error when trying to backup the DB with brtools :
    <i>BR0280I BRBACKUP time stamp: 2007-07-13 14.26.48
    BR0301E SQL error -1017 at location BrDbConnect-2
    ORA-01017: invalid username/password; logon denied
    BR0310E Connect to database instance H40 failed
    BR0280I BRBACKUP time stamp: 2007-07-13 14.26.49
    BR0301E SQL error -1017 at location BrDbConnect-2
    ORA-01017: invalid username/password; logon denied
    BR0310E Connect to database instance H40 failed</i>
    I used the sapdba_role.sql for oracle 9 and got same errors too:
    <i>old   1: grant ALL on &User..DBAOBJL to sapdba
    new   1: grant ALL on SAPR3.DBAOBJL to sapdba
    grant ALL on SAPR3.DBAOBJL to sapdba
    ERROR at line 1:
    ORA-00942: table or view does not exist
    old   1: grant ALL on &User..DBAPHAL to sapdba
    new   1: grant ALL on SAPR3.DBAPHAL to sapdba
    grant ALL on SAPR3.DBAPHAL to sapdba
    ERROR at line 1:
    ORA-00942: table or view does not exist
    old   1: grant ALL on &User..DBAGRP to sapdba
    new   1: grant ALL on SAPR3.DBAGRP to sapdba
    grant ALL on SAPR3.DBAGRP to sapdba
    ERROR at line 1:
    ORA-00942: table or view does not exist
    old   1: grant ALL on &User..DBAERR to sapdba
    new   1: grant ALL on SAPR3.DBAERR to sapdba
    grant ALL on SAPR3.DBAERR to sapdba
    ERROR at line 1:
    ORA-00942: table or view does not exist
    old   1: grant ALL on &User..DBATRIAL to sapdba
    new   1: grant ALL on SAPR3.DBATRIAL to sapdba
    grant ALL on SAPR3.DBATRIAL to sapdba
    ERROR at line 1:
    ORA-00942: table or view does not exist</i>
    All other has Granted succeefully.
    System info :
    R/3 4.0B
    Oracle9.0.1.0
    Win2K3
    Brtools 6.40
    SIDadm user is in all important groups.
    Any suggestions?
    Thanks in advance,
    Zacharias

  • ORA-01031 insufficient privileges  error when selecting from a view

    OK I think this might be a dumb question but I can't figure it out:
    User John has been granted SELECT privilege (directly, not through a database role) to schema FRED.table1;
    User John can issue select * from FRED.table1; and it works just fine.
    User John has then been granted SELECT privilege (directly, not via a database role) to schema
    MARK.view1;
    MARK.view1 only selects from FRED.table1. No other tables are in the view1.
    Schema MARK can successfully query the views. SELECT * FROM VIEW1 returns results.
    I also checked the MARK schema to ensure that it has been granted SELECT on FRED.table1 directly which it has.
    Now, when logged into schema John, I try SELECT * FROM MARK.VIEW1; and I get ORA-01031 insufficient privileges error.
    I'm not sure how to troubleshoot this. If John is granted SELECT ANY TABLE, it of course works but I don't want John to have that powerful priv.
    To recap, John has SELECT on both MARK.VIEW1 and the table which VIEW1 selects from (FRED.TABLE1).
    John can select from FRED.TABLE1 no problem but receives a privilege error even though John has SELECT on MARK.VIEW1.
    Any thoughts?
    Oh, Oracle EE 10.2.0.4

    JSebastian wrote:
    OK I think this might be a dumb question but I can't figure it out:
    User John has been granted SELECT privilege (directly, not through a database role) to schema FRED.table1;
    User John can issue select * from FRED.table1; and it works just fine.
    User John has then been granted SELECT privilege (directly, not via a database role) to schema
    MARK.view1;
    MARK.view1 only selects from FRED.table1. No other tables are in the view1.
    Schema MARK can successfully query the views. SELECT * FROM VIEW1 returns results.
    I also checked the MARK schema to ensure that it has been granted SELECT on FRED.table1 directly which it has.
    Now, when logged into schema John, I try SELECT * FROM MARK.VIEW1; and I get ORA-01031 insufficient privileges error.
    I'm not sure how to troubleshoot this. If John is granted SELECT ANY TABLE, it of course works but I don't want John to have that powerful priv.
    To recap, John has SELECT on both MARK.VIEW1 and the table which VIEW1 selects from (FRED.TABLE1).
    John can select from FRED.TABLE1 no problem but receives a privilege error even though John has SELECT on MARK.VIEW1.
    Any thoughts?
    Oh, Oracle EE 10.2.0.4Are you certain John has been granted select on Mark.view1 ? In order for that to work Mark would have to have been given select on Fred.table1 WITH GRANT OPTION ... otherwise the grant would fail and then John would not be able to select from the view because the grant was never successfully issued.
    Here's a basic test case (which i think conforms to what you've outlined) to get it working.
    drop user u1 cascade;
    drop user u2 cascade;
    drop user u3 cascade;
    create user u1 identified by u1;
    grant connect, resource to u1;
    create user u2 identified by u2;
    grant connect, resource, create view to u2;
    create user u3 identified by u3;
    grant connect, resource to u3;
    connect u1/u1@orcl
    create table test1 (col1 number);
    grant select on test1 to u2 with grant option; --> this is the important part
    grant select on test1 to u3;
    connect u2/u2@orcl
    create view test2 as select * from u1.test1;
    grant select on test2 to u3;
    connect u3/u3@orcl
    select * from u2.test2;

  • Error while Creating Master Repository: ORA-01031: insufficient Privileges

    Hi,
    I'm trying to install ODI into my VM.
    I have done the installation and while creating Master Repository, I'm getting following error:
    ORA-01031: insufficient Privileges
    I'm using Oracle & have created user as ODI_MASTER with Admin Privileges.
    I'll be using it to load metadata onto planning (Version 11.1.2)
    Is there anything that I'm missing out on.
    Jitendra.

    Seems missing grants on the user you are using to create Master Repository.
    you are using Oracle .. grant connect, resource to <your_user>. These two rolesa have sufficient access to db to create the master repository.
    execuute the sql from sys user
    Regards,
    Amit
    Edited by: amitgupta1202 on 20 Aug, 2009 10:42 PM

  • ORA-01031: Insufficient privileges error in upgrading from 9.2.0.5 to 10.2

    Hi, I am using DBUA to upgrade oracle 9i database to 10g. In step 1 of 7 when I select 9i datagase to upgrade I get ORA-01031: Insufficient privileges error. However, I can connect to the database from 9i as well as 10g using SQLPlus. Any idea what could be going wrong? Thanks. Manish
    Edited by: user635081 on Jul 22, 2009 10:38 AM

    Check your REMOTE_LOGIN_PASSWORDFILE . If it is set to NONE, then make sure that SQLNET.AUTHENTICATION_SERVICES = (NTS) in your sqlnet.ora file.
    the OS user should be in ORA_DBA group.
    Try connecting as SYS,
    SQL> sqlplus /nolog
    SQL> connect / as sysdba
    HTH
    Anantha

  • Weird Error - sometime getting ORA-01031: insufficient privileges

    Problem - Java process throwing java.sql.SQLException: ORA-01031: insufficient privileges for simple select statement select * from MYTABLE , table having only three rows
    Observation - While investigating. I did same select from sql developer using same credential, I get same ORA-01031: insufficient privileges error in sql developer too BUT ONLY if I create new connection. (Disconnect and connect again), If I fire same query again in same connection it runs fine.
    SELECT * FROM MYTABLE;
    there is no problem if I run query in small case (notice only select and from in small case), even if it is fresh connection there is no error.
    select * from MYTABLE;
    I am out of any clue what is going on. Any help?
    Java stack track -
    Caused by: java.sql.SQLException: ORA-01031: insufficient privileges
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
            at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:676)
            at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:602)
            at oracle.jdbc.driver.T2CPreparedStatement.executeForDescribe(T2CPreparedStatement.java:571)
            at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1039)
            at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1134)
            at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3339)
            at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3384)
            at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:93)
            at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:648)
            at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:591)
    Oracle SQL Developerer Error
    ORA-01031: insufficient privileges
    01031. 00000 -  "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
               without the appropriate privilege. This error also occurs if
               attempting to install a database without the necessary operating
               system privileges.
               When Trusted Oracle is configure in DBMS MAC, this error may occur
               if the user was granted the necessary privilege at a higher label
               than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
               the required privileges.
               For Trusted Oracle users getting this error although granted the
               the appropriate privilege at a higher label, ask the database
               administrator to regrant the privilege at the appropriate label.

    Guys...
    I'm having the same problem.
    The platform is a Windows 2003 R2 64bit (SP2) with Oracle 11g.
    In the production server from the same client, the connection is usually ... however, to a server where I have the same instances retrieved from an RMAN backup, does not connect!
    In the Productoion Server:
    C:\>sqlplus sys@bmknfe as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Aug 18 17:43:41 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    In the Recovered Server:
    C:\>sqlplus sys@bmknfe_rt as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Aug 18 17:42:39 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-01031: insufficient privileges
    I've tried recreating the password file, but is not resolving ...
    Can someone give me a light?

  • "ora-01031 insufficient privilege" error

    We are getting "ora-01031 insufficient privilege" error while registering Apps as target user in production environment.
    We tried to add the user using below method
    · Design Center / Global Explorer / Security / Users -> Right click -> New user
    · Repository assistance.
    · Given the OWB owner as the DBA privilege.
    Please let me know how to investigate further
    Thanks a lot for your help.

    Hi!
    Please check the following query after the user registration. But the question is, are you registering the users with the repository owner?
    select * FROM user_role_privs;
    Regards.
    Sebastian

  • Why do I get a "ORA-01031: insufficient privileges" in my view creation?

    Why do I get a "ORA-01031: insufficient privileges" in my view creation for the table which exists in the same schema?
    Oracle version is 10g R2.
    connect cim/lion;
    create table cim.table1 (a number, b varchar2(10));
    create view cim.view1 as select * from cim.table1;
    create view cim.view1 as select * from cim.table1
    ERROR at line 1:
    ORA-01031: insufficient privileges

    Thanks it works now after giving CREATE VIEW permission to user CIM.
    This script was working fine in Oracle 10g R1.
    Looks like i need to execute the following GRANT permission explicitly
    grant create view to cim;

  • Execute immediate on DBMS_METADATA.GET_DDL with error of ORA-01031: insufficient privileges

    I want to mirror a schema to a existing schema by creating DDL and recreate on the other schema with same name.
    I wrote the code below:
    create or replace
    PROCEDURE                                    SCHEMA_A."MAI__DWHMIRROR"
    AS
    v_sqlstatement CLOB:='bos';
    str varchar2(3999);
    BEGIN
      select
        replace(
          replace(replace(
          replace(DBMS_METADATA.GET_DDL('TABLE','XXXX','SCHEMA_A'),'(CLOB)',''),';','')
        ,'SCHEMA_A'
        ,'SCHEMA_B'
      into v_sqlstatement
      from dual;
      select  CAST(v_sqlstatement AS VARCHAR2(3999)) into str from dual;
      execute immediate ''||str;
    END;
    And Executing this block with below code:
    set serveroutput on
    begin
    SCHEMA_A.MAI__DWHMIRROR;
    end;
    But still getting the following error code:
    Error report:
    ORA-01031: insufficient privileges
    ORA-06512: at "SCHEMA_A.MAI__DWHMIRROR", line 47
    ORA-06512: at line 2
    01031. 00000 -  "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
               without the appropriate privilege. This error also occurs if
               attempting to install a database without the necessary operating
               system privileges.
               When Trusted Oracle is configure in DBMS MAC, this error may occur
               if the user was granted the necessary privilege at a higher label
               than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
               the required privileges.
               For Trusted Oracle users getting this error although granted the
               the appropriate privilege at a higher label, ask the database
               administrator to regrant the privilege at the appropriate label.

    user5199319 wrote:
    USER has DBA Role
    when all  else fails Read The Fine Manual
    DBMS_METADATA

  • Check database with error "ORA-01031: insufficient privileges"

    Dear Gurus,
            I ran "Check database" in DB13 but I got error "ORA-01031: insufficient privileges"
    BR0280I BRCONNECT time stamp: 2010-03-31 12.37.00
    BR0301E SQL error -1031 at location BrDbdiffRead-1, SQL statement:
    'PREPARE stmt_5 STATEMENT FROM'
    'SELECT OBJNAME FROM "SAPSR3".DBDIFF WHERE DBSYS IN ('ORACLE', ' ') AND OBJTYPE = 'TABL' AND DIFFKIND IN ('02', '61', '99') ORDER BY OBJNAME'
    ORA-01031: insufficient privileges
    BR0806I End of BRCONNECT processing: cecxekdh.chk 2010-03-31 12.37.00
           Note I try to execute sapdba_role.sql (with command "sqlplus /nolog @sapdba_role.sql SR3") as Note 134592 both login 'oradev' and 'devadm' but it seem to do nothing (not found sapdba_role.log)
          Please advice.
    Best regards,
    Choosak B.
    Ps.
    detailed log of /oracle/DEV/sapcheck/cecxekdh.chk
    BR0801I BRCONNECT 7.00 (40)
    BR0477I Oracle pfile /oracle/DEV/102_64/dbs/initDEV.ora created from spfile /oracle/DEV/102_64/dbs/spfileDEV.ora
    BR0805I Start of BRCONNECT processing: cecxekdh.chk 2010-03-31 12.30.53
    BR0484I BRCONNECT log file: /oracle/DEV/sapcheck/cecxekdh.chk
    BR0101I Parameters
    Name                           Value
    oracle_sid                     DEV
    oracle_home                    /oracle/DEV/102_64
    oracle_profile                 /oracle/DEV/102_64/dbs/initDEV.ora
    sapdata_home                   /oracle/DEV
    sap_profile                    /oracle/DEV/102_64/dbs/initDEV.sap
    system_info                    devadm/oradev sapdev SunOS 5.10 Generic_142900-03 sun4v
    oracle_info                    DEV 10.2.0.4.0 8192 7465 94896497 sapdev UTF8 UTF8
    sap_info                       701 SAPSR3 0002LK0003DEV0011N11827599290015Maintenance_ORA
    make_info                      sun_64 OCI_102 Feb 21 2009
    command_line                   brconnect -u / -jid CHECK20100331123000 -c -f check
    alert_log                      /oracle/DEV/saptrace/background/alert_DEV.log
    BR0280I BRCONNECT time stamp: 2010-03-31 12.30.56
    BR0813I Schema owners found in database DEV:
    DBSNMP, DIP, OPS$DEVADM, OPS$ORADEV, OPS$SAPSERVICEDEV, ORACLE_OCM, OUTLN, SAPSR3*, SYS, SYSTEM,
    TSMSYS
    BR0118I Tablespaces and data files
    Tablespace     Status     File                                               Status     Id.        Size      MaxSize     IncrSize  BlkSize      Device  Type  Link
    PSAPSR3        ONLINE+    /oracle/DEV/sapdata2/sr3_1/sr3.data1               ONLINE+     4   2411732992  10485760000     20971520     8192    16777219  FILE  NOLINK
    SYSTEM         ONLINE+    /oracle/DEV/sapdata1/system_1/system.data1         SYSTEM+     1   1017126912  10485760000     20971520     8192    16777219  FILE  NOLINK
    BR0119I Redo log files
    File                                          Status  Group       Size       Device  Type  Link
    /oracle/DEV/origlogA/log_g11m1.dbf            INUSE      1    52429312     16777218  FILE  NOLINK
    /oracle/DEV/mirrlogA/log_g11m2.dbf            INUSE      1    52429312     16777218  FILE  NOLINK
    /oracle/DEV/origlogB/log_g12m1.dbf            INUSE      2    52429312     16777218  FILE  NOLINK
    /oracle/DEV/mirrlogB/log_g12m2.dbf            INUSE      2    52429312     16777218  FILE  NOLINK
    /oracle/DEV/origlogA/log_g13m1.dbf            INUSE      3    52429312     16777218  FILE  NOLINK
    /oracle/DEV/mirrlogA/log_g13m2.dbf            INUSE      3    52429312     16777218  FILE  NOLINK
    /oracle/DEV/origlogB/log_g14m1.dbf            INUSE      4    52429312     16777218  FILE  NOLINK
    /oracle/DEV/mirrlogB/log_g14m2.dbf            INUSE      4    52429312     16777218  FILE  NOLINK
    BR0120I Control files
    File                                                Size       Device  Type  Link
    /oracle/DEV/origlogA/cntrl/cntrlDEV.dbf         15024128     16777218  FILE  NOLINK
    /oracle/DEV/origlogB/cntrl/cntrlDEV.dbf         15024128     16777218  FILE  NOLINK
    /oracle/DEV/sapdata1/cntrl/cntrlDEV.dbf         15024128     16777219  FILE  NOLINK
    BR0982I Database disk volumes
    Directory / Raw disk                          Device      Total[KB]      Free[KB]    Used[%]   MaxNeed[KB]   MaxMiss[KB]
    /oracle/DEV/102_64                          16777218     480700086     404332206      15.89             0             0
    /oracle/DEV                                 16777218     480700086     404332206      15.89             0             0
    /oracle/DEV/mirrlogA                        16777218     480700086     404332206      15.89             0             0
    /oracle/DEV/mirrlogB                        16777218     480700086     404332206      15.89             0             0
    /oracle/DEV/origlogA                        16777218     480700086     404332206      15.89             0             0
    /oracle/DEV/origlogB                        16777218     480700086     404332206      15.89             0             0
    /oracle/DEV/sapdata1                        16777219     591212116     404332206      31.61     240019884             0
    /oracle/DEV/sapdata2                        16777219     591212116     404332206      31.61     240019884             0
    /oracle/DEV/sapdata3                        16777219     591212116     404332206      31.61     240019884             0
    /oracle/DEV/sapdata4                        16777219     591212116     404332206      31.61     240019884             0
    /oracle/DEV/saparch                         16777218     480700086     404332206      15.89             0             0
    /oracle/DEV/sapbackup                       16777218     480700086     404332206      15.89             0             0
    /oracle/DEV/sapcheck                        16777218     480700086     404332206      15.89             0             0
    /oracle/DEV/sapreorg                        16777218     480700086     404332206      15.89             0             0
    /oracle/DEV/saptrace                        16777218     480700086     404332206      15.89             0             0
    /oracle/DEV/oraarch                         16777218     480700086     404332206      15.89             0             0
    BR0280I BRCONNECT time stamp: 2010-03-31 12.31.29
    BR0814I Number of tables in schema of owner SAPSR3: 74582
    BR0836I Number of info cube tables found for owner SAPSR3: 49
    BR0814I Number of tables/partitions in schema of owner SYS: 625/189
    BR0814I Number of tables/partitions in schema of owner SYSTEM: 134/27
    BR0280I BRCONNECT time stamp: 2010-03-31 12.32.28
    BR0815I Number of indexes in schema of owner SAPSR3: 89159
    BR0815I Number of indexes/partitions in schema of owner SYS: 678/199
    BR0815I Number of indexes/partitions in schema of owner SYSTEM: 175/32
    BR0280I BRCONNECT time stamp: 2010-03-31 12.37.00
    BR0816I Number of segments in schema of owner DBSNMP: 25
    BR0816I Number of segments in schema of owner OPS$DEVADM: 1
    BR0816I Number of segments in schema of owner OUTLN: 9
    BR0816I Number of segments/LOBs in schema of owner SAPSR3: 168369/2314
    BR0816I Number of segments/LOBs in schema of owner SYS: 1831/87
    BR0816I Number of segments/LOBs in schema of owner SYSTEM: 353/22
    BR0816I Number of segments in schema of owner TSMSYS: 4
    BR0280I BRCONNECT time stamp: 2010-03-31 12.37.00
    BR0961I Number of conditions found in DBCHECKORA: 118
    BR0983I Tablespace fragmentation
    Tablespace    Files   Tables  Indexes    Extents     Total[KB]   Used[%]     Free[KB]   FreeExt.   MaxSize[KB]   MaxAlloc[KB]   Used[%]       Free[KB]       Largest[KB]
    PSAPSR3          16    74248    88689     209864     54138880     94.51      2970752        240     163840000+     109701120+    31.23+     112671872+       9246720:7966720:7946240:7905280:7905280+
    PSAPSR3701       14        0        0          0     54466560      0.00     54465664         20     143360000+      88893440+     0.00+     143359104+       9021440:8192000:8192000:8192000:8192000+
    PSAPSR3701X       4      310      445      12190     68342784     94.20      3962240          7      68342784              0     94.20        3962240        1298432:1191936:979968:163776:163776
    PSAPSR3USR        1       24       25         51        51200      6.50        47872          1      10240000+      10188800+     0.03+      10236672+      10188800+:47872:0:0:0
    PSAPTEMP          1        0        0          0      1433600      0.00      1433600          0      10240000+       8806400+     0.00+      10240000+       8806400+:0:0:0:0
    PSAPUNDO          1        0        0          0      7823360      0.00      7823296        406      10240000+       2416640+     0.00+      10239936+       2416640+:2041792:1814464:1433536:603072
    SYSAUX            1      254      284       2059       307200     93.35        20416         16      10240000+       9932800+     2.80+       9953216+       9932800+:13248:3072:1024:640
    SYSTEM            1      505      569       2926       993280     98.91        10816          2      10240000+       9246720+     9.59+       9257536+       9246720+:10176:640:0:0
    Total:           39    75341    90012     227090    187556864     62.29     70734656        692     426742784      239185920     27.38      309920576       60157952:19463744:18936384:17695616:16864768
    BR0280I BRCONNECT time stamp: 2010-03-31 12.37.00
    BR0301E SQL error -1031 at location BrDbdiffRead-1, SQL statement:
    'PREPARE stmt_5 STATEMENT FROM'
    'SELECT OBJNAME FROM "SAPSR3".DBDIFF WHERE DBSYS IN ('ORACLE', ' ') AND OBJTYPE = 'TABL' AND DIFFKIND IN ('02', '61', '99') ORDER BY OBJNAME'
    ORA-01031: insufficient privileges
    BR0806I End of BRCONNECT processing: cecxekdh.chk 2010-03-31 12.37.00
    BR0280I BRCONNECT time stamp: 2010-03-31 12.37.00
    BR0804I BRCONNECT terminated with errors

    Hi,
           It solved after change permission of directory that sapdba_role.sql kept to oradev:dba after that it can write sapdba_role.log.
          Thank you for your guideline.
          Now, I can ran 'Check database' via DB13 without that error.
    Best regards,
    Choosak B.

Maybe you are looking for