最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

如何从SAP中连接其他数据库

来源:动视网 责编:小采 时间:2020-11-09 15:43:57
文档

如何从SAP中连接其他数据库

如何从SAP中连接其他数据库:1. 工作环境需求 A . The operating system user sidadm must be able to log on to the secondary database. B. The R/3 table DBCON must be maintained. C . The correct database library 'dbo
推荐度:
导读如何从SAP中连接其他数据库:1. 工作环境需求 A . The operating system user sidadm must be able to log on to the secondary database. B. The R/3 table DBCON must be maintained. C . The correct database library 'dbo


1. 工作环境需求 A . The operating system user sidadm must be able to log on to the secondary database. B. The R/3 table DBCON must be maintained. C . The correct database library 'dboraslib.ext' must exist in the kernel directory. Connectt

1. 工作环境需求

A. The operating system user adm must be able to log on to the secondary database.

B. The R/3 table DBCON must be maintained.

C. The correct database library 'dboraslib.' must exist in the kernel directory.
Connect to SQL Server database 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.

dbmssslib.dll

2. 配置连接信息

配置TCODE: dbco

任何配置信息都存储在DBCON表中.

配置示例:

A. 访问MSSQL的配置示例(参见SAP Notes 1749)

CON_NAME:
DBMS: MSS
USER_NAME:
PASSWORD:
CON_ENV: MSSQL_SERVER= MSSQL_DBNAME=

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 /
    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:
    2. For a remote server:
    tcp:
    This forces the connection to be made with a named pipes and tcp/ip protocols 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 : - a colon in front of the server name.

    B. 访问ORACLE的配置示例()

    Connection name logical name of the connection

    DBMS ORA

    User name Oracle users

    DB password password for the above-mentioned Oracle user

    Conn.info TNS alias

    Permanent Usually should not be set for a secondary connection.

    3. 程序中如何使用

    例程一
    report zdbcon .
    data: dbn(128).
    EXEC SQL.
    CONNECT TO 'DAN1'
    ENDEXEC.
    EXEC SQL.
    SET CONNECTION 'DAN1'
    ENDEXEC.
    EXEC SQL.
    SELECT db_name() INTO :DBN FROM SVERS
    ENDEXEC.
    write: / 'current database name', dbn.
    DAN1在DBCON表中配置
    CON NAME DAN1
    DBMS MSS
    USER NAME iis_log
    PASSWORD CON ENV
    MSSQL_SERVER=tcp:###.###.###.### MSSQL_DBNAME=iislog


    例程二
    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.

    notes: https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1749&nlang=EN&smpsrv=https%3a%2f%2fwebsmp103%2esap-ag%2ede

    文档

    如何从SAP中连接其他数据库

    如何从SAP中连接其他数据库:1. 工作环境需求 A . The operating system user sidadm must be able to log on to the secondary database. B. The R/3 table DBCON must be maintained. C . The correct database library 'dbo
    推荐度:
    标签: 连接 工作 数据
    • 热门焦点

    最新推荐

    猜你喜欢

    热门推荐

    专题
    Top