ORA-01031: insufficient privileges, what is the solution?

[oracle@ora-lab2 ~] $ sqlplus/nolog
SQL * more: version 11.1.0.6.0 - Production on Fri Sep 18 14:01:43 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
SQL > connect virtue sysdba;
ERROR:
ORA-01031: insufficient privileges

SQL > connect sys/test as sysdba;
Connected.
SQL > show the distance parameter

VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
remote_dependencies_mode string TIMESTAMP
remote_listener chain
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
Complete recovery manager.

[oracle@ora-lab2 admin] $ cat sqlnet.ora
NAMES. DIRECTORY_PATH = (TNSNAMES)
SQLNET. AUTHENTICATION_SERVICE = (NONE)
#NAMES. DOMAINE_PAR_DEFAUT = EVERYONE
TRACE_LEVEL_CLIENT = OFF
SQLNET. EXPIRE_TIME = 30

Pavan Kumar says:
Refer to http://www.psoug.org/reference/net_services.html

Pavan - Please note this is a library of Dan Morgan's more hosted psoug. Your reference is a copy of archive that is still available but is no longer maintained.

Please change your links to replace www.psoug.org by www.morganslibrary.com to get the latest wonderful resource of Dan thye. The correct link would be http://www.morganslibrary.com/reference/net_services.html

Tags: Database

Similar Questions

  • ORA-01031: insufficient privileges while selectin view belongs to another schema in oracle database 11g

    Hello

    DB version 11.2.0.3.0

    We have a few views resides in the application schema, we cerated user and granted select on the view through the roles.

    but the user becomes ORA-01031: insufficient privileges when accessing the content view

    appreciated inputs

    BR

    Praaksh GR

    > I issued a grant select on Z.table - X with the option grant.

    This isn't what you need - you should

    Grant select on Z.table y with the option grant.

    Grant select on Y.view to X;

  • ORA-01031: insufficient privileges when connecting as SYSDBA

    I am trying to connect to the database and receiving "ORA-01031: insufficient privileges". Database version is 11.2.0.3 (standalone) on Linux.

    [oracle@dbserv admin] $ echo $ORACLE_HOME

    /U01/app/Oracle/product/11.2.0.3/db1

    [oracle@dbserv admin] $

    [oracle@dbserv admin] $ which sqlplus

    /U01/app/Oracle/product/11.2.0.3/db1/bin/sqlplus

    [oracle@dbserv dbs] $ sqlplus sys/oracle@newdb as sysdba

    SQL * more: Production release 11.2.0.3.0 Wed Aug 26 20:38:13 2015

    Copyright (c) 1982, 2011, Oracle.  All rights reserved.

    ERROR:

    ORA-01031: insufficient privileges

    Enter the user name:

    Password file has been created and is in $ORACLE_HOME/dbs location.

    [oracle@dbserv dbs] $ pwd

    /U01/app/Oracle/product/11.2.0.3/db1/DBS

    [oracle@dbserv dbs] $ ls - lrt * orapw *.

    -rw - r - 1 oracle oinstall 1536 26 August to 20:38 orapwnewdb

    To be clear, there is a version of GI 11.2.0.2 already installed with 11.2.0.2 RDBMS version on the same server (standalone).

    In addition, 11.2.0.3 has been installed on the same machine and a new listening port has been created on 11.2.0.3 home for databases residing on this House.

    Here are the details:

    [oracle@dbserv dbs] $ ps - ef | grep tns

    Oracle 4226 1 0 20:20?        00:00:00 /u01/app/oracle/product/11.2.0.2/grid/bin/tnslsnr EARPHONE-inherit

    Oracle 4239 1 0 20:20?        00:00:00 /u01/app/oracle/product/11.2.0.3/db1/bin/tnslsnr LISTENER_NEWDB-inherit

    Oracle 4599 3734 0 20:44 pts/2 00:00:00 grep tns

    [oracle@dbserv dbs] $ lsnrctl status LISTENER_NEWDB

    LSNRCTL for Linux: Version 11.2.0.3.0 - Production on August 26, 2015 20:44:32

    Copyright (c) 1991, 2011, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=dbserv.mydomain) (PORT = 1526)))

    STATUS of the LISTENER

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

    Alias LISTENER_NEWDB

    Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production

    Start date August 26, 2015 11:20:20

    Uptime 0 days 0 h 24 min 21 sec

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /u01/app/oracle/product/11.2.0.3/db1/network/admin/listener.ora file

    The listener log file /U01/app/Oracle/diag/tnslsnr/dbserv/listener_newdb/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=dbserv.mydomain) (PORT = 1526)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1526)))

    Summary of services...

    Service 'SLAVE_PORT_NUM' has 1 instance (s).

    Instance of 'SLAVE_PORT_NUM', status UNKNOWN, has 1 operation for this service...

    The command completed successfully

    My bad. OP has already validated the status of the listener. I just forgot.

    I suspected to be an incompatibility with SID in regard to upper and lower case letters and now seem to be confident.

    The listener status indicates the name of the instance as SLAVE_PORT_NUM but OP said as slave_port_num lowercase. Let's take a look in the file of the listener.

    TNS ADMIN could also be a cause, but in this case, it could lift error related to the listener (TNS).

    OP, please send the contents of listener.ora crossing 11.2.0.3 House.

    -Jonathan Rolland

  • ORA-01031: insufficient privileges on the addition of constraints

    Hello

    I'm working on Oracle 11.2.0.2.0 and AIX.
    I'm just trying to alter a table to add the foreign key constraint by using...

    ALTER TABLE USER1. TAB1 ADD CONSTRAINT TAB1_TAB2_FK FOREIGN KEY (CUST_ID) REFERENCES USER2. TAB2 (TAB1_ID) ACTIVE;

    TAB1
    Cust_id (child table FK)

    TAB2
    TAB1_ID (PK)

    but I'm getting

    ORA-01031: insufficient privileges

    I gave all select, insert, update for the USER1 user on all the tables of the verse even vise user2...

    even, I gave grant dba to user1 and user2... as well...
    I tried to run sql even as sysdba but getting same message...

    Any idea what I can do... where I need to make changes...?

    Try

    grant references on user2.tab2 to user1;
    
  • ORA-01031: insufficient privileges during the activation of a unique constraint

    Hello
    DB is Oracle 10 g.
    I have a problem, which allows a unique constraint on a table using a stored procedure.
    The procedure travels a few queried from the view all_constraints primary key constraints allowing them without any problem.

    Then, on the first unique constraints, it throws the exception
    ORA-01031: insufficient privileges

    The sql line built at the source of the problem is
    run immediately ' alter table 'My_Schema_Name '. "' My_TableName ' enable the 'UNIQUE_Myconstraint_UQ' CONSTRAINT '.

    What confuses me, is that the same line (without "immediate execution") run from the console window of the sql developers, which was used to make the appeal process that has failed, will succeed.

    The user used to make the call is not owner of the scheme, but has Alter_Any_Table system permissions (and, as mentioned above, the call will succeed if entered directly in the sql developer worksheet).

    Stored procedures running in a different (limited) security context (sorry if the setting isn't right) than that of the calling user?
    Or what is the problem here?

    Any help is appreciated.
    Markus.

    Note:
    Before, I don't have the name of constraint in quotes and allowing the primary key failed with error ORA-02430: impossible to enable the constraint (PK_ConstraintName) - no such constraint 02430. 00000 - "could not activate constraint (%s): no such constraint ', which is an interesting problem in itself, but now fixed. In any case, thoughtI would mention it

    Hello

    This means that alter table system privilege is given to the user through certain roles. If it's true that the roles has no effect when executing stored procedures. You must give the direct privilege to this user and not by role.

    With regard to your note:
    This means that you created the constraint in lower case or mix of lower and upper case in quotes. Therefore you should now always return in the same case in quotes each time you reference any object. So it is always advisable to create objects on top of case (if the use of the quotes) or do not use quotation marks.

    Concerning
    Anurag

  • 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.

  • ORA-01031: insufficient privileges in the work of snapshot

    Hello
    10 gr 2 on Win 2003, I have the following error in alertlog:
    Wed Jan 25 21:00:01 2012
    Errors in file t:\oradba\admin\pods\bdump\DB_j001_3836.trc:
    ora-12012 error on auto execute of job 4111
    ORA-01031: insufficient privileges
    ORA-06512: à "SYS.DBMS_SNAPSHOT", ligne 2254
    ORA-06512: à "SYS.DBMS_SNAPSHOT", ligne 2460
    ORA-06512: à "SYS.DBMS_IREFRESH", ligne 683
    ORA-06512: à "SYS.DBMS_REFRESH", ligne 195
    ORA-06512: à ligne 1
    I'm looking for which snapshot or whose employment has been? We have so many shots. I have querried dba_jobs but:

    Select * from all_jobs of employment where = 4111
    no selected line.

    Thank you.

    Wed Jan 25 21:00:01 2012
    Errors in the t:\oradba\admin\pods\bdump\DB_j001_3836.trc file:
    error ORA-12012 on auto work 4111
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS. DBMS_SNAPSHOT", line 2254
    ORA-06512: at "SYS. DBMS_SNAPSHOT", line 2460
    ORA-06512: at "SYS. DBMS_IREFRESH', line 683
    ORA-06512: at "SYS. DBMS_REFRESH", line 195
    ORA-06512: at line 1

    Check also any planned Mview job or not

    SQL > select master, mview_name, dba_mviews LAST_REFRESH_DATE;

    If you find this job, check the query in the same point of view, if she has privileges to select/change according to the application.

    Thank you.

  • Error: ORA-01031: insufficient privileges, the connect via SQLPlus

    Hello
    I installed Oracle database 11.2.0.1.0 on Windows 2008.
    When I try to connect using sqlplus, it gives me the following error:

    C:\users\administrator > sqlplus "/ as sysdba".

    SQL * more: Production of release 11.2.0.1.0 Fri Sep 2 10:43:57 2011

    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    ERROR:
    ORA-01031: insufficient privileges


    Enter the user name:

    The administrator of the user part of the ora_dba group.
    Please help me how I can solve this problem.

    Thank you

    You are right. I didn't know that it was Windows. My bad! Thanks for pointing it out.

    It should be NTS (for the native security)

  • Failure to logon with the user SYS: ORA-01031: insufficient privileges

    Hello

    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    AMT for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production

    OS: CentOS 5.5

    I can't log in with the user SYS via PL/SQL Developer. I get the message: ORA-01031: insufficient privileges. PL/SQL Developer is installed on Windows 7 Professional. Version of the Oracle Client is 11.2.0.1.0. However, I connect successfully with SYSMAN and SYSTEM.
    For those who may wonder if I try to connect 'as sysdba' when I use the SYS user, the answer is YES, I do.
    In addition, I think that the name of the tool (PL/SQL Developer) does not matter because I think I'm going to face the same error with any other tool (but I mentioned just in case).

    Server side, I have no problem with the SYS user. I can connect via SQLPlus with connect / as sysdba or connect "virtue sysdba" without fault.

    The sec_case_sensitive_logon initialization parameter is set to FALSE
    SQL > show parameter sensi

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    SEC_CASE_SENSITIVE_LOGON boolean FALSE

    I use the local name to connect and client side, I have a tnanames.ora file. The sqlnet.ora file looks like this:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    I read in this forum (another thread) on the use of a password file. I created a password file using orapwd this way:
    orapwd file=orapwDB11G2 entries=100 ignorecase=y password=a_password
    where I replaced "a_password" with the SYS password.

    In fact, I'm not sure that the customer is influenced by the file password anyway because I said to use a local naming.

    Clues?

    Thank you very much!

    So your ORACLE_SID is planet but not DB11G2 , second password file must be located in $ORACLE_HOME/dbs location if you want to connect the planet of database/sid and therefore

    orapwd file= $ORACLE_HOME/dbs/orapwplanet password=syspass
    

    Then try again.

  • ORA-01031: insufficient privileges after the cloning of RAC

    Hello.

    I have 2 CARS with 2 DBs nodes and 1 OEBS with option of CARS. 5.11 for Linux. IM 11.2.0.3.9. DB 11.2.0.3.9.

    Data disks when presented by iSCSI.  Data, OCR, voting are in ASM on a diskgroup.

    For testing purposes this RAC has been cloned, including lun data.

    After that successful cloning IG has been tested and verified. Everything is ok.

    DB homes have been reconfigured successfully. Unfortunately tries to connect to sqlplus / as sysdba a ccure of error:

    ERROR:

    ORA-01031: insufficient privileges

    Any suggestions will be much appreciate.

    Thank you in advance.

    Finally, it works.

    export NEWHOSTNAME=node1
    export G01=OSDBA_GROUP=dba
    export G02=OSOPER_GROUP=oper
    export G03=OSASM_GROUP=
    
    eval "perl ${ORACLE_HOME}/clone/bin/clone.pl -silent ORACLE_BASE=$ORACLE_BASE ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=OraDb11g_home1 INVENTORY_LOCATION=/u01/app/oraInventory -O'\"CLUSTER_NODES={$NEWHOSTNAME}\"' -O'\"LOCAL_NODE=$NEWHOSTNAME\"' $G01 $G02 $G03"
    

    In this case, config.c contains appropriate Van Overstraeten:

    #define SS_DBA_GRP "dba"
    #define SS_OPER_GRP "oper"
    #define SS_ASM_GRP ""
    
  • 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;

  • ORA-01031: insufficient privileges when granted access privileges to a new user

    Hello.

    When you are connected to a SYSTEM, I'm trying to create a new user and give him all the system privileges, but do so always the following error message appears:

    Cannot process the SQL command

    -

    Error at startup to the line: 123 to orders.

    SYSDBA GRANT TestUser

    Error report-

    SQL error: ORA-01031: insufficient privileges

    01031 00000 - "insufficient privileges".

    * Cause: An attempt was made to execute a database operation without

    the necessary privileges.

    * Action: Ask your database or the designated security administrator

    administrator to grant you the required privileges

    After clicking OK, the user is still being created, but it lacks many privileges to access.

    How can I solve this problem?

    I use Oracle SQL Developer version 4.1.2.20 and Oracle database 11g of the express edition.

    Connect as SYS, not SYSTEM to grant this priv

    Give him with extreme prejudice - it is powerful

    Note in the 12 c database we have stopped a lot of the administrative bits of the SYSDBA role in less powerful. This gives you more flexibility on who can do what in your database

    https://docs.Oracle.com/database/121/DBSEG/authorization.htm#DBSEG578

  • ORA-01031: insufficient privileges - HOW SOLVE? Help, please...

    Hello

    Everything was running as a result with the exception of a question with ENTERPRISE MANAGER I posted on the discussion. So following the favorable response of the discussion, what I did is I tried to change the listening port, and then I got this error message ORA-01031: insufficient privileges .  Then after I uninstalled the database again and tried to remove all the listener again and tried to add the listener again, but has no wok. I have the grid installed in my pc. I already uninstalled dbca database so I wonder how I could resolve the question above? I have oracle grid in my pc and here is some information that you might need.

    [grid@example admin] $ echo $ORACLE_SID

    + ASM

    [grid@example admin] $ echo $ORACLE_HOME

    /U01/app/11.2.0/grid

    [grid@example admin] $ su - oracle

    Password:

    [oracle@example ~] $ echo $ORACLE_SID

    ORCL

    [oracle@example ~] $ echo $ORACLE_HOME

    /U01/app/Oracle/product/11.2.0/Db_1

    [oracle@example ~] $ echo $ORACLE_UNQNAME

    ORCL

    [oracle@example ~] $

    [grid@example admin] $ vi sqlnet.ora

    #NAMES. DIRECTORY_PATH = (TNSNAMES, HOSTNAME, EZCONNECT)

    SQLNET. AUTHENTICATION_SERVICES = (ALL)

    NAMES. DIRECTORY_PATH = (TNSNAMES, HOSTNAME, EZCONNECT)

    ADR_BASE = / u01/app/grid

    Thanks Hemant K Chitale. According to your suggestion, I went through CRSCTL view of ALL... http://docs.oracle.com/cd/E11882_01/rac.112/e16794/crsref.htm#CWADD92153 ... AND it solved my problem thank you very much


    CRSCTL overview

    CRSCTL is an interface between you and Oracle Clusterware, analysis and requesting objects Oracle Clusterware Oracle Clusterware APIs.

    Oracle Clusterware 11 g release 2 (11.2) introduced controls compatible with the cluster with which you can perform the check, start and stop operations on the cluster. You can run these commands from any node in the cluster to another node in the cluster, or on all nodes of the cluster, depending on the operation.

    You can use the CRSCTL commands to perform several operations on Oracle Clusterware, such as:

    • Start and stop Oracle Clusterware resources
    • Activation and deactivation of the Oracle Clusterware demons
    • Check the status of the cluster
    • Management of the resources that are third-party applications
    • Integration of Intelligent Platform Management Interface (IPMI) with Oracle Clusterware of failure isolation support and ensure the integrity of clusters
    • Debug Oracle Clusterware components


    [grid@example bin] $ crsctl start resources-all

    CRS-2501: resource "ora.ons" is disabled

    CRS-2672: attempt to start 'ora.evmd' on 'example '.

    CRS-2672: attempt to start 'ora.cssd' on 'example '.

    CRS-2672: attempt to start 'ora.diskmon' on 'example '.

    CRS-2676: beginning of "ora.diskmon", the successful "example"

    CRS-2676: beginning of "ora.evmd", the successful "example"

    CRS-2676: beginning of "ora.cssd", the successful "example"

    CRS-2672: attempt to start 'ora.asm' on 'example '.

    CRS-2676: beginning of "ora.asm", the successful "example"

    CRS-2672: attempt to start ' ora. DATA.dg' on 'example '.

    CRS-2672: attempt to start ' ora. FRA.dg' on 'example '.

    CRS-2676: beginning with ' ora. DATA.dg' on successful "example"

    CRS-2676: beginning with ' ora. FRA.dg' on successful "example"

    CRS-2672: attempt to start 'ora.orcl.db' on 'example '.

    CRS-5017: the action "ora.orcl.db start" resource has met the following error:

    ORA-01078: failure in the treatment of system settings

    ORA-01565: error in the identification of file "+ DATA/orcl/spfileorcl.ora".

    ORA-17503: ksfdopn:2 could not open the file +DATA/orcl/spfileorcl.ora

    ORA-27140: attach to post/wait installation failed

    ORA-27300: OS dependent operating system: invalid_egid failed with status: 1

    ORA-27301: OS Error Message: operation not permitted

    ORA-27302: an error occurred at: skgpwinit6

    ORA-27303: additional information: current startup egid = 504 (oinstall), egid = 501 (asmadmin)

    . For details, refer to "(:CLSN00107:))" "in ' / u01/app/11.2.0/grid/log/example/agent/ohasd/oraagent_grid/oraagent_grid.log '.

    CRS-2674: beginning of 'ora.orcl.db', 'example' failed

    CRS-2679: attempt to clean the 'ora.orcl.db' on 'example '.

    CRS-2681: clean "ora.orcl.db" on successful "example"

    CRS-4000: Start command has failed, or completed with errors.

    [grid@example bin] $

    ASM IS WATCH NOW TO THE LISTENING PORT

    [grid@example bin] $ lsnrctl status

    LSNRCTL for Linux: Version 11.2.0.3.0 - Production on July 15, 2015 09:03:11

    Copyright (c) 1991, 2011, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=example.castrading.com) (PORT = 1521)))

    STATUS of the LISTENER

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

    Alias LISTENER

    Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production

    Start date July 15, 2015 07:30:34

    Uptime 0 days 1 h 32 min 36 sec

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /u01/app/11.2.0/grid/network/admin/listener.ora file

    The listener log file /U01/app/grid/diag/tnslsnr/example/listener/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=example.castrading.com) (PORT = 1521)))

    Summary of services...

    Service '+ ASM' a 1 instance (s).

    Instance '+ ASM' READY State, has 1 operation for this service...

    Service "orcl" has 1 instance (s).

    Instance "orcl", status UNKNOWN, has 1 operation for this service...

    The command completed successfully

    [grid@example bin] $

  • ORA-01031: insufficient privileges

    Hi all;

    U1 > grant u1.emp to scott references;

    Grant succeeded.

    SCOTT > alter table u1.emp change (emp_id number constraint emp_c1_pk_eid primary key);

    ALTER table u1.emp change (emp_id number constraint emp_c1_pk_eid primary key)

    *

    ERROR on line 1:

    ORA-01031: insufficient privileges

    To create a primary key or foreign in the object on the other, what a privilege devrais I need?

    Thank you

    To create a primary key or foreign in the object on the other, what a privilege devrais I need?

    This is generally NOT a good idea.

    Why do you need a primary key in a different schema from the owner of the table. If you do this, you will ALWAYS have a dependency between these two patterns.

    You must be able to alter the table and create indexes of the other schema...

    For the ALTER statement:

    http://docs.Oracle.com/CD/B28359_01/server.111/b28286/statements_3001.htm

    Prerequisites

    The table must be in your own schema or you must have ALTER privileges of objects on the table, or you must have ALTER ANY TABLE system privilege.

    For indexes

    http://docs.Oracle.com/CD/B28359_01/server.111/b28286/statements_5011.htm#i2062403

    Prerequisites

    To create an index in your own schema, one of the following conditions must be true:

    • The table or cluster be indexed must be in your own schema.
    • You must have the INDEX object privilege on the table to be indexed.
    • You must have the CREATE ANY INDEX system privilege.

    To create an index in another schema, you must have the CREATE ANY INDEX system privilege. In addition, the owner of the schema to contain the index must have either the UNLIMITED TABLESPACE quota privilege or space of the system on the storage space to store the index or index partitions.

  • ORA-01031: insufficient privileges in ORACLE 8.0.5


    Hi all


    Can you help me please:


    IM using ORACLE 8.0.5



    I made this package:

    ORACLE 8.0.5

    CREATE OR REPLACE PACKAGE BODY MULTIFOX. PAQ_MULTIFOX AS

    PROCEDURE REVISA_CRED IS

    BEGIN

    UPDATE / * + BYPASS_UJVC * /.

    (

    SELECT IF NECESSARY. CDGNS, PRN. CICLO, PRN. CANTAUTOR, MPD. NF

    OF MULTIFOX. MPD MPD,

    SIACOM. NRP NRP

    WHERE MPD. CDGNS = PRN. CDGNS AND MPD. CICLO = PRN. CICLO

    AND THE LBD. CANTAUTOR > 0

    ) NF SET = null;

    COMMIT;

    END;

    END PAQ_MULTIFOX;

    /

    CREATE OR REPLACE PACKAGE MULTIFOX. PAQ_MULTIFOX AS


    PROCEDURE REVISA_CRED;

    END PAQ_MULTIFOX;

    When I call this procedure of Toad SQLEditor I get this error

    Capturado.gif

    If I run the script directly in TOAD sqleditor, it works great!

    Capturado.gif

    I have connected to the schema SIACOM one gave all permisions them user MULTIFOX,.


    GRANT CONNECT TO MULTIFOX;

    GRANT DBA TO MULTIFOX;

    MULTIFOX GRANT RESOURCE;

    GRANT SELECT ANY TABLE TO MULTIFOX;

    GRANT EXECUTE ANY PROCEDURE TO MULTIFOX;

    GRANT SELECT, INSERT ON SIACOM. PD FOR MULTIFOX;

    GRANT SELECT, INSERT ON SIACOM. PDI TO MULTIFOX;

    but don't solve it, get the same error (ORA-01031: insufficient privileges)

    When I add the AUTHID CURRENT_USER clause to the definition of the package, had this error in compiling...

    Capturado.gif

    What Miss me?

    Thanks in advance. !



    But isn't your request doing an UPDATE? A right to select is not help with that.

    The best way to solve the problems related to the privilege is to remove all of THE objects except for one a simple query and see if it works. If she adds another object of return and test this.

    You will find the problem object when it fails.

Maybe you are looking for