Table not found error in procedure

i am logged in as user A.
Trying to create a procedure in schema TGT by referring to a table in schema STG.
I can directly select from the table such as
select count(*) from STG.TABLE1; by logging in as USER A.
The above runs fine and gives result set.
But when i try to create a procedure such as
create or replace procedure TGT.delme as
v_cnt number;
begin
select count(*) into v_cnt from STG.TABLE1;
dbms_output.put_line('The count is: ' || v_cnt);
end;
It throws compilation error such as "PL/SQL: ORA-00942 table or view does not exist"
Please let me know the reason. thanks.

Hello
You need to grant select privs on STG.TABLE1 directly to TGT i.e. you can't grant them to a role and then grant the role to TGT. For PL/SQL code to access an object, privs need to be granted directly. So at some point you'll need to issue
GRANT SELECT ON STG.TABLE1 TO TGT
/and you'll either need to do that logged in to stg or logged in as another user that has permissions to do this...
HTH
David

Similar Messages

  • Table not found error while importing table defintion in PI 7.1?

    Hi Guys,
    I am trying to import the table structure from DB2 as an external defintion but i am getting the error table not found.
    There are no connection issues with the DB2 and CC is good. Are there any additional settings i need to perform to import the table?
    any help or suggestions would be really appreciated
    Thanks,
    Srini

    Hi Srinivas,
    I think you want to do JDBC lookup.. you must have created the JDBC receiver communication channel. As your communication channel is correct and still you are getting Table not found error.. Check following steps.
    - Check that your Communication channel is activated and working fine.
    - Check that the ID which you are using in JDBC receiver is having proper authorization to import the table definition.
      Just check with all authorization.
    I think the problem is with insufficient authorization to User ID used on JDBC communication channel.
    Thanks,
    Bhupesh.

  • Entry in outbound table not found, Error message no. EO400

    I have created Partner profile and include message in partner profile.  when i have generated IDOc (we60), that time, it is given error ( Entry in outbound table not found---- Error Msg no. EO400).
    Please suggest me solution for the same.
    Kunjan shah

    Hi Kundan,
    can u be more specifidc about ur requirement.So that i can help u out.What all the configs u have done and what is method ur using for generationg outbound idoc.
    Regards,
    nagaraj

  • Table not found error

    Hi all
    I am trying to access tables in SQL server 2000 , from my stateless session bean. The connection s successfull. But i get the following error : please help.
    04:53:19,562 INFO [STDOUT] Error !!java.sql.SQLException: Table not found i
    n statement [select role from login]
    04:53:19,625 INFO [CachedConnectionManager] Closing a connection for you. Plea
    se close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@ada795
    java.lang.Throwable: STACKTRACE
    at org.jboss.resource.connectionmanager.CachedConnectionManager.register
    Connection(CachedConnectionManager.java:290)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateC
    onnection(BaseConnectionManager2.java:400)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2$Connectio
    nManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
    at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(Wrapp
    erDataSource.java:88)
    at mfEJB.mfBean.DBConnection(Unknown Source)
    at mfEJB.mfBean.getrole(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
    tatelessSessionContainer.java:237)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
    ke(CachedConnectionInterceptor.java:158)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
    elessSessionInstanceInterceptor.java:169)
    at org.jboss.ws.server.ServiceEndpointInterceptor.invoke(ServiceEndpoint
    Interceptor.java:64)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
    Interceptor.java:63)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
    rceptor.java:121)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
    torCMT.java:350)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
    81)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
    java:168)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
    ryFinderInterceptor.java:136)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:6
    48)
    at org.jboss.ejb.Container.invoke(Container.java:954)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
    er.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
    java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(Loca
    lInvoker.java:169)
    at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
    at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerIntercepto
    r.java:206)
    at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
    a:192)
    at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
    java:61)
    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:7
    0)
    at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessi
    onInterceptor.java:112)
    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
    at $Proxy104.getrole(Unknown Source)
    at org.apache.jsp.logincheck_jsp._jspService(logincheck_jsp.java:57)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:332)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    14)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
    lter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
    yAssociationValve.java:175)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
    e.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
    rocessConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
    int.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
    kerThread.java:112)
    at java.lang.Thread.run(Thread.java:595)
    Here is the code :
    Connection con=null;
         public Connection DBConnection()
              try
              /*Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
                   String sourceURL = new String("jdbc:microsoft:sqlserver://localhost:1433;database=mfdb;selectMethod=cursor");//user=sa;password=tina");
    con = DriverManager.getConnection(sourceURL,"sa","tina");
                        InitialContext ct=new InitialContext();
              DataSource ds=(DataSource)ct.lookup("java:comp/env/jdbc/microfinance");
              con=ds.getConnection();
              catch(Exception e)
                   System.out.println("Error in connection!!!"+ e);
              return con;
    public int getrole(String luname,String lpass)
    int role=0;
    try
         con=DBConnection();
         if (con != null)
              System.out.println("hi tina !!!");
         Statement pst1 = null;
         String str = "select role from login where userid='" + luname + "' and password='" + lpass + "'";
         pst1=con.createStatement();
                   ResultSet rs=pst1.executeQuery(str);
                   while(rs.next())
                   role=rs.getInt(1);
         catch(Exception e)
         System.out.println("Error !!" + e);
         return role;
    I am able to get the results from the table with another java program. What change should i make when using a statless session bean?
    Thanks in advance

    I am working on SSAS i developed an datacube and deployed succesfully but when i call that SSAS through my SSIS it says that some table is not
    found but the table exist in my SSAS module.
    All things are working fine previous days suddenly this hapened kindly help me in this issue.
    You must understand that there is no concept of tables in SSAS and there is nothing called as a SSAS module. It is called SSAS cubes which has dimensions and facts. What went wrong? What process is scheduled on the SSASA objects?
    Please vote as helpful or mark as answer, if it helps
    Cheers, Raunak | t: @raunakjhawar |
    My Blog

  • Entry Point not found error: The procedure entry point ADiAdID_AcquireMatchSlotIfNecessary could not be located in the dynamic link library iAdCore.dll.

    I deleted everything iTunes and re-installed.  This still comes up.

    Tear it down again and delete the named folders as set out in the second box of   Troubleshooting issues with iTunes for Windows updates before reinstalling
    tt2

  • I was stupid enough to try to update my iTunes, now I'm getting Entry Point not found error:

    I was stupid enough to try to update my iTunes, I have troubles every single time i've tried to do this.  In the past I've been able to fix it using the support forum, not this time.  So now I'm getting Entry Point not found error:
    The procedure entry point ADiAdID_AcquireMatchSlotIfNecessary could not be located in the dynamic link library iAdCore.dll
    I've uninstalled, and reinstalled MULTIPLE times. Removed all apple related components,  ran as administrator, repaier .net frame etc etc etc....
    Still get this error when opening itunes. And after I close that error, I receive Error 7 - itunes was not installed correctly....please reinstall.
    WHY is this ALWAYS such a pain?  Andriod phone here I come...

    See Troubleshooting issues with iTunes for Windows updates.
    Try the repair tip in the third box first.
    tt2

  • Enprise Table Not Found?

    Hello,
    I am trying to use the Enprise tables in a matrix but keep getting Table Not Found error? Is there a special way for adding Enprise tables as SAPbouiCOM,DBDatasource? I also tried the table name without the "@"
    Appreciate any help,
    Mike
    Error Message:
    SQL Table:

    Hi Mike,
    As Jim has noted in his post, those tables are standalone SQL tables and not user-defined tables. Most Enprise tables tend to be standalone SQL tables and the DBDataSource object can't be used to read this type of data. You can use either a DataTable bound to a matrix or grid to query the table or use UserDataSources and populate these from a recordset. Since version 8.81, the DataTable option is typically the best option as it's faster.
    Kind Regards,
    Owen

  • Status 29: Error in ALE service : Entry in outbound table not found

    IDoc: 0000000003560240 Status 29: Error in ALE service
    Entry in outbound table not found
    No partner profile (outbound parameter) could be found using the following key:
    /0000000000/LS//YHROT_XXM_IN////
    This refers to the key fields in table EDP13:
    RCVPRN  Partner number
    RCVPRT  Partner type
    RCVPFC  Partner function
    MESTYP  Logical message
    MESTYP  Message code
    MESCOD  Message function
    TEST    Test indicator
    Procedure
    Please check the EDI partner profiles.
    But The IDOC befor this and after this is successfully run.
    And even after reprocessing also it is giving same error.
    After checking Contorl record, we found that there is no data in receipant Info in Partner Tab.
    What would be the issue.
    Please suggest. 
    Thanks & Regards,
    Monika

    Hi ,
    Thanks for your reply.
    We are using one custom message type.
    I would like to give you example of exact scenario.
    Suppose my IDOC has large amount of segments then ,
    It is dividing as
    1st IDOC : Control record ....header and data segments
    2nd IDOC : only data segment
    3rd IDOc : only data segment
    4th IDOC : data segment and Trailer.
    In this way, I am getting all my 4 IDOCs in error.
    What should be d reason?
    your help will be grateful.
    Hi Everyone,
    any update?
    Edited by: Monika.Dhumal on Feb 14, 2012 11:49 AM

  • I have a error message when i turn on my computer. AppleSyncNotifier.exe - Entry Point Not Found. The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll. Any thoughts?

    I have a error message when i turn on my computer. AppleSyncNotifier.exe - Entry Point Not Found. The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll.
    Any thoughts?

    Found this fix here which worked for me with a similar problem.
    https://discussions.apple.com/thread/3196594?start=0&tstart=0
    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Reboot and see if all is well.

  • I keep getting the error message apple sync notifier.exe entry point not found.  The procedure entry point xmitextreaderconstname could not be located in the dynamic link library libxml2.dll, what do I do to get rid of this?

    I keep getting the error message apple sync notifier.exe entry point not found.  The procedure entry point xmitextreaderconstname could not be located in the dynamic link library libxml2.dll, what do I do to get rid of this?

    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Restart the programme all should be well
    In case that your OS is (64 bit)
    1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    2. Copy file "SQLite3.dll"
    3. Now paste it in the folder  C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
    4. Restart the programme, it should not display that message, it should be clear.
    Good Luck

  • Getting idoc error - Entry in outbound table not found- in outbound scenari

    hi,
    while generating idoc for outbound idoc to file scenario - i am getting error
    "Entry in outbound table not found" (29 - error in ALE service)
    Diagnosis
    No partner profile (outbound parameter) could be found using the following key:
    /C100/KU//WP_EAN////
    This refers to the key fields in table EDP13:
    RCVPRN  Partner number
    RCVPRT  Partner type
    RCVPFC  Partner function
    MESTYP  Logical message
    MESTYP  Message code
    but already entry has been maintained in partner profiles for the corresponding message.
    same setup is working for other message types. pls let me know what might be the problem

    Hi,
    Check whether partner name is correct or not in WE20/outbound parameters undoer Logical System.
    Regards,
    Sreenivas.

  • "Error in function: Add Table not found [131-183]" - TDS Addon Version 3.16

    While loading TDS Addon Version: 3.16 I am getting the undermentioned error:
    "Error in function: Add Table not found [131-183]"
    SAP B1, 2005B, PL 39.
    It also shows the message that it is successfully installed. When I try to access any of the screen the above messge pops up.
    This is very urgent kindly help me out.
    Edited by: Philip Eller on May 16, 2008 8:50 AM
    Edited by: Philip Eller on May 30, 2008 8:41 AM*

    Dear,
    The addon is a third party addon which was developed by CitiXSys. so the support is provided by the partner who developed the addon.
    Go to the vendor Citixys for further support will give you a quick reply.
    Regards
    Apple

  • Viewing form in Preview Mode Failed. Error: Table not found  [131-183]

    Hi,
    I have created a user form in screen painter in SBODemo. Created UDT, UDF & Registered UDO through my SDK code.
    Everything works fine.
    But when i run my addon on any other DB, and open my custom form it gives an error : Table Not Found.
    I have checked the UDT's , UDF's & my UDO, all are in place and getting created in the DB.
    I tried checking the Form again in screen painter everything is in line. But when i try preview in screen painter it gives an error
    Viewing form in Preview Mode Failed. Error: Table not found  [131-183].
    I can't figure out the issue, i have checked my codes & forms many times.
    Regards
    John

    hi john smith,
    Check your screen painter, probably some fields are defined without the "@" character in front.
    for fields, check the "U_".
    nd.Q

  • After installing the current version of iTunes, I get an AppleSyncNotifier.exe - Entry Point Not Found error. It says "The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll."

    After installing the current version of iTunes, I get an AppleSyncNotifier.exe - Entry Point Not Found error. It says "The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll." Kindly advice a process to get rid of this error, without losing my files on the iTunes.

    Hi, I get the same error EVERY time iTunes updates.
    I have to do the fix that is suggested in this topic (cut and paste the sqlite3.dll)
    My Question:
    Since this happens every time iTunes updates...... Do I have to remove SQlite3.dll from the "apple application support" folder....... so that the sqlite3.dll is only located in the "mobile device support" folder?????
    It is getting really annoying to have to do the "cut and paste" fix every time iTunes updates.
    Thank You,
    Steve

  • Error - Table not found

    Hi Guys,
    Error - TABLLE NOT FOUND
    We are working on discovery server which comes preconfigured from SAP.
    I am able to work on the standard repositories like products available on this server for syndication and importing, but when I am trying to create the new repository I am getting the error TABLE NOT FOUND. Getting this error after entering the DBMS Server, Login Details and Repository Name and Port details.
    Thanks,
    MS

    Hi colleagues
    You should check follow:
    - DBMS-user can connect to DBMS from your workstation(where you run SAP MDM Console)
    - DBMS-user has premissions(grants) according to "installation guide".
    - restart SAP MDM Server
    - update DBMS Settings
    - create new repository
    Regards
    Kanstantsin

Maybe you are looking for

  • How to process the PDF files at one time

    Hello, I'm using WebDynpro for ABAP and Adobe Interactive Forms as offline forms. I collect PDF files from received e-mails. I want them to be taken in at one time. (for example, system job read PDF files and create data in ERP, or I upload the files

  • Converting Old Files to iWeb

    I am not a website designer but years ago I learned to use BBedit to write code to produce my current website. I want to make so many significant changes to my site now (www.healingcommunication.com) that I've been thinking about using iWeb to do it-

  • With out source system creation we have transported all the flow

    Hi all, With out source system creation in Quality we have transported all the data flow now is there any option to map the source system to transported flow. Regards Kiran Kumar

  • Two-Page Spread in Photo Creations

    I cannot get a 2-page spread to view in my Photo Book using Photo Creations. Can anybody help please? Úna This question was solved. View Solution.

  • Generate PDF from VC without using BI-JAVA or PDF convertor on client side

    Hi there I need to generate a PDF from Visual Composer a pdf final result,  generated by several BAPIS, several tables , logo, static text, etc but I do not want to use the two solutions below described. I want to use a component or something install