LOGIN with my_own_users table

Hi,
I need help!!
I have my_own_users table that contains username and password.
is there a way (possible) for the form to detect that?
I have tried following: (but it gives me frm-40735 error)
on the on-logon trigger,
declare
     un varchar2(80);
     pw varchar2(80);
     cn varchar2(80);
     cnt number;
     al_id alert;
begin
     Logon_Screen;
     un := GET_APPLICATION_PROPERTY(username);
     pw := GET_APPLICATION_PROPERTY(password);
     select count(*) into cnt
     from my_own_users
     where username = un
     and password = pw;
if cnt < 1 then
al_id := FIND_ALERT('invalid');
SET_ALERT_PROPERTY(al_id, alert_message_text, 'user'|| un);
end if;
end;

ok, I changed my mind, this is what i am doing but i am still having the same problem.
problem: when the user enter wrong username and password, it falls into WHEN_NO_DATA_FOUND, which is fine (the way I want it), but I want it to keep repating the loop until the user type inthe correct information. for some reason, it won't go back and won't give me the logon_screen.
Please tell me what I did wrong.
thanks
================================================
Here is my code:
declare
un varchar2(30);
rn varchar2(30);
pw varchar2(30);
al_btn number;
al_id alert;
begin     
LOOP
logon_screen;
un:=get_application_property(username);
pw:=get_application_property(password);
begin
     SELECT role_name
     INTO rn
FROM my_group_role gr, my_users r
WHERE gr.group_id = r.group_id
AND gr.role_name in ('be_browse', 'be_edit', 'be_admin')
AND r.username = un
AND r.password = pw;
exception
     when no_data_found then
al_id := FIND_ALERT('invalid');
SET_ALERT_PROPERTY(al_id,alert_message_text , 'Invalid user/password for '|| un );
al_btn:= show_alert(al_id);
raise form_trigger_failure;
when others then
al_id := FIND_ALERT('invalid');
-- SET_ALERT_PROPERTY(al_id,alert_message_text , 'INVALID user/password for '|| un);
SET_ALERT_PROPERTY(al_id, alert_message_text,'others'|| SQLCODE ||' * ' || SQLERRM);
al_btn:= show_alert(al_id);
raise form_trigger_failure;
end;
EXIT WHEN FORM_SUCCESS;
END LOOP;

Similar Messages

  • Problems with SAPUSER Table / ORA-1403 during PI 7.1 EHP1 Installation

    Hello,
    as I have currently problems creating a customer message with the customer provided S-User and I need a solution after the easter weekend, I'll try my luck here...
    We currently perform a SAP Netweaver PI 7.1 EHP1 installation on Windows 2008 (Enterprise)/ Oracle. The installation media were downloaded from SAPNet.
    The Windows Server 2008 is completely udpated, no further patches are available.
    The Windows system is patched according to note 1375494 (new SAP kernel does not work on Win2008 without).
    Oracle 10.2.0.4 was installed previous to the installation.
    During the installation the new independend and db-dependend kernel was provided.
    First steps run smoth until Phase ABAP IMPORT. This one fails according to the logs because access to table SAPUSER is not possible:
         Compiled Jan 15 2010 23:56:22
         E:\usr\sap\PID\SYS\exe\uc\NTAMD64\R3load.exe -testconnect
         DbSl Trace: ORA-1403 when accessing table SAPUSER
         (DB) ERROR: db_connect rc = 256
         DbSl Trace: ORA-1403 when accessing table SAPUSER
         (DB) ERROR: DbSlErrorMsg rc = 99
    I already checked the OPS$ mechanism. Starting SQLPlus /nolog and login with "connect /as sysdba" works as intended.
    i.e. "select owner from dba_tables where table_name = 'SAPUSER';" shows:
         OWNER
         O$HERDER_DOMAIN\PIDADM
    Which is ok, the Domainname and SID is correct.
    "select * from "O$HERDER_DOMAIN\PIDADM".SAPUSER;" show:
         no rows selected
    Comparing this to another recently installed system there should be something like this:
         USERID
         PASSWD
         SAPSR3-CRYPT
         V01/0050ZctvSB67Wv2haiQTDrO5P5c7Ks/kyqpdQ7jDbQ==
    But I'm not really sure, if this entry should be there at this installation phase.
    If so, how is this entry created? Note 50088 describes how to handle this, but with other USERID and without encrypted PASSWD.
    I have no idea, why this happens, I recently installed 2 ECC systems and 1 Solution Manager systems and had no problems installing them.
    I already exchanged the control.xml according to note 1249469.
    I cannot find any note for this situation, so please ... is there anyone out there with an idea?
    Best regards
    Christian Reitz

    Hi,
    thanks for the answer... as I read your answer, I had some doubt, and unfortunately I was right.
    Altering the users PW does not write into the SAPUSER table... why should it? Altering an oracle user does not effekt this SAP table.
    In the meantime I started from scratch. Complete new installation of Win2008, patching, etc.
    ... same issue.
    I don't know, why this happens... I cannot find another hint what happend before, when the user should be added into the table.
    Any ideas? Anyone?
    Thanks for help in advance.
    Christian

  • ST3B17.1 Error with create icon when login with KO language

    I have bug 12405347 for ST3:B17.1.
    When login with Korean language from FSM, we get the following error clicking on the create icon on an application table:
    status=500,ecid=000IyPN0iN7y0A5jbP5if1Dhqlf00083z
    -------- in the Payable log -----------------
    in the Payables log
    Caused by: javax.el.ELException: java.lang.NullPointerException
    at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
    at
    com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.j
    ava:173)
    at
    com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.ja
    va:200)
    at com.sun.el.parser.AstValue.getValue(Unknown Source)
    at com.sun.el.parser.AstOr.getValue(Unknown Source)
    at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
    at
    oracle.adf.view.rich.component.fragment.UIXInclude$ContextualFacesBeanWrapper.
    getProperty(UIXInclude.java:574)
    at
    org.apache.myfaces.trinidad.bean.util.ValueMap.get(ValueMap.java:67)
    at
    oracle.adf.view.rich.component.fragment.UIXInclude$AttrMap.get(UIXInclude.java
    :481)
    at javax.el.MapELResolver.getValue(MapELResolver.java:164)
    at
    com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.ja
    va:200)
    at com.sun.el.parser.AstValue.getValue(Unknown Source)
    at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
    at
    org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:
    68)
    at o
    and
    Caused by: java.lang.NullPointerException
    at
    oracle.apps.financials.cashManagement.bankRelationships.ui.bean.BankAccountSea
    rchBean.isDisableEditButton(BankAccountSearchBean.java:466)
    at sun.reflect.GeneratedMethodAccessor134086.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
    ava:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
    at
    com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.j
    ava:173)
    at
    com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.ja
    va:200)
    at com.sun.el.parser.AstValue.getValue(Unknown Source)
    at com.sun.el.parser.AstOr.getValue(Unknown Source)
    at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
    at
    oracle.adf.view.rich.component.fragment.UIXInclude$ContextualFacesBeanWrapper.
    getProperty(UIXInclude.java:574)
    at
    org.apache.myfaces.trinidad.bean.util.ValueMap.get(ValueMap.java:66)
    at
    oracle.adf.view.rich.component.fragment.UIXInclude.getAttribute(UIXInclude.jav
    a:279)
    at
    oracle.adf.view.rich.component.fragment.UIXInclude$AttrMap.get(UIXInclude.java
    :481)
    at javax.el.MapELResolver.getValue(MapELResolver.java:164)
    at
    com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.j
    ava:173)
    java.lang.IllegalAccessException: Class
    org.apache.myfaces.trinidad.bean.util.StateUtils$Saver can not access a
    member of class
    oracle.adfinternal.view.faces.dynamic.DynamicForm$DependentValueChangeListener
    with modifiers ""
    at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
    at java.lang.Class.newInstance0(Class.java:349)
    at java.lang.Class.newInstance(Class.java:308)
    at
    org.apache.myfaces.trinidad.bean.util.StateUtils$Saver.restoreState(StateUtils
    .java:576)
    at
    org.apache.myfaces.trinidad.bean.util.StateUtils.restoreStateHolder(StateUtils
    .java:454)
    The error occurs only when using FSM and login with the Korean language. There are no issue if we access the page with the direct URL:
    http://fusionsystemtest-z-fs.us.oracle.com/payables/faces/CeManageBank
    Also, there are no issue when login with the English languge. I cannot reproduce the error locally using jdeveloper either.
    @###Environment name and url
    https://fusionsystemtest-z-fs.us.oracle.com/homePage/faces/AtkHomePageWelcome
    @###Steps to reproduce, including username / password & data used
    1. Login cash_manager / Welcome1 using Korian Login.
    2. Navigate to Setup and Maintenance > All Tasks > Name:Manage Bank% > Search
    3. Click on Go to Task button against Manage Bank Accounts record
    4. In Manage Bank Account page click on Create Icon - Error Message Appears.
    In the error message after the Korean characters (status=500,ecid=000IyPN0iN7y0A5jbP5if1Dhqlf00083z) message is displayed.
    Can you please advice how I can debug this issue?
    thanks,
    Lynn
    Edited by: user713482 on May 5, 2011 11:04 AM

    Look like you are an Oracle employee. In this case you should post your question on an internal forum and not on the public OTN forum.
    Timo

  • Use NAC Web Agent login with Ipad

    Hello Guys,
    I'm using NAC 4.8, and I'd like to login using NAC Web Agent on Ipad.
    When I'm trying to do that, I'm receiving a message on Ipad that I need to install Java Plug-In, but there is no JavaPlug-in available for Ipad.
    Does anyone know if there is any aditional configuration that I have to do on NAC Manager to be able to access the network using NAC Web Login on Ipad ?
    Best Regards

    Hi Luciano,
    Unfortunately, the NAC Web Agent and the persistant Agent are not supported for the iPad operating system. (It is called iOS). The following table documents this fact under footnote 3:
    http://www.cisco.com/en/US/docs/security/nac/appliance/support_guide/agntsprt.html#wp125630
    Only normal Web Login with Safari browser is enabled.
    Hope this helps.
    -Shrikant
    P.S.: Please mark this question as answered if it has been resolved. Do rate helpful posts. Thanks.

  • Trying to UNION two views with nested tables

    I am using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod, and my objective is to generate some XML. What I have been doing in the past, is to create a view, and then pass that view to the DBMS_XMLQuery routine. This gives me a CLOB that I pass along to the application. A typical object would be something like:
    create or replace type XML_UGroup_Member_Type as object (
         username          varchar2(128),
         group_key          varchar2(128));
    create or replace type XML_UGroup_Member_List
        as table of XML_UGroup_Member_Type;
    show errors
    Create or replace type XML_UGroup_Type as object (
         Group_Space     varchar2(32),
         group_key     varchar2(128),
         group_name     varchar2(255),
         members          XML_UGroup_Member_List);
    /This particular application will be doing stuff with group information. Pretty simply types - a group with a name and a few other keys, and a list of members. A sample view would be like:
    create or replace view xml_department_ugroup_view of xml_ugroup_type
      with object identifier ( group_key ) as
      Select 'Department',
          'Department:' || orgn_code,
          'Department_' || orgn_name
          cast ( multiset (
               select  Username, person_id,
                        'Department:' ||  effective_orgn
                from directory_master dm, logins l
               where effective_orgn = dd.orgn_code
                 and dm.person_id = l.owner)
                as XML_UGroup_Member_List )
             as members
       from directory_departments dd
      where dept_include = 'Y';
    can select from this view, and I can pass it to the DBMS_XMLQUERY package and get a nice XML document. What I want to is essentially put several of these views together, like
    Select * from XML_Department_Ugroup_View
    Union
    Select * from XML_Portfolio_Ugroup_View;But UNION does not work with nested tables:
    ERROR at line 1: ORA-00932: inconsistent datatypes: expected - got SIMON.XML_UGROUP_MEMBER_LIST
    What I was hoping to do, was to develop a set of sub views for each of the group "spaces", and then generate a view/object that includes all of the sub views, and be able to operate with that single object.
    Thoughts on how to make this work, or on alternate approaches? I have considered calling XMLQuery on each of the sub views and concatenating the XML documents and returning that to the application, but I was hoping to find a more "unified" approach.

    I modified my approach a bit - I changed the base views to return an XMLType object, like:
    create or replace view xml_portfolio_ugroup_xml
    as
    Select XMLElement("group",
             xml_ugroup_type(
          'Portfolio',
             'Portfolio:' || coas_code || ':' || orgn_Code,
          cast ( multiset (
               select  Username,
                from directory_master dm, logins l
               where ( effective_orgn, effective_coas ) in
               where effective_orgn = dd.orgn_code
                  and dm.person_id = l.owner
                as XML_UGroup_Member_List ))) as grp
       from directory_departments dd
      where dept_include = 'Y';and then I combined them with something like the following (I expect to adjust this as I learn more about the XML DB support)
    create or replace view xml_ugroup_xml as
      select xmlconcat(
         (select xmlagg(grp) from xml_department_ugroup_xml),
         (select xmlagg(grp) from xml_portfolio_ugroup_xml)
         ) as GROUPS
         from dualand as I define more group branches, I can add them into the XMLConCat stanzas. I am still open to suggestions as to ways of doing this better or cleaner, but this at least gets the project moving forward again.

  • Not able to Login with PS

    hi folks, i am not able to login with PS/PS in the Datamover and app desingner. It gives me the errore that the user name is not valid. My psdbowner table does not have any entry about the owner of my DB even after running the dbowner.sql. i tried to update this table but it gave me the message that no rows updated.

    <s>SYSADM is nothing but an Oracle user, when connecting with this user in DataMover, it's bootstrap mode. PS is different, whether it's an Oracle user, it should be locked, PS is also an application user (should exists in PSOPRDEFN). The latter is used when connecting to DMS/AppDesigner.
    1. Check the connectivity properties in Configuration Manager: connectid=people, connect password=peop1e
    2. Try to connect onto the database with people and check if you can select from tables PSACCESSPRFL, PSOPRDDEFN and PSDBOWNER
    3. From within the database, check the owner of the table PSDBOWNER (should be PS which must be locked).
    And please, try to give the answers to the questions above (what update statement...). If that's a fresh install, or you've missed some steps, or something went wrong during the initial load (check the logfile).</s>
    Due to the lack of information, I was going to the wrong way. Fortunately for Hick, Hakan rightly pointed out the step of the installation. And yes, PS Oracle user account is locked and nothing wrong to have PSDBOWNER empty at this stage, it is filled up when load the very first dms (there's a statement like INSERT INTO PS.PSDBOWNER VALUES...). I think some documentation reading here should not hurt.
    Sorry, but I'm really fed up with people providing too few information (or no information at all) about their situation. I give this thread up.
    Nicolas.
    Edited by: N Gasparotto on Jan 15, 2013 1:30 PM

  • Not able to login with Firefighter ID

    Hi,
    I configured the SPM and was able to test the firefighter login  in our sandbox. Recently we upgraded from SP5 to SP8, since then I am not able to login with the firefighter id. When I try to access  the "Security" tab in /n/VIRSA/VFAT I am getting the error messge " These settings are NOT required anymore. with  Message no. /VIRSA/VFAT710 ".
    Any idea what might have changed and where should I look to fix this. Appreciate all your help.
    Thanks,
    Raj

    Hi,
    There was some security leak in the previous design of Firefighter in which we used to maintain the password in security table.
    So to overcome this issue, there is no need to maintain the password in security table as the logic has been changed by which the FFID login.
    So from SP07 onwards there is no need for security table.
    Regards,
    Shweta

  • When i login with microsoft account cannot access with administrative share c$

    i have a problem when i login to windows with microsoft account cannot access any network computer with administrative sharing c$,d$ with windows 8.1 
    but when i login with local account can access
    and some people tell  me create key in regedit t fix it 
    after enter user name and password show this error 
    and i apply your instruction  and not fix until now
    note:
     my Machine windows 8.1 if another machine in network windows 7 can access a hidden share if machine in network windows 8.1 show this message in image 2 
    but if i login with local user can i access all machine hidden share network windows 7 and 8.1

    yes this computer i want to access  name poland2-work and have two users 
    first :administrator
    second : poland 2

  • Trying to login to software program known as hamspher (vip simulated ham radio,  it downloaded the program but it will not allow me to login with call sign and pin.  it has to be opened with what they call a jar file.  how do i do this?

    trying to login to software program known as hamspher (vip simulated ham radio,  it downloaded the program but it will not allow me to login with call sign and pin.  it has to be opened with what they call a jar file.  how do i do this?

    This is compatible with Mac? Especially Snow Leopard (if that is what you'e running)?
    Have you considered posting your question in their forums?
    Here is some information re. the jar file:
    http://ostermiller.org/opening_jar_files.html

  • Cannot login with AD credentials on iMac

    Greetings:
    I have a brand new 27" Intel iMac that had been allowing AD logins just find until today. Now, no matter what I do, unbinding, rebooting, manually joining domain (dsconfigad), etc I cannot login using my AD credentials. This had been working flawlessly until today. I can bind to AD no problem. When I go to login with my known good account, I just get the window shake. Logging in with a local account, I see error messages in the console of:
    DNS Update Failed & Enter Machine Password
    The machine account is already staged in our OU. I am not clear what the DNS error is alluding to.
    reading through these postings: http://www.macwindows.com/snowleopardAD.html
    I tried disabling creating mobile accounts at login. However that did not fix the issue.
    I believe our campus is running Win2K8 AD servers. Our campus DNS appliance is a separate box, but should know how to delegate to AD (?). The other 10.6.3 machines we have, are authenticating against AD fine.
    Any ideas?

    Marcus is correct - the ZAM administration accounts (ZAM 7.x) are stored (encrypted) within the ZAM database.
    Within ZAM 7.x there is no way to integrate this with AD (either by LDAP referral or some kind of identity / password sync) and AFAIK no plans to add this.
    I believe in the ZCM version of asset (and I hope the standalone version of ZAM10 still in dev) you set up the AD account(s) that is/are allowed Admin etc. access within ZAM, then LDAP referrals are used to authenticate via AD. I don;t know this for sure, though.

  • Unable to login with Jabber Windows

    Hi ,
    Am unable to login the Jabber Windows Client. Getting the error as "Unable to Communicate With the Server".
    Able to login with CUPS & CUCM end user page. CUCM Integrated with LDAP.
    While going through the UP Profile logs seen that "Failed to SOAP login".
    Tried with restart of CUCM & CUPS several times but no go.
    CUCM Version - 8.6.2
    CUPS Version - 8.6.1
    Tried with CUPC client result also same.
    Thanks in Advance

    If credentials work on CCMuser CUPSuser I would suspect either some kind of communication problem between the clients and the servers and/or misconfiguration (user/device/line association, device owner, roles, CTI/CCMCIP profiles, etc) on CUCM/CUPS.
    Specially because you mention the same happens with CUPC.
    HTH
    java
    if this helps, please rate
    www.cisco.com/go/pdihelpdesk

  • While send/receive email, I have received an error message "Sending of password d"? However with same login details, I am able to login with other application.

    While send/receive email, I have received an error message "Sending of password d"?
    However with same login details, I am able to login with other application.
    I have changed password still the issue remains as it is.

    https://support.mozilla.org/en-US/kb/cannot-send-messages

  • Unable to use free version regardless of browser on any machine. I login with adobe id but then the loading screen just hangs.

    Unable to use free version regardless of browser on any machine. I login with adobe id but then the loading screen just hangs. can't get any further - Tried all suggestions like clearing browser caches but no change.
    Got a couple of projects i wanted to try this on and if the software works I will probably take a subscription but considering this isn't working at all will look elsewhere.
    Also - adobe live chat support is useless.

    Hi,
    please share the Adobe ID that you are using with DL-AdobeStory-support<at>adobe<dot>com and we will investigate the issue.
    Thanks
    Aurobinda

  • Apple tv 2 problem: I can not login with my ID account!!!!!

    apple tv does not login with my ID! Do you have a solution? Since a few weeks I can not login in with my password...
    I tried everything:
    - re-starting apple tv.
    - login on macbook with my apple ID with new password

    Signal Strengh on WiFi was great (its a new Apple Time Capsule and has to be reset often).  Checked the internet connectivity on other machines too (incase that was inop).   I checked the network first as that is typically a impediment to all other things working prior to my previous comment.  I logged in to iTunes and MobleMe to see that my password was correct and working.  hmmm.
    I reset the Apple TV next and again changed my iTunes password on my laptop, then ran a network test (which needs a itunes password to work).  Network check was successful and I am logged back in.
    Now it says...."Netflix is currently unavailable. Try again later".
    geez.

  • Hello,when i login with the account of my wife it does not unable her music files.could you help me please?

    I have an imac osx 10.9.5 and 3,4GHz intel core i7
    When i login with the account of my wife in itunes, it does not show me the music files from her library,but only the music files from mine.
    What do i have to do?

    i mean log into iTunes Store,but i have solve this issue by myself.
    Thank you for your support.

Maybe you are looking for