Orapwd problem

hi every one i am new to Oracle
I am trying to set password by orapwd utility.
example: orapwd file=orapworcl password=vikas exclusive=3;
but, when i login as sqlplus sys as sysdba or sqlplus sys/123 as sysdba
it is login without any authentication....
Edited by: 993776 on Mar 13, 2013 8:04 PM
Edited by: 993776 on Mar 13, 2013 8:06 PM

SYSDBA suffix effectively connects you to the database (using OS authentication, no matter what credentials you provide).
Tom Kyte specifically stipulates this in this thread.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0%3a%3a%3a%3aP11_QUESTION_ID:61866277480450
Basically he explains that the SYSDBA suffix effectively connects you to the database as SYS no matter what credentials you give (using OS authentication), the example he uses is:
connect santa/claus as sysdba same as
connect / as sysdba
connect santa/claus as sysdba
sys%ORA10GR2> connect santa/claus as sysdba
Connected.
sys%ORA10GR2> show user
USER is "SYS"Hope it helps...
Regards,
Ankit Rathi
http://oraclenbeyond.blogspot.in

Similar Messages

  • Installation problem on RHEL ES 4(Nahant Update 2)

    hi ,
    I am installing oracle9iR2 (9.2.0.4) (32 bit) on Red Hat Enterprise Linux ES release 4(32-bit) (update 2). but i am facing following problem during installation.
    actually it says
    Install is successful.
    but while
    linking oracle net required support files 9.2.0.4.0
    i am getting the following error like
    Error in invoking target ntcontab.o of makefile /home/oracle/OraHome1/network/lib/ins_net_client.mk
    Error in invoking target relink of makefile /home/oracle/OraHome1/precomp/lib/ins_precomp.mk
    Error in invoking target install of makefile /home/oracle/OraHome1/plsql/lib/ins_plsql.mk
    Error in invoking target install of makefile /home/oracle/OraHome1/plsql/lib/ins_sqlplus.mk
    Error in invoking target install of makefile /home/oracle/OraHome1/network/lib/ins_oemagent.mk
    Error in invoking target ioklist of makefile /home/oracle/OraHome1/network/lib/ins_nau.mk
    Error in invoking target iokinit of
    makefile /home/oracle/OraHome1/network/lib/ins_nau.mk
    Error in invoking target iokdstry of makefile /home/oracle/OraHome1/network/lib/ins_nau.mk
    Error in invoking target ikerberos of
    makefile /home/oracle/OraHome1/network/lib/ins_nau.mk
    Error in invoking target iradius of
    makefile /home/oracle/OraHome1/network/lib/ins_nau.mk
    Error in invoking target ioracle of
    makefile /home/oracle/OraHome1/network/lib/ins_rdbms.mk
    Error in invoking target install of makefile /home/oracle/OraHome1/ctx/lib/ins_ctx.mk
    Error in invoking target toolsinstall of
    makefile /home/oracle/OraHome1/ldap/lib/ins_ldap.mk
    Error in invoking target hragentinstall of
    makefile /home/oracle/OraHome1/ldap/lib/ins_ldap.mk
    Error in invoking target install of makefile /home/oracle/OraHome1/network/lib/ins_net_server.mk
    Error in invoking target install of makefile /home/oracle/OraHome1/otrace/lib/ins_otrace.mk
    Error in invoking target utilities of makefile /home/oracle/OraHome1/rdbms/lib/ins_rdbms.mk
    Error in invoking target install of
    makefile /home/oracle/OraHome1/rdbms/lib/ins_rdbms.mk
    and when each time error occur it ask me to either to press help or retry or ignore or cancel
    i dont know what to do........
    do any Package is to be installed or linking is need if it so how to do?
    i didnt get any clear doc of oracle9iR2(9.2.0.4.0) on RHEL ES 4
    plz can any one help me in this issue itz urgent.........
    With Regards
    Boo

    [oracle@testsrv2 install]$ tail -15 make.log
    /bin/sh: gcc: command not found
    make: *** [otrcfmt] Error 127
    /usr/bin/make -f ins_rdbms.mk utilities ORACLE_HOME=/home/oracle/OraHome1
    m -f /home/oracle/OraHome1/rdbms/lib/imp
    gcc -o /home/oracle/OraHome1/rdbms/lib/imp -L/home/oracle/OraHome1/rdbms/lib/ -L
    /home/oracle/OraHome1/lib/ -L/home/oracle/OraHome1/lib/stubs/ /home/oracle/Ora
    Home1/rdbms/lib/s0impdrv.o /home/oracle/OraHome1/rdbms/lib/defopt.o -ldbtools9
    -lclntsh `cat /home/oracle/OraHome1/lib/ldflags` -lnsslb9 -lncrypt9 -lnsgr9
    -lnzjs9 -ln9 -lnl9 -lnro9 `cat /home/oracle/OraHome1/lib/ldflags` -lnsslb9 -l
    ncrypt9 -lnsgr9 -lnzjs9 -ln9 -lnl9 -lclient9 -lvsn9 -lwtc9 -lcommon9 -lgeneric9
    -lwtc9 -lmm -lnls9 -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9
    `cat /home/oracle/OraHome1/lib/ldflags` -lnsslb9 -lncrypt9 -lnsgr9 -lnzjs9 -
    ln9 -lnl9 -lnro9 `cat /home/oracle/OraHome1/lib/ldflags` -lnsslb9 -lncrypt9 -
    lnsgr9 -lnzjs9 -ln9 -lnl9 -lclient9 -lvsn9 -lwtc9 -lcommon9 -lgeneric9 -ltrace
    9 -lnls9 -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9 -lclient9
    -lvsn9 -lwtc9 -lcommon9 -lgeneric9 -lnls9 -lcore9 -lnls9 -lcore9 -lnls9 -lxml9
    -lcore9 -lunls9 -lnls9 `cat /home/oracle/OraHome1/lib/sysliblist` -Wl,-rpath,
    /home/oracle/OraHome1/lib:/lib:/usr/lib -lm `cat /home/oracle/OraHome1/lib/sy
    sliblist` -ldl -lm
    /bin/sh: gcc: command not found
    make: *** [home/oracle/OraHome1/rdbms/lib/imp] Error 127
    /usr/bin/make -f ins_rdbms.mk install ORACLE_HOME=/home/oracle/OraHome1
    chmod 755 /home/oracle/OraHome1/bin
    rm -f oracle mig dbv tstshm maxmem orapwd dbfsize cursize genoci extproc extproc
    32 hsalloci hsots hsdepxa dgmgrl dumpsga mapsga osh sbttest imp exp sqlldr rman
    avmurout avmping avligmsg avmumon nid /home/oracle/OraHome1/rdbms/lib
    /ksms.s /home/oracle/OraHome1/rdbms/lib/ksms.o
    /bin/sh: /usr/bin/gcc: No such file or directory
    /usr/bin/ar: /home/oracle/OraHome1/rdbms/lib/config.o: No such file or directory
    make: *** [home/oracle/OraHome1/rdbms/lib/config.o] Error 1

  • Problem installing Oracle 8.05 on Redhat Linux 7.1

    I am currently trying to install Oracle 8.05 onto Redhat Linux 7.1. I can get part of the way through
    the installation, however, when it is installing the rdbms portion. I stops with an error about a failure
    during relinking. Here is the part of make.log which details what really happened. Could someone tell
    me how to proceed.
    Thank you,
    Nicholas Waltham
    --------------[ rdbms.ins 2618 ]---------------------------------------------
    Action: Installing install.
    Command: (make -f ins_rdbms.mk ORACLE_HOME=/opt/oracle/home install), Out=/opt/oracle/home/orainst/make.log, Err=/opt/oracle/home/orainst/make.log
    chmod 755 /opt/oracle/home/bin
    rm -f oracle exp imp sqlldr tkprof mig dbv tstshm maxmem orapwd dbfsize cursize rman genoci svrmgrl extproc ihsalloci ihsots ihsdepxa ogms ogmsctl osh sbttest /opt/oracle/home/rdbms/lib/ksms.s /opt/oracle/home/rdbms/lib/ksms.o
    echo " - Linking Oracle " ;\
    /opt/oracle/home/bin/echodo cc -L/opt/oracle/home/lib/ -L/opt/oracle/home/rdbms/lib -o /opt/oracle/home/rdbms/lib/oracle /opt/oracle/home/rdbms/lib/opimai.o /opt/oracle/home/rdbms/lib/ssoraed.o /opt/oracle/home/rdbms/lib/ttcsoi.o /opt/oracle/home/rdbms/lib/config.o \
    -lserver -lclient -lvsn -lcommon -lgeneric \
    /opt/oracle/home/rdbms/lib/defopt.o /opt/oracle/home/lib/ncrstab.o -lknlopt \
    -lslax -lplsf -lplsb -lextp -lserver -lclient -lvsn -lcommon -lgeneric -lknlopt \
    -lslax -lplsf -lplsb -lextp -ldbicx \
    /opt/oracle/home/lib/nautab.o /opt/oracle/home/lib/naeet.o /opt/oracle/home/lib/naect.o /opt/oracle/home/lib/naedhs.o `cat /opt/oracle/home/lib/naldflgs` -lnetv2 -lnttcp -lnetwork -lncr -lclient -lvsn -lcommon -lgeneric -lmm -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lnetv2 -lnttcp -lnetwork -lncr -lclient -lvsn -lcommon -lgeneric -lepc -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lclient -lvsn -lcommon -lgeneric -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 `cat /opt/oracle/home/lib/sysliblist` -ldl -lm -ldl -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lsql -lsql `cat /opt/oracle/home/rdbms/lib/nmliblist` `if ar tv /opt/oracle/home/rdbms/lib/libknlopt.a | grep "kxmnsd.o" > /dev/null 2>&1 ; then echo " " ; else echo "-lmdknl -lmdhh"; fi` \
    -lkidt -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 `cat /opt/oracle/home/lib/sysliblist` -ldl -lm -ldl -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lsql -lsql ;
    - Linking Oracle
    cc -L/opt/oracle/home/lib/ -L/opt/oracle/home/rdbms/lib -o /opt/oracle/home/rdbms/lib/oracle /opt/oracle/home/rdbms/lib/opimai.o /opt/oracle/home/rdbms/lib/ssoraed.o /opt/oracle/home/rdbms/lib/ttcsoi.o /opt/oracle/home/rdbms/lib/config.o -lserver -lclient -lvsn -lcommon -lgeneric /opt/oracle/home/rdbms/lib/defopt.o /opt/oracle/home/lib/ncrstab.o -lknlopt -lslax -lplsf -lplsb -lextp -lserver -lclient -lvsn -lcommon -lgeneric -lknlopt -lslax -lplsf -lplsb -lextp -ldbicx /opt/oracle/home/lib/nautab.o /opt/oracle/home/lib/naeet.o /opt/oracle/home/lib/naect.o /opt/oracle/home/lib/naedhs.o -lnetv2 -lnttcp -lnetwork -lncr -lclient -lvsn -lcommon -lgeneric -lmm -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lnetv2 -lnttcp -lnetwork -lncr -lclient -lvsn -lcommon -lgeneric -lepc -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lclient -lvsn -lcommon -lgeneric -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lnsl -lm -ldl -lm -ldl -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lsql -lsql /opt/oracle/home/rdbms/lib/skgxns.o -lmdknl -lmdhh -lkidt -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lnsl -lm -ldl -lm -ldl -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr -lsql -lsql
    /opt/ora cle/home/lib//libplsf.a(spssimb.o): In function `pss_gets':
    spssimb.o(.text+0x4ef): the `gets' function is dangerous and should not be used.
    /opt/oracle/home/lib//libgeneric.a(skgfr.o): In function `skgfrcre':
    skgfr.o(.text+0x4de): the `llseek' function may be dangerous; use `lseek64' instead.
    /opt/oracle/home/lib//libserver.a(hoco.o): In function `hoconsi':
    hoco.o(.text+0x104d): undefined reference to `__strtoq_internal'
    /opt/oracle/home/lib//libserver.a(hoco.o): In function `hoconui':
    hoco.o(.text+0x126a): undefined reference to `__strtouq_internal'
    collect2: ld returned 1 exit status
    make: *** [opt/oracle/home/rdbms/lib/oracle] Error 1
    Status: 2
    (( OIERR-SYSTEM: make -f ins_rdbms.mk ORACLE_HOME=/opt/oracle/home install ))
    --------------[ rdbms.ins 2631 ]---------------------------------------------
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Nicholas Waltham ([email protected]):
    I am currently trying to install Oracle 8.05 onto Redhat Linux 7.1. I can get part of the way through
    the installation, however, when it is installing the rdbms portion. I stops with an error about a failure
    during relinking. Here is the part of make.log which details what really happened. Could someone tell
    me how to proceed.
    Thank you,
    Nicholas Waltham
    --------------[ rdbms.ins 2618 ]<HR></BLOCKQUOTE>
    Well ,I tried to install Oracle 8.0.5 in Debian Potato. At end I desist.
    Oracle 8.0.5 works with glibc 5 and Debian Potato with glibc6 .
    I guess this is your problem.
    There are patches for this but i don't get
    to make work.
    Sorry for my english.
    Cisar

  • HELP: Problem creating a new database in Oracle 9i

    I am having difficulty in creating a new database in Oracle 9i, on Windows 2000. I would be obliged if somebody can go through the posting below and guide me as to what mistake I am making or what is the source of the problem:
    I reproduce the steps taken by me.
    I have decide the database to be called Mydb. I have made the following directories:
    -- d:\mydb
    -- d:\mydb\data
    -- d:\mydb\control
    -- d:\mydb\log
    -- d:\mydb\bdump
    -- d:\mydb\cdump
    -- d:\mydb\udump
    -- d:\mydb\archive
    -- d:\mydb\pfile
    -- d:\mydb\scripts
    -- d:\mydb\exp
    I copied the initoracle.ora file to d:\mydb\pfile\initmydb.ora, and made the following changes to it:
    -- db_name = mydb
    -- instance_name = mydb
    -- control_files = ("d:\mydb\control\control01.ctl")
    -- background_dump_dest = d:\mydb\bdump
    -- core_dump_dest = d:\mydb\cdump
    -- user_dump_dest = d:\mydb\udump
    -- remote_login_passwordfile = exclusive
    Also, I created a text file called d:\Oracle\Ora90\DATABASE\initmydb.ora with the following contents:
    ifile=d:\mydb\pfile\initmydb.ora
    At DOS prompt, I run the following command:
    set oracle_sid=mydb
    I run the ORAPWD utility to create internal password file at the command prompt.
    d:
    cd \oracle\ora90\database
    orapwd file=pwdmydb.ora password=panther entries=25
    I create a Windows service for the database as follows:
    oradim -new -sid mydb -startmode a -pfile d:\mydb\pfile\initmydb.ora
    I get connected:
    sqlplusw /nolog
    connect sys/change_on_install as sysdba
    startup nomount # pfile=d:\mydb\pfile\initmydb.ora
    create database mydb
    MAXINSTANCES 1
    MAXLOGHISTORY 1
    MAXLOGFILES 5
    MAXLOGMEMBERS 5
    MAXDATAFILES 100
    datafile 'd:\mydb\data\system.dbf' size 325m REUSE
    AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
    undo tablespace undotbs datafile 'd:\mydb\data\undo01.dbf' size
    200m reuse
    AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
    default temporary tablespace temptbs
    CHARACTER SET WE8MSWIN1252
    NATIONAL CHARACTER SET AL16UTF16
    logfile group 1 ('d:\mydb\log\log1.log') size 1m,
    group 2 ('d:\mydb\log\log2.log') size 1m,
    group 3 ('d:\mydb\log\log3.log') size 1m;
    Now I get the following error:
    create database mydb
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    The data files, control file, redo log files are all created. But the above error comes, and I am unable to start the database. What is the reason?
    Thanks in anticipation.
    PS

    Hi DENIS,
    I have executed the following commands (which are in a script file),
    1. sqlplus /nolog
    2. connect sys/change_on_install as sysdba
    3. create database ...
    4. ...
    When I execute the 3rd command, I get an error message as "ORACLE TERMINATED FORCED" and it will end the session. So when the next set of commands in the script are executed, I got the error saying "DATABASE NOT OPEN".
    How to rectify this problem.
    Thanks in advance,
    Kiran

  • Problem in opening cloned database

    i have cloned database with name test to test1 in the same oracle home.My problem is that i can't able to open the cloned database
    c:\>set oracle_sid=test1
    c:\>sqlplus /nolog
    SQL>conn sys/oracle as sysdba;
    ORA-12560 TNS:Protocol adapter Error.
    But if i use the folowing procedure i can able to open the cloned database
    c:\>set oracle_sid=test(NOte test is the source database not clonned database)
    c:\>Sqlplus /nolog
    SQL>conn sys/oracle as sysdba
    SQl>startup nomount pfile='c:\oracle\pfile\inittest1.ora'(this is the location of init.ora file for cloned database)
    SQL>alter database mount;
    SQL>alter database open;
    Now cloned database is up and running.
    Now if i try to open the original database (TEST) then i am getting the error
    c:\>set oracle_sid=play
    c:\>sqlplus "/nolog
    SQL>conn sys/oracle as sysdba
    SQL>startup
    ERROR:database is already up and running
    SQL>select name from v$database;
    name
    Play1
    Can any one help me to open two databases at same time.
    Thankx...

    1) ordim
    Create an instance by specifying the following options:
    -NEW -SID sid | -SRVC srvc | -ASMSID sid | -ASMSRVC srvc [-SYSPWD pass]
    [-STARTMODE auto|manual] [-SRVCSTART system|demand] [-PFILE file | -SPFILE]
    [-SHUTMODE normal|immediate|abort] [-TIMEOUT secs] [-RUNAS osusr/ospass]
    expample
    oradim -NEW -SID orcl2
    2) Password creation
    orapwd file=orapwd<SID> password=oracle entries=5
    Virag

  • Problem setting up user ids to use the Oracle password file.

    I want to set up my database users so that a password file is used for connecting to the database.  I have completed these steps successfully.
      BTW - DB is 11.2.0.3 on AIX power 64
    1.  Created the password file for the database using the orapwd command.  Allowing 20 entries.  Confirmed the file was created in the $ORACLE_HOME/dbs directory
    2.  Created a database user, sbrower
    CREATE USER SBROWER IDENTIFIED BY <password> DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK ;
    GRANT DBA TO SBROWER;
    ALTER USER SBROWER DEFAULT ROLE ALL;
    GRANT UNLIMITED TABLESPACE TO SBROWER;
    ALTER USER SBROWER QUOTA UNLIMITED ON USERS;
    3.  Connected to the database as SYS and granted sysoper to SBROWER
    4.  Using putty, ssh'ed into the server where the database resides.
    5.  Set the oracle variables (ORACLE_HOME, ORACLE_BASE, etc.) and PATH
    6.  Was able to connect to the database using sqlplus / as syoper
    THE PROBLEM
      For another user, EA_RDX_ORACLE1, I follow the same steps (2-6) bu when I execute step 6, it does not allow the connection
    ERROR:
    ORA-01031: insufficient privileges
       but, if I use sqlplus ea_rdx_oracle1/thepassword as sysoper it works
    Looking at v$pwfile_users on the database:
    USERNAME SYSDBA   SYSOPER      SYSASM
    SYS      TRUE      TRUE      FALSE
    SBROWER  FALSE     TRUE      FALSE
    EA_RDX_ORACLE1 FALSE TRUE FALSE
    3 rows selected.
    There is one thing that is different for the ea_rdx_oracle1 id's:
    - The users who use this id, use a took called CyberVault to check out the id.  The password for the id changes each time the id is checked out; however, the way the id is set up on the DB servers, us user does not have to enter the password when they log in (ssh).
    I have sent an email to our unix admin asking his how the id was set up so that it can ssh into the server.  It is not included in the list of users in any group in the /etc/ogroup file and it is not included in the /etc/opassword file.

    The OS authentication ( sqlplus / as sysdba ) does not require the password file.
    The problem may be related to the OS user you are connecting to that server - it is not a member of OSDBA group ( usually DBA ).

  • Problems Installing Oracle 8i on Gateway laptop W/ 1.6 GHz CPU

    I'm having problems installing Oracle 8i on a Gateway 600X with a 1.6 GHz CPU and Windows 2000 Professional. The Install/DeInstall screen appears, I click Install/Deinstall, the screen disappears, the hourglass disappears a couple seconds later, and the the install ends without any messages. I tried installing on slower machines and the software seems to install correctly. Is there an issue with Intel's new Mobile Pentium 4 processors or Gateway's laptops?
    Thanks,
    Mike

    have a look in your $ORACLE_HOME/dbs directory. If the init<ORACLE_SID>.ora file has remote_login_password=exclusive then you should also have a file called orapw<ORACLE_SID>. If you haven't, then create one by running "orapwd file=orapw<ORACLE_SID> password=internal entries=5".
    This has worked for me in the past, hope it helps.
    Stef

  • Sys password problem "INSUFFICIENT PRIVELEGES"

    hi,
    This is with refernece to my earlier post, i can now login as a DBA thry OS authentication.
    Re: sys password problem
    but now i try to vreate a new password file and it successfully created using orapwd....
    but when i try to login as a sys user thru oracle authentication i couldn't because i am getting an error
    "INSUFFICIENT PRIVELEGES"
    and another thing i would like to know do i have to shutdown the database or not for the same.

    Please review the document link sent earlier
    Setting REMOTE_LOGIN_ PASSWORDFILE
    In addition to creating the password file, you must also set the initialization parameter REMOTE_LOGIN_PASSWORDFILE to the appropriate value. The values recognized are:
    NONE: Setting this parameter to NONE causes Oracle Database to behave as if the password file does not exist. That is, no privileged connections are allowed over nonsecure connections.
    EXCLUSIVE: (The default) An EXCLUSIVE password file can be used with only one instance of one database. Only an EXCLUSIVE file can be modified. Using an EXCLUSIVE password file enables you to add, modify, and delete users. It also enables you to change the SYS password with the ALTER USER command.
    SHARED: A SHARED password file can be used by multiple databases running on the same server, or multiple instances of a Real Application Clusters (RAC) database. A SHARED password file cannot be modified. This means that you cannot add users to a SHARED password file. Any attempt to do so or to change the password of SYS or other users with the SYSDBA or SYSOPER privileges generates an error. All users needing SYSDBA or SYSOPER system privileges must be added to the password file when REMOTE_LOGIN_PASSWORDFILE is set to EXCLUSIVE. After all users are added, you can change REMOTE_LOGIN_PASSWORDFILE to SHARED, and then share the file.
    This option is useful if you are administering multiple databases or a RAC database.
    If REMOTE_LOGIN_PASSWORDFILE is set to EXCLUSIVE or SHARED and the password file is missing, this is equivalent to setting REMOTE_LOGIN_PASSWORDFILE to NONE.

  • [11g] ORAPWD and ORA-01031

    Hello,
    I use Oracle 11g on Linux and I cannot remotely connect as SYSDBA in sqlplus.
    I created the password file with ORAPWD, I set parameter remote_login_passwordfile to EXCLUSIVE and I restarted the database.
    But I still get the error ORA-01031: insufficient privileges.
    When I check the v$pwfile_users view, it is empty:
    SQL>  SELECT FROM v$pwfile_users ORDER BY username;*
    no row
    If I connect with other user non-SYSDBA, it does work.
    What did I forget?

    Hi,
    Checklist to help you to solve your problem:
    1)Check if use belong to DBA group.
    2)Set ORACLE_SID, export ORACLE_SID=<Instance name>
    3) Check if remote_login_passwordfile parameter in your pfile or spfile is set to either EXCLUSIVE or SHARED .
    4) Create the password file in your $ORACLE_HOME/dbs
    Also take a look in the following Metalink Notes:
    - Troubleshooting ORA-1031 Insufficient Privilege -      Doc ID:      Note:730067.1
    - UNIX: Checklist for Resolving Connect AS SYSDBA Issues -      Doc ID:      Note:69642.1
    Cheers,
    Francisco Munoz Alvarez
    http://www.oraclenz.com

  • Privs problem

    Hi!
    I have receive ORA-01031: insufficient privileges erro after i have done cold backup of database on new host in order to make clone of it. What is problem? Is it password file or something else? Just to tell i can connect as system user, but cant as sys! Only when i use locally connection from new server itself conn / as sysdba i can connect without problem...

    You need to create a password file to allow sysdba to access remotely
    Just go to $ORACLE_HOME/bin and type in orapwd for help in its usage
    Usage: orapwd file=<fname> password=<password> entries=<users> force=<y/n> ignorecase=<y/n> nosysdba=<y/n>
    Ensure the init.ora parameter is set
    remote_login_passwordfile string EXCLUSIVE
    www.jhdba.wordpress.com

  • Login problem through password file

    Hi all
    i am using oracle 11g release 1 on CENTOS LINUX 5.
    i have a login problem AS
    login at OS authentication is sucessful as
    SQL> connect sys as sysdba
    Enter password:
    Connected.
    SQL>
    but when i login from password file as
    SQL> connect sys/oracle@stan as sysdba
    ERROR:
    ORA-01031: insufficient privileges
    SQL>
    i created new password file as
    orapwd file=$ORACLE_HOME/dbs/orapwSTAN.ora password=oracle entries=5
    opertaing system authentication are given as
    [oracle@testserver ~]$ id
    uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba) context=user_u:system_r:unconfined_t
    any help is appreciated

    The name of the password file isn't random.
    The SID is case sensitive, and the password file in Unix has no extension!
    So if the filename is wrong, the passwordfile will not be used.
    This filename looks wrong, at least the .ora bit should be removed.
    Sybrand Bakker
    Senior Oracle DBA

  • A problem with threads

    I am trying to implement some kind of a server listening for requests. The listener part of the app, is a daemon thread that listens for connections and instantiates a handling daemon thread once it gets some. However, my problem is that i must be able to kill the listening thread at the user's will (say via a sto button). I have done this via the Sun's proposed way, by testing a boolean flag in the loop, which is set to false when i wish to kill the thread. The problem with this thing is the following...
    Once the thread starts excecuting, it will test the flag, find it true and enter the loop. At some point it will LOCK on the server socket waiting for connection. Unless some client actually connects, it will keep on listening indefinatelly whithought ever bothering to check for the flag again (no matter how many times you set the damn thing to false).
    My question is this: Is there any real, non-theoretical, applied way to stop thread in java safely?
    Thank you in advance,
    Lefty

    This was one solution from the socket programming forum, have you tried this??
    public Thread MyThread extends Thread{
         boolean active = true;          
         public void run(){
              ss.setSoTimeout(90);               
              while (active){                   
                   try{                       
                        serverSocket = ss.accept();
                   catch (SocketTimeoutException ste){
                   // do nothing                   
         // interrupt thread           
         public void deactivate(){               
              active = false;
              // you gotta sleep for a time longer than the               
              // accept() timeout to make sure that timeout is finished.               
              try{
                   sleep(91);               
              }catch (InterruptedException ie){            
              interrupt();
    }

  • A problem with Threads and MMapi

    I am tring to execute a class based on Game canvas.
    The problem begin when I try to Play both a MIDI tone and to run an infinit Thread loop.
    The MIDI tone "Stammers".
    How to over come the problem?
    Thanks in advance
    Kobi
    See Code example below:
    import java.io.IOException;
    import java.io.InputStream;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.Image;
    import javax.microedition.lcdui.game.GameCanvas;
    import javax.microedition.media.Manager;
    import javax.microedition.media.MediaException;
    import javax.microedition.media.Player;
    public class MainScreenCanvas extends GameCanvas implements Runnable {
         private MainMIDlet parent;
         private boolean mTrucking = false;
         Image imgBackgound = null;
         int imgBackgoundX = 0, imgBackgoundY = 0;
         Player player;
         public MainScreenCanvas(MainMIDlet parent)
              super(true);
              this.parent = parent;
              try
                   imgBackgound = Image.createImage("/images/area03_bkg0.png");
                   imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
                   imgBackgoundY = this.getHeight() - imgBackgound.getHeight();
              catch(Exception e)
                   System.out.println(e.getMessage());
          * starts thread
         public void start()
              mTrucking = true;
              Thread t = new Thread(this);
              t.start();
          * stops thread
         public void stop()
              mTrucking = false;
         public void play()
              try
                   InputStream is = getClass().getResourceAsStream("/sounds/scale.mid");
                   player = Manager.createPlayer(is, "audio/midi");
                   player.setLoopCount(-1);
                   player.prefetch();
                   player.start();
              catch(Exception e)
                   System.out.println(e.getMessage());
         public void run()
              Graphics g = getGraphics();
              play();
              while (true)
                   tick();
                   input();
                   render(g);
          * responsible for object movements
         private void tick()
          * response to key input
         private void input()
              int keyStates = getKeyStates();
              if ((keyStates & LEFT_PRESSED) != 0)
                   imgBackgoundX++;
                   if (imgBackgoundX > 0)
                        imgBackgoundX = 0;
              if ((keyStates & RIGHT_PRESSED) != 0)
                   imgBackgoundX--;
                   if (imgBackgoundX < this.getWidth() - imgBackgound.getWidth())
                        imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
          * Responsible for the drawing
          * @param g
         private void render(Graphics g)
              g.drawImage(imgBackgound, imgBackgoundX, imgBackgoundY, Graphics.TOP | Graphics.LEFT);
              this.flushGraphics();
    }

    You can also try to provide a greater Priority to your player thread so that it gains the CPU time when ever it needs it and don't harm the playback.
    However a loop in a Thread and that to an infinite loop is one kind of very bad programming, 'cuz the loop eats up most of your CPU time which in turn adds up more delays of the execution of other tasks (just as in your case it is the playback). By witting codes bit efficiently and planning out the architectural execution flow of the app before start writing the code helps solve these kind of issues.
    You can go through [this simple tutorial|http://oreilly.com/catalog/expjava/excerpt/index.html] about Basics of Java and Threads to know more about threads.
    Regds,
    SD
    N.B. And yes there are more articles and tutorials available but much of them targets the Java SE / EE, but if you want to read them here is [another great one straight from SUN|http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html] .
    Edited by: find_suvro@SDN on 7 Nov, 2008 12:00 PM

  • J2ME problem with threads

    Hi all,
    I would like to ask you for a help. I need to write a small program at my university. I started to write a midlet which function would be to countdown time for sports activities. I woul like to start a new thread - the one that counts down - and at the same time make the main thread sleep. After the "countdown" thread finishes, the main thread wakes up and waits for user input. The problem is that when the "countdown" thread finishes his work, I've got Uncaught exception java/lang/NullPointerException. error and the midlet halts.
    Below you can find the code
    import java.lang.*;
    import java.util.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    public class intervals extends MIDlet implements CommandListener
    public Display ekran;
    private SweepCanvas sweeper;
    private Form rundy;
    private TextField round0, round1, round2, round3, round4, round5, round6, round7, round8;
    private long czas,x;
    private Command exitCommand;
    private Command addRound;
    private Command delRound;
    private Command start;
    private TextField repeat;
    private Form odliczanie;
    private Alert ostrz;
    Licznik thread;
    String test;
    StringItem test1;
    int parz,i,j,k;
    static int l;
    int ilrund;
    int ilpowt;
    Item sec;
    long sec1;
    public intervals()
        rundy = new Form("Interwa&#322;y sportowe");
        exitCommand = new Command("Wyj&#347;cie", Command.EXIT, 2);
        addRound = new Command("Dodaj","Dodaj rund&#281;", Command.ITEM,1);
        delRound = new Command("Usu&#324;","Usu&#324; ostatni&#261; rund&#281;", Command.ITEM,1);
        start = new Command("Start", Command.ITEM,1);
        odliczanie = new Form("Odliczanie");
        TextField dodaj(TextField kolej)
            kolej=new TextField("Podaj czas (s) rundy "+parz,null, 4, TextField.NUMERIC);//stworzenie nowej instancji do wybierania czasu trwania rundy
            if(rundy.size()==0)
                rundy.insert(rundy.size(),kolej);
                else
                    rundy.insert(rundy.size()-1, kolej);
            return kolej;
        void odliczanie(TextField round)
            monitor m=new monitor();
            k=Integer.parseInt(round.getString());
            ekran.setCurrent(odliczanie);
            thread=new Licznik(k,odliczanie);
            thread.start();
            ekran.setCurrent(rundy);
    public void startApp()// throws MIDletStateChangeException
        rundy.deleteAll();
        repeat = new TextField("Podaj ilo&#347;&#263; powtórze&#324;",null,1,TextField.NUMERIC);
        rundy.addCommand(addRound);
        rundy.addCommand(exitCommand);
        rundy.setCommandListener(this);
        Canvas obrazek = new MyCanvas();
        ekran = Display.getDisplay(this);
        ekran.setCurrent(obrazek);
        czas=System.currentTimeMillis();
        while (System.currentTimeMillis()<czas+1000)
            continue;
        ekran.setCurrent(rundy);
    public void pauseApp()
    public void destroyApp(boolean unconditional)
        notifyDestroyed();
    public void commandAction(Command c, Displayable s)
        if (c == exitCommand)
            destroyApp(false);
            notifyDestroyed();
        else if(c==addRound)
            if(rundy.size()==0)//Sprawdzenie ilo&#347;ci elementów w celu poprawnego wy&#347;wietlania liczby rund w formie
                parz=1;
                else
                parz=rundy.size();
            switch(parz)
                case 1:
                    round0=dodaj(round0);break;
                case 2:
                    round1=dodaj(round1);break;
                case 3:
                   round2= dodaj(round2);break;
                case 4:
                    round3=dodaj(round3);break;
                case 5:
                    round4=dodaj(round4);break;
                default:
                    ostrz=new Alert("Uwaga","Maksymalna liczba rund wynosi 9", null, AlertType.INFO);
                    ostrz.setTimeout(3000);
                    ekran.setCurrent(ostrz);
            if(rundy.size()==1)
                rundy.append(repeat);
                rundy.addCommand(start);
            rundy.addCommand(delRound);
        else if(c==delRound)
            if(rundy.size()!=0)
                rundy.delete(rundy.size()-2);
                if (rundy.size()==1)
                    rundy.deleteAll();
                if(rundy.size()==0)
                    rundy.removeCommand(delRound);
                    rundy.removeCommand(start);
        else if(c==start)
            ilrund=rundy.size()-1;
            if(this.repeat.size()>0)
                ilpowt=Integer.parseInt(this.repeat.getString());
            ekran = Display.getDisplay(this);
            for (i=1; i<=ilpowt;i++)
                odliczanie= new Form("Odliczanie");
                 for (j=0;j<ilrund;j++)
                    switch(j)
                         case 0:
                             odliczanie(round0);
                             break;
                         case 1:
                             odliczanie(round1);
                             break;
                         case 2:
                             odliczanie(round2);
                             break;
                         case 3:
                             odliczanie(round3);
                             break;
                         case 4:
                             odliczanie(round4);
                             break;
                         case 5:
                             odliczanie(round5);
                             break;
                         case 6:
                             odliczanie(round6);
                             break;
                         case 7:
                             odliczanie(round7);
                             break;
                         case 8:
                             odliczanie(round8);
                             break;
    class Licznik extends Thread
        int czas1,k;
        Form forma;
        monitor m;
        public Licznik(int k,Form formap)
            czas1=k;
            forma=formap;
        public synchronized void run()
            while(czas1>0)
                forma.deleteAll();
                forma.append("Czas pozosta&#322;y (s): "+czas1);
                try{Thread.sleep(1000);} catch(InterruptedException e){e.printStackTrace();}
                czas1--;
            if(czas1<=0)
                m.put();
        }and monitor class
    public class monitor
    boolean busy=false;
    synchronized void get()
        if(!busy)
            try
                wait();
            }catch(InterruptedException e){e.printStackTrace();}
        notify();
    synchronized void put()
        if(busy)
            try
            wait();
            }catch(InterruptedException e){e.printStackTrace();}
        busy=true;
        notify();
    }Can anybody help me with this?

    Groovemaker,
    Your Licznik class has a member m of type monitor, which has not been instantiated (in other words is null) hence, when calling m.put() you get NullPointerException. Please also mind, that using Thread.sleep(1000) is not an accurate way of measuring time.
    If I may, please use recommended for Java class naming conventions - some of your names use lower case, while other don't which is confusing to the reader.
    Daniel

  • Problem with threads within applet

    Hello,
    I got an applet, inside this applet I have a singleton, inside this singleton I have a thread.
    this thread is running in endless loop.
    he is doing something and go to sleep on and on.
    the problem is,
    when I refresh my IE6 browser I see more than 1 thread.
    for debug matter, I did the following things:
    inside the thread, sysout every time he goes to sleep.
    sysout in the singleton constructor.
    sysout in the singleton destructor.
    the output goes like this:
    when refresh the page, the singleton constructor loading but not every refresh, sometimes I see the constructor output and sometimes I dont.
    The thread inside the singleton is giving me the same output, sometime I see more than one thread at a time and sometimes I dont.
    The destructor never works (no output there).
    I don't understand what is going on.
    someone can please shed some light?
    thanks.
    btw. I am working with JRE 1.1
    this is very old and big applet and I can't convert it to something new.

    Ooops. sorry!
    I did.
         public void start() {
         public void stop() {
         public void destroy() {
              try {
                   resetAll();
                   Configuration.closeConnection();
                   QuoteItem.closeConnection();
              } finally {
                   try {
                        super.finalize();
                   } catch (Throwable e) {
                        e.printStackTrace();
         }

Maybe you are looking for

  • Error while consuming PLSQL Webservice through BPEL

    HI , I have created a simple PLSQL Web service called "HelloWorld" and it got successfully deployed . When I tried to test this webservice through BPEL Process Manager , its showing me error everytime that ( Could not create object of class 'dimple.H

  • Help with calculations in XMLP Template

    Hi, I would like to get some guidance on how the below could be done in XMLP. I am getting the 'Amount' column from FSG and would like to calculate the percentage in the template. Is it possible to calculate rows and store results in column like in t

  • Mp3 is opening in new page. please help.

    My mp3 is now opening in a new page when the button is clicked. It was working just fine for a while. Please, any help is appreciated, this is my portfolio and it isn't looking good for me if it isn't working. Thanks!

  • Gantt chart issue

    Hi, We are using SAP PPM 5.0 (cProject), unable to display the Gantt chart. Kindly suggest me what setting need to done to display Gantt chart. In URL for created project if I click for Graphical tab to display gantt chat, it just through out JAVA sy

  • Unknown Error (6)

    I have the iPhone 8 GB. When I tried to update it, an error message said Unknown Error has occurred (6), and the phone went into recovery mode. And when I tried to plug in my iPhone again, another error message said that I was in recovery mode and th