Invalid table name  error when updating object in collection using SQL

Hi,
I have pl/sql code where I am selecting a object from a collection using sql select query. I am processing this record and now I want to update the collection with the new object. ie. ensure that the object that was fetched be removed and this new one be added.
considering my_ot is the object type and my_tt is the table type.
DECLARE
my_col my_tt;
my_col1 my_tt
my_var my_ot;
my_var2 VARCHAR2(10);
BEGIN
// populating my_col1 with select query
//populating my_col with select query
FOR my_col1.FIRST .. my_col.LAST LOOP
//populating my_var2
BEGIN
SELECT my_ot(c.field1, c.field2 ,c.field3) INTO my_var FROM TABLE(my_col) c WHERE c.field3 = my_var2
//processing the field my_VAR
UPDATE TABLE(my_col) c SET c.field1 = my_var.field1 , c.field2 = my_var.field2 , WHERE c.field3 = my_var.field3;
EXCEPTION WHEN NO_DATA_FOUND
my_col.EXTEND;
my_col(my_col.LAST) := // new my_ot object
END;
END LOOP;
Here, when compiling the update query is not being compiled. I am getting a error 'invalid table name'. Is there any way to modify an object in the collection without knowing its index?
If not, is it possible to find the index of a object in the collection in select query?
Thanks in advance
Paddy

Hi,
Is there any way to find the index of a object in the collection? Then I will simply replace the object at that index, right!
Thanks
Paddy

Similar Messages

  • Invalid File Name Errors when syncing to Ipod

    Ever since an update last fall I have been getting Invalid file name errors when I try to sync my ipod. A window would pop up saying "Windows could not copy 'SONGNAME' to the iPod 'IPODNAME' because an unkown error occurred (-37)." I would press OK and another window would immediately pop up that would say, "Attempting to copy to the disk 'IPODNAME' failed. the file name is invalid or too long."
    The windows would keep popping up countless times until the sync would just seem to time out and stop.
    The problem songs would have no problem playing in iTunes.
    Prior to the update this did not happen. No new songs were added around this time and nothing was changed to my file directory structure. I was too busy to troubleshoot this problem at the time and hoped that another update would fix it. Well, here I am many months and updates later and still no fix. After fiddling with iTunes and resetting my Ipod multiple times (goodbye saved angry bird games)I have found out that:
    1. By writing down the file name when the error windows pop up I can get a partial list of the problem file names. I could not get a complete list of the problem files because the sync would time out before a full list could be compiled (the list appears to be in the hundreds).
    2. If I changed the name of the file by adding OR deleting one character, remapping the song in itunes, the song would then sync properly.
    3. If I changed the name of the file, remapped the location of the file within iTunes, changed the name of the file BACK to the original name that iTunes supposedly had a problem with, and then remapped the location of the song within iTunes, the song would then sync properly
    4. If I moved the song to a different directory without changing the file name, remapped the song within iTunes, the song would sync properly.
    5. If I moved the song to a different directory without changing the file name, remapped the song within iTunes, moved the file BACK to the original directory, remapped the song again, the song would sync properly.
    6. If I renamed the file and then named it back to the original file name WITHOUT remapping the file location in iTunes, the song would still not sync properly
    7. If I moved the file into a different directory and then back again without remapping the file location, the song would still not sync properly.
    8. Changing or deleting the tags has no effect at all.
    9. File name lengths are already under 200 characters and there are no special characters used.
    So, to sum up, I have found out a way to fix the issue. The problem is, that there are hundreds of songs that appear to be affected and renaming or moving every single one individually and then remapping is extremely inefficient and ignores the cause of the problem. I also did not want to delete the itunes library and then add all of the songs back in because I have many custom playlists that I have spent hours creating and I do not want to delete them.
    Is there a better way to fix the problem? Especially if someone knows the root cause?

    I got a procmon log file and examined it. I have the file and I could also provide you with that or screenshots of it.
    There is nothing unusual about it. I can see entires in which CR has successfully opened the report and has cached in a c:\windows\temp.
    However there is one or two non-successful entries that may be related, especially that examining the stack trace brings us to a call to get_ProductLocaleID():
    - A call to read reg entry HKU\S-1-5-20\Software\Business Objects\Suite 12.0\Crystal Reports\Locale fails with NAME NOT FOUND.
    - immediately after that and from the same process (w3wp.ex) there is a call to open directory "c:\" which is logged as ACCESS DENIED.
    Any subsequent unsuccessful calls seem to be results of exception handling in the debug code.
    Does this point to any setup issues with CR? We always run the redistributable x86 runtime when installing it.

  • Invalid table name error ....

    Hi,
    I have written a function which takes table name dynamically and if column emp_id is null for more than 0 records then 1 is returned else 0 .
    My problem is when i compile iam getting invalid table name error .
    Below is my function :
    create or replace
    FUNCTION f_table ( tab_name in varchar2 ) return number is
    l_count number;
    begin
    select count(*) into l_count from tab_name where emp_id is null;
    if l_count >0 then
    return 1;
    else
    return 0;
    end if;
    end;
    Please help ...
    Thanks in advance ..

    Looks fine to me, you could use sign() for the last part:
    CREATE OR REPLACE FUNCTION f_table (tab_name IN VARCHAR2)
    RETURN NUMBER
    IS
      l_count NUMBER;
      v_sql VARCHAR2 (2000);
    BEGIN
      v_sql := 'SELECT COUNT (*) FROM ' || tab_name || ' WHERE emp_id IS NULL';
      EXECUTE IMMEDIATE v_sql
      INTO l_count;
      RETURN sign(l_count);
    END;And if you have large tables, you could consider not counting it all, and do something like this:
    CREATE OR REPLACE FUNCTION f_table (tab_name IN VARCHAR2)
    RETURN NUMBER
    IS
      l_count NUMBER;
      v_sql VARCHAR2 (2000);
    BEGIN
      v_sql := 'SELECT COUNT (*) FROM ' || tab_name || ' WHERE emp_id IS NULL AND rownum = 1';
      EXECUTE IMMEDIATE v_sql
      INTO l_count;
      RETURN l_count;
    END;Regards
    Peter

  • Select * from {tablename}  : invalid table name error

    Hi,
    I want to get data from a table and the table should be passed at runtime from selecting a table from the drop down list.In case of insertion of values I am getting no errors.But when I pass the table name as an argument I am getting invalid table name error.I think there is any syntax errors.I appreciate any help.
    Regards,
    Sivaram

    you cannot use parameter for table name in PreparedStatement.
    you can either generate the sql dynamically, such as String sql="select * from "+tablename, or you can check whether the database vendor has special api for this.

  • Invalid Table Name error in EXECUTE IMMEDIATE

    Hi there.
    I am trying to truncate few debug tables I created a used ago. Refer the code
    declare
    lv_sql varchar2(100) := 'truncate table :b1';
    begin
    for i in (select object_name
                 from all_objects
                where object_type = 'TABLE'
                  and object_name like 'DEBUG_%'
                  and owner = user)
    loop             
       dbms_output.put_line('Table Name: '||i.object_name);
       execute immediate lv_sql using i.object_name;
    end loop;
    end;Seems to be correct (unless I messed something big). And, I get an error message:
    ORA-00903: invalid table name
    ORA-06512: at line 13Any idea? Thanks in advance.

    you can't bind table or column names... try this instead:
    declare lv_sql varchar2(100);
    begin for i in (select object_name
                  from all_objects
                where object_type = 'TABLE'
                  and object_name like 'DEBUG_%'
                  and owner = user) loop
                     dbms_output.put_line('Table Name: '||i.object_name);
       lv_sql := 'truncate table '||i.object_name;
       execute immediate lv_sql;
    end loop;
    end;Message was edited by:
    RACER
    forgot ending  tag

  • Error when updating a verity collection

    Does anyone know what this error means? Happens when updating
    a verity collection.....
    Error Code: File locking/unlocking error
    [VdkError_FileLocking]. (-146)
    Thanks, Joe

    I was able to reproduce this issue in the beta also. The issue has since been fixed. For the time being, it looks like you can just clear (delete) that particular value and re-add it w/ the updated binary.

  • "Invalid file name" error when trying to load the report in IIS/CR 2008

    We have deployed our application to many installations with no problem however in one particular case we get this error whenever we try to load any reports in our web app.
    I made sure that the DefaulAppPool user (Network Service) has read+excute on all folders as well as the IIS anonymous user.
    The anonnymous access is off but Windows Integrated Security is on.
    ASP.NET Version:2.0.50727.3082
    Web.config is healthy and is listed below.
    Other pages in the application which are not depenent on C.R load and run perfectly.
    I don't know what else to check
    thanks for you help
    jeff
    Web.Config Entries related to CR ***********
    <compilation debug="true">
    <assemblies>
    <add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.Framework, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.Viewing.ReportSource, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    </assemblies>
    <buildProviders>
    <add extension=".rpt" type="CrystalDecisions.Web.Compilation.RptBuildProvider, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></buildProviders>
    </compilation>
      ERROR DETAILS *****************
    [COMException (0x800001fb): Invalid file name.]
       CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +95
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +356
    [CrystalReportsException: Load report failed.]
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +418
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.get_ProductLocaleID() +31
       CrystalDecisions.ReportSource.CachedObjectReportSource.GetReport(RequestContext context, Boolean bAddToCacheWhenCreated) +474
       CrystalDecisions.ReportSource.CachedObjectReportSource.InternalGetReport(RequestContext context, Boolean bAddToCacheWhenCreated) +15
       CrystalDecisions.Web.CrystalReportSource.get_ReportDocument() +184
       CrystalReportPageTemplate.OnInit(EventArgs e) in

    I got a procmon log file and examined it. I have the file and I could also provide you with that or screenshots of it.
    There is nothing unusual about it. I can see entires in which CR has successfully opened the report and has cached in a c:\windows\temp.
    However there is one or two non-successful entries that may be related, especially that examining the stack trace brings us to a call to get_ProductLocaleID():
    - A call to read reg entry HKU\S-1-5-20\Software\Business Objects\Suite 12.0\Crystal Reports\Locale fails with NAME NOT FOUND.
    - immediately after that and from the same process (w3wp.ex) there is a call to open directory "c:\" which is logged as ACCESS DENIED.
    Any subsequent unsuccessful calls seem to be results of exception handling in the debug code.
    Does this point to any setup issues with CR? We always run the redistributable x86 runtime when installing it.

  • Errors when 'Updating Objects' during migration from r2 to 3.1 FP1.8

    Has anyone seen errors like this the Update Objects error log file.  I've done 5 or 6 test migrations, and before it was normally working fine, but a couple of times I would get thousands and thousands of rows in the log file such as this:
    ID     Object     Path     Error
    1000023     1000023     ...     
    1000029     1000029     ...     
    1000036     1000036     ...     
    1000069     1000069     ...     
    1000070     1000070     ...     
    1000075     1000075     ...     
    1000107     1000107     ...     
    1000116     1000116     ...
    In testing, there doesn't seem to be much of an indication of any problems, except that recurring schedules don't work after the upgrade, which is a big deal for us as we have about 1000 of them.

    I can't tell what  the compiler is complaining about. I tried a version of your code sample:
    struct Error { Error(int); };
    struct Warning : public Error {
        Warning(void) : Error(-8) {}
    struct Warning_NoNewMilestones : public Warning {
        Warning_NoNewMilestones(void) { }
    int main()
        throw  Warning_NoNewMilestones();
    It compiled without complaint using C++ 5.12 (Studio 12.3).
    There are always two possibilities: The code is OK and you hit a compiler bug, or the code was always invalid but the earlier compiler did not catch the error. Since you seem to have a variety of error messages, the most likely scenario is that the new compiler is catching more errors in your code.
    In general, there is no option to have the compiler accept invalid code. In rare cases, where the error is harmless, or when other compilers typically accept the invalid code, we have an option to allow the code. Please review the list of compiler options in Appendix A of the C++ Users Guide.
    Oracle Solaris Studio 12.3 Information Library
    If the reason for an error message is not obvious, you can post a (preferably small) example that can be compiled to show the error message. Someone in the forum can then probably explain the error, or verify that you hit a compiler bug.
    Here is an example of the badbinaryop error message:
    % cat z.cc
    struct S { };
    int main()
        S s;
        int j = s + 3;
    % CC z.cc
    "z.cc", line 5: Error: The operation "S + int" is illegal.
    1 Error(s) detected.
    I hope the reason for the error is obvious in this case.

  • Error when updating back to ODS using tableview iterator.

    I get this error when I try to execute my bsp page. The page collects a cell value that was edited on the previous page and updates it to the ods.
    The error is "Function not possible in a captured session"
    The termination type was: TH_RES_FREE
    When I debug, every thing looks fine. ITab3 returns values it's supposed to. So I am not sure what's causing it to fail. Any ideas? Thanks.
    Here is my code:
    CLASS cl_htmlb_manager DEFINITION LOAD.
    DATA: event TYPE REF TO cl_htmlb_event.
    event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
    if event->id = 'Update' and event->event_type = 'click'.
      DATA: tv TYPE REF TO cl_htmlb_tableview.
    FIELD-SYMBOLS <i> LIKE LINE OF selectedrowindextable.
    tv ?= cl_htmlb_manager=>get_data( request = runtime->server->request
                                     name = 'tableView'
                                     id = 'tv1' ).
    IF tv IS NOT INITIAL.
    DATA: tv_data TYPE REF TO cl_htmlb_event_tableview.
      tv_data = tv->data.
      refresh itab2.
      refresh itab3.
      call method tv_data->GET_ROWS_SELECTED
      receiving selected_rows = itab2.
      endif.
      data : ind type SELECTEDROW,
              row_s type row.
      if itab2 is not initial.
        data: rw LIKE LINE OF itab.
        loop at itab2 into ind.
        READ TABLE itab INDEX ind-index into
        rw.
        if rw is not initial.
        row_s = rw.
        append row_s to itab3.
        clear row_s.
        endif.
        endloop.
            MODIFY /bic/aNCN_O01300 FROM table itab3.
          ENDIF.
          endif.

    hi Uday,
    This is simple....
    Use the function module
    <b>1) For adding leading zero's or spaces...!</b>
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT   = lw_variable
    IMPORTING
       OUTPUT   = lw_variable.
    <b>2) and for removing leading zero's or spaces.....</b>
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
      EXPORTING
        INPUT   = lw_variable
    IMPORTING
       OUTPUT   = lw_variable.
    Hope this helps.
    <b><i>Do reward each useful answer..!</i></b>
    Thanks,
    Tatvagna.

  • What is the problem with this script. it is giving invalid table name error

    declare
    l_cnt number;
    v_sql varchar2(1000);
    table_name1 varchar2(1000);
    begin
    for i in ( select table_name from all_tables )
    loop
    table_name1 := i.table_name;
    v_sql := 'select count(1) from :table' ;
    execute immediate v_sql into l_cnt using table_name1;
    dbms_output.put_line(l_cnt);
    end loop;
    end;

    the problem is that you can't do that. it's illegal. use dynamic sql.
    http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96624/11_dynam.htm#10961
    see a million other thread here, including this one posted 12 minutes before yours
    Passing Parameter to From clause of SQL

  • IPhoto had an error when updating and now says: "Use the Purchases page to try again."

         Before I went to school yesterday morning I started the iPhoto update so when I got back it would be done. So I looked to see if the update was finshed and it said: "An error haas occured" next to the update button. So I hit update again and it came up with what you see in the picture below.
    So I went to the purchase tab and tried again and the same thing happened again! What do I do? Thank you!

    Hi there!
    Did you get any explanation for that "8.8.8.8-solution"? Very strange but it seemed to work with me but only for some apps.
    My problem doesn't look the same though. I managed to download all big apps like iPhoto and Xcode but the small ones never get installed properly. I see they are being downloaded but after that I get "Installed" button and a message to use purchases tab again and the app is not installed on Applications folder.
    On ML 10.8.0 Mac App Store was downloading and re-downloading these small apps adn the only way I found to solve this was pause the download, add the 8.8.8.8 to DNS and resume. I worked for some apps.
    On ML 10.8.2 Mac App Store behavior is a little different, I only get "Installed" button shortly after having hit "Install" and cannot even pause. After reboot I see an error message in red "An error has ocurred".
    This is not happenning on Snow Leopard, what the heck have they done??
    I tried all suggestions, reset Mac App Store, delete cache folder, I don't have any anti-virus running,
    What's happenning? This is reallly annoying...
    L.

  • Oracle10g - getting error when tried to log in using SQL plus

    I have installed Oracle Database 10g with following settings
    A) In Select Installation Method with basic installation
    1) Global Database Name: orcl
    2) Database Password: srinu
    B) In Database Configuration Assistant shows following information
    Global Database Name: orcl
    System Identifier(SID):orcl
    c) Password management
    User Name SYS and SYSTEM shows accounts are not locked and password shows empty
    I have tried to log in using scott/tiger, SYS/srinu, SYSTEM/srinu, SYS, SYSTEM with providing no pass word
    Could you please provide me the details to connect Databse from SQL plus editor
    I have all the screen shots of the above settings
    I will appreciate any help

    Please find the commands and respective results below
    D:\Documents and Settings\Administrator>SET
    ALLUSERSPROFILE=D:\Documents and Settings\All Users
    APPDATA=D:\Documents and Settings\Administrator\Application Data
    CLIENTNAME=Console
    CommonProgramFiles=D:\Program Files\Common Files
    COMPUTERNAME=SRINU
    ComSpec=D:\WINDOWS.0\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=D:
    HOMEPATH=\Documents and Settings\Administrator
    LOGONSERVER=\\SRINU
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    Path=D:\oracle\product\10.2.0\db_2\bin;D:\WINDOWS.0\system32;D:\WINDOWS.0;D:\WIN
    DOWS.0\System32\Wbem;D:\Program Files\Java\jdk1.5.0_19\bin;D:\Program Files\Apac
    he Software Foundation\Tomcat 6.0\bin;D:\Program Files\Java\jre1.5.0_19\lib;D:\o
    racle\product\10.2.0\db_2\BIN
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PERL5LIB=D:\oracle\product\10.2.0\db_2\perl\5.8.3\lib\MSWin32-x86;D:\oracle\prod
    uct\10.2.0\db_2\perl\5.8.3\lib;D:\oracle\product\10.2.0\db_2\perl\5.8.3\lib\MSWi
    n32-x86;D:\oracle\product\10.2.0\db_2\perl\site\5.8.3;D:\oracle\product\10.2.0\d
    b_2\perl\site\5.8.3\lib;D:\oracle\product\10.2.0\db_2\sysman\admin\scripts;
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 8, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0d08
    ProgramFiles=D:\Program Files
    PROMPT=$P$G
    SESSIONNAME=Console
    SystemDrive=D:
    SystemRoot=D:\WINDOWS.0
    TEMP=D:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    TMP=D:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    USERDOMAIN=SRINU
    USERNAME=Administrator
    USERPROFILE=D:\Documents and Settings\Administrator
    windir=D:\WINDOWS.0
    ============================
    D:\Documents and Settings\Administrator>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-MAY-2010 03:08
    :55
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
    ction
    Start Date 15-MAY-2010 23:44:31
    Uptime 0 days 3 hr. 24 min. 25 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\oracle\product\10.2.0\db_2\network\admin\listener.o
    ra
    Listener Log File D:\oracle\product\10.2.0\db_2\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.51)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    ========================================
    D:\Documents and Settings\Administrator>lsnrctl service
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-MAY-2010 03:10
    :10
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1002 state:ready
    DISPATCHER <machine: SRINU, pid: 3740>
    (ADDRESS=(PROTOCOL=tcp)(HOST=srinu)(PORT=1092))
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    Thanks,
    Srinivas

  • Error ORA-00903 Nome da tabela inválido ( Or in English,Invalid table name)

    Hi people ! Please help me !
    I&acute;m using ODI 10.1.3.4.0 Design and in window MODELS and when I generate service, show this error message:
    java.sql.SLException: ORA-00903: Nome da tabela inv&aacute;lido ( Invalid table name)
    com.sunopsis.tools.core.exception.SnpsRuntimeException: java.sql.SQLException: ORA-00903: nome de tabela inv&aacute;lido
    at com.sunopsis.dwg.dataservices.AbstractWSGenerator.k(AbstractWSGenerator.java)
    at com.sunopsis.dwg.dataservices.AbstractWSGenerator.a(AbstractWSGenerator.java)
    at com.sunopsis.dwg.dataservices.WSGenerationTask.a(WSGenerationTask.java)
    at com.sunopsis.graphical.i.c.b(c.java)
    at com.sunopsis.graphical.tools.utils.swingworker.v.call(v.java)
    at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
    at com.sunopsis.graphical.tools.utils.swingworker.l.run(l.java)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.sql.SQLException: ORA-00903: nome de tabela inv&aacute;lido
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
    at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:113)
    at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:431)
    at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:965)
    at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:463)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1051)
    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1184)
    at com.sunopsis.dwg.snpreference.c.a(c.java)
    at com.sunopsis.dwg.snpreference.c.&lt;init&gt;(c.java)
    at com.sunopsis.dwg.codeinterpretor.g.a(g.java)
    ... 10 more
    Caused by:
    java.sql.SQLException: ORA-00903: nome de tabela inv&aacute;lido
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
    at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:113)
    at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:431)
    at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:965)
    at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:463)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1051)
    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1184)
    at com.sunopsis.dwg.snpreference.c.a(c.java)
    at com.sunopsis.dwg.snpreference.c.&lt;init&gt;(c.java)
    at com.sunopsis.dwg.codeinterpretor.g.a(g.java)
    at com.sunopsis.dwg.dataservices.AbstractWSGenerator.k(AbstractWSGenerator.java)
    at com.sunopsis.dwg.dataservices.AbstractWSGenerator.a(AbstractWSGenerator.java)
    at com.sunopsis.dwg.dataservices.WSGenerationTask.a(WSGenerationTask.java)
    at com.sunopsis.graphical.i.c.b(c.java)
    at com.sunopsis.graphical.tools.utils.swingworker.v.call(v.java)
    at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
    at com.sunopsis.graphical.tools.utils.swingworker.l.run(l.java)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
    at java.lang.Thread.run(Thread.java:595)
    Where can i do to fix this ?
    Help me please ! ;-) I&acute;m waiting for your messages !
    Thanks !

    Hi Cezar,
    I´m using AXIS2 technology and about KM´s i received a documentation of PTS team "Exercises for Lesson 13 Web Services", this is a course doc. But this isn´t said other required KM (CKM) necessary to my implementation, only SKM Oracle. Ok, when i generate this service, now show this message:
    Erro durante a geração do Serviço de dados
    com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Você deve definir uma fonte de dados para o modelo.
    Pelo seu nome você deve ser brasileiro, podemos discutir em portugues mesmo? Facilitaria bastante as coisas. :-)
    Regards ou abraço !

  • ORA-00903: Invalid table name - running Set based mapping

    Hello,
    Using OWB 10.2.04.36 and have created a mapping which reads data from Non-Oracle, ODBC source table, actually a worksheet in an Excel workbook which has been defined/set up using the Heterogeneous Service components.
    I can view the data in the worksheet using the Design Center, Data Object Editor, Data Viewer tab so I know the data is accessible.
    The mapping is performing a Loading Type: INSERT/UPDATE into a View which has an INSTEAD OF INSERT OR UPDATE OR DELETE ON view.
    The mapping validates okay and is deployed successfully.
    Yet when it is run in "Set based" Operating Mode from Control Center Manager the Execution Results show an "ORA-00903: Invalid table name" error is raised.
    You cannot run the mapping in any Row based operating mode as Row based running fails with "ORA:22816: Unsupported feature with RETURNING clause" due to the generated code for the INSERT/UPDATE of the view using a RETURNING clause which is actioned on an INSTEAD OF trigger.
    Looking at the generated package code I can strip out the SELECT statement from the MERGE statement for the alias "MERGE_SUBQUERY" and it runs and displays the expected result, however when the complete MERGE statement is taken and run I get the same ORA-00903 error that was reported in Control Center Manager.
    Any ideas what the problem could be? I have another mapping that reads from the same source Excel workbook/worksheet and INSERT/UPDATE into a table without an INSTEAD OF trigger, this mapping deploys, runs successfully so the issue seems to be with the INSERT/UPDATE into the view. The views are what we require to be populated.
    Thanks.

    Hi,
    But changing V_EMP_DEPT to EMP is not INSERTING/UPDATING to the view V_EMP_DEPT, what you propose is INSERTING/UPDATING into the table EMP. The code was only an example showing that the MERGE does not work when INSERTING/UPDATING into a view based on joining tables. For example say you wanted to INSERT/UPDATE the DNAME of V_EMP_DEPT then the MERGE statement generated by OWB PL/SQL mapping would use the code structure/template:-
    MERGE INTO "V_EMP_DEPT" "V_EMP_DEPT"
       USING (SELECT 5369 "EMPNO",
                     'SMITH' "ENAME",
                     'CLERK' "JOB",
                     7902 "MGR",
                     To_Date('17/12/1980','DD/MM/YYYY') "HIREDATE",
                     800 "SAL",
                     'New Dept Name" "DNAME"
              FROM   Dual,
                     "DEPT" "DEPT"
              WHERE  ("DEPT"."DEPTNO" = 20)) "MERGE_SUBQUERY"
       ON (    "V_EMP_DEPT"."EMPNO" = "MERGE_SUBQUERY"."EMPNO")
       WHEN NOT MATCHED THEN
          INSERT("V_EMP_DEPT"."EMPNO",
                 "V_EMP_DEPT"."ENAME",
                 "V_EMP_DEPT"."JOB",
                 "V_EMP_DEPT"."MGR",
                 "V_EMP_DEPT"."HIREDATE",
                 "V_EMP_DEPT"."SAL",
                 "V_EMP_DEPT"."DNAME")
          VALUES("MERGE_SUBQUERY"."EMPNO",
                 "MERGE_SUBQUERY"."ENAME",
                 "MERGE_SUBQUERY"."JOB",
                 "MERGE_SUBQUERY"."MGR",
                 "MERGE_SUBQUERY"."HIREDATE",
                 "MERGE_SUBQUERY"."SAL",
                 "MERGE_SUBQUERY"."DNAME")
       WHEN MATCHED THEN
          UPDATE
             SET "ENAME" = "MERGE_SUBQUERY"."ENAME",
                 "JOB" = "MERGE_SUBQUERY"."JOB",
                 "MGR" = "MERGE_SUBQUERY"."MGR",
                 "HIREDATE" = "MERGE_SUBQUERY"."HIREDATE",
                 "SAL" = "MERGE_SUBQUERY"."SAL",
                 "DNAME" = "MERGE_SUBQUERY"."DNAME";
    {code}
    This was only an example my target view has a lot more columns being MERGE'd into the view and joined tables.
    Cheers,
    Phil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Invalid Table Name in query

    Hello, I'm trying to create a report on a table name that is in an item. This is the simple query I'm using for the report:
    Select * from :P9_MERGE_TABLE;
    I get an Invalid Table Name error. Is there any way I can build the query to get around this problem.
    thanks,
    Jan

    Certainly you can use a bind variable for a table name when building a dynamic sql query. But this is not exactly what I would call "binding the value of variable to a sql statement. You cannot bind a table name to a static sql query (hope this is the correct wording).
    For example:
    It is ok, to create the following static query:
    SELECT * from emp where empno = :P1_EMPNO;But this will not work
    SELECT * from :P1_TABLE_NAME;In this case, you have to do it the way discussed in this thread.

Maybe you are looking for