Change of a database link in OWB

I have a good suggestion to change a a database link when a server is moved to another location (in that case the database link of the source module has to be changed)
In OWB 9.0.2 it's not impossible to delete a database link in OWB, so you have to do it manually
(in 9.0.4 it should be possible, but this version is also not easy to use).
- Start SQL Plus and log in as the schema on which the OWB repository is created (e.g. OWB).
- Drop the database link ('drop database link <dblink name>')
- Create a new database link in the same schema with the new parameters, e.g:
CREATE DATABASE LINK "<dblink name>"
CONNECT TO "<...>" IDENTIFIED BY "<...>"
USING '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (Host = <hostname>) (PORT = 1521))) (CONNECT_DATA = (SID = <sid> )))'
Done!
No stupid errors in OWB when you create the database link in OWB itself.
Regards,
Maurice
;

SQL> create view test_view as select dummy from [email protected]
2 ;
View created.
SQL> select dummy from test_view;
D
X
Execution Plan
0 SELECT STATEMENT (REMOTE) Optimizer=CHOOSE
1 0 TABLE ACCESS (FULL) OF 'DUAL' FIRST9.XXXX.COM
Statistics
7 recursive calls
4 db block gets
2 consistent gets
0 physical reads
212 redo size
363 bytes sent via SQL*Net to client
425 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed
NOW WE PULL OUT THE NETWORK CABLE connecting the two servers.
SQL> select dummy from test_view;
select dummy from test_view
ERROR at line 1:
ORA-02068: following severe error from FIRST9.XXXX.COM
ORA-03113: end-of-file on communication channel
So all you have to do is to test for the communications error.

Similar Messages

  • Failed to create Database Link in OWB 9.2 for remote SQL Server

    Hi,
    I have to create Database link for connecting to SQL server in a different machine.I am using OWB 9.2 and XP.
    Dataserver is the machine name which is running SQL Server
    I included follwing lines in TNSNAMES.ORA file
    hsodbc.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dataserver)(PORT = 1433)
    (CONNECT_DATA = (SID=hsodbc.world)
    (HS =OK)
    I included follwing lines in Listener.ORA file
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dataserver)(PORT = 1433)
    (SID_DESC=
    (SID_NAME=hsodbc.world)
    (ORACLE_HOME=C:\ora92)
    (PROGRAM=hsodbc)
    I included follwing lines in inithsodbc.ORA file
    HS_FDS_CONNECT_INFO = testdsn
    HS_FDS_TRACE_LEVEL = 0
    While creating new database link I gave the follwing values
    DB Link Name : Mylink
    SQL * Net Connect String: hsodbc
    User Name: sa
    password:<my password>
    Then clicked "Create and Test" button to get the follwing error message
    Testing...
    Failed.
    ORA-12154 TNS:could not resolve service name
    *Cause: The service name specified is not defined correctly in the TNSNAMES.ORA file
    *Action: Make the following checks and correct the error:
    - Verify that a TNSNAMES.ORA file exists on your repository server
    in the proper place and is accessible. See the operating
    system specific manual for details on the required name and location.
    - Check to see that the service name exists in one of the
    TNSNAMES.ORA files and add it if necessary.
    - Make sure there are no syntax errors in the file.
    Particularly look for unmatched parentheses or stray characters.
    Any error in a TNSNAMES.ORA file makes it unusable. See
    Chapter 4 in the SQL*Net V2 Administrator's Guide. If possible,
    regenerate the configuration files using the Oracle Network Manager.
    Is there anything wrong in my configuration. Please help me in getting out of this problem.
    Thanks in advance
    Andy

    Hi Mark,
    Thanks Mark.I did the changes in the specified .ora file but now it shows a different error message.
    The error is
    Testing...
    Failed.
    Cwm Error Message: SQL Exception
    Cwm Error: SQL Exception
    Class Name: CacheMediator
    Method Name: getDDEntryFromDB
    Repository Error Message: ORA-28545: error diagnosed by Net8 when connecting to an agent
    NCRO: Failed to make RSLV connection
    ORA-02063: preceding 2 lines from MYLINK
    Query: select 1 from dual@MyLink
    I got the same error when i tried manually in sql plus.
    Please help me in getting out of thid problem
    Thanks in advance
    Andy

  • Change Ownership of Database Link

    Hi Gurus,
    How would I alter the ownership of a newly created database link to another owner (schema) ?
    Thanks,

    Hello;
    Drop and recreate the link in the correct schema.
    Its as simple as that.
    DROP PUBLIC DATABASE LINK <LINK_NAME>;
    or
    DROP DATABASE LINK <LINK_NAME>;
    Create database link ""
    connect to
    identified by ""
    using '(DESCRIPTION =
       (ADDRESS_LIST =
         (ADDRESS =
         (COMMUNITY = tcp.world)
         (PROTOCOL = TCP)
         (Host = )
         (Port = 1521)
       CONNECT_DATA = (SID = )
    )';Best Regards
    mseberg

  • Database Link in the OWB

    We are trying to deploy a map that needs to use a database link to access the source table in another server. We could create database link on OWB and import tables. When we deployed it we receive the first error "VLD-2771: System privileges may not allow extraction from source PROD_TAX_AVG" and after "table or view does not exists". The privileges was granted and we can test the access in SQLPLUS using the database link created.
    Anybody knows this issue ?
    Thanks,
    Ricardo

    Hi Ricardo,
    The message "VLD-2771: System privileges may not allow extraction from source PROD_TAX_AVG" is merely a warning, this can (generally) be ignored.
    After deploying your mapping check the PL/SQL code deployed and try to identify where the problem is.
    I have encountered the issue before where the schema name is configured for the mapping overriding the location defined parameters.
    To check this in the Design repository, right-click the mapping and click 'Configure'.
    Expand 'Sources and Targets' and check the schema name is not hard-coded.
    Cheers.

  • Urgent: How to create db link in OWB through wizard ? Where is that wizard

    Hi,
    I am facing problem in finding database link creation wizard in OWB.
    Connectors are created. How to use them in creating database link and where is the option to create the database link in OWB?
    Thank you in advance.
    Regards,
    Amit.

    Ola Amit,
    You can create database links within the ORACLE Modules you define.
    Expand Databases/Oracle and right click on one of the modules.
    You will see four tabs. The third will allow you to select or define database links
    Select one of the already existing links or create a new one by selecting the Create DB Link button...
    This is for the OWB version 10.1.x
    Regards,
    Moscowic

  • Owb92 demo: How to configure workflow database link?

    Hi,
    I follow the doc for owb92 demo, but got error while deploying the wh_proc_loc. The error is as follows. How do configure workflow database link on owb? Thanks.
    RPE-02085: Failed to test wb_rti_workflow_util.initialize through deployed Workflow Database Link ORCL.US.ORACLE.COM@WB_LK_LD_OLAP. Please check that "EXECUTE ANY PROCEDURE" privilege is set and that the OWB Runtime is available.
    - ORA-06550: line 1, column 7:
    PLS-00201: identifier '[email protected]@WB_LK_LD_OLAP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    Have you checked whether none of the specified errors applies?
    - The user needs the "EXECUTE ANY PROCEDURE" privilege
    - OWB Runtime available, this could mean several things:
    ......* runtime repository unavailable (as in not installed?... unlikely)
    ......* runtime platform service unavailable --> try running service_doctor.sql in directory <your OWB home>\owb\rtp\sql\
    Good luck, Patrick

  • OWB-OWF - Process Flow Deployment - Database Link

    Hello there,
    This post is basically related to my problem with Process Flow deployment.
    Could someone please shed some light on the following:
    When we create a Process Flow, during this process OWF creates a Database Link. For some reason, this link is not functional unless I remove the part after "." in that defines the "HOST" in the DB Link definition. How do I know it is not functional - I know because following query does not work:
    select * from [email protected]@WB_LK_WF_PKG
    Here is the link definition:
    ORIGINAL:
    create database link OWB92TRG.US.ORACLE.COM@WB_LK_WF_PKG
    connect to RR
    identified by "<pwd>"
    using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=CENTENNI-2077E4.CENTENNIALCOLLEGE.CA)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=OWB92TRG)))'
    MODIFIED (it works - above query runs OK):
    create database link OWB92TRG.US.ORACLE.COM@WB_LK_WF_PKG
    connect to RR
    identified by "<pwd>"
    using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=CENTENNI-2077E4)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=OWB92TRG)))'
    My second question is "using what userid/pwd should this link should have been created? Should it use "Runtime Repository Owner" or "OWB Repository Owner" or "Runtime Access User" or "OWF_MGR"?
    No matter what userid I use, it works when I run the query but I always get following error when I try to deploy the "Process Flows" in OWB:
    RPE-02085: Failed to test wb_rti_workflow_util.initialize through deployed Workflow Database Link OWB92TRG.US.ORACLE.COM@WB_LK_WF_PKG2. Please check that "EXECUTE ANY PROCEDURE" privilege is set and that the OWB Runtime is available.
    - ORA-04052: error occurred when looking up remote object [email protected]@WB_LK_WF_PKG2
    ORA-12545: Connect failed because target host or object does not exist
    I have already granted the "EXECUTE ANY PROCEDURE" to OWF_MGR. I am not sure, though, what is meant by the "and that the OWB Runtime is available" part of the error message above.
    I have also tried to fix this by running the "catrpc.sql" script but it did not help either.
    I am stuck on this step for past few days. I would highly appreciate help in fixing this problem. Here is the configuration I am using:
    o Source database : Oracle 9i (9.2) on my local PC
    o Target database : Oracle 9i (9.2) on my local PC
    o OWB 9i
    o OWF 2.6.2
    o OWB and OWF repositories are on the TARGET database
    I am able to successfully deploy and run my MAPPINGs.
    TIA,
    Amer

    Hello Oracle support,
    Should I open a TAR to get this problem resolved?
    Regards,
    Amer

  • OWB-Location for Sybase is defined through database link but not working.

    Hi,
    HS details are configured and database link from oracle to sybase database is working fine. In OWB, table list of sybase database is also displayed. Location defined for sybase database through connector which refers to database link created from oracle to sybase. While defining location on clicking of "Test" it gives result as successful. But when validation program is run for that location, it gives error that validation failed, specify correct host name, port number etc.. now, i am not able to solve this as database link is working fine and it is displaying list of table from sybase database. All the heterogeneous settings are done. I tried but sybase database doesn't allow direct connectivity so i define the location using connector which points to database link. Is there any thing missing in the setting of HS and do sybase allow connectivity direct from owb ?
    Please help.
    (If problem is not clear, please spare time to ask a question, i will reply immediately.)
    With Regards,
    Amit Shah.

    Amit - did you get anywhere on this?

  • Changing database links in query's

    I'm currently using query's with a syntax like 'select * from table@dblink'. Works fine, however the dblink (DWHD1) should at some time in the future be changed so it points at the production instead of the development server (DWHD1 should become DWHP1). This could mean changing numerous queries by hand after importing in the production server.
    I would rather like that this could be accomplished by changing a configuration item or something like that. Is there an easy way to accomplish this in APEX 3.0 by using a 'global variable' or..?
    regards
    Martin
    Message was edited by:
    mjb001

    This can be done only if you create dynamic queries. A better way to solve this is not to
    include any database links in your reports. Use Views and point them to a database.
    Denes Kubicek

  • OWB 10g -- Can't Create Database Links for Data Source and Target

    We installed OWB 10g server components on a Unix box running Oracle 10g (R2) database. The Designer Repository is in one instance. The Runtime Repository and the Target are in another instance. The OWB client component was installed on Windows XP. We create a data source module and a target module in OWB. The data source is on another Unix box running Oracle 9i (R2) database. We try to create database links for data source module and target module, respective. But when we created and tested the DB links, the DB links were failed.
    For the database link of data source, we got the following error message:
    Testing...
    Failed.
    SQL Exception
    Repository Error:SQL Exception..
    Class Name: CacheMediator.
    Method Name: getDDEntryFromDB.
    Repository Error Message: ORA-12170: TNS:Connect timeout occurred
    For the database link of target , we got the following error message:
    Testing...
    Failed.
    API2215: Cannot create database link. Please contact Oracle Support with the stack trace and the details on how to reproduce it.
    Repository Error:SQL Exception..
    Class Name: oracle.wh.ui.integrator.common.RepositoryUtils.
    Method Name: createDBLink(String, String, String, String).
    Method Name: -1.
    Repository Error Message: java.sql.SQLException: ORA-00933: SQL command not properly ended.
    However, we could connect to the two databases (data source and target) using the OWB’s utility SQL Plus.
    Please help us to solve this problem. Thank you.

    As I said prior the database link creation should work from within the OWB client (also in 10).
    Regarding your issue when deploying, have you registered your target locations in the deployment manager and did you first deployed your target location's connector which points out to your source?
    I myself had some problems with database link creations in the past and I can't remember exactly what they were but it had something to do with
    - the use of abnormal characters in the database link name
    - long domain name used in as names.default_domain in my sqlnet.ora file
    What you can do is check the actual script created when deploying the database link so see if there's something strange and check if executing the created script manually works or not.

  • Owb and database link creation

    hi everybody....
    I installed oracle 10g and owb on the samo machine (windows xp). When trying to create oracle module in owb it is required to create database link (is there any workaround?). But how can I create database link to local database when connected to local database???? Can anybody help me???
    thanks in advance

    thanx for your reply... I alredy tried everything.. but I always get this error:
    Testing...
    Failed.
    SQL Exception
    Repository Error:SQL Exception..
    Class Name: CacheMediator.
    Method Name: getDDEntryFromDB.
    Repository Error Message: ORA-28546: connection initialization failed, probable Net8 admin error
    Oracle instance works properly.. but I can not create Oracle module from OWB. Here is my tnsnames.ora file:
    ORCLANTI.LOCAL.HOST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = antix.login.net)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orclanti)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    here is my sqlnet.ora file
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    NAMES.DEFAULT_DOMAIN= local.host
    and here is my listener.ora file
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = E:\ora10g)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = orclanti.local.host)
    (ORACLE_HOME = E:\ora10g)
    (SID_NAME = orclanti)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = antix.login.net)(PORT = 1521))
    username and password are correct and db link name is ok!
    Now, do I have to enter SQL*Net connect string or hostname and oracle service name???
    I repeat... I already tried almost every combination!
    Thanks again
    maybe this is an Oracle configuration error because I am pretty new to this RDBMS :)
    another question:
    1. is ti possible to create a database link to local database (for example if I am connected to local database on my machine can I create database link from that database to same database but for another schema)???
    Message was edited by:
    antix

  • OWB can not create database link

    Hello!
    We use OWB 10.1. We are unable to create database link in the owb as a source for metadata information. The database user we use to connect to the owb have got the right to create database links and the same user can create database links outside the owb. we get the error message
    Testing...
    Failed.
    API2215: Cannot create database link. Please contact Oracle Support with the stack trace and the details on how to reproduce it.
    the database user is not the owner of the repository. if we use the repository owner to create the database link it works.
    it is also impossible to use a database link, that is created outside the owb, if we use an user that is not the repository owner.
    the error message is:
    java.sql.SQLException: ORA-02019: connection description for remote database not found
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:158) ....
    with the owner everything works fine.
    Regards Alex

    hi,
    If public dblink is a problem then u can create the table with PUBLIC SYNONYM and create a synonym of the table in ur DB so that u can access the table in ur DB and still make I/U/D in the table in the other DB. We just have to grant previlege for the synonym created for DML statements.
    Regards
    Bharath

  • How can you SELECT via Database Link CLOB data using Application Express?

    Customer Issue:
    Developer using Oracle's Application Express 3.1. The Developer is trying to SELECT a CLOB datatype column from a remote (10.2.0.3) database, via a database link on her 10.2.0.4 based client Application. The Developer wants to be able to select CLOB data from the remote database which has limitation that she can't make any changes to the remote database.
    Developer's Comments:
    I do a select and get the error. Getting error ORA-22992: cannot use LOB locators selected from remote tables. So she feels she can't use dbms_lob.substr in this configuration I can do a "select into" but that is for one value. I am trying to run a select statement for a report that brings back more than one row. I do not have permission to change anything on the remote database. I want to access the remote database and multiple tables.
    This is not something I work with, would greatly appreciate help or ideas. Is this a limitation of the 3.1; or does she just not have this set up correctly; or should she be using a Collection (if yes, please share example)
    Thanks very much,
    Pam
    Edited by: pmoutrie on Jun 4, 2009 12:01 PM
    Hello???
    Would really appreciate an answer.
    Thanks,
    Pam

    This may not be a perfect solution for you but it worked for my situation.
    I wanted to grab some data from Grid Control's MGMT$JOB_STEP_HISTORY table but I couldnt' create an Interactive Report due to the existance of a CLOB column. I cheated this by creating a view on the GC DB, grabbing the first 4000 characters and turning it into a varchar2 column:
    create view test_job_step_history as
    select job_Name, target_name, status, start_time, end_time, to_char(substr(output,1,4000)) output
    from MGMT$JOB_STEP_HISTORY where trunc(end_time) > trunc(sysdate)-90
    In an APEX Interactive Report:
    select * from test_job_step_history@GCDB
    Granted, the output looks aweful right now but I am only looking for a very particular output (failed, denied, ORA-, RMAN-, etc) so the formatting isn't the most important thing to me right now.
    If anyone can improve -- and I'm sure you can -- on this I'd love to hear about it.
    Thanks,
    Rich

  • Insert using database link

    Now connected to database B :
    INSERT INTO abc_hesids
              (     abc_key,
                   hesid,
                   date_added,
                   date_updated,
                   dob,
                   sex,
                   newnhsno,
                   homeadd,
                   procode3,
                   lopatid
              SELECT     'X',
                        0,
                        sysdate,
                        sysdate,
                        HES_Common.f_string_field('X', 1),
                        HES_Common.f_string_field('X', 2),
                        HES_Common.f_string_field('X', 3),
                        HES_Common.f_string_field('X', 4),
                        HES_Common.f_string_field('X', 5),
                        HES_Common.f_string_field('X', 6)
              FROM dual
    The above INSERT has been reduced down to bare minimum with the following error occurring :
    HES_Common.f_string_field('X', 1),
    ERROR at line 18:
    ORA-02069: global_names parameter must be set to TRUE for this operation
    SQL>
    The abc_hesids table exists in database A and this insert is running in database B. A database link exists such that abc_hesids is a synonym for the table of the same name in database A.
    I want Oracle to insert into the table in database A but use the package HES_Common in database B. I think this is possible but have not done this sort of thing for a while. Note : the package HES_Common exists in both databases A and B
    Any ideas on how to get Oracle to use the local version of the package - do I have to get the DBA to change global_names to TRUE ??

    ORA-02069 global_names parameter must be set to TRUE for this operation
    Cause: A remote mapping of the statement is required but cannot be achieved because GLOBAL_NAMES should be set to TRUE for it to be achieved.
    Action: Issue ALTER SESSION SET GLOBAL_NAMES = TRUE if possible.

  • TNS-12666 error occures when using database link

    When I am trying to use database link
    defined in my database the following error occures:
    TNS-12666 Dedicated server: outbound transport protocol different from inbound.
    In documentation is stated to resolve such an error to
    specify the same protocol in the SQL*Net connect string or alias for the outbound connection as that used for the inbound connection.
    I have in tnsnames.ora defined network service name
    by which I can connect to such a database by SQL*Plus
    without any problems, why can I not do such a thing
    via database link?
    Thanks a lot for advise, ...

    Could you change the following entry in your 'sqlnet.ora' file and try?
    SQLNET.AUTHENTICATION_SERVICES = (NONE)

Maybe you are looking for

  • External drive filling up with TM

    I set up TM a few days ago and have been very happy with it until tonight when I realised that my external disk is filling up very quickly. Let me explain... I have a 320GB Lacie disk with about 300GB actually available to use. After my first TM back

  • Sharing internet with xbox360

    well i got a xbox360 and i try to share my internet through the ethernet port, i went into the system pref and i went to sharing and i selected internet sharing and turned it on. still doesnt work tried restarted both systems and tried using differen

  • Does Apple keep track of crash statistics for iOS apps?

    I have been experiencing frequent crashes in a particular iOS app.  I have sent emails to the publisher (as have many users) and despite frequent updates, the problem persists.  Does Apple track these crashes and use them to re-evaluate the apps?

  • Employee Headcount

    Hi Gurus, I need help in resolving the issue in obiee HR Analytics. I am having the current employee headcount as 12000, my prior period headcount is 11500 and hire count is 200 and terminations are 30. here current employee count is not equal to pri

  • How to pull a subset of CRL list based on DistributionPoint.

    Problem: I've been unable to get a list of serial numbers of revoked certificates from LDAP. What I got is a string representation of a binary value, [B@95c083, which looks like a pointer. Output: objectclass = cRLDistributionPoint certificaterevocat