ORA-01031 error...need enter password prompt

Hi.
I'm creating a form which kills a session, using this command:
Forms_DDL('ALTER SYSTEM KILL SESSION'|| :v_$session.sid|| ',' ||:v_$session.serial# );
in my when-button-pressed trigger. But I get ora-01031 error insufficient privileges. So I'd like to prompt the user to enter his password when he tries to kill a session, because only the administrator should be able to kill a session. Thanks in advance.
-K

Hi Kristine:
First I would ask you why can't they just use the normal logon to establish their access level?
Then, let me say there is no way to just popup the logon screen in forms, however, it is relatively simple to create a signon screen. Just create a dialog popup with two fields for username and password, and a button with a label maybe "Signon". Then in the WHEN-BUTTON-PRESSED associated with Signon button, you use the code like following. Please test it and modify as needed, because I do not have a database to test it with. Note I use ... as needed to indent because the forum strips leading spaces.
DECLARE
..V_CONNECT_STRING VARCHAR2(100) :=
..........GET_APPLICATION_PROPERTY(CONNECT_STRING);
BEGIN
..LOGOUT;
..LOGON(:B1.UN, :B1.PW ||'@'|| V_CONNECT_STRING, 'TRUE');
..EXIT_FORM;
END;
Hope this helps,
Thomas

Similar Messages

  • Ora-01031 error: insufficient Priviliges

    hi experts,
    im was completely enervated by a simple error for which im hanging out for plenty of hours. kindly advice me what to do to eradicate it.
    i have a Redhat Linux AS 4 server and 9.2.0.4 database version.
    The problem is, when im trying to connect database as sysdba with netservice name, i.e using remote authentication method, i was thrown ora-01031 error: insufficient priviliges. But when i tend to connect it locally using OS authentication method it permits me to do it.
    for example,
    Sql> connect sys@<sid> as sysdba
    Enter password:
    ERROR: insufficient priviliges
    where as,
    Sql>conn sys as sysdba
    connected
    sql>
    i've configured oracle in Linux environment as per the documentation. i can't figure out the exact problem. the sqlnet.ora file contains SQLNET.AUTHENTICATION_SERVICES=none
    kindly tell me where im missing out?
    Thanks
    SM

    yes. i've Password file in its appropirate location,
    which is named as orapw$ORACLE_SID
    and the parameter, remote_login_passwordfile is set
    as EXCLUSIVE.This should be fine.
    Try
    - select * from v$pwfile_users; to check whether oracle sees the password file
    - recreate the password file, if possible (it can get corrupted sometimes)
    - delete sqlnet.ora to go with the defaults (of course, backup it first)
    - check whether you can connect as usual user using the net service name (and check whether you connect to the proper database, just to be sure)
    - try to connect from a different machine
    - check that TWO_TASK and TNS_ADMIN environment variables are not set.

  • ORA- 01017 Error ( Invalid Username Password) Logon Denied

    Gurus,
    I am running into the above error ( ORA- 01017) ( Invalid Username Password) Logon Denied on the Oracle Application Server 10g.
    Note:
    On windows 2003 server
    The DB is 11g and I am using the Oracle applicaton Server 10g - Forms Services
    Also have Installed Oracle Dev_suite ( Oracle forms)
    Instances used - PROD and TEST
    Have developed a simple form and using Forms services ( the below url) is used
    http://<<Hostname>>/forms/frmservlet?form=meds_trans_menu.fmx&userid=&otherparams=useSDI=yes&lookAndFeel=oracle&colorScheme=blue
    the Login screen comes ,
    entering the username and details , says the password expired as the user is trying to enter for the first time,
    shows the change password screen
    old password
    new password
    re-enter new password
    When I try to enter the new password and hit ok button, it shows error message again and again.
    ORA- 01017 Error ( Invalid Username Password) Logon Denied
    Not sure why i get this error , even after entering the correct credentials.
    Please advice.
    Thanks
    Sheik

    Gurus - Any ideas , suggestions how this can be resolved?
    Is this issues because of version mismatch ( 11g DB and Oracle Forms 10g)??
    Please advice when time permits.
    Thanks
    Sheik

  • ORA-01031 Error When starting Database

    I have installed Oracle 11gr2 on my laptop having OS ubuntu 10.04, after installation i am receiving ORA-01031 error when try to log in with the command
    sqlplus / as sysdba what should i do to resolve it...

    Hi,
    there are a lot of possibilities why this can be wrong. Look at Oracle Support for note 233223.1, "Checklist for Resolving CONNECT AS SYSDBA (INTERNAL) Issues". This gives links to notes which leads you to maybe the solution.
    Possibilities are:
    - you are root, which is not allowed. You should connect with the oracle user
    - your user is not part of the dba group
    - permissions on files
    - and many more
    Herald ten Dam
    http://htendam.wordpress.com

  • Ora-01031 error while starting oracle9i server on linux advanced redhat 3.1

    I am encountering some errors while trying to start the oracle9i database on linux server.
    I am getting the error ora-01031 while trying to connect to the server as sysdba.
    I give the following commands
    sqlplus /nolog
    Sql> conn sys/xxxx as sysdba
    ERROR:
    ORA-01031: insufficient privileges
    The listener service is started. The user "oracle" belongs to the groups oinstall and dba on linux.
    When I try to connect to the sys account through enterprise manager console, it connects.
    But when I try to start the database it says
    ERROR:
    ORA-01031: insufficient privileges
    I am trying to solve this problem since the past two days but to no avail.
    The last time the database was used it was not shutdown properly (we had rebooted the linux server through command prompt).
    Might be this has caused some problem.
    I would be very grateful to you if you could spare some time and look into this problem.

    Listen Sheikh Abdullah, if u don't need remote access to that server over secure conn., don't use password file authentification but change REMOTE_LOGIN_PASSWORDFILE to NONE and when u conn thru OEM as sysdba try to change his pass and then try conn thru command promt(CP) usin that new pass.
    Or recreate pass file adding new pass in it, set REMOTE_LOGIN_PASSWORDFILE to exclusive or shared and conn thru CP using password file pass.
    Try this possible solutions in order u wish.

  • ORA-01031 error while executing package..

    Hi All,
    user is getting an error ORA-01031 while executing a procedure (i.e create or replace procedure).
    Please let me know how I can trobuleshoot it..let me know the script to check the required privileges..
    Thanks a lot.......

    It's not a bug, check Oracle doc,
    System Privileges Needed to Create or Alter a Procedure
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/authoriz.htm#i1009241
    To create a procedure, you must have been explicitly granted the necessary privileges (system or object) on all objects referenced by the procedure. You cannot have obtained the required privileges through roles. This includes the EXECUTE privilege for any procedures that are called inside the procedure being created.

  • ORA-01031 Error; please help

    hai, iam getting a strange error,
    i have this procedure which is created successfully. but giving me insufficient privileges message inserted into error log.
    Also when iam writing the create table statement individually, it is creating a table.
    create table ACTIVITIES as select * from ACTIVITIES@x_old;
    i have dba privilege on the current database
    create or replace procedure get_old_tab_scr
    is
    lv_msg varchar2(500);
    lv_code number(10);
    begin
    for i in (select table_name from user_tables@x_old)
    loop
    execute immediate 'create table '||i.table_name||' as select * from '||i.table_name||'@x_old';
    dbms_output.put_line('create table '||i.table_name||' as select * from '||i.table_name||'@x_old');
    end loop;
    exception
    when others then
    lv_code := sqlcode;
    lv_msg := sqlerrm;
    insert into error_log values('get_old_tab_scr -'||sysdate||lv_code||'-'||lv_msg);
    end;
    can i get some help regarding this...

    Purpose:
    ~~~~~~~~
    Purpose of the document is to show the limitations of roles and privileges under
    PL/SQL.
    Due to these limitations, you may get errors in PL/SQL procedures/packages when
    accessing certain objects or packages, but the same code works in SQL*Plus
    The flagged errors are ORA-00942 or ORA-01933 or ORA-01031 and ORA-06512 or
    PLS-00201 and ORA-06550 or ORA-28111 with Fine Grained Auditing (FGA)
    Note that the generated errors may differ in each release.
    Explanation:
    ~~~~~~~~~~~~
    The fundamental misunderstanding with these problems is because of the misconception
    that roles that are granted to one user can be applied to another by intermediate
    objects such as views or pl/sql procedures, this is not possible, roles exist in
    sessions and are associated with a user in an active session only, the privileges
    of a role can not be transferred to objects.
    If you're accessing tables/views in PL/SQL procedure or package and getting
    either ORA-1031 or ORA-942 (or PLS-201), but the same select/update/insert/delete
    works ok on SQL*Plus, then you need to check if the privileges have been granted
    to the user creating the procedure via a role.
    Privileges granted via role are disabled inside stored procedures
    Detailed case studies follow:

  • Orapwd generated a ORA-01031 error

    hello, I issued the orapwd command on both my primary and secondary databases when setting up for data guard clone. I went to the same folder as my old password file was located (same spot as init.ora) and supplied the same password I have been using for SYS. now I can't log in as sys. The unix account I used was the same that I created the database with and is a member of the DBA group. Its a 9iR2 on Solaris 9. I'm not sure what else to try out.
    here is what i entered:
    orapwd file=orapwST password=password entries=20
    Thanks for any suggestions.
    -Jim

    I can't post a screen shot of this database. I am able to log in as a user I created, issue SHO SGA and query all the tables under that account.
    the ps -ef|grep ora_ command displays
    ora_cjq0_SID
    ora_lgwr_SID
    ora_smon_SID
    ora_pmon_SID
    among others all with a date of May 16th.
    my unix user id is oracle and my group id is dba
    my $ORACLE_HOME/dbs folder contains orapwSID with rwSr for permissions. which I believe is what you was looking for correct? other than that I have the initSID.ora file and spfile associated with the database.
    $ORACLE_SID is set to my SID which I cannot post. All references to my SID match. I did notice this env. variable was all lowercase so I changed it to all capitols to match everything else, sourced the .cshrc file, created a new orapwd file again and still get the same error.

  • Using database-link in view to get around ORA-01031 error

    I have been granted select rights on a users table. I am therefore able to select from his table. If however I try create a view against his table I run into the ORA-01031 problem. I have worked around this problem by creating a database-link to myself and then adding that to the view creation and it works. What are the downsides of using the database-link in this way?

    The only down side I have been able to identify is that a extra session is created and that the CPU has a little extra work due to the LOOP BACK that takes place. I need to ensure the network is not unnessesarly used and therefore will need to ensure that 127.0.0.1 (local host) is used in the database connection discription. e.g.
    create database link my_db_link connect to scott identified by tiger using '(description=(address=(protocol=tcp)(host=127.0.0.1) (Port = 1521) ) (connect_data= (sid=ora10g)))';

  • ORA-01031 error

    We have Oracle applications VIS instance.
    I have Oracle 10g database installed on my PC
    I made entry in tnsnames.ora & tried connecting to VIS instance using,
    conn apps/apps@VIS
    but this does not work for sys, like
    conn sys/sys@VIS as sysdba
    It throws the following error:
    ORA-01031: insufficient privileges
    Warning: You are no longer connected to ORACLE.
    Will the problem be rectified if sys privilege is given to sys user(on my pc) from sys user(VIS instance)
    Thanks in advance
    Bipin

    Will the problem be rectified if sys privilege is given to sys user(on my pc) from sys user(VIS instance)...there is nothing like give sys user sys privilege. And, there is nothing like 'my pc sys' and 'server sys'. Sys is ONE single user.
    --Mukesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Custom Oracle Report errored with Enter Password:  REP-0004: Warning: Unable to open user preference file. REP-0300: ORACLE error occurred. REP-0069: Internal error REP-57054: In-process job terminated:Terminated with error:  REP-300: ORACLE error occurre

    Hi Gurus
    We have created a custom oracle report and concurrent program and when we ran the concurrent program it is error out with below error
    Enter Password:
    REP-0004: Warning: Unable to open user preference file.
    REP-0300: ORACLE error occurred.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-300: ORACLE error occurred.
    Can any one help us
    Thanks in advance.
    Kumar

    Please see
    REP-0004 Warning - Unable to Open User Preference File. (Doc ID 26014.1)
    ApPsMaStI
    sharing is Caring

  • "Enter Password" prompt won't go away without Force Quitting Mail

    Hi, I've been having this problem for a few weeks now. I have Mail at work set to always ask me for my password for a POP account (the only account setup in Mail). The problem is that if I don't type in the password correctly the first time, then I'm stuck with the "Enter Password for Account..." dialog box. Entering the correct password and pressing 'OK' or clicking 'Cancel' or pressing the Esc key doesn't work. The dialog box just stays open. The only way for me to get rid of it is Force Quit Mail and make sure I type it correctly the first time.
    We have a million different accounts at work and they're all set to expire the password very often (without letting me re-use old passwords) so the chances of me typing an incorrect password are always pretty high...
    I'm on a new Intel iMac, 2.4GHz, 4GB RAM, with Leopard up-to-date. I've tried deleting the account entirely and re-creating it, but the problem happened again.
    Message was edited by: Bart S.

    Any thoughts? I've tried repairing permissions and also deleting my mail preferences file, but the problem still pops up.

  • ORA-01000 Error - NEED Help

    Hi,
    I had an Oracle Cursor error ORA-01000, here is the message:
    *** SESSION ID:(171.9) 2001.08.17.08.56.41.000
    *** 2001.08.17.08.56.41.000
    ksedmp: internal or fatal error
    ORA-01000: maximum open cursors exceeded
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    143f2430 68 function SARMSUN1.SSP_GET_WO_LOG
    143ff578 1 anonymous block
    Could someone explain me what is the number 68 means?
    I am trying to debug the code that causes this problem and i need
    undertand what is really happening here.
    Any help would be highly appreciated...thx in adv.

    'Larger time' means 'later time'. The specified time is too old for the actual flashback period, behind the scope of available SCNs.
    Werner

  • TS1424 error when enter password in itunes on mac

    i got this error message when putting in my itunes password on my mac: "Connectionmanager::invoke::Failed to find service connection url"  I reset my password, signed out and signed back in, and got the same message again.  i was able to sign in to my icloud and imessenger with the new password, but i still get this error message in itunes.  i sent an em to itunes support and got no response.  please help!

    Hi Daniel ...
    Since Apple couldn't figure this out.. I'll give it a shot.
    Tap Settings / General. Turn on Location Services
    Then in General tap Date & Time. Make sure you have the correct time zone selected.
    If nothing above has helped, you didn't mention what troubleshooting Apple suggested so I'm hoping if they didn't suggest you restore the iPad's software, that may help.
    Follow the instructions here on page 139 of the iPad Online User Guide: http://manuals.info.apple.com/enUS/iPad_UserGuide.pdf
    Carolyn

  • Re-enter password prompt not executing

    Good day to all,
    Setup:
    I have Agentry 5.2 Clients (Encryption mode) that are connecting to Agentry 5.0 server, All from the SMART Work Manager for Maximo suite . We are using AppServerAuthentication as our login mechanism.
    Problem:
    Before moving from WebLogic as the Authentication server application, every time a user changed his/her password, the agentry client would prompt him/her to reenter the password. Now, we are using websphere as our Authentication server application and the prompt does not longer appear. Any suggestions? Any help would be greatly appreciate it
    Regards,
    Victor M De La Oliva

    Any thoughts? I've tried repairing permissions and also deleting my mail preferences file, but the problem still pops up.

Maybe you are looking for

  • Hard drive reformatted. Need to delete iweb site. No backups available

    Hard drive was reformatted and the iweb site material obviously lost. I would like to delete all the iweb pages i have posted using 'mobile me' as they do not show anything. Is this possible. I though it would be possible to delete the pages using 'm

  • Error 1316  when trying to uninstall, repair or update Adobe Acrobat Reader

    I get error message 1316 when trying to update, repair or delete Adobe Acrobat Reader 8.1 . The error message is: Error 2316 A network error occured while attempting to read from C:\Windows\Installer\AcroRead.msi. Googling seems to find others with s

  • Parsing Failure in config.xml

    Hi, this morning I was start our WebLogic Server 9.2 MP2 and this throw an error in config.xml file, but I dont change this:WebLogic Server 9.2 MP2 Mon Jun 25 01:32:01 EDT 2007 952826 AquaLogic Service Bus 2.6 Wed Oct 31 03:41:41 EDT 2007 1010265 > <

  • Can't copy images to desktop ("Item busy")

    I'm trying to copy photos from an album in iPhoto 5 to the desktop, but I can't because I get the following error message: The selected items cannot all be put in the same location because at least one of them named "DSC00003.JPG" is busy I'm able to

  • Subcontracting work handling in CO

    Hi , For my client , we need to configure and handle  subcontracting business both for subcontractor & subcontractee . Both under the same corporate group but separate leagal entity . For example , A is giving a subcontracting owrk to B .   In the bo