Problem running space procedure inside a Non-space procedure

Hi all

I'm doing a wrapper for a space stored procedure in order to get more "usable" to non-space users. However, there is a piece of code that throws errors, and I can't understand why. When the following code runs by itself without the help of the packaging stored procedure, it runs very well - here's the code:

DECLARE
BLOB LB;
GEOR SDO_GEORASTER;
BEGIN
DBMS_LOB. CREATETEMPORARY (LB, TRUE);
SELECT IN CPR_NAMERICA FAMILY'S GEORASTER. CORE_DTM WHERE SOURCE_FILE = "n47w109e3";
SDO_GEOR. GETRASTERSUBSET (GEOR, 0, ARMENIA.) SPATIALEXTENT, NULL, LB);
FELTA. SDO_GEOR_IMAP. WRITEBLOBTOFILE (lb, 'DATA_DIR', '5012JX_n47w109e3_DTM_V.Bil');
FELTA. SDO_GEOR_IMAP. WRITEMETATOFILE (GEOR 'DATA_DIR', '5012JX_n47w109e3_DTM_V.hdr');
DBMS_LOB. FREETEMPORARY (LB);
END;

But when this same exact statement is executed with an EXECUTE IMMEDIATE into a VARCHAR2 variable it gives the following error:

ORA-13403: invalid rasterDataTable specification:
CPR_NAMERICA. NA_CORE_DTM_RDT_0001
ORA-06512: at the 'MDSYS. SDO_GEOR_INT', line 1934
ORA-06512: at the 'MDSYS. SDO_GEOR', line 516
ORA-06512: at the 'MDSYS. SDO_GEOR', line 2292
ORA-06512: at line 7
ORA-06512: at "INTERMAP". CPR_RENDER_OPS', line 170
ORA-06512: at line 2

Now, I played around with it a bit and found that the part that gives wrong initially is:
SDO_GEOR. GETRASTERSUBSET (GEOR, 0, ARMENIA.) SPATIALEXTENT, NULL, LB);

From there the procedure stops running and the error. I checked that permissions are correct - but I am obviously missing something here. Any help would be appreciated.

The database runs on x 64 RHEL 4 Update 6 and the version of Oracle is 11.1.0.6

Thank you

You said you checked that permissions are correct, but:

1. is the procedure that you are trying to create procedure of a DEFINER rights? It is the default, unless you specify AUTHID CURRENT_USER.

2. is at - permissions granted to a role (and not directly to the owner of the procedure)?

If the following two conditions are met, you can run into the problem described in http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:1065832643319 and http://asktom.oracle.com/tkyte/Misc/RolesAndProcedures.html.

I hope this helps.

Tags: Database

Similar Questions

  • I have problems of space on my iPhone 6. I have only 21 photos and 2 videos on my phone. However, I am on a discussion group on whatsapp. How can I create more space for my phone? I also have very few applications on my phone.

    I have problems of space on my iPhone 6, I have only 21 photos and 2 videos on my phone. However, I am part of a chart group on whatsapp. The problem now is that my storage space is almost full. How can I create more space for photos and everything?

    You cannot create more space for everything.  All you can do is remove apps, photos and especially videos to make room for other pictures and videos.

  • Windows 7 Home Premium 64 Bit and my DirectX diagnostic tool says that my current version is DirectX 11, but when I try to run space engineers, it tells me that I need to run DirectX 11

    * Original title: DirectX and space engineers

    Hello, I am running Windows 7 Home Premium 64 Bit and my diagnosis tool DirectX says that my current version is DirectX 11, but when I try to run space engineers and use a world with planets, he tells me that I need to run DirectX 11. When I go to my DirectX folder, it says that I am running DirectX 9.0, I'm very confused and internet only helped me at all up to this point. All suggestions/help and help will be greatly appreciated.

    Well, is it not a strange ball game? Minimum = DX9 and DX11 for planets.

    Looks like no shore leave for you then... :)

    "NOTE: the minimum requirements are enough to run the game, but without the global functions,

    which requires DirectX 11. »

    "When I go into my file DirectX it tells me that I'm running DirectX 9.0"

    Direct X folder?

    Win7 has DX9, 10 & 11. However, older graphics cards are not be able to use DX11 (or DX10 if old enough).

    It comes to graphics cards which are older than AMD HD 5000 (version ' 09) and Nvidia GTX 400 (exit 10) series.

    EDIT: This also applies to the older map HD4000 Intel integrated graphics (Inc., HD3000, and all the "GMA" graphic integrated).

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

    -Here is a list of the .dll Direct X files you when files are updated.
    There are more files DX (Xinput and audio), but these are most of the graphs related to Direct X .dll

    Go to Windows / System 32 folder (and SysWOW64 if you have 64-bit).
    -They are in alphabetical order and begin by d3dx9_24.dll > 43. Then d3dx10 - 33 43 >
    . & Finally d3dx11 - 42 43 >.
    It should also be--d3d9, d3d10 and d3d11. These come before the D3Dcompilers - 33 > 43.

    If all of these files is missing update Direct X using the DX Web Installer.

    Download DirectX end-user Runtime Web Installer from the official Microsoft Download Center

    Sometimes, a file is corrupt (mainly by games always reinstall DX unnecessarily). I have this case

    DX must be reinstalled using the full DirectX redist (June 2010) -

    Download details - Microsoft Download Center - DirectX Redist (June 2010)

    .

  • Problem running procedure using Variables

    Hi all

    I am trying to execute the procedure in a statement declared/Begin/End and using variables as parameters of entry in my interior but I get away to an invalid SQL statement error. My code is below:
    declare
    
      START_dt  VARCHAR2(30);
      END_DT VARCHAR2(30);
      
         
      begin
            
        SELECT '01-APR-2011'
        INTO END_DT
        FROM DUAL;
      
        SELECT '01-APR-2020'
        INTO END_DT
        FROM DUAL;
             
           
         BEGIN EXECUTE IMMEDIATE 'INSERT_PROV_ACSC_IND_REF('||START_dt||','||END_DT||')';END;COMMIT;
    
     end;
    
    Error at line 1
    ORA-00900: invalid SQL statement
    ORA-06512: at line 18
    Is the way that I normally run my procedure outside this statement Declare/Begin/End: EXECUTE INSERT_PROV_ACSC_IND_REF('01-APR-2011','01-APR-2020');

    The table that takes the data from the procedure does not correct timestamp but my procedure takes the varchar above dates and turns them into dates in the procedure so that the entry date settings are left as a string.

    Any help would be appreciated.

    Thank you

    And if you want to use variables:

    declare
        START_dt  VARCHAR2(30);
        END_DT VARCHAR2(30);
    begin
        START_dt := DATE '2011-04-01';
        END_DT := DATE '2011-04-01';
        INSERT_PROV_ACSC_IND_REF(START_dt,END_DT);
    end;
    /
    

    SY.

  • Problem running windows 10 to date for windows 7 Home premium 64-bit reference error code 08C 1800103 - 089002

    Problem running windows 10 to date for windows 7 Home premium 64-bit reference error code 08C 1800103 - 089002

    Could not update windows 7 Home premium service pack 1 for windows 10.

    I tried windows update. all updates are installed except win 10 update that comes up with unexpected error

    Please be aware, even if you do not get the Windows 10 app, you can always download Windows 10 as one. ISO file, create a bootable copy and update your system.

    See the instructions: How to download official Windows 10 ISO files

    Task of pre-required

    When you make significant changes to your computer for example updated operating system, you must always back up. See the links to resources on the backup by clicking the link for each version of Windows you are using: Windows XP, Windows Vista, Windows 7, Windows 8/8.1

  • I am facing problem while seraching & folders inside my computer files.

    I am facing problem while seraching & folders inside my computer files. I have always marked the option "Show hidden files & folders" before I start looking for, but it's automaticaliy turn unmarked & I can't seem to find the hidden files & folders. I use XP Service Pack 3.

    Some infections of virus and spyware uncheck the option "Show hidden files & folders" to keep you from finding their files.

    Update your antivirus program and run a full scan.

    Download, install and run the Microsoft Windows Malicious Software Removal Tool scans and Malwarebytes' Anti-Malware .

  • Cannot run the procedure several times

    Hello

    I use oracle 12 c

    I just created a stored procedure that works very well

    Problem is that the second time I run it, it does not what it should (data fusion)

    When I run the second time I always get PL/SQL procedure successfully completed but the target table is still empty, here is the procedure:

    1 create or replace procedure MERGE_TABLEA

    2 as

    3. start

    4 MERGE TABLE_A has B (SELECT 'ID', 'NAME' OF TABLE_B) with the HELP of

    ON (A.ID = B.ID)

    WHEN MATCHED THEN

                     UPDATE SET B.SID = B.NAME

    WHEN NOT MATCHED THEN

    INSERT (A.' ID',' NAME')

    VALUES (B.ID, B.NAME);

    END;

    /

    PL/SQL procedure successfully completed.

    I also tried to build a simple procedure that id just insert and name of the table to test ina and it works very well, no matter how many times I've run it

    Is it maybe something with the merger or what?

    Thank you!

    OK guys, I think there are some misunderstandings here,

    @ddf_dba_ifox , version of the db that I use is stated in the first line of my post, I can't publish data for security reasons


    @rp0428 I forgot to mention that I'M to truncate the table, and then run the procedure again but the merger no longer works as the table is empty

    In any case, I found out why

    I'm merging the tables in the DB using the schema that is related to my installation of Oracle APEX

    In the procedure if you notice there is no COMMIT

    As apex has users within a schema, that I couldn't see the lines without committing before

    Thank you all anyway!

  • How to run a procedure with parameters in pl/sql collections?

    I created a procedure with parameter from the collection. Can somone help me how to run a procedure in passing the parameters in the collection.
    Package and how to create is successful. But I get the error message when executing the procedure.

    ORA-06550: line 3, column 19:
    PLS-00222: no function with name 'T_TAB' does exist in this scope

    I gave the example of code here. Can someone please help me solve this problem.

    -Spec package

    create or replace package pkg_dist is

    TABLE index IS THE NUMBER of t_tab_num TYPE of PLS_INTEGER;


    procedure prc_test (a t_tab_num IN,
    b IN t_tab_num,
    c IN OUT t_tab_num);
    end pkg_dist;

    -Package body

    create or replace package body is pkg_dist

    procedure prc_test (a t_tab_num IN,
    b IN t_tab_num,
    c IN OUT t_tab_num) is


    Start


    IF (a (16) = 0) then
    (16) c: = 0;
    c (17): = 0;
    c (18): = 0;
    end if;
    c (15): = (14)-(15)-a (16);
    (16) c: = b (16) /b (17);
    c (17): = 50;
    (18) c: = a (16) * 2;

    end prc_test;
    end pkg_dist;

    -executeing procedure

    declare
    TABLE index IS THE NUMBER of t_tab TYPE of PLS_INTEGER;
    x t_tab: = t_tab (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16);
    y t_tab: = t_tab (0,10,15,20,25,30,35,40,45,50,60,75,100,125,150,200,250,500);
    z t_tab;
    BEGIN
    pkg_dist.prc_test (x, y, z);
    dbms_output.put_line (z (18));
    END;

    Error:
    --------------------------------------------------------------------------------
    ORA-06550: line 3, column 19:
    PLS-00222: no function with name 'T_TAB' does exist in this scope

    My suggestion would be:

    CREATE OR REPLACE PACKAGE pkg_dist IS
    
       PROCEDURE prc_test (a IN SYS.odcinumberlist, b IN SYS.odcinumberlist, c IN OUT SYS.odcinumberlist);
    END pkg_dist;
    
    CREATE OR REPLACE PACKAGE BODY pkg_dist IS
       PROCEDURE prc_test (a IN SYS.odcinumberlist, b IN SYS.odcinumberlist, c IN OUT SYS.odcinumberlist) IS
       BEGIN
          IF (a (16) = 0) THEN
             c (16) := 0;
             c (17) := 0;
             c (18) := 0;
          END IF;
    
          c (15) := a (14) + a (15) + a (16);
          c (16) := b (16) / b (17);
          c (17) := 50;
          c (18) := a (16) * 2;
       END prc_test;
    END pkg_dist;
    /
    
    DECLARE
       x   SYS.odcinumberlist;
       y   SYS.odcinumberlist;
       z   SYS.odcinumberlist;
    BEGIN
       x := sys.odcinumberlist (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16);
       y := sys.odcinumberlist (0,10,15,20,25,30,35,40,45,50,60,75,100,125,150,200,250,500);
       z := sys.odcinumberlist (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
       pkg_dist.prc_test (x, y, z);
       DBMS_OUTPUT.put_line (z (18));
    END;
    /
    

    See you soon,.
    Manik.

  • Run the procedure works without slash

    It's weird.
    I'm in a plsql connected to a database session.

    I can run a procedure as follows:
    run status_pkg.check_owner_vcard (1,1,2);

    However, I would like eventually to use variables, but when I try to do something like this:

    SQL > declare
    2 start
    3 run status_pkg.check_owner_vcard (1,1,2);
    4 end;
    7 m
    run status_pkg.check_owner_vcard (1,1,2);
    *
    ERROR at line 3:
    ORA-06550: line 3, column 9:
    PLS-00103: encountered the symbol "STATUS_PKG" when awaits an of the
    Next:
    := . (@ %; immediate)
    The symbol ': = ' was replaced by 'STATUS_PKG' continue.

    It is not a function - procedure which could wait for oracle?
    Any help appreciated
    Rgds
    Peter

    sqlplus command does not work inside a plsql block. Remove it and your block should run.

  • Problem running Rich Client demo on exit 11 JDev

    Hello
    I am trying to run the demo of Rich Client on JDeveloper 11 (release with Weblogic). I downloaded the file "adf-richclient - demo.war" and launched a project of this archive. The application name is "adffacesdemo".
    The error I get is:

    < 13 October 2008 16:22:57 CEST > < WARNING > < J2EE > < BEA-160195 > < application version of the lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the adffacesdemo application is not versioned. >
    < 13 October 2008 16:23:07 CEST > < error > < HTTP > < BEA-101371 > < there was a failure during the processing of annotations for application C:\DevelopmentTools\JDeveloper11.1.1.0\jdeveloper\system\system11.1.1.0.31.51.56\o.j2ee\drs\adffacesdemo\adffacesdemo-adffacesdemo-webapp. Please make sure that annotations are valid. The error is oracle.adfdemo.view.srg.bug6437844.MyBean >
    < 13 October 2008 16:23:07 CEST > < error > < hats > < BEA-149265 > < error has occurred in the execution of the request for deployment with the ID ' 1223907776591 'for task ' 0'. Error is: "weblogic.application.ModuleException: could not load the webapp: ' adffacesdemo-adffacesdemo-context-root" "
    weblogic.application.ModuleException: cannot load the webapp: 'adffacesdemo-adffacesdemo-context-root ".
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    to weblogic.application.internal.flow.DeploymentCallbackFlow$ 1.next(DeploymentCallbackFlow.java:387)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    Truncated. check the log file full stacktrace
    java.lang.ClassNotFoundException: oracle.adfdemo.view.srg.bug6437844.MyBean
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    Truncated. check the log file full stacktrace
    >

    Did somebody encountered this problem?
    Thank you.

    In fact, I was able to create a new project in JDeveloper from the WAR file, that I mentioned above and run the demo inside JDeveloper 11 g production.
    Also - I deployed this demo of a stand alone WLS 10.3 with no problems.
    You can see the current demo here:
    http://jdevadf.Oracle.com/ADF-richclient-demo

  • How to run four procedures, in order, by using anonymous block

    Hello

    I am trying to run four procedures, in order, by using anonymous block. If one of the procedure fails remaining should get executed. How can I achieve this?
    For example:
    BEGIN
    PROC1;
    Proc2; -Suppose that Proc2 will fail, it should not affect the execution of Proc3 and proc 4
    Proc3;
    Proc 4;
    END;

    Thank you!

    Hello

    Maybe this can help you:

    BEGIN
      begin
        Proc1;
      exception
        when others then
          dbms_output.put_line('proc1 ' || sqlcode || ' ' || sqlerrm);
      end;
      begin
        Proc2;
      exception
        when others then
          dbms_output.put_line('proc2 ' || sqlcode || ' ' || sqlerrm);
      end;
      begin
        Proc3;
      exception
        when others then
          dbms_output.put_line('proc3 ' || sqlcode || ' ' || sqlerrm);
      end;
      begin
        Proc4;
      exception
        when others then
          dbms_output.put_line('proc4 ' || sqlcode || ' ' || sqlerrm);
      end;
    END;
    

    In your case, it may be useful if your procedures have their own exception handlers, so they never fail. But then you need a sort of exception information that is displayed.

    concerning
    Kay

  • try to run a procedure using perl

    Hello

    I'm trying to run a procedure using perl as under:

    my @tabs = qw! ACTOR ADDRESS CITY COUNTRY CUSTOMER INVENTORY STAFF STORE LANGUAGE FILM CATEGORY.

    for my {$ts (@tabs)

    chomp $ts;

    My $csr = $ora - > prepare (q {}

    BEGIN

    update_cascade.on_table(:TS)

    END;

    });

    $csr-> bind_param (": ts", $ts ");

    $csr-> run;

    }

    Which results in the following errors:

    DBD::Oracle:St run failed: ORA-06550: line 4, column 12:

    PLS-00103: encountered the symbol "END" when expected in the following way:

    := . ( % ;

    The symbol ';' was replaced by 'END' continue. (DBD ERROR: error possibly near <>* indicator to the 71 char in ')

    BEGIN

    update_cascade.on_table(:TS)

    <>* END;

    ') [for statement ""]

    BEGIN

    update_cascade.on_table(:TS)

    END;

    «with ParamValues: ts = 'ACTOR'] at sakila_update_cascade.pl line 18.»

    DBD::Oracle:St run failed: ORA-06550: line 4, column 12:

    PLS-00103: encountered the symbol "END" when expected in the following way:

    := . ( % ;

    The symbol ';' was replaced by 'END' continue. (DBD ERROR: error possibly near <>* indicator to the 71 char in ')

    BEGIN

    update_cascade.on_table(:TS)

    <>* END;

    ') [for statement ""]

    BEGIN

    update_cascade.on_table(:TS)

    END;

    «with ParamValues: ts = 'ACTOR'] at sakila_update_cascade.pl line 18.»

    I can run it in SQLPlus under Deputy

    exec update_cascade.on_table (:'ACTOR');

    I tried with:

    update_cascade.on_table('||:ts||')

    This does not run and you get this error in perl:

    Unable to bind placeholder unknown ': ts' (': ts') to the sakila_mig.pl of the line 659.

    Package DBD::Oracle example provided in point sites:

    my $test_num = 5 ;

    my $is_odd ;

    $csr = $db -> prepare (q{

    BEGIN

    PLSQL_EXAMPLE. PROC_IN_INOUT ( :test_num, :is_odd) ;

    FIN;

    });

    $csr -> bind_param (":test_num", $test_num);

    $csr -> bind_param_inout (":is_odd", \$is_odd, 1);

    $csr ->execute

    Thanks a lot for your help!

    Tonya.

    My = $ora $csr-> prepare (q {}

    BEGIN

    update_cascade.on_table(:TS)

    END;

    });

    You missed a semicolon (;)

  • running a procedure in sqlplus

    If I am running a procedure in SQLPLUS that takes 5-6 hours to run and I close the SQLPLUS after 1 hour, is the procedure stops running.

    Unless you kill the session, the process will continue to run. Only the closing SQL * more will not cause the procedure to stop the execution.

  • Voglio protect UN documento che ho scannerizzato. Non trovo da any parte scheda Dove immettere the password. Su su e Word Excel not this sono problemi con my file. PDF non riesco.

    Voglio protect UN documento che ho scannerizzato. Non trovo da any parte scheda Dove immettere the password. Su su e Word Excel not this sono problemi con my file. PDF non riesco.

    Hi massimob43349164,

    Password protect a PDF file, you will need Adobe Acrobat.

    It is not possible to add security using the player.

    Reference: Acrobat Help. Securing PDF files with passwords

    Hope it will be useful.

    Kind regards

    Ana Maria

  • Having major problems running newly installed Phtoshop CS5

    Having major problems running newly installed Phtoshop CS5 on a newer, much more powerful computer that will benefit better large files published on CS5. When I try to run it, I get the message "Adobe Application Manager required to start your trial is missing or damaged. Please download a new copy of AAM... "I made this withoiut effect. I uninstalled my purchased version and installed the "download version" of Adobe's Web site. NO luck. I get the same error message. AM I supposed to buy in Adobe CC and chuck my purchased version CS % or is there a work around for this problem?

    Have you tried to download it from:

    Download the CS5 products

    The error message is that this installation is corrupted.

    Concerning

    Stéphane

Maybe you are looking for