Downloading a file via a procedure works in one app but not another

Obviously I've overlooked something. I have this procedure (following). It works in one application that has been running for a couple years. It is called from Column Link with this value #OWNER#.DOWNLOAD_ATTACHED_FILES?p_file=#DOWNLOAD_LINK#
I'm now making a new application and want the same facility but this same procedure gives me a page not found error even though the error page URL looks like: .../apex/GMCTRL.DOWNLOAD_ATTACHED_FILES?p_file=42 which seems to me that it should work correctly. (the row with the value 42 does exist in the DB)
Is there a setting/flag/thing that I have to set to make this work in my new application that I've overlooked? (both are APEX 3.1.1 and oracle 11g)
create or replace PROCEDURE "DOWNLOAD_ATTACHED_FILES" (p_file in number) AS
v_mime VARCHAR2(48);
v_length NUMBER;
v_file_name VARCHAR2(2000);
Lob_loc BLOB;
BEGIN
SELECT MIME_TYPE, RPT_DOCUMENT_BLOB_IMG, RPT_DOCUMENT_FILE_NAME_TX, DBMS_LOB.GETLENGTH(RPT_DOCUMENT_BLOB_IMG)
INTO v_mime, lob_loc,v_file_name,v_length
FROM RPT_DOCUMENT_BLOB
WHERE RPT_DOCUMENT_BLOB_ID = p_file;
owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
htp.p('Content-length: ' || v_length);
htp.p('Content-Disposition: attachment; filename="'||substr(v_file_name,instr(v_file_name,'/')+1)|| '"');
owa_util.http_header_close;
wpg_docload.download_file( Lob_loc );
end download_attached_files;

Hello:
Ensure that
GMCTRL.DOWNLOAD_ATTACHED_FILES is executable by oracle account used by APEX to connect to the database (apex_public_user or anonymous)
GMCTRL.DOWNLOAD_ATTACHED_FILES is included into 'WWV_FLOW_EPG_INCLUDE_MOD_LOCAL' as an authorized procedure. See Re: link can't find a stored procedure
Varad

Similar Messages

  • Home sharing works with one account but not another?

    My family has an apple tv, we've been having problems setting up the home sharing and tried everything. We eventually decided to try my brother's apple id instead of my mother's and it worked. So my question is; why does home sharing not work with one id but works with the other? any suggestions to get it to work with my mother's id?

    Try resetting the Apple TV. enter your mother's ID again. Then remove her ID on iTunes and re-add it. Then see if it works this time.

  • Why does iPhoto 8.1.2 work on one iMac but not another when both are the same spec both running Mavericks 10.9.1?

    I have a studio of 7 iMacs all running Mavericks 10.9.1, six of the machines are able to open iPhoto 8.2.1 but for some reason after updating the seventh, iPhoto vanished completely from that machine. I reinstalled it from a copy I had saved on a HDD but it now says it's unsupported with this version of OSX. I don't want to pay the £10 + for a piece of software that is only being used to import photos from the occasional iPhone so wont be installing the new version, especially as I know 8.2.1 does work on Mavericks.
    Any suggestions?
    Many thanks

    Reinstall v8 from the install disk as, at a guess, the version of the HDD is missing components.
    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2. Download it from the App Store to reinstall It's on your Purchases List* there.
    For older versions that have been installed from Disk you'll need these additional steps:
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 or later they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    *Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.

  • Servlet Working in one context but not another

    I'm not a sys admin, so I'm hoping this is an easy question and I'm just missing something. I have a web site with several contexts that share most of the same code. One of the contexts has the real files in it, and all the others have symbolic links to the files. This has always worked fine. The application uses .jsps and java objects, but to date no servlets were used.
    We just added our first servlet, which is used to download binary file information created by a jsp and passed to it. This works fine in the context that has the real files in it, but we get a 404 error in the other contexts. All the contexts link to the primary web.xml file from the default (working) context. We also tried copying the web.xml file to each context rather than linking it, but that didn't help.
    If anyone has a suggestion, I'd appreciate it. Thanks in advance for your time,
    Richard

    sorry all...figured it out...had a BIN$ trigger on the site_main that I had removed on the 10g R1 dev database after I had already created the dump file for the 10g R2 upgrade test db....removed this and everything works fine. This trigger was causing the site id to be re-populated from the sequence, thus not matching up when it attempted the site_detl insert.

  • Identical actionscript works in one frame but not another...?

    Hi all,
    I'm working on this electronic sheep creator for my Masters
    degree (don't ask haha..) which is online at
    [url]www.aegreen.co.uk/creativetech/[/url] . The problem I'm having
    is that a piece of actionscript I'm using for saving the sheep as a
    jpg using BitmapData works in one frame with one movie clip but not
    in another frame..
    In frame 1 I create two movie clips - mc_modifysheep and
    mc_dna:
    [CODE]on(release) {
    _root.createEmptyMovieClip("mc_modifysheep", 1)
    mc_modifysheep._x = 150;
    mc_modifysheep._y = 70;
    mc_modifysheep.attachMovie("sheep_body", "body", 1, {_x:42,
    _y:65});
    mc_modifysheep.attachMovie("sheep_head", "head", 2, {_x:0,
    _y:0});
    mc_modifysheep.attachMovie("sheep_legs", "legs", 3, {_x:77,
    _y:215});
    _global.bodycolour = "default";
    _global.headcolour = "default";
    _global.legscolour = "default";
    _root.createEmptyMovieClip("mc_dna", 2)
    mc_dna._x = 0;
    mc_dna._y = 0;
    mc_dna.attachMovie("mc_DNA_empty", "DNA empty", 1, {_x:8,
    _y:360});
    mc_dna.attachMovie("mc_dna_default_default_top", "top", 2,
    {_x:45, _y:374});
    mc_dna.attachMovie("mc_dna_default_default_right", "right",
    3, {_x:65, _y:400});
    mc_dna.attachMovie("mc_dna_default_default_left", "left", 4,
    {_x:32, _y:401});
    gotoandstop(2);
    }[/CODE]
    the sheep in 'mc_modifysheep' and the dna in 'mc_dna' are
    built up over frames 2 and 3 and then in frame 4 the user decides
    whether the sheep is given freedom or captivity. If freedom is
    chosen then the user is prompted to name their sheep and the movie
    clip mc_modifysheep is saved as a jpg on the server using
    BitmapData and PHP. If captivity is chosen then the user is
    prompted to name the dna and the movie clip mc_dna is meant to be
    saved as a jpg on the server but only a white blank jpg is
    produced, not what is contained in mc_dna.. I've tried all sorts
    but I can't figure out why it's doing this..
    Here's the code I'm using, that works, to save the
    mc_modifysheep:
    [CODE]import flash.display.BitmapData;
    btn_freedom.onPress = function() {
    freedom();
    function freedom() {
    snap_sheep = new BitmapData(305, 290);
    snap_sheep.draw(mc_modifysheep);
    var pixels:Array = new Array();
    var w:Number = snap_sheep.width;
    var h:Number = snap_sheep.height;
    var a:Number = 0;
    var sn:String = txt_Freedom.text;
    high = 99999;
    low = 00000;
    ran =
    Math.floor(Math.random()*(Number(high)+1-Number(low)))+Number(low);
    var rn:Number = ran
    var filename:String = dn+sn;
    for (var a = 0; a <= w; a++) {
    for (var b = 0; b <= h; b++) {
    var tmp = snap_sheep.getPixel(a, b).toString(16);
    pixels.push(tmp);
    var freedomoutput:LoadVars = new LoadVars();
    freedomoutput.img = pixels.toString();
    freedomoutput.height = h;
    freedomoutput.width = w;
    freedomoutput.filename_sheep = filename;
    freedomoutput.send("save_sheep.php", "_self", "POST");
    stop();[/CODE]
    and here's the near identical code apart from different
    variable/movieclip names I'm using to try and save (but failing)
    mc_dna:
    [CODE]import flash.display.BitmapData;
    btn_capt.onPress = function() {
    capt();
    function capt() {
    snap_dna = new BitmapData(305, 290);
    snap_dna.draw(mc_dna);
    var pixels:Array = new Array();
    var w:Number = snap_dna.width;
    var h:Number = snap_dna.height;
    var a:Number = 0;
    var dn:String = txt_Capt.text;
    high = 99999;
    low = 00000;
    ran =
    Math.floor(Math.random()*(Number(high)+1-Number(low)))+Number(low);
    var rn:Number = ran
    var filename:String = dn+rn;
    for (var a = 0; a <= w; a++) {
    for (var b = 0; b <= h; b++) {
    var tmp = snap_dna.getPixel(a, b).toString(16);
    pixels.push(tmp);
    var captoutput:LoadVars = new LoadVars();
    captoutput.img = pixels.toString();
    captoutput.height = h;
    captoutput.width = w;
    captoutput.filename_dna = filename;
    captoutput.send("save_dna.php", "_self", "POST");
    stop();[/CODE]
    I know it's a problem with the flash and not the PHP as I've
    tested for that, definately in the flash. I just don't understand
    how the same code can capture mc_modifysheep, but not mc_dna.
    argh!!!
    If you need to take a look at the FLA file it's up at
    [url]www.aegreen.co.uk/creativetech/dohumansdream.fla[/url]
    Thanks everyone!!

    If you dont find anything specific, a lot of the problems i
    encounter like this are because one little thing is spelled wrong.
    like it doesnt match whats in your php file, ect. my suggestion,
    though a long one, if you know its supposed to work, and theres no
    syntax error, re type it, not copy and paste, and just be careful.
    keep tripple checking. you might not even find what was spelled
    wrong, but it might fix the situation,

  • Flash not working for one user, but not another on this CPU

    Hi,
    For user A on my computer most video will play in Safari, Firefox, and Chrome. But video at nfl.com will not play. The ads will play but not the actual feature.
    I just found out that the videos on nfl.com will work for user B. I have rerun the Adobe Flash 10.1 installer in user A's account several times with no luck.
    Are there permissions or libraries I should trash to try to restore this capability?
    thanks,
    Steve

    HI,
    For user A on my computer
    Try uninstalling the current copy of Flash, reinstall new, then repair permissions.
    Uninstall Flash
    Install the most recent version of Flash here.
    Now repair permissions.
    Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and restart your Mac.
    You may also need to delete the Flash cache. Instructions here.
    http://discussions.apple.com/thread.jspa?messageID=11672709&#11672709
    If that doesn't help, install the v10.6.4 Combo Update It's ok to do this even though you are already running v10.6.4.
    Carolyn

  • Script works for one frame but not another

    I set up 2 keyframes, each one loads a different text file
    into a dynamic text box. The text box for the first keyframe is
    named "session" and the text box for the second keyframe is named
    "oneptq". The text file for the first text box is named Titles.txt
    and the text file for the second keyframe is 100Q.txt. The code I'm
    using is identical (except for the respective names of the text
    boxes and text files) but for some reason the text will load in the
    first text box but not the second.
    Here's my AS for the first keyframe:
    lvLoader = new LoadVars();
    lvLoader.onLoad = function(success)
    if(success)
    session.text = lvLoader.textbody;
    lvLoader.load("Titles.txt");
    And my AS for the second keyframe:
    lvLoader = new LoadVars();
    lvLoader.onLoad = function(success)
    if(success)
    oneptq.text = lvLoader.textbody;
    lvLoader.load("100Q.txt");
    I can't figure this thing out. Please help. Thanks.

    Have you double checked that it's a DYNAMIC text box? Maybe
    it was accidentally swapped by to static at some point...

  • Safari works for one user but not another on same computer

    MacBook with multiple user accounts. Safari (and Firefox) work fine for one user but are unable to open web pages when the other user is logged in. The error in Safar is "Safari can't open the page "http://xxxxxxxxx/" because it could not connect to the server "/xxxxxxx/" . DNS is working for this user. I am able to ping any number of sites from Terminal. Network Preference pane is configured to not require any proxy. This is a case of it was working but now it's not.
    Can anybody help with this? I know I can fix this by simply creating another user and transfering the affected user's data to the new account but I would rather not. TIA

    HI Bob,
    You can test your settings by clicking the big "Test My DNS" button at <https://www.dns-oarc.net/oarc/services/dnsentropy>. If you see "Poor" on any of the tests, don't use that domain name server! Remove it from Apple Menu => System Preferences =>Network =>DNS Servers or similar location in your router if you've got a 'home network'. If all you have is "poor" DNS servers in your list, call your ISP and insist that they give you the address of a name server which is protected against the recently exposed DNS cache-poisoning threat.
    Also, open System Preferences/Network. Click the DNS tab. Add these numbers in the DNS Servers box.
    208.67.222.222
    208.67.220.220
    See if that helps.
    Carolyn

  • WDTHEMEROOT works in one client but not another

    I'm looking at using the WDTHEMEROOT application parameter to set a theme. I've set it to 'sap-chrome' in our development client and that works fine when I test the application. When I log into another client on the same system, however, the WDTHEMEROOT  parameter has no effect. I'm guessing there is a setting in the first client but not in the second but I don't know what that might be. Any ideas ?
    thanks,
    Malcolm.

    Well,
    I guess my excitement was shortlived. I changed the theme and did whatever the note suggested. It worked!
    But then I changed it back to 'sap_chrome' and did all that the note suggested - it did not work. I am now stuck with the new incomplete theme and am  not able to change it back to what it was earlier.
    Any Help?
    Thanks,
    Sanjiv

  • Apps work in one location but not another

    Some apps (iheartradio and tvguide) work fine from my home wifi, but not in another wifi area (at work, which has better wifi).  Other apps such as pandora work fine at both locations.  What is the difference and how can I get all apps to work everywhere?

    It's entirely possible that your employer has blocked certain ports on the corporate firewall, which will prevent some apps from working.

  • Works in one tool, but not another...same environment.

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE     11.2.0.3.0     Production
    TNS for Solaris: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    I'm trying to build a view. It works in TOAD 11.6. It works in Oracle SQL Developer 1.1.3.
    But when I try to run it via SQL/PLUS (putty connection)....it fails.
    alter session set current_schema = fs_nris_fsveg;
    CREATE OR REPLACE FORCE VIEW FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM
       STAND_CN,
       STAND_ID,
       PLOT_CN,
       PLOT_ID,
       STANDPLOT_CN,
       STANDPLOT_ID,
       TREE_CN,
       TREE_ID,
       TAG_ID,
       SITE_TREE_FLAG,
       TREE_COUNT,
       HISTORY,
       SPECIES,
       DIAMETER,
       DIAMETER_HT,
       DG,
       HT,
       HTG,
       HTTOPK,
       HT_TO_LIVE_CROWN,
       CRCLASS,
       CRRATIO,
       DAMAGE1,
       SEVERITY1,
       DAMAGE2,
       SEVERITY2,
       DAMAGE3,
       SEVERITY3,
       DEFECT_CUBIC,
       DEFECT_BOARD,
       TREEVALUE,
       PRESCRIPTION,
       AGE,
       SLOPE,
       ASPECT,
       PV_CODE,
       PV_REF_CODE,
       TOPOCODE,
       SITEPREP
    AS
       SELECT DISTINCT
              s.cn stand_cn,
              s.setting_id stand_id,
              p.cn plot_cn,
              NRV_FVS_DB.To_Num (
                 SUBSTR (p.level_2_id, GREATEST (-1 * LENGTH (p.level_2_id), -4)))
                 plot_id,
              s.cn || '_' || LPAD (p.level_2_id, 4, '0') standplot_cn,
              s.setting_id || '_' || LPAD (p.level_2_id, 4, '0') standplot_id,
              t.cn tree_cn,
              NVL (t.unique_no, NRV_FVS_DB.To_Num (t.tag_id)) tree_id,
              t.tag_id tag_id,
              DECODE(t.site_tree_flag,  NULL, 0,  'Y', 1,  NULL) site_tree_flag,
             -- Check for sub-sampling, calculate stand level tpa equiv if sub-sampling, and      
             -- plot-level tpa equiv if no sub-sampling                                           
              DECODE(
                 s.Has_Sub_Sampling,
                 'Y',                                             /*If sub-samp */
                     ROUND (NRV_TREE.Stand_Equiv (t.cn, t.tpa_equiv, s.cn), 5),
                 /*else not    */
                 t.tpa_equiv)
                 tree_count,
              NRV_FVS_DB.To_History (t.live_dead,
                                     t.recent_mortality_flag,
                                     t.tree_status,
                                     t.tree_class)
                 history,
              t.species_symbol species,
              DECODE(t.diameter_method, 'C', NULL, NVL (t.diameter, 0.1))
                 diameter,
              t.diameter_height diameter_ht,
             -- /* For GST trees only: artf21577 radial growth bug                                                         *
              -- *   If the setting has any prev dia measurements and a prev meas date, DG = fia previous diam measurement *
              -- *   Otherwise, DG = radial growth                                                                         */
             -- /* TO_NUMBER(DECODE(t.growth_sample_tree_flag, NULL, NULL
              --                ,DECODE(NRV_FVS_DB.get_dg_trans(p.setmeas_cn_of)
                --              ,0, t.radial_growth/10  -- Division by 10 to convert units from tenths to inches
                --              ,1, t2.diameter_previous
                 --             ,NULL))) dg, */
              --TO_NUMBER(DECODE(NRV_FVS_DB.get_dg_trans(p.setmeas_cn_of),0, t.radial_growth/10,  -- Division by 10 to convert units from tenths to inches
              --                 1, t2.diameter_previous,NULL)) dg,  -- art24653
              DECODE(
                 t.radial_growth_method,
                 'C', NULL,
                 TO_NUMBER (
                    DECODE(NRV_FVS_DB.get_dg_trans (p.setmeas_cn_of),
                            0, t.radial_growth / 10, -- Division by 10 to convert units from tenths to inches
                            1, t2.diameter_previous,
                            NULL)))
                 dg,                                                   -- art24653
              DECODE(t.height_method, 'C', NULL, t.height) ht,
              --DECODE(t.height_growth_method, 'C', NULL,
              --round(DECODE(t.growth_sample_tree_flag, NULL, NULL, t.height_growth),4)) htg,  -- artf7599 GST tree (dg and htg issue)
              DECODE(t.height_growth_method,
                      'C', NULL,
                      ROUND (t.height_growth, 4))
                 htg,                                                  -- art24653
              DECODE(
                 t.height_to_break_method,
                 'C', NULL,
                 NRV_FVS_DB.To_Height_Top_Kill (t.height_topkill,
                                                t.height_to_break))
                 httopk,
              DECODE(t.crown_base_height_method, 'C', NULL, t.crown_base_height)
                 ht_to_live_crown,
              t.crown_class crclass,
              DECODE(
                 t.crown_ratio_method,
                 'C', NULL,
                 DECODE(
                    NRV_FVS_DB.Only_1_Digit_CRs (s.cn),
                    'Y',                                      /*all 1-digit CRs */
                        t.crown_ratio,
                    /*1- and 2-digit CRs*/
                    DECODE(GREATEST (NVL (t.crown_ratio, -1), 1),
                            LEAST (NVL (t.crown_ratio, -1), 9),      /*CR < 10  */
                                                               10,
                            /*CR >= 10 */
                            t.crown_ratio)))
                 crratio,                            -- artf9733 crown ratio issue
              NRV_FVS_DB.Get_Damage (t.cn, 1) damage1,
              NRV_FVS_DB.Get_Severity (t.cn, 1) severity1,
              NRV_FVS_DB.Get_Damage (t.cn, 2) damage2,
              NRV_FVS_DB.Get_Severity (t.cn, 2) severity2,
              NRV_FVS_DB.Get_Damage (t.cn, 3) damage3,
              NRV_FVS_DB.Get_Severity (t.cn, 3) severity3,
              (  SELECT SUM (td.effect_severity)
                   FROM nrv_tree_disturbances td
                  WHERE t.cn = td.tremeas_cn AND td.effect_code = '014'
               GROUP BY td.tremeas_cn)
                 defect_cubic,
              (  SELECT SUM (td.effect_severity)
                   FROM nrv_tree_disturbances td
                  WHERE t.cn = td.tremeas_cn AND td.effect_code = '013'
               GROUP BY td.tremeas_cn)
                 defect_board,
              /* first check to see if the plot is nonstockable, otherwise assign tree value. */
              DECODE(
                 NRV_FVS_DB.Is_Plot_Nonstockable (p.cn,
                                                  s.region_proc,
                                                  s.loader_version),
                 'Y',                                             /*nonstockable*/
                     8,
                 /* else */
                 NRV_FVS_DB.To_Tree_Value (t.tree_class))
                 treevalue,
              NRV_FVS_DB.To_Num (t.first_treatment_option) prescription,
              --t.age age,
              DECODE(t.age_method,  'DC', NULL,  'TC', NULL,  t.age) age,
              NVL (p.slope, c1.slope) slope,
              NRV_FVS_DB.To_Aspect_Zero (NVL (p.aspect, c1.aspect)) aspect,
              NVL (p.pv_code, c1.pv_code) pv_code,
              NVL (p.pv_ref_code, c1.pv_ref_code) pv_ref_code,
              NRV_FVS_DB.To_Topo_Code (p.slope_position) topocode,
              DECODE(c1.cn,
                      NULL,                                /*no condition record*/
                           NRV_FVS_DB.get_plot_siteprep (p.cn),
                      /*else               */
                      NRV_FVS_DB.get_condition_siteprep (s.cn, c1.cn))
                 siteprep
         FROM nrv_tree_measurements t,
              nrv_fia_tree_measurements t2,
              nrv_setting_measurements p,
              /* sub-select to improve efficiency - to unravel sub-sampling only once per stand-level. */
              (SELECT cn,
                      setting_id,
                      region_proc,
                      loader_version,
                      NRV_FVS_DB.Has_Sub_Sampling (cn) has_sub_sampling
                 FROM nrv_setting_measurements
                WHERE setmeas_cn_of IS NULL) s,
              nrv_fia_mapped_conditions c1
        WHERE     t.setmeas_cn = p.cn
              AND p.setmeas_cn_of = s.cn
              AND t.cn = t2.tremeas_cn(+)
              AND t.mapcond_cn = c1.cn(+)
              AND t.off_plot_flag IS NULL
              AND (t.tree_status IS NULL OR t.tree_status IN ('D', 'L'))
              AND (   t.tree_class IS NULL
                   OR t.tree_class IN
                         ('AC',
                          'DE',
                          'GS',
                          'RF',
                          'RN',
                          'S',
                          'SV',
                          'UA',
                          'US',
                          'WS',
                          'H',
                          'U',
                          'D'))
              AND t.down_flag IS NULL;
    COMMENT ON TABLE FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM IS 'Provides FVS tree-level information from derived from various FSVeg data tables.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.STAND_CN IS 'Database control number for parent setting record.  This provides a foreign key to NRV_FVS_STANDINIT_VM.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.STAND_ID IS 'Stand Identification Code.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.PLOT_CN IS 'Database control number for child setting record.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.PLOT_ID IS 'Plot Identification number.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.TREE_CN IS 'Database control number for individual trees.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.TREE_ID IS 'Tree Identification Code - unique number.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.TREE_COUNT IS 'Tree Count rounded to 5 decimal places.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.HISTORY IS 'History Code. 1=live trees, 6=died during mortality observation, 8=died before mortality observation period';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.SPECIES IS 'Tree Species Code.  NRCS plants code.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.DIAMETER IS 'Tree Diameter measurement in inches.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.DIAMETER_HT IS 'Height in feet above ground where the diameter was measured.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.DG IS 'Diameter Growth in inches.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.HT IS 'Tree Height measurement in feet.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.HTG IS 'Height Growth in feet.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.HTTOPK IS 'Height to top kill is the height to the point of the tree of top kill in feet';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.CRRATIO IS 'Percent live crown.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.DAMAGE1 IS 'Damage Code #1';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.SEVERITY1 IS 'Severity Code corresponding to damage code #1';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.DAMAGE2 IS 'Damage Code #2';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.SEVERITY2 IS 'Severity Code corresponding to damage code #2';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.DAMAGE3 IS 'Damage Code #3';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.SEVERITY3 IS 'Severity Code corresponding to damage code #3';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.TREEVALUE IS 'Tree Value Class Code. 1=desirable, 2=acceptable, 3=cull, 8=non-stock-able plot.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.PRESCRIPTION IS 'Prescription Code.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.SLOPE IS 'Slope Percentage of level-2 setting (plot) or FIA condition class.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.ASPECT IS 'Aspect in degrees of level-2 setting (plot) or FIA condition class.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.PV_CODE IS 'Potential Vegetation Code of level-2 setting (plot) or FIA condition class.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.PV_REF_CODE IS 'Potential Vegetation Reference Code -- the document from which the PV_CODE was obtained.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.TOPOCODE IS 'Topography Code of level-2 setting (plot) 1=bottom, 2=lower, 3=mid slope, 4=upper slope, and 5=ridge top';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.SITEPREP IS 'Site Preparation Code of level-2 setting or FIA condition class. 1=none, 2=mechanical, 3=burn, 4=road';
    DROP PUBLIC SYNONYM NRV_FVS_TREEINIT_VM;
    CREATE OR REPLACE PUBLIC SYNONYM NRV_FVS_TREEINIT_VM FOR FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM;
    GRANT SELECT ON FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM TO PUBLIC WITH GRANT OPTION;ERROR:
    SQL> @nrv_fvs_treeinit_vm.sql
    SP2-0042: unknown command "DECODE(" - rest of line ignored.
    SP2-0734: unknown command beginning "t.radial_g..." - rest of line ignored.
    SP2-0042: unknown command "'C', NULL," - rest of line ignored.
    SP2-0734: unknown command beginning "TO_NUMBER ..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "DECODE(NRV..." - rest of line ignored.
    SP2-0734: unknown command beginning "0, t.radia..." - rest of line ignored.
    SP2-0734: unknown command beginning "1, t2.diam..." - rest of line ignored.
    SP2-0042: unknown command "NULL)))" - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "dg,             ..." - rest of line ignored.
    SP2-0734: unknown command beginning "DECODE(t.h..." - rest of line ignored.
    SP2-0734: unknown command beginning "DECODE(t.h..." - rest of line ignored.
    SP2-0042: unknown command "'C', NULL," - rest of line ignored.
    SP2-0734: unknown command beginning "ROUND (t.h..." - rest of line ignored.
    SP2-0734: unknown command beginning "htg,      ..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0042: unknown command "DECODE(" - rest of line ignored.
    SP2-0734: unknown command beginning "t.height_t..." - rest of line ignored.
    SP2-0042: unknown command "'C', NULL," - rest of line ignored.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "t.height_t..." - rest of line ignored.
    SP2-0042: unknown command "httopk," - rest of line ignored.
    SP2-0734: unknown command beginning "DECODE(t.c..." - rest of line ignored.
    SP2-0734: unknown command beginning "ht_to_live..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "t.crown_cl..." - rest of line ignored.
    SP2-0042: unknown command "DECODE(" - rest of line ignored.
    SP2-0734: unknown command beginning "t.crown_ra..." - rest of line ignored.
    SP2-0042: unknown command "'C', NULL," - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0042: unknown command "DECODE(" - rest of line ignored.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0734: unknown command beginning "'Y',      ..." - rest of line ignored.
    SP2-0734: unknown command beginning "t.crown_ra..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "DECODE(GRE..." - rest of line ignored.
    SP2-0734: unknown command beginning "LEAST (NVL..." - rest of line ignored.
    SP2-0042: unknown command "10," - rest of line ignored.
    SP2-0734: unknown command beginning "t.crown_ra..." - rest of line ignored.
    SP2-0734: unknown command beginning "crratio,  ..." - rest of line ignored.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
                 defect_cubic,
    ERROR at line 5:
    ORA-00933: SQL command not properly ended
    Comment created.(all other comments and further commands succeed.
    So what could be causing it to crashin SQL/PLUS through PUTTY? This makes no sense to me.
    I've also ran it through the code formatter, as this will often show the ugly face of something that is hidden. But no such luck.

    Willy_B wrote:
    I removed the one that was listed, thinking that it was implicit to that line. BUT of course, I just went back and removed EVERY empty line, even between the comments and all...and it worked.
    So the lesson here is that PL/SQL could care less about white space, but SQLPlus is picky....
    Thanks. :)Exactly. And I have to make note of that in my written procedure for restoring some of our test databases from a cold backup of production. Turns out the control file trace script (backup controlfile to trace) inserts a blank line ... then sqlplus chokes on it when executing ..

  • BusObj XI R2 Deski login error for user - works on one PC but not another

    Hi,
    I have a user logging into Deski on her PC but getting:
    [repo_proxy 13] SessionFacade::openSessionLogon with user info has failed(Enteprise authentication could not log you on. Please make sure your logon information is correct.(hr=#0x80042902)
    If she logs in on my PC her ID/password works just fine.
    We reinstalled Deski and cleared any server information but with no difference.
    And here's the odd thing.... I can login OK on her PC... so the client looks installed OK.
    Any ideas?
    Thanks,
    Dean

    HI Dean,
    The issue could be that the user account might have got corrupted.We can delete the user preferences from the registry.
    When the user logins to dektopintelligence, it recreates the user information in registry.
    Note:Take a backup of the registry of client's PC,before making any changes.
    Click on File->Export
    Save the registry information.
    ->Click on Start->Run->regedit
    ->Select HKEY_CURRENT_USER->Software->Business Objects->Suite 11.5->default->Application Preferences
    ->Delete Business Objects Reporter.
    ->Also delete the User Pref (the account with which you have logged into the system).
    Now try to test the issue by logging to deski.
    Hope the information helps!!
    Regards,
    Shubha.

  • Application works for one user but not another......Please help

    Hi just wondering if anyone can help.
    We have an app (get i_player automator) that we have been successfully using for the last year or so.  The other day our internet connection died mid download and the app stopped responding. 
    Rather than force quit darling hubby did something fancy with the terminal window (not entirely sure what but I remember kill, bash and gerlp??). 
    Anyway since then the app will start appear in the doc (bouncing happily up and down) but no window will open.  This happens just on my log in.  If I ctrl click the application is listed as not responding.
    The app works correctly for other users on the same machine.
    I have tried the following to no avail
    Turning off and on again
    Deleting the app and re installing
    Any ideas?

    Most applications work user-per-user, maybe your darling has to do some more of that magic in the Terminal on your account?

  • Trigger working in one db but not another

    I have a simple instead of trigger placed on a view that inserts/updates two tables as follows:
    CREATE OR REPLACE TRIGGER ALL_SITE_VW_INS_I_U_ROW
    INSTEAD OF INSERT OR UPDATE ON ALL_SITE_VIEW
    BEGIN
    IF UPDATING THEN
    UPDATE SITE_MAIN SET......
    UPDATE SITE_DETL SET.......
    ELSE
    INSERT INTO SITE_MAIN
    VALUES(........
    INSERT INTO SITE_DETL
    VALUES(........
    END IF;
    END;
    This is working on our development 10g R1 database, however when we upgraded to 10g R2 is started throwing ORA-02291 Integrity Constraint error. I cannot determine what is different and was wondering if there's a new parameter with 10g R2 that would prevent this from working?

    sorry all...figured it out...had a BIN$ trigger on the site_main that I had removed on the 10g R1 dev database after I had already created the dump file for the 10g R2 upgrade test db....removed this and everything works fine. This trigger was causing the site id to be re-populated from the sequence, thus not matching up when it attempted the site_detl insert.

  • Ipod working on one machine but not another

    I purchased a 30gb iPod video today, the problem is after I installed iTunes and plugged the iPod in I got an error message stating my ipod was possibly corrupted and suggesting that I restore it. When I try to restore it says this isnt possible because it can't download the required rescoure. The odd thing is when I plug it into another, much older computer in my house, it works fine. I've looked over a lot of the topics on this forum and can't find anything that has worked yet. Both machines are running Windows XP and iTunes 7, however the older machine has usp 1.0 ports yet it still worked. Any help would be much appreciated, thanks.

    Not sure, maybe if you can share the form, I can have a look at it.

Maybe you are looking for