Getting ORA-01031 while connecting to target database

I have created RMAN catalog. While connecting to target database i am getting ORA-01031: insufficient privileges. What could be the reason. I have added entry of both the databases in listner.ora as well as tnsnames.ora, but still facing the same problem. Please help
[oracle@dbapool ~]$ rman catalog=rman/pass@sdn target=sys/pass@sdn1
Recovery Manager: Release 10.2.0.1.0 - Production on Fri Apr 30 23:49:46 2010
Copyright (c) 1982, 2005, 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

Issue got resolved. The problem was with password file.

Similar Messages

  • Getting ORA-01031 while connect target

    Hi,
    I'm trying to perform a rman duplictate.
    I've created the orapwd file and setted the remote_login_passwordfile parameter as "EXCLUSIVE". I also have configured the connection to the target database on the tnsnames.ora file
    I'm getting this error:
    [server]> rman
    RMAN> CONNECT TARGET system/iwjIGPE@TARGET_DB
    RMAN-00571: ======================================
    RMAN-00569: ==== ERROR MESSAGE STACK FOLLOWS ===========
    RMAN-00571: ======================================
    ORA-01031: insufficient privileges
    RMAN> exit
    Recovery Manager complete.
    .... But I can connect remotely though sqlplus:
    [server]> sqlplus system/iwjIGPE@TARGET_DB
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Sep 13 13:04:32 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    SQL> exit
    thanks for your help!

    Hi again!
    I'm trying to follow the steps you propose:
    [server]> rman target sys/c9vhLZT0@TARGET_DB auxiliary /
    Recovery Manager: Release 11.2.0.2.0 - Production on Thu Sep 13 13:29:07 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. 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-01017: invalid username/password; logon denied
    I'm sure that the password is correct. I've re-created the password file and the error continues.
    I'm still able to connect from sqlplus ...
    [server]> echo $ORACLE_SID
    AUX
    [server]> sqlplus
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Sep 13 13:31:35 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Enter user-name: sys@TARGET_DB as sysdba
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    SQL >
    I've granted the sysdba role to system:
    SYS @ TARGET_DB > select * from v$pwfile_users;
    USERNAME SYSDB SYSOP SYSAS
    SYS TRUE TRUE FALSE
    SYSTEM TRUE FALSE FALSE
    I'm not able to connect either with sys not with system users
    Thanks a lot
    Edited by: user11978261 on Sep 13, 2012 4:41 AM

  • ORA-01031 WHEN CONNECTING TO AUXILIARY DATABASE

    Hi
    i am currently trying to to create a standby database using RMAN using the ORACLE RMAN Backup and recovery book.
    I get the ORA-01031 when i connect to the auxiliary database.
    i do the following:
    RMAN> connect target sys/password@primary
    connected to target
    RMAN > connect auxiliary sys/password@aux1
    ORA-01031.............insufficient privileges
    obviously the database aux1 hasnt been created yet but i have configured the tns and listener and both work fine, also created a password file and created a pfile from the spfile in the primary database as instructed by the book. I also started the aux1 database in nomount mode as well.
    does any one have any ideas where i maybe going wrong?
    thanks

    conn sys/pwd@aux1 as sysdba ,what happens to this
    in sqlplus
    add an entry to your TNSNAMES.ora
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    We dont need this entry this is for OS authenicarion sorry
    then try again
    Version and OS?
    Message was edited by:
    Maran Viswarayar
    Message was edited by:
    Maran Viswarayar

  • Throwing error ORA- 01031 while connecting as sys, but not with system

    Hi
    we are having oracle 10g on one of the server. When I try to connect sqlplus "/as sysdba"..its throwing error
    ORA- 01031: Insufficient privelege.
    But when I tried login with sqlplus system@dbname its getting connected properly. whats the reason behind this? It was
    working fine till yesterday.
    Thanks
    Shiyas M

    The reason for this can partly be seen in your profile,
    you have asked 17 questions, and 17 of them have been unresolved.
    This isn't very likely,
    so likely you are too lazy to label a question as answered.
    Your laziness is also indicated by this question, which is a FAQ, and FAQs are most often asked, by people who
    - don't read documentation
    - don't use online resources
    - don't search this forum
    prior to asking their FAQ.
    Your equation of SYS as SYSDBA and the SYSTEM account is also incorrect, as SYSTEM doesn't have SYSDBA privileges.
    The ORA-1031 simply means someone somehow disabled OS authentication.
    Now it is up to you to find out why.
    Either by using online resources, or by reading documentation, and researching your own database.
    Not by asking a FAQ and never marking any answer as correct.
    Sybrand Bakker
    Senior Oracle DBA

  • Getting ORA-01031 when attempting to Create Database

    I am attempting to issue a CREATE DATABASE statement via JDBC but I am getting a "ORA-01031: insufficient privileges" error. I am logged in as an administrator and I have no trouble creating tables. I am also receiving the same error when attempting this from SQLPlus. I'm stumped.
    Thanks,
    Pino

    Pino,
    I haven't verified this, but only the SYS user can create a DATABASE in Oracle, and you also need to use a special login (when going via SQL*Plus) which JDBC cannot handle. Hence your failures both via JDBC and SQL*Plus.
    By the way, if you are new to Oracle, but have experience in another database, then the Oracle idea of a DATABASE is probably different than what you're used to. That's probably why you're stumped. If you haven't already done so, I suggest reading the Oracle Database Concepts volume of the Oracle documentation, which is available from:
    http://tahiti.oracle.com
    Good Luck,
    Avi.

  • 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

  • Getting ORA-01031: insufficient privileges if try to connect in sqlplus

    Hi,
    I've tried to connect to my db which stands at host (Solaris), but getting
    ORA-01031: insufficient privileges.
    The client I've used is sqlplus.
    SQL> conn sys@REP as sysdba
    ERROR:
    ORA-01031: insufficient privileges
    At the same time I can successfully connect to the same db from the same PC with the same connection string at PL/SQL Developer.
    How it can be possible?

    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-12514: TNS:listener - RMAN - Target Database

    Hi Pals,
    Today while configuring two of my machines (On same Network) for RMAN I'm facing some issues while connect to the Catalog Server and register a target database.
    Here are more details about the (Environment) -- machines:
    Machine 1 - ORCL (Catalog Server)
    Machine 2 - PRCL (Target Database)
    Both machines and in same network.
    Tnsping results: both machines are able to ping each other
    Unix Ping results: both machines are able to ping
    Listeners: Up and Running on both machines
    Names: Listeners (Both Machines)
    TNSnames: Created an for both machines in each others tnsnames.ora file.
    tnslsnr status: Connected Both Machines)
    OS: Linux Red Hat 5
    Db: Oracle 11gR2
    Status: DB are up and working good and both are in ARCHIVELOG Mode.
    Env: VMWARE Team (Version 6)
    So, while trying to connect to Catalog Server(DB Name: ORCL) from Target Machine (DB name: PRCL) I'm getting a TNS:Listener based error.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [oracle@localhost ~]$ rman target / catalog rman/oracle90@orcl
    Recovery Manager: Release 11.2.0.1.0 - Production on Mon May 21 20:49:08 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    connected to target database: PRCL (DBID=459947553)
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04004: error from recovery catalog database: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    [oracle@localhost ~]$
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Please assist and let me know in case more details required.
    Thanks
    Prashant Dixit

    Hi Tychos/DMorgan,
    Below provided are tnsentries and listener.ora file contents from both of the machines.
    Yes, i'm using vmware (Team) and have 2 machines in the same network (1st ORCL - 2nd PRCL). Both of them are able to ping each other.
    First Machine 1 - ORCL Instance:
    *1. listener.ora file:*
    +++++++++++++++++++++++++
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
    (PROGRAM = extproc)
    LISTENER1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    ADR_BASE_LISTENER = /u01/app/oracle
    ----> tnsnames.ora__
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.localdomain)
    PRCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = prcl.localdomain)
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Machine 2: PRCL Instance -
    listener.ora file
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    ---> tnsnames.ora file
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    PRCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = prcl.localdomain)
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.localdomain)
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    I've tried several options with SERVICE_NAME and HOST name after your's and Morgan's post but no luck so far. Please let me know if need (*tnslsnr* status results as well)
    So, this is what i originally have on my machine and yes I'm still getting ORA-12514: TNS:listener error.
    Thank you guys for your attention.
    Please help.
    Thanks
    Prashant Dixit
    Edited by: OracleAnt ... on May 22, 2012 4:58 PM

  • Error while connecting to  Auxiliary Database

    Hi
    I am practicing Cloning the database on my Personal Computer. I am following the steps outlined here
    http://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php
    But while connecting to Auxiliary database I get this error.
    RMAN - 04006 Error from auxiliary database: ORA 12514 TNS: listener does not currently know of service requested in connect descriptor
    RMAN - 00554 initialization of internal recovery manager package failed...
    what is the solution for this?
    This is 10g database and my PC has Opensuse 11 OS
    I think the problem is in configuring listener. But I am following the instructions given in that page....

    You probably skipped this part
    Next add the appropriate entries into the tnsnames.ora and listener.ora files in the $ORACLE_HOME/network/admin directory. Remember to load the new configuration into the listener:
    Which is why you are getting the error. The database needs to register itself with the listener. This doesn't happen in nomount mode.
    Other than that: there is an option in database control to duplicate a database in 10g. Using that you only need to hit buttons. Why are you using 9i code and policies?
    Sybrand Bakker
    Senior Oracle DBA

  • I was facing problem while connecting to oracle database.Can some one help me soon!!!!!

    Hi all,
    I was facing problem from last week.Suddenly i was getting ora-12505 error while connecting to the database through toad.I tried to change tnsnames.ora & listener.ora in multiple ways,but no luck...Inspite i was getting different errors like ora - 01034: ORACLE not available / ora - 27101: shared memory realm does not exist...When i try to connect using sys / sys as sysdba,connection is establishing and when issue the command startup it was throwing the error ORA-01821: date format not recognized......Fed up solving these issues....Can some one help me out...It's very very urgent..
    Thanks in advance,
    pavankumar.

    Well, the obviously solution is to use separate Apple ID's for iCloud.

  • Get ORA-01031: insufficient privileges error, but only when using dbstart.

    I am getting ORA-01031: insufficient privileges error, but only when using dbstart. the listener starts but not the database. How come I can start it from SQL prompt but not from dbstart scripts as the oracle user?
    [oracle@mallard bin]$ ./dbstart
    Processing Database instance "gf44": log file /prod/oracle/10/startup.log
    [oracle@mallard bin]$
    Log file:
    Wed Aug 20 10:15:02 CDT 2008
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Aug 20 10:15:02 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> ERROR:
    ORA-01031: insufficient privileges
    SQL> ORA-01031: insufficient privileges
    SQL>
    /prod/oracle/10/bin/dbstart: Database instance "gf44" warm started.
    >
    oratab file:
    gf44:/prod/oracle/10:Y
    dbstart file section:
    # See if it is a V6 or V7 database
    VERSION=undef
    if [ -f $ORACLE_HOME/bin/sqldba ] ; then
    SQLDBA=svrmgrl
    VERSION=`$ORACLE_HOME/bin/sqldba command=exit | awk '
    /SQL\*DBA: (Release|Version)/ {split($3, V, ".") ;
          print V[1]}'`
    case $VERSION in
    "6") ;;
    *) VERSION="internal" ;;
    esac
    else
    if [ -f $ORACLE_HOME/bin/svrmgrl ] ; then
    SQLDBA=svrmgrl
    VERSION="internal"
    else
    SQLDBA="sqlplus /nolog"
    fi
    fi
    Permissions of file:
    [oracle@mallard bin]$ ls -la dbstart
    -rwxrwxr-x 1 oracle oinstall 10407 Aug 19 12:27 dbstart
    [oracle@mallard bin]$
    User permissions:
    [root@mallard 10]# id oracle
    uid=503(oracle) gid=503(oinstall) groups=503(oinstall),504(dba)
    [root@mallard 10]#
    I can start the listener manually using "./lsnrctl start" and start the database manually from sql prompt using "SQL>startup" (as sysdba) with no problems. this only happens when using dbstart file. I am logged in as oracle user and all environment variables are set
    Thank you for any help you could provide.

    I have the same problem, but i don't want insert this string
    Connect sys/{password} as sysdbaI have deployed an Oracle 10g with os SunOS
    $ uname -a
    SunOS DB02 5.10 Generic_141444-09 sun4v sparc SUNW,Sun-Blade-T6320
    I can connect with sys/password, but I can't login with
    $ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jan 7 15:19:50 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    SQL> connect / as sysdba
    ERROR:
    ORA-01031: insufficient privilegesthe the startup and dbshut don't work.
    Someone maybe help me?
    Thanks,
    Regards.
    Lain

  • Error while connecting to the database from a JSP Page

    Hi,
    I am using a simple JSP page which is based on the sample JSP pages from OTN.
    When I try to connect to my database using the following code:
    InitialContext ic = new InitialContext();
    OracleDataSource ds = (OracleDataSource)ic.lookup("jdbc/OTN9iDS");
    m_connection = ds.getConnection();
    I get the following error:
    Naming exception Error while connecting to the database : javax.naming.NameNotFoundException: jdbc/OTN9iDS not found in JDBCTest-JDBCTestProject-webapp
    Does anybody know wht this is happening?
    Any help would be appreciated
    FRank

    Hi Frank,
    Are you using standalone OC4J or 9iAS ? If you are using standalone OC4J then you need to add a proper data source entry in %OC4J_HOME%j2ee\home\config\data-sources.xml file.
    If you are using 9iAS the you can log in to the Enterprise Manager console and add the data source entry by using wizard provided by 9iAS.
    Ensure the case of the JNDI lookup string, since, it is case sensitive.
    Hope this helps.
    Abhijeet

  • Unable to connect my target database

    I am trying to create a clone of my database named proddb using my production RMNA backup,
    so when i export ORACLE_SID=proddb
    and then try to connect to my rman using
    rman target /
    its showing connected to target database clonedb
    i have checked the servicxes and there are no services named clonedb and their is no entry in my tnsnames or listner as clonedb......

    user9038728 wrote:
    oracle@localhost ~]$ export ORACLE_SID=proddb
    [oracle@localhost ~]$ export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1/
    [oracle@localhost ~]$ rman target sys/password
    Recovery Manager: Release 11.2.0.1.0 - Production on Fri Jan 6 11:27:13 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    connected to target database: CLONEDB (not mounted)
    RMAN>
    this is the output which i am getting.......Your target/source/Production database should be in OPEN status & your new/clone/auxiliary instance should be in started/not mounted status.
    You have to connect as below
    $rman target sys/*****@prod auxiliary /
    Then target will be production, you have to export SID of auxiliary and test the TNS connectivity to primary.

  • ORA-01031 while executing a procedure with the owner

    I'm Trying to execute a procedure shipment_sequence which is under the ps_user user but i keep getting ORA-01031.
    Please suggest what should be done to counter this.
    Regards,
    Ankit

    create or replace Procedure shipment_sequence
    l_seq_start_with IN NUMBER,
    maxvalue IN NUMBER, event_identifier out SYS_REFCURSOR)
    is
    begin
    begin
    execute immediate 'DROP SEQUENCE SHIPMENT_SEQ';
    exception
    when others then null;
    end;
    execute immediate
    'CREATE SEQUENCE SHIPMENT_SEQ START WITH '
    ||to_char(l_seq_start_with)
    ||' MAXVALUE '||to_char(maxvalue)||' MINVALUE 1 CACHE 20 INCREMENT BY 1';
    OPEN event_identifier FOR select * from dual;
    end;
    Oracle version: 11.1.0.7
    execution: VAR rc REFCURSOR
    EXEC shipment_sequence(961000000,961100000, :rc);
    print rc;
    Error Message:
    Error starting at line 2 in command:
    EXEC shipment_sequence(961000000,961100000, :rc);
    Error report:
    ORA-01031: insufficient privileges
    ORA-06512: at "PS_USER.SHIPMENT_SEQUENCE", line 12
    ORA-06512: at line 1
    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.
    rc
    Let me know if you need any more information.
    Regards,
    Ankit

  • Regarding connection to target database

    hi guys
    i want to create my dr database(standby)
    the sys password of target database is pcc$111 and db name is pccdb and tw instances are pccdb1 pccdb2
    the database name of standby database is pccdb and instances are scc1 scc2
    now when i am giving command as
    $rman target sys/pcc$111@pccdb1 auxiliary /
    it gives error
    00554--initialisation of internal recovery manager package failed
    rman -01017 invalid username/password
    another way i am doing is
    $rman target pccdb1 auxiliary /
    rman>duplicate target database for standby;
    rman--05502-target database must be mounted when issuing duplicate command
    so please clear is in this way it is connecting to target database and my target database is open

    >
    the sys password of target database is pcc$111 and db name is pccdb and tw instances are pccdb1 pccdb2
    the database name of standby database is pccdb and instances are scc1 scc2
    now when i am giving command as
    $rman target sys/pcc$111@pccdb1 auxiliary /
    it gives error
    00554--initialisation of internal recovery manager package failed
    rman -01017 invalid username/password
    You didn't give your exact release of Oracle, but with some releases there are issues with case sensitive passwords for privileged connections. This can be related to whether you used the ignorecase switch when you created your password files.
    John Watson
    http://skillbuilders.com

Maybe you are looking for

  • Hide folios with not entitlements

    Hi need to hide the folios for users that don't have rights to see them. Or if the user is not logged in. I'm implementing a custom library in android following the  Android Combined Library and Store  example found here DPS Configurator. I'm calling

  • Regarding rejection of material from vendor

    Hi All My scenario is like this My semi finished material is come from vendor after that i put that material on production after doing all process production done the GR for that material as finished goods. This material goes into quality and here I

  • No SIM card Installed – Insert a valid SIM card with no PIN lock to Activate phone

    How do i solve this problem? No SIM card Installed – Insert a valid SIM card with no PIN lock to Activate phone

  • Mozilla Firefox 22.0 and Flashplayer 11.8.800.94 (German)

    Hey there, first SORRY my "****" English! I have problems with my computer with Flashplayerversion 11.8.800.94. I work with Win 7 (64bit) and Mozilla Firefox 22.0. Everytime when i go to a page with Flashplayer animations the Computer crashed! I get

  • Playing mpgs in a seperate window

    I watched the Steve Jobs keynote address the other day and safari opened a separate sizable window . How do I get safari to do this all the time ? It actually does it with my old explorer browser .