Home » Developer & Programmer » Forms » Login as SYS (Oracle forms 6i)
Login as SYS [message #552166] Tue, 24 April 2012 01:33 Go to next message
new_oracle2011
Messages: 174
Registered: March 2011
Location: Qatar
Senior Member
is it possible to login as SYSDBA in oracle forms from normal logon procedure?

logon(sys_acc, sys_pwd||'@'||:GLOBAL.db_conn);


The reason behind this is to make a form which will alter user's password. But all the users are in SYS account and it is necessary to login as SYSDBA in forms to execute alter statement.

Or is there another way of doing this then do let me know.
Re: Login as SYS [message #552169 is a reply to message #552166] Tue, 24 April 2012 01:48 Go to previous messageGo to next message
Littlefoot
Messages: 21813
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Every user can change his own password (i.e. issue ALTER USER statement), so ... just let him do that.
Re: Login as SYS [message #552184 is a reply to message #552169] Tue, 24 April 2012 03:46 Go to previous messageGo to next message
cookiemonster
Messages: 13925
Registered: September 2008
Location: Rainy Manchester
Senior Member
And if you need a user with DBA privileges to do things, create one. Do not use sys.
Re: Login as SYS [message #552199 is a reply to message #552184] Tue, 24 April 2012 04:56 Go to previous messageGo to next message
new_oracle2011
Messages: 174
Registered: March 2011
Location: Qatar
Senior Member
Littlefoot wrote on Tue, 24 April 2012 09:48
Every user can change his own password (i.e. issue ALTER USER statement), so ... just let him do that.


That's very nice of you. Before I thought that a normal user does not have not that much privileges to change his password. And this solves the problem at all. Thank you.


cookiemonster wrote on Tue, 24 April 2012 11:46
And if you need a user with DBA privileges to do things, create one. Do not use sys.


OK, i will remember this in future. Thanks
Re: Login as SYS [message #552365 is a reply to message #552199] Wed, 25 April 2012 04:33 Go to previous message
zh_lin
Messages: 1
Registered: April 2012
Location: Shanghai China
Junior Member
I have met the same problem. there is still some job like 'grant select on sys.dba_role_privs to user' can only be done by sys. firstly, i want to resolve it with logon as sysdba, but oracle form reject such method. after one week hard investigation, i do it in forms builder as following scripts, wish it is helpful.

host('/bin/printf "grant select on sys.dba_role_privs to user';
exit; " | /oraclehome directory/bin/sqlplus -s "sys/sys@tnsname as sysdba" ',no_screen);

[Updated on: Wed, 25 April 2012 04:35]

Report message to a moderator

Previous Topic: Trigger for SHIFT+F4
Next Topic: Step Executing: opmnctl startproc ias-coomponent=ReptSvr_WIN-Q9CMS0Z6OC_asi
Goto Forum:
  


Current Time: Fri Jul 05 22:20:54 CDT 2024