Am new to W2 CEP and trying to run the samples given in the Wso2 CEP documentation. I was actually following the getting started guide and almost through with all the steps without any issues. But stuck with the last but one step while creating a personalized dash board.
Am using Oracle database as my datasource and I was able to refer the datasource created in CEP while creating the dashboard and the connection is validated successfully. But when I enter my sql "select * from delivered_orders" and upon running it gives me an error of "You have an error in your SQL syntax". In the console I can see a corresponding ORA error "java.sql.SQLException: ORA-00933: SQL command not properly ended"
The sql statement as you have seen is a very basic statement to have any syntax errors. Am not sure whats wrong with my setup, any help regarding this would be great.
I have read couple of other titles from stack overflow on this which suggest I should not use composite primary keys which was bug with WSO2 CEP. I tried that but still no good.
Additional Details : 0ct 3'rd
I tried the same sample with MySql and it works like a charm. And thanks for Colinr for the ticket, I see the documentation updated. But still I have issues while connecting with Oracle.
Your command may be missing a terminator ';'
If that solves your issue, I'll try to get the document updated.
Related
I am attempting to connect my R instance to my company's Oracle database. I had issues installing ROracle due to being on version 3.3.6 of R, so I settled on RJDBC instead. I downloaded the JDBC driver in a jar file. And stored this as my jdbcDriver object. See below.
jdbcDriver =JDBC("oracle.jdbc.OracleDriver",classPath="C:/Users/user1/Downloads/ojdbc6.jar",identifier.quote="`")
I then attempted to make my connection to the database using some code I found online with dbConnect:
jdbcConnection =dbConnect(jdbcDriver, "jdbc:oracle:thin:#//HOSTNAME:Port/sid", "username","password")
I don't clearly understand what the second parameter in dbConnect is even after much reading online. I think I have some sort of syntax issue here-- I am confident that the Host Name, Port, SID, user name, and password are correct, though.
After much tweaking of the second parameter, including getting rid of the ".com" that was previously in it, I got the following error:
Error in .jcall(drv#jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1], :
java.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
I've done a tone of reading online and I think that maybe I should use something different because I have an SID, not a Service Name?
I also am having trouble where the error first occurs? Is it the first line of the error code that I should be focusing on before I even look at the third?
I am thoroughly spun around the topic and would appreciate any insights. My end goal is really just to query Oracle through R.
Thanks!
I'm working on migrating some reports from Oracle Discoverer to OBIEE. I've already exported the layouts from discoverer to OBIEE. I have all I need in the OBIEE Admin tool now, but when I try to perform this operation:
I got this message:
I've read in many forums that this is because of the query (enter link description here) but I've executed the query in SQL Developer and all is fine.
Any idea?
Thanks,
I can see from the icon on your object that it is an Opaque View that your trying to run View Data on.
This is probably because of a syntax issue in your opaque view. Make sure the code in the opaque view doesn't end with a semi-colon or slash, that will cause problems. Try eliminating any blank lines, if there are any. However, without knowing exactly the syntax of the code it's impossible to say exactly what the cause is.
It's also possible that there is a connection script attached to the connection pool you are using to View Data, running on connection or before execution with bad syntax.
Otherwise have a look in the Admin Tool log to see if there's more information about what is causing the error. It will usually contain more detailed information than is passed back through the GUI.
I am using Jaspersoft iReport Designer 5.0.0 and bqjdbc-0.1.jar (a BigQuery JDBC Driver) and I want to associate a query to a new report.
I currently have some problems when creating a new report with a query that has the keywords 'count' or 'as'. If I don't put these keywords my query works correctly.
What I find strange is that my problematic query will work if I select "Execute Command..." from my database connection in the Services window.
I also had the same problem with Jasper 4.8. I am not sure if the problem is with the BigQuery driver or with Jasper.
The error that I get when I try to associate the query to a new report is the following:
Message:
net.sf.jasperreports.engine.JRException: General problem: null
Check username and password; is the DBMS active ?!
Level: SEVERE
Stack Trace:
General problem: null Check username and password; is the DBMS active ?!
com.jaspersoft.ireport.designer.data.fieldsproviders.SQLFieldsProvider.getFields(SQLFieldsProvider.java:172)
com.jaspersoft.ireport.designer.connection.JDBCConnection.readFields(JDBCConnection.java:472)
com.jaspersoft.ireport.designer.wizards.ConnectionSelectionWizardPanel.validate(ConnectionSelectionWi zardPanel.java:146)
org.openide.WizardDescriptor$7.run(WizardDescriptor.java:1357)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
This is interesting, could you give us an example of your query?
For me it seems that iReport wants to read something that isn't there.
The bigger problem is, that our logger doesn't really likes the iReport, but if you could check your log that would be a big help for us. For more information about the logging:
http://code.google.com/p/starschema-bigquery-jdbc/wiki/Logger
In the current 0.1 version we don't do anything with the query, just pass it to BigQuery. So if your query runs fine on the BigQuery Browser Tool, it should run fine with the Driver too.
Also, we don't really check stackoverflow, so please post your problems here, since we can answer your questions faster, over there:
http://code.google.com/p/starschema-bigquery-jdbc/issues/entry
How do I go about debugging a SQL statement in SQuirrel-sql?
I keep getting "unhelpful" errors like:
Error: [SQL0104] Token , was not valid. Valid tokens: ) OR.
SQLState: 42601
ErrorCode: -104
I would love to be able to see the line number where I made the error, or some other way of guiding me to where the problem is.
I am working with the JDBC driver on a IBMi DB2 database.
You can add the "errors=full" property for more detailed error messages although it will still require some interpretation to locate the precise syntax issue.
See the IBM Toolbox for Java JDBC properties for more information.
As Tracy mentioned if you want interactive syntax checking you will have to use one of the native SQL interfaces such as the green screen Start SQL Interactive Session (STRSQL) command or the IBM i Access Run SQL scripts tool.
For such errors where the problem isn't obvious, I like to copy and paste the SQL into the AS/400's green screen interactive SQL tool. (I'm assuming your database server is an AS/400 based on your tag and the mention of IBMi DB2.) The command is STRSQL. When there's an error, it will put your cursor right where the problem is. Or, more specifically, where it thinks the problem is. It does require green screen access to the AS/400.
I have a web app hosted on BEA Weblogic 10.x with an Oracle 10g database backend.
It works perfectly with one database, but when we make a clone of it and try to use a different WebLogic and Oracle instance we are getting this error:
ERROR - Problem initializing invocation tracking - disabling
tracking xxxxclass.BadTableMappingException: Database column
xxxxPeriodEnding in database yyyyyyy, table zzzzzzz has an
unknown type: JDBC Type 91.
We get it every time we do a query that involves a column of type DATE. There was no ORA-XXXX code in the message.
I can access the database using SQL*Plus using the same access and do selects and updates on the same tables with no errors.
The answer to this question is not just a simple description of what a type 91 error is (although that will help) but what could be causing this given the circumstances described above.
I am using ojdbc14.jar for JDBC on both instances of weblogic.
I have no idea about the error, but have you considered the jdbc jar version and more importantly if the oracle DB needs to be updated.
I faced very weird problems with oracle, and struggled for a while to find at the end that installing some patches for oracle would solve the problem.
Set oracle.jdbc.V8Compatible=true.
This remaps the oracle DATE type to a DATETIME time in JDBC. This parameter was missing on the new Weblogic server.