ORA-01031: insufficient privileges on run immediately 'create a table... '. »

Hello. I created a stored procedure that starts an immediate execution "create table..." Responses to Oracle with the message ' ORA-01031: insufficient privileges.

I solved the problem adding 'authid current_user is' in the procedure declaration.

Unfortunately, if I try to plan his by DBMS_JOB, responses to oracle with the same error again.

Why? And how can I avoid it?

Thank you very much in advance

Published by: user4501018 on 6-mag-2010 4.00

user4501018 wrote:

Unfortunately, if I try to plan his by DBMS_JOB, responses to oracle with the same error again.

Add:

run immediately "role play all THE ';"

before immediate 'create table..."

SY.

Tags: Database

Similar Questions

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

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

  • create returns user ORA-01031: insufficient privileges

    Hi all

    I am trying to create user on Oracle 11.2.0.4 windows db.

    I get the following error

    create the user one identified by a

    Error in the command line column: 6:28

    Error report:

    SQL error: ORA-01031: insufficient privileges

    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.

    Please may I know how to solve.

    I disabled Database Vault Account Management.

    This allowed me to grant privileges as user sys.

    C:\Users\rbastawa>sqlplus / as sysdba

    SQL * more: Production release 11.2.0.4.0 on sea 12 Nov 09:56:40 2014

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

    Connected to:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    With partitioning, Oracle Label Security, OLAP, Data Mining,

    Oracle Database Vault and Real Application Testing options

    SQL > grant connect to one.

    grant connect to a

    *

    ERROR on line 1:

    ORA-47410: Violation of Kingdom for GRANT on CONNECT

    SQL > grant connect to one.

    Grant succeeded.

    SQL >

    Thanks for the help.

  • ORA-01031: insufficient privileges when you try to run a proc

    I have a procedure called KILL_MY_SESSION that is defined with a value of DEFINE AUTHID

    The schema JOHN belonged procedure. The procedure makes several calls to PL/SQL DBMS_SQL package.
    The last thing that not with DBMS_SQL proceedings concern an ALTER SYSTEM KILL SESSION statement.
    Schema JOHN has privileges to kill a session in the database.
    If I log in the scheme of JOHN, I can issue the statement ALTER SYSTEM KILL SESSION successfully.
    Also, when you are logged in the scheme of JOHN, I can run the KILL_MY_SESSION procedure.

    Now I have the ISTO schema. I got ISTO privileged EXECUTE on the JOHN. Procedure KILL_MY_SESSION.
    Since JOHN. KILL_MY_SESSION is a privilege of rights DEFINERs, if RIGHTS shouldn't be able to execute the procedure correctly and kill a session?

    This is an output of the session of the ISTO when you try to run JOHN. KILL_MY_SESSION:

    SQL > conn oifs@dbname
    Enter password: *.
    Connected.
    SQL > 500 fixed lines
    SQL > select username, osuser, sid, serial #.
    2 session $ v
    3 where username = "OIFS."

    USERNAME OSUSER SID SERIAL #.
    ------------------------------ ------------------------------ ---------- ----------
    OIFS administrator 142 325
    OIFS administrator 139 613

    SQL > exec ('142 ', 325') john.kill_my_session
    BEGIN john.kill_my_session ('142 ', 325'); END;

    *
    ERROR on line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS." DBMS_SYS_SQL", line 1204
    ORA-06512: at "SYS." DBMS_SQL", line 323
    ORA-06512: at "EIADBA. KILL_MY_SESSION', line 20
    ORA-06512: at line 1


    Someone at - he a clue as to what I'm doing wrong?
    View DBA_PROCEDURES, here's the record for KILL_MY_SESSION


    OWNER
    ------------------------------
    OBJECT_NAME
    --------------------------------------------------------------------------------
    OBJECT_TYPE AUTHID
    ------------------- ------------
    JOHN
    KILL_MY_SESSION
    DEFINE PROCEDURE

    I mean the privilege of system alter directly, not through roles.

    GRANT ALTER SYSTEM TO JOHN;
    

    Please read the articles below, you should restrict the sessions that can be killed, according to what will be your implementation.

    It could be useful.
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:226613885088
    http://DBA-Oracle.com/t_granting_alter_system_kill_session.htm

  • 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 from a function

    Deploy_ctl.fun_stg_raw (NO_DAYS in NUMBER, of the FUNCTION to CREATE or REPLACE
    col_date DATE)

    RETURN NUMBER
    AS

    RTN_SUCCESS CONSTANT NUMBER (1): = 0;
    RTN_FAILURE CONSTANT NUMBER (1): = 1;
    RTN_NON_FATAL NUMBER (1) CONSTANT: = 2;


    CURSOR stg_raw_cur IS
    SELECT RAW_STG_ID,
    DEVICE_CD,
    MODEL_VERSION,
    PLATFORM_CD,
    PROFILE_COOKIE,
    LOCATION_CD,
    SAMPLE_RATE,
    EVENT_TYPE_CD,
    EVENT_DATE_TIME,
    EVENT_SPECIFIC,
    BATCH_ID,
    DWH_ARVL_DT,
    DWH_ARVL_DT_ID,
    Dwh_stg.stg_raw DWH_CREATE_DT
    When trunc (to_date (EVENT_DATE_TIME, "YYYYMMDD"T"hh24:mi:ss"Z"')) = to_date (' 04/28/2014 ',' mm/dd/yyyy')
    order of batch_id CSA;


    TYPE stgrawarr IS TABLE OF stg_raw_cur % ROWTYPE;

    stg_raw_rec stgrawarr;

    l_batch_id NUMBER: = 0;
    v_ctr NUMBER: = 1;
    l_temp_batch_id number: = 0;
    l_date VARCHAR2 (2000);

    BEGIN

    run immediately 'truncate table t_stg_raw;

    OPEN stg_raw_cur.
    LOOP
    Get the stg_raw_cur COLLECT LOOSE stg_raw_rec LIMIT 100;
    OUTPUT
    WHEN stg_raw_cur % NOTFOUND;
    END LOOP;

    CLOSE Stg_raw_cur;

    I'm in stg_raw_rec.first... stg_raw_rec. Last
    loop

    -dbms_output.put_line (' batch code is ' | .batch_id stg_raw_rec (i));
    IF l_temp_batch_id! = stg_raw_rec (i) .batch_id
    then

    l_batch_id: = stg_raw_rec (i) .batch_id - v_ctr;
    l_temp_batch_id: = stg_raw_rec (i) .batch_id;
    * dbms_output.put_line ('Différent' |) "v_ctr" |
    v_ctr | ' ' || l_batch_id |
    ' ' || stg_raw_rec (i) .batch_id | ' ' ||
    stg_raw_rec (i). EVENT_DATE_TIME) ;*/
    v_ctr: = v_ctr + 2;

    end if;

    1.no_days j
    loop
    l_date: = to_char (to_date (to_date (substr (stg_raw_rec (i). (EVENT_DATE_TIME, 1, 8), 'YYYYMMDD')-j |
    'T' ||
    substr (stg_raw_rec (i). EVENT_DATE_TIME, 10, 8).
    ('Z', "DD-MON-RR"T"HH24:MI:SS 'Z'"), "YYYYMMDDYY"T"HH24:MI:SS 'Z'");
    dbms_output.put_line (' l_batch_id ' | l_batch_id |)
    "stg_raw_rec (i) .batch_id | stg_raw_rec (i) .batch_id |

    "l_date" | l_date);
    end loop;

    l_temp_batch_id: = stg_raw_rec (i) .batch_id;
    commit;
    end loop;

    RETURN RTN_SUCCESS;

    EXCEPTION
    WHILE OTHERS THEN
    -Insert in the (current) error log table
    DBMS_OUTPUT. PUT_LINE ('SQLCODE' |) SQLCODE. ' '|| SQLERRM);

    RETURN RTN_FAILURE;

    END fun_stg_raw;
    /
    DISPLAY ERRORS;
    /


    I can execute SQL statements on its own as a user DEPLOY_CTL but when compiling the function, he throws ORA-01031: insufficient privileges error.

    Thank you

    This may be infamous granting by the issue of the role. You need the explicit subsidies. For more information see Re: compile errors
    You can use the VALUE NO ROLE and then try to run the SQL to check.

  • 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

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

  • ORA-01031: insufficient privileges in a LOGIN TRIGGER

    Connected to db as SYS (SYSDBA) and created:


    CREATE OR REPLACE TRIGGER SYSTEM.trace_login
    AFTER LOGON
    WE DATABASE
    BEGIN
    IF SYS_CONTEXT ('USERENV', "SESSION_USER") LIKE '% TS_PROD_OGE_70803A % '.
    THEN
    -EXECUTE IMMEDIATE ' alter session set sql_trace = TRUE ";
    DBMS_SESSION.session_trace_enable (expected = > TRUE, lie = > FALSE);
    EXECUTE IMMEDIATE 'alter session set tracefile_identifier = LOCTRACE';
    END IF;
    END;

    When the TS_PROD_OGE_70803A user (logon)

    Trace file C:\oracle\app\tsadmin\diag\rdbms\wptsora11g\wptsora1\trace\wptsora1_ora_2444.TRC
    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options
    Windows NT Version 6.0 Service Pack 2
    CPU: type 4-8664, 4 physical cores
    Process affinity: 0 x 0000000000000000
    Memory (success/Total): Ph: 793 M / 4094 M, Ph + FCP: 4981 M / 8437 M
    Instance name: wptsora1
    Redo thread mounted by this instance: 1
    Oracle process number: 21
    Windows thread ID: 2444, image: ORACLE. EXE (SHAD)


    2010-12-29 16:50:52.723
    SESSION ID: (54.2012) 2010-12-29 16:50:52.723
    CUSTOMER ID :() 16:50:52.723 2010-12-29
    SERVICE NAME: (WPTSORA11G) 2010-12-29 16:50:52.723
    MODULE NAME:(SQL Developer) 2010-12-29 16:50:52.723
    ACTION NAME :() 16:50:52.723 2010-12-29

    Ignored the error 604 while SYSTEM is running. TRACE_LOGIN

    2010-12-29 16:50:52.723
    -Error stack dump-
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS." DBMS_SESSION", line 269
    ORA-06512: at line 5


    I tried a number of grants to the user, but I always get the same answer

    (Oracle 10.2.x and also on Oracle 11)

    Thanks for the tips

    OK, if people helped you that you can still give their answers as correct or useful.

    Nice day

  • ORA-01031: insufficient privileges problem

    Hi all

    I am creating the procedure of BOLMIN figure who selects his turn to the data in the tables of the VALMIN diagram below. and I get ORA-01031: insufficient privileges error.

    CREATE OR REPLACE PROCEDURE BOLMIN.prcs_load_data
    IS
    BEGIN
    FOR c
    IN (SELECT DISTINCT AL4. GOAL_TEXT,
    AL5. RESPONSE_TEXT,
    AL7. SAMPLE_ID,
    AL7. ACADEMY_NAME,
    AL8.NAME
    OF VALMIN. PROFIL_UTILISATEUR AL3,
    VALMIN. STUDENT_GOALS AL4,
    VALMIN. STUDENT_QUESTION_DETAILS AL5,
    VALMIN. STUDENT_QUESTION_RESPONSE AL6,
    VALMIN. SAMPLE AL7,
    VALMIN.NAME AL8
    WHERE (AL3. GOAL_ID = AL4. GOAL_ID (+)
    AND AL3. USER_ID = AL6. USER_ID (+)
    AND AL6. QUESTION_TYPE_SUB_ID = AL5. QUESTION_TYPE_SUB_ID (+)
    AND AL7.NAME_ID = AL8.NAME_ID (+)))
    LOOP
    NULL;
    END LOOP;
    END;
    /

    I checked grants each table involved in the associated SQL schema VALMIN & have all grant SELECT (to the BOLMIN schema). In addition, the query SQL itself, when it is run in the schema BOLMIN works perfectly well. The problem only occurs when I enclose the query in a procedure. Isn't it weird? or am I missing something here? Any help on this is appreciated. Thank you.

    BOLMIN schema as CREATE the privilege of the PROCEDURE I've already created other procedures for other purposes.

    Thank you
    Aristides

    Published by: siri_me on October 2, 2010 09:23

    http://asktom.Oracle.com/pls/asktom/asktom.download_file?p_file=6551289900368934430

  • 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

  • Service_name problem-> ORA-01031: insufficient privileges error!

    I installed the database Oracle 11.2.0.1 on Oracle Linux 6.6, Virtualbox to test replication of the database.

    I have oracle11g and grid of two users. User network is set to infrastructure grid on ASM.

    When I prepare the database for duplication, I created a service_name as neworcl. When I connect to new oracle_sid with service name neworcl the following error has occurred!

    [oracle11g@orcl11g dbs] $ sqlplus sys/222333@neworcl as sysdba

    SQL * more: Production release 11.2.0.1.0 on Sun Oct 13 15:00:35 2015

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

    ERROR:

    ORA-01031: insufficient privileges

    BUT WHEN I want TO CONNECT locally without service_name then it is OK as follows

    Enter the user name: sys as sysdba

    Enter the password:

    Connected to:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > select instance_name, status from v$ instance;

    STATUS INSTANCE_NAME

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

    neworcl START

    My tnsnames.ora file located in oracle11g user home as below

    tnsnames.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora

    # Generated by Oracle configuration tools.

    = ORA11G

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = orcl11g) (PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = ora11g)

    )

    )

    NEWORCL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = orcl11g) (PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = neworcl)

    )

    )

    Listener.ora file located user to network as below

    listener.ora # Network Configuration file: /u01/app/grid/product/11.2.0/grid/network/admin/listener.ora

    # Generated by Oracle configuration tools.

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (GLOBAL_DBNAME = ora11g)

    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)

    (SID_NAME = ora11g)

    )

    (SID_DESC =

    (GLOBAL_DBNAME = neworcl)

    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)

    (SID_NAME = neworcl)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    (ADDRESS = (PROTOCOL = TCP)(HOST = orcl11g) (PORT = 1521))

    )

    )

    ADR_BASE_LISTENER = / u01/app/grid

    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = WE

    QUESTION: Why I can't connect to the new database with service_name = neworcl?

    Net Oracle connections as sysdba usually require a password file. Have you created a password file for your database?

    You can check the content of $ORACLE_HOME/dbs and see if you have a file named "orapwneworcl". If you do not, you can create it using the orapwd utility. Change your password for SYS in sqlplus must automatically synchronize the password in the password file. The password file is necessary for remote connections, since you cannot authenticate using the OSDBA group and the database may in fact not even begin to verify your password.

    For more details, see https://docs.oracle.com/cd/B28359_01/server.111/b28310/dba007.htm

    BTW, when you connect AS SYSDBA using Protocol inheritance, you can use any user name and password and will always connect to the SYS schema, which case authentication is made by the OSDBA group identifier. For example, you can use any user name and password, such as "humptydumpy/blablaba sqlplus as sysdba".

  • 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 - 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] $

Maybe you are looking for