Procedure Issue (Table/View Doesn't Exist)

Hi,
I am running procedure its giving error (table/view doesn't exist) but if i run plsql block then noo error. Please note there is no grants issue.
please see.
1) Successfull case:
BEGIN
EXECUTE IMMEDIATE 'TRUNCATE TABLE BILLPRO.LRDA1';
EXECUTE IMMEDIATE 'TRUNCATE TABLE BILLPRO.LRDA2';
EXECUTE IMMEDIATE 'TRUNCATE TABLE BILLPRO.LINERENTDISCOUNTB';
END;
2)Un-Successfull case: Table / View doesnt exist.
CREATE OR REPLACE PROCEDURE mobi_test AS
BEGIN
EXECUTE IMMEDIATE 'TRUNCATE TABLE BILLPRO.LRDA1';
EXECUTE IMMEDIATE 'TRUNCATE TABLE BILLPRO.LRDA2';
EXECUTE IMMEDIATE 'TRUNCATE TABLE BILLPRO.LINERENTDISCOUNTB';
END;
BEGIN
mobi_test;
END;
Any help.
Regards,
Irfan Ahmad

The problem is that your grants for your user to be able to truncate those tables is given through a role. An anonymous block will use role based permissions so you're ok that way. But when it's a stored procedure, role based permissions don't apply.
To solve it, grant delete/truncate permissions to that user directly.

Similar Messages

  • Table or view doesn't exist when deploying a mapping

    Hello,
    OWB and BI in general is new for me. I have read the tutorials but I have a problem and I don't understand how to solve it :
    I have 2 databases in 2 different services :
    - dbsrc (where I have tabsrc with 2 columns)
    - dbtarget (where I have tabtarget with 1 column)
    OWB connect correctly to dbsrc
    I have made a mapping between dbsrc and dbtarget and I have just joined the second column of dbsrc with the unique column of dbtarget.
    All the steps before deploying are ok but when I deployed I have a warning saying that table or view doesn't exist.
    I have used the debugger and it seems that owb searches dbsrc in the service dbtarget ... I have copied my table from dbsrc to dbtarget and in this case the deployement and the execution of the mapping runs correctly.
    What I'm doing wrong ? Why OWB isn't able to see that my table source is in another database/services ?
    Thanks in advance for your help.

    Hi,
    In design center, you need two oracle dbs: one as data source (with a location pointing to you src db) and one as dwh target (with a location pointing to your target db).
    Your mapping has to be in the target db. In the mapping, you use the target table from the target db and the source table from the source db.
    When you deploy the mapping using control center manager, owb will create a database link for you from the target to the source db. The mapping will read the data through that database link and write it into the target table.
    Regards,
    Carsten.

  • Table or View doesn't exists error on Dashboard

    Dear Gurus,
    I can open online my repository, with import & view the tables and the views successfully.
    But when I open it in dashboard, it show error:
    ORA-00942: table or view does not exist
    I confuse because I can open it in repository and it ok.
    I have also check tnsnames.ora in server to make sure the DSN is correct.
    Is there any step I should do?
    Thank you
    JOE

    JoeSSI wrote:
    Dear Gurus,
    I can open online my repository, with import & view the tables and the views successfully.
    But when I open it in dashboard, it show error:
    ORA-00942: table or view does not exist
    I confuse because I can open it in repository and it ok.
    I have also check tnsnames.ora in server to make sure the DSN is correct.
    Is there any step I should do?
    Thank you
    JOEMay be u dont have permission to that particular Subject Area...please check all the permissions...and also check whether u renamed any thing after importing into Physical layer...

  • How to Activate the Table which Doesn't Exist - Can I create Table in SE11

    Hi Gurus,
    I am a BASIS Person ..so, I don't have much idea about ABAP Developement side . But, while applying patches to one of  the SAP Component, I get the following error message ( usr\sap\trans\log ) :
    Phase Import_Proper
    >>>
    SAPAIBIIP7.BID
    1 ED0301 *************************************************************************
    1 EDO578XFollowing objects not activated/deleted or activated/deleted w. warning:
    1EEDO519X"Table" "WRMA_S_RESULT_DATA" could not be activated
    1EEDO519 "Table Type" "WRMA_TT_UPDTAB_DSO" could not be activated
    1 ED0313 (E- Row type WRMA_S_RESULT_DATA is not active or does not exist )
    2WEDO517 "Domain" "WRMA_KAPPL" was activated (error in the dependencies)
    2WEDO517 "Data Element" "/RTF/DE_FISCPER" was activated (error in the dependencies)
    2WEDO517 "Data Element" "/RTF/DE_FISCVARNT" was activated (error in the dependencies)
    2WEDO517 "Data Element" "WRMA_DE_RCLASV" was activated (error in the dependencies)
    2WEDO517 "Data Element" "WRMA_DE_RMA_AMNT" was activated (error in the dependencies)
    2WEDO517 "Data Element" "WRMA_DE_RMA_INV" was activated (error in the dependencies)
    2WEDO517 "Data Element" "WRMA_DE_RMA_OBJ" was activated (error in the dependencies)
    2WEDO549 "Table" "V_WRMA_TRCLASVER" was activated (warning for the dependent tables)
    2WEDO549 "Table" "V_WRMA_TRCLASVPE" was activated (warning for the dependent tables)
    2WEDO549 "Table" "V_WRMA_TRCLPERCL" was activated (warning for the dependent tables)
    2WEDO549 "Table" "WRMA_S_STOCK_SELECTION_DATE" was activated (warning for the dependent tables)
    <<<
    Now, I checked Domain WRMA_KAPPL  in SE11 and it diplays that it is partially active :
    " The obeject is marked partially active for the following reasons :
       Errors occured when adjusting dependent Objects to a change. Some of the dependent objects could not
       be adjusted to this change. To adjust the dependent objects, you must perform the following actions
       the next time you activate this object.
                        - SET THE SYNP TIME STAMP IN THE RUNTIME OBJECT OFALL DEPENDENT OBJECTS
    My question is - how to activate this SYNP Time Stamp.. ?
                          - Once I activate this SYNP Time Stamp.. How do I activate this ..in SE11 or some other
                            TCode..
    Any / ALL Help is highy appreciated and would be rewarded with appropriate Reward Points.
    Thanks,
    Regards,
    - Ishan
    >> Ok, Now I forcefully activated the Domain and then all the 5  Data Elements in SE11 ...now I have error
         that table  WRMA_S_RESULT_DATA  and WRMA_TT_UPDTAB_DSO Could not be activated...
         ..And in SE11 > Input the first / Second Table  > Excute > Output : Table Does not Exist !!!
          - Now, How do I activate something which does not exist in the first place ?
        Any Input about this ?
    Thanks,
    Regards,
    - Ishan
    Edited by: ISHAN P on Jun 19, 2008 3:44 PM

    Read note 1152612 - Incorrect component type in structure WRMA_S_RESULT_DATA.
    The error occurs in Release BI_CONT 703 Support Package 9.
    If you require an advance correction for Support Package 9, make the following manual changes if the InfoObject 0TCTLSTCHG is inactive in your system.
    1. Use transaction RSA1 to call the Data Warehousing Workbench.
    2. Check whether the InfoObject 0TCTLSTCHG was already activated by the compilation process the first time you called transaction RSA1.  You can use transaction RSD1 to check this by entering 0TCTLSTCHG in the "InfoObject" field and choosing "Display".  Proceed as follows if the InfoObject is still not active:
    3. Go to BI Content activation.
    4. Select "Object Types".
    5. Open the "InfoObjects" tree and select "Objects".
    6. Search for the InfoObject 0TCTLSTCHG and select it.
    7. Transfer the object and activate it.
    These steps activate the required component type /BI0/OITCTLSTCHG. You can check again in transaction RSD1 to ensure that the InfoObject 0TCTLSTCHG is available as active.
    Jacek Fornalczyk

  • Can't display COPA datasource...message table entry doesn't exist

    Hi,
    I am trying to display my COPA datasource and it's giving me a message stating it can't because a table entry is missing.  In debugging I can see the table entry it's reading is tkebwlgn.
    I've tried everything, but cannot display/delete this.
    Any suggestions?
    Thanks.

    I resolved this by executing RSA6 and making a "change" by selecting a field as selectible and saving.  Then went back in and unchecked it and saved it.
    The table entry then appeared and the datasource could be viewed.
    Just in case someone else comes across this problem.

  • Reg: Table doesn't exist -

    Hi Experts,
    I'm getting this error - 'Table or View doesn't exist' when the table <tt>DBA_DML_LOCKS</tt> is used inside a (cursor) package but the same works fine when run independently.
    I'm quite sure that I'm lacking some knowledge there. Can anybody please help me in that?
    CREATE OR REPLACE PROCEDURE dml_locks
    AUTHID CURRENT_USER --DEFINER
    IS
       CURSOR cur_locks
       IS
          SELECT ROW_NUMBER () OVER (PARTITION BY b.session_id ORDER BY b.name)
                    "Rno",
                 a.sid "session_id",
                 a.schemaname,
                 b.name "table_name",
                 b.mode_held "lock_mode_held",
                 a.osuser,
                 a.machine,
                 a.program
            FROM v$session a, dba_dml_locks b
           WHERE a.sid = b.session_id;
    BEGIN
       FOR i IN cur_locks
       LOOP
           --HTP.PRINT (i.rno || '---' || i.session_id);
           htp.print('*');
       END LOOP;
    EXCEPTION
       WHEN OTHERS
       THEN
          HTP.PRINT ('Error - ' || DBMS_UTILITY.format_error_backtrace);
    END;Is it something related to the rights - Definer or Current User?
    Checked this similar thread but couldn't understand - table/view does not exist using dbms_sql
    Help much appreciated!
    - Ranit (on Oracle Database 10g Enterprise Edition Release *10.2.0.5.0* - 64bi )

    ranit B wrote:
    Karthick_Arp wrote:
    Grant to dictionary objects is assigned through a ROLE to your user. You need to have grant assigned explicitly to your user to access the object from within a PL/SQL code.Ohhh... nice to hear that. Thanks!
    Can't I use <tt>AUTHID</tt> to resolve this?
    And I'm not getting - what is the difference between Grants through ROLE and explicitly assigned Grants? I mean to say finally all give Grants only right??
    Edited by: ranit B on May 6, 2013 12:41 PMhttp://asktom.oracle.com/pls/asktom/ASKTOM.download_file?p_file=6551289900368934430

  • ORA-00942: the table or view does not exist

    Hello!!!!
    I have tree simple mappings each one with only one dimention and sometimes external or normal tables. One of them is ok but I can´t deploy the others.
    In Controle Center I have this messege: the table or view does not exist.
    I genereted both queries and run in SQL navigator with the same message.
    I realized that I can set the schema properties for external tables but I couldn´t do the same for Dimension (or I don´t know where I can do this).
    I believe that I have to set this propertie for dimension to have my mapping running ok, but I realized that the only one mapping that is ok does not have this propertie set.
    Where is the problem?!!?!?!?
    I validated these mapping and they have warnnings about column length, no errors.
    In the previous OWB version I used to set this propertie, but in 10.2 I don´t know if is realy necessary.

    Try to open the package body with a tool like TOAD and try to compile it. When you use TOAD the process stops where the error is. Then you know which table or view doesn't exist for the OWB. If the table or view does exist then it is almost certainly a missing privilege that prevents you from succesfully deploying your mapping. If the table or view does not exist then you've got to deploy the underlying (bound) table.
    Regards,
    Jörg

  • Table Or View Does Not Exists..

    Hi!
    I'm having a peculear problem with a query which is generating from Hybernet. The query seems to me ok. But, it is not running when i run the following script -
    select schedfltle0_.CARR_IATA_CD as col_0_0_,
           schedfltle0_.FLT_NBR as col_1_0_,
           schedfltle0_.ORIG_ARPT_CD as col_2_0_,
           schedfltle0_.DEST_ARPT_CD as col_3_0_
    from ODS_ADMIN1.SCHED_FLT_LEG schedfltle0_,
    left outer join ODS_ADMIN1.OPS_FLT_LEG opsfltlegs1_
    on schedfltle0_.FLT_NBR=opsfltlegs1_.FLT_NBR
    and schedfltle0_.CARR_IATA_CD=opsfltlegs1_.CARR_IATA_CD
    and schedfltle0_.FLT_LCL_ORIG_DT=opsfltlegs1_.FLT_LCL_ORIG_DT
    and schedfltle0_.SCHED_LEG_NBR=opsfltlegs1_.SCHED_LEG_NBR
    right outer join ODS_ADMIN1.ARPT_GATE arptgate2_
    on opsfltlegs1_.ARR_GATE_NBR=arptgate2_.GATE_NM
    and opsfltlegs1_.DEST_ARPT_CD=arptgate2_.ARPT_IATA_CD
    right outer join ODS_ADMIN1.ACFT_EQUIP acftequip3_
    on opsfltlegs1_.EQUIP_CD=acftequip3_.EQUIP_CD,
         ODS_ADMIN1.EQUIP_SEAT_CONFIG equipseatc4_,
         ODS_ADMIN1.STN stn5_,
         ODS_ADMIN1.STN stn6_,
         ODS_ADMIN1.ACFT_TAIL acfttail7_,
         ODS_ADMIN1.ACFT_NOSE acftnose8_ ,
         ODS_ADMIN1.OPS_FLT_LEG opsfltlegs1_,
         ODS_ADMIN1.ARPT_GATE arptgate2_,
         ODS_ADMIN1.ACFT_EQUIP acftequip3_
    where (acfttail7_.SEAT_CONFIG_CD=equipseatc4_.SEAT_CONFIG_CD )
    AND(equipseatc4_.CARR_IATA_CD=opsfltlegs1_.CARR_IATA_CD )
    AND(opsfltlegs1_.ORIG_ARPT_CD=stn5_.STN_CD )
    AND(opsfltlegs1_.DEST_ARPT_CD=stn6_.STN_CD )
    AND(acfttail7_.TAIL_NBR=acftnose8_.TAIL_NBR )
    AND(acftnose8_.NOSE_NBR=opsfltlegs1_.NOSE_NBR )
    AND(schedfltle0_.FLT_NBR='966' )
    AND(schedfltle0_.CARR_IATA_CD=upper('UA'))
    AND(trunc(schedfltle0_.LCL_DEP_DTM)=trunc(decode('GMT' , 'LCL' , to_date('23-JAN-2007' , 'DD-MON-YYYY'), schedfltle0_.LCL_DEP_DTM)))
    AND(trunc(schedfltle0_.GMT_DEP_DTM)=trunc(decode('GMT' , 'GMT' , to_date('23-JAN-2007' , 'DD-MON-YYYY'), schedfltle0_.GMT_DEP_DTM)))
    AND(schedfltle0_.ORIG_ARPT_CD=upper('ORD'))
    AND(schedfltle0_.DEST_ARPT_CD=upper('IAD'))It gives - ODS_ADMIN1.OPS_FLT_LEG opsfltlegs1_ - table or view doesn't exists.
    But, when i run this code - it executes properly -
    select schedfltle0_.CARR_IATA_CD as col_0_0_,
           schedfltle0_.FLT_NBR as col_1_0_,
           schedfltle0_.ORIG_ARPT_CD as col_2_0_,
           schedfltle0_.DEST_ARPT_CD as col_3_0_
    from ODS_ADMIN1.SCHED_FLT_LEG schedfltle0_,
    /*left outer join ODS_ADMIN1.OPS_FLT_LEG opsfltlegs1_
    on schedfltle0_.FLT_NBR=opsfltlegs1_.FLT_NBR
    and schedfltle0_.CARR_IATA_CD=opsfltlegs1_.CARR_IATA_CD
    and schedfltle0_.FLT_LCL_ORIG_DT=opsfltlegs1_.FLT_LCL_ORIG_DT
    and schedfltle0_.SCHED_LEG_NBR=opsfltlegs1_.SCHED_LEG_NBR,*/
    /*right outer join ODS_ADMIN1.ARPT_GATE arptgate2_
    on opsfltlegs1_.ARR_GATE_NBR=arptgate2_.GATE_NM
    and opsfltlegs1_.DEST_ARPT_CD=arptgate2_.ARPT_IATA_CD
    right outer join ODS_ADMIN1.ACFT_EQUIP acftequip3_
    on opsfltlegs1_.EQUIP_CD=acftequip3_.EQUIP_CD, */
         ODS_ADMIN1.EQUIP_SEAT_CONFIG equipseatc4_,
         ODS_ADMIN1.STN stn5_,
         ODS_ADMIN1.STN stn6_,
         ODS_ADMIN1.ACFT_TAIL acfttail7_,
         ODS_ADMIN1.ACFT_NOSE acftnose8_ ,
         ODS_ADMIN1.OPS_FLT_LEG opsfltlegs1_,
         ODS_ADMIN1.ARPT_GATE arptgate2_,
         ODS_ADMIN1.ACFT_EQUIP acftequip3_
    where (acfttail7_.SEAT_CONFIG_CD=equipseatc4_.SEAT_CONFIG_CD )
    AND(equipseatc4_.CARR_IATA_CD=opsfltlegs1_.CARR_IATA_CD )
    AND(opsfltlegs1_.ORIG_ARPT_CD=stn5_.STN_CD )
    AND(opsfltlegs1_.DEST_ARPT_CD=stn6_.STN_CD )
    AND(acfttail7_.TAIL_NBR=acftnose8_.TAIL_NBR )
    AND(acftnose8_.NOSE_NBR=opsfltlegs1_.NOSE_NBR )
    AND(schedfltle0_.FLT_NBR='966' )
    AND(schedfltle0_.CARR_IATA_CD=upper('UA'))
    AND(trunc(schedfltle0_.LCL_DEP_DTM)=trunc(decode('GMT' , 'LCL' , to_date('23-JAN-2007' , 'DD-MON-YYYY'), schedfltle0_.LCL_DEP_DTM)))
    AND(trunc(schedfltle0_.GMT_DEP_DTM)=trunc(decode('GMT' , 'GMT' , to_date('23-JAN-2007' , 'DD-MON-YYYY'), schedfltle0_.GMT_DEP_DTM)))
    AND(schedfltle0_.ORIG_ARPT_CD=upper('ORD'))
    AND(schedfltle0_.DEST_ARPT_CD=upper('IAD')) AND
    schedfltle0_.carr_iata_cd (+) = opsfltlegs1_.carr_iata_cd AND
    schedfltle0_.flt_nbr (+) = opsfltlegs1_.flt_nbr AND
    schedfltle0_.flt_lcl_orig_dt (+) = opsfltlegs1_.flt_lcl_orig_dt AND
    schedfltle0_.orig_arpt_cd (+) = opsfltlegs1_.orig_arpt_cd AND
    opsfltlegs1_.EQUIP_CD = acftequip3_.EQUIP_CD (+) AND
    opsfltlegs1_.orig_arpt_cd = arptgate2_.arpt_iata_cd (+) AND
    opsfltlegs1_.dep_gate_nbr = arptgate2_.gate_nm (+)Why is this? Anyone have any idea? Thanks in advance for your reply.
    Regards.
    Satyaki De.

    This is working instantly --
    select schedfltle0_.CARR_IATA_CD as col_0_0_,
           schedfltle0_.FLT_NBR as col_1_0_,
           schedfltle0_.ORIG_ARPT_CD as col_2_0_,
           schedfltle0_.DEST_ARPT_CD as col_3_0_
    from ODS_ADMIN1.SCHED_FLT_LEG schedfltle0_,
    /*left outer join ODS_ADMIN1.OPS_FLT_LEG opsfltlegs1_
    on schedfltle0_.FLT_NBR=opsfltlegs1_.FLT_NBR
    and schedfltle0_.CARR_IATA_CD=opsfltlegs1_.CARR_IATA_CD
    and schedfltle0_.FLT_LCL_ORIG_DT=opsfltlegs1_.FLT_LCL_ORIG_DT
    and schedfltle0_.SCHED_LEG_NBR=opsfltlegs1_.SCHED_LEG_NBR
    right outer join ODS_ADMIN1.ARPT_GATE arptgate2_
    on opsfltlegs1_.ARR_GATE_NBR=arptgate2_.GATE_NM
    and opsfltlegs1_.DEST_ARPT_CD=arptgate2_.ARPT_IATA_CD
    right outer join ODS_ADMIN1.ACFT_EQUIP acftequip3_
    on opsfltlegs1_.EQUIP_CD=acftequip3_.EQUIP_CD,*/
         ODS_ADMIN1.EQUIP_SEAT_CONFIG equipseatc4_,
         ODS_ADMIN1.STN stn5_,
         ODS_ADMIN1.STN stn6_,
         ODS_ADMIN1.ACFT_TAIL acfttail7_,
         ODS_ADMIN1.ACFT_NOSE acftnose8_ ,
         ODS_ADMIN1.OPS_FLT_LEG opsfltlegs1_,
         ODS_ADMIN1.ARPT_GATE arptgate2_,
         ODS_ADMIN1.ACFT_EQUIP acftequip3_
    where (acfttail7_.SEAT_CONFIG_CD=equipseatc4_.SEAT_CONFIG_CD )
    AND(equipseatc4_.CARR_IATA_CD=opsfltlegs1_.CARR_IATA_CD )
    AND(opsfltlegs1_.ORIG_ARPT_CD=stn5_.STN_CD )
    AND(opsfltlegs1_.DEST_ARPT_CD=stn6_.STN_CD )
    AND(acfttail7_.TAIL_NBR=acftnose8_.TAIL_NBR )
    AND(acftnose8_.NOSE_NBR=opsfltlegs1_.NOSE_NBR )
    AND(schedfltle0_.FLT_NBR='922' )
    AND(schedfltle0_.CARR_IATA_CD=upper('UA'))
    AND(trunc(schedfltle0_.LCL_DEP_DTM)=trunc(decode('GMT' , 'LCL' , to_date('23-JAN-2007' , 'DD-MON-YYYY'), schedfltle0_.LCL_DEP_DTM)))
    AND(trunc(schedfltle0_.GMT_DEP_DTM)=trunc(decode('GMT' , 'GMT' , to_date('23-JAN-2007' , 'DD-MON-YYYY'), schedfltle0_.GMT_DEP_DTM)))
    AND(schedfltle0_.ORIG_ARPT_CD=upper('ORD'))
    AND(schedfltle0_.DEST_ARPT_CD=upper('IAD')) AND
    schedfltle0_.carr_iata_cd (+) = opsfltlegs1_.carr_iata_cd AND
    schedfltle0_.flt_nbr (+) = opsfltlegs1_.flt_nbr AND
    schedfltle0_.flt_lcl_orig_dt (+) = opsfltlegs1_.flt_lcl_orig_dt AND
    schedfltle0_.orig_arpt_cd (+) = opsfltlegs1_.orig_arpt_cd AND
    opsfltlegs1_.EQUIP_CD = acftequip3_.EQUIP_CD (+) AND
    opsfltlegs1_.orig_arpt_cd = arptgate2_.arpt_iata_cd (+) AND
    opsfltlegs1_.dep_gate_nbr = arptgate2_.gate_nm (+)
    COL_ COL_1 COL COL
    UA   922   ORD IADBu, when i execute the following one - it is not returning any value --
    select schedfltle0_.CARR_IATA_CD as col_0_0_,
           schedfltle0_.FLT_NBR as col_1_0_,
           schedfltle0_.ORIG_ARPT_CD as col_2_0_,
           schedfltle0_.DEST_ARPT_CD as col_3_0_
    from ODS_ADMIN1.SCHED_FLT_LEG schedfltle0_
    left outer join ODS_ADMIN1.OPS_FLT_LEG opsfltlegs1_
    on schedfltle0_.FLT_NBR=opsfltlegs1_.FLT_NBR
    and schedfltle0_.CARR_IATA_CD=opsfltlegs1_.CARR_IATA_CD
    and schedfltle0_.FLT_LCL_ORIG_DT=opsfltlegs1_.FLT_LCL_ORIG_DT
    and schedfltle0_.SCHED_LEG_NBR=opsfltlegs1_.SCHED_LEG_NBR
    right outer join ODS_ADMIN1.ARPT_GATE arptgate2_
    on opsfltlegs1_.ARR_GATE_NBR=arptgate2_.GATE_NM
    and opsfltlegs1_.DEST_ARPT_CD=arptgate2_.ARPT_IATA_CD
    right outer join ODS_ADMIN1.ACFT_EQUIP acftequip3_
    on opsfltlegs1_.EQUIP_CD=acftequip3_.EQUIP_CD,
         ODS_ADMIN1.EQUIP_SEAT_CONFIG equipseatc4_,
         ODS_ADMIN1.STN stn5_,
         ODS_ADMIN1.STN stn6_,
         ODS_ADMIN1.ACFT_TAIL acfttail7_,
         ODS_ADMIN1.ACFT_NOSE acftnose8_ ,
         ODS_ADMIN1.OPS_FLT_LEG opsfltlegs1_,
         ODS_ADMIN1.ARPT_GATE arptgate2_,
         ODS_ADMIN1.ACFT_EQUIP acftequip3_
    where (acfttail7_.SEAT_CONFIG_CD=equipseatc4_.SEAT_CONFIG_CD )
    AND(equipseatc4_.CARR_IATA_CD=opsfltlegs1_.CARR_IATA_CD )
    AND(opsfltlegs1_.ORIG_ARPT_CD=stn5_.STN_CD )
    AND(opsfltlegs1_.DEST_ARPT_CD=stn6_.STN_CD )
    AND(acfttail7_.TAIL_NBR=acftnose8_.TAIL_NBR )
    AND(acftnose8_.NOSE_NBR=opsfltlegs1_.NOSE_NBR )
    AND(schedfltle0_.FLT_NBR='922' )
    AND(schedfltle0_.CARR_IATA_CD=upper('UA'))
    AND(trunc(schedfltle0_.LCL_DEP_DTM)=trunc(decode('GMT' , 'LCL' , to_date('23-JAN-2007' , 'DD-MON-YYYY'), schedfltle0_.LCL_DEP_DTM)))
    AND(trunc(schedfltle0_.GMT_DEP_DTM)=trunc(decode('GMT' , 'GMT' , to_date('23-JAN-2007' , 'DD-MON-YYYY'), schedfltle0_.GMT_DEP_DTM)))
    AND(schedfltle0_.ORIG_ARPT_CD=upper('ORD'))
    AND(schedfltle0_.DEST_ARPT_CD=upper('IAD'))Anybody have any idea?
    Regards.
    Satyaki De.

  • SQLException...table or view does not exist.

    Hi... experts...
    I am trying to insert values from jsp page to my oracle database. I am using oracle 11g on linux operating system.
    now on clicking the apply changes button i am getting following error...
    SQLException caught: ORA-00942: table or view does not exist.
    Awaiting for response.
    Thanks.

    "Table or view doesn't exist" - it just doesn't get any more clear than that. Possible reasons:
    1 you have a typo in the table name
    2 your database user cannot see the table (rights problem)
    3 you are connecting to the wrong database/schema!
    Whatever the case, its a booboo you made; Java is not lying to you and you are not going to pin this on a bug somewhere that is not under your control. Find your incredibly simple mistake and correct it.
    And believe me, plenty of people did #3.

  • CREATE MATERIALIZED VIEW - TABLE OR VIEW DOES NOT EXIST

    Anybody can help me? Why could this happen?
    SQL> CREATE MATERIALIZED VIEW LESTARI.YIELD_BI_ACTUAL_PLAN_BLOK_MVU
    2 TABLESPACE MVU
    3 NOCACHE
    4 NOPARALLEL
    5 REFRESH FORCE
    6 START WITH TO_DATE('19-APR-2005 18:00:00','DD-MON-YYYY HH24:MI:SS')
    7 WITH PRIMARY KEY
    8 USING DEFAULT LOCAL ROLLBACK SEGMENT
    9 DISABLE QUERY REWRITE AS
    10 SELECT PT,
    11 TO_CHAR(TANGGAL,'MMYYYY')PERIODE,
    12 AFDELING,
    13 BLOK,
    14 TH_TANAM,
    15 SUM(TON_TERIMA) TON_TERIMA,
    16 SUM(JJG_TERIMA) JJG_TERIMA,
    17 SUM(JJG_PANEN) JJG_PANEN,
    18 SUM(HK) HK, (LS_TANAM),
    19 DECODE(LS_TANAM,0,0,ROUND((SUM(TON_TERIMA)/(LS_TANAM)),2)) YIELD,
    20 HITUNG_STANDARD_YIELD (PT, TH_TANAM,TO_CHAR(TANGGAL,'MMYYYY')) YIELD_STD,
    21 DECODE(SUM(JJG_TERIMA),0,0,ROUND(SUM(TON_TERIMA)*1000/SUM(JJG_TERIMA),2)) BJR,
    22 HITUNG_STANDARD_BJR_TH_TANAM(PT,TH_TANAM) BJR_STD,
    23 DECODE(SUM(HK),0,0,ROUND((SUM(TON_TERIMA)*1000/SUM(HK)),2)) OP,
    24 DECODE(SUM(JJG_TERIMA),0,0,HITUNG_STANDARD_OUTPUT_PEMANEN(ROUND(SUM(TON_TERIMA)*1000/SUM(JJG_
    TERIMA),2))) OP_STD,
    25 MAX(POTENSI) POTENSI,
    26 MAX(DIS_POT) DIS_POT,
    27 DECODE(LS_TANAM,0,0,ROUND(MAX(POTENSI)*MAX(DIS_POT)/100/LS_TANAM,2)) YIELD_POTENSI,
    28 MAX(RAPIM) RAPIM,
    29 MAX(DIS_RAPIM) DIS_RAPIM,
    30 DECODE(LS_TANAM,0,0,ROUND(MAX(RAPIM)*MAX(DIS_RAPIM)/100/LS_TANAM,2)) YIELD_RAPIM
    31 FROM (SELECT B.*, A.LS_TANAM, A.TH_TANAM, POTENSI, DIS_POT, RAPIM, DIS_RAPIM
    32 FROM ASSET_BLOK_VU A, T_TANAMAN B, T_PLAN_TANAMAN C, T_DISTRIBUSI_PLAN_TANAMAN D
    33 WHERE A.PT = B.PT
    34 AND B.PT = C.PT
    35 AND C.PT = D.PT
    36 AND A.KD_AFD = B.AFDELING
    37 AND B.AFDELING = C.AFDELING
    38 AND A.KD_BLOK = B.BLOK
    39 AND B.BLOK = C.BLOK
    40 AND A.TAHUN = TO_CHAR(TANGGAL,'RRRR')
    41 AND TO_CHAR(TANGGAL,'MM')=D.BULAN
    42 AND A.TAHUN = D.TAHUN
    43 AND A.TAHUN = C.TAHUN
    44 AND A.LS_TANAM > 0) A
    45 GROUP BY PT, TO_CHAR(TANGGAL,'MMYYYY'), AFDELING, BLOK, LS_TANAM, TH_TANAM
    46 /
    CREATE MATERIALIZED VIEW LESTARI.YIELD_BI_ACTUAL_PLAN_BLOK_MVU
    ERROR AT LINE 1:
    ORA-00942: TABLE OR VIEW DOES NOT EXIST

    32 FROM ASSET_BLOK_VU A, T_TANAMAN B, T_PLAN_TANAMAN C, T_DISTRIBUSI_PLAN_TANAMAN D
    Either of these tables/views do not exist. Check the spelling of the table/view names

  • Table SVERS does not exist

    Hi All,
    I am attempting a re-install of SAP 4.6D kernel and Oracle 8.1.7 after tables were created under wrong schema. Now that, that is sorted out I am running into a few issues with DBPRELOAD_IND_ORA when creating the database using r3setup. It attempts to run the oradbuser.sql file and problems seem to start from there on.
    oradbuser.sql runs here......
    using following Parameters:
    .  Oracle SID:                         <SID>
    .  Oracle Version:                     8.1.7.4.0
    .  Parametervalue os_authent_prefix:   OPS$
    .  Database User (Schema):             SAPR3
    .  SAP R/3 Administrator:              OPS$<SID>ADM
    Error accessing PRODUCT_USER_PROFILE
    Warning:  Product user profile information not loaded!
    You may need to run PUPBLD.SQL as SYSTEM
    it then starts the oracle listener successfully...
    tests the database connection...
    gives the error message below
    db_con_connect (con_name=R/3)
    find_con found the following connection for reuse:
    Thu Oct 18 16:07:10 2007
    ***LOG BZA=> table SVERS      doesn't exist on database [dblink  2056 ]
    INFO 2007-10-18 16:07:10
        Creating Data Dictionary Synonyms for R/3
    with a return code of 1078, which is somthing to do with the init.ora file???
    ERROR 2007-10-18 16:07:27 DBPRELOAD_IND_ORA InternalInstallationDo:0
        SvrmgrDo: Phase failed.
    ERROR 2007-10-18 16:07:27 DBPRELOAD_IND_ORA InternalInstallationDo:0
        Startup Database with error: 1078.
    ERROR 2007-10-18 16:07:27 DBPRELOAD_IND_ORA InstallationDo:0
        Phase failed.
    ERROR 2007-10-18 16:07:28 Main
        Installation aborted.
    your help is much appreciated
    Mani

    Mani,
    What does your Oracle alert log tell you? (/oracle/SRD/saptrace/background -> alert_SID.log) Does it tell you which parameter is causing issues? Maybe a more usable ORA error code?
    At a quick glance, it looks like it's not finding the SID of the system. What does your initSID.ora file look like? If this is UNIX, is it a permissions issue?
    Cheers,
    Tim

  • Restrict number of rows in table view

    Can a table view has only as many rows as the actual rows in the underlying data structure. Actually, I have a table view with less than 5 rows, but the tableview shows like 15+ rows with the rest of the rows as blank(alternative colors for each empty rows). I know there is a style which can be applied to make the remaining empty rows show with white background. However, the height of the table view doesn't reduce to show only the actual number of rows. Is there a way we can restrict the height of the table view to the height of actual rows it has?
    Thanks.

    Hi. Add a listener to your data. Use prefheight to restrict the table height:
            table.setPrefHeight(data.size() * 25 + 25);  
            data.addListener(new ListChangeListener<Person> ()  {
                public void onChanged(ListChangeListener.Change<? extends Person> c) {
                   table.setPrefHeight(data.size() * 25 + 25);
            });It works only when data.size() * 25 + 25 < scene.height

  • View does not exist

    I am accessing the database from PL/SQL developer.Ceratin views are created. I am able to access only some views in the SQL command window in APEX. For those views, queries are executing. Some views are not accessible.It reports the error: table/view does not exist.Entire code that is executing in PL/SQl developer is not executing in APEX. I m using objectnameowner.viewname in my query.
    For Ex: select * from apps. MTL_EAM_AT_NUM_ALL_V works.
    select * from apps.MTL_EAM_AT_ACTIVITY_V does not work. Shows the error: Table/view does not exist.

    The view is not in the list. The view used in the query that is executing is also not in the list.I have got 3 schemas in apex, and a view (query on a view) which works in a particular schema does not work in the other.(even after prefixing with the owner name).
    select * from apps. MTL_EAM_AT_NUM_ALL_V works when a particular schema is chosen.
    select * from apps.MTL_EAM_AT_ACTIVITY_V does not work when the same schema as above is chosen.It works in a different schema.

  • Import problem of tables/views not installed

    Hello,
    need urgent advice to the below error encountered whiel trying to import database using imp. receive tables/views does not exist/not installed. grateful for advice/solution.
    Thanks
    >>
    Username: sys
    Password:
    Connected to: Oracle8 Enterprise Edition Release 8.0.4.0.0 - Production
    PL/SQL Release 8.0.4.0.0 - Production
    IMP-00003: ORACLE error 942 encountered
    ORA-00942: table or view does not exist
    IMP-00021: operating system error - error code (dec 2, hex 0x2)
    IMP-00023: Import views not installed, please notify your DBA
    IMP-00000: Import terminated unsuccessfully
    $ exit
    script done on Fri Aug 10 08:07:37 2001
    null

    import utility script may not be existing in full or the version of import utility that is needed to import from that perticular export not exists at all.
    In other words you should check which version of export file you are trying to import ?
    for example if you are trying an import on oracle version 7.3.4. you need to have same version of oracle to import. If not you should run relevant catexp.sql files before you import.
    if still confused contact in this forum again.

  • Table doesn't exist error while creating a procedure

    The query executes and retrieve records but when the query is put into a procedure , the procedure is giving error (4/30 PL/SQL: ORA-00942: table or view does not exist) during creation. The snurk_cmms_csht008_rfs_misc is a public synonym refering to db2 database. How to make the procedure to get created ?
    SQL> CREATE PROCEDURE TEST AS
    2 I VARCHAR2(20);
    3 BEGIN
    4 SELECT CD_PLANT INTO I FROM snurk_cmms_csht008_rfs_misc
    5 WHERE ROWNUM <2;
    6 END;
    7 /
    Warning: Procedure created with compilation errors.
    SQL> SHOW ERRORS;
    Errors for PROCEDURE TEST:
    LINE/COL ERROR
    4/2 PL/SQL: SQL Statement ignored
    4/30 PL/SQL: ORA-00942: table or view does not exist
    SQL> SHOW USER;
    USER is "ORDV_SRC"
    SQL> SELECT CD_PLANT FROM snurk_cmms_csht008_rfs_misc WHERE ROWNUM <2;
    CD_PL
    AP01A
    thanks,
    Vinodh

    Create a local view on the remote table (using the synonym).
    Then you can reference the view always from your procedure.
    Of cause during the creation of the view the database link to the remote DB must exist.
    But later you can change your procedure/package even if the remote connection is not established.
    Edited by: Sven W. on Sep 8, 2011 2:04 PM

Maybe you are looking for

  • Problem (Process Break) in Creating GRPOs thru DI API Object

    Dear All, I am creating around 12000 GRPOs thru object of GRPO. But the process breaks after processing the few hundred of GRPOs and get an error related to memory insufficient. I am woriking on SERVER and it has 18 GB of RAM. I am releasing the GRPO

  • How do youi call an EJB from a composite app

    I created a simple composite application, called testserve. Here is the entire body of the implementation class, testserveBeanImpl.java package com.sap.demo.testserve.modeled.appsrv.testserve; import com.sap.demo.*; @com.sap.caf.dt.CAFWebService(name

  • Crop tool making image disappear

    After upgrading to new iMac with OSX 10.8, using the crop tool in PSE 6 makes the image disappear. How to fix?

  • Envy 15 J143na Touch stops working at random

    Touchscreen stops working at random. Have re installted HID driver, both grahics card drivers & run all Win 8.1 updates. Will always start again after reboot or after closing & opening lid. Latop is 6 months old. Used to do it once  amonth but now ge

  • Keyframing Transform results in wobbles?

    I may have asked this question months ago, but I couldn't find a solution. I've been doing this for years in Premiere Pro.  Just basic keyframing on position and scale.  Premiere Pro gives you the option of adding ease in/ease out on all the keyframe