Connection to an external database.

Hi we r using native sql commands and are connecting to external database. As far as I know from the discussions here i thought that these sort of connections are maintained in the table dbcon. But i don't see any entries in that table.
WHere as i could connect to that database succesfully and getting the records.
The table name for the external system is NOVARTIS.TABLE_ADDRESS@ANK like this.
Where could be that settings made.

Try this Forum Thread:-
1. In developer server you have to configure the tnsnames.ora. For doing this you should talk with a person who knows how to configure this file. In the register you should especify: protocol, host and port to connect to the other database system.
2. Then, you enter a register in the DBCON table. In this entrie you especify user, password, database id (in my case I wrote ORA because i am connecting to an oracle database), and in the enviroment field you write the name or alias of the register in the tnsnames.ora
3. In the abap program you use native sql sentences for connecting to the external database. This is an example:
EXEC SQL.
CONNECT TO :p_conexion AS 'C1'
ENDEXEC.
IF SY-SUBRC EQ 0.
EXEC SQL.
SET CONNECTION 'C1'
ENDEXEC.
EXEC SQL PERFORMING save_data.
SELECT COD_CGE, COD_SAX, TO_CHAR(FECHA,'YYYYMMDD'),
VALOR, HORA, TIPO, PAIS, SOCIEDAD
INTO :wa_serv_aux
FROM TEST_TABLE
WHERE FECHA >= TO_DATE( :W_FEC1 , 'YYYY/MM/DD')
AND FECHA <= TO_DATE( :W_FEC2 , 'YYYY/MM/DD')
ENDEXEC.
EXEC SQL.
ROLLBACK
ENDEXEC.
EXEC SQL.
DISCONNECT 'C1'
ENDEXEC.
In the form save_data i insert the work area into the internal table.
And that`s all. The most important thing is to configurate the tnsnames.ora file on the server side.
<i><b>Note:- One small suggestion, Before Posting Thread in SDN, search for the related topics in SDN forums and then post your thread, it would be helpfull for everybody.</b></i>
Regards:-
<b>Santosh</b>
Message was edited by: Santosh (INDIA)

Similar Messages

  • ABAP report  from fields connecting to an external database

    Hi All,
    The requirement is to connect some GL data with external audit data which is stored in an oracle database.  These two table data has to be merged and a report has to be generated.
    I heard we could connect to the external database from the R/3 4.7 version through DBconnect.  Has anyone come across any such requirement and done a similar report, could you give me the inputs please.
    regards
    Girish

    Questions like yours are best asked over at the webOS Developer's Forum.  The Palm Support Community here is geared to answering end-user questions about devices, not programming information.
    https://developer.palm.com/
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • API for connecting  to an external database object

    Hi,
    Can anyone provide me with the API for connecting to the external database table and to create , update and delete data with an Oracle external database object.
    Wish you great time.
    Best Regards
    Sid

    Questions like yours are best asked over at the webOS Developer's Forum.  The Palm Support Community here is geared to answering end-user questions about devices, not programming information.
    https://developer.palm.com/
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Connecting and Updating External Database from SAP

    Connecting and Updating External Database from SAP
    How can i connect SAP Database to External database?
    How can i update external databas from SAP withouting using BI/BW, Workflow or Net Weaver?
    If anyone know please let me inform.
    Thanks in Advance.
    Jahnavee Trivedi

    Steps
    1. Create an entry in tnsnames.ora for the remote oracle DB
    2. Test sqlplus user/pass@remote 
    3. create a synonym which points to a table at remote DB check docs.oracle.com
    4. user ABAP code execute SQL to insert data into local synonym which inturn updates the remote DB.
    I have done this in the past, it works great.
    It requries, DBA skills + ABAP programming
    -AJ

  • How can I connect to MySQL external database

    Hello.
    I have a SAP system running in SQL Server 2003.
    I need to connect to external MySQL DB., to operate with this information in ABAP program.
    I have done the step necesary... I mean I go to DBCO transaction and configure the connection like this:
    DB CONNECTION --> AFIS
    DBMS --> MSS
    user name --> xxxxxx
    DBpass -->xxxxxx / xxxxxx
    Conn Info -->MSSQL_SERVER=192.168.1.233 MSSQL_DBNAME=alliance OBJECT_SOURCE=alliance
    I do a test program, when I do the statement CONNECT TO, sy-subrc 0 and connection = DEFAULT... I mean, with this form I cannot connect to MySQL Database...
    Can you help me to do this?? I think the problem it's the connection string in DBCO... but I'm not sure...,
    Would be possible to connect by MySQL ODBC??? I mean , installing the ODBC driver in my SAP server, and using this in ABAP Program??
    Thks.
    DATA: BEGIN OF wa,
    cod_modelo(20),
    END OF wa.
    DATA: dbs TYPE dbcon-con_name.
    DATA: con(20) TYPE c.
    DATA : ls_wa LIKE wa.
    con = 'AFIS'. "DB Connection in DBCO above
    EXEC SQL.
    CONNECT TO :con
    ENDEXEC.
    WRITE sy-subrc. ---> The result it's 4
    EXEC SQL.
    GET CONNECTION :con
    ENDEXEC.
    WRITE : con. --> The result it's DEFAULT
    EXEC SQL.
    SET CONNECTION DEFAULT
    ENDEXEC.
    write : con. --> The result it's DEFAULT

    > It's for it, that when I go to DBCO... in DBMS ---... I can select Oracle, MSSQLServer, DB2... for this Databases..., exists the library (lib_dbsl)???
    yes, for all those databases exists the database interface library.
    > In resume:
    >  IT'S NOT POSSIBLE CONNECT TO MYSQL!!! ... I cannot believe it!!!...
    Well - as far as I remember there were some times ago efforts to port SAP applications to MySQL. That would explain why there's also a file "DDLMYS.TPL" created if you execute R3ldctl during a system copy - amongst DDL files for all other databases. I believe this was at the time MySQL was promoting SAPDB/MaxDB.
    MySQL is historically not a database engine for software, that requires transactional integrity; there were extensions to support that (InnoDB or others) and there was no customer demand in getting MySQL as engine for SAP applications. And only develop an interface to be able to connect to an external MySQL engine is not worth the effort.
    However, there is hope Some BusinessObjects applications also run with and against MySQL engines, depending on how the strategy to integrate those into the SAP software stack there may (or may not) be an interface for that database in the future.
    Markus

  • 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.

  • Create RFC for connecting BW with external database (ORACLE)

    Hello,
    I want to connect to a seperate oracle database from SAP BW system. For that i have to create a RFC.
    I hope i have to ctrate a TCP/IP connection.
    In SM59, I can see " start on explicit host " option where i have to give the program name. I dont know which program name i have to enter or from which location in sap/OS level i can find the program name.
    Please suggest the program name or the location.
    Thanks & REgards
    Prasanth

    Hi,
    Can anybody answer to my thread?
    Regards
    Prasanth

  • CONNECTING TO AN EXTERNAL DATABASE USING webOS

    Hi, I have a php code which i hosted on wampserver and a MySql database which I hosted in phpmyadmin. I have tried using Ajax request function which I wrote in the scene assistance file to call the PHP to access the database but its not working. Please does anyone have an idea why its not working?
    Post relates to: Pre 2 p102eww (Verizon)

    Questions like yours are best asked over at the webOS Developer's Forum.  The Palm Support Community here is geared to answering end-user questions about devices, not programming information.
    https://developer.palm.com/
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • JDBC Connection to an external Database in NW2004s !

    Hello,
    using the J2EE Server in NW2004s i'm facing some troubles in an Servlet, wich should get the connection from the J2EE Server with an jndi lookup. The JDBC driver is deployed by our hosting partner via the Visual Administrator.
    The next step was to create an datasource in the SAP NetWeaver Administrator ( Web Fronted ) and an alias to this datasource.
    The alias is "bpitrigger".
    Finally the servlet code :
    public void init() throws ServletException {
              // TODO Auto-generated method stub
              log.info("Init Methode startet.");
              log.info("Get DB Connection with JNDI Lookup.");
              DataSource ds = null;
              String contextName = "jdbc/bpitrigger";
              log.debug("Suche in Context nach " + contextName);
              try{
                   Context cont = new InitialContext();
                   ds = (DataSource) cont.lookup(contextName);
                   Connection con = ds.getConnection();
                   this.stmt = con.createStatement();
                   this.getServletContext().setAttribute("statement", stmt);
              catch(Exception e){
                   log.error("Error on DataSource. " + e.getMessage());
              log.debug("Datasource : " + ds.toString());
    The logging of the servlet is telling me, that no object with the name bpitrigger could be found.
    My question is : how can i verify in the j2ee server, that the deployed jdbc driver is working and can be referenced over the jndi context with the alias ?

    JNDI Lookup ist working.

  • Oracle Discoverer 4i (portal db - oracle 8i) connectivity issue with 11g database

    Hi All
    We have oracle discoverer 4i with portal db (oracle 8i).
    We connect to the external databases using db links in the portal db and the reports will use the db link to retrieve the data from views in the external databases.
    External databases we were connecting is oracle 10g version and now we have upgraded these databases to 11g version.
    Now i have a created a new db link to this 11g database and i have created a new EUL in portal to connect to this 11g database.
    But when i try to create a report using the discoverer from this new EUL after login to the discoverer we get a "cannot connect to database" error.
    We have all the necesscary privilege to the user and the new database link works perfectly fine. (when we try to query directly using SQL plus from portal database using this db link the query works perfectly fine).
    Im not sure if this is a compatibility issue in connecting from oracle disc 4i to a 11g database.
    Can any one advise if this is the case and if there is any workaround for this?
    Regards,
    Raj

    Are you saying you are having issues with a database link between 8i and 11g (pl post exact versions to 4 digits) ? If so, it should be expected as database links between these two versions are not supported. Is there a reason you cannot upgrade the portal database to at least 10gR2 ?
    See MOS Doc 207303.1
    HTH
    Srini

  • Connecting to an external dabase in workflow 7.2

    Hi All,
    I am trying to create a web service by using SQL component in workflow designer 7.2 to connect to an external database but could not have it done since I do not see any option to configure it. I know that Avoka has developed a QPAC called SQL+import which can use to connect to an external database but I would like to know if there is another option to do it so I can do a comparison before I decide to purchase it. Does any one have any idea please advise.
    Thanks in advance,
    Han Dao

    Hi Brett,
    According to your description, you are experiencing the error when you connect to SQL Server Analysis Services database on a SSIS package, right?
    In your scenario, you said that the package can be executed successfully on your local environment, the issue only occurs on the SSAS server. So please ensure that the provider was installed on the server. Besides, here is a blog which describe how
    to configure the Analysis Services Processing Task in SQL Server 2012 Integration Services, please refer to the link below to see the details.
    http://www.mssqltips.com/sqlservertip/2994/configuring-the-analysis-services-processing-task-in-sql-server-2012-integration-services/
    Regards,
    Charlie Liao
    TechNet Community Support

  • Accessing any external database

    How can I connect to any external database from portal.

    To further dd_Ram's question..here is our dilema. We want start exploring the use of native Oracle Portal Portlets to replace some of the Discoverer reports we have built. We have come across a ton of limitations/bugs/enhancement requests (whatever oracle wants to spin them as) using the Discoverer > Portlet Provider integration. We are evaluating Report Builder Portlet vs. Omni Portlet as an option. The report builder portlet gives us extra functionality and control than the omni portlet does. We have configured the omni portlet to connect to our ERP database by creating a new connection. What we would like to explore, is if the Report Builder Portlet is only connected to the Portal Repository database, or if there was a configuration to possible point it towards another database directly.

  • One-time import from external database - best practices/guidance

    Hi everyone,
    I was wondering if there was any sort of best practice or guideline on importing content into CQ5 from an external data source.  For example, I'm working on a site that will have a one-time import of existing content.  This content lives in an external database, in a custom schema from a home-grown CMS.  This importer will be run once - it'll connect to the external database, query for existing pages, and create new nodes in CQ5 - and it won't be needed again.
    I've been reading up a bit about connecting external databases to CQ (specifically this:http://dev.day.com/content/kb/home/cq5/Development/HowToConfigureSlingDatasource.html), as well as the Feed Importer and Site Importer tools in CQ, but none of it really seems to apply to what I'm doing.  I was wondering if there exists any sort of guidelines for this kind of process.  It seems like something like this would be fairly common, and a requirement in any basic site setup.  For example:
    Would I write this as a standalone application that gets executed from the command-line?  If so, how do I integrate that app with all of the OSGi services on the server?  Or,
    Do I write it as an OSGi module, or a servlet?  If so, how would you kick off the process? Do I create a jsp that posts to a servlet?
    Any docs or writeups that anyone has would be really helpful.
    Thanks,
    Matt

    Matt,
    the vault file format is just an xml representation of what's in the
    repository and the same as the package format. In fact, if you work on
    your projects with eclipse and maven instead of crxdelite to do your
    work, you will become quite used to that format throughout your project.
    Ruben

  • How to connect to a MSSQL database thru EP

    I need to know how to connect a mssql database to EP.

    Hi Garry,
    In order to connect to an external database you have to create JDBC or BI JDBC systems:
    http://help.sap.com/saphelp_nw04s/helpdata/en/1f/bddf3d48b05d5ae10000000a11405a/content.htm
    Then, you can show the information into the database using simple "query iviews"
    http://help.sap.com/saphelp_nw04s/helpdata/en/f5/eb516b0e6a11d7b84900047582c9f7/content.htm
    or with developer tools like Visual Composer
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/efeca129e31bc7e10000000a11466f/content.htm
    Regards,
    Nacho

  • SAP DB Connection from SAP BI on HP UNIX to MS SQL External Database

    Dear All,
    Greetings!
    I have a scenario to configure a SAP DB Connection from SAP BI System on HP UNIX 11i to the external legacy system MS SQL 2000 Enterprise for data upload. I am interested in connecting the SQL server as a Source System to the BI System.
    I read through documents mentioning about installation of a Client driver in the SAP BI System, I also downloaded the JDBC client software and tried installing the same, but the steps as mentioned Setting the CLASSPATH or connecting to the server did not work.
    Please help me in connecting the SQL Server as Source System, I would like to know in detail about the same - so kindly help me with the links to documents and guides about the same.
    Thank you
    Regards,
    Vineeth Damodar

    Short answer: this does not work.
    Long answer: To connect directly to the database you need
    - a database client for the source system
    - a database interface library for the source system
    Both of them are not available for HP-UX if the target database is SQL server --> doesn't work.
    What you can do is: add a Windows application server to your  BI system (heterogeneous installations work and are supported) and add there the database client and the database interface library.
    Markus

Maybe you are looking for