Control of application or database sequence?

What are the advantages and disadvantages to allow the database insert PK values using a database sequence vs let the application control?

There are situations where it is better to let the application do?

Rinne says:
What are the advantages and disadvantages to allow the database insert PK values using a database sequence vs let the application control?

There are situations where it is better to let the application do?

I guess it might depend on the nature of the application and the nature of the PK.

That said, if something absolutely positiviely must be in a row, I don't like depending on an application (errors) to do. And don't forget that not all access to data is controlled by the application.

After re-reading of your topic (which explicitly mentions the sequences) vs your text (which was a little more General on PK), I had absolutely say the advantage of having to fill with a sequence (via a trigger) vs PB expects the app the PK do is that you can not count on the app Apps tend to be misleading, and the app is not the only access to the database.

Published by: EdStevens on 8 August 2012 10:30

Tags: Database

Similar Questions

  • Check whether a control is a context of sequence

    Hello

    In one of my projects, I have to check whether a control is a context of sequence control. This can be done using the properties as the "Classname" of control. That's why I'm conversion of the control of reference to the variant and help 'Variant in flattened chain' for table 'string' that describes the type. I see that the first two this array element varies for each control and the remaining elements are the same for the same class type ActiveX controls. Please tell me if this is the best way to do it. I have

    Thank you.

    Ganesh Kumar

    I think jcarmody has answered this on the forums of LAVA.  Flatten your ActiveX to XML reference, then parse the XML.  The XML contains the name and the GUID of the ActiveX object.

  • In my adf application, I use sequences, the problem that I face, is that this sequence break at 2:21 or three insertions. Any reason?

    Mr President

    In my adf application, I use sequences, the problem that I face, is that this sequence break at 2:21 or three insertions. Any reason?

    Concerning

    How can I correct this situation?

    Well, look at your definition of the sequence and correct

    There are CACHE 20 then change or recreate your sequence and use NOCACHE

    Dario

  • Cannot control the use of database storage

    Hello

    I've just updated the vCenter Server from 5.5U1 to 5.5U2b. In 'Health Service', there are new warning message:

    "Cannot control the use of database storage. See VMware KB 2078305 for more details".

    I use MS SQL 2008 R2 SP1 Express, which is supported by this version of vCenter. There are also a lot of free space on the disk of the server (63 GB free). Ko 2078305 does not explain this particular warning message and the data of events for task and retention policy are also defined.

    So, what should be the problem? What are the conditions to trigger this alert?

    Thank you

    David

    Thank you so much Jogits you are right, I used google and find the solution on the blog below

    I put in sql db permission:

    use master

    go

    grant VIEW SERVER STATE to [vpxuser]

    go

    GRANT VIEW ANY DEFINITION to [vpxuser]

    go

    and after

    Restart the Vcenter, and is now GREEN

    Setting the server vCenter 5.5 & #8217; database question s followed by its use in the health service. Salt * wet * bytes

  • Copy option is grayed when right clicked on the application or database...

    Hi all

    I'm working on 11.1.2 version of Hyperion in a distributed environment. From the Console, I'm trying to copy an application (including databases) and stick with a different name in order to make changes to the copied one. As the copy option is grayed out when I right click on the name of the application, I was unable to do the same thing. So, I tried to copy only a database in the same application, but copy option is grayed out here also...

    Also, I checked for other applications to check if the copy option is grayed out or not, and for some it is and is not for others.

    Are you sure that apps are not applications planning, perhaps those that you can copy is pure Essbase applications and those that you don't plan applications.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • How to change the "Applications of database ID' in EBS

    Hello

    I stuck in the problem, by mistake I changed 'Database ID Applications' prod to shubh_prod at the bottom of the navigation path.

    (1) select ' profile > system '
    (2) search for 'Applications of database ID'

    Now I get the error like below


    APP-FND-01630: could not open the file /do1/oracle/prodappl/fnd/11.5.0/secure/PROD_shubh/shubh_prod.dbc for reading
    Cause file player: Setup encounters an error when you try to open the file /do1/oracle/prodappl/fnd/11.5.0/secure/PROD_shubh/shubh_prod.dbc for reading.


    Please guide me how to change 'Database ID Applications' to the shubh_prod prod again.

    Thank you
    The respect of
    Rerry

    Hello

    This is an expected - behavior please see (Note: 293609.1 - APP-FND-01542 by connecting directly to forms through the f60cgi in 11.5.10) for more details.

    Kind regards
    Hussein

  • "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;
    
  • best practices for the structure of the code control multiple devices in a sequence-step 2

    I have a question about code architecture and to get multiple devices controlled and synchronized for an experience. It is an 'architecture' - type application, so I hope for some suggestions on how to proceed.

    I run an experience in which I order 2 NI PCI-6733. I will soon add a Tektronix AFG 3022 B and have long been turned off the opportunity to rewrite my code labview from the ground upward. I inherited from a previous search, and although functional, I want to make it easier to modify and divide into sub - VI and these. Link to the current program (labview 8.6.1) is here if you do not want to see the code that is currently used and Subvi is in a zip file. The current version of experience consists of one stage, all writing the data for PCI cards is saved for the end. I need to change that in my configuration again well.

    The new experience consists of 2 steps. The first will take place (loop an array of output for PCI cards) until he heard a 'real' another computer (connected via TCP). When you do that, it should go to step 2 and run a sequence (usually 10 ^ 5 timeunits of length, where the unit of time is 0.1 ms) which refers to two PCI, the AFG 3022 B cards and with the flexibility to add more devices in the future.

    The most popular would be structural advice. How to organize the screw, if it's good to use a VI 'master' that would control the two sub - VI phase 1 and 2, etc...  Feel free to ask for more details if it helps clarify my question. Thank you!

    Such programs typically use a kind of State machine.  You will find many tutorials on LabVIEW state machines in these forums or forums of LAVA.  If you do a rewrite, I also recommend that consider you the LabVIEW classes.  They help modularize your code and do more reusable subparts.  You can end up with less to maintain, accordingly.

    You can also consider TestStand.  It was designed to perform sequences of tests, so can make your life easier.  It would be also exaggerated gross.

    Let us know if you encounter any problems with the machinery of State or classes.

  • How can I close control Mission applications?  I hide the dock and it's out of the way while I work.

    I want to manage (close) application for running applications windows, Mission control. GNOME Shell has something similar to the control of the Mission, but each window has an 'X' in the top left allows you to close it in the preview... It is the most natural way for me to 'clean up' my open windows.

    Always close all the windows do not exit the application. Only applications that have a window like the preferences system, Keychain Access, and disk utility can be leave by closing a window. More information

    You can hold down the Option key when the button in an application to close by clicking on a red and it closes all open windows that are open in the application. It does not end the app.

    Command + Option + Q allows you to exit an application and to close all its windows so that when you reopen the app it will not open windows.

    If you want to quit all open applications, see this post on the use of Automator to stop everything.

    http://osxdaily.com/2013/06/02/quit-all-applications-Mac-OS-x/

  • How to control the execution of a sequence of flat have the Cancel button

    Hello
    I have a question for you guys.
    Suppose I want to write a program to control a set of materials by sending commands via a serial port
    In fact, he calls a 'round '. Because a series of specific commands will send via a serial port at once specific time. What I call one a time Cycle.
    Between each send command steps there is a delay (waiting in range of Timing). The joint part of my VI.

    I was wondering how I can integrate a Cancel button which is able to act in any image of the flat sequence Structure?
    As you can see it is not everything in loops to have the best control of the program because I want to run commands in the series only once.
    Where to put the button 'Cancel' in frames?
    I want to show a confirmation message when the user clicked the Cancel button, and if the answer was 'YES' LabvIEW stops running flat sequence Structure and of the specific procedure to cancel (which is not included in above VI) takes place. Otherwise (by clicking 'NO') program continues to run...

    Note that home is just a simple version of what I intend to

    For example in some frames, it will be a while loop and so on...

    But there will be only on flat sequence at all

    Excuse me for my bad English

    Hi mostafi,.

    General answer: convert your flat sequence in a correct state machine States!

    Now, you can check your "Cancel" button after each State is treated...

  • CATALIST control center application works niet

    problem of application CATALIST control center

    You posted on a forum for users of Microsoft Security Essentials.

    For catalist control center support, go here.

     
    U would forgive naar een forum voor gebruikers van Microsoft Security Essentials.

    Control of GA naar Centrum yesterday voor catalyst.

    http://support.AMD.com/us/pages/AMDSupportHub.aspx

  • HP Printer Control mobile application

    Good job on the HP Printer Control for Android, HP mobile app!
    (not to be confused with the HP ePrint application, which is also good)

    It allows me to scan an image/document using my HP 6500 has more directly on my Android (without PC) phone, I wanted to be able to do.

    Hi Natey2,

    Thanks for the positive comments for control of printing application.

  • Launch application on KeyPress sequence - Code example included

    I searched this forum and google hours and could not get it to work.

    I used this thread:

    http://supportforums.BlackBerry.com/T5/Java-development/launch-application-on-12345/m-p/502771

    I have a background process which is a PhoneListener.

    It intercepts the void callInitiated(int callid) and checks the sequence.

    If the sequence is the right one, she injects an end key and starts the application.

    There are 2 problems:

    (1) the dialed number appears with? prefix and I can't seem to find the right channel for the game.

    (2) if I inject end, the call ended, but so is my application that I just launched.

    I tried waiting and I tried the function calls but no dice the reorganization.

    public void callInitiated(int callid) {
    
            String dialedNumber = Phone.getCall(callid).getDisplayPhoneNumber();
            System.out.println("!!!!!!!!!!!!  Dialed:" + dialedNumber.length());
    
            if (true || dialedNumber.endsWith(KEY_SEQUENCE)) {
    
                // end the call
            //  EventInjector.KeyCodeEvent ev = new EventInjector.KeyCodeEvent(EventInjector.KeyCodeEvent.KEY_DOWN, ((char)Keypad.KEY_END), KeypadListener.STATUS_NOT_FROM_KEYPAD);
            //  EventInjector.invokeEvent(ev);
    
                final UiApplication app = UiApplication.getUiApplication();
                app.invokeLater(new Runnable() {
                    public void run() {
                        try {
                            Thread.sleep(20);
                        } catch (InterruptedException e) {
                            e.printStackTrace();
                        }
                        try {
                            ApplicationManager.getApplicationManager().launch(
                            "MyApp?gui");
                        } catch (ApplicationManagerException e) {
                            e.printStackTrace();
                        }
                    }
                });
    
            }
        }
    

    any help?

    Thank you

    He solved.

    for some reason, the callInitiated (.) is called several times for each call

    Make sure that your code to initiate and end the call is executed only once (I used a hashtable and stored the callid) and you're golden.

  • User account control interrupts applications full screen

    Programs to auto-update the user account control has a tendency to arise and minimizing applications full screen such as movies or video games. If I do something that causes UAC to pop up, it's good, but I won't be interrupted by it because some program decides to download an update. Is it possible to make may have to wait in the background for me to finish what I'm doing and deal with him and prevent him from minimize applications full screen?

    Hi Bob,

    This behavior of user account control is by design, and you can change it by adjusting the parameters of the UAC.

    User Account Control (UAC) can help prevent your computer from unauthorized changes. UAC notifies you when changes will be made to your computer that require administrator-level permissions. These types of changes can affect the security of your computer or can affect settings for other people who use the computer. We recommend that you leave UAC to help your computer course.

    By default, UAC is set to warn you as soon as apps try to make changes to your PC, but you can change how often UAC notifies you.

    What are user account control settings?

    http://Windows.Microsoft.com/en-us/Windows/what-are-user-account-control-settings#1TC=Windows-8

    What is user account control?

    http://Windows.Microsoft.com/en-us/Windows/what-is-user-account-control#1TC=Windows-7

    Note: User Account Control (UAC) can help you to prevent your computer from unauthorized changes. It works by asking permission when a task requires administrative rights, such as installing software or changing settings affecting other users. We do not recommend disable user account control. If you turn it off, you must reactivate as soon as possible.

    I hope this helps. If you need help with Windows, let us know and will be happy to help you.

  • Download worksheet of others generates you have not signed the Applications required database error

    Greetings,

    We use the 7.2.12.04.25 32-bit version of ADI on a machine IBM P750 running AIX 5.3.  The correct application of the Oracle is version 11.5.10 on a 10G database.  We have two users who are unable to download each other spreadsheets, but are able to upload their own.  Another user is able to download the worksheets created by both users who cannot download all other worksheets.  ADI settings seem to be the same, and users choose the same responsibility.  Database properties appear to be the same as well inside spreadsheets.  One option would be to copy the contents of the worksheet to the other person in one they have created, and then load it but this process is too cumbersome to entertain.  Has anyone met and solved this problem?  The mistake they see is "you have not signed the required Applications database.

    Thank you!

    Scott

    User418146 wrote:

    No - in the CRITERIA of worksheet tabs.  Column A on line 10 is "CONNECTION STRING".

    I don't think so.

    Could you please try to use the same GL responsibility first and see if it works?

    Thank you

    Hussein

Maybe you are looking for