Database link to use in paramater

Hi everyone....
I have a procedure like this in a package
SELECT view_name, text
FROM user_views@dbdev
WHERE view_name IN (select distinct object_name from TD_apex_dep);
v_view_name VARCHAR2(30);
v_text VARCHAR2(32767);
v_hash_value NUMBER;
but I don't alaways want to use the DB Link "dbdev"
I don't know how to describe which DB Link I want to use in the package....
Is it difficult? How can I do?
Thank you in advance
Regards Sebastien
PS: Sorry for my english

Hello beyou,
but I don't alaways want to use the DB Link "dbdev"Probably because the name of the link changes between environments?
A good approach for handling such changes is always to encapsulate remote objects in private synonyms.
Example,
Create or replace synonym remote_user_views for user_views@dbdev;These synonyms will be different in each environment, but upside is that once they are deployed, your code will be the same in all environments.
So, instead of having a parameter which value changes with environment, you now have a synonym which definition changes with environment.
And you no longer have the need for dynamic sql.
Regards
Peter

Similar Messages

  • Ora-02020 too many database links in use

      Hi All,
                    While trying to  update Table through datalink in my program I am getting the above error.   Without modifying the  v$parameter  value ( 'open_links' ) in database how to use this feature to close Inactive sessions  in BPEL ?

    Yes, I set the init.ora parameters on all servers and then restarted them. I still get the error.
    Note that, for convenience, all my servers have public database links to all other servers in my private network.
    This procedure (described at the start) works for one run of copying 50 tables from one server to one other server:
    server1 runs the procedure and copies data from server2 to server3 (total of 3 servers in the process)But I get the error when I run the procedure to copy 40 tables from multiple servers to one other server:
    server1 runs the procedure and copies data from server2, server3, and server4 to server5The error occurs when only four (or five) servers are involved in the process.
    Any suggestions are greatly appreciated.
    Edited by: user652257 on Nov 1, 2009 12:40 PM

  • ORA-02020: too many database links in use ; but OK with where clause...

    Hello all,
    I have a view called V_MEDGEN_LISTRADIO but I can't run
    SELECT * FROM V_MEDGEN_LISTRADIO
    ORA-02020: too many database links in useThe cause is that we call in the view 5 tables over dblink and the open_links parameter is set to 4.
    What is strange is that when I run this select by adding a where clause then it works!
    SELECT * FROM V_MEDGEN_LISTRADIO WHERE SPRR = 3645;Can someone explain me ? (use of index so all tables are not called ???)
    Thanks

    Explain plan for SELECT * FROM V_MEDGEN_LISTRADIO WHERE SPRR = 3645;
    | Id  | Operation                              | Name            | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop | Inst   |IN-OUT|
    |   0 | SELECT STATEMENT                       |                 |     1 |   244 |    19   (6)| 00:00:01 |       |       |        |      |
    |   1 |  SORT ORDER BY                         |                 |     1 |   244 |    19   (6)| 00:00:01 |       |       |        |      |
    |   2 |   NESTED LOOPS                         |                 |     1 |   244 |    18   (0)| 00:00:01 |       |       |        |      |
    |   3 |    NESTED LOOPS                        |                 |     1 |   218 |    17   (0)| 00:00:01 |       |       |        |      |
    |   4 |     NESTED LOOPS                       |                 |     1 |   188 |    15   (0)| 00:00:01 |       |       |        |      |
    |   5 |      NESTED LOOPS                      |                 |     3 |   384 |    10   (0)| 00:00:01 |       |       |        |      |
    |   6 |       NESTED LOOPS                     |                 |     3 |   186 |     4   (0)| 00:00:01 |       |       |        |      |
    |   7 |        REMOTE                          | SPRR            |     1 |    20 |     2   (0)| 00:00:01 |       |       | DEV10~ | R->S |
    |   8 |        REMOTE                          | MPAT_MF         |     3 |   126 |     2   (0)| 00:00:01 |       |       | DEV10~ | R->S |
    |   9 |       REMOTE                           | SPER_P          |     1 |    66 |     2   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    |* 10 |      TABLE ACCESS BY GLOBAL INDEX ROWID| DOSSIER_MEDICAL |     1 |    60 |     3   (0)| 00:00:01 | ROWID | ROWID |        |      |
    |* 11 |       INDEX RANGE SCAN                 | DOSMED_MPR_IDX2 |     2 |       |     1   (0)| 00:00:01 |       |       |        |      |
    |  12 |     REMOTE                             | MEP             |     1 |    30 |     2   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    |  13 |    REMOTE                              | SSV             |     1 |    26 |     1   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    Predicate Information (identified by operation id):
      10 - filter("DM"."EXAM_TYPE"='TELEM')
      11 - access("DM"."MPR"="P"."SPER")
    Remote SQL Information (identified by operation id):
       7 - SELECT "SPRR","MNEMO" FROM "SPRR" "MP" WHERE "SPRR"=3645 (accessing 'DEV10_DBLK' )
       8 - SELECT "SPAT","DU","RMPB","SPRR_MF","AU" FROM "MPAT_MF" "MF" WHERE "SPRR_MF"=3645 AND NVL("AU",:1+1)>=:2 AND
           "RMPB"='PRINC' AND "DU"<=:3 (accessing 'DEV10_DBLK' )
       9 - SELECT "SPER","NOM","PRENOM","DTE_NAI" FROM "SPER_P" "P" WHERE "SPER"=:1 (accessing 'ORAP_DBLK' )
      12 - SELECT "MSJ","MEPNO_SEQ","SSV_OU_PAT_SEJOURNE" FROM "MEP" "MEP" WHERE :1="MSJ" AND :2="MEPNO_SEQ" (accessing 'ORAP_DBLK' )
      13 - SELECT "SSV","LIB_1" FROM "SSV" "SSV" WHERE :1="SSV" (accessing 'ORAP_DBLK' )Explain plan for SELECT * FROM V_MEDGEN_LISTRADIO
    Plan hash value: 3820716840
    | Id  | Operation                                | Name                  | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop | Inst   |IN-OUT|
    |   0 | SELECT STATEMENT                         |                       |     7 |  1708 |   771   (1)| 00:00:10 |       |       |        |      |
    |   1 |  SORT ORDER BY                           |                       |     7 |  1708 |   771   (1)| 00:00:10 |       |       |        |      |
    |   2 |   NESTED LOOPS                           |                       |     7 |  1708 |   770   (1)| 00:00:10 |       |       |        |      |
    |   3 |    NESTED LOOPS                          |                       |     7 |  1568 |   763   (1)| 00:00:10 |       |       |        |      |
    |   4 |     NESTED LOOPS                         |                       |     7 |  1386 |   756   (1)| 00:00:10 |       |       |        |      |
    |   5 |      NESTED LOOPS                        |                       |     7 |  1176 |   742   (1)| 00:00:09 |       |       |        |      |
    |   6 |       NESTED LOOPS                       |                       |   194 | 24444 |   414   (1)| 00:00:05 |       |       |        |      |
    |   7 |        TABLE ACCESS BY GLOBAL INDEX ROWID| DOSSIER_MEDICAL       |   194 | 11640 |    23   (0)| 00:00:01 | ROWID | ROWID |        |      |
    |*  8 |         INDEX RANGE SCAN                 | DOSMED_EXAM_TYPE_IDX2 |   194 |       |     1   (0)| 00:00:01 |       |       |        |      |
    |   9 |        REMOTE                            | SPER_P                |     1 |    66 |     2   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    |  10 |       REMOTE                             | MPAT_MF               |     1 |    42 |     2   (0)| 00:00:01 |       |       | DEV10~ | R->S |
    |  11 |      REMOTE                              | MEP                   |     1 |    30 |     2   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    |  12 |     REMOTE                               | SSV                   |     1 |    26 |     1   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    |  13 |    REMOTE                                | SPRR                  |     1 |    20 |     1   (0)| 00:00:01 |       |       | DEV10~ | R->S |
    Predicate Information (identified by operation id):
       8 - access("DM"."EXAM_TYPE"='TELEM')
    Remote SQL Information (identified by operation id):
       9 - SELECT "SPER","NOM","PRENOM","DTE_NAI" FROM "SPER_P" "P" WHERE :1="SPER" (accessing 'ORAP_DBLK' )
      10 - SELECT "SPAT","DU","RMPB","SPRR_MF","AU" FROM "MPAT_MF" "MF" WHERE NVL("AU",:1+1)>=:2 AND "RMPB"='PRINC' AND "DU"<=:3 AND
            :4="SPAT" (accessing 'DEV10_DBLK' )
      11 - SELECT "MSJ","MEPNO_SEQ","SSV_OU_PAT_SEJOURNE" FROM "MEP" "MEP" WHERE :1="MSJ" AND :2="MEPNO_SEQ" (accessing 'ORAP_DBLK' )
      12 - SELECT "SSV","LIB_1" FROM "SSV" "SSV" WHERE :1="SSV" (accessing 'ORAP_DBLK' )
      13 - SELECT "SPRR","MNEMO" FROM "SPRR" "MP" WHERE :1="SPRR" (accessing 'DEV10_DBLK' )

  • Report error: ORA-02020: too many database links in use

    I am getting error ORA-02020 in a report that works exactly the same in other APEX instance.
    The query refers several tables from Oracle Financials with a single database link.
    The weird thing is that for some parameters the report shows the expected lines, and for other parameters it shows the error message.
    There are three other regions in the same page running grouped versions of the same query and they work perfectly.
    Any idea will be welcome.
    Francisco
    ============
    Below is the FROM section of the query, just one link to Oracle Financials:
    FROM GL.GL_JE_HEADERS@ORAFIN A,
    GL.GL_JE_LINES@ORAFIN B,
    GL.GL_CODE_COMBINATIONS@ORAFIN C,
    APPLSYS.FND_FLEX_VALUES@ORAFIN D,
    APPLSYS.FND_FLEX_VALUES_TL@ORAFIN E,
    APPLSYS.FND_FLEX_VALUES@ORAFIN F,
    APPLSYS.FND_FLEX_VALUES_TL@ORAFIN G,
    GL.GL_PERIODS@ORAFIN H,
    FIN_ALLOCATION_PERCENTAGES I

    Related threads:
    Re: SESSION_PER_USER limit gets exceeded
    Re: APEX Sessions and Database sessions
    Scott

  • Using database link via dbms_scheduler

    Hello out there,
    I have a problem calling a stored procedure via dbms_scheduler that pulls some rows over a public database link.
    The setup is the following:
    create public database link mediabase using 'mediabase';
    create or replace procedure hole_kurse as
    mdatum date;
    begin
       select max(datum) into mdatum
       from dt_wechselkurs;
       insert into dt_wechselkurs l
          (waehrung,
           datum,
           wechselkurs)
       (select
           r.waehrung,
           r.datum,
           r.wechselkurs
        from
           dt_wechselkurs@mediabase r
        where
           datum>mdatum);
        commit;
    end hole_kurse;
    begin
       dbms_scheduler.create_job(job_name          =>  'wechselkurse',
                                 job_type          =>  'STORED_PROCEDURE',
                                 job_action        =>  'hole_kurse',
                                 start_date        =>  sysdate,
                                 repeat_interval   =>  'FREQ=DAILY; BYHOUR=7; BYMINUTE=0; BYSECOND=0');
       dbms_scheduler.enable(name => 'wechselkurse');
       commit;
    end;
    /I can access the database link in SQL and I can call the procedure hole_kurse from SQL without any errors. But the job fails writing "ORA-01017: invalid username/password; logon denied" into alert.log. I also tried using dbms_job which used to work with Oracle 10g but now fails with the same error.
    My Oracle version is 11.2.0.2 64bit on Window Server 2008R2.
    So what do I have to change that my job will run?
    Many thanks in advance,
    dhalek

    I'm not completely sure, but here is a possibility:
    The [url http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_5005.htm#i2061505]docs have this to say:
    >
    If you specify CONNECT TO user IDENTIFIED BY password, then the database link connects with the specified user and password.
    If you specify CONNECT TO CURRENT_USER, then the database link connects with the user in effect based on the scope in which the link is used.
    If you omit both of those clauses, then the database link connects to the remote database as the locally connected user.
    >
    Your dblink is like this:
    create public database link mediabase using 'mediabase';That is the third case described, so the link connects as "the locally connected user", which in the scheduler session is probably not your user.
    You may try it with the second case described in the docs:
    create public database link mediabase CONNECT TO CURRENT_USER using 'mediabase';If I understand the docs correct, then within the procedure the dblink will use the schema that the procedure is owned by (unless the procedure is using invoker-rights, then it will be the invoking user.)
    It is just a guess, but you can try it and see ;-)

  • ORA-01017 error while using a database link

    Hi all,
    I have a TNS entry as below
    HOME=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=10.66.205.110)(PORT=1521))
    (CONNECT_DATA=(SID=HOME))
    I have created a database link as
    create public database link link92.com using 'HOME'.
    This was created successfully and an entry was made in all_db_links table.
    However if i try connecting to a table in the remote database...for example
    select * from emp@link92;
    I am receiving an error ORA-01017(Invalid username passwd).
    Would appreciate if somebody could help me out.
    Thank you

    It is not that the Database Link is "PUBLIC" that makes it use the current username/password.
    It is that the Database Link has been created without specifying a " CONNECT TO username IDENTIFIED BY password " that makes the DBLink behave as a "current user database link" using the current username/password to connect to the remote database.
    You can have a PUBLIC database link that uses a "CONNECT TO username IDENTIFIED BY password" such that all connections use the same remote username and password.
    You can also have "private" (ie not PUBLIC) database link that does not specify a "CONNECT TO username IDENTIFIED BY password" which becomes a "current user [owner] database link".

  • How to Create Public database link in oracle 9i?

    Friends,
    OS: RHEL AS 3
    DB: 9iR2
    database name 1 = nubul
    database name 2 = test
    in the 'nubul' database server using system user.
    i created a database link to connect the 'test' database
    sql> create public database link test using 'test';
    database link created.
    then i logged in as normal user....
    sql> select count(*) from employee@test
    Error at line 1:
    ORA-12154: TNS: could not resolve service name
    where i am making mistake?
    i gave the linkname as my remote database name.
    am i have to make any entry in the tnsnames.ora?
    thanks & regards

    You have to remember that when you access a dblink, the database where the link is defined is acting as a client to the database to which the link points ... exactly the same as if you you were using sqlplus on the machine hosting the db where the link is defined. In other words, given:
    Host 'Host-src', with database 'db-src', with a dblink 'lk_target'
    Host 'host-trgt', with database 'db-trgt'
    When you connect to db-src and access lk-target, db-src is now acting as a client to db-trgt. Exactly as if you had opened sqlplus on host-src and connected directly to db-trgt. So, given the above scenario
    host-src$> sqlplus scott/tiger@db-src
    sql> select * from emp@lk_target;when you execute that SELECT to the link, the same tns considerations are in effect as if you had
    host-src$> sqlplus scott/tiger@db-trgtThe same tnsnames.ora entry, on the source machine, is required for both.

  • How to create a database link on an ms acces data source

    Hello every body
    Is it possible to create a database link on an MS access data source under
    oracle 10 g and Apex ?
    If yes how to do it ?
    Thanks in advace

    I don't know what Apex is!!! But try to follow these instructions.
    It works for Oracle 9i.
    As far as I know, you are supposed to have installed other than ORACLE Client to complete these instructions.
    1. Control Panel / Administrative Tools / Data Sources (ODBC)
    Folder: System DSN /
    click add
    Choose : Microsoft Access Driver
    Data Source Name : my_test
    Description : any_description_you_want
    click Database/Select... : full pathname for <your_file.mdb>
    click OK
    Click OK
    2. Goto OH\hs\admin:
    2.1) Create a copy of "inithsodbc.ora" file giving it this name:
    initmy_test.ora
    2.2) Edit "initmy_test.ora" and change as below.
    # HS init parameters
    HS_FDS_CONNECT_INFO = my_test
    HS_FDS_TRACE_LEVEL = OFF
    3. Add this entry to listener ( Don't forget to stop/start the listener )
    (SID_DESC =
    (SID_NAME = my_teste)
    (ORACLE_HOME = <Path to OH> ) ### Ex: D:\ORANT901
    (PROGRAM = hsolesql)
    4. Now you need to add entries to point to the HS in the tnsnames.ora :
    access =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=<your_host>)(PORT=1521))
    (CONNECT_DATA=(SID=my_test))
    (HS=my_test)
    5. Now you need to go into the database and create the database link:
    CREATE PUBLIC DATABASE LINK "ACCESS_DB" USING 'access';
    6. select * from your_table@ACCESS_DB;
    HTH
    RK
    Message was edited by:
    RKravcenko

  • Database Links and Triggers

    Hello altogether,
    I'm not sure if I am in the right topic here, if not please excuse!
    I got the following problem:
    My system consists of two parts - one calculation part P1, and one output part P2. Both parts have their own Oracle DBMS. The calculation part P1 calculates a lot of data and replicates this data to the database of the output part P2.
    I created a database link from P1 to P2.
    Now I used triggers to replicate the data from tables on P1 side to tables on P2 side.
    Problem:
    This works fine, as long as the number of inserted or updated entries is low. If it increases, I get the error "Too many database links in use", and everything is stuck. I guess this is because too many triggers fire in parallel.
    Question:
    Is there a possibility to restrict the number of triggers executed in parallel (some kind of semaphor to serialize on), or can multiple triggers share the same database link?
    Thanks a lot for your help!
    Bye,
    Daniel

    Besides from using normal oracle replication I would check your triggers.
    Do they fire and access the DB for each row? May change this to statement level.
    Or switch from some synchonous process (immediatly update the target database) to some asynchronous process (mark the records that needs to be updated/changed, every half an hour do the change).
    3rd version? DO you really need two databases? Consider 2 separate schemas on one database instance.

  • Global_name and database link

    I have Windows XP with 10.2.0.1.0
    I have made my database global_name to be junk.points.com.
    And, I create a database link as:
    create database link preview using 'xxxxx';
    the db_link is preview.point.com.
    However, if I use the following command:
    create database link preview.system using 'xxxxx';
    the db_link is preview.system instead of preview.system.points.com.
    I expect the db_link should be preview.system.points.com. Please help.
    Thanks

    Hi,
    Specify the complete or partial name of the database link. If you specify only the database name, then Oracle Database implicitly appends the database domain of the local database.
    If the value of the GLOBAL_NAMES initialization parameter is TRUE, then the database link must have the same name as the database to which it connects. If the value of GLOBAL_NAMES is FALSE, and if you have changed the global name of the database, then you can specify the global name.
    Defining a CURRENT_USER Database Link: Example
    The following statement defines a current-user database link to the remote database, using the entire service name as the link name:
    CREATE DATABASE LINK remote.us.oracle.com
    CONNECT TO CURRENT_USER
    USING 'remote';
    The user who issues this statement must be a global user registered with the LDAP directory service.
    Please view the below document.
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_5005.htm
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/ds_admin002.htm
    And please check the db links you posted one is having __.point.com
    and the other one is having ___.points.com
    Please make sure you are using the GLOBAL_NAMES set true and displaying correct dblink .
    Hope this will be helpful :)
    Thanks,
    Balaji K.

  • How to create a database link between an 8i (apps) database and APEX

    Want to link my Oracle APPS databse on 8i with Oracle XE and APEX. Any idea how to achieve this ?

    I don't know what Apex is!!! But try to follow these instructions.
    It works for Oracle 9i.
    As far as I know, you are supposed to have installed other than ORACLE Client to complete these instructions.
    1. Control Panel / Administrative Tools / Data Sources (ODBC)
    Folder: System DSN /
    click add
    Choose : Microsoft Access Driver
    Data Source Name : my_test
    Description : any_description_you_want
    click Database/Select... : full pathname for <your_file.mdb>
    click OK
    Click OK
    2. Goto OH\hs\admin:
    2.1) Create a copy of "inithsodbc.ora" file giving it this name:
    initmy_test.ora
    2.2) Edit "initmy_test.ora" and change as below.
    # HS init parameters
    HS_FDS_CONNECT_INFO = my_test
    HS_FDS_TRACE_LEVEL = OFF
    3. Add this entry to listener ( Don't forget to stop/start the listener )
    (SID_DESC =
    (SID_NAME = my_teste)
    (ORACLE_HOME = <Path to OH> ) ### Ex: D:\ORANT901
    (PROGRAM = hsolesql)
    4. Now you need to add entries to point to the HS in the tnsnames.ora :
    access =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=<your_host>)(PORT=1521))
    (CONNECT_DATA=(SID=my_test))
    (HS=my_test)
    5. Now you need to go into the database and create the database link:
    CREATE PUBLIC DATABASE LINK "ACCESS_DB" USING 'access';
    6. select * from your_table@ACCESS_DB;
    HTH
    RK
    Message was edited by:
    RKravcenko

  • Shared Database Links

    Hello,
    I know I can query ALL_DB_LINKS to get a list of registered database links. What table or view can I query to know whether it's a shared database link?
    Thanks,
    Brad

    BradWery wrote:
    What table or view indicates that link2sales was created as a shared db link?AFAIK, the only way is to query SYS.LINK$ table:
    SQL> CREATE SHARED DATABASE LINK link2sales
      2  CONNECT TO scott IDENTIFIED BY tiger
      3  AUTHENTICATED BY linkuser IDENTIFIED BY ostrich
      4  USING 'sales';
    Database link created.
    SQL> create public database link testlink using 'xyz';
    Database link created.
    SQL> select name from sys.link$ where bitand(flag,1) = 1;
    NAME
    LINK2SALES
    SQL> SY.

  • ORA-2020 when trying to verify database links

    I have a problem with verifying database links. I want to create a procedure for checking all database links. this is done like the following:
    declare
    xRefCursor sys_refcursor;
    cursor cDBLinks is
    select db_link
    from user_db_links;
    nDummy number;
    begin
    for rL in cDBLinks loop
    begin
    open xRefCursor for 'select 1 from dual@'||rL.db_link;
    fetch xRefCursor into nDummy;
    close xRefCursor;
    dbms_output.put_line(rL.db_link||' established');
    exception
    when others then
    if xRefCursor%isopen then
    close xRefCursor;
    end if;
    dbms_output.put_line(rL.db_link||' error '||sqlerrm);
    end;
    end loop;
    end;
    when running the procedure, I get a ORA-2020 : too many database links in use
    Cause: The current session has exceeded the INIT.ORA OPEN_LINKS maximum.
    Action: Increase the OPEN_LINKS limit, or free up some open links by committing or rolling back the transaction and canceling open cursors that reference remote databases
    exact after the count of database links specified in the OPEN_LINKS parameter. As you can see I don't issue any transaction, and also I close every cursor I open...so there should be just one db link active in time. note that increasing the OPEN_LINKS parameter will not be a good solution, as I can't tell how much links are existing for a user.
    any suggestions?
    regards
    Christian
    oh, forgot to mention: tried this with 9.2.0.6 and 10.2.0.3 on WINDOWS (so I believe this also occurs in 9.2.0.6 <= DBVersion <= 10.2.0.3)
    Message was edited by:
    W1zard

    As you can see I don't issue any transaction, and also I close every cursor I
    open...so there should be just one db link active in time.This is wrong assumption. The closing of the cursor does not mean DB link will be closed too. You have to close database link explicitly.
    See:
    Managing Database Link
    Rgds.

  • Database link does not exists but possible to access

    Hi All
    I have a case that I don't get.
    I have these database links
    select owner, db_link from dba_db_links
    OWNER DB_LINK
    OWBUSER OWB_34.REGRESS.RDBMS.DEV.US.ORACLE.COM
    OWBUSER OWB_22.REGRESS.RDBMS.DEV.US.ORACLE.COM
    AP2DW TEST.AP2.SE
    AP2DW SCPROD.AP2.SE@AP2DW_CONN1
    AP2DW DW_VISMA.AP2.SE@VISMA_LOCATION_0
    AP2DW DWDEV_AP2DW.AP2.SE
    I have a sql that refrences this database_link SCPROD@AP2DW_CONN1
    If I execute a simple select using the link I got rows back, shouldn't I get
    ORA-02019: connection description for remote database not found
    select count(1) from SCDAT.A_HOLKEYS@SCPROD@AP2DW_CONN1;
    COUNT(1)
    407615
    Obviously I'm missing something but right now I can't figure it out
    Global_name = false
    domain_name is unset
    Anyone that can help me ?
    Thanks
    Magnus

    >
    AP2DW SCPROD.AP2.SE@AP2DW_CONN1
    AP2DW DW_VISMA.AP2.SE@VISMA_LOCATION_0
    AP2DW DWDEV_AP2DW.AP2.SE
    I have a sql that refrences this database_link SCPROD@AP2DW_CONN1
    If I execute a simple select using the link I got rows back, shouldn't I get
    ORA-02019: connection description for remote database not found
    select count(1) from SCDAT.A_HOLKEYS@SCPROD@AP2DW_CONN1;
    COUNT(1)
    407615
    Obviously I'm missing something but right now I can't figure it out
    Global_name = false
    domain_name is unset
    Anyone that can help me ?
    Thanks
    MagnusFrom the Create Database Link doc:
    USING 'connect string'
    Specify the service name of a remote database. If you specify only the database name, then Oracle Database implicitly appends the database domain to the connect string to create a complete service name. Therefore, if the database domain of the remote database is different from that of the current database, then you must specify the complete service name.So the domain .AP2.SE is implicitly being appended to your connect string. I think somewhere in the older upgrade docs it explains the default domain changed in 8i or net8 or something.

  • Remote procedures created on Private Database Links

    How to grant access to role on the private synonym created in a schema for the remote procedure with private Database links.
    We have converted the public database links to private. Plz suggest me how to access the remote procedures and
    grant access to role.
    Thanks a Lot in advance.
    Its Urgent

    I asked in general since my task was stopped because of this.
    Secondly i have asked the users not specifically you. If you dont want to answer just dont answer.
    Coming to the problem, There was no problem when the public database links were used. The public synonyms were created and we were able to grant access with the role.
    But why not with private dblinks.

Maybe you are looking for

  • Mac noob needs monitor help! how do I...

    I was given a 2003 imac as a gift. I've always had PCs but was thrilled to have my first mac to play around with. The bad news is that about half the time the monitor doesn't work!!! I turn the computer on and the screen comes on for a split second a

  • What are the steps involved in configuring Oracle EBSR12 after installation

    What are the steps involved in configuring Oracle EBS R12 after installation is complete? We have an empty oracle EBS R12 installed and up and running. We do not have anything configured. Please direct me to the documents that can be followed to do i

  • Java Callout with Collections in OSB

    I need return a collection (List) in Java Callout Action, i recive only this content in any variable: <con:java-content ref="jcid:15906698:135e486b745:-7f91" xmlns:con="http://www.bea.com/wli/sb/context"/> how i do for read or convert to list in OSB

  • To not allow billing cancellation when the invoice is cleared

    Hello I would like to know if there is any way to avoid the cancellation of an invoice via VF11 when the invoice has been already cleared. Thanks in advance.

  • How to use own style sheet

    Hi my friends, I created a JSP file that contains a report built using Reports Builder. When I run this page using a browser, my report is displayed correctly, including the style imported from Report Builder. But when I try run this page as a portle