DB LINK to external Database

hi mates, i need access to a view running on another database server. i configured my db link and tried to compile the view. but the following message occurs:
ora-12154: TNS: Connection Identifier.... any ideas.. would be great!

821e2cc6-5b77-464c-955a-65ce7b4dea18 wrote:
hi mates, i need access to a view running on another database server. i configured my db link and tried to compile the view. but the following message occurs:
ora-12154: TNS: Connection Identifier.... any ideas.. would be great!
ORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
ORA-12154 [B]NEVER[/B] involves the listener, the database itself or anything on the DB Server.
ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
TNS-03505 is thrown by tnsping & is same error as ORA-12154 thrown by sqlplus or others.
The lookup operation fails because the name provided can [B]NOT[/B] be resolved to any remote DB.
The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
The most frequent cause for the ORA-12154  error is when the connection alias can not be found in tnsnames.ora.
The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry.
TROUBLESHOOTING GUIDE: ORA-12154 & TNS-12154 TNS:could not resolve service name [ID 114085.1]
http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/

Similar Messages

  • How to Link to External Database

    I can't figure out a good way to keep track of photos within Lightroom that I submit for contests, sales, etc. I could make comments in the caption metadata field, but that would mess up my caption field and is not that flexible. I could color code, but that's very limited. It seems like the ideal way would be to create an external database with something such as Microsoft Access. Using  the Filename as the primary field, I would link it to additional fields, date submitted, where sent to, type (contest, stock sale, gift, etc.), price obtained, published date, etc. Then I could see the history of any given image, run queries for all images submitted to a particular place where amount is > $0, etc.
    As this is just a hobby and the numbers are small, I could just enter all the data by hand, but if I ever enjoy a lot of commerical success it would be nice if the database integrated with Lightroom. Ideally the queries run would not only show the Filename, but also show photos, perhaps as a Collection in Lightroom. It seems there must be professionals that track such information. Perhaps there is a third party program that does this. I'd appreciate any suggestions.
    Dan

    I think Access would be better in the event a given photo is used multiple times. Suppose a particular photograph sold at iStockPhoto.com for $1 on 22 occasions, at a local gallery as a 5 x 7" print for $2 on 14 occasions, as an 8 x 10" print for $8 on 9 occasions, and on one's own web page for $3 on 9 occasions, plus published in Pop Photo on 4/17/03. To make custom fields in Lightroom would be onerous, and it couldn't do the math for you. In Access one could use one to many tables (tblPrintSize, tblWebSite, tblSellerType, etc.) to track this fairly easily. The only time consuming part would be entering each sale if one had a lot of them. Of course one could choose to enter quarterly or yearly sales instead if desired.
    Queries and reports would show where one's income is derived, what formats sell best, etc. It might help in tax preparation.
    This may be more power than professional photographers would ever want. It's probably a fantasy that won't come true that it will ever be an issue for me, but I like to be proactive on data management before it becomes unmanageable.

  • How to connect external database(Ex:SQL Server/Tivoli)  from ABAP Webdynpro

    Hi,
    Any one have idea how to connect external database like SQL Server/Tivoli to access tables from WebDynPro ABAP.
    Please point to me some links if you have
    Thanks
    Praveen

    Hi,
    Please check out this link -
    FETCH DATA FROM ORACLE DATABASE USING Web Dynpro
    Regards,
    Lekha.

  • How to access tables/views of an external database provider..

    After much trouble I finally managed to setup a second Database Provider that doesn't display the "0 out of 0 connections are good" error by filling in the "Configuration Class" field with "intradoc.server.DbProviderConfig".
    But now the problem is actually accessing the tables/views in my newly configured external database provider...
    In the Configuration Manager applet when I try to add a new Table or View it only lists the tables contained in the schema of the SystemDatabase database provider (the original one), I've tried running Queries via components trying stuff like SELECT * FROM provider_name.table_name and other similar but obviously it doesn't work...
    So... with that said, I just want to know how I access tables or views in my "supposedly" well conected (15 out of 15 connections are good, no errors on the Test Query) Oracle external Database Provider - After searching I was unable to find any information regading any post-provider-setup actions in the Content Server documentation - Does anyone know how to do this?
    On a side note, if the database is SQLServer instead of Oracle, with the same configuration and apparently no errors on the database side (other clients access it well) the Query Test of the new database provider returns the following error:
    "The provider 'TestSqlSrv' is in error. Unable to create database connection for JDBC:ODBC:SqlSrv. Unable to create result set for query 'select * from dummy'. Invalid Fetch Size Unable to create result set for query 'select * from dummy'. Invalid Fetch Size java.sql.SQLException: Invalid Fetch Size".But I won't even go there yet.... for now I would settle with just knowing how to reference information in the Oracle external database provider...
    Message was edited by:
    user602700

    if you are able to, pick up Bex Huff's book the Definitive Guite to Stellent Content Server Development (amazon link: http://www.amazon.com/Definitive-Stellent-Content-Server-Development/dp/1590596846/ref=sr_1_1?ie=UTF8&s=books&qid=1196365101&sr=8-1)
    chapter 11 is all about this.

  • How to connect external database into BI source system?

    <Moderator Message: Please search before posting. This issue has already been discussed a lot of times. Additionally you might have a look at the online help>
    Dear SDN,
    I am working on BI 7.0 system.
    Client request is to connect the external database into source system.
    External database (different server) has installed the Sybase database.
    1.Is it possible ?
    2.What is the procedure for connectivity from BI end .
    3. which server port of external database(sybase databse) need tobe open for firewall policy.
    Thanks in advance
    Ravi
    Edited by: Siegfried Szameitat on Mar 9, 2009 1:23 PM

    Hi Ravindra,
                    Check here........
    <link farm removed by moderator>
    Thanks,
    Vijay.
    Edited by: vijay m on Mar 9, 2009 5:43 PM
    Edited by: Siegfried Szameitat on Mar 9, 2009 1:23 PM

  • RFC XI JDBC to external database.... Get data in multiple rows

    Hi,
    We have been really struggling with this scenario. We have created a RFC that has 1 Import parameter (Order_ID) and table parameter (3 Columns: Order_ID, Partner_type, Partner_no).
    When we call this RFC in SAP, it should make a connection to external database via JDBC and get multiple row data for every Order_ID. We are not using Oracle Stored Procedure, instead we are using simple Select statement. Did all the mapping and configured correctly. However, we are getting short-dump when we execute RFC. When we checked in XI, it says " Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at "
    Has anyone tried getting multiple row information from external database(Oracle) using Select statement in XI ? IF so, can you pl let us know if we need to something different in Mapping ?
    Niranjan

    Niranjan,
    Check this blog of mine to see how the datatype for Synchronous Select should be constructed,
    https://weblogs.sdn.sap.com/pub/wlg/3928. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    If this looks good, a few checks
    1. Check the request inbound payload , i.e the RFC request in MONI. Is this as expected?
    2. Check the output of the request mapping and check if this is as expected.
    3. Check the response from JDBC, is this as per the datatype defined.
    4. Check the mapping from JDBC response to RFC response.
    To me this looks like an issue with the JDBC response structure.
    Meanwhile to understand how to test mapping, check blog of michal,
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    Regards
    Bhavesh

  • Connecting AIR with external database

    Is it possible to connect AIR application to the external database in MySQL technology?

    Are you trying to connect to a MySQL database on a web server somewhere? If so, by far the easiest way to do so is to use some sort of application server layer (e.g. PHP, ColdFusion, Java) on the web server, and have the AIR application call the PHP (or whatever) code to get the data. That is the approach that all the links Greg has given you are talking about.
    Of course, in order to make that work you need to know enough PHP/Java/ColdFusion to write that middle layer. In the example you're asking about, the information it wants to know is the name of the server that the MySQL database is running on, and the MySQL username and password for the MySQL account that your PHP code is supposed to use. There are tons of resources on the web for writing PHP code that accesses MySQL, so you'll find much more and better information in other places than what you'll find in the Adobe AIR forums.
    However, maybe you want to have the MySQL server running directly on the user's computer rather than on a web server somewhere. In that case you would have a few options:
    Run a web server and application server (e.g. Apache and PHP) on the user's computer and use those to connect between the AIR application and the MySQL server.
    Write Java code to communicate between the MySQL server and the AIR app, and call that code using Merapi (http://merapiproject.net/)
    Run the MySQL server on the user's computer and call the server directly from AIR using ActionScript. While there is no built-in support for MySQL in AIR, there is a third-party (open source) library for calling MySQL directly from ActionScript available here: http://code.google.com/p/assql/. I haven't tested it so I have no idea how complete it is, but it's a solution to consider.
    However, in all three cases you're depending on some external pieces that have to be installed and loaded separate from your AIR application. (For instance, most users probably don't want a MySQL server running on their computer all the time if they aren't using your AIR app all the time -- so you'd want a way to start and stop the server, which also couldn't be done directly in AIR.) People do write applications that use external resources like this, but it's not the easiest thing to implement.
    If you're really wanting to run the database locally, the best solution (assuming it works for your needs) is to use AIR's built in local SQL database engine (based on SQLite). If you've looked at that option already, and found that it doesn't work for you, I'd be interested to know more about what you're trying to accomplish that you can't accomplish with the AIR local database.

  • ACS external database issue

    Hi
    I have the following issue, user exists on both the ACS and token server authenication is set to external database with no unknown user policy as the user is known to the ACS! this fails authenication error message is CS user unknown... Now if the unknown user policy is set to the external database the authenication works fine this is on 3.3. I have checked for bugs to no avail.
    Any assistance would be good...
    Thanks MJ

    Hi JG
    Many thanks for your response, it is configured this way due the documentation below:
    Known Users -Users explicitly added, either manually or automatically, into the CiscoSecureACS database.
    These are users added through User Setup in the HTML interface, by the RDBMS Synchronization feature, by the Database Replication feature, or by the CSUtil.exe utility. For more information about CSUtil.exe, see "CSUtil Database Utility".
    CiscoSecureACS attempts to authenticate a known user with the single database that the user is associated with. If the user database is the CiscoSecure user database and the user does not represent a Voice-over-IP (VoIP) user account, a password is required for the user. If the user database is an external user database or if the user represents a VoIP user account, CiscoSecureACS does not have to store a user password in the CiscoSecure user database.
    This is from the following link....
    http://www.cisco.com/univercd/cc/td/doc/product/access/acs_soft/csacs4nt/acs32/user/qu.htm
    Many thanks MJ

  • How to connect external database with SAP

    Hi,
    How to get the data from an external database into SAP by directly linking the SAP Program to the external database.
    Regards
    Guhapriyan

    Hi,
    http://help.sap.com/saphelp_nw04/helpdata/en/58/54f9c1562d104c9465dabd816f3f24/content.htm
    This might help,
    Regards,
    Gaurav

  • Authenticating Guest Users Using External Database.

    Folks, greetings.
    Due to the limitations imposed by wlc's database size, we decided to go for an external authentication server.
    Since this external database is for guest access, we are considering in using a Linux box with LDAP, along with a web-based application which will be presented to the user for authentication purposes. This way, the user would type in his/her credentials on this portal and the same box would process the authentication.
    In such a scenario, we would buid an application for the "Lobby Amabassadors" input the guest data (for auditing purposes we need to enter the user's SSN, passport # or any other official ID), and this application would generate the password to be used during the authentication process.
    I've used web-auth before, with the users database loaded on the WLC (local net users). Even using an external web-auth portal, the user is still authenticated by the controller that in turn, will control whether the traffic is to be allowed or not, based on the authentication results.
    That's exactly where our question lies: how should we configure the WLAN so that the WLC would receive the access request and forward it to the authentication portal/server? Would it envolve radius?
    This same Linux would be the DHCP server for this guest WLAN.
    WLC vesion: 4.2.130.0
    Regards,
    AL

    Using the Web Authentication feature on a Cisco wireless LAN controller, we can authenticate a guest user on the wireless LAN controller, on an external web server or on an external database on a RADIUS server. We can configure the wireless LAN used for guest traffic to authenticate the user from an external RADIUS server.
    To enable an external RADIUS server to authenticate traffic using the GUI, follow this link.
    http://www.cisco.com/en/US/docs/wireless/technology/guest_access/technical/reference/4.1/GAccess_41.html#wp1001207

  • OBIEE 11.1.1.7 external database authentication fails with hashed passwords.

    Hi .
    I use an external database ( Oracle database 11g  release 11.2.0.1.0) to authenticate user with OBIEE 11.1.1.7.
    I configured  SQL Authentication provider as my provider ,It works OK with :enabled  Plaintext Passwords Enabled option and password  is stored as plain text.
    But It fails when I disable this option and want to authenticate with hashed passwords.It gives Authenticate Denied error.
    In Provider Specific tab there are some parameters which might need changes:
    1-Password Algorithm:??
    2-Password Style:??
    3-SQL Get Users Password:SELECT U_PASSWORD FROM USERS WHERE U_NAME = ?
    How can I find correct values for options 1 and 2 form my external database?
    And Is it need to rewrite query in option 3 ?
    Please find attach files.

    Hi,
    I too faced same issue when I was installing OBIEE 11.1.1.7.0 on windows7 64bit.
    Please refer the below links.
    http://satyaobieesolutions.blogspot.in/2013/05/configuration-action-creating-domain.html
    http://satyaobieesolutions.blogspot.in/2013/05/obiee-111170-simplesoftware-installation.html
    http://satyaobieesolutions.blogspot.in/2012/06/obiee-11.html
    Hope this help's
    Thanks,
    Satya

  • Password Protection of PDF with multiple passwords stored in external database.

    Ok, here is what I need to do.
    I need to find a way to embed a script into a PDF using LifeCycle Designer so if someone downloads my PDF they won't be able to access it unless they are a registered user in my MSAccess or MySQL database.
    Link from PDF to external database to authenticate USER before allowing the PDF to be opened (in case they have downloaded it to their desktop).
    Is there a creative way or alternative to accomplish this? Just looking to prevent the average person (not the security savy webmaster).
    Thank you.

    The Bouncy Castle JCE provider (www.bouncycastle.org) has Base64 encoder/decoder classes that 'just work'.
    import org.bouncycastle.util.encoders.Base64;
    String base64encodedString = "ABCKD4632adcomd";
    byte[] decoded = Base64.decode(base64encodedString);
    String reencoded = new String(Base64.encode(decoded));As for your second question re: how should you re encrypt the passwords? The standard, quite secure way of doing this is to use a one-way cipher. This will encrypt the password text to an unintelligible mess, that CANNOT be decrypted back to the original.
    When a new user enters their password for the first time, you use your cipher to encrypt it, and store this (not the actual password).
    To verify this user, you take the password they give you, encrypt it in the same way, and compare the results.
    Unix/Linux can use a shell command called 'crypt' to do exactly this... MySQL will also do it for you... INSERT INTO blah VALUES(CRYPT('blahpasswordstring'), and SELECT * FROM blah WHERE password=CRYPT('enteredpassword')).
    ... and its far too early in the morning, and I cant for the life of me remember the JCE equivalent of this function :(

  • Exporting Data to external database

    Hi All,
    As background our SAP systems use Oracle on Solaris.
    I have written programs that export data to an external oracle database also running on solaris by embedding native SQL in the ABAP program.
    There is now a requirement to export data to a MS SQL Server database running on Windows.
    We are on BW v3.5. I know this was not possible previously can anyone confirm whether the method above will still not work for a SAP system running on Solaris exporting to MS SQL Server on Windows? i.e. Native SQL in ABAP program.
    Many Thanks
    David

    I don't know very well it, but it's a tool to link SAP to external database.
    No u can create a link in the table DBCON and then insert native SQL code in ABAP prog. using EXEC SQL statament.
    I used it only once, I hope it can be usefull for u.
    Try to see this note: 178949<a href="https://websmp230.sap-ag.de/sap(bD1pdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=0000178949&nlang=E">https://websmp230.sap-ag.de/sap(bD1pdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=0000178949&nlang=E</a>
    Anyway this the text:
    Symptom
    DATABASE MULTICONNECT WITH EXEC SQL
    This note describes the possibility of accessing data with EXEC SQL which is not on the R/3 database server but on another MSSQL system.
    Other terms
    CONNECT DBCON OLEDB dblib
    Reason and Prerequisites
    It's desired to make a connection to a SQL Server database running on a server different from the R/3 server.
    Prerequisite: At least one Windows application server must be available on the R/3 system and the DBSL dynamic library (DLL) dbmssslib.dll must be installed on this server. This dll can be downloaded from the SAP Service Marketplace.
    Solution
    Basics of the EXEC SQL MultiConnect
                OPEN SQL database accesses always refer to the R/3 database for the particular R/3 system's <SID> (three letter uppercase database name). EXEC SQL accesses normally also refer to the R/3 database. To access data which is on the R/3 database server in a database other than the <SID> database, it is sufficient to enter the table name qualified by the database name in EXEC SQL.
    Example:
    EXEC SQL.
      SELECT MYFIELD FROM MYDB..MYTABLE
    ENDEXEC.
    Furthermore, you have the option in R/3 to access data with EXEC SQL which are on other SQL Server systems.
    Creating a DBCON entry for a remote connection
                Every link which should be addressed via the Multiconnect must be described by a record in table DBCON. This entry can be created by means of the transaction sm30. For SQL Server create an entry as follows:
    CON_NAME: <my_conn_name>
    DBMS: MSS
    USER_NAME: <db_user>
    PASSWORD:  <password>
    CON_ENV: MSSQL_SERVER=<server_name> MSSQL_DBNAME=<db_name>
                db_user could be sapr3 for example if the server is running R/3.  The password field may be blocked from view by asterisks in sm30. USER_NAME can be left blank in order to use integrated security (4.6d kernel and later).  In that case make sure that the OS User running R/3 has the required privilege on the remote server.  A dummy password must be entered in sm30, it will not be used when the user name is blank.
    Specifying the server name
                The server name is simply the name of the SQL Server or named instance i.e. the hostname (for a default instance), or <host>\<instname>
    Starting with release 6.40 however there are some special considerations that should be taken into account.  When running with kernel release 6.40 or later, the R/3 system will prepend a protocol specifier to the server name.  Example:
       1. For a server running on the same server:
                 np:<servername>
       2. For a remote server:
                tcp:<servername>
    This forces the connection to be made with a named pipes and tcp/ipprotocols respectively.
    When specifying the server name you can override this by setting your own protocol (tcp: or np:), or you can make R/3 avoid setting any prefix by using simply :<servername> - a colon in front of the server name.
    How to use the Multiconnect
               Here is an example for how to connect to another server with CON_NAME=BSK.  The example assumes BSK is running R/3:
               EXEC SQL.
      CONNECT TO 'BSK'
    ENDEXEC.
    EXEC SQL.
      SET CONNECTION 'BSK'
    ENDEXEC.
    EXEC SQL.
      SELECT db_name() INTO :DBN FROM SVERS
    ENDEXEC.
    WRITE: / 'current database name', DBN.
    EXEC SQL.
      SET CONNECTION DEFAULT
    ENDEXEC.
    EXEC SQL.
      SELECT db_name() INTO :DBN FROM SVERS
    ENDEXEC.
    WRITE: / 'current database name', DBN.
    Tools for creating DBCON entries
               In SAP basis release 6. 40 new tools were introduced to make it easier to create DBCON entries for use in remote monitoring.  These tools are accessible through st04_mss -> "Change connection data" button -> Go To -> "Maintain DBCON" for example.
    The "Change connection data" button is the small pencil icon on the right hand side of the main st04_mss screen.
               There is an on-line guide for creating DBCON entries this way.   It is available on:
               http://help.sap.com
       Documentation -> SAP NetWeaver -> SAP NetWeaver '04
                And then expand the tree on the left hand side using SAP NetWeaver -> Application Platform -> Databases -> SAP/MS SQL Server 2000 DBA in CCMS.
               Finally go to Database Management Tools -> Monitoring Remote SQL Server Databases -> Setting Up the Remote Connection -> Creating a DBCON Entry.
    Max

  • Connection to external database

    Hi All,
    we have an requirement to connect SAP R/3 to external database which is oracle and java tool for data uploading.
    One of our team abaper requested us to establish the connection.
    When explored , i got some info on DB11 and DBCON table.
    I created the connection with the DBM user control and SAP user SAPR3.
    Please let me know how to test the connection further and details on connection to external database from BASIS point of view.
    Thanks

    Hi,
    Using transaction SE11, create a table (ZTABLE) with the same fields as the table in the external database, make sure that the type and lengths of the fields are identical.
    Using transaction SE11, create a view (ZTABLE_VIEW, projection view) using BASIS table ZTABLE
    Using SVRMGRL>
    create dblink REMOTE_DB as connect to remote_user identified by password; (database link created)
    drop table ZTABLE; (table dropped)
    create synonym ZTABLE for ZTABLE@REMOTE_DB; (synonym created)
    Using transaction SE16 , type in ZTABLE_VIEW and hit RETURN
    Enter value in key fields and hit execute. (displays rows from the remote table)
    In other words
    To access an external database from ABAP via DBLINK (ORACLE)
    Using transaction SE11, create a table (ZTABLE) with the same fields as the table in the external
    database, make sure that the type and lengths of the fields are identical.
    Using transaction SE11, create a view (ZTABLE_VIEW, projection view) using BASIS table ZTABLE
    Using SVRMGRL>
    create dblink REMOTE_DB as connect to remote_user identified by password; (database link created)
    drop table ZTABLE; (table dropped)
    create synonym ZTABLE for ZTABLE@REMOTE_DB; (synonym created)
    Using transaction SE16 , type in ZTABLE_VIEW and hit RETURN
    Enter  value in key fields and hit execute. (displays rows from the remote table)
    <REMOVED BY MODERATOR>
    Jagadish
    Edited by: Alvaro Tejada Galindo on Apr 8, 2008 6:08 PM

  • Cross Reference within external Database using XREF API

    Hi Experts,
       Can we do Cross Reference within external Database using  XREF API uses JDBC to access the Oracle Database Stored Procedures in SAP PI? How to use a JNDI Data source to access the DB and how to do the Connection Pooling will be done by the SAP J2EE server? Kindly let me know step by step proceedings.
    Regards
    Archana

    Hello Archana,
    It can be done with a Lookup call in a mapping.
    Here's a little article about the topic in the SAP wiki:
    http://wiki.sdn.sap.com/wiki/display/XI/HowtouseCrossReferencewithinexternal+Database
    With kind regards
                     Sebastian

Maybe you are looking for