I am using sybase ASE as my database. When I am trying to generate code using jooq it shows following warning.but no code generation is done. Any help thanks in advance!
//--------------------------------warning-----------------------------------//
Jul 19, 2016 5:49:17 PM org.jooq.tools.JooqLogger warn
WARNING: No schemata were loaded : Please check your connection settings, and whether your database (and your database version!) is really supported by jOOQ. Also, check the case-sensitivity in your configured <inputSchema/> elements : [xfuse]
Jul 19, 2016 5:49:17 PM org.jooq.tools.JooqLogger info
INFO: Generating schemata : Total: 0
-->config file------->>>><<<------->>>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-3.8.0.xsd">
<jdbc>
<driver>com.sybase.jdbc3.jdbc.SybDriver</driver>
<url>jdbc:sybase:Tds:192.168.xx.xx:5000/xfuse</url>
<user>xxx</user>
<password>xxx</password>
</jdbc>
<generator>
<database>
<name>org.jooq.util.ase.ASEDatabase</name>
<inputSchema>xfuse</inputSchema>
<includes>.*</includes>
<excludes></excludes>
</database>
<target>
<packageName>com.gen</packageName>
<directory>E:/RD/Test/codegeneration/output</directory>
</target>
</generator>
</configuration>
From your JDBC URL, I take that you're perhaps confusing the database name with the schema name.
jdbc:sybase:Tds:192.168.xx.xx:5000/xfuse
// database name ------------------^^^^^
What you should provide to <inputSchema> is your schema name. If you're unsure what your schema name is, then it is probably dbo in Sybase.
To be sure, you can also remove the <inputSchema/> element and run the code generator. That way, it will generate code for all of your schemas in the xfuse database.
Related
Oracle BI Publisher 12.2.1.4.0
I have a set of reports that I want to run using runReport Report Service. All the reports are working well when started within browser. The ones based on excel template when run through Report Service has just a header row with column labels. No data at all. Those based on BI template when asked for "xlsx format" through Report Service are all ok.
Those whose templates are created in excel (2019) using Oracle BI Publisher Desktop 12.2.1.4.0 add-on work ok unless called with SOAP envelope runReport action.
I'm doing something wrong, but could not find what. Not sure if the problem is in passing/formating parameters (dates especialy), or something else is missing or wrong in my SOAP:
<?xml version="1.0" encoding="utf-8"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap-env:Body>
<ns0:RunReport xmlns:ns0="http://xmlns.oracle.com/oxp/service/v2">
<ns0:reportRequest>
<ns0:attributeCalendar>Gregorian</ns0:attributeCalendar>
<ns0:attributeFormat>excel</ns0:attributeFormat>
<ns0:attributeLocale>hr-Hr</ns0:attributeLocale>
<ns0:attributeTemplate>_TO_EXCEL_WEEKS_Cards.xls</ns0:attributeTemplate>
<ns0:flattenXML>true</ns0:flattenXML>
<ns0:parameterNameValues>
<ns0:listOfParamNameValues>
<ns0:item>
<ns0:name>DateFrom</ns0:name>
<ns0:values>
<ns0:item>2022-05-01T00:00:00.000+02:00</ns0:item>
</ns0:values>
</ns0:item>
<ns0:item>
<ns0:name>DateTo</ns0:name>
<ns0:values>
<ns0:item>2022-05-28T00:00:00.000+02:00</ns0:item>
</ns0:values>
</ns0:item>
<ns0:item>
<ns0:name>DateDeliveredTo</ns0:name>
<ns0:values>
<ns0:item>2022-05-28T00:00:00.000+02:00</ns0:item>
</ns0:values>
</ns0:item>
<ns0:item>
<ns0:name>Marcet</ns0:name>
<ns0:values>
<ns0:item>*</ns0:item>
</ns0:values>
</ns0:item>
</ns0:listOfParamNameValues>
</ns0:parameterNameValues>
<ns0:reportAbsolutePath>/MKTP/06-Sell/70_Offer/Reports/70_20_WEEKS_TO_EXCEL_TODAY_2022_REPORT.xdo</ns0:reportAbsolutePath>
<ns0:sizeOfDataChunkDownload>-1</ns0:sizeOfDataChunkDownload>
<ns0:byPassCache>True</ns0:byPassCache>
</ns0:reportRequest>
<ns0:userID>username</ns0:userID>
<ns0:password>password</ns0:password>
</ns0:RunReport>
</soap-env:Body>
</soap-env:Envelope>
I did try different attributeFormat tags (it works only when "excel", otherwise error), tryed to change the flattenXML tag (no data with true or false). Template is very simple with one group of repeating records and the header is always there, so there is not the problem with template name/location.
XDO_METADATA:
Data Constraints:
XDO_?XDOFIELD1? <?DOCTYPE?>
XDO_?XDOFIELD2? <?DOC_ID?>
XDO_?XDOFIELD3? <?STATUS?>
XDO_?XDOFIELD4? <?ORDER_ID?>
XDO_?XDOFIELD5? <?DOC_YEAR?>
XDO_?XDOFIELD6? <?DOC_NUM?>
XDO_?XDOFIELD7? <?DOC_DATE?>
...
...
XDO_GROUP_?XDOG1? <xsl:for-each select=".//G_1"> </xsl:for-each>
All the other reports (pdf-s) working ok whatever way they are run.
Thanks for your time...
Found it. The problem is parameter in BI defined as DATE. Changed it to text, adjusted the WHERE clause in dataset to something like
column Between To_Date(date_param1, 'dd.mm.yyyy') And To_Date(date_param2, 'dd.mm.yyyy')
and shortend the date parameter values in SOAP Envelope. It works now.
Anyway, I would like to know if there is a solution where I could keep my parameters in BI to stay of date type. This is a lot of boring things to do.
I'm setting up a faceted search in MarkLogic. I have the following range indexes configured:
That is, I have two indexes. The first is on namespace http://www.corbas.co.uk/ns/presentations and local name keyword. The second has the local name level. The collation URI for both is http://marklogic.com/collation/en/S1.
When I try to search using the following I see errors related to collations:
xquery version "1.0-ml";
import module namespace search = "http://marklogic.com/appservices/search"
at "/MarkLogic/appservices/search/search.xqy";
search:search("levels:Intermediate",
<options xmlns="http://marklogic.com/appservices/search">
<return-results>true</return-results>
<return-facets>true</return-facets>
<constraint name="keywords" facet="true">
<range type="xs:string" collation="http://marklogic.com/collation/en/S1">
<element ns="http://www.corbas.co.uk/ns/presentations" name="keyword"/>
</range>
</constraint>
<constraint name="levels" facet="true">
<range type="xs:string" collation="http://marklogic.com/collation/en/S1">
<element ns="http://www.corbas.co.uk/ns/presentations" name="level"/>
</range>
</constraint>
</options>)
I get the following error:
XDMP-ELEMRIDXNOTFOUND: cts:search(fn:collection(),
cts:element-range query(fn:QName("http://www.corbas.co.uk/ns/presentations","level"),
"=", "Intermediate", ("collation=http://marklogic.com/collation/en/S1"), 1),
("score-logtfidf", "faceted", cts:score-order("descending")),
xs:double("1"), ()) -- No string element range index for
{http://www.corbas.co.uk/ns/presentations}level
collation=http://marklogic.com/collation/en/S1
What am I doing wrong?
Strange Message. If it even got that far, then it looks like your database default collation is changed. Does not answer the question. just strange.
Forst off, I would always add the collation to the constraint:
<search:range type="xs:string" facet="true"
collation="http://marklogic.com/collation/en/S1">
Second, I always troubleshoot range index issue from the query console:
use cts:values() to verify that your indexes are in place and in the namespace and collation you expect. This removes other layers and verifies that the index is as you expect.
And another item: MarkLogic range indexes do not exist until content is indexed. Are you sure you have not turned off auto-index on the database and perhaps content is not indexed? That would give you an error.
To be honest, I would have expected a different error message. I would have expected MarkLogic to complain it couldn't find an index for root collation, because you have not added collation attributes on the range elements in the search options.
Maybe adding those will help.
HTH!
It looks to me like your configuration is correct, which suggests to me that the problem is timing. Once you specify what indexes you want, MarkLogic gets to work creating them. If you run a query that requires those indexes before MarkLogic finishes creating them, you get this error. Depending on the amount of content you have, the creation process can be very quick or take hours.
To check the status, point your browser to the Admin UI (http://localhost:8001) and navigate to the configuration page for your database. Click on the Status tab and look for "Reindexing/Refragmenting State"—if MarkLogic is still reindexing, it will tell you so here and you'll get updates on its progress. (You can also get this information through the Management API.)
I'm trying to run GQL query on my datastore.
Something like this:
SELECT * FROM products WHERE model = #model AND date >= #date
But there's error like:
You need an index to execute this query.
In google api documentation i found nothing about indexes for nodejs.
How i can set this indexes?
Unfortunatly as of today the gcd tool doesn't support automatic index generation for languages using the JSON interface (like Node.js or Ruby).
A workaround is the manually define your index in <your-dataset-directory>/WEB-INF/datastore-indexes.xml
<?xml version="1.0" encoding="utf-8"?>
<datastore-indexes
autoGenerate="true">
<datastore-index kind="product" ancestor="false">
<property name="model" direction="asc" />
<property name="date" direction="asc" />
</datastore-index>
</datastore-indexes>
See the Index Configuration section of the datastore documentation for more details.
I receive inputs to a procedure as xml and I've prepared the xml schema and would like to validate the input with the schema and throw an error if the input doesn't comply. I am trying to use xmlvalidate() option 'schemavalidate=yes' but couldn't figure out where to store my xml schema. The examples indicate a http url as the xml schema but should I host my xml schema? or should I store it as a database "text" column? Could someone guide me how to store and use the xml schema to use xmlvalidate()? We are at Sybase ASE 15.7
Appreciate your help!
Just adding the below question as hurdled in my next step on this:
I've hosted my xml schema and trying to use xmlvalidate as below:
xmlvalidate(#purgeTableInfo, option 'schemavalidate=yes, nonamespaceschemalocation="http://myhost:5000/purgeschema"')
The required access to this purge schema has been provided to the unix box/login that hosts the database. We are able to ping to "myhost" from the unix box on which sybase is running. But, I am still getting the below error.
"XMLVALIDATE(): XML parser fatal error <<An exception occurred!
Type:NetAccessorException, Message:Could not create the socket for URL
'{0}'. Error={1>> at line 0, offset 0.
Sybase error code=14702
Severity Level=16, State=0, Transaction State=0"
Does anyone know what would be the reason and how should I go about fixing this?
Any help on this would be great!
According to the documentation, to validate against a dtd, your schema needs to be hosted. Your xml should be stored in a text column in the database, not your xml schema. There are a number of examples in the documents, which should guide you in the right direction.
Please find the below sample XML format, for which I'm trying to build a schema's on BizTalk Solution.
I was receiving the warning messages as
warning BEC2004: Could not find schema information for the element 'ORX'.
warning BEC2004: Could not find schema information for the element 'NONSIGNONMSGSRQV1'.
warning BEC2004: Could not find schema information for the element 'NONSONRQ'.
warning BEC2004: Could not find schema information for the element 'CLIENT'.
warning BEC2004: Could not find schema information for the element 'ID'.
warning BEC2004: Could not find schema information for the element 'USERPASS'.
etc..
.....
.....
<?xml version="1.0" encoding="UTF-8"?>
<?ORX ORXHEADER="200" VERSION="201" SECURITY="NONE" OLDFILEUID="NONE" NEWFILEUID="NONE" ?>
<ORX>
<NONSIGNONMSGSRQV1>
<NONSONRQ>
<CLIENT>123456765</CLIENT>
<ID>arout_int</ID>
<USERPASS>IM_Developer</USERPASS>
<LANGUAGE>ENG</LANGUAGE>
<APPID>WASSUP</APPID>
<APPOVER>1</APPOVER>
</NONSONRQ>
</NONSIGNONMSGSRQV1>
<NONVERMSGSRQV1>
<NONEMPLOYERHISTTRNRQ>
<COOKIE>1234576540</COOKIE>
<COOKIETAN>12345612340</COOKIETAN>
<BILLINGO1>45674567890</BILLINGO1>
<BILLINGO2>1245673567890</BILLINGO2>
<PURPOSE>
<CODE>PROGRAM</CODE>
</PURPOSE>
<EMPLOYERHISTRQ>
<EMPLOYEEID>123004567</EMPLOYEEID>
</EMPLOYERHISTRQ>
</NONEMPLOYERHISTTRNRQ>
</NONVERMSGSRQV1>
</ORX>
After I did some Googling, I got some knowledge from the link Validating XML Instance having issues I tried to remove target name space of Schema properties, but BizTalk solutions is not allowing to remove the targetnamespace, which is already there for the schema.
Please could any one suggest me, how could I apply that settings to my XML schema development, as my XML document doesn't have targetnamespace?
I have solved this issue by reading BizTalk 2006 Recipes: A Problem-Solution Approach,
Steps: Open the schema -> Goto Schema Node -> Schema node properties -> remove the namespace, then solved the problem.