"Face control" for applications at the opening session in the database

I need to deny access to certain applications, except written request by me (oracle forms)

I do the following

1 beforehand (form krn_start), I add line dbms_application_info.set_module ('KIKIMARA', ");
and after logon user, the module name "KIKIMARA" appears in v$ session.

2 create the trigger for logons
CREATE OR REPLACE TRIGGER AfterConnect AFTER LOGON ON DATABASE
declare
l_module_name VARCHAR (48);
l_action_name varchar (32);
BEGIN
DBMS_APPLICATION_INFO.read_module (l_module_name, l_action_name);
insert into audit_tab (l_module_name, sysdate) values;
If l_module_name not in ('KIKIMARA') then
raise_application_error (-20000, "Program error");
end if;
end;

But all the user of any application of connections and audit_tab shows a column null with current sysdate.

PS: when I start my form after module of logon user name "KIKIMARA" appears in v$ session

Help, please. SOS!

Sanjar wrote:
Question for developers - how to change the module of ORACLE FORMS before logging?

You can not set_module before logging. For an obvious reason - you are not connected :)
You can try the workaround is to use dbms_job.submit in trigger AFTER logon.
After 1 second, submit the procedure that will kill session if the module name is not KIKIMARA. This module time name must be already defined by shapes.
Unfortunately no user-friendly messages in this solution...

something like that:

in the forms after LOGON

dbms_application_info.set_module('KIKIMARA','');

On the database:

CREATE OR REPLACE TRIGGER AfterConnect AFTER LOGON ON DATABASE
DECLARE
l_job NUMBER(10);
BEGIN
 FOR x IN (SELECT audsid
                 FROM v$session
             WHERE audsid = USERENV('SESSIONID')
             AND program = 'frmweb.exe') LOOP
       DBMS_JOB.SUBMIT(l_job, 'Audit_Kill('|| x.audsid ||');', SYSDATE+1/24/60/60);  -- 1 second
       COMMIT;
  END LOOP;
END;
CREATE OR REPLACE PROCEDURE Audit_Kill (p_audsid VARCHAR2) IS
l_module_name VARCHAR(48);
l_sid NUMBER(10);
l_serial NUMBER(10);
BEGIN
 SELECT module,  SID, serial#
 INTO  l_module_name,l_sid, l_serial
 FROM v$session WHERE audsid=p_audsid AND program='frmweb.exe'
 AND ROWNUM=1;
 INSERT INTO AUDIT_TAB VALUES(l_module_name, SYSDATE );
 COMMIT;
 IF l_module_name not in  ('KIKIMARA') THEN
  EXECUTE IMMEDIATE 'alter system kill session '''||l_sid||', '||l_serial||'''';
 END IF;
END;

Tags: Oracle Development

Similar Questions

  • 'Versions of the application and the database do not match' on the comparison of the annex

    Moved the database to a Server 2003 to server in 2012.  This has been the only change PM receive the message "the application and the database of the versions do not match" when they try to make a comparison of the annex.

    Thanks for your help.  You have provided very concise solutions to my problem, I ended up having also do the following:

    Trip, click the password in the admim.cmd to ensure that the password has been set successfully and deleted the file BREBootStrap.xml (let it recreate itself)

  • en dreamweaver cc 2015 quitaron the application to the database the extencion tampoco works as opcion alternativa ahi para solucionarlo?

    en dreamweaver cc 2015 quitaron the application to the database the extencion tampoco works as opcion alternativa ahi para solucionarlo?

    This will give you the deprecated feature http://www.dmxzone.com/go/21842/enable-server-behaviors-and-data-bindings-panel-support-fo r-dreamweaver-cc /. Please be aware that you will need to the MySQLi or PDO for the site to be future-proof.

    Commercial extensions for Dreamweaver are the following:

  • Where can I find data, such as saved games, for applications like the pillars of eternity?

    I looked at the support of the application, and there is no record of the application of the pillars of eternity. In fact, there is only the application itself, and opening "content" does not show a file parts stored. Any help will be appreciated.

    Finally, with the assistance of a person in POE forum community. I mention it here only because there may be other applications for which this is true. The location for such a game records are library/containers... you will find a folder containing everything, in this case, the files of POE.

  • I can't findhow to correct parental control for content on the internet

    don't know how to find the parental controls to change the settings for content on the internet.

    Hello

    What version of Internet Explorer is installed on the computer?

    If there are specific Web sites that you want to block or to allow explicitly, follow these steps. This setting overrides the sides that maybe having the site.

    1. open Internet Explorer by clicking the Start button. In the search box, type Internet Explorer, and then in the list of results, click Internet Explorer.

    2. click on tools and then click Internet Options.

    3. click on the content tab and then, under Content Advisor, click settings.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    4. in the Supervisor Password Required dialog box, type your password, and then click OK.

    5. click on the approved Sites tab.

    6. under allow this Web site, type the URL of the site you want to allow or block, and then select always or never to allow or block the Web site.

    7. click on apply to save the settings and then click OK.

    Refer to the section on Windows XP to set parental controls in Windows XP

    How to use parental controls in Windows

    http://www.Microsoft.com/athome/video/parentalwin.aspx#fBid=ED4nv6QnuBS

    Using Content Advisor to block inappropriate web content

    http://Windows.Microsoft.com/en-us/Windows7/using-Content-Advisor-to-help-block-inappropriate-Web-content

    Hope the information is helpful and let us know if you need more assistance.

  • Wrote a review for application on the surface rt

    I'm writing a review for an application on the windows store I use windows done rt area someone has an idea how do?

    Come on...

    There are several ways to do so.

    -First, that you did not clearly, doing a simple Internet search to understand.

    -the second is to launch the application, open the charm of settings and using the applicable rating and review option.

    -the third is to find the app in the store and use the appropriate rate and examine the area is generally located next to the app description.

    I am inclined to believe that you haven't looked around (?) because it is very easy to know how to do.

  • The 'Design Different' home screen Firefox keeps popping up even after controlling for him in the preferences.

    More here: [924123/questions/924123]

    I installed the new Firefox on my Mac, OS x 10.6.8 by dragging the icon in the Applications folder. I run the application and the "Different by Design" Firefox screen opens. My previous homepage is in a tab behind that. I select 'No' to help improve Firefox question and close the window. Whenever I have run Firefox or open a new window, and then displays the home screen Firefox. I checked the preferences and my company site is set as the home page. It matters little if I uninstall Firefox, restart the computer and reinstall Firefox. I even tried to install older versions, and continues to get the same error.

    Hi bigmex,

    You should look at this article on this specific issue and Preferences not savedarticle. It should give you all the information you need!

    If this does not work:

    1. Enter about: config in the address bar
    2. Click I'll be careful, I promise you if prompted
    3. In the filter field, type Startup
    4. Double click on startup.homepage_override_url
    5. Delete the text string, and then click OK
    6. Close Firefox and reopen the window to check that it worked.

    Hope this helps!

  • Users for Applications of the OBI

    Hello

    I am confused with point 4.4.1 of the Applications OBI 7.9.6.3 installation manual... I ve copied below:

    + "The transactional (OLTP) database user which is recorded in the DAC must be the +"
    + the owner of the database table. You can also at the very least, the user registered in DAC +.
    + must have read privileges on the transactional database for all tables and aliases. +
    + For databases CRM Siebel, the OLTP database user requires privileges create +.
    + triggers and views on all tables and aliases. » +

    I do not quite understand... The OLTP database user that is registered in DAC > > pls. It is the owner of the dac repository? One that do us the DAC connection?

    The next paragraph explains... the OLTP database user requires privileges to create a... > > I guess it's the same user that above?

    PLS, I appreciate the comments and help :))

    TXS
    Antonio

    Answers to your questions:

    I do not quite understand... The OLTP database user that is registered in DAC > pls. It is the owner of the dac repository?

    A: this is referring to the ERP system schema user. DAC direct JDBC calls to the OLTP system so that user must read the tables and also ADD/DROP index. You may also import OLTP tables to DAC to save time. This isn't the user you are using to connect to the DAC or the owner of the DAC repository. More precisely, it is the user of ERP system you describe in your source system.

    The next paragraph explains... the OLTP database user needs privileges create... > I guess it's the same user as above?

    A: Yes, this is the user OLTP. If your source system is Siebel CRM, you must have access to CREATE. If its NOT Siebel CRM then CREATE TABLE privilege is not necessary.

    So useful, mark appropriate or useful

  • Users on the application and the database

    Hi all

    Today a doubt struck in mind, same as I do my own research it doesn't. Well, my doubt is

    Gmail, facebook, OTN as these applications will undergo millions of uses, is what it means at the level of the database as we have same count of users...?

    How it will work. could you please let me know...

    Thank you

    Dedicated server means that there will be a dedicated process running on the server for each session opened by a customer.  The client application servers can open hundreds or thousands of connections at the base, all having the same shared database user to Oracle, to serve users accessing the site.  You would not channel all users through a single database connection and a single server process.

    Justin

  • Find objects used by applications in the database schema

    I want to list all tables and indexes that are hitted by the front application (using SELECT the option only for now).
    Is it possible to find the name of these tables and the indexes of the scheme which are hitted using queries of the warehouse, where the number of tables and indexes are in thousands, using Oracle internal dictionaries?
    Thank you
    XXXXXXXXXXX

    Mikael says:
    It becomes expensive to implement monitoring or audit in the warehouse. So my question is:
    Is it possible to find hits using Oracle internal dictionaries?

    Yes

    Happening somewhere in the database?

    Yes, but only after the activation of AUDIT

    It is not enabled by default because it is expensive to build up this level of detail.

    There is no such Ting as a free lunch!

  • Provider Unable to Submit eQ > > you are looking for "how to the database.

    Hello.  We have a supplier who was sent to a couple of EQS material with custom Sections.  They indicated, and I have confirmed, that can save the eQ without incident, but when they try to click on send, an unhandled exception message.  Our event logs are showing below the stack trace.  I interpret it as meaning that there is something on a particular custom section that the database considers necessary.  Given that it is not displayed in the eQ UI, I want to ask to the database "which is necessary on this customized for this particular eQ Section.  Unfortunately I was not able to get to the right SQL to get an answer to the question.

    We know the requestID for the equalizer and 1020746cb807-aa95-4088-b12e - 0a 6878746874 has been identified as a particular custom section within the equalizer.  Nothing is prepopulated in the eQ and the provider may choose to add lines.  In this case, nothing has been selected to submit it.  When there are data in the custom section, the index in the error value changes to 1.

    In the meantime, the vendor is on hold...  The forum can help?  Recommendations on the tables I should be showing through?

    Thank you.  -BeckieC

    = Stack trace =.

    ErrorType: First | ErrorCount: 0 | App: SP | SessionId: * hidden * | UserId: null | IsNewSession: False | ServerID: xxx.xx.xx.xx | Misc: |

    Exceptions: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. -> Xeno.Prodika.Common.AssertionException: value 'Could not find a line with an index of 0 in the model section 1020746cb807-aa95-4088-b12e - 0 a 6878746874' cannot be null

    at Xeno.Prodika.Common.Assert.Fail (String msg)

    at Xeno.Prodika.Common.Assert.NotNull (String name, Object value)

    at Xeno.Prodika.EQ.Service.DomainModel.GeneralEQ.BaseQuestionnaire.ValidateCustomSections (IExtendedAttributeSectionContainer container, IEQModelSection modelSection)

    at Xeno.Prodika.EQ.Service.DomainModel.GeneralEQ.BaseQuestionnaire.Validate (IEQCustomSectionModelSection eqCSModelSection)

    at Xeno.Prodika.EQ.Service.DomainModel.IngredientEQ.IngredientQuestionnaire.Validate (IEQCustomSectionModelSection eqCSModelSection)

    at Xeno.Prodika.SupplierPortal.WebUI.GeneralQ.SaveAndSubmit.Submit (Object sender, EventArgs e)

    to System.Web.UI.WebControls.Button.OnClick (ByVal e As EventArgs)

    at System.Web.UI.WebControls.Button.RaisePostBackEvent (String eventArgument)

    at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent (String eventArgument)

    at System.Web.UI.Page.RaisePostBackEvent (IPostBackEventHandler sourceControl, String eventArgument)

    at System.Web.UI.Page.RaisePostBackEvent (NameValueCollection postData)

    at System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    It was decided that since we cannot understand how interrogate the database, we the provider submit a new eQ and do data entry.  SR would not provide a timely resolution to the need for this provider.  No SR will be submitted for this issue.  New EQS have been sent and provider will rework the data.

  • Apex 4 - websheet in application of the database

    Is it possible to have websheet features in the database standard applications?


    Best regards

    Not at this stage.
    You can have the functionality of interactive reports in a standard database Application, but not the online edition or the wiki, unless you develop yourself ;-)

    Kind regards
    Dimitri
    ----------------------------------
    http://dgielis.blogspot.com/
    http://www.sumneva.com/

  • writing in an array of FPGAs for application of the rt

    When you use the control to write in an application of rt to write to a table fixed fpga is it requires to perfectly fit the sizes of battery?  I am assuming that you can write an array which is less than or equal to the size of table fixed fpga with no penalty.

    You can write any table size to the FPGA IO node; It will be resized to the correct length.  If you write a shorter range, however, I don't know if the remaining elements will be filled with 0 or something else.

  • How - to add options for application to the BlackBerry Options

    I generated the example "How - to add application options to the BlackBerry Options" of the knowledge base and run it on a Pearl Flip but I don't see any new added options. I could be looking in the wrong place, but I thought that the sample adds "Options Sample" to the list of options.

    No one knows where to look for the new option added by this example?

    I went back and Setup another entry point recompiled and still can't find where is the new option.

    Thanks Mark. That makes perfect sense as the mail app needs to retrieve incoming messages at any time.

    I've updated my code to close to the bottom of my library of applications by programming, I added a menu too. Is better to be sure that the library is closed and ready for the next event to use it.

  • Errorlog for application on the device

    is it possible to view a log of errors of the application once on the device?  My application does not work when the phone, but does on Simulator.

    Debugging on the device, by connecting the device to your IDE.  Sorry don't know how to do this on Eclipse, I always get this using the JDE, there is video that describes this process.

    You can view the error log by using the combination of keys ALT-L-G-L-G standard from the home screen.

    Sign here of the usual problems and level of operating system, make sure that the level of the OS on your device is > = your package JDE/component.

Maybe you are looking for