Why I get an ORA-04052 error when I try to compile a procedure?

Hello
The following procedure I get an ORA-04052 error when I try to compile the following procedure.
CREATE OR REPLACE PROCEDURE APPS.Find_String (
 pin_referenced_name IN dba_dependencies.referenced_name%TYPE) 

IS

cursor cur_get_dependancy
is
SELECT distinct owner, name, type 
  FROM [email protected]        -- prod.world 
 WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d' 
   AND referenced_type <> 'SYNONYM'
   AND owner <> 'SYS'
 order by name;
 
v_owner  varchar2(40);
v_name   varchar2(50);
v_type   varchar2(40);
 
 
    BEGIN

       dbms_output.put_line(upper(pin_referenced_name)||' is found in the following objects.');
       dbms_output.put_line(' ');
       dbms_output.put_line(RPAD('OWNER', 30, ' ')||RPAD('NAME', 60, ' ')||RPAD('OBJECT TYPE', 30, ' '));
       dbms_output.put_line('-------------------------------------------------------------------------------------------------------------------');

        FOR i IN cur_get_dependancy
        LOOP
            v_owner := RPAD(i.owner, 30, ' ');
            v_name  := RPAD(i.name, 45, ' ');
            v_type  := RPAD(i.type, 30, ' ');
            
           
            dbms_output.put_line(v_owner ||v_name|| v_type);

        END LOOP;

END find_string;
I use the [email protected] link. Commented compiles it procedure for other links of database used in the cursor, including the one to the right of the code 'prod.world '.

What is even more strange is that I took the SELECT statement
SELECT distinct owner, name, type 
  FROM [email protected]        -- prod.world 
 WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d' 
   AND referenced_type <> 'SYNONYM'
   AND owner <> 'SYS'
 order by name;
the procedure and he ran on the command line by using the link to @pinp.world, the SQL statement is fine. But when I tried to compile the procedure above to this exact same SQL query with the same exact link I get the following string of errors.
ORA-04052: error occurred when looking up remote object [email protected]
ORA-00604: error occurred at recursive SQL level 1
ORA-02068: following severe error from PINP
ORA-03113: end-of-file on communication channel
How the link can work very well in a regular SQL but then cause an error when its code compiled in that otherwise compile correctly when you use any link, or even just a simple database. Does anyone have any suggestions?

Hello

Good thounght, but no, there is no privilege SELECT ANY VIEW; SELECT ANY TABLE includes views and materilaized.

I suspect that the problem is something specific to the data dictionary. I have just connected as SYS and granted SELECT ANY TABLE to another user with minimum privileges, X. X, ALL_VIEWS included so all views dba_, including the dba_dependencies. However, X was still unable to dba_dependencies the query either in SQL * more or PL/SQL.

Tags: Database

Similar Questions

  • Error (34.2): PLS-00103: encountered the symbol "END" when you try to compile the procedure.

    Hello

    I get the following error when I try to compile the procedure. I call a package inside this simple procedure. Not sure where I do worng. Here is the error I get.

    Error (34.2): PLS-00103: encountered the symbol "END"?

    Here is my code

    create or replace PROCEDURE BATCH_JOB_CAC_SP

    (

    vstatus OUT NUMBER)

    AS

    vloadserver global_name.global_name%TYPE: = get_dbservername;

    vuseridmod CONSTANT VARCHAR2 (15): = 'SYSTEM '.

    vloadname CONSTANT VARCHAR2 (30): = "BATCH_JOB_CAC_SP";

    v_cnt_upd NUMBER: = 0;

    vrunid NUMBER;

    v_spoutput VARCHAR2 (150);

    CURSOR job_cac

    IS

    SELECT NumCli, job_cac FROM batch_job_cac, batch_recid, jobnum;

    BEGIN

    I'm in job_cac LOOP

    job_cac_pkg.job_cac_valid_sp (i.custnum, i.jobnum, v_spoutput);

    CASE v_spoutput

    WHEN "1" THEN DBMS_OUTPUT. Put_line ('update job ACC');

    WHEN "2" THEN DBMS_OUTPUT. Put_line ('update job ACC');

    WHEN '3' THEN DBMS_OUTPUT. Put_line ('can not update working ACC');

    OF ANOTHER DBMS_OUTPUT. Put_line (v_spoutput);

    END CASE;

    END LOOP;

    EXCEPTION

    WHILE OTHERS THEN

    IF job_cac % isopen THEN

    CLOSE Job_cac;

    END IF;

    ROLLBACK;

    vStatus: = 1;

    LOG_ERROR_SP_NM (vLoadServer, vLoadName, SQLCODE, SQLERRM, vUserIdMod);

    END;

    END BATCH_JOB_CAC_SP;

    Thanks for your help.

    Hello

    You have 2 statements END at the bottom of your code, but only 1 BEGIN statement earlier.

    Losing one of these END States.

  • I get the msvcr100.d11 error when I try to open Lightroom 4.

    I get the msvcr100.d11 error when I try to open Lightroom 4. What can be done. I tried MS Fixit, it uninstalled and said it fixed the registry, but when I reinstalled LR4 he still gave me the missing erroe of MSV CR100.d11.

    What to do next?

    Thank you

    CAL

    You have Visual C++ 2010 Redistributable Package installed.

    If not, you can download the latest version here: http://www.microsoft.com/download/en/details.aspx?id=26999

  • I can't uninstall nero programes from my computer it install to properly dose not work and I get a critical system error when I try to burn lightscribe cover__

    I can't uninstall nero programes from my computer it install to properly dose not work and I get a critical system error when I try to burn the lightscribe cover

    http://www.Nero.com/enu/tools-utilities.html

    Uninstalling a Nero product did not work properly?
    Use Nero General CleanTool to delete all remaining Nero entries from your system.

    Read the above info.

    See you soon.

    Mick Murphy - Microsoft partner

  • Access to the Internet and get a "atl100.dll" error when you try to use Firefox

    I just reinstalled Vista Home Premium and everything was going well for two days, but I can not access the internet regardless of the browser that I use and when I open Firefox, I got an error of "atl100.dll", I am afraid that my files cd, especially the .dll files can be altered, where can I find a good (and costs nothing) copy of the file atl100.dll? Please help as soon as possible. Thank you!!

    Original title: Re-installed Vista Home Premium and cannot access the internet & get a "atl100.dll" error when trying to use Firefox and IE just is not access to the internet either

    Hello

    1 did you changes to the computer before the show?

    2. What is the full error message?

    3. who is the antivirus installed on the computer program?

    4 are you using wired or Wi - Fi to access the Internet?

    5. What is the version of Internet Explorer installed on the computer?

    The possible causes:

    • ATL100.dll file is missing, as it was accidentally deleted from your computer
    • ATL100.dll file is damaged by viruses and your computer cannot access the file.
    • ATL100.dll associated with registry files is corrupt and obsolete.

    Perform the steps:

    Method 1: Perform a SFC scan on your computer to fix the corrupt dll files.

    Reference:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Method 2: Run a scan antivirus on your computer.

    www.Microsoft.com/Security/Scanner

    Note: If infections are detected during the scan, there is a risk of data loss because infected files will be deleted.

    Method 2: Reset of internet explore and check. (If you use Internet Explorer)

    How to reset Internet Explorer settings

    http://support.Microsoft.com/kb/923737

    Warning: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    For more information, see the links:

    The problems of Internet connection

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-Internet-connection-problems

    Windows wireless and wired network connection problems

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    I hope this helps.

  • Get the 194:6 error when you try to deactivate CS4

    I get an 194:6 error when I am trying to deactivate CS4.

    I can't find anything online to CS4 but found this solution for CC:

    1. close the CC application
    2. go to the support/adobe folder
    3 try to delete the content in the files SLCache and SLStore files

    4 run the CC application
    5. try to connect

    Can I use these same steps or what should I do to turn off?

    Thank you!

    Please contact the Support from Adobe on the Customer Contact

  • Get 'Plugin finding Service Error' when I try to check &amp; updated plugins, so I can't even check in order to update. Why?

    Whenever I try to check on the plugins so that I can update them, etc, they start to load and then I get a message 'Service error find Plugin' we encountered an error. Try your request again later. The result is that I can not check for update.

    Tonight I tried to check on the plugins. They have all loading up and showed me the State of updates, etc. Thanks for trying to help me. Don't really know what caused my problem, but it works now.

  • Why do I get a disabled account error when you try to log on Itunes

    When I try to download an app on my Ipad Air2 I keep getting 'Account disabled for security reasons' reset password. I now have about 40 times and I get quite sick. I can connect on apple and Icloud without problem.

    Hello

    Go to bottom of homepage itunes support itunes.

    See you soon

    Brian

  • ORA-12560 error when you try to make a data pump

    I installed oracle 11g and was trying to make a pump of the dev machine data to my computer but when I run the impdp command I get an ORA-12560: TNS:protocol adapter error.

    A co-worker thought that I might need to add a loopback adapter, as this had been the only thing different from his machine, where everything worked fine so I added map of closure, but this still does not work. We thought that perhaps the adapter should be set up first, I so uninstalled the database and installed again, but this also does not work, I still get the same error message.

    Any ideas on what I should try?

    Thanks for any help you can give me.

    Please post the output of the following...

    Set oracle_sid=
    
    Impdp ........
    

    I mean it please just paste in the command prompt... It is a great help

  • I get a code 800706BE error when I try to install Windows Update.

    The last update on my computer for windows KB928439 July 4, 2011 failed and had an error code 800706BE. I have an update successful since then. Looking for reasons, I'll get you into this error code and to know why the update failed to load.

    Unfortunately, I can't find the error code. Can someone help me solve the problem please?

    Original title: unable to update windows

    Hi Jono,

    Follow the troubleshooting steps in this thread to solve the 800706BE error. Measures should also be applied to Vista. You can also find the links below useful:

    Reset the Windows Update components

    Cannot install some programs and updates

    Windows Update scan tool

    Please follow all the steps and if the problem persists, return back and we will be happy to help you.

  • I get a 502 proxy error when I try to access facebook

    When I try to log on to facebook, I get a 502 proxy error that said: there was an invalid response with an upstream server.  Error reading from remote server.  Sometimes it leaves me on my page but doesn't let me do anything else.  This has happened once before and I was able to go to McDonalds WiFi but not my own aerial map.  I called my ISP and they said it was something they had to do to set up with a change in facebook could have done.  12 hours later, the problem has been resolved. It happened again tonight, but support at my ISP said it wasn't them and it is a problem of Microsoft.  What should I do?

    Hello

    Welcome to the Microsoft Community and thanks for posting the question. I see that you are unable to access facebook due to a mistake. Let me help you with the issue.

    1. do you use Internet Explorer to access facebook?

    2. don't you make changes to the computer before the show?

    To resolve this issue, let us try these methods:

    Method 1.

    I suggest you follow the steps in this link: http://answers.microsoft.com/en-us/ie/forum/ie8-windows_other/how-do-i-fix-proxy-error-502/017093f4-cb27-4751-af25-b13315532b8c

    Method 2.

    If you use Internet Explorer to connect to facebook and then follow the steps in this article and then try to connect to facebook.

    Can't access some Web sites in Internet Explorer: http://support.microsoft.com/kb/967897

    Warning: him reset Internet Explorer settings feature might reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    I hope the step preceding helps. If you need further assistance on this particular issue or any other related issue Windows let us know and we will be happy to help you.

    Thank you.

  • I get a region code error when I try to play a new DVD

    I just bought a new DVD of the store, and I get a region code error message.  Laptop computer wants me to change the region code before I can read the DVD.

    Regardless of your operating system go to Device Manager, go to the CD/DVD drives, click the sign more or pointer, right click on the line that appears and click Properties, then go to the region of the DVD tab.

    Now, you have the choice to make, you will see changes remaining X, the value must be 4 if it has not been changed before, if you change you will need to change it back - 3-2, if you get to 0, you're stuck in this region!

    If the specified region is yours then I would take the rear DVD, if the region is other than your, you have the choice above then you must indicate other PC users.

  • Get the "Access denied" error when you try to play all video files in another folder on my external hard drive.

    A couple of days, I've had accidentally one of the folders slipped on my hard drive in the folder above him and was presented with the "Access denied" error messages when I tried the two a) reglisser it out & b) open it from the record she had been driven to (which was not a folder of my making that is a jibberish titled folder containing two .vdm files it contains first)

    After receiving advice of a friend, I did a restore from safe mode on the eve of the day when he moved and he did bring him back with all the files and files in the right place, but now I'm getting an access denied for each file, I try to play. Whether Real Player, Windows Media Player etc none will play.

    Just to test, I slipped a .avi file in the folder to see if he was going to play and he did it can be the folder settings, I'm just hoping that all these files are now not corrupted and unplayable as I have some 180 GB of data in this folder in more than 1000 files.

    Any help is very appreciated.
    Kind regards
    Haley

    Hey HRolston,

    What version/service pack of XP are you using?

    What format of your hard drive is formatted to?

    You can check the version/service pack:

    ·         Click Start

    ·         Right click my computer

    ·         Click on Properties

    ·         On the general tab, under System: you will see your information

    For example: Microsoft Windows XP Professional, Version 2002, Service Pack 3

    You can check what is the format of your hard drive is:

    ·         Click Start

    ·         Click on my computer

    ·         Right click on Local disk (c) (or letter that contains your operating system)

    ·         Click on Properties

    ·         On the general tab, next to file system: you will see the format of your hard drive (Fat32 or NTFS)

    Can't wait to hear back on your part.

    Steven
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • The ORA-12514 error when you try to connect remotely

    I am trying to connect remotely to the 12 c with SQL Developer Oracle database. In order to connect remotely from another computer, on the server that is running Oracle, I opened a port in the firewall of Windows 7. The listener.ora file, as you can see below, has its default listening port set to localhost.  So, I created second listener called REMOTE_LISTENER, to listen on a different port to 1521.  I put it in place of 1531.  That part worked, but now the listener isn't me in due to this error IN what ORA-12514 earphone does not currently of service required to connect descriptor.

    This is the setting of the SQL Developer on the remote computer:

    CONNECT.JPG

    It's the side server, listener.ora file:

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\app\Owner\product\12.1.0\dbhome_1)
    (= Extproc PROGRAM)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\app\Owner\product\12.1.0\dbhome_1\bin\oraclr12.dll")
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    (SERVICE_NAME = editor)
    )
    )

    REMOTE_LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.19)(PORT = 1531))
    (SERVICE_NAME = editor)
    )
    )

    It's the tnsnames.ora file:

    PUBLISHER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.19)(PORT = 1531))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = editor)
    )
    )

    LISTENER_EDITOR =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = editor)
    )
    )


    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    )
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    )
    )

    As you can see, I edit the file tnsnames.ora slightly to allow a connection to the database of the editor, but my edit does not seem to fix anything. You will notice that I also updated the port 1531 to match the listener in the listeners.ora file.  I can not connect with SQL Developer on the client side. I am able to connect locally with the SQL Developer on the server, but I need to access the database from a different computer.   I am able to connect to the database using SQL more on the server.

    I ran lsnrctl service from the command prompt. Here is the output of this command:

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)) (SERVICE_NAM

    E = editor))

    Summary of services...

    Service 'CLRExtProc' has 1 instance (s).

    Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 0 denied: 0

    LOCAL SERVER

    Service "Editor" has 1 instance (s).

    Instance "editor", State LOAN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 0 denied: 0 status: ready

    LOCAL SERVER

    Service 'editorXDB' has 1 instance (s).

    Instance "editor", State LOAN, has 1 operation for this service...

    Managers:

    "D000" put in place: 0 denied: current: 0 0 max: 1022 State: loan

    DISPATCHER < machine: PC SHIERS, pid: 1580 >

    (ADDRESS = (PROTOCOL = tcp) (HOST = Shiers-PC)(PORT=49367))

    Service 'pdborcl' has 1 instance (s).

    Instance "editor", State LOAN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 0 denied: 0 status: ready

    LOCAL SERVER

    The command completed successfully

    As you can see, it shows a service instance named "editor."  It comes, it does not say which port.  You will also notice a service named "editorXDB". Where it went out, I don't know.  It is certainly not in the tnsnames.ora file, and whenever I run the lsnrctl services command port number changes.  In any case, this part, I think, is a red herring.  I've been spinning my wheels on this one for a few days.  If anyone can help me with the steps to connect to a remote computer via SQL Developer, it would be greatly appreciated.

    So now what would be better, it's if we could get the database to dynamically register with the listener as it should so that I get the READY State.  Could help you with this please, then I think we're done.


    What is the setting for the LOCAL_LISTENER parameter in your database?  To keep things simple, it must be null, which allows the DB to-default - use the 1521 port to communicate with the listener for the record.

    See: (exploring the-local_listener-parameters)

    (SID_DESC =

    (SID_NAME = editor)

    (ORACLE_HOME = C:\app\Owner\product\12.1.0\dbhome_1)

    (GLOBAL_NAME = editor)

    )

    )


    BTW, * if * you insist on using a listener.ora and you insist on the use of the SID_LIST section in this document, you should really use SERVICE_NAME instead of SID_NAME.

  • Get "pdftopdf quit unexpectedly" error when you try to print

    I'm trying to print on a printer Epson Stylus Photo R2400 connected to the Mac Mini. I tried to reinstall the printer driver. Did not work. I then redownloaded the sw Epson printer (has removed the printer from the printers installed and selected again - reinstalled in the system preferences, he got an error message that the printer driver is missing some parts and I would like to fix it - I clicked on repair and it was installing something.) Later he has been admitted in the list of printers.

    I also downloaded the application Epson uninstall to completely remove everything and the printer driver before reinstalling the sw. I get the above error and cannot print. I can print on my Brother laser printer, so this isn't in itself a printing problem, but somehow I bollixed the Epson driver or something in the operating system it uses / needs to be able to print.

    The driver appears to be installed correctly, I can * see * the printer - I can open the printer utility application and work in (checking ink, the ink levels, etc.).

    But whenever I try to print on the Epson inkjet, I get the error "pdftopdf quit unexpectedly.

    Would appreciate any suggestions.

    Have you tried everything here

    Get help to solve the problems of printer on your Mac - Apple Support

    including resetting the printing system

    OS X Mavericks: reset the printing system

Maybe you are looking for

  • AT10-A-103 Tablet does not supply power to the top

    Hello I have the following problemmy tablet is not at all responsible. Despite the fact that I was able to turn on all the percentage indicates zero, and time when the connection to the wall outlet immediately turns off. Please, quick help and best r

  • Save image 12 bit &lt; with &gt; imaq

    Following a previous question, I've done here, I discovered that I am able to install and use IMAQ. So I try to do what I need, is to record a 12-bit grayscale with IMAQ image. I read somewhere here that more can I go to save as 16 bit - I hope that

  • I'm an admin but when I select the type of account in the Control Panel, I'm a standard user?

    Hello As the title says. I noticed this problem because as I tried to save a text file as C: and he said something like "you do not have permission... may save in your documents instead?  And I thought, I'm the only user (and first account) on this l

  • Dual Boot Linux & Windows

    DualBOOT Linux & Windowssimple question, looking for a simple answermay or may not Linux & Windows dual Boothave no performance degradation?

  • BlackBerry 8300 smartphones turn off vibration

    I want to disable the vibration before ring, but when I look at the advanced options for the profiles of my ring, it shows only a choice of 1, 2, or 3 vibrations and no option that I can find to turn off atmosphere completely (unless I have the phone