Need query to get below output.Kindly help
output of query
I have tried it but unable to get it.
Thanks,
Amar
I am trying to map data from my oracle database to flatfile. But as I have CLOB column in my source table, my synchronization job is failing with error "Internal error. The DTM process terminated unexpectedly. Contact Informatica Global Customer Support". But if I convert the CLOB using to_char and try, it's working.But it works only for data less than 4000 chanracters. I have data lot more than this size. Please suggest.
Can you please check data type of said column in informatica ?have you tried using STRING or TEXT data type?
I already have a SQL table and I want to update the table on a daily basis. I want to overwrite the table everyday.
If I use dbWriteTable() command it is giving me an error "ORA-00955: name is already used by an existing object".
How can I get rid of this error?
Can I use dbSendUpdate() here? If yes,how?
I am trying to upload data from R to database, I used package 'RJDBC' to connect R to Oracle. The connection is set up and I am able to load data from Oracle to R. When I tried to insert data into a table in Oracle using dbSendStatement():
sqlQuery_uploadResult<-function(A,B,C,D,E,F,G,H,I){
sprintf("INSERT INTO DEMAND_FCAST (A,B,C,D,E,F,G,H,I) VALUES (TO_DATE('%s','DD-MON-YY hh24:mi:ss'),%1.4f,%5.2f,%2.0f,%1.4f,%5.2f,%2.0f,%2.0f)",A,B,C,D,E,F,G,H,I)
}
dbSendStatement(conn,sqlQuery_uploadResult(A,B,C,D,E,F,G,H,I))
I got an error message:
Error in .verify.JDBC.result(md, "Unable to retrieve JDBC result set meta data for ", :
Unable to retrieve JDBC result set meta data for INSERT INTO DEMAND_FCAST (A,B,C,D,E,F,G,H,I) VALUES (TO_DATE('17-Oct-16 13:35:45','DD-MON-YY hh24:mi:ss'),0.1160,700,36,0.4037,965,35, 1) in dbSendQuery (ORA-00900: invalid SQL statement
)
However, I checked the table in Oracle, the record I tried to insert is in the table, is there anyone has any clue why does this error turn out and how to deal with this?
I was having the same issue. I tried dbExecute() and dbSendQuery() and got a similar error. A colleague suggested that I use dbSendUpdate() and it executed without error.
I am getting this error while saving my data into the table. I have already created a 'product_Design' table in my database. I am using Sql Server 2008. Everything is working fine on local host but not on the server. I also tried to insert data in different tables and its working but I am just not able to insert data in this(product_Design) table ? I really need help regarding this thing.
here is my sql query
insert into z3ctjholo.dbo.product_Design values(#prodID, #productName, #designName, #designPath, #finalDesign, #front, #cont, #divHeight, GETDATE(), 0, 1)
I also tried this query
insert into product_Design values(#prodID, #productName, #designName, #designPath, #finalDesign, #front, #cont, #divHeight, GETDATE(), 0, 1)
Both the queries are generating error. Please help me out.
Thanks..
So finally i found what is the problem. if you ever face such kind of problem then execute this command in sql server and see whether your table is connected to any schema apart from dbo. Use this statement to check whether the table is connected to any other schema.
use yourDatabaseName
Then
SELECT * FROM INFORMATION_SCHEMA.TABLES
after that if you find that your table is connected with other schema apart from dbo then use your any statement like this
select * from schemaName.tableName
(eg. my schema name is z3ctjholo and my table name is product_Design)
so my statement would be like this
select * from z3ctjholo.product_Design
what i was doing wrong, i was using two schema names (z3ctjholo.dbo.product_Design).
I hope it will help someone..
Thanks...
There are two reasons, I can find so far.
1. Either the connection settings in web.config is incorrect.
2. your database is case sensitive collation and so check the name with case. May be you have created the table with name Product_Design and trying to insert in product_Design, in this case also, the command may not work.
Please check both the points.