The remote package using DB Link component

I have a package in a database defined in this way:

CREATE or REPLACE PACKAGE xx_dummy_package BODY
IS

Dummy_procedure RETURN NUMBER of FUNCTION
IS

BEGIN

DBMS_OUTPUT. Put_line ("I am now in dummy_procedure");
RETURN 1;

END dummy_procedure;

END xx_dummy_package;


And I'm calling that package from an external database by using the following code:


DECLARE

NUM NUMBER;

BEGIN

-User package db link function
NUM: = [email protected]_PROCEDURE ();

END;

But I get the following error:

ORA-06550: line 7, column 12:
PLS-00352: cannot access another database ' APPSRHREM. XX_DUMMY_PACKAGE. DUMMY_PROCEDURE'
ORA-06550: line 7, column 12:
PLS-00201: identifier ' APPS@APPSRHREM. XX_DUMMY_PACKAGE. DUMMY_PROCEDURE' must be declared
ORA-06550: line 7, column 5:
PL/SQL: Statement ignored

Someone knows why this phenomenon happens?

Thanks :)

You're not wrong is

[email protected]_PROCEDURE ();

It's

Owner.package_name.function_or_procedure@db_links

as

Apps.xx_dummy_package.dummy_procedure@DBLINK)

HTH
Antonio NAVARRO

Tags: Database

Similar Questions

  • Create the remote database using dblink view

    Hello

    I have a small question for you.

    Is it possible to create the remote database using dblink view? Following syntax error

    create discover ViewName@DbLinkDame (ColumnName) as
    (select 1 double)

    "ORA-00905: lack of keyword.

    Is this possible at all?
    And particularly - is this possible when the remote database is MSSQL and I use heterogeneous services?

    I really appreciate your help
    Best regards
    Wojtek

    Published by: wojpik on October 21, 2009 03:59

    This is a workaround for a remote Oracle database (use the queue of work), however:

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:597877500346143250

    but I have no idea if something similar is possible for MSSQL...

  • Help! Save on the remote server has broken links to images

    Well, I (now) know it was a stupid thing to do - but surely there must be an easy way to fix... !?

    I usually have to 'PUT' html on the remote server files, once they have been registered locally. But I keep frustrated all dependency files you download, then... I "discovered" the 'SAVE to REMOTE SERVER' command, and this allows to save my file html directly to the server. I was asked if I wanted to update all the links - and I clicked on YES (doh!)

    Now all my images and links are broken.

    I know it's just a single page-, but it contains a number of links and images. Also, this page uses a template and the images/links from the model content in a file are also broken. (The actual model file and all the other pages of the site are okay)

    'Undo' didn't work

    Does anyone know a quick way to solve this problem?

    I'm using Macromedia Dreamweaver MX 2004

    MANY thanks in advance,

    Rich

    Go in Edition > Preferences > Site >

    Under dependent files, you must have two checkmarks.

    In this way, that you will be asked each time to say YES or NO to the dependent files.

    I hope this helps.

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB
    http://ALT-Web.blogspot.com

  • Cannot run VI on the Remote Machine using VI Server

    Hello!

    I'm trying to run a VI on a remote machine using VI server, but not luck. I used the 'remote execution VI' off the coast of LV inter II. I have check and follow up of the VI server configuration. I also tried to turn firewall on the PC but still nothing. Can't think of anything whatsoever that judgment of the VI to run on the remote PC. Any help will be appreciated. Thank you!

    Hi KowdTek,

    You do something like that?

    Thanks for choosing National instruments.

    Aaron Peña

    National Instruments

    Technical sales engineer

    http://www.NI.com/support

  • To download to the remote server using FlashFXP: new images will not upload. [was: Question]

    I use Dreamweaver CS4 in my school.  We create the Web site using a local drive and use FlashFXP to upload to a remote server.  Suddenly, the new images we have inserted on the site will not transfer.  The show upward in mode live view and when test us them in different browsers, but will not transfer out of the queue and will be not displayed on the Web site.  It is only with the new images we have created; Download all the old images.  Something is corrupt in our records, our code, or is FlashFXP?

    This looks like a problem with permissions on the server.

    Looks like that is not allowing you to replace the files that already exist.

  • IF ELSE condition in the ODI package using

    Hello

    I want to use if condition in package ODI.
    My exact requirement is that if a column in a table has a certain value, the value "XYZ" only then I must go forward in the case otherwise I do not want to run the workflow of the entire package.
    I can get the count in a variable through count (*) where the value = "XYZ". But how to use this value to go further (if it's not 0 then flow should start on the other end).

    Thank you
    Sudeep

    Sudeep salvation,

    You have what we call 'Evaluate' type of variable in ODI to implement so, another condition.

    You must drag and drop the same variable for your package, make it as variable Evaluate (check in the Properties tab below) and that verification of the status of 'superior' to 0, the OK should do the extra step.

    Thank you
    Guru

  • Limitation for the remote directory using FTP transport?

    Hello guys,.

    I have a proxy service that is responsible for pulling a file from a remote AIX server and I would like to learn more about the configuration of the remote directory.

    I use FTP transport and I set up a service account with my own name to user/pass.

    I noticed that I can just use directories below my home\user. Is this a limitation or miss me something?

    Follow my setup:

    Protocol: ftp
    endpoint uri: ftp://myhostname/

    I would use a directory that is not inside my home\user. That is to say: / info/export

    But if I set up ftp://myhostname/info/export trying to read/home/user/info/export


    See the following: do not pull on a remote using transport FTP file


    Thanks in advance,

    Davinod

    I have not tested, but have you tried to give the relative path.

    for example, your home username is/home/user, and you need access to the/app/test, try to give... /... / App/test in the FTP transport uri URI part.

  • Connection to the remote database using Oracle 11 g Builder

    Hi all

    This could me stupid question, but I have installed Oracle Forms and reports 11g on Win 7 machine. I copied the file "tnsnames.ora' on the record ' ORACLE_HOME/Network/Admin". We use Oracle EBS R12 and I want to create a new report using 11 g.

    Using the report wizard after providing a simple query, we need to connect to the database. And even after the entry of TNS, I am getting error connecting to the database, following
    "REP-0501: the specified database can be connected.
    "ORA-12154: TNS: could not resolve the connect identifier specified.

    I am able to connect to the same database using the Report Builder (10.1.2.0). Is there another place where I need to set the TNS entry? How can I solve this error? Please guide...

    Kind regards
    Priyanka

    Hello

    In forms and reports 11g, default defined in tnsnames.ora is: ORACLE_INSTANCE\config.
    Please note that the ORACLE_INSTANCE is not the same as ORACLE_HOME.
    Example:
    ORACLE_HOME = D:\Oracle\Middleware\as_1
    ORACLE_INSTANCE = D:\Oracle\Middleware\instances\asinst_1

    If you set the admin TNS_ADMIN variable in the registry, you can point to a new location for tnsnames.ora

    Kind regards
    Alex

    If someone useful or appropriate please mark accordingly.

  • SFTP a file on the remote server using ODI

    Hello

    I have my ODI client on windows and you have created a file on remote unix server using autonomous agent.

    I need to move the file from unix server to the location of sftp. I think that this should be possible, as I am to short odisftpput tool using autonomous agent of the unix to windows server.

    However the execution fails saying not able to connect to SFTP server.

    I have cross checked connection sftp unix manually, that works.

    Please add entries / suggestions on this subject.

    Thank you

    Vinay

    Hi Vinay

    When the STRICT_HOSTKEY_CHECKING is set to YES, the authentication is performed for this remote SSH host key in the file specified in the KNOWNHOSTS_FILE parameter. The Known_Hosts file contains the keys of all remote computers host that the user trusts. If this argument is missing, then the /.ssh/Known_hosts file is used as the Known_Hosts file if it exists.

    Check with your administrator for this info. Also once run the sftp while setting on no. STRICT_HOSTKEY_CHECKING.

    Concerning

    Christian love

  • I downloaded the master collection using a link provided by adobe... everything was ok... I thought... but I can not find the icons on mydesktop... anywhere where they could be...? case 0215613345... I was on the cloud, but not anymore. I got the costume

    I downloaded cs5 master collection... used set - up.exe... all went well... but now I can not find the master collection on the desktop or in the programs... where would he have...? Help

    If windows, check your directory for x 86/adobe programs.

    If mac, check your directory/applications/adobe.

  • rendering of images stored in the remote path (Jdev 11.4)

    Hello

    I want to make the image of the remote path using the adf:image tag, but I am not able to view the images of the remote path.
    If I place the images in the images web - inf I'm able to display.

    Please let me know if there is a way to display images of the remote path except the path of the application?

    Thank you.

    Hello

    If the image is in the remote path then you need to create an imageservlet which will have a path as a parameter and returns the binary stream of the output image.
    would help to see if more

    package servlets;
    
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.PrintWriter;
    
    import java.net.URL;
    
    import java.util.Date;
    import java.util.HashMap;
    import java.util.Map;
    
    import javax.servlet.*;
    import javax.servlet.http.*;
    
    import oracle.adf.model.BindingContext;
    
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.uicli.binding.JUApplication;
    
    public class GetResource extends HttpServlet {
    
        private Map mimetypes;
    
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
            logFine("GetResource servlet initialized");
            registerMimeTypes();
            logFine("GetResource servlet initialized");
        }
    
        private void logFine(String msg) {
            System.out.println("[" + new Date() + "]  : " +  msg);
        }
        private void registerMimeTypes() {
            mimetypes = new HashMap();
            mimetypes.put("bmp", "image/bmp");
            mimetypes.put("gif", "image/gif");
            mimetypes.put("jpe", "image/jpeg");
            mimetypes.put("jpeg", "image/jpeg");
            mimetypes.put("jpg", "image/jpeg");
            mimetypes.put("png", "image/png");
            mimetypes.put("tiff", "image/tiff");
            mimetypes.put("tif", "image/tiff");
            mimetypes.put("ico", "image/x-icon");
            mimetypes.put("txt", "text/plain");
            mimetypes.put("pdf", "application/pdf");
        }
    
        public void doGet(HttpServletRequest request,
                          HttpServletResponse response) throws ServletException,
                                                               IOException {
            processRequest(request, response);
        }
    
        public void doPost(HttpServletRequest request,
                           HttpServletResponse response) throws ServletException,
                                                                IOException {
            processRequest(request, response);
        }
    
        private void processRequest(HttpServletRequest request,
                                    HttpServletResponse response) throws ServletException,
                                                                         IOException {
            logFine("========get resource request========");
            Map map = getQueryStringMap(request);
            String path = map.get("path");
    
            logFine("requested resource : " + path);
            /*URL u = new URL("file://" + url.toString());*/
            File file=new File(path.toString());
            String _file = file.getName();
            logFine("URL : " + path);
            logFine("File Name : " + _file);
            String _ext =
                _file.substring(_file.lastIndexOf(".") + 1, _file.length());
            String mimeType = mimetypes.get(_ext.toLowerCase());
            if (mimeType == null) {
                logFine("Mime Type was null");
                return;
            }
            logFine("Mime Type of file : " + mimeType);
            response.setContentType(mimeType);
            InputStream is = new FileInputStream(url.toString());
            OutputStream out = response.getOutputStream();
            byte b[] = new byte[1024];
            int read = -1;
            logFine("start read-write operation");
            while ((read = is.read(b)) != -1) {
                out.write(b, 0, read);
            }
            logFine("end read-write operation");
            is.close();
            out.close();
            logFine("========end resource request========");
        }
    
        public Map getQueryStringMap(HttpServletRequest request) {
            Map map = new HashMap();
            if (request.getQueryString() != null) {
                if (request.getQueryString().isEmpty())
                    return map;
                String[] params = request.getQueryString().split("&");
                for (String param : params) {
                    String name = param.split("=")[0];
                    String value = param.split("=")[1];
                    map.put(name, value);
                }
            }
            return map;
        }
    }
    

    Then in any image tag use it like this

    
    

    Kind regards
    David

  • NewSubproperty with a guy named the remote execution

    Hello

    I have a problem in TestSTand 4.1 with the help of the API NewSubProperty call on a remote system. I use it to create a StationGlobal on the fly with a named type. TestStand configuration is identical on both machines, and it includes the TypePalette with the type named in question.

    When you run the sequence locally on the remote computer (using the standard operator Interface), it works. When you run it under the engine remotely, it gives an error that the type is not known. NewSubProperty of other calls by using built-in types work very well.

    Any ideas?

    Best regards

    Peter

    It is a known problem that will be fixed in a future version of TestStand. Remote engine does not load files of type palette that is why the type is not found. To work around the problem, you should be able to load the pallets of type directly by calling the function LoadTypePaletteFilesEx of the remote your sequence engine API.

  • Error connecting to the remote computer.

    Hello

    I am able to connect to the VIRTUAL LAN, but when connecting to the remote computer using mstsc, I get the error below 'a problem caused blocking the program works correctly. Windows will close the program and notify you if a solution is available. »

    Here are my details of machine:

    Name of the operating system Microsoft Windows 7 Home Basic
    Version 6.1.7601 Service Pack 1 Build 7601
    System model Inspiron N5010
    System Type x 64-based PC

    Antivirus:
    internet security Kaspersky 2012

    Please come back if you need furthur information.

    Could you please getback me ASAP.

    Thank you & best regards

    Anil.

    Hi Anil,

    You try to connect a Windows 7 Home Basic?

    You cannot use Remote Desktop connection to connect to computers that are running Windows 7 Starter Edition, Windows 7 Home Basic or Windows 7 Edition Home Premium.

    See the following Microsoft article.

    Remote Desktop connection: frequently asked questions

    Keep us updated on the status of the issue.

  • Error "the component you are trying to use is on a network resource that is unavailable, click ok to try again or enter a different path to the folder containing the installation package ' status.msi.»

    What is an installation package "status.msi", it doesn't let me access my command to scan on my HP officejetJ5780 all-in-one.  It indicates that the component you are trying to use is on a network resource that is unavailable, click ok to try again or enter a different path to the folder containing the installation package ' status.msi.  It's also prevents me to access my backup disk.

    Original title: status.msi?

    I restored my computer to a period of time, two weeks earlier and which seem to fix the problem, somehow.   Thank you

  • Call the DBMS package via the link of database

    IM changes on tables using dba_tab_modifications, number of databases, 1 metric scheme in 1 case.  to get the latest changes, I have to empty the changes which means I have to exec dbms_stats package remotely.  I can do by creating a proc and calling the proc over a database link.

    Remote

    create or replace procedure flush_db_info

    Start

    DBMS_STATS. FLUSH_DATABASE_MONITORING_INFO;

    end;

    local

    create synonym remote_flush for flush_db_info@remote

    exec remote_flush;

    Is there anyway that I can run the DBMS_STATS. FLUSH_DATABASE_MONITORING_INFO@remote on the local to run on the remote control, without creating the proc/synonym?

    This is no biggy, I got it working like this, I just want to see is possible

    Have you tried?

Maybe you are looking for

  • Satellite A660 - display problems, very dark display

    Hello I'm at the end of help please. I have a Toshiba Satellite A660 PSAW3A-07P00R. recently, it has been very, very dark display on the screen, almost impossible to see.I tried the following the problem solved. 1. set the brightness to the MAX in th

  • help install a 120 GB SSD in my Pavilion g7 2269wm

    Hello everyone, I recently bought a refurbished nine HP Pavilion g7 2269wm, 64 bit of windows 8. I bought a PNY XLR 8 SSD 120 GB SSD drive to replace the 500 GB hd. Before exchanging the readers, I created recovery disks, (6 dvd) and tried to use it,

  • Update KB971644, moved not, Error 8000FFFF

    Downloaded KB971644 important update, but it will not install, get error 8000FFFF, get the update failed. What can I do?

  • Vintage Laserjet 6 p/MP very slow-Postscript

    Hello material ThinkPad R60 W7 Tosh Tecra M10 W7 with docking station Wired network LaserJet 6 p - MP related to USB to 36 pin Cable form base of printer. Printing is fine but graphic printing is very slow. If I use the printer PCL (e.g. laserjet 6 p

  • Used to install Windows

    I have a desktop dell XPS 8500. The hard drive crashed so I bought a new drive hard and drive OS windows 7. I went and changed the first boot device to my DVD player, inserted the disc in the drive, reboot and installation is not the case. Any ideas?