SELECT query in a sender jdbc comm channel
Hi experts,
I would like to access a table in a database and select some rows from there but from a specific date onwards. I mean, i want to retrieve only the rows from, lets say, table.date = 2008-04-05 on.
So i specified somthing like:
*SELECT * FROM table WHERE date >= to_date(2008-04-05) and status ='0'*
UPDATE table SET status='1' WHERE date >= to_date(2008-04-05) and status ='0'
BUT this is throwing following error message:
The JDBC driver returned the following error message: 'java.sql.SQLException: ORA-00911: invalid character '. For details, contact your database server vendor.
Could you please provide some support in order to achieve this?
Thanks in advance and best regards,
David
Hi there,
I tried again without using the 'to_date' function but still doesnt work.
I have no access to the database so i asked the DB team to make some testing there. They say the date format in the DB is 'dd-mm-YYYY' but XI receives 'YYYY-mm-dd' via jdbc adapter!!!!
So, at first i typed 'YYYY-mm-dd' in the query and this was the result:
Database-level error reported by JDBC driver while executing statement 'SELECT * FROM albaranes,lineas WHERE albaranes.albaran = lineas.albaran and albaranes.fecha_albaran >= 2004-06-19 and albaranes.sap_status ='3''. The JDBC driver returned the following error message: 'java.sql.SQLException: ORA-00911: invalid character '. For details, contact your database server vendor.
and shortly afterwards i used 'dd-mm-YYYY' and this is what i got:
Database-level error reported by JDBC driver while executing statement 'SELECT * FROM albaranes,lineas WHERE albaranes.albaran = lineas.albaran and albaranes.fecha_albaran >= '19-06-2004' and albaranes.sap_status ='3''. The JDBC driver returned the following error message: 'java.sql.SQLException: ORA-01843: not a valid month '. For details, contact your database server vendor.
sap_status field is of string type so this is not the point, i think.
Could you please advice?
Best regards,
David
Edited by: Domingo Jimenez Navarrete on May 5, 2008 12:18 PM
Similar Messages
-
Error in Sender JDBC communication channel
Dear All,
We have an interface in which we are fetching data from SQL database through sender JDBC communication channel.
Last week SQL server was upgraded from 2000 to 2008 and the communication channel has stopped working and is giving the following error:
Database-level error reported by JDBC driver while executing statement 'SELECT * FROM mstemp_tbl WHERE Active='0''. The JDBC driver returned the following error message: 'java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 1 (""): Data type 0x38 is unknown.'. For details, contact your database server vendor.
Please let me know if any JDBC drivers are to be installed for SQL 2008 or how can we resolve this.
Thanks,
NJHi,
You may need to update your JDBC driver to 1.2 or 2.0. Kindly see supportability matrix on this link (question #2):
http://msdn.microsoft.com/en-us/sqlserver/cc325721
Regards,
Jenny -
Sender JDBC Commn channel problem - Channel is not reading any data.
Hi,
I am referring to the following blog as i have exactly the same problem:
[Blog|Sender JDBC Commn channel problem;
I communication channel monitoring i am getting the following logs -
6/21/10 7:19:07 PM Processing started
6/21/10 7:19:07 PM Retry interval started. Length: 86400.0 seconds
Here in the channel the poling interval is 86400 seconds.
Now according to this blog the solution to my issue is "Check whether anything is locked in "Locking adapter" in VA? If there is then just release the lock and restart the comm channel. Note: In "locking adapter" the name will be something like $XIDBAD.JDBC2XI."
Mine is a PI7.1 system and i am not able to find any thing like this in NWA.
Can some one please help me on this?
Thanks & Regards,
Anshultry;
Goto NWA -> Availability and Performance Management -> Resource Monitoring -> Locks -
JDBC Comm Channel not Polling data
Hello,
In a JDBC to IDoc scenario, we have a sender JDBC communication channel which was set to poll for data in every 60 sec. It was working fine for long and suddenly it has stopped polling data. It's status was green and the channel was active.We couldn't find the reason so we configured one more comm channel keeping all the parameters same, and it has started working. We couldn't understand why it was not working earlier. Can any body please highlight on this?
Regards,
SugataHi,
@Barry,
Yes, it dont poll data from database although it was supposed to do so. We have tried to make some changes and then undo changes and save+activate. But that hasn't work.
@ PT Rao,
We tried that too, that also hasen't work.
@ Sumit,
could you please elaborate?
Sugata -
Error at sender JDBC communication channel
Dear All,
While executing JDBC(MS-Access)-PI-RFC interface, we are getting error in sender JDBC communication channel. The error is as following:
Error during database connection to the database URL 'jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=
sappidev\Datatran\Database.mdb' using the JDBC driver 'jdbc.odbc.JdbcOdbcDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Can not establish connection:: SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified'.
I have checked various posts on forums and as per those no drivers installation is required to access MS-Access database and I am not able to find any post which could solve my problem.
Kindly guide me on what might be the problem and how this can be resolved.
Regards,
NJHi Nishu,
That error ALWAYS means your DSN name is incorrect or can't be accessed for some reason (permission). The ODBC part says that the bridge is working.
But that DSN is 100% wrong or cannot be seen by the user account that the server is running as. Make sure you have a system DSN and not a user one.
You can refer these....
http://bytes.com/topic/java/answers/625400-java-sql-sqlexception-microsoft-odbc-driver-manager-data-source-name-not-found
http://www.daniweb.com/forums/thread13092.html#
Hope this will help you....
Regds,
Pinangshuk. -
XI: Sender JDBC Communication Channel is not getting picked the records
Hi All,
Here I 'm facing an Issue with my sender JDBC communication Channel. Previously it was working fine but It is not Picking the records from the JDBC table.
Communication Channel is in active mode only.
I have checked in RWB communication Channel monitoring there i didn't get any error or success messages but channel is showing healthy status only(Green)
But i had created the new communication channel..with the same parameters which are in the older communication channel.. and sender agreement level also i had changed.. so now new channel is working fine.... I didn't understand what is the problem with previous communication channel.
ThanksHi yadav,
do you have TWO CCs polling at the same time via JDBC?
This could be the problem --> a conflict between both CCs.
Switch off ONE CC:
Regards Mario -
JDBC comm.channel issue with MS SQL select statement
Hello,
We are using JDBC adapter to connect to an MS SQL database.
This is the comm.channel config.
com.microsoft.sqlserver.jdbc.SQLServerDriver
jdbc:sqlserver://<DNSname>:1433;databaseName=PSMI
Activation of channel is successful.
But when starting a select on a table of the database we will get this error for any table there in comm.channel monitoring.
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'TABLENAME' (structure 'STATEMENT'): com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'SAP_Header'.
Error processing request in sax parser: Error when executing statement for table/stored proc. 'TABLENAME' (structure 'STATEMENT'): com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'SAP_Header'.
Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'TABLENAME' (structure 'STATEMENT'): com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'SAP_Header'.
The table is existing because we can access it from excel database connect.
The connect address is the same in Excel as in comm.channel.
Installed driver is for JDBC for 2000/2005 (1.2/4). for JDK 1.4
Your help is really appreciated!
Best regards
DirkHi Dirk,
This is the comm.channel config.
com.microsoft.sqlserver.jdbc.SQLServerDriver
jdbc:sqlserver://<DNSname>:1433;databaseName=PSMI
I hope the DNSname you using is your Server name of the SQL Server (IP/ServerName) you trying to connect to.
Please ensure that if you are using Hostname the entry is made in the host file at server level against the IP.
Try using the Connection string as :
jdbc:microsoft:sqlserver://IP(hostname)\ServerName;DatabaseName
Cheers
Dhwani
Edited by: dhwani kamdar on Jun 11, 2010 5:31 PM -
Dynamic query configuration in sender jdbc adapter
Hi,
According my undertsnading in XI.3.0 dynamic query in sender JDBC adapter is not possible.
could any one confirms the possibility of this feature in XI 7.0 .
Thanks,
venuHi VJ,
sorry for late responding to your answer.
One of our requirements is the query statement that we write in sender communication channel should be changed dynamically, for example in where condition the condition parameters values required to change.
Thanks,
venu -
Select and update rownum sender jdbc
Dear all
i am using PI 7.31 sender jdbc adapter.
table(TB_AA) has 10000 row with pi_stat = 'R' and then sender jdbc adapter tried 10 row in using rownum every 120 second and update same rownum
but result of select query and udpate query were different. not same record update for selecting data.
co_cd, memid is PK.
select co_cd , mem_id, reg_n FROM TB_AA where PI_STAT = 'R' AND rownum <= 10
update TB_AA set PI_STAT = 'S', where PI_STAT = 'R' and rownum <= 10
query is wrong? , what is correct update query with several PK ?Hi Arten Solohin.
co_cd, memid is Primary Key.
select co_cd , mem_id, reg_n FROM TB_AA where PI_STAT = 'R' AND rownum <= 10
update TB_AA set PI_STAT = 'S', where PI_STAT = 'R' and rownum <= 10
could you make your query with above my query ? because i am confusing ORDER BY <your unique id_field> AND LINE_ID ....
will be highly appreciated in advance
thanks you very much. -
Select Query in the receiver JDBC
Hello all,
Is it Possible to use the select query in eceiver JDBC.
Thanks,
SrinivasaHi Srinivas,
You can either create the structure or can directly write the SQL_QUERY or| SQL_DML statement where you will specifty the action SQL_QUERY | SQL_DML .
So you can use either XML SQL Format or Native SQL Format. Please see this help srini:
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
Regards,
---Satish -
Hi,
I have a unique problem. My file sender communication channel picks and process files only when the filename extension ends in .txt.
I had checked the configuration directory and made sure it is not *.txt type and had given star.star.
Still am not sure why this is happening.
When i dump a normal file without any .txt extension, it is not been picked up and the file remains in the same place, morever no errors are also coming.
Please share any light on this.
Regards,
Anandh
Edited by: Anandha Krishnan on Jun 9, 2008 6:37 PMThe other way to check if your changes are being correctly in the RWB, please deactivate the comm channel and then lookup RWB communication channel monitoring. check if the correct version is showing up out there. It could be the RWB is not getting the correct upated version. Activate the comm channel again and re-start the comm channel and then check.
You can also follow the path of using * in the filename instead of . as suggested by others.
Regards,
Indranil
Award points if appropriate -
No adapter registered for this channel FOR JDBC COMM CHANNEL
Hi Friends,
We installed JDBC driver(for Oracle) and it works correctly from Visual Administrator.
We have created comm channel 'jdbc_receiver'.
However, when we check in "Adapter Monitoring", it is not active (Green color) and short text says 'No adapter registered for this channel'. Where should we look further to resolve the issue ? How do we test this comm channel from XI box ?
Thanks.
NiranjanHi Niranjan,
How you solved the problem?
I have deployed JDBC driver (sqljdbc4.jar) according tohttp://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00b4a020-4ae6-2c10-5a95-fed4ad9a4b60?QuickLink=index&… .
Driver deployed successfully and I have checked it in folder \usr\sap\xxx\DVEBMGS30\j2ee\cluster\bin\ext\com.sap.aii.adapter.lib\lib and it's found ok. But this adapter type not showing in Communication Channel only RFC and SOAP are showing there. I have restarted the server also. -
Problem with JDBC Comm Channel from UNIX PI Installation.
Dear Gurus:
Inside a standard scenario, we have a receiver comm channel which use JDBC adapter type to connect to a MS Access remote database.
The database connection is made like this:
JDBC Driver: sun.jdbc.odbc.JdbcOdbcDriver
Connection: jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//10.96.0.10/c$/app/appdb.mdb
Working from a Windows 2003 PI installation, everything works fine..
But we recently have finished a Heterogeneous migration from Windows 2003 + SQL server to UNIX AIX + Oracle servers and that particular interface does not work anymore.
Is there a way to connect to a MS Access from inside a UNIX PI installation..? Is there a native JDBC or ODBC driver that we can use to fix our problem...?
Waiting for your help. Best regards.
Eduardo.Hi,
In the JDBC receiver CC, Advanced-->Advanced Mode, use poolWaitingTime and taskTimeout parameters and specify
some time using seconds.
Babu -
Sender file comm channel shows error status when no file is in source
Hello,
I have this sender file communication channel which is picking up files using ftp. <b>Its working fine</b> but if there is no file in the source directory during polling, it shows an error status in communication channel monitor. The error message is that directory/file does not exist and also * in file name is invalid character.
I have the same settings on our dev, QA and prod system but this strange thing is happening only on the dev and prod. Its not happening on QA whereas QA access the same directory as dev.
Any idea ???Hi,
The error is strange one.
I suggest you to check Visual Admin to findout the exact trace/log file.
May be because of some connection problems etc..
Just go thru this SAP Note about File Adapter- 821267
Regards,
Moorthy -
Sender File Comm Channel Fails after system refresh
Hi,
we did a system refresh of our PI system and since then the sender file communication channels donot work with the following exception:
Error: com.sap.aii.af.ra.ms.api.ConfigException: Some of the IS access information is not available. SLDAcess property may be set to true, but SLD is not available.
I have seen many threads in this forum related to this issue but couldn't find a proper solution.
Any help is very much appreciated.
Thanks
MLSYou may do the following:
1. Perform SLDCHECK on XI.
2. Check if XIAFUSER is not locked or its password has been changed recently.
3. Goto SLD-> Business sytems-> Integration server, check Pipeline URL. It should be
http://hostname:8000/sap/xi/engine?type=entry
Regards,
Prateek
Maybe you are looking for
-
Remote Access VPN and NAT inside interface
Hi everyone, I have configured Remote VPN access. Inside interface and vpn pool is 10.0.0.0 subnet. ASA inside interface has NAT exempt as per config below nat (inside,outside) source static NETWORK_OBJ_10.0.0.0_24 NETWORK_OBJ_10.0.0.0_24 destination
-
Programati​cally updating a cluster in a cluster
I have a cluster that contains several arrays and a cluster of controls. I am trying to create a method for a user to select one of the controls in the inner cluster and update the value. I am trying to populate a ring control with a list of the co
-
Hi guys, im using GUI_DOWNLOAD, and i need the file in txt format, but is always generated in dat format, any help is more than welcome. this is the code CALL function 'GUI_DOWNLOAD' exporting BIN_FILESIZE = filename
-
How can I use instance methods created with HashMap
class Template static HashMap customer; a few methods created various customer public static display() //to display a particular customer information among i've created above String objectName,currentObjectName; Customer custom
-
13'' Macbook Pro Retina vs. 15''
Like most people, I have decided to get one of the Macbook Pro retina models. I don't have a budget, so I could buy either one. The things I would do on the computer would be: -720p - 1080p content on YouTube