JDBC doubt.
Hi guys
I have a jdbc doubt, when the table are blocked or even data base is off, is supposed that the jdbc status stay red light, right? In my case I turn off the DB and the status of jdbc adapter stays green with (Polling interval started. Length: 60,000 s). There is something like a timeout before jdbc status switch to red (error)?
Thanks in advance.
Regards,
Ricardo.
Hi all,
In this moment the data base is off and the status of jdbc adapter is red. But one strange thing happens! Before the DB is turned off, I blocked one table and the adapter stops (with green light), so it means that is waiting for unblock
it seams strange, is not supposed jdbc status switch to red light in this case?
In this moment I have the table blocked and the network cable unplugged (DB off) and in adapter monitoring all the adapters are in red, but the one that table is blocked are with a green light! I dont understand why
?
Any Ideas?
Regards,
Ricardo.
Similar Messages
-
Hello everybody,
I hve a doubt abot this SQL_Query can be possible
- <CCONTABLE action="SQL_QUERY">
<TABLE>CCONTABLE</TABLE>
<access>SELECT C.CUENTA_CONTABLE,C.INDICADOR_IVA,C.CVE_POSFINAN,C.APLICA_IVA FROM CCONTABLE C WHERE '0000107536' BETWEEN C.CLIENTE_INI AND C.CLIENTE_FIN AND c.CLAVE_CARGOCRED = '$CLAVE_CARGOCRED$' AND nvl('32011',4043) BETWEEN C.PRODUCTO_INI AND C.PRODUCTO_FIN AND C.IVA = '$IVA$AND '05-NOV-2008' BETWEEN C.FINIV AND C.FFINV</access>
- <key1>
<CLAVE_CARGOCRED>990</CLAVE_CARGOCRED>
<IVA>15.00</IVA>
</key1>
- <key1>
<CLAVE_CARGOCRED>701</CLAVE_CARGOCRED>
<IVA>15.00</IVA>
</key1>
- <key1>
<CLAVE_CARGOCRED>600</CLAVE_CARGOCRED>
<IVA>15.00</IVA>
</key1>
- <key1>
<CLAVE_CARGOCRED>704</CLAVE_CARGOCRED>
<IVA>15.00</IVA>
</key1>
- <key1>
<CLAVE_CARGOCRED>712</CLAVE_CARGOCRED>
<IVA>15.00</IVA>
</key1>
- <key1>
<CLAVE_CARGOCRED>890</CLAVE_CARGOCRED>
<IVA>15.00</IVA>
</key1>
</CCONTABLE>
as you can see I need many keys, now is this possible?, thanks in advance for your suggestions.
Regards,
Julio Cesar> <access>SELECT C.CUENTA_CONTABLE,C.INDICADOR_IVA,C.CVE_POSFINAN,C.APLICA_IVA FROM CCONTABLE C WHERE '0000107536' BETWEEN C.CLIENTE_INI AND C.CLIENTE_FIN AND c.CLAVE_CARGOCRED = '$CLAVE_CARGOCRED$' AND nvl('32011',4043) BETWEEN C.PRODUCTO_INI AND C.PRODUCTO_FIN AND C.IVA = '$IVA$ AND '05-NOV-2008' BETWEEN C.FINIV AND C.FFINV</access>
You keys are incorrect.. It should be
<key>
<CLAVE_CARGOCRED>Value</CLAVE_CARGOCRED>
<IVA>05-AUG-2008</IVA>
</key>
Give the space between '$IVA' and the AND in the query -
when i install j2eesdk in my system it was installed two servers.
1)J2EE default server
2)cloud scape server
i know that cloud scape server is database server so can i use this instead of sqlserver?
what is j2ee default server? is it a web server like tomcat. if yes can i use it instead of tomcat?Is this a learn J2EE in 24 days book you have a hold of or what?
Yesterday
extract source from war
How to execute rmi
How to build a web browser in Java
2 days ago
jdbc doubt
is it possible? (some vague question about HTML forms involving JavaScript)
how to handle (a basic servlet question)
plz help me (another JavaScript question)
w to include total path of html file to open in javascript?
3 days ago
how is it counting no of visits? (servlet question)
4 days ago
plz help me (ask for defintions of a whole pile of J2EE related materials)
So all I can ask is... is your interview coming up soon? Wiil this inane flood of questions becoming to end sooner rather than later? -
Doubt in query statement in receiver jdbc
HI
Again a doubt in XML format for receiver jdbc.
I want to execute a query
select sum(col1) sum(col2) from tablename where startdate <= tdate.
My payload message looks like this
<AggregateFn action="SQL_QUERY">
<access>SELECT sum(Weight) FROM KmFuelTrace WHERE resourceno = '$resno$' AND startdate = '$sdate1$'</access>
- <key>
<resno compareOperation="EQ">CHILLED_02</resno>
<sdate1 compareOperation="LT">06/08/2007</sdate1>
</key>
</AggregateFn>
I am getting a error "Data type mismatch in criteria expression" .
I have defined the datatypes correctly with DateTrans function . I think its the problem with access statement.
How to give the selection criteria for non-text fields. (can i use same quotes and dollar combination for date field too) . Or is there any other mistake in the xml structureAarthi,
Try the following
<AggregateFn action="SQL_QUERY">
<access>SELECT sum(Weight) FROM KmFuelTrace WHERE resourceno = '$resno$' AND startdate = $sdate1$</access>
- <key>
<resno compareOperation="EQ">CHILLED_02</resno>
<sdate1 compareOperation="LT">06/08/2007</sdate1>
</key>
</AggregateFn>
Also check what us the date format that database uses and give the similar format.
Regards,
Sudharshan N A
Message was edited by:
Sudharshan Aravamudan -
Clarification of doubt in File-XI-JDBC scenario
I had one doubt in this scenario.can anybody Plz clarify in this scenario File-XI-JDBC.
1)where we have to specify the table name in the receiver JDBC comm channel to insert the data into sql database from file.My doubt is,there are so many tables in existence.in the comm channel i am not mentioning the table name any where.
currently i am using SQL server and created one table name "EMP" with n columns.
2)Is i need to configure this sql driver to the J2ee server or by default this will be shipped with XI?
3)Generally,what are the datbase drivers shipped with XI?
Thanks in Advance
Sridhar RajuHi Sridhar
1) You dont require to mention the name of table in comm channel. You specify it in your data type . your xml format should be
<root>
<StatementName1>
<dbTableName action=UPDATE | UPDATE_INSERT>
<table>realDbTableName</table>
<access>
<col1>val1</col1>
<col2>val2new</col2>
</access>
<key1>
<col2>val2old</col2>
<col4>val4</col4>
</key1>
<key2>
<col2>val2old2</col2>
</key2>
</dbTableName>
</StatementName1>
Please refer the link for more detail
http://help.sap.com/saphelp_erp2004/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
2) Basically there is an driver file which has to be deployed to the server. But it may be there by default.
You configure and check your scenario, if driver file is not deployed you will get the message in RWB-> Adapter Monitoring.
Regards,
Mitesh. -
Doubt in JDBC Scenario.
Dear All,
At present i am doing File to JDBC Scenario using SQL Server database.I am having some doubts in doing this Scenario,please give me some clarification on those.I already completed this scenario using MS Access database.
SQL Server installed on my local machine.
1.For MS Access I used Business Service for both Sender and Receiver. Can I use Business Service for Sender and Receiver in this case also? Do I need to compulsory use Business System for the Receiver? Do I need to give information regarding my local machine in that Business System in SLD?
2.After going through some documents on JDBC Scenarios,i came to know that,the only difference between using MS Access and SQL Server is ,configuring Receiver Communication Channel parameters and Deploying the corresponding Driver on XI Server though SDM.Is this the only change?or Is there any other change need to do?Please suggest me.....
3.In Receiver Communication channel configuration at Connection parameter we are giving -
jdbc:microsoft:sqlserver://172.16.202.57:1433;databaseName=xxxx.
My system IP Address is 172.16.202.57
Will the Port Number always 1433 for local machine?
4.Throught out the whole scenario we were giving the Database Name in Receiver Communication channel and Table Name in Data structure of Receiver.Is this sufficient to determine the Correct Data base and Correct Table name?Or Anywhere else do we need to give the Table name or Database name?
Thanks in advance.
Regards,
Ramana.
*POINTS WILL BE REWARDED TO THE ANSWERS.*Hi
1.You can Business Service for Sender and Receiver in this case also. No need to go for Systems.The scenario is going to be the same.
2.The only difference is in the configuration of Receiver Communication Channel and the parameters are URL Connection String and name of the driver.
Also the corresponding Driver for SQL server needs to be deployed on XI Server using SDM.
3.Not in all the cases you specify a port number.I had connected to Max DB using the connection as
jdbc:sapdb://DBServerName/DBName
4. Yes it is sufficient because the Receiver Structure of JDBC is defined in such a manner.
For more refer
http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
Get back if you have some more doubts.
Thanks -
JDBC Questions have some doubts
hi,
Friends i have some doubts on JDBC Adapter . plz give me answere.
1) Wt is the use of update query in jdbc adapter?
2) Why did u use the flag field in jdbc table?
3) How will u send the data into multiple table?
4) Wt is the receiver str jdbc?
5 Wt is the jdbc configurations
thanks in adnvace.Hi,
1) Wt is the use of update query in jdbc adapter?
--> Update query is used to update the specific record in the database table based on Key fields.
2) Why did u use the flag field in jdbc table?
--> the Flag field is used to mark the records which are selected by sender JDBC adapter, so next time those records should not be repeated.
3) How will u send the data into multiple table?
--> You can send the data to multiple tables with the help of multi-mapping in the XI.
Accessing Multiple Tables dynamically using JDBC
Accessing Multiple Tables dynamically using JDBC
4) Wt is the receiver str jdbc?
--> On receiver side JDBC, you can either Insert, Update or delete the records. The storder proceduers are the line of codes written in DB2, From XI you can directly execute these JDBC statements. It will be helpful when you will be working on synchronous scenario and need to modify or deal with multiple tables based on complex logics
5 Wt is the jdbc configurations
--> JDBC configuration is based on the JDBC drivers installed.
Refer - Detail explanation
http://help.sap.com/saphelp_nw04s/helpdata/en/22/b4d13b633f7748b4d34f3191529946/frameset.htm
Thanks
Swarup -
Hello friends,
I m a newbie to JDBC . I m actually stuck up at this doubt. I have to execute an update Sql query , but how do i no if the query has been succesfully xecuted r not .
ResultSet rs=stmt.executeQuery("update meter_operations SET voltage="+newvalue+" where METER_ID="+meter_id);
Thts the small pice of my code . How do i check if this query is xecuted succesfully r not.
Thanks in advance ,
SatishHello friends,
I m a newbie to JDBC . I m
m a newbie to JDBC . I m actually stuck up at this
doubt. I have to execute an update Sql query , but
how do i no if the query has been succesfully xecuted
r not .
ResultSet rs=stmt.executeQuery("update
teQuery("update meter_operations SET
voltage="+newvalue+" where METER_ID="+meter_id);
Thts the small pice of my code . How do i check if
if this query is xecuted succesfully r not.
for starters updates do not return result sets use executeUpdate and not executeQuery.
should be
int updatecount = stmt.executeUpdate("update meter_operations SET voltage="+newvalue+" where METER_ID="+meter_id); -
Doubts: Oracle 9i Client -J2SDK1.4 - JDBC Driver
Hi eXperts,
I have installed Oracle 9i(9.2.0.1) client in my machine. Along with the Oracle 9i client, there are two JREs (versions 1.3.1 and 1.1.8) also installed. After installing the oracle 9i client, the SYSTEM�s environment variable �PATH� is updated with the �bin� directory of both JRE (C:\Program Files\Oracle\jre\1.3.1\bin;
C:\Program Files\Oracle\jre\1.1.8\bin;) and �bin� director of Oracle home (C:\oracle\ora92\bin;)
Already I have installed J2SDK 1.4.1_02. I have set the USER�s environment variable �PATH� to �C:\j2sdk1.4.1_02\bin;�
My problem is:
1. Before installing oracle 9i client, I was working with J2SDK v1.4.1. After installing, I could not able to invoke the J2SDK 1.4.1; instead I�m invoking JRE 1.3.1. I want work with latest version of J2SDK (that is J2SDK1.4.1, the one I installed) at the same time without disturbing the Oracle 9i clients JREs. Because, I want use the Oracle client for JDBC connection to the database.
2. I have installed J2SDK1.4.1, I want connect with oracle 9i database from JAVA using JDBC driver. That means JDBC driver supporting J2SDK1.4. (With ojdbc14.jar, not with classes12.jar,). But, currently I�m using �classes12.jar� to connect with database, because my program invokes JRE1.3, not J2SDK1.4.
3. And one more doubt is that why Oracle 9i client comes with two JREs. JRE 1.3.1 is having backward compatibility; it should support JRE 1.1.8 features too. Why two JREs?
Hope that any of you can solve my doubts.
Thank & Regards,
VijayHi Viravan,
Yes of course, JRE 1.1.8 doesn�t have the forward compatibility with JRE 1.3. I would like to hear the words from you to clear and assure myself with the doubt that what is the purpose of inclusion of JRE1.1.8 along with the oracle 9i client?. I�m assuming that this is because of to use JRE 1.1.8 compatible JDBC drivers. Is it right?
Because,
For JDK1.1 � classes111.zip
For JDK1.2 and JDK1.3 � classes12.zip and
For JDK1.4 � ojdbc14.jar
If that is the case why they haven�t included the JRE1.4 along with Oracle 9i client, because they were provided the ojdbc14.jar.
If any OTHER REASON is there, please let me know. I�m suspecting that there may be some other reasons for the inclusion of JRE1.1.8. Looking forward your reply�
Thanks for your support.
Vijay -
Hi Guys,
If multiple records are in a table and I need to fetch records one at a time in a predefined order. How can i do this in XI ?
Regards,Hi Guys,
Regarding select query at sender JDBC Adapter :
I have two doubts :
1. Definitely we use primary key with where clause in JDBC Sender Adapter for pulling the data , but in the real time the table is being populated with new values , so we can't use the fixed values along with a hard coded primary key in Sender Adapter level .. so how to tackle this scene. ?
2. How to tackle the scenario if table is with composite key,..on running the query with a primary key we will get certain set of records ...then how can we send the records one by one in a particular fashion to other side...?
I hope i have made my doubts clear to all..Kindly come up with suggestions and views..
Regards, -
Doubt handling Clob columns with Java JDBC api
Hi,
we have a doubt handling Clob columns with Java JDBC api.
Reading Oracle 10g official documentation (document b10979.pdf, page 236), we found this note:
============================================
To write LOB data, the application must acquire a write lock on the LOB object. One way to accomplish this is through a SELECT FOR UPDATE. Also, disable auto-commit mode.
============================================
We also found a java sample code about how to handle Lob objects at this URL:
http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/advanced/LOBSample/LOBSample.java.html
In our java2 application, we access Clob objects in a quite different
manner: we use normal setString() and getString() methods, as described into paragraph "Shortcuts For Inserting and Retrieving CLOB Data"
(document b10979.pdf, page 244).
Using those methods, we never lock the table row by a SELECT FOR UPDATE statement (as described into the note above). We use simply SELECT, UPDATE and INSERT prepared statement.
In this way we can insert both clob objects and normal timestamp, number and other types with a single insert statement. Idem for update.
To recap, our question is:
Is it mandatory to create a SELECT FOR UPDATE statement when updating clob data? What may be the consequences if we don't use it? It is also correct to insert with a single sql statement both clob and not clob data using the setString() method for the clob types? And more than one lob column in the same record?
bye,
luca acri.And columns of type FLOAT. These also have, for some unknown reason a metadata type of OTHER, and a type string of 'FLOAT'. Yet PreparedStatement.setNull(x, Types.OTHER) doesn't work and setNull(x, Types.DECIMAL) does.
-
Hi,
In JDBC Sender Adapter, we have Quality Of Service in processing parameters.
Where as in JDBC Receiver Adapter, why don't we have the QOS.
What to do if I want to send a message to Database with EOIO QOS from XI.
Please clarify me.
Regards
Krishna.> In JDBC Sender Adapter, we have Quality Of Service in
> processing parameters.
> Where as in JDBC Receiver Adapter, why don't we have
> the QOS.
> What to do if I want to send a message to Database
> with EOIO QOS from XI.
The QoS need to be specified at the sender Adapter(SO message come to IE and processed in the same way).
If you want to achieve QoS EOIO, then at the sender JDBC side you have to select QoS = EOIO and assingn the queueid(just give any name upto 16 char it automatically the EOIO queue)
http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
It is not with only JDBC but for any adapter if you are seding message in EOIO to IE then you have to select the QoS = EOIO in the sender communication channel...not receiver side.
Thanks
Farooq. -
Dera experts
i have a scenario in xi when i am configuring jdbc to file ,an error occured "error in structure mapping" can anybody tell me how to configure complete IR and ID and how to check data transfer to file.
thanks in advance
with regards
someshHi Venkata,
Refer to following Links
End to End Explained PDF
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a04cd6f9-9eb0-2a10-07b8-a0fc6e88f4d4
SAP NOTE NO :
831162
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
Also this one further to enhance..
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
If you wanna do update/insert you will have to follow the
Document Formats for the Receiver JDBC Adapter
For Configuring the Receiver JDBC Adapter refer:
Configuring the Receiver JDBC Adapter
For Configuring the Sender JDBC Adapter refer:
Configuring the Sender JDBC Adapter
Please go through this blog and see if it helps you.
/people/prasadbabu.nemalikanti3/blog/2006/02/27/collecting-and-bundling-vendor-records-from-different-multiple-interfaces-file-systempeoplesoft-and-sending-to-sap-r3-system-part-2
For more info, just take a look at these links also,
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
All that i could get from the SAP Help regarding JDBC Adapters once when i searched for the same were these links, so go through these links and see if you find anything useful.
http://help.sap.com/bp_bpmv130/Documentation/Planning/XIUnicodeGuide030411.pdf
Configuring the Receiver JDBC Adapter
Mapping Lookups
JDBC Adapter
Configuring the Receiver JDBC Adapter - part 2
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
Reward Points if Helpful
Thanks
Sunil Singh -
Hi doubt BAPI to JDBC scenario
Hi experts,
Can you send step by step procedure for BAPI to JDBC sceanrio.
thanks
dhanush,Maybe you can consider searching on SDN for sender rfc adapter scenarios and Jdbc adapter scenarios? Or is searching really that difficult a task?
-
Hi Guys,
Could u tell me whata are the operations that can be done using JDBC adapter?
What are stored procedure calls?
can there be more than one update statement in JDBC interface?
Regards,
AshishHi,
>>>>Could u tell me whata are the operations that can be done using JDBC adapter?
select, insert, update, delete
>>>What are stored procedure calls?
http://en.wikipedia.org/wiki/Stored_procedure
>>>can there be more than one update statement in JDBC interface?
yes
Regards,
michal
Maybe you are looking for
-
How do I move my photobooth photos to iphoto?
I just got my mac pro yesterday. I'm not sure how to move my photo booth pictures to my pictures folder and iphoto..? When I move them I want to organize them how I usually did on windows. Very neat & organized. I'm freaking out because I tried dragg
-
30" Cinema Display and ATI AGP cards
I recently purchased a 30" Cinema display. My G5 Dual 2.0 GHz does not have the PCI-Express slot, only a AGP slot. After doing all my research, I arrived at 2 ATI cards (one for my PC and one for my G5). For the G5, I purchased the ATI X800XT Mac Edi
-
Cannot change/edit services in SICF
We just upgraded our ECC system from Netweaver 7.01 SP6 to SP8. We are having this issue after the upgrade. We can edit the services that already existed prior to upgrade. But, any service that is created from SOAMANAGER, cannot be edited in SICF.
-
Retrieving "Method Profiling Sample" event duration
Hello, I am trying to understand how JMC calculates the Percentage in Hot Methods (which according to documentation is total time that the application spent on executing code in the method), but the duration I retrieve seem to be always zero and star
-
How the **** do I authorize this macbook to my itunes?
I have read the FAQ, but it says "go to the menu in the store" ummm, there is no menu, what do I do so I can download my purchases on my new macbook