Access form ABAP to external MySQL-Database (read/write)

Hello!
We have an external MySQL-DB (running on Linux). Now we should read this database from our SAP-System (running on Linux with Oracle-DB) to create a purchase order. After creating this order in our SAP we should update the dataset in the MySQL-DB (creating order was succesfully).
How can we create the Connection to the MySQL-DB?
Thank you.
Best Regards
Markus

Hi Markus!
Sorry for the delay, the day was well filled
For example of ADBC, as Kennet said, you can use ADBC_DEMO.
About RFC, I advise you to take a read on the SAP JCo (SAP Java Connector), this is a SAP middleware component that enables the development of SAP-compatible components and applications in Java. From this you can send what you want interfacing to SAP.
As said above in my last post, I would advise creating an RFC instead Native SQL. Not sure how the scenario you have to develop this solution, but I believe will be a more secure.
Regards.

Similar Messages

  • Open standby database read/write

    What's the syntax to open a standby database read/write?
    Any help will be appreciated.
    Thanks

    Technically it's not open Standy database read/write,
    Activate the standby database using the SQL ALTER DATABASE ACTIVATE STANDBY DATABASE statement.
    This converts the standby database to a primary database, creates a new reset logs branch, and opens the database. See Section 8.5 to learn how the standby database reacts to the new reset logs branch.
    Physical Standby can only be open read/write in 11g with active standby option.

  • Database Read/Write Ratio

    Hii All..
    Could I use physical read/physical write per second in monthly awr report Or v$sysstat physical reads/physical writes in order to calculate database read/write percentage ?
    Or is there diffrent method to understand database's act to sizing IO workload.
    Best Regards

    If I have to tune performance, i would take a time interval when performance degrades.
    When you take the whole month you put all in one sack (eg. daily OLTP transactions and nightly backup), so the statistics may be useless.
    Summarizing, look at intervals between selected snapshots (eg. 6am till 6pm).
    If however you want to calculate for calculating sake, then you may use v$sysstat which contains statistics since the DB startup.

  • Unable to access Webdynpro abap application externally

    Hello,
    We have created a WebDynpro ABAP application,it is a simple application talking to the ECC.
    We are able to run this application on our portal within the network,but when we try to access the application from an external network it says Internet Explorer page cannot be displayed.
    We are not using any Web Dispatcher.
    Thanks
    Mayi

    You need to talk to your network administrators.  Probably your ECC system is within your corportate network and behind a firewall that doesn't allow requests in for these servers/ports.  You need to work with your basis team and network team to open the appropriate ports and IP addresses in the firewall. However you should also still provide protection for your ECC system with some forms of reverse proxies as already suggested.  This is a security process you should perform with your local admins.  This isn't really a Web Dynpro ABAP related process or inquiry.

  • Submitting Pdf form fields to a MySQL database via PhP

    Hi there,
    I have recently created a Pdf in Adobe LiveCycle which looks great, and I have added a submit button which is set up to send all the form data in HTML to a PhP file on the server side. The PhP file then collects the form data and inserts it into my MySQL database.
    When I run this form from Adobe reader or Professional it works great and the new record is inserted in the database. However I am trying to embed the form into a HTML page, which again looks fine, and all other buttons i.e. Save As, Print work fine.
    The submit button however is not working properly now. It inserts a new record into my database, but the fields are blank as if the form data has not been sent or received?
    Can you possibly advise me where i'm going wrong.
    Much appreciated
    Cane

    Hi Cane,
    I'm relatively new to creating Adobe Forms but I'm looking to do exactly what you have set up, submitting the results to php which sends the results to a database. I don't like the responses being sent to a pdf response file then every so often you have to export to csv then import the results into a database....too tedious. Can you perhaps provide the code that goes behind the submit button and maybe the code that you use on the php/server side? Again, relatively new to this and don't know where to begin but if I can look at the code behind this it would make things a lot easier.
    Thanks,
    Ed

  • Formatting external drive for read/write PC/Mac & files greater than 4GB

    I'm on Snow Leopard and deliver an external drive off-site to a video editor who needs to read/write to the drive and return the edited files and then I need to read/write all over again. All video files are greater than 4GB. How would I go about this? Third party applications like MacDrive create too much overhead when processing video files. FAT32 limits file sizes to 4GB.

    Hi WillDuffy;
    Your requirement of files greater than 4GB eliminates FAT.
    In your case since you don't have access to the PC, I am afraid you are forced to use the NTFS. This will require you to use the reverse engineered effort called NTFS-3G to be able to write to the disk from your Mac. Sorry.
    Allan
    Message was edited by: Allan Eckert

  • Make external hard drive read/write

    Not quite sure if there is in the right section but oh well.
    Here's the story:
    SeaGate FreeAgent GoFlex Drive (1.5TB) (THE FOLLOWING INFO WAS TAKEN FROM ITS APPLICATION: ("SEAGATE DRIVE SETTINGS")
    Drive Info
    Model: FA GoFlex Desk
    Firmware: 0D19
    Volume Info
    Format: Windows NT Filesystem
    Capacity: 1397.26 GB
    Available: 1224.35 GB
    Used: 172.91 GB
    Mount point: /Volumes/FreeAgent GoFlex Drive
    So it seems to slow down my iMac (10.6.8), 2GHz Intel Core 2 Duo, 1.5GB 667 MHz DDR2 SDRAM (memory) (1st Generation 17 inch) a fair bit. Could this be because of the Format? I have no idea why it says that. When I first installed it, it asked what OS I'm going to use it for. Not quite sure if I chose both or just Mac. But those files have somehow dissappeared.
    Now in Disk Utility...the RAID tab, Format says it is set to Mac OS Extended (Journaled) but then in the Erase tab it says Format: Windows NT Filesystem
    Which format is it set to!?!?!?!?!?!?!
    Now to the main point:
    I also have a new 13" MacBook Pro. When I plug it into it, I only have Read Permissions. How do I make it have Write Permissions as well?
    Sorry for the long essay...I hope you can help me. I might have two problems here.
    1. Is the format correctly set up for my iMac?
    2. How do I set it to have Read/Write permissions on different computers?
    Thanks.

    The Format is incorrect for Mac use, as you guessed.  Go into Disk Utility again, highlight the external har drive in the left hamd column by clicking on it and select the "Erase" tab, up and over to the right.  Then select the Format below that will be installed as "Mac OS Extended (Journeled)".  THEN, OK the erasure.  That should clear things up.
    Note: your Windows PC will NO LONGER be able to read the external hard drive.  It will be formatted for OS X use.
    Hope this helps

  • Metrics on database read/write/delete based on size of the table

    Hi,
    Though we have many performance measurement tools,sometimes it is difficult for developers to trace and measure each read, some reads which look fine in the development environment turn out to be show stoppers in quality environments.
    I am trying to find if we can give a rough estimate of ideal response time of an RFC based on the number of database fetches/writes in the RFC assuming that the loops and internal table reads etc are optimized.
    e.g.: if my RFC performs two reads and one insert.I would like to arrive at a figure e.g.: 200ms should be the ideal runtime of the RFC.
    I would like to base my calculations based on the following parameters:
    - Table Size
    - Key/Index used
    e.g.: For a FETCH operation
        Table Size | Key Used | Total Time 
         Upto 1 G  | Primary  | 100ms
         1 - 5  G  | Primary  | 200ms
    Similarly for insert and delete..
    I have the following questions for the forum in relation to the above:
    - Is the above approach good enough for arriving at a
      approximate metric on total response time of an RFC ?
    - Are there any other alternatives, apart from using the
      standard SAP tools ?
    - How are metrics decided for implementations with Java
      and  .NET frontends ?
    Thank you,
    Chaitanya

    Hi There
    Do you mean dba_segments table?
    My boss want to export 2 big tables and import to training environment, each table contains more than 2 million rows.
    I want to know how big(bytes, or megabytes) are those two tables on the hard drive, because we are going to run out of the space on the same server. I am not sure the diskspace can afford such big export or not, so if I can know how big are those 2 tables, and then I can decide what I can do for export. For example: I got 200MB left on my /home directory, that is the only place we can put export, those 2 tables could be bigger than 400MB even though I compress the export file.
    Hopefully this time it is clear.

  • Making sql server database read -write from read only

    hey guys
    i attached adventure works in sql server 2008 and it showing as read only ,
    so please guide me to make it read write or remove read only tag from database
    thanks in advance
    sujeet software devloper kolkata

    Hi,
    Is there an error message while you attach (Or restore) the database if so please provide it.
    If no Right click on your database choose properties -> go to options -> scroll to end then change read only option to false
    I hope this is helpful.
    Elmozamil Elamir
    MyBlog
    Please Mark it as Answered if it answered your question
    OR mark it as Helpful if it help you to solve your problem
    Elmozamil Elamir Hamid
    http://elmozamil.blogspot.com

  • How do I change the "Permissions" on an external drive to 'read & write'?

    I am experiencing a problem with an external Hard Drive that I'm now using with my iMac, that used to be connected to my old PC.
    I can't write anything to it. When I check its "Info", under the "Sharing and Permissions" tab, it says "You can only read".
    Does anyone know how to change this so that I can both read and write to the drive like normal?

    Hello br121
    You will need to *Partition and Format* the External Hard Drive.
    +Warning save all the data to another drive, partitioning and formatting will erase your drive.+
    If you want to setup the drive exclusively to use with the iMac (Time Machine, Cloning your Mac HD or storing large files) you will have to reset the partition map scheme to *GUID Partition Table* and format to *Mac OS Extended (Journaled).*
    If you want to setup the drive so that both Mac and windoz systems can read and write to it, then you will want to reset the partition map scheme to MS-DOS and format to FAT-32
    +(keeping in mind that FAT-32 has a single file size limit of 4GB)+
    The following article by Ken Stone was written before Snow Leopard, but it's still very helpful because basic Disk Utility partitioning and formatting is the same.
    http://www.kenstone.net/fcphomepage/partitioningtiger.html
    If you get stuck you can refer to Ken's article above, Disk Utility HELP and or come back here.
    Dennis

  • Determine database read/write statistics

    From the following (in Oracle documentation)
    DB_WRITER_PROCESSES parameter is useful for systems that modify data heavily. It specifies the initial number of database writer processes for an instance.
    And from the "Deployment Guide for Oracle on Windows using Dell PowerEdge Servers.pdf" in http://www.oracle.com/technology/tech/windows/index.html
    RAID LEVELS I have heard that it is for disks where datafiles reside the following is true
    If I/O is <= 90% reads, then it is advisable to go for RAID 10. If I/O is > 90% reads, then RAID 5 could be considered.
    I would like to know
    1. How do we find out whether our database is "read heavy" or "write heavy"? Are there are scripts available please?
    2. In commercial environments, what sort of RAID Levels are normally used for "read heavy and write heavy databases?
    Edited by: sandeshd on Oct 14, 2009 3:11 PM

    We were in a similar situation some weeks ago, we decided to make a trigger (logout) for saving the butes for a specific schema, you can work with this data importing it with Excel or something similar.
    DROP TABLESPACE BYTES_USUARIOS INCLUDING CONTENTS AND DATAFILES;
    CREATE TABLESPACE BYTES_USUARIOS DATAFILE
    '/oradata/oradata/ewok/bytes_usuarios.dbf' SIZE 1024M AUTOEXTEND ON NEXT 25M MAXSIZE UNLIMITED
    LOGGING
    ONLINE
    PERMANENT
    EXTENT MANAGEMENT LOCAL AUTOALLOCATE
    BLOCKSIZE 8K
    SEGMENT SPACE MANAGEMENT MANUAL
    FLASHBACK ON;
    +++++++++++
    CREATE USER B1
    IDENTIFIED BY VALUES %password%
    DEFAULT TABLESPACE BYTES_USUARIOS
    TEMPORARY TABLESPACE TEMP
    PROFILE MONITORING_PROFILE
    ACCOUNT UNLOCK;
    -- 1 Role for B1
    GRANT CONNECT TO B1;
    ALTER USER B1 DEFAULT ROLE NONE;
    -- 2 System Privileges for B1
    GRANT CREATE TABLE TO B1;
    GRANT CREATE SESSION TO B1;
    -- 1 Tablespace Quota for B1
    ALTER USER B1 QUOTA UNLIMITED ON BYTES_USUARIOS;
    ++++++++++
    CREATE TABLE b1.BYTES_USUARIOS
    USERNAME VARCHAR2(30 BYTE),
    SID NUMBER,
    SERIAL# NUMBER,
    MACHINE VARCHAR2(64 BYTE),
    LOGON_TIME DATE,
    CLS VARCHAR2(53 BYTE),
    NAME VARCHAR2(64 BYTE),
    VALUE NUMBER
    TABLESPACE BYTES_USUARIOS
    PCTUSED 40
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    FREELISTS 1
    FREELIST GROUPS 1
    BUFFER_POOL DEFAULT
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    grant all on b1.bytes_usuarios to system;
    ++++++++++++++++
    grant select on v_$mystat to system;
    grant select on v_$session to system;
    grant select on v_$statname to system;
    DROP TRIGGER SYSTEM.TRG_LOGOFF;
    CREATE OR REPLACE TRIGGER SYSTEM.TRG_LOGOFF
    BEFORE LOGOFF
    ON DATABASE
    DECLARE
    --VAR_CADENA VARCHAR(20);
    begin
    --VAR_CADENA := "%bytes%";
    --execute immediate '       
    insert into b1.bytes_usuarios (
    select
    ss.username,
    ss.sid, ss.serial#, ss.machine, ss.logon_time,
    decode (bitand( 1,class), 1,'User ', '') ||
    decode (bitand( 2,class), 2,'Redo ', '') ||
    decode (bitand( 4,class), 4,'Enqueue ', '') ||
    decode (bitand( 8,class), 8,'Cache ', '') ||
    decode (bitand( 16,class), 16,'Parallel Server ', '') ||
    decode (bitand( 32,class), 32,'OS ', '') ||
    decode (bitand( 64,class), 64,'SQL ', '') ||
    decode (bitand(128,class),128,'Debug ', '') cls,
    name,(value/1024/1024) from sys.v_$statname m, sys.v_$mystat s, sys.v_$session ss
    where
    m.statistic# = s.statistic#
    and (name like '%bytes sent%' or name like '%bytes received%')
    and ss.sid = (select distinct sid from sys.v_$mystat)
    end;
    ++++++++++++
    TODO
    select username, name, sum(value)
    from b1.bytes_usuarios
    group by username, name
    order by username, name
    SOLO bytes enviados
    select username, name, sum(value)
    from b1.bytes_usuarios
    where
    and name like '%sent%'
    group by username, name
    order by username, name
    SOLO bytes recibidos
    select username, name, sum(value)
    from b1.bytes_usuarios
    where
    and name like '%received%'
    group by username, name
    order by username, name

  • MySQL database connection: Communications link failure Last packet sent to the server was 0 ms ago.

    Hello,
    I am trying to connect to an external MySQL database from within a bundle.
    But I keep getting this error:
    Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure Last packet sent to the server was 0 ms ago.)
    These are the details of my bundle:
    1)          Spring bundle(using Spring DM)
    2)          MySQL database is at port 7046 so my bean is as below:
    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
                        <property name="driverClassName" value="com.mysql.jdbc.Driver" />
                        <property name="url"  value="jdbc:mysql://instance13550.db.xeround.com:7046/jas" />
                        <property name="username" value="mysql" />
                        <property name="password" value="mysql" />
    </bean>
    My bundle connects to the mysql database from withina  local  felix installation. But when I put the same bundle within CQ I get the error.
    Please help.
    Karan

    I dont know the answer, but if you google for this, some articles listed might help:
    re: "Communications link failure Last packet sent to the server was"
    Note: I use 're:' which is short for 'reply',
    I think you will also be better off using preparedStatements. Dont forget to use preparedStatement.clearParameters() just before preparedStatements.setString() items in the loop
    Also, I question why you need to test having 1000 test users all banging away at your application at once. Chances are, most will be staring at your web page and only a few will ever hit the update/insert button
    within the same 100 milliseconds or so that your process takes to update.

  • How To Store dom4j.Document Object in MySQL Database?

    Hi Everyone, i am currently using dom4j to create an xml document object i wish to hold the object in a mysql database using jdbc, however the document object does not implement serializable, i am having difficulty in storing the document object as a BLOB object within the database, any suggestions?
    any help or advice would be greatly appreciated
    Thanks

    Convert the Document object to String and store the XML string in MySQL database.

  • [Solved] PKGBUILD for a Wine driven program - read&write permissions

    Hello everybody,
    I have stumbled upon a tricky problem when following these guidelines: https://wiki.archlinux.org/index.php/Wi … bin_script My problem is: The program needs to read a big folder which should stay in /opt and ist linked to ~/. Copying instead of linking is not an option due to big file size. However, the big folder has a small subfolder which should have write access for the user. Any hints on how to manage this?
    Thanks for any hints,
    PhotonX
    edit: Problem solved by creating the big directory in ~/, then linking all subdirectories with read access only and copying all subdirectories with read&write access.
    Last edited by PhotonX (2014-07-09 07:08:26)

    In system preferences on both macbook's , you need to go to file sharing and making sure it's on for both ,click on options and enable smb for windows. follow instructions. I am assuming that the external drive has windows formate on it.

  • Is it possible to read a mySQL database from an ABAP report?

    We have some information stored in a mySQL database which is now required on ABAP reports.
    Is it possible to read the mySQL database from an ABAP report? I'm still a bit confused on that.
    So far I have setup DBCO with information about the mySQL server using MMS as the DBS because mySQL was not an option. I have made sure we have the latest dbmssslib.dll installed.
    When I try to run the following code
    EXEC SQL.
        CONNECT TO :con
    ENDEXEC.
    I get error: SQL Server does not exist or access denied.
    Then I have tried to connect using the function CHECK_CONNECTION_SDB.
    I get the following messages in the return table:
    1     OS-AppServ:Windows NT
    2     dbmcli_neg: no_client_software
    3     dbmrfc_c_neg: no_client_software
    4     dbmrfc_s_neg: no_client_software
    5     sql_neg
    6     work_proc: 1
    Does anyone know what I need to do to connect to the mySQL database.
    Thank you
    Karen

    Thank you for your reply. I've gone through all the documentation you sent and much more and I'm still not sure what the problem is.
    One thing that concerns me is that this all relates to MS SQL server and I'm trying to link to a mySQL database. Is this even possible?
    Some posts talk about changing Oracle settings and having J2EE installed. Is this necessary to connect to a mySQL database via ABAP?
    Which user should I enter into DBCO? Is it the mySQL server user or a SAP user? Does the person in charge of the mySQL database need to add any permissions for SAP to access the database or is that done by the user in DBCO?
    Does anyone have any more advice?
    Thank you
    Karen
    Also, does anyone know what the messages from the CHECK_CONNECTION_SDB function mean
    1 OS-AppServ:Windows NT
    2 dbmcli_neg: no_client_software
    3 dbmrfc_c_neg: no_client_software
    4 dbmrfc_s_neg: no_client_software
    5 sql_neg
    6 work_proc: 1
    Edited by: Karen Dean on Oct 6, 2009 4:44 AM

Maybe you are looking for

  • Converted 10g Release 1 Report to BIP: Report Runs, but NO DATA

    Hi, I went through all the steps and converted a very simple report (to show department code and name) to BIP using the following link [Converting Reports from Oracle Reports to Oracle BI Publisher in Release 10.1.3.3|http://download.oracle.com/docs/

  • How to start service to run Discoverer Viewer on 10.2 EE on web-port 7778?

    I have installed 10.2 EntEdition db on Windows, with OLAP and DataMining options "on", and wish to know what steps can enable me to run Discoverer Viewer (for example, http://mymachine:7778/discoverer/viewer ). What service must be turned on for ther

  • Can I add a blog and shopping cart in Adobe Muse?

    Can I add a blog and a shopping cart in Adobe Muse?

  • On-screen CID and remote access

    Since the change to DST I have lost the on-screen CID and can no longer access my DVR remotely (through MYVERIZON site).  Have done the usual running the fix DVR issues, rebooting, and CID troubleshooter. If I disable and re-enable CID I get a meassa

  • What do I need to do to download Firefox 3.6.16?

    I am running Firefox 3.6.13 on a Macbook OS 10.6.7. When the update for FF 3.6.16 became available, I began getting a pop up telling me to download it. Every time I try to do this, it keeps trying to download, but nothing happens. The message says "D