How to connect Oralce9i on Linux from PHP4.3.9

We have a Linux Server runnng on Redhat Advanced Server 4. Oracle9i is loaded on this server. PHP4.3.9 is available in this server. We would like to connect Oracle using PHP. How to go about ? What rpm should be installed ? Give us as much details as possible.
Kanish

Install Zend Core for Oracle. Make sure that you know where your ORACLE_HOME is. The problems with the windows is that you don't know
where is your ORACLE_HOME.

Similar Messages

  • How to connect to  Oracle database from webdynprojava application

    Hi
    How to connect to  Oracle database from webdynprojava application. where can we provide the code to connect to database.?
    Thank You.

    Hi,
    You need to create  Java Bean model. The bean is a typical java bean with default constructor, getter and setter. You can have additional methods for query etc. The attributes in the class will be your model node and attributes.
    However you need to configure the connection and create JNDI using visual administrator before writing the code.
    You can also consider writing Session EJB with oracle and using them in WD.
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/dcaa4f05535591e10000000a1553f7/frameset.htm
    Srini

  • How to connect iseries green screen from java program

    how to connect iseries green screen from java program to get the data in the DB files ,here the DB is DB2/400

    Just some Friday fun. Use the telnet program that comes with Windows and supports VT escape sequences.
    import java.io.*;
    import java.net.*;
    public class AutoTelnet {
         private static Socket s;
         public static void main(String[] args) throws Exception {
              Thread t = new Thread() {
                   @Override public void run() {
                        try {
                             s = new ServerSocket(5555).accept();
                        } catch (IOException ex) {
                             ex.printStackTrace();
              t.start();
              Process p = new ProcessBuilder("cmd", "/C", "start", "telnet", "127.0.0.1", "5555").redirectErrorStream(true).start();
              t.join();
              PrintStream ps = new PrintStream(s.getOutputStream());
              ps.println("Screen will be cleared in 5 seconds");
              ps.println("5");
              Thread.sleep(1000);
              ps.println("4");
              Thread.sleep(1000);
              ps.println("3");
              Thread.sleep(1000);
              ps.println("2");
              Thread.sleep(1000);
              ps.println("1");
              Thread.sleep(1000);
              ps.println("\u001b[2J");
              Thread.sleep(5000);
    }

  • How to connect to oracle ebs from an external software

    Hi!
    I want to develop an integration for oracle EBS. Therefor I'm looking for ways how to connect to the EBS and for a repository of functions which can be called from an external program. I'm not quite sure if this is the right place to ask but I could not find anything yet so I'm trying here.
    Are there any standard connectors for the EBS provided by Oracle?
    Thanks,
    Konrad

    Oracle Applications Architecture is a framework for multi-tiered, distributed computing that supports Oracle Applications products. In this model, various servers are distributed among multiple levels/tiers as follows:
    - The Desktop Tier --> Web browser with Jinitiator or Sun JRE
    - The Application Tier --> Web, Forms, Reports, Admin, and Concurrent servers
    - The Database Tier --> Oracle Enterprise Edition Database
    The Application tier is the layer which is responsible for:
    - Hosting the various servers that process the business logic
    - Managing communication between the desktop tier and the database tier
    So, in order to connect to the database, you can either access the application tier, or connect directly to the database. I do not think it is possible to communicate with the application services from some other application. Therefore, you would need to connect to the database directly which can be achieved as explained in my previous reply. There is no such API which can be used to open/close a database connection. Oracle E-Business Suite is just a database with number of schemas and objects which are tightly integrated.
    More details about Oracle E-Business Architecture can be found in:
    Oracle Applications Concepts
    http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/11iconcepts.pdf

  • How to connect to SQL Server from Forms 10g?

    Hello all,
    How do we connect to SQL Server database from Forms 10g?
    In Oracle Metalink site they have suggested using Transparent Gateway for SQL Server as a solution.
    But is there a way we can connect directly to SQL Server from Forms using an ODBC connection
    without installing anything on the database server?
    Pls help!
    Regards,
    Sam

    Hello all,
    I was able to connect to SQL Server from Oracle using Generic Connectivity (HSODBC).
    Transparent gateway was not required.
    Followed metalink note 109730.1
    So, after I created a dblink to SQL Server, I created a synonym for the dblinked SQL Server table.
    When I used the synonym as the table source in Oracle Forms, I got the following error while querying.
    "ORA-02070 - ROWID is not supported in this context."
    This is because Forms has an invisible ROWID field and when data is fetched from SQL Server table
    no Rowid is fetched since SQL Server table doesn't have one.
    Is there a way to overcome this issue or do we have populate the block manually using a SQL query ?
    Pls suggest.
    Regards,
    Sam

  • How to connect two different tables from different server?

    Dear all expert,
    I need to develop a report where i need to connect 2 different tables from 2 different servers. For examples:
    BUT000 tables from CRM and KNKK from R3.
    Is it possible to do so? Because i try to link these 2 tables together and when i preview the report, it run very slow and sometime it hang. I did not get any result.
    Thank You.

    Moved to SAP Integration kit forum
    Appears you are using SAP data sources.
    And yes you can but the linked field types must match and be able to be converted into the WHERE portion of the SQL. Click on Database, Show SQL... and see if there is one. If not CR can't figure out how to so it brings all data client side and filters on the second pass.
    Thank you
    Don

  • How to connect to a Unix from Crystal Reports running on windows?

    <p>Any idea on how to connect from windows Crystal Reports X1 client to a Unix box
    file directoriesu2026<br>
    <br>
    Any suggestions would be much appreciatedu2026<br>
     </p>
    Edited by: DarkNight on Nov 13, 2009 10:42 AM

    Hi Darknight,
    What is it you want to find once you are connected? Since you posted this in the Database Connectivity forum I assume you want to connect to some DB or flat file on that server? If it's a DB then use the client to connect from windows. If it's a flat file then you should be able to use whatever connection utility you use to see the file system from windows. I don't know Unix so not sure but need more details.
    Thank you
    Don

  • How to connect to oracle database from visual basic 2010 express edition

    I have installed visual basic 2010 express edition on windows xp. But visual basic 2010 express edition supports Microsoft sql server database file,Microsoft sql server compact 3.5, Microsoft access database file. I want to connect to oracle database from visual basic 2010 express edition. So what drivers are required and how to do connectivity?

    Hello,
    I wasn't clear on what you were using to make the connection. I had a look in Visual Studio 2010 (don't have express to test sorry).
    I think you mean the Data Sources available under the menu Data-> Datasources. this seems to match the description you give when I
    look at the list of datasource options.
    In here you can make ODBC connections via the Microsoft .net Data Provider .
    If you select ODBC as a datasource you can see listed the DSN's you created - for example I see 2 which use the Oracle ODBC driver.
    This assumes you installed an Oracle Client + the oracle version of the ODBC driver (comes with the oracle client).
    Once you created a server connection then you should see it in the server explorer.
    You can also download the Oracle Developer Tools for Visual Studio which is an add on for VS.
    ** I suspect this is only for VS 2010 and I didn't see that Express was supported.
    http://www.oracle.com/technetwork/developer-tools/visual-studio/overview/index-097110.html
    Let me know if that helps.
    John

  • How to connect to Oracle 11gR2 from CF9

    Hi,
    how to connect to Oracle 11gR2 64 bit Database from CF9?
    In CF Administrator no Oracle Driver is available.
    Do I have to install Oracle Client Software on Server Hardware where CF9 Server is installed?
    If yes, is Oracle Instant Client is enough or do I have to install full oracle client?
    Any idea?
    regards Claudia

    Excellent, glad to hear it's sorted. Just be careful if you use any of the "advanced" features such as returning querysets from stored procedures or BLOBs, apparently there are differences between the JDBC and full DataDirect drivers in those cases.
    However in 99% of cases you won't notice the difference.

  • How to connect to UNIX OS from oracle stored procedure

    Hi,
    I need to connect to UNIX OS from oracle stored procedure.
    Curently working in Oracle9i.
    I tried in google but I could'nt get any.
    Can you send me pointers on how to do this.
    Thanks,
    Kavitha.

    Can use Java Stored Proc, or an External Proc.
    Java method:
    create or replace and compile Java Source named "OSCommand" as
    -- java:        OS COMMAND
    -- descr:       Executes an Operating System Command using the JAVA RTS
    -- IN parameter:        os command to execute (including fully qualified path names)
    -- OUT parameter:       returncode [\nstring]
    --                      where string a max of 32000 chars of the output of the command
    --                      (note that \n is used as separators in the string)
    --                      returncode=-1   Java RTS error occurred (e.g. command does not exist)
    --                      returncode=255  o/s command failed (e.g. invalid command params)
    import java.io.*;
    import java.lang.*;
    public class OSCommand{
            public static String Run(String Command){
                    Runtime rt = Runtime.getRuntime();
                    int     rc = -1;
                    try{
                            Process p = rt.exec( Command );
                            int bufSize = 32000;
                            int len = 0;
                            byte buffer[] = new byte[bufSize];
                            String s = null;
                            BufferedInputStream bis = new BufferedInputStream( p.getInputStream(), bufSize );
                            len = bis.read( buffer, 0, bufSize );
                            rc = p.waitFor();
                            if ( len != -1 ){
                                    s = new String( buffer, 0, len );
                                    return( s );
                            return( rc+"" );
                    catch (Exception e){
                            e.printStackTrace();
                            return(  "-1\ncommand[" + Command + "]\n" + e.getMessage() );
    show errors
    create or replace function osexec( cCommand IN string ) return varchar2 is
    -- function:    OS EXEC
    -- descr:       Executes an Operating System Command
    language        JAVA
    name            'OSCommand.Run(java.lang.String) return java.lang.String';
    show errors===
    This can then be used from PL/SQL and even SQL. e.g.
    SQL> select osexec( '/bin/date' ) from dual;
    OSEXEC('/BIN/DATE')
    Wed Nov  9 13:30:13 SAST 2005
    SQL>Note the Java permissions required - replace FOO with the name of applicable Oracle schema
    ==begin
            dbms_java.grant_permission(
                    'FOO',
                    'SYS:java.io.FilePermission',
                    '<<ALL FILES>>',
                    'execute'
            dbms_java.grant_permission(
                    'FOO',
                    'SYS:java.lang.RuntimePermission',
                    'writeFileDescriptor',
            dbms_java.grant_permission(
                    'FOO',
                    'SYS:java.lang.RuntimePermission',
                    'readFileDescriptor',
            commit;
    end;
    /==
    Last thing... note that opens a potential giant size security hole into the Oracle Server Platform. So implement it properly using a proper Oracle security model.

  • How to connect 2 bose speakers from my Harmon kardon tuner ?

    Hi all,I need some info on how to connect 2 bose speakers (30 serie)?connected to my tuner (harmon kardon)?to my sound card audigy2. Second, I will purchase soon x-fi xtrememusic sound card, will it be the sme way to connected as audigy2 ?Thanks.

    Thanks Franktank,Is it right to assume that the "line out" on the sound card is a light green in color? (where you plug a set of headphone)?My Harmon Kardon is 6 years old, 80 watt rms per chanel, and it will be connected to the "AUX" in the back panel. Is the color red on the rca jack is the positi've? If so, I will plug it to the red "AUX" in the back of the receiver?Will this kind of connection will produce stereo sound? Is this the only way to plug 2 speakers on the sound card?Thanks.

  • How to Connect to Mysql databse from Java Studio Enterprise 8

    Hello everybody,
    I have a database in mysql in linux.I have downloaded Java Studio Enterprise 8.
    How is it possible to connect to mysql.
    Could you tell the procedure .., I would be really thankfull
    From
    Ranjitha Rao

    hi
    u can connect to Mysql with the following code
    Class.forName("com.mysql.jdbc.Driver");
                   String url1 = "jdbc:mysql://localhost/<database name>";
                   String user1 = "root";
                   String pass1 = "";
                   Connection con1=DriverManager.getConnection(url1, user1, pass1);

  • How to connect oracle on linux

    O/S= Windows XP SP2
    ORACLE Client- 10.2.0.1
    Oracle : 10.2.0.1... linux RHEL4
    Sir,
    I am having a machine with RHEL4 installed on VMWare. I want to connect ORACLE installed in linux on windows. I have installed Oracle Client on Windows. Now Pl. guide how can I be able to connect oracle through Oracle Client. I want to use ORACLE for some development on ASP.Net.
    Following is the Tnsname.ora file of Linux installation
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Kindly Guide me the Steps how can I connect ORACLE.
    Thanks

    Sir,
    here I am pasting output of all commands.
    [oracle@localhost ~]$ env|sort
    CLASSPATH=/u01/app/oracle/product/10.2.0/db_1/JRE:/u01/app/oracle/product/10.2.0/db_1/jlib:/u01/app/oracle/product/10.2.0/db_1/rdbms/jlib
    COLORTERM=gnome-terminal
    DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-onw8BmaUC9
    DESKTOP_SESSION=default
    DISPLAY=:0.0
    G_BROKEN_FILENAMES=1
    GDMSESSION=default
    GNOME_DESKTOP_SESSION_ID=Default
    GNOME_KEYRING_SOCKET=/tmp/keyring-7u3EBx/socket
    GTK_RC_FILES=/etc/gtk/gtkrc:/home/oracle/.gtkrc-1.2-gnome2
    HISTSIZE=1000
    HOME=/home/oracle
    HOSTNAME=localhost.localdomain
    INPUTRC=/etc/inputrc
    KDEDIR=/usr
    LANG=en_US.UTF-8
    LD_LIBRARY_PATH=/u01/app/oracle/product/10.2.0/db_1/lib:/lib:/usr/lib
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    LOGNAME=oracle
    LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
    MAIL=/var/spool/mail/oracle
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
    ORACLE_SID=orcl
    ORACLE_TERM=xterm
    PATH=/u01/app/oracle/product/10.2.0/db_1/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/oracle/bin
    PWD=/home/oracle
    QTDIR=/usr/lib/qt-3.3
    SESSION_MANAGER=local/localhost.localdomain:/tmp/.ICE-unix/3185
    SHELL=/bin/bash
    SHLVL=2
    SSH_AGENT_PID=3213
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    SSH_AUTH_SOCK=/tmp/ssh-RAdzDO3212/agent.3212
    TERM=xterm
    TMPDIR=/tmp
    TMP=/tmp
    USER=oracle
    _=/usr/bin/env
    WINDOWID=37748817
    XAUTHORITY=/home/oracle/.Xauthority
    [oracle@localhost ~]$ cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    [oracle@localhost ~]$ lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 09-JUL-2010 16:00:14
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 09-JUL-2010 13:28:24
    Uptime 0 days 2 hr. 31 min. 49 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 2 instance(s).
    Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@localhost ~]$ lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 09-JUL-2010 16:00:19
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 09-JUL-2010 13:28:24
    Uptime 0 days 2 hr. 31 min. 54 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 2 instance(s).
    Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@localhost ~]$ [oracle@localhost ~]$ lsnrctl service
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 09-JUL-2010 16:03:25
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "orcl" has 2 instance(s).
    Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:5 refused:0
    LOCAL SERVER
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:1 refused:0 state:ready
    LOCAL SERVER
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: localhost.localdomain, pid: 3421>
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=32808))
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:1 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    [oracle@localhost ~]$ sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 9 16:03:38 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> startup mount
    ORA-32004: obsolete and/or deprecated parameter(s) specified
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@localhost ~]$

  • If anyone knows how to connect e7 with linux let m...

    sorry guys, it seems that the problems will never end,i just have a problem with my computer because i'm using linux and can't connect it with my phone .which is really not good for nokia,i hope they read what we write because from now on i'll not recomend nokia to any of my friends who wants to get nokia phons,if the company we are using and love won't give us what we are looking for or need then there are no need to have her products,does not deserve us as clients.one can destroy 10. that's what i believe.
    Solved!
    Go to Solution.

    Nokia's Ovi Suite (etc.) is as incompatible with Linux as diesel fuel in a petrol car, so let that idea go.  But there are Linux solutions.  For me, I have two 8 GB memory cards, both nearly full with mp3's, and all those songs were installed to the cards using drag-and-drop.  You don't necessarily need a software program, just Mass Storage mode.  I made a folder called "Music" in the root area of the card and moved all the band/singer folders (with individual album folders inside) there.  The Music Player should find them, or manually refresh the database.  The same thing should work for pictures, although there may be some differences between your E7 and my E73.
    As for the other functionality, I did a few web searches and found several "Suite" programs like Wammu, Xgnokki, and Nokuntu.  Search these forums for "Ubuntu" and you will find many other similar discussions.  /t5/PC-and-Mac-Software/Nokia-PC-Suite-Ubuntu/td-p/247373 is the one that got me started.  Wammu and Xgnokki should both be available through the Ubuntu Software Center (Applications ->  Ubuntu Software Center, unless they changed the menu layout).  Nokuntu looks really interesting, but you have to get it separately from http://sourceforge.net/projects/nokuntu/ .
    Embarrassingly, I have never used any of these programs, so you will have to experiment to see what works.  You won't have full Ovi Suite support, like firmware installs and maps downloads, but it's something.  If you realize that most Linux programmers are university students, or people like you and me, writing software for fun, I think this is quite acceptable.  Not to mention that large companies like Nokia aren't always forthcoming about how their own software works.  Linux can be a chaotic OS, so take it slowly don't expect everything to work as smoothly as commercial software.  If you have specific questions about programs like Wammu, most have their own web site and support system (i.e. http://wammu.eu/support/ ), or you could visit the Ubuntu forums http://ubuntuforums.org/ .  Or you could follow-up here.   I hope that helps!

  • How to connect MS SQL Server  from SAP based on AIX/ORACLE ?

    Hi ,
    I need  ABAP program to read and write data on MS SQL server.
    The SAP System is based on AIX system and Oracle DB.
    The MS SQL is based on Windows Server System.
    How to do this? 
    Thanks.

    Hello,
    First is crerate a connexion with the target MS SQL. Use the trasaction DBCO.
    Next, You must use EXEC SQL instruction. I give to you an example for read that I use :
    For writting, is the same think. The request SQL must change in update or insert
    Thierry
    DATA dbtype TYPE dbcon_dbms. "dbtype chaine de caractere
    DATA wl_con_name TYPE dbcon-con_name.
    DATA wl_info_con(3).
      DATA wa_sytabix TYPE sy-tabix.
    DATA matnr_temp TYPE mara-matnr.
      DATA refart TYPE mara-matnr.
      DATA consi  TYPE zed_cons.
        wl_con_name = 'CONN_SQL_DATAB'.
      SELECT SINGLE dbms FROM dbcon INTO dbtype WHERE con_name = wl_con_name.
      IF dbtype = 'MSS'.
        TRY.
    *Connexion a la base de donnée
            EXEC SQL.
              CONNECT TO :wl_con_name
            ENDEXEC.
            IF sy-subrc <> 0.
              RAISE EXCEPTION TYPE cx_sy_native_sql_error.
            ELSE.
              MESSAGE s258(zm) WITH wl_info_con.
            ENDIF.
    *Recupération des données
            EXEC SQL.
              OPEN WRECORDSET FOR SELECT Refart, consi FROM Articles
            ENDEXEC.
            IF sy-subrc <> 0.
              RAISE EXCEPTION TYPE cx_sy_native_sql_error.
            ENDIF.
            DO.
              EXEC SQL.
                FETCH NEXT WRECORDSET INTO :Refart, :Consi
              ENDEXEC.
              IF sy-subrc <> 0.
                EXIT.
              ENDIF.
              CLEAR wa_comp.
              CLEAR wa_sytabix.
              READ TABLE wt_comp INTO wa_comp WITH KEY matnr = refart.
              IF sy-subrc = 0.
                wa_sytabix = sy-tabix.
                IF consi = 'F'.
                  wa_comp-consi = 'Non'.
                ELSE.
                  IF consi = 'T'.
                    wa_comp-consi = 'Oui'.
                  ELSE.
                    wa_comp-consi = ''.
                  ENDIF.
                ENDIF.
                MODIFY  wt_comp INDEX wa_sytabix FROM wa_comp.
              ELSE.
              ENDIF.
            ENDDO.
    *on ferme tout
            EXEC SQL.
              CLOSE WRECORDSET
            ENDEXEC.
            EXEC SQL.
              DISCONNECT :wl_con_name
            ENDEXEC.
          CATCH cx_sy_native_sql_error.
            MESSAGE `Error in Native SQL.` TYPE 'I'.
        ENDTRY.
      ENDIF.

Maybe you are looking for

  • Can I attach multiple phone numbers to my iMessage account?

    So here's my predicament: Any time I go travelling somewhere, I like to buy a local SIM card so that I don't have to pay fees for roaming data. The problem is that whenever I insert a new SIM card, iMessage switches to using my new (temporary) number

  • 2nd Gen Ipod touch ios 4.1 not seen in itunes 10.7

    So i havent had itunes installed on y computer for a long while, but my ipod had no music, so i downloaded it and added all of my music my charger and USB ports are fine and windows recognises it and the ipod is marked as charging itunes says there i

  • How to use iPhoto web gallery with iWeb & personal domain name

    So, another question about iWeb 08: I've set up my site to use a personal domain name, like www.mypersonaldomain.com. I've configured everything with my DNS settings so that it actually points to my iWeb site, and I'm happy about that. However, I've

  • Error at step Run ABAP Reports during system copy in HPUX

    Hi experts, During system copy from Prodcution to Development i am facing the following errror at step Run ABAP Reports INFO 2009-03-18 03:57:36 Information for application function INST_EXECUTE_REPORT copied to local Repository. INFO 2009-03-18 03:5

  • Indexing array of references element by element

    Hello, I have a simple question. How do I go about indexing an array of references element by element? For example, when using a cluster reference, there is a property node called "controls [ ]" that we can pass into a for loop. For a normal array, "