Package Oracle calls through dblink

Hi all

I have a problem. I have a package and a function within this package. I want to call this package via DBLINK but cannot connect to it.

for example. the package is to plan ABCTST and appellant in XYZTST area. dblink is ("tstlnk").

the package name is HH_AA_TST_PKG and function f1. I'm trying as select column_value in the table ([email protected](50));

get errors:

ORA-02019: description of the connection to the remote database not found

02019 00000 - "description of the connection to the remote database not found"

I tried otherway but always the same.

Plesae help.

Thank you very much.

RI


Hi, thanks for the response. I tried as above, but does not work. However, I did as follows.

I created a view based on the package (function).

VIEW to CREATE or REPLACE tst_pkg_vw in select * from table (HH_AA_TST_PKG.f1 (parameter));

Select * from tst_pkg_vw - exit (if the setting was 12) then 1,2,3,... (12) ok!

However if I want to call by their Summit as (selection list) then [select column_value d, tst_pkg_vw@db_linkr column_value;]

YAHOO! This works. Thanks for help.

Kind regards

RI

Tags: Database

Similar Questions

  • Find out what package is called from the frontend

    Gurus,

    I'm working on "Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production" and the front-end application is on .NET.

    When I click through the different pages of the application, different packages are called. Is it possible that I can find out what package is called?

    I'm just trying to understand the business, if I don't want to bug the frontend developer and ask the request for each click I do.

    Here's what I'm trying:

    Under query gives the last execute sql if we have the SYS user privileges. I don't have the privileges.

    Select sql_text from v$ sql

    where first_load_time = (select max (first_load_time) from v$ sql);

    Also, I need the package called not the sql!

    Can you please help?

    Thank you

    Lydiea

    You are on the right track...

    You can use the v$ sql to find out what is running or just ran.

    If you know the name of schema analysis (what user database is used by the application to connect to the database), you can use this query to get the sql statements and pl/sql.

    Select sql_text module, PARSING_SCHEMA_NAME,

    v $ sql

    where parsing_schema_name = upper ('& schema_name');

    If you know the module, you can use the following query. For example, the .NET application can be w3wp.exe under the name of the module.

    Select sql_text module, PARSING_SCHEMA_NAME,

    v $ sql

    where module = "& my_module;

    If you run the application and you want to watch the v$ sql at the same time, you can use this query.

    Select executions, sql_id, last_load_time, sql_text from v$ sql where users_executing <> 0;

    I hope that helps!

    Thank you

  • By passing the value in column IR to package Oracle

    All,
    I try to call a package Oracle of APEX and must pass the value of a column of IR in this packaging. I tried saying: ADJ_ID but I don't think his pasing anything for the backend.
    Here are the steps.
    1. the user runs IR
    2. There is a column that I put as "ROLLBACK" on this report for each line that has a LINK that calls URLS like
    JavaScript:apex.confirm (' safe to restore adaptation? "," SEND");
    3. once the user confirms submit, I call the package, package gets called but I want to send a value for that line to the package, I do this by saying: (colon) rating but it does not work.

    Thank you
    Vishal

    You must set you page item (as you try to pass by using the method of colon in PLSQL) first

    You can change your link to

    * JavaScript:apex.confirm ("Sure to restore adaptation?", {request: 'SUBMIT', value: {"P1_ROW_VALUE": 10}}); *

    P1_ROW_VALUE is the Page element that you want to set and 10 here is specific to the LINE value

    If you use the "links" section in the report attributes
    and then, something like that would

    * JavaScript:apex.confirm ('Safe to restore the fit?', {request: "SUBMIT", value: {'P1_ROW_VALUE': ' #COLUMN_ALIAS #'}}); *

    Alias_de_colonne is the name of the column you want to set the element with the value.

    Published by: 814948 on November 23, 2010 08:46

  • fusion of procedures in the package and calling with common proc?

    Hello

    I wrote similar procedures... and I'm calling each procedure separately and transmitting his values...

    something like that
     
    
       begin 
       mov_tbl1(1234); 
       end 
    
    then again similarly for 
    
       begin 
       mov_tbl2(1234); 
       end;    
       
    My question is how to merge these two procedures in one package and call them with a common procedure and pass the value (var_id) once for procedures?
     
    create or replace procedure mov_tbl1 ( var_id number)  is 
             
             cursor tbl1_cur as 
             select  src.col1, 
                     src.col2, 
              from abc_tbl1 tbl1, 
                   abc_tbl2 tbl2 
              where tbl1.no = var_id  -- this is variable i m trying to make it as a paramter in common proc 
                    tbl1.id = tbl.id 
                   -- the record variable declaration is implicit in FOR LOOP 
          begin 
                for  tbl1_cur_rec  in tbl1_cur 
                loop 
                  begin 
                    insert into tgt.tabl1(col1,col2) 
                                values (tbl1_cur_rec.col1, 
                                    tbl1_cur_reccol2, 
                            ); 
                            exception 
                         when others then 
                           null; 
                  end; 
                end loop; 
          end; 
    
    
    create or replace procedure mov_tbl2(var_id number) is 
        
           cursor cur_tbl2 
             select col3,col4, col5 
               ...... 
             from abc_tbl1 tbl1, 
                   abc_tbl2 tbl2, 
                   abc_tbl3 tbl3 
            where   tbl1.no = var_id and   --this is variable i m trying to make it as a paramter in common proc 
                    tbl1.id = tbl.id and 
                    tbl2.dept = tbl3.dept 
              begin 
                  for ... 
                    loop ... 
                      insert into ... 
                         values.... 
             .... 
              end; 
      
    I m bit confused, if you want to use the parameter or parameter... .i am beginner in writing packages... :))
    Ideas or examples is greatly appreciated! Thank you very much!!

    Check if all parameters have been assigned to certain values.

    And call the procedure that is packaged with the following syntax.

    Begin
    .(parameter_value);
    end;
    
    i.e.
    Begin
    TEST_PACK.COMMON_PROC(1234);
    End;
    

    Can you post the code here so that we can have a look at what goes wrong.

    Here is a test package I ran

    PRAZY@11gR1> create or replace package test_pack as
      2  procedure common_proc(var_id number);
      3  end;
      4  /
    
    Package created.
    
    Elapsed: 00:00:00.00
    PRAZY@11gR1> create or replace package body test_pack as
      2  procedure private_proc1(var_id number) as
      3  begin
      4  dbms_output.put_line('FROM PROC1 :'||var_id);
      5  end;
      6
      7  procedure private_proc2(var_id number) as
      8  begin
      9  dbms_output.put_line('FROM PROC2 :'||var_id);
     10  end;
     11
     12  procedure common_proc(var_id number) as
     13  begin
     14  private_proc1(var_id);
     15  private_proc2(var_id);
     16  end;
     17
     18  end;
     19  /
    
    Package body created.
    
    Elapsed: 00:00:00.04
    PRAZY@11gR1> begin
      2  test_pack.common_proc(100);
      3  end;
      4  /
    FROM PROC1 :100
    FROM PROC2 :100
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.01
    

    Kind regards
    Prazy

  • Package oracle.forms.ui does not exist - JCalendar Java Bean - calendar

    Hello

    I tried to change the JCalendarJinit.java file came with the JCalendar, but I was getting errors

    Package oracle.forms.ui does not exist
    Import oracle.forms.ui.VBean;
    ................


    How can I solve this.

    Thanks in advance

    Hello

    You must add the frmall.jar file to your project in JDeveloper. Click the head node of your project, and then choose the submenu project properties, then the node 'Libraries', to add the JAR file.

    François

  • dbAdapter fails during the call to procedure package oracle object type in the parameter out

    JDeveloper 1.1.1.6

    Oracle 11g

    Existing package procedure is defined with the table of objects in input parameters and.

    Package myPackage

    procedure processRecon (numero_projet VARCHAR2,

    INST_ID select NUMBER,

    recon_type VARCHAR2,

    gis_design_stock GMPVT. GMPVT_GIS_DESIGN_STOCK_T,

    stock_uop GMPVT. GMPVT_STOCK_CODES_T,

    x_status OUT VARCHAR2,

    x_escalation OUT VARCHAR2,

    x_recon_error ON GMPVT. GMPVT_GIS_RECON_ERR_T) IS

    GMPVT. GMPVT_GIS_RECON_ERR_T is an array of GMPVT objects. GMPVT_GIS_RECON_ERR, who has 12 fields including the new I added it.

    I have added a new field to the GMPVT object. GMPVT_GIS_DESIGN_STOCK, where GMPVT. GMPVT_GIS_DESIGN_STOCK_T is a table of GMPVT. GMPVT_GIS_DESIGN_STOCK, no problems encountered during the test.

    Next, I added a new field for the object of type GMPVT. GMPVT_GIS_RECON_ERR, the following error below occurs when the DBAdapter is called

    < Summary > Exception occurred when the link was invoked. Exception occurred during invocation of the JCA binding: "JCA binding run operation 'processStockRecon' failed due to the reference: Interaction processing error." Error in the processing of applications from running. GMP_SOA_RECON_PKG. Interaction of the PROCESSRECON API. An error occurred during the processing of the interaction to invoke APPS. GMP_SOA_RECON_PKG. PROCESSRECON API. Cause: java.lang.ArrayIndexOutOfBoundsException: 12 check to make sure that the XML file containing the data of the parameter matches the parameter definition in the XSD. This exception is considered non reproducible, probably due to an error of modeling. ". The called JCA adapter threw an exception of resource. Please review the error message above carefully to determine a resolution. < / Summary >

    I confirmed that the XSD for the stored procedure has in fact change, which has been generated by JDeveloper as I refreshed the database adapter.

    The statement "Cause: java.lang.ArrayIndexOutOfBoundsException: 12" I can't that assume somehow SOA has 12 parameters but the 12 setting was not saved.

    Any thoughts on what I might be missing. I can provide more information if necessary.

    Hello

    This problem has been resolved. Not deployed SOA composite and then deployed to the server of the SOA. For some reason, SOA has been either you see does not changes in the file XSD (cached?) or the XSD was not get updated.

    Thank you

  • Details of the package Oracle Web Adi

    Hello

    Can update us an existing Oracle Custom Web aDI to add new column in the excel worksheet.

    Initially we were download only one value FDF for Organization.Now we need to download a single attribute more into the details of the organization.

    If so, how do we get the package or the procedure for the WEBaDI.Itried all tables BNE, but could not get the info on the details of the package of WEBADI.

    Please advise,

    Kind regards

    Jean Michel Sayyad.

    Hello

    Please go through below thred, it might help you: -.

    https://forums.Oracle.com/thread/2386523?MessageID=10315967#10315967

    You can query the tables BNE_ATTRIBUTES, attribut2 is the name of the package.

    Select * from BNE_ATTRIBUTES

    where attribute1 as 'PROCEDURE '.

    The attribute_code should be that of an integrator with a PO_ATT at the end.

    For the use of integrator_code what follows

    Select * from bne_integrators_vl where user_name as what you see on the screen.

    Thank you

    Avinash

  • Function of database Oracle Call button of the apex

    Hello

    can you please explain

    How to call an oracle function in the button of the apex.
    every time I click on button feature of oracle database should triggers.

    Thanks in advance

    concerning
    r
    Hello

    IM new user in the apex and can u please help me to call a function of oracle through the apex button

    Published by: on April 10, 2011 22:02

    Here are the steps:

    01. create a button (Ex: Save)
    02. in the Section 'Treatment of the Page'-> click right-> select create
    03. then select "PL/SQL" and move forward. Give the name of the PL/SQL block and then click Next
    04. here, you can set the pl/sql code to call your fuction. (Here you can do something that is supported in PL/SQL) and press Next
    05. here if you want to display all messages when this plsql code is success or failure then set these success messages and faile. If you do not need to show all messages, leave it blank. Next to meadows and moving forward
    06 choose your drop-down list button "when Button Pressed. (Ex: Save Butrton).

    Now, you're done. When you press this button it executes the PL/SQL code you defined above

  • can I video call through facebook, using the browser firefox web?

    My wife just bought a tablet... and there was a facebook application in the Tablet, but I can not video call...
    Whenever I'm doing video call, he said: "inaccessible".

    So, I thought that if we do this on the browser as normal video call from PC to PC using firefox, then it would do (?).

    Anyone tried?

    Sites like Facebook are not designed to make video calls on the browsers, it's where there are apps for that. However, there are a simple HTML5 Web sites offering video lectures/talks in which will work with browsers on tablets.

    Please note we only provide support for the Firefox browser and not 3 third-party sites or applications, these problems or questions, address them.

    However, as part of my effort to help, the person that you can try to reach through the Facebook app can't equipped with software to manage your call to them or that they are not online when making your call, giving you this error. It is also important to check that you are connected to the internet with a strong link to avoid problems with video calls. You can try the Google search why you might encounter such problem with Facebook or see if restarting your device can help.

  • Call through my PC

    can I get my computer to notify me when I get incoming calls?

    Hello

    Do you want your computer to notify you when you receive incoming calls on your mobile phone?

    There is no option for this under windows.

    However if you have a nokia phone, nokia pc suite is installed on your computer and your phone is connected to your computer, then you will get alerts for calls and messages through the pc desktop.

    hope this helps

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • have all calls through Google Voice - I missed something?

    I know, there was formerly a SETTINGS option to CHOOSE whether the calls had to be out by the carrier or through Google Voice-

    or you have the opportunity to CHOOSE for each call.

    My setting was to CHOOSE for each call.

    Now, the only choice I have when I make a call is Google Voice - and the dialog box options while MIDDLE disappeared!

    Any suggestions?

    -michael

    Start your google voice application and then go into the settings of google voice and set calls to "ask to use google voice each call" or add the google voice widget to a home screen, allowing you to scroll through the settings from the home screen.

  • Making a telephone call through the speaker

    I'm making a call from a Java application via the speaker place the helmet.  Here is my code:

    try {}
    Player p = Manager.createPlayer ("file://src/www/blank.wav");
    p.Realize ();
    p.prefetch ();
    Check [] c = p.getControls ();
    for (int i = c.length - 1; i > = 0; i--) {}
    If {(c [i] instanceof AudioPathControl)
    APC AudioPathControl = c (AudioPathControl) [i];
    apc.setAudioPath (AudioPathControl.AUDIO_PATH_HANDSFREE);
    }
    }
    p.Start ();
    } catch (Exception e) {}
    Log ("ERROR:" + e);
    }
    Call of PhoneArguments = new PhoneArguments)

    PhoneArguments.ARG_CALL, "8005551212");

    Invoke.invokeApplication (Invoke.APP_TYPE_PHONE, call);

    But the call still goes through the handset instead of the speaker.  I'm doing something wrong?  Is this really possible? I find it strange that I need to go through the process of playing a media file just to tell the phone to activate the speaker.

    -Jeff

    Turn on the speakerphone of the execution of the menu item in the phone app.

  • Pre-loaded packages Oracle

    Hi all

    I'm confused about the following:

    When I query the view object in my diagram to see the packages I have access to, like this:

    Select the owner, object_name

    of object

    where type_objet = 'PACKAGE '.

    I get a list of the packages and the SYS package. DBMS_DG is one of them.

    However, when I do a DESCRIBE statement on this set in the same pattern, it is said that there is no:

    SQL > dbms_dg desc;

    ERROR:

    ORA-04043: object 'SYS '. "' DBMS_DG ' does not exist

    This means that I do not have the privilege of this package? But why is he object?

    Thank you.

    3157845 wrote:

    I think that view object contains all the information objects of all schemas. You have the privilege to select view object. Then, you are able to see the information on the package DBMS_DG. I think their line no wise restrictions in Oracle DB

    This is false.

    Object contains all objects accessible to the current user. DBA_objects contains all objects in the database.

    Please post output

    Select owner, object_type, object_name in object where object_name = 'DBMS_DG ';

    The results for me (and I hope you have the same) are

    OBJECT_TYPE OBJECT_NAME OWNER

    ___________________ __________ ________________

    DBMS_DG PUBLIC SYNONYM

    You don't have privileges on the underlying object that the synonym points to, which happens to share the same name.

    Select * from all_Synonyms where synonym_name = 'DBMS_DG ';

    OWNER SYNONYM_NAME TABLE_OWNER, TABLE_NAME DB_LINK

    __________ ______________________________ ______________________________ ______________________________ ____________

    PUBLIC DBMS_DG SYS DBMS_DG

    Hope that clarifies the situation

  • Driver ODBC - Oracle to PostgreSql dblink problem

    Hello Experts!

    I tried everything (including the Questions answered) and nothing seems to work.

    • Library path
    echo $LD_LIBRARY_PATH
    /usr/lib64:/usr/lib:/u01/oracle/product/11.2.0.4/lib
    

    • /U01/Oracle/product/11.2.0.4/HS/Admin/initPG_LINK.ora
    HS_FDS_CONNECT_INFO = PG_LINK
    HS_FDS_TRACE_LEVEL = DEBUG
    HS_FDS_SHAREABLE_NAME=/usr/lib64/libodbc.so.2.0.0                    
    set ODBCINI= /u00/oracle/.odbc.ini
    


    • / U00/Oracle /. ODBC.ini
    [ODBC Data Sources]
      PG_LINK = PostgreSQL
    [PG_LINK]
      Debug = 1
      CommLog = 1
      ReadOnly = no
      Driver = /usr/lib64/psqlodbc.so
      Servername = pgserver_ip
      FetchBufferSize = 99
      Username = pguser
      Password = pgpwd
      Port = 5432
      Database = pg_database
    [Default]
      Driver = /usr/lib64/libodbc.so.2.0.0
    


    • Tnsnames and listener are very good... I can reach the Oracle database without any problem.

    • The SQL query result
    SQL> select * from "table"@PG_LINK;
    select * from "table"@PG_LINK
                                 *
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [unixODBC][Driver Manager]Data source name not found, and no default driver
    specified {IM002}
    ORA-02063: preceding 2 lines from PG_LINK
    


    • Result of the trace
    ...
    ...
    hgopoer, line 231: got native error 0 and sqlstate IM002; message follows...
    [unixODBC][Driver Manager]Data source name not found, and no default driver specified {IM002}
    Exiting hgopoer, rc=0 at 2015/06/04-13:53:18
    hgocont, line 2831: calling SqlDriverConnect got sqlstate IM002
    Exiting hgocont, rc=28500 at 2015/06/04-13:53:18 with error ptr FILE:hgocont.c LINE:2851 FUNCTION:hgocont() ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2015/06/04-13:53:18 with error ptr FILE:hgolgon.c LINE:806 FUNCTION:hgolgon() ID:Calling hgocont
    Entered hgoexit at 2015/06/04-13:53:18
    Exiting hgoexit, rc=0
    

    Any ideas?

    I tried several libraries and none of the work so far. Different errors for each of them (including the "SQLAllocHandle" error)

    Thank you

    Alex.

    Ed, I could just figure it out and I could actually find this solution everywhere else (thanks to Bogdan, a friend who recommended to check)

    The initPG_LINK.ora library was wrong and I dind´t had a simple way to find the right way:

    • I set the variable on my environment (there, I created a global file for odbc)
    export ODBCSYSINI=/etc
    
    • I tried to connect to the remote database to PostgreSQL with isql and it worked as well, the library was present.
    • Then, I checked on the isql libraries called< and="" this="" is="" probably="" the="" best="" way="" to="" avoid="" wasting="">
    [root@oracle ~]# which isql
    /usr/local/bin/isql
    [root@oracle ~]# ldd /usr/local/bin/isql
            linux-vdso.so.1 =>  (0x00007fffdff44000)
            libodbc.so.2 => /usr/local/lib/libodbc.so.2 (0x00007fa7ed96b000)
            libdl.so.2 => /lib64/libdl.so.2 (0x0000003184000000)
            libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003184800000)
            libc.so.6 => /lib64/libc.so.6 (0x0000003184400000)
            /lib64/ld-linux-x86-64.so.2 (0x0000003183c00000)
    
    • I added this line (/ usr/local/lob/lobodbc.so.2) in the HS file.
    • Then, I added the ENVS with LD_LIBRARY_PATH setting to the location of the library
    SID_LIST_LISTENER=
      (SID_LIST=
        (SID_DESC=
          (SID_NAME=PG_LINK)
          (ORACLE_HOME=/u01/oracle/product/11.2.0.4)
          (ENVS="LD_LIBRARY_PATH=/usr/local/lib:/usr/lib64:/usr/lib:/u01/oracle/product/11.2.0.4/lib")
          (PROGRAM=dg4odbc)
        )
      )
    

    A finally it worked!

    Thank you

    Alex.

  • Oracle DB 11 g 2 controls prerequisites failure (packages) - Oracle Linux 6.5

    Hi all

    Once again stuck with questions during the installation of 11 GR 2 DB.

    I had a problem of size of Swap which are now resolved.

    The Universal Installer now says that some packages are missing.

    My package files are up-to-date, I used the commands below to check it.

    1. SH - 4.1 # cd /etc/yum.repos.dExpected value: libstdc ++-3.4.6 (i386)
      Real value: missing
      SH - 4.1 # rm-f *.
      SH - 4.1 # wget http://public-yum.oracle.com/public-yum-ol6.repo
      SH - 4.1 # yum clean all the
      SH - 4.1 # yum makecache
      SH - 4.1 # yum update

    I checked using the comand bellows

    SH - 4.1 # yum install compat-libstdc ++ - 33 - 3.2.3 *.

    Setting up installation

    Package compat-libstdc ++-33 - 3.2.3 - 69.el6.x86_64 already installed and the latest version

    Nothing to do

    Now how the version (i386)?

    1. Expected value: libaio - 0.3.105 (i386)
      Real value: missing

    2. Expected value: compat-libstdc ++-33 - 3.2.3 (i386)
      Real value: missing

    3. Expected value: libaio-devel - 0.3.105 (i386)
      Real value: missing

    4. Expected value: libgcc - 3.4.6 (i386)
      Real value: missing

    5. Expected value: libstdc ++-3.4.6 (i386)
      Real value: missing

    6. Expected value: unixODBC - 2.2.11 (i386)
      Real value: missing

    7. Expected value: unixODBC-devel - 2.2.11 (i386)
      Real value: missing

    8. Expected value: pdksh - 5.2.14
      Real value: missing

    Thank you

    Vishwamber Shetty

    What follows will make all the necessary software, changes to the kernel and configuration account oracle for you, provided you access Internet access and/or configured accordingly - yum repository configuration file which seems to be the case:

    Su - root

    yum-y installoracle-rdbms-server-11gR2-preinstall

    If the installation is successful, and there are still warnings of the Oracle Universal Installer, simply click the checkbox ignore and everything should be good. Oracle 11 g 2 is too old to see on Oracle Linux 6.5, system libraries are moving too, but are always compatible.

Maybe you are looking for

  • Upgrade Express Toshiba Media Player

    HI :) Who have or where is software upgrade Express media player 2.0 rev.I have a M45 - s355 Express ver 1.1 MP (hidden this software partition is 204 Mb)

  • What is the plugin - container.exe?

    The extension plugin - container.exe desired access to the internet. The file was located in my Mozzile folder, but I read somewhere that it is malware. This file is supposed to be there, and it is normal to try to receive a connection? Is it safe? T

  • Cannot install the Toshiba Vista Media Center

    Hi, I have the same problem: [http://forums.computers.toshiba-europe.com/forums/thread.jspa?messageID=92364] "I recently bought a Toshiba 5.1 Audio & LAN USB 2.0 hubs and I installed corretly material, but when I try to install multimedia center soft

  • Annoying popup of the new hardware wizard

    Just upgraded my virus to a newer program.  During the instalation, have uninstalled all unnecessary programs free spyware I had on my computer. When I start it, a "new hardware found" window immediately. Why is this and how can I stop, as he reports

  • Obstructionisme!

    I use a configuration with windows 7 (English, cant use Swedish, national characters in file names).  Chrome, ripple, last simulatotrs, VMWare, latest version of the SDK.  migrate a complex application from OS5 to OS10 -The simulator of VMWare will n