Error of connecction DBCO
Hi Experts
I'm new in ABAP programming do you know exactly how I have to fill this fields to make the connecion in DBCO transaction
Field Name Description Value (For: E.g.:)
CON_NAME Logical name for a database connection--> What I 'd like??
DBMS Database system MSS
USER_NAME Database user <username> --> the BCUSER that I use in SAP or what user?
PASSWORD Password for setting up the connection to the database <pwd>/<pwd>
is obligatory the pasword? Or can I use the password "sa" from SQL I don't use another one
CON_ENV Database-specific information for a database connection
MSSQL_SERVER=depotserver --> or the ip??
MSSQL_DBNAME= table name, isn't it?
DB_RECO Availability type for an open database connect --> What is this ???
I have made a DBCO connection but when I run the program below apears this error:
AN ERRO OCURRED WHILE SETTING UP A CONNECTION TO "CON_ARA"
PROGRAM CODE:
REPORT z_bd.
DATA: BEGIN OF wa,
c_nom(20),
i_edad(4),
END OF wa.
EXEC SQL.
CONNECT TO 'CON_NAME' AS 'V'
ENDEXEC.
EXEC SQL.
SET CONNECTION 'V'
ENDEXEC.
*GET DATA
EXEC SQL.
open C1 for
select
nombre,
edad,
from TABLE_A
ENDEXEC.
DO.
EXEC SQL.
FETCH NEXT C1 into :wa-c_nom, :wa-i_edad
ENDEXEC.
IF sy-subrc = 0.
PERFORM loop_output.
ELSE.
EXIT.
ENDIF.
ENDDO.
EXEC SQL.
CLOSE C1
ENDEXEC.
FORM loop_output .
WRITE: /5 wa-c_nom, 65 wa-i_edad.
CLEAR wa.
ENDFORM. " LOOP_OUTPUT
Hi ,
Take Help of Basis team , u can test ur Connection in DB02 Tcode use DB connection tab.
Check all steps in below link .
http://help.sap.com/saphelp_nw04/helpdata/en/9c/d736b880c34f76b507bac7751a0474/frameset.htm
Salil....
Edited by: salil chavan on May 19, 2009 8:20 PM
Edited by: salil chavan on May 19, 2009 8:21 PM
Similar Messages
-
Error when connecting(DBCO) from R/3 database to external database (mssql)
Hello,
We are having issue while connecting from SAP R/3 quality server to
external SQL (development) Database(Radar server).
We have created the Database connection (RADAR_DEV) in both development
and quality r/3 server. Both of these servers connect to one target
machine which is no -sap mssql (radar development) server for fetching
the data.The program (Ztest) uses native sql statement and the
dbconnection name RADAR_DEV to connect to Non-sap mssql server.
The same program works in development environemnt but it is not working
in quality thougth the DB connection and program is same.
Getting the below short dump in quality server
Runtime Error DBIF_DSQL2_OBJ_UNKNOWN
Exception CX_SY_NATIVE_SQL_ERROR
Occurred on 03.03.2008 at 16:54:17
Information on where terminated
The termination occurred in the ABAP program "ZRADAR_EXTRACT" in
"START-OF-SELECTION".
The main program was "ZRADAR_EXTRACT ".
The termination occurred in line 57 of the source code of the (Include)
program "ZRADAR_EXTRACT"
of the source code of program "ZRADAR_EXTRACT" (when calling the editor 570).
Source code extractHi Jun,
Drop the table RFCKEYSS. To do this, logon to the original system, run the database utility (transaction se14) and use the button 'Delete database table'.
After that, repeat the phase PARDIST_SHD.
With SUM 1.0 SP 7 and higher, the table is dropped directly before phase PARDIST_SHD. If the error appears again, manual action is necessary.
This is what the notes says to do.
Have you tried this ?
Regards, -
ERROR When coonecting to SQL via DBCO Connections
Hi,
Error when connecting to SQL using DBCO connections. I am getting an dump as "Set up of a secondary connection to the database system failed. It is possible that the data required for setting up the connection via EXEC SQL (Native SQL)is faulty."
plaese help.
ThanksHi
Checking the dbsl_w<NN> as it is explained in point 3 of the 'Troubleshooting' section of [SAP Note 738371|https://service.sap.com/sap/support/notes/738371] would help a lot to know the reason of the failure.
It is most likely that, the information provided in DBCO are not complete/accurate
Regards
Raj -
Hi, All
I defined db connection with DBCO and I configured tnsname.ora.
I test tnsping and logon remote DB using sqlplus.
both are OK.
but!!
I check DBconnection with DB02 and then occured error.
next test connection is OK.
so the CBO program use the DBCO is failed at first time and the next execute is OK.
we use ECC 6.0 , Oracle 10.2.0.4, kernel 185
I attach dev_w log
==================================================
B Connect to EBIZPRO as kbizpro with EBIZPRO:KO16KSC5601
C *** ERROR => Characterset 'KO16KSC5601' not supported.
http://dboci.c 2371
C *** ERROR => OCI-call 'OCIErrorGet' failed with rc=100
==================================================
we use characterset 8500
how can I do?/
thanksHi, Markus
Thanks for ur reply.
as you sad, only correction is unicode conversion?
but I wonder, next test is conneting using DBCO
test in DB02
-- MESSAGE Database connection EBIZPRO established successfully
and program using DBCO is working well.
only first connention is fail cause of above error.
I checked NLS_CHARACTERSET in Database
SELECT VALUE FROM V$NLS_PARAMETERS WHERE PARAMETER = 'NLS_CHARACTERSET';
value --> WE8DEC
how can I do except unicode conversion ?
thanks again -
There's a logo that pops up on my ipod touch screen with the logo Itunes and the USB cord but is unable to connecct with iTunes...what should i do?
Resolve communication issues
Check the hosts file or TCP/IP filtering, which might cause communication issues between iTunes, ports, and servers.
Common errors: 1004, 1013, 1638, 3014, 3194, or 3000-3999. These alerts refer to gs.apple.com, say "There was a problem downloading the software", or say the "device isn't eligible for the requested build". -
Error in odbc database connection
Hi All,
I have created database connection from SAP system to another no sap system (Radar) using the tcode DBCO and maintained the following parameters
DB connection: RADAR_DEV
DBMS : MSS
user Name : RADAR_DVLP
Db password : **********
conn info : msql_server=hostname of SQL server msql_dbname=DB name object_source=DB name
It is gives a below short dump when this db connection (DB connection name) is used in a program by ABAPer
error message
The error occurred in the current database connection "RADAR_DEV".
What can you do?
Print out the error message (using the "Print" function)
and make a note of the actions and input that caused the
error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and administer
termination messages, especially those beyond their normal deletion
date.
Error analysis
An exception occurred. This exception will be dealt with in more detail
below. The exception, assigned to the class 'CX_SY_NATIVE_SQL_ERROR', was not
caught, which
led to a runtime error. The reason for this exception is:
How to correct the error
Database error text........: "Line 1: Incorrect syntax near '.'."
Triggering SQL statement...: "FETCH NEXT "
Internal call code.........: "[DBDS/NEW DSQL]"
Please check the entries in the system log (Transaction SM21).
You may able to find an interim solution to the problem
in the SAP note system. If you have access to the note system yourself,
use the following search criteria:
"DBIF_DSQL2_SQL_ERROR" CX_SY_NATIVE_SQL_ERRORC
"ZRADAR_EXTRACT" or "ZRADAR_EXTRACT"
"START-OF-SELECTION"
Can you please help me on resolving this issue
Thanks,
VadiHello Vadivambal,
Could you please provide the syntax of line, on which the dump occurs.
Is user RADAR_DVLP able to fetch same data without an ABAP program?
Regards,
Ammey Kesarkar -
Error while trying to connect to a remote SQL Server DB using multiconnect
As part of our business process, we need to connect to a SQL Server DB external to SAP.
We have done the following:
1. We set up an ODBC connection on our SAP sandbox server to the external SQL server DB.
Name: sdsdev
Connection string: sdsdev\sqlexpress2008
2. We tested the ODBC connection from within ODBC and it works perfectly
3. Using transaction: DBCO we have set up a DB connection known to SAP that we can use in ABAP to retrieve the data.
It was set up with exactly the same parameters as with the ODBC.
We used the following connection string so it would know to use the ODBC DBSL profile parameters, with the DSN name
being the same as defined in the ODBC: See below ...
DB connection: AR_INTERFACE
DBMS: MSS
User Name: ARTransfer
Password: ******
Conn info: MSSQL_DSN=sdsdev
4. We also made sure we installed the DBSL dynamic library (DLL) on the R/3 system server.
5. We ran a small test program to test connectivity ... as below ...
exec sql .
connect to 'AR_INTERFACE'
end exec.
right after the above command we check the system log for status. It failed with the following message:
B Wed Feb 09 14:40:40 2011
B Connect to AR_INTERFACE as ARTransfer with MSSQL_DSN=sdsdev
MSSQL_DBNAME=ARTransfer
C Thread ID:3900
C dbmssslib.dll patch info
C patchlevel 0
C patchno 118
C patchcomment Problems with the use of literals in non-unicode
systems (1524929)
C np:(local) connection used on SAPS101B
C OpenOledbConnection : CoCreateInstance failed. rc: 8007007e.
C failed to establish conn to np:(local).
C Retrying without protocol specifier: (local)
C OpenOledbConnection : CoCreateInstance failed. rc: 8007007e.
C failed to establish conn. 0
B ***LOG BY2=> sql error -1 performing CON [dbds#2 @
1056] [dbds 1056 ]
B ***LOG BY0=> <message text not available> [dbds#2 @ 1056] [dbds
1056 ]
The connection failed !
We used all of the information found in OSS Notes we could find.
Has anyone had this problem before ? Is there something obvious we are missing in all this ?
Thank you for your assistance.Is this Excel or Access? If Excel, try this.
Sub ADOExcelSQLServer()
' Carl SQL Server Connection
' FOR THIS CODE TO WORK
' In VBE you need to go Tools References and check Microsoft Active X Data Objects 2.x library
Dim Cn As ADODB.Connection
Dim Server_Name As String
Dim Database_Name As String
Dim User_ID As String
Dim Password As String
Dim SQLStr As String
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
Server_Name = "EXCEL-PC\EXCELDEVELOPER" ' Enter your server name here
Database_Name = "AdventureWorksLT2012" ' Enter your database name here
User_ID = "" ' enter your user ID here
Password = "" ' Enter your password here
SQLStr = "SELECT * FROM [SalesLT].[Customer]" ' Enter your SQL here
Set Cn = New ADODB.Connection
Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & _
";Uid=" & User_ID & ";Pwd=" & Password & ";"
rs.Open SQLStr, Cn, adOpenStatic
' Dump to spreadsheet
With Worksheets("sheet1").Range("a1:z500") ' Enter your sheet name and range here
.ClearContents
.CopyFromRecordset rs
End With
' Tidy up
rs.Close
Set rs = Nothing
Cn.Close
Set Cn = Nothing
End Sub
Knowledge is the only thing that I can give you, and still retain, and we are both better off for it. -
Runtime error while connecting from SAP to MS-SQL DB
Hi,
I am writing a program to send data from SAP to MS SQL DB.
The stored procedure when run alone works fine.
I have defined connection 'C04' in DBCO with correct attributes.
But the 'CONNECT TO C04' statement gives me runtime error DBIF_DSQL2_CONNECTERR saying that 'Connection to Database system with the identifier C04 is not possible;.
First of all, I am not very clear if it is a ABAP problem or BASIS problem.
I did a lot of research but could not find a solution.
Please help me.
Thanks & Regards,
Shubha.Hi shubha,
1. If your application server
is unix/aix,
then connection to MSSQL db
is not possible.
(Bcos both OS are different,
and the connector is not provided
by sap / not available)
2. After making an entry in DBCON Table,
probably something may be required to
be done on the application server,
by the basis team.
3. If this connection is required
to be made to oracle server,
then basis definitely requires
to make a connection string
on the application server
(apart from the dbcon entry)
regards,
amit m. -
SLT pointing to HANA via db tunnel throws an error during creation of configuration
Hi,
I am trying to replicate data from MS SQL database to Hana via SLT. I have configured the MS SQL database in DBCO and the connection test is successful. I have opened up a db tunnel using the HCP SDK from the SAP SLT server. Using the LTR transaction, I am trying to create a new configuration. In the HANA target details, I enter the user name as DEV_*, password as specified in the command console by sdk, host as localhost:30015. When I specify the configuration name different from NEO_* I see an error "Error opening db connection" and when I enter NEO_* as the configuration name I see an error "invalid table name: Could not find table / view RS_REPLICATION_COMPONENTS in schema SYS_REPL". I cannot see a SYS_REPL schema and I am assuming that this should be created. Any suggestions on how I can get past this error?
Thanks!
SKHi SK,
Where are you checking SYS_REPL schema?
Best Regards
Sachin -
Error in Creating R/3 (4.6c) Source System
Hi all,
In SM59, Basis had already established RFC connection to both systems. When I tried to create Source System connection to an R/3 system (4.6c) from BI 2004s in RSA1, I got a message that says <b>"No connection to system possible."</b>
<i>No connection to system possible
Message no. RSAR501
Diagnosis
Logical system cannot be accessed.
System Response
Error when opening an RFC connection
Procedure
Use transaction SM59 (for BAPI and SAP source systems) or DBCO (for database source systems) to check the RFC parameters of source system . Also check whether the system can be accessed in the network and whether the necessary application and system programs have been started.</i>
Why is this so?
Thank you for your assistance.
Regards,
juliusHi CK,
<b>Which Logical System</b> should I assign in SAP R/3 (SPRO): logical system of <b>BI or R/3?</b>
The RFC connection works fine in SM59 in BI.
Thanks for the assistance.
Hope to hear further assistance and ideas.
regards,
julius -
Connection to MySQL database, DBCO settings
Hi experts,
I need to connect to a MySQL database located on a different side.
I do have the IP and domain name (e.g. my.test.com), MySQL DB name (SAPtest), Username (SAPuser) and Password (*****).
I did following entries under DBCO:
Name: SQLtest
DBMS: MSS
User Name: SAPuser
DB-Password: *****
Env. Info: MSSQL_DNS=my.test.com
Connection Limit: -
Connection Optimum: -
I hope you see already, that I get the error message SQL Server does not exists or access denied.
I check already all kind of forum and posts, but couldn´t find a good and satisfying documentation for this case.
Yes, MSS is not MySQL, but different user say it is possible with this settings.
I am thankful for any help!Thank you for the answer.
I know the MSS library is not made by name for connecting to a MySQL DB, but Gudmundur and Pedro Gallardo were giving solutions ON connect SAP to a MySQL database. It really sounds like it is compatible. That might be also the answer why SAP is not offering a special library for MySQL - yes that is really a guess.
Maybe jdbc would be the best solution, but I have no idea how to use it within my ABAP program. Actually I have never used any Java code or programs under SAP.
Do you have a sample code, where there is theI call for the JDBC connection out of my ABAP program to connect and disconnect to the MySQL DB? This would be very helpful.
I simply want to open the connection write some data into the MySQL DB and then close the connection.
Thanks!
Edited by: Rene Gegusch on Jun 14, 2011 8:37 AM -
Connect SQL Server through DBCO - DBCONNECT
Hi Guys,
I am trying to connect to one of the SQL Server in my Domain. I have made entries as mentioned by SAP note in DBCO Transaction. When I am testing connection through program 'ADBC_TEST_CONNECTION' it is showing me following error:
Testing a Database Connection Defined in DBCON
Could not open connection SQLCONNECTION
sql error 1- occured:
I have already installed DBMSSSLIB.DLL in executable directory also.
Please advice.
Thanks,
Usman MalikHi,
As mentioned I have put these files i.e. DBMSSSLIB.DLL and DBMSSSLIB.PDB (64bit) in the following directories and restarted the server:
X:\usr\sap\SID\D*\exe
X:\usr\sap\SID\sys\exe\run
X:\usr\sap\SID\sys\exe\ (i386 or ntamd64) \ (nuc or uc)
tried again but still it is showing the same error when i execute ADBC_TEST_CONNECTION program in SE38:
Testing a Database Connection Defined in DBCON
Could not open connection ABC
sql error 1- occured:
SQL Server is Standard Edition and OS is Windows 2008 R2 64bit. Our SAP Server is also Windows 2008 64bit.
Please advice what to do now because I have done entries in DBCO Transaction correctly as mentioned by the note 178949 i.e.
CON_NAME: <my_conn_name>
DBMS: MSS
USER_NAME: <db_user>
PASSWORD: <password>
CON_ENV: MSSQL_SERVER=<server_name> MSSQL_DBNAME=<db_name>
I am using SQL Server Administrator Username/Password to connect to this Server.
Thanks,
Usman Malik -
DBCO Connection in ABAP program
Dear all,
I have a test program in production to connect to the DBCO. It connects successfully but failed occasionally. Mean, every few minutes, the connection will become fail! Anyone of u have idea why this happened and how to resolve this? Thank you very much.
I have been tested my test program and the standard ADBC_TEST_CONNECTION at the same time. Sometimes, both are success. Sometimes, when the latter showed success connection, the former will be failed.
Thanks.Catch the CX_SY_NATIVE_SQL_ERROR exception to get to know the error message. If you are already doing so, provide the error messages ( short and long messages ) when it fails.
Data: DB_EXCEP TYPE REF TO CX_SY_NATIVE_SQL_ERROR.
*-Connect Native DB
CLEAR: DB_CON_STATUS.
TRY.
EXEC SQL.
connect to :db_name as :sy-uname
ENDEXEC.
IF sy-subrc EQ 0.
db_con_status = 'X'.
ENDIF.
CATCH cx_sy_native_sql_error INTO db_excep.
clear e_dbmsg.
CALL METHOD db_excep->if_message~get_text
RECEIVING
result = e_dbmsg.
CLEAR: e_dbmsg_long.
CALL METHOD db_excep->if_message~get_longtext
RECEIVING
result = e_dbmsg_long.
CLEANUP.
Clear: db_name, e_dbname.
ENDTRY.
Edited by: Suman Jagu on Nov 14, 2011 2:10 PM -
Connection with SQL Server using DBCO
Hi,
I want to connect to Misrosoft SQL Server using DBCO transaction. I have given the following fields.
DB Connection = test
DBMS = MSS
User Name = user02
password = test
Conn. info = MSSQL_SERVER=tcp:10.100.50.36 MSSQL_DBNAME=New_Wisdom
permanent selected
Connection Limit = 5
Optimum Conns = 2
while executing through the statement as follows,
EXEC SQL.
CONNECT :'TEST'
ENDEXEC.
I am getting the dump ' An SQL error occurred when executing Native SQL.
The error 900 occurred in the current database connection "DEFAULT".' Please suggest me what needs to be added or corrected.Hi Benito.
I'm not very familiar with MSS but maybe the following will help a little bit.
Depending on the version of your SAP system you can use the transaction DBACOCKPIT to add connections to non-SAP databases. There is an test connection button in that transaction, too. You will find some information about that transaction in some whitepapers here in the SDN. For example have a look at this one: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1062428c-f1df-2910-b08f-c322feddcd10
ADBC error 16 is just "something went wrong". Is your SAP system using MSS, too? If not you will need the matching DBSL for it on your SAP system.
If you have set up an connection you can use program ADBC_TEST_CONNECTION to check if everything is ok. If I remember it correctly in case of errors it allows you to jump into the trace file. There you should find some usefull information.
Perhaps asking in the Database&OS forum area (there is a MSS forum) might help, too.
Best regards,
Jan -
EXEC SQL and DBIF_DSQL2_CONNECTERR error
Hello,
Currently our shipping system is communicating with SAP below are the parameters used:
<SAPProgramID>kewill_LXD</SAPProgramID>
<SAPGatewayHost>10.XX.40.XX</SAPGatewayHost>
<SAPGatewayService>sapgw00</SAPGatewayService>
<TransHandlerConnString>STMT=;OPTION=3;DSN=didb;UID=sn_usr;PASSWORD=sipndb;DESC=MySQL ODBC 3.51 Driver;DATABASE=didb;SERVER=localhost;PORT=3306</TransHandlerConnString
This is what I have in DBCON or tcode DBCO
Connection Name: Ship
DBMS: MSS
User Name: sn_usr
Password: sipndb
Conn. info: MSSQL_SERVER=localhost;MSSQL_DBNAME=didb
I get a dump with DBIF_DSQL2_CONNECTERR error when I try to use this in the EXEC SQL:
REPORT ZKEWILL_CONN .
Tables: DBCON.
DATA: BEGIN OF WA,
ship_date(10), S2Name1(50),
END OF WA.
DATA : bdate(10) value '2008-09-29',
edate(10) value '2008-10-05'.
EXEC SQL.
CONNECT TO 'KEWILL' AS 'K'
ENDEXEC.
EXEC SQL.
SET CONNECTION 'K'
ENDEXEC.
EXEC SQL.
SELECT ship_date, s2name1 INTO :WA FROM shipment_header
WHERE ship_date >= :bdate
AND ship_date <= :edate
ENDEXEC.
WRITE: / WA-ship_date, WA-s2name1.
We are in 4.6C. Please let me know if I need to make changes to the DBCO or to the program or both.... thanks!!
AJHi Jimmy,
The issue is more related to livecache.So can you please close this tread and create new thread under forum 'SAP MaxDB/livecache'.
Thanks & Regards,
Sunitha
Maybe you are looking for
-
I keep getting error 20 when trying to update my apps on my macbook pro
Everytime i try to update my apps its says there is an error (20) I just bought the computer.. Is it because the person before me had them under their itunes?? Its like iphoto and igarage etc.. arent those standard on the computer? Please help. Thank
-
How to fix this error: IMP-00003: ORACLE error 1435 encountered
Hello, I am new to oracle database. I am trying import a data dump file *.dmp into my test database. I am using Oracle Database 11g. I have created "datatest" to be the user and I granted all possible rights that was there. :) but still getting this
-
Wrong EXIF data for JPEGs in Bridge and PS
Hello, My Nikon D300 files are not being properly read by Bridge and Photoshop. RAW files are fine. When I get file info for JPEGs, though, much of the EXIF data is corrupted. For instance, ISO Speed is shown as "51200" instead of 500, and Focal Leng
-
Idoc processing in batch process
how to process an Inbound idoc in a batch program? I am retiving the idoc numbers which needs to be processed how should i go about to process it? should i call the standard FM which mapped to it for processing that idoc? please suggest?
-
Theory: Firewalls essentially partition the Java Card platform's object system into separate protected object spaces called contexts. The firewall is the boundary between one context and another. The Java Card RE shall allocate and manage a context f