Query re-write in Desktop and Plus

Under Discoverer Desktop, I am getting very good performance for a particular workbook -- Oracle automatically re-writes the query to go after materialized view, rather than after an original huge table.
But, when I run the exact the same workbook under Discoverer Plus, the query re-write does not happen, and the execution plan is totally different.
When I extract the query from the workbook and run it directly against database via SQL*Plus, the query re-write does happen and performance is excellent.
I am using:
OracleBI Discoverer 10g (9.0.4.00.00)
Oracle Business Intelligence Discoverer Plus 10g (10.1.2.48.18)
Discoverer Model - 10.1.2.48.18
Discoverer Server - 10.1.2.48.18
End User Layer - 5.1.1.0.0.0
End User Layer Library - 10.1.2.48.18
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
Are there any Discoverer’s settings that can prevent query re-write under Discoverer Plus?
Thanks.

Do you think this might be related to OracleAS?
This is my current hypothesis, I don't see any other explaination at the moment.
"Discoverer uses its own rewrite system when any of the following is true:
1. The database version is less than 8.1.6
2. The database version is later than 8.1.6 and it is not possible for
Discoverer to create Materialized Views.
The point #2 is applicable to my case.
Marcos, could you please point me to the source of this quotation?
My query is below:
SQL> explain plan for
  2  SELECT O100096.LOCAL_DAY,
  3         O100088.NETWORK_ABBREVIATION,
  4         MAX(O102377.IMPRESSIONS_LIVE)
  5  FROM DOMRSCH.DW_NETWORK           O100088,
  6       DOMRSCH.DW_TIME              O100096,
  7       DOMRSCH.TELECAST_DEMO_RATING O102377
  8  WHERE ((O100096.TIME_KEY = O102377.TIME_KEY) AND
  9        (O100088.NETWORK_KEY = O102377.NETWORK_KEY)) AND
10        (O100096.LOCAL_DAY IN (TO_DATE('20060515000000', 'YYYYMMDDHH24MISS'),
11         TO_DATE('20060516000000', 'YYYYMMDDHH24MISS'),
12         TO_DATE('20060522000000', 'YYYYMMDDHH24MISS')))
13  GROUP BY O100096.LOCAL_DAY,
14           O100088.NETWORK_ABBREVIATION
15  ORDER BY MAX(O102377.IMPRESSIONS_LIVE) DESC;
Explained.
SQL>
SQL> select * from table(dbms_xplan.display);
Plan hash value: 2592166193
| Id  | Operation                     | Name                    | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT              |                         |    23 |   414 |     8  (13)| 00:00:01 |
|   1 |  SORT ORDER BY                |                         |    23 |   414 |     8  (13)| 00:00:01 |
|*  2 |   MAT_VIEW REWRITE ACCESS FULL| TELECAST_DEMO_RATING_MW |    23 |   414 |     7   (0)| 00:00

Similar Messages

  • Privilege "Desktop and Plus" also impacting Viewer access

    I'm trying to limit certain users to using Discoverer Viewer and not Plus. The "Desktop and Plus" privilege looked perfect for this, but when that privilege is removed from a user, they also can't get into Viewer, getting: - Insufficient privilege for attempted operation - Desktop and Plus.
    Is the Desktop and Plus privilege not working correctly or am I missing something?
    Using latest Discoverer 10g (10.1.2.3 with CP3)
    Thanks for any suggestions anyone may have.
    Mitch Lovell
    (my first post, so be nice!)

    Hi,
    The privileges in Discoverer Admin control what you can do with Discoverer not what tools that you can use. So to be able to run any reports you need Desktop and Plus privlege. Then you will have to both Desktop/Plus and Viewer, but you will only be able to run Desktop/Plus in read-only mode, so won't be able to save/create any workbooks.
    There is no way in Disco Admin to stop uses accessing Plus because Discoverer cannot know that the user should only use Viewer until the user has connected to the database and by this time the user is already using the Plus. Any mechanism to prevent the users connecting with Plus has to come from the infrastructure by disabling the Plus URL.
    Rod West

  • Discoverer Desktop and Discoverer Plus Data

    Hi Everyone
    I have a report when I run in Desktop I can see the data, but when I run in Plus I cannot see any data.
    Any ideas what might cause this problem to occur?
    Discoverer version is 10.1.2.3

    Hi,
    If your report was developed in Desktop then it should work fine in Plus. Although Plus does not support subqueries I doubt that is the problem. As Gareth said it is most likely it is a NLS language problem. Create a workbook which contains the userenv('LANG') to check that it returns US in both desktop and plus.
    If the NLS language is not the problem then post details of your custom query as there are differences between Plus and Desktop which could cause this problem.
    Rod West

  • Les retours chariots ne sont pas pris en compte dans viewer, alors qu'ils le sont dans desktop et Plus.

    Tout est dans le titre.
    J'ai trouvé une discussion dans laquelle le problème était relevé, mais il n'y a aucune réponse.

    Sorry,
    it could be better in English.
    One field in a worksheet contains carriage returns.
    It works fine in Desktop and Plus but seems not to be supported in Viewer.

  • Is it possible to write a combined add-on for Firefox (desktop) and Firefox (Android and iPhone)?

    Dear Mozilla-Support-Team,
    I am thinking about a new webservice based on an add-on for Mozilla (and other Internet Browsers).
    In general, is it possible to write a combined add-on for Firefox (desktop) and Firefox (Android and iPhone)? Or do both Mozilla-worlds (desktop / mobile) differ and therefore require to write seperate add-ons (just Desktopn AND mobile or Desktop AND Android AND iPhone).
    Thank you very much for your help!

    It can be the same extension though you will likely need to write different code for FxAndroid and Fx Desktop.
    https://addons.mozilla.org/en-US/developers/docs/getting-started
    https://developer.mozilla.org/en-US/Add-ons/Firefox_for_Android
    https://developer.mozilla.org/en-US/Add-ons/SDK
    In the future you should ask questions on on of the developer lists. https://groups.google.com/forum/#!forum/mozilla-labs-jetpack

  • MV Query RE-write and Interactive reports

    did any you of try queries that do a query re-write on your MVs in Interactive reports in apex 3.1?
    bharat

    Do you think this might be related to OracleAS?
    This is my current hypothesis, I don't see any other explaination at the moment.
    "Discoverer uses its own rewrite system when any of the following is true:
    1. The database version is less than 8.1.6
    2. The database version is later than 8.1.6 and it is not possible for
    Discoverer to create Materialized Views.
    The point #2 is applicable to my case.
    Marcos, could you please point me to the source of this quotation?
    My query is below:
    SQL> explain plan for
      2  SELECT O100096.LOCAL_DAY,
      3         O100088.NETWORK_ABBREVIATION,
      4         MAX(O102377.IMPRESSIONS_LIVE)
      5  FROM DOMRSCH.DW_NETWORK           O100088,
      6       DOMRSCH.DW_TIME              O100096,
      7       DOMRSCH.TELECAST_DEMO_RATING O102377
      8  WHERE ((O100096.TIME_KEY = O102377.TIME_KEY) AND
      9        (O100088.NETWORK_KEY = O102377.NETWORK_KEY)) AND
    10        (O100096.LOCAL_DAY IN (TO_DATE('20060515000000', 'YYYYMMDDHH24MISS'),
    11         TO_DATE('20060516000000', 'YYYYMMDDHH24MISS'),
    12         TO_DATE('20060522000000', 'YYYYMMDDHH24MISS')))
    13  GROUP BY O100096.LOCAL_DAY,
    14           O100088.NETWORK_ABBREVIATION
    15  ORDER BY MAX(O102377.IMPRESSIONS_LIVE) DESC;
    Explained.
    SQL>
    SQL> select * from table(dbms_xplan.display);
    Plan hash value: 2592166193
    | Id  | Operation                     | Name                    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT              |                         |    23 |   414 |     8  (13)| 00:00:01 |
    |   1 |  SORT ORDER BY                |                         |    23 |   414 |     8  (13)| 00:00:01 |
    |*  2 |   MAT_VIEW REWRITE ACCESS FULL| TELECAST_DEMO_RATING_MW |    23 |   414 |     7   (0)| 00:00

  • Windows 7 desktop and windows 8 desktop connected to router

    I have a windows 7 64 bit desktop and a 7510 e photosmart printer connected wireless, though the desktop is wired, I purchased a windows 8 desktop and connected it to my router and set up my email account and it did pick up my printer and could print but not scan or EFax, now I get a 1625 message and cannot print from it.
    I tried to download the print and scan wizard from HP web site but my PC froze up.
    Do i have to run the disc or set up a home group, not bothered about being able to E Fax or scan to email with it, just need it to print as it did before.
    Also on my windows 7 I can log into HP connected and my printer shows up ok, when I press the icon on the printer for Eprint it shows my HP email address but when I press the Fax icon it says NOT CONNECTED TO ANY NETWORK. Cloud services set up a static IP address for me last year as each time we had a power outage I lost my connection to my printer. If anyone can help I would appreciate it.
    This question was solved.
    View Solution.

    Emma22, welcome to the forum.
    Here is the Win 8 driver for the printer.  Installing them should correct your problem.
    Please click the "Thumbs up + button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • Script for Outlook 2007 to move attachments to desktop and rename attachments.

    My apologies if this is in the wrong "Discussion area" if so, please let me
    know where it needs to go and I will repost it.
    Also, Please forgive me as I am NOT a scripter... I do not know coding, but am finding
    myself in need of a script... I can copy and paste, and know enough to make adjustments
    to wording as necessary, but lack the knowledge of how to write my own code.  Please help me.
    I currently recieve about 50 emails DAILY with attachments in each of them 
    within outlook on my network.  I need a script that will copy the
    attachments from the emails, and then paste them into a special folder
    on my desktop.  I would like to have the script also rename the attachments
    to a date based upon when the email was received. (ex: 18OCTOBER)
    To be more specific, this is what I am trying to accomplish:
    There are 2  folders on my desktop called "TRUCKS" and "CARS". 
    Within each of those Folders are other folders named "2011", "2012", "2013", and "2014".
    I receive about 20-25 emails daily going to a folder called "INCOMING TRUCKS" in 
    Outlook. The email always contains an attachment called "AD Form.pdf".
    I need to copy this "AD Form.pdf" from my Outlook email and have the
    attachment placed in the 2014 Folder of the TRUCKS folder on my desktop,
    (and come next year, go to the 2015 folder...that I will create later)
    Then I would like to script to Rename the "AD Form.pdf" attachment to 
    "18 OCTOBER.pdf" (The date I received the email)...
    AND 
    I also receive about 25-30 emails daily going to my "INCOMING CARS" folder from my 
    Outlook account. The emails contain attachments called "AD Form.pdf".
    I need to copy this "AD Form.pdf" attachment from my Outlook email and have the
    attachment placed in the 2014 Folder of the CARS folder on my desktop,
    (and come next year, go to the 2015 folder...that I will create later)
    Then I would like to script to Rename the "AD Form.pdf" attachment to 
    "18 OCTOBER.pdf" (The date I received the email)...
    I would need this script to go through all of the emails within
    the INCOMING TRUCKS and INCOMING CARS folder and once complete,
    give an "alert" type of message saying "Process complete!" for me 
    to click on an "OK" button.
    I do hope that I explained this well enough to be understood.
    Is there a script out there that already does this? 
    If so, please point me to it, as I have not been able to find it through 
    Google, or any other sites I have looked into (Been looking for over 3 
    weeks now).
    If not, I am wondering if this can even be done by scripts?
    Right now I am manually doing all of this work, and it takes about 
    20 minutes of my time away from handling other items that need my 
    attention.  I am hoping a script can do this for me in less than 20 seconds.
    I understand if for a script to work, I have to be there and open programs or folders to
    make it work.  If Anyone can assist, it would be greatly appreciated.
    My Specifics, if needed...I have a Windows XP-SP3 Desktop PC, and I use Office 2007.  This is NETWORK computer at work. The IT guy "doesn't get paid to write scripts."  :(
    Email me direct to: [email protected] 
    Thanks again for any assistance.  
      

    I am wondering if this can even be done by scripts?
    Right now I am manually doing all of this work, and it takes about 
    20 minutes of my time away from handling other items that need my 
    attention.  I am hoping a script can do this for me in less than 20 seconds.
    Yes, this can be done with scripts, e.g. with VBScript. Script execution time should be between one and two wooshes. To save you 20 minutes each day someone will need to invest perhaps half a day to write the script, debug it, fine-tune it and document it.
    As Bill Stewart suggests, this is far beyond giving you some hints. You will need to pay a consultant to create this time-saver for you.

  • I have an Ipad2, an Iphone 4 . I want to be able to sync both of these with my Windows desktop and Outlook 2007. I would like to sync to and from the Idevices and Outlook.

    I have an Ipad2, an Iphone 4 . I want to be able to sync both of these with my Windows desktop and Outlook 2007. I would like to sync to and from the Idevices and Outlook. When I attempt to sync in itunes I get a popup message asking if I want to delete, Merge or cancel. Not wanting to delete of cancel the only option left is Merge.
                When selecting Merge all of the entries in outlook are added to the idevice. The next time I merge all of the same entries plus any new ones are added, resulting in older entries being repeated i.e an entry like “John’s Birthday” will appear 5 or 6 times on the same date.
                How do I resolve this issue? How do I get the the sync process to add only new entries?

    This is a great question. First, facetime will not work because it has to establish a Call connection first. iMessage should work, but how to get it going I am not sure. Two great Apps to try are, Viber and Skype. Viber is excellent, it works over WiFi, you can make free calls and free text messages all over the world with other users who have Viber installed. It does not even have to be open on screen to work. Viber does have to recieve one text message with activation code, to activate it, this will be your only hurdle, but maybe Verizon can help you get that one text message. Skype does have to be open on screen however, but this can function like Facetime with WiFi connection. Definitely get Viber free in App Store, and put it on all your iDevices so the old Verizon iPhone can function as a telephone when on WiFi.

  • How do i see my desktop and applications after a time machine restore?

    What a disaster.   For reasons I won't bore anyone with, I had to end up reformatting my iMac hard drive (internal drive, I7) to get my machine working again.  I have had a daily backup going (thank goodness) with my Drobo NAS drive using Time Machine.  Yes, I know Apple doesn't technically support network drives with Time Machine, but anyone with a Drobo (and Data Robotics) will tell you it works great.   That's NOT the issue.
    I flattened (reformatted) my machine and reinstalled Snow Leopard.  I then connected to my Drobo drive with Time Machine, and searched the most recent backups and had it restore THE ENTIRE MACHINE.  All applications, all documents, etc.  Took about 14 hours.
    I also created the same account (I think!) that I used before when I installed Snow Leopard.    However, when I reboot, my desktop looks like a fresh Snow Leopard desktop, and none of my applications or documents show anywhere.  Yet, I am sure they are there, because when I went to later restore one file (Photoshop CS5), it said "this file already exists, do you want to copy over it?"  I chose not to.
    I feel like it must be some permissions or account thing, but for the life of me, i can't figure out where I went wrong.   It would be a HUGE inconvenience for me to truck this huge machine (and my network backup drive) into an Apple store to talk to one of their experts, so I'm hoping I can get this resolved here with your help.
    Basically, I'm stumped.  Anyone got any ideas?
    thanks
    dc

    From your description, it sounds like you may have more serious issues than a simple permissions problemand that you are now dealing with a dysfunctional "Frankensystem." Nevertheless, it is usually worthwhile trying something relatively fast and simple before going on to more complicated solutions.
    You have not indicated what remedies you may have already tried outside of the setup Assistant Tip, so I am assuming you have not yet tried anything.
    I have never faced this precise problem before, but in other situations involving permissions issues, I have often had success doing the following:
    1) Do a "Get Info" on the folder(s) with which you are experiencing issues. In your case, this is pretty well your entire restored drive, since the Applications folder exists at the root level. So go ahead and do a "Get Info" on your internal hard drive.
    2) Click on the padlock icon in the lower right corner of the GI window and enter your admin password when prompted.
    3) At the bottom of the window in the Sharing and Permissions section, ensure that your disk is set up this way:
    system=Read & Write
    admin=Read & Write
    everyone=Read only
    4) Click on the gear icon and choose "Apply to enclosed items" from the pull-down menu. Allow this to work through, which in the case of a whole drive may take some time.
    5) Reboot the machine and log back into your home account. Hopefully, you can now see and access all the files that should be there.
    If this doesn't work, your problem may lie in the fact that upon your reinstall of Snow Leopard, you created a home folder with the same name as the one you are trying to restore from your backup, thereby creating a big headache. You might have to repeat the entire reinstall/restore process, but this time creating an account with an entirely different name when you install Snow Leopard, and then deleting it after the restore from backup.
    OR
    If the total amount of data contained on your Drobo Time Machine backup is not yet prohibitively huge, I would suggest that the easiest and most foolproof solution might be to use a program such as SuperDuper or Carbon Copy Cloner to clone the drive to a partition on a storage device of sufficient size directly attached to your iMac. You could then reformat your internal drive and repeat the complete restore process from the Snow Leopard install disk which should then yield normal results, i.e. a fully functional home account in which everything works as usual upon login.
    This will eat up considerable time, but most significantly, it is machine time, not your time!
    In my experience, the entire Time Machine process is a finely tuned one that does not take kindly to tinkering under the hood or straying from the blessed path, as you have just discovered.

  • Only Remote-Desktop and Replication with 0.0 Reduction

    Hi guys,
    I have a solution with 16 WAAS 4.4.3 and I got good numbers in all default applications except Remote-Desktop and Replication
    ( All Traffic 53% of Reduction).
    I can understand not otimize Remote-Desktop Applications cause the customer is using Metaframe with crypto and already compacted and
    using too RDP with crypto/compacted.
    But in the Replication I would expect some gain in Active Directory and MS-FRS Replication.
    I got 0.0, Actually, the optmized traffic is biggest that the Original Traffic.
    I have to modify something in the Microsoft servers to be able to got reduction in Replication Application ??
    I'm using all the Default Classifiers in Replication Application
    Double-Take                            LZ+TFO+DRE       1100, 1105
    EMC-Celerra-Replicator            LZ+TFO+DRE       8888
    MS-AD-Replication1                 LZ+TFO+DRE       UUID:e3514235-4b06-11d1-ab04-00c04fc2dcd2
    ms-content-repl-srv                   TFO                     507, 560
    MS-FRS1                                LZ+TFO+DRE       UUID:f5cc59b4-4264-101a-8c59-08002b2f8426
    netapp-snapmirror                    LZ+TFO+DRE       10565-10569
    pcsync-http                             LZ+TFO+DRE       8444
    pcsync-https                           TFO                      8443
    rrac                                        TFO                      5678
    Rsync                                     LZ+TFO+DRE       873
    Thanks a Lot
    My Best Regards,
    Andre Lomonaco

    As you said, you need to only send the changes over the line.
    Java can not tell you what has changed, so you need to either write some JNI, or do a check on the current image, with the last image. (this would eat quite a bit of CPU time on the server).
    It might be worth looking at the source for VNC, and other simler products.
    The simpliest solution would be to split the image into blocks of x by y pixels, then do a pixel-by-pixel check on that block, and only send the block if it has changed.
    Next thing to think about is scrapping RMI, and using raw sockets. RMI has a fair sized overhead.
    Zipping a JPEG is unlikely to have any effect. A JPEG is already compressed.
    You might want to look at a lossless compression format, like PNG, as the JPEG will have articles. This might be acceptable. If so, changing the compression ratio of the JPEG might be an option.
    Finally, the bottle neck might be the call to Robot.createScreenCapture. This is not the fastest method.

  • My iMac desktop and McBook Air laptop run on Mavericks, but desktop has VMWare Fusion and runs Windows 7 too.  Can I transfer this capability to my McBook Air?

    My iMac desktop and McBook Air laptop run on Mavericks.  The laptop also runs Windows 7 via VM Ware Fusion.  Can I transfer this capability to my McBook Air, so I can run the same plus the Windows programs on my laptop?

    Thanks Kappy, but I should add that my desktop runs VMWare Fusion and Windows 7.  My laptop and desktop basic operating systems are Mavericks.  When I travel, I take my laptop with me.  My desktop runs a Windows investment program I like, and I'd like to be able to use this program in my laptop when I'm on the road.  VM Ware said I could do this, but would have to make and then transfer a "file" of the programs in question. How would this be done, since it would involve 3 files:  Fusion, Windows 7 and the investment program?  Maybe Apple should do this at the genius bar?  Appreciate any comments...Thanks again, Patrick

  • I have a PC desktop and an iPad.  I have a large library of PDF documents on my desktop that I would like to sync with my iPad.  I would like to be able to download new PDF's and make edits on existing PDF's on either device and have those edits and new P

    I have a PC desktop and an iPad.  I have a large library of PDF documents on my desktop that I would like to sync with my iPad.  I would like to be able to download new PDF's and make edits on existing PDF's on either device and have those edits and new PDFs synced to the other device.  I would also like to have my library available on the iPad even if there isn't a wifi connection (i.e., not on the cloud).  Is that possible.  I don't mind if I have to purchase a separate product or a product upgrade ect.

    You can't use an external hard drive like you would with a computer.
    You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    When you first connect the USB flash drive, you will only see thumbnails of the pics on the iPad; you have to import the pic file to see the full size. With your large library of pics, you will have to do this repeateably and then delete pics so you don't exceed your memory capacity.
     Cheers, Tom

  • Query based on main table and audit table

    Hi,
    I had created auditing on some table. Values might not change and if they changed, it should be stored in audit table.
    I want to get the values in the table a on real time basis, like dimentions in datawarehouse.
    Trying to write a query based on table a and aud_a to get point-in-time or values at anytime in the past.
    Something like
    SELECT *
    FROM a (table_name)
    WHERE effective_from >= $DATE_TO_QUERY
    AND effective_to < $DATE_TO_QUERY
    How to get this kind of query .
    Please help. ( Table structure for table a and audit table aud_a and trigger aud_tg_a given below)
    Giving code as follows.
    main table a
    create table a
    ( val1 number,
    val2 number,
    update_by varchar2(30),
    date_updated date);
    creare auidt table aud_a
    create table aud_a
    ( "AUDIT_SEQ" NUMBER,
    "AUDIT_TRAN_ID" NUMBER,
    "AUDIT_PROG_ID" VARCHAR2(30 BYTE),
    "AUDIT_TERMINAL" VARCHAR2(16 BYTE),
    "AUDIT_REASON" VARCHAR2(30 BYTE),
    "AUDIT_ACTION" CHAR(1 BYTE),
    "AUDIT_ACTION_BY" VARCHAR2(20 BYTE),
    "AUDIT_ACTION_DT" DATE,
    val1 number,
    val2 number,
    updated_by varchar2(30),
    date_updated date);
    trigger on  table a to populate aud_a
    CREATE OR REPLACE TRIGGER aud_tg_a AFTER
    INSERT OR
    DELETE OR
    update on a
    for each row
    declare
    v_time_now DATE;
    v_terminal VARCHAR2(16);
    v_tran_id NUMBER;
    v_prog_id VARCHAR2(30);
    V_reason VARCHAR2(30);
    BEGIN
    v_time_now := sysdate;
    v_terminal := userenv('TERMINAL');
    v_tran_id := 1;
    v_prog_id := 'test';
    v_reason := 'AUDIT';
    IF inserting THEN
    INSERT
    INTO a
    audit_seq,
    AUDIT_tran_id,
    AUDIT_prog_id,
    AUDIT_reason,
    AUDIT_terminal,
    AUDIT_action_by,
    AUDIT_action_dt,
    AUDIT_action ,
    val1,
    val2,
    updated_by,
    date_updated
    VALUES
    s_audit_no.nextval,
    v_tran_id,
    v_prog_id,
    v_reason,
    v_terminal,
    USER,
    v_time_now,
    'I' ,
    :new.val1,
    :new.val2,
    :new.updated_by,
    :new.date_updated
    elsif deleting THEN
    INSERT
    INTO a
    audit_seq,
    AUDIT_tran_id,
    AUDIT_prog_id,
    AUDIT_reason,
    AUDIT_terminal,
    AUDIT_action_by,
    AUDIT_action_dt,
    AUDIT_action ,
    us_agy_backed_id,
    industry_subgroup,
    comments,
    updated_by,
    date_updated
    VALUES
    s_audit_no.nextval,
    v_tran_id,
    v_prog_id,
    v_reason,
    v_terminal,
    USER,
    v_time_now,
    'D' ,
    :old.val1,
    :old.val2,
    :old.comments,
    :old.updated_by,
    :old.date_updated
    elsif updating THEN
    INSERT
    INTO a
    audit_seq,
    AUDIT_tran_id,
    AUDIT_prog_id,
    AUDIT_reason,
    AUDIT_terminal,
    AUDIT_action_by,
    AUDIT_action_dt,
    AUDIT_action ,
    us_agy_backed_id,
    industry_subgroup,
    comments,
    updated_by,
    date_updated
    VALUES
    s_audit_no.nextval,
    v_tran_id,
    v_prog_id,
    v_reason,
    v_terminal,
    USER,
    v_time_now,
    'U' ,
    :new.val1,
    :new.val2,
    :new.updated_by,
    :new.date_updated
    END IF;
    END;
    -------------------------

    Hi hoek,
    I am not able to use Oracle's audit functionality becuase I need to trap some changes in particular tables and then rebuild query if required.
    Thanks for your suggestion though.
    Regards,
    Milind

  • HOW TO WRITE A DESKTOP APPLICATION IN JAVA

    Hi guys
    I am new to JAVA.Doing my garduation.
    I want to write a desktop application in java, not browser based applet based.
    I am stuck at some points
    1)like how can i make the application run like the same way we run an .exe file
    2)about the database connection
    "For example, what are the issues in running a
    Java application from a local C: drive on an Intel PC
    that needs to access a local database or Excel file? "
    Please guide me
    Thanks
    Tinu Joseph

    Hi guys
    I am new to JAVA.Doing my garduation.
    I want to write a desktop application in java, not
    browser based applet based.
    I am stuck at some pointsLike how to write Java properly at all?
    1)like how can i make the application run like the
    same way we run an .exe fileWrite a .bat or .cmd file and have it start your Java app. Or Google for tools to create .exe for you.
    2)about the database connection
    "For example, what are the issues in running a
    Java application from a local C: drive on an Intel PC
    that needs to access a local database or Excel file?
    "Better learn JDBC. Google for "JDBC tutorial".
    %

Maybe you are looking for

  • Problem using the e-mail button in Acrobat Pro 7.1.0 with Outlook 2013

    I just switched my e-mail application from Mozilla Thunderbird to Outlook 2013. I have always been able to click the e-mail button in Acrobat 7.1.0 to open a blank e-mail message with the PDF file attached. I keep getting an error now that I have Out

  • Can't install iTunes on my computer?

    Hi All, I know this is a very frequently asked question but let me just fill you in. I went to sync my iPad and iPhone 6 with iTunes on my computer (I had downloaded and installed the very latest version). I had the same problem as others where my de

  • 2 BW to one ECC6

    Gurus, Can we have 2 BW system connect to the same ECC6? If yes, how can we ensure that the same data (full load + Delta) will be send into two different BW system? Please advise, thank you.

  • Always when I downloading apps, they are in Russia language. I want them in English.

    ?

  • Print Jobs send with no error

    I have an HP 3600n Laser Jet Color printer hooked up to our network. All of the PCs that use the printer are Windows 7. I've seen other posts reporting tons of issues with said printer on Windows 7. However, we've been able to use it previously so I