Trigger inserted from the data?

Hello, I created a unix script that takes care of every hour (sql loader) the output of bdf in a table. (total, used, free, perc, fs)
Is it possible to create a trigger of the DB that will check the perc (%) of each fs and if it finds it above for example 90% send an email?
East of Oracle 9i

Sample data:

15/02/2011/GSM/Data/03 76 70516736 53382280 17000600
15/02/2011/GSM/Data/04 37 70516736 25657408 44508936
15/02/2011/GSM/Data/05 33 70516736 22974952 47170376
15/02/2011/GSM/Data/06 89 70516736 62918336 7539048
15/02/2011/GSM/2 29696000 587944 28653312 Export
16/02/2011/GSMD/Data/03 76 70516736 53382280 17000600
16/02/2011/GSM/Data/04 37 70516736 25657408 44508936
16/02/2011/GSM/Data/05 33 70516736 22974952 47170376
16/02/2011/GSM/Data/06 89 70516736 62918336 7539048
16/02/2011/GSM/2 29696000 587944 28653312 Export

Thanks in advance

And why do you need Oracle who? You can do it directly under Unix. But yes, it is possible, but the email is not trunsactional. Most likely, it does not apply to your case, but the session can roll back changes, but not the enamel. Another issue is SQL * Loader commit point. Yet once, it does not apply to your case since the release of the bdf has very few lines, but I want to show you the issues you might encounter in general. As I said, I'd do it completely under Unix. Shell script can load table, and then start SQL * more and run simple PL/SQL block to check whether you need to check and send email when necessary. Another approach would be completely in Oracle. For example to create java based PC to run the operating system. Then create SP that is running your shell script, check what you need to check and send email when necessary.

SY.

Tags: Database

Similar Questions

  • Local data store has disappeared from the data store window (necessary emergency aid)

    Dear team,

    I m facing a very strange problem, all of a sudden one of the local ESX datastore disappeared thereafter are full details we have encountered/noticed.

    A local data store disappeared from the data store window.able to see this data store to add storage Wizard, which allows us to format the same.

    * If we take a session putty from here we can see and browse this store of data without problem.

    * Virtual computers that are running on this data store work as well (all files are accessible / VM is accessible on the network)

    * Unable to take backup image do error "the object has already been deleted or was not completely created.

    * Not able to take a «cannot complete the copy file... network» clone »

    Getting from newspapers in vmkernel:

    (14 dec 17:11:39 localhost vmkernel: 0:01:55:28.677 cpu1:4097) ScsiDeviceIO: 747: command 0 x 28-the device 'mpx.vmhba1:C0:T1:L0' failed, the data of sense H:0 x D:0 x 2 P:0 x 0 0 valid: 0 x 4 0 44 x 0 x 0.

    (14 dec 17:11:39 localhost vmkernel: 0:01:55:28.677 cpu1:4097) ScsiDeviceToken: 293: Sync IO 0 x 28-the device 'mpx.vmhba1:C0:T1:L0' failed: error/o H:0 x D:0 x P:0 x 0 2 0 valid sense data: 0x4 0 44 x 0 x 0.

    (14 dec 17:11:39 localhost vmkernel: 0:01:55:28.677 cpu6:4110) capability3: 5354: Sync READ error ('. fbb.sf') (ioFlags: 8): i/o error

    Need your help urgently to solve the same.

    concerning

    Mr. VMware

    Dear all,

    We have enclosed a case at VMware, please find their findings on the same.

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    After the webex session, we just had, I discovered the root cause of the problem reported to an underlying problem on the block device (the logical drive, or a problem on the Board) presented to accommodate the data in question store successfully.

    In short, whenever we try to do raw reading from the disk (from sector 0), the same always fail when we reach the 30932992 bytes (31 MB) brand with an IO error (which is consistent, he is always on this region of the disc that read operations fail, no more, no less). This result can be seen, even if no partition is in the disk (using if = / dev/sdb instead of/dev/sdb1 with dd) and even after zeroing on all sectors (if dd \u003d/dev/zero of = / dev/sdb). Strangely, read operations work fine (as he writes zeros of random data) throughout the entire disk. Keep in mind that the tests I did with no VMware tools (I used almost only dd for these operations), which prohibits certainly a VMware problem (in fact, if you were to try to start the server with a Linux live CD and run the same tests that I did, you would see the same behavior).

    I know that there is no report of material of any bad behavior on the table, but data collected with our tests today completely invalid who. The next step is for you to take this to the server provider to check for problems on the table or discs, because they are there and they are the reason for the problem you reported initially.

    Please let me know if you have other questions about it.

    Thank you

    -

    David Meireles

    Technical Support Engineer

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Now we have blocked a case from the hardware vendor, to see what the next move will be.

    concerning

    Mr. VMware

  • Can photos be deleted from the data store directly?

    Hello

    I just doubt. Can shapshots be deleted directly from the data store.

    I checked the Snapshot Manager, but was not able to locate snapshots in it, but at the same time there were three snapshots in particular virtual machine data store. What it means?

    And what is my isNativeSnapshot = 'no'?

    I just doubt. Can shapshots be deleted directly from the data store.

    No, snapshots work as a string. Deletion of one of the links in the chain breaks the chain. Please take a look at http://kb.vmware.com/kb/1015180 to see how snapshots work.

    I checked the Snapshot Manager, but was not able to locate snapshots in it, but at the same time there were three snapshots in particular virtual machine data store. What it means?

    Information about snapshots are kept in .vmsd the virtual machine folder. If this file is corrupt - for some reason-you won't see the correct string snapshot in the Snapshot Manager.

    Please create a list of all files in the folder of the virtual machine (dir *. * /oen > filelist.txt (for Windows) or ls-lisa > filelist.txt (for Linux)) and after (tie) the filelist.txt, file .vmx VM as well as the file .vmsd for your next post.

    André

  • get more records of 30 days from the date of the day

    I use MS SQL 2000 How can I recover the data that are older than 30 days from the date of the day? I put currendate "DateTime" field as data type and length is the '8 '.

    < cfset variables.getdate = DateAdd (would be ',-30, now()) >

    Select dataname
    of tabletest
    where currendate > = "variables.getdate."

    the sql stmt above does not work.

    Select dataname
    of tabletest
    where currendate<= #createodbcdate(dateadd("d",="" -30,="">

    You say that you want records which are more than 30 days from now, so that it must be less than or equal to the date
    But if you want the Chronogram of 30 days there are until now then it must be greater than or equal to

    Ken

  • SERVERERROR trigger fires from the user of the SYSTEM

    We use the Oracle 10 g on Linux platform. The following trigger is created for the mistakes of trace:
    CREATE OR REPLACE TRIGGER test.error_log
       AFTER SERVERERROR ON test.SCHEMA
    DECLARE
       v_errnum    NUMBER;
       v_counter   NUMBER := 1;
       v_errmsg    VARCHAR2(1000); -- stack counter
       v_errnumparam  NUMBER;
       v_errparam  VARCHAR2(1000);
    BEGIN
       LOOP
          -- get the error number off the stack
          v_errnum := server_error (v_counter);
    
          -- get the error number off the stack
          v_errmsg := server_error_msg (v_counter);
          -- if the error number is zero then exit.
          v_errnumparam := server_error_num_params(v_counter);
          v_errparam := server_error_param(v_counter, v_errnumparam);
    
          EXIT WHEN v_errnum = 0;
          -- commit is required because we are in an
          -- autonomous transaction
          INSERT INTO error_audit(SID, ORA_NUMBER, DESCRIPTION, STATUS, CREATED_BY_USER, CREATED_ON_DATE, MODIFIED_BY_USER, MODIFIED_ON_DATE)
               VALUES (sys_context('USERENV','SID'),v_errnum, TRANSLATE(v_errmsg||';'||v_errnumparam||';'||v_errparam, 'x'||CHR(10)||CHR(13), 'x'), 'Y', USER, SYSDATE, USER, SYSDATE);
    
          -- increment the counter and try again
          v_counter := v_counter + 1;
       END LOOP;
    END;
    The problem is that when to connect us from an outline of the TEST, the following select statement error logs in the audit table. However, the following statement executed from the user of the SYSTEM does not record the error. Can any body guide me to fix this error?
    ALTER SESSION SET CURRENT_SCHEMA = test;
    select * from error_audi
                  *
    ERROR at line 1:
    ORA-00942: table or view does not exist

    Why is it? Trigger when the current user is TESTING and not someone else. ALTER SYSTEM SET CURRENT_SCHEMA does not change the current user.

    SY.

  • automatic insertion of the date

    I have numbers (3.6.1) (2566)  I used to set up a cell to insert a DATE every day automatically, but I can't find much. Help

    Hi Nick,

    Today() will provide the current date. It will update every time the table is modified. If you want to insert today's date, and have even tomorrow, try the Insert menu:

    Quinn

  • Why the date of the INVOICE is different from the date of the ORDER?

    Something weird is happening... I get notifications of workflow of the Business Catalyst for invoices, but sometimes the date of the order is the eve of the invoice. Causing havoc on the side shipping because when I print the invoice, good delivery and export order files, they do not correspond to the top and sometimes customers are duds.

    No idea why the date of the invoice would be different from the order date and how do I do to make them the same?

    Thanks in advance!

    Hey there,

    An invoice is not an order. It's an important thing to know.

    An order is generated by a few ways but especially as soon as a product is added to a basket - this order exists and that date. An invoice is a purchase and comes from an order.

    You create an order in the admin and save it but add no invoice number. You can see that you have just made an order and you'll see the button to generate the invoice.

    API may make an order and no invoice, a person can add items to the basket and finish the next day if they have their session open that long... Many reasons why these dates may differ.

  • Error when displaying data from the data store

    Hello gurus,


    We are also facing the issue with driver when we try to view data from a data store links to Hyperion Essbase technology.
    ODI version is 11.1.1.6.
    Here is the error we receive:

    java.lang.IllegalArgumentException: Driver name cannot be empty
         at org.springframework.util.Assert.hasText(Assert.java:161)
         at com.sunopsis.sql.SnpsConnection.setDriverName(SnpsConnection.java:302)
         at com.sunopsis.dwg.dbobj.DwgConnectConnection.setDefaultConnectDefinition(DwgConnectConnection.java:380)
         at com.sunopsis.dwg.dbobj.DwgConnectConnection.<init>(DwgConnectConnection.java:274)
         at com.sunopsis.dwg.dbobj.DwgConnectConnection.<init>(DwgConnectConnection.java:288)
         at oracle.odi.core.datasource.dwgobject.support.DwgConnectConnectionCreatorImpl.createDwgConnectConnection(DwgConnectConnectionCreatorImpl.java:53)
         at com.sunopsis.graphical.frame.edit.EditFrameTableData.snpsInitializeSnpsComponentsSpecificRules(EditFrameTableData.java:85)
         at com.sunopsis.graphical.frame.SnpsEditFrame.snpsInitialize(SnpsEditFrame.java:1413)
         at com.sunopsis.graphical.frame.edit.AbstractEditFrameGridBorland.initialize(AbstractEditFrameGridBorland.java:623)
         at com.sunopsis.graphical.frame.edit.AbstractEditFrameGridBorland.<init>(AbstractEditFrameGridBorland.java:868)
         at com.sunopsis.graphical.frame.edit.EditFrameTableData.<init>(EditFrameTableData.java:50)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at oracle.odi.ui.editor.AbstractOdiEditor$1.run(AbstractOdiEditor.java:176)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    Is there a specific JAR file associated with Hyperion Essbase?
    and where do I find the default drivers provided with ODI?

    Help, please.

    Thank you
    Santy.

    You cannot view data from a store of essbase data as it is not configured with a driver that supports this feature

  • Help display information from the data store

    Hi, I'm trying to format a table with information from various commands, and I can't find out how to do it.

    Basically I want the table to have the following information:

    ESX host - DatastoreName - CanonicalName - CapacityMB - MultipathPolicy

    The problem is the get-scsilun cli annoys me only the canonical ability and multiple trips, but I want to add the other get-vmhost and get-datastore information

    The command I'm ussing is:

    Get-vmhost | Get-ScsiLun | WHERE-object {$_.} Seller - eq "EmC" - and $_. LunType - eq 'disc'} | Format-Table-property CanonicalName, CapacityMB, MultipathPolicy-auto | Out-String-width 120

    No idea how to do that?

    Thanks in advance!

    Pablo. -.

    Try something like this

    $report =@()
    
    foreach($esx in get-vmhost){
        foreach($lun in (Get-ScsiLun -VmHost $esx -LunType disk | where-object {$_.Vendor -eq "EMC"})){
            foreach($ds in (Get-Datastore -VMHost $esx)){
                $ds.ExtensionData.Info.Vmfs.Extent | %{
                    if($_.diskName -eq $lun.CanonicalName){
                        $row = "" | Select Host,DS,CanonicalName,CapacityMB,MultiPathPolicy
                        $row.Host = $esx.Name
                        $row.DS = $ds.Name
                        $row.CanonicalName = $lun.CanonicalName
                        $row.CapacityMB = $lun.CapacityMB
                        $row.MultiPathPolicy = $lun.MultipathPolicy
                        $report += $row                }
                }
            }
        }
    }
    
    $report | ft -AutoSize
    

    The link between the data store and the logic unit number is done by comparing canonicalname the LUN with each canonicalname of the extent of the disk of the data warehouses.

  • Recovery of a virtual computer from the data after removing inventory store

    Hello

    I am new to VMware, so I apologize if this is a stupid question.

    I am running ESXi 3.5.0 and to manage the server using Vsphere Client 4.0. I tried to move a virtual machine from a to another data store, and by playing, I decided to try 'remove inventory' on the virtual machine, I was trying to move. Given the files of all the VM are still in the data store, I thought that it should not be difficult to re - add to the inventory. However, I can't figure out how to do this. Any help would be appreciated.

    In the second part of the question, why past a VM to a local data store on the server to another local data store on the same server seem to be so difficult as well? I think that I finally understand how using the VMware Vcenter Converter Standalone to clone the virtual machine for the 2nd data store, and then I guess I'll remove the original after the clone is done? This is the right way to do it, or there at - it an easier way?

    It seems to me all these things are basic operations that should be fairly straightforward to achieve, because it is expected to just move the files from one disk to another, but they are revealed to be a real pain in the butt. Am I missing something?

    Thanks in advance!

    1. In the Client, select your ESX Server host computer.

    2. Click the summary tab.

    3. Look for the icon of the data store, inside the resources box.

    4. Right-click on the data store, and then select Browse the data store.

    5. Browse the directory for your virtual machine structure.

    6. When you find the folder where your VMis, locate the file with a .vmx extension.

    7. Right click on this file and select Add to the inventory.

    Rick Blythe

    Social media specialist

    VMware Inc.

    http://Twitter.com/vmwarecares

    http://Twitter.com/vmwarekb

  • Cannot turn off the field from the date of entry into application workflow

    Hello

    We implement the workflow application in OIM11g.

    We use application templates to achieve this.

    We want to disable or remove the field from the effective date in the rationale page that appears when we raise a request. Did one of you has implemented or came across this scenario. Please update if you have an idea about that.

    Thank you

    The property system will remove the entire page of the process, including the justification box.

    -Kevin

  • How can I apply the automatic spelling correction for selected fields from the data entered by the users of forms?

    I would like to be able to apply the spelling correction of selected fields in the forms I created using LiveCycle Designer 8.2 at runtime, as opposed at design time.  I understand that version 8 LCD has a spelling corrector new OWL for form designers.  But I want to say check the data entered by users using Acrobat Reader.  And I want to apply the spelling correction automatically on only selected fields.

    Currently it seems that fill out my forms, users must know how manually right-click on each field, and then select "Spell Check" from the dialog box to check spelling mistakes in the data that the user entered into the form.

    I would like to discover a way to apply the correction spelling in certain areas, as well as I am able to do in forms created using Acrobat Pro.  Acrobat Pro, I can set a property for each field to require the spell check.  but this feature seems to be missing in Livecycle Designer.

    I have check the object model for XFA forms hoping I could find a method I can call a JavaScript file, check the spelling based on an event such as onBlur.  But I have not found a method of spelling.

    Am I missing something simple?  Is there a way to define each field out controls when a user is filling out the form using the free software Acrobat Reader?

    Our users are not sophisticated and forcing spell check each field separately just doesn't cut it...

    Any help on this will be greatly appreciated.

    Thank you!

    -David Bartholomew

    Hi David,

    Two things...

    At design time has set the locale of the form to that coming out Acrobat checks. For example the locale English (United States) and English (United Kingdom) have Spellers; However the English (Ireland) does not work. Check the warnings tab to see if the spell checking is supported for your locale.

    If your locale form supports spell checking, so you can go to the script of the button below.

    If you form local does NOT support spell checking, Stephanie has a great work-around to force spell (http://forums.adobe.com/message/2233945#2233945).

    Put a normal button on the form and in the click event must have the following:

    app.execMenuItem ("spelling: spell check");

    Which will open the checker spelling for all fields.  Thanks to Paul for extract all elements of menu available (http://forums.adobe.com/message/1912914#1912914).

    Good luck

    Niall

  • Delete zero of the rows from the data source target

    Hi all

    We have an ODI interface that loads data directly on a DB2/400 data source into an Essbase cube. The routine uses a SQL Server staging area. We are summarizing the source data and transforming before members of the load in Essbase. It is version 10.1.3.5.5 ODI.

    We would like to remove the zero lines created after the sum. Is it possible to do so within the same interface? We understood that we could accomplish this by dividing the interface into 2 parts: 1) load the source data in the staging area and 2) load data from the staging area into the target. We wonder if we can take advantage of the existing interface and somehow add a filter to the target data source.

    Thanks for your help,
    O

    "I pull out the filter on a column in the data source and then put the content of the declarations AMOUNT and CASE in there?"-Yes. Deepak may be just fine. Is it JDE G/L, a/c balance treatment?

  • Loading of the keys from the data store

    Hello

    I have a near cache, supported by a cache partitioned using a dumps. When I call cache.keySet (), I get only the keys that are currently in the partitioned cache. Not those who have been expelled for dumps. Right?

    If I would also like to receive those, can I retrieve it from the database separately? Or is there another way?

    Best regards
    Jan

    user10601659 wrote:
    Hello

    I have a near cache, supported by a cache partitioned using a dumps. When I call cache.keySet (), I get only the keys that are currently in the partitioned cache. Not those who have been expelled for dumps. Right?

    Fix. The cache does not remember anything on the expelled entries, they are as if they have never been.

    user10601659 wrote:
    If I would also like to receive those, can I retrieve it from the database separately?

    If you know these keys, you can simply ask that them and load the cache-store them. If you do not know the key, then you must go to the database to find out them and either put the data in the cache of your own (and do it in a way that the cache-store won't write their), or you must apply entries with the now well-known keys.

    user10601659 wrote:
    Or is there another way?

    Best regards
    Jan

    You can write a cache store hides another which takes query parameters including a key cache, and on obtaining a value, it returns the result of the query according to the query parameters as a value cached. You should be aware, however, that this cache will contain deep stale data, then you probably want to configure this cache of very rapid expulsion.

    Best regards

    Robert

  • How to transfer data from the data in table 2D only once file?

    Attached file will write same data in table 4 times 2D file. Output must be in a table 2D.

    Someone will provide a solution or a reason to explain why the data are been ouputted 3 more times? Thank you

    I already told you a better and more effective method. The function of reading worksheet is on the exact same range as your text file and does everything for you. If you insist for some reason strange kernel to reinvent the wheel and write your own code, take the correct path. The use of 4 separate spreadsheet String to Array is the cause of your problem and I already said too much. Don't you think that get you 4 times the data is in correlation with the fact you are using 4 times the functions necessary at all? It is simply not true. Look at the diagram-writing block on a spreadsheet file.

Maybe you are looking for