Simple query builder
Hi,
I'm looking for simple query builder for free using, which is helper for any user, who no experiences with SQL (knows it a little). RDBMS is Oracle 8.0.6
Regards
Krzysztof Malinowski
Hi,
you may use the Oracle Query Builder for such purposes. The Query Builder is a component of the Oracle 6i Forms Developer Suite, which is downloadable here at OTN. The new Oracle 9i Developer Suite DOES NOT contain this product.
Greetings
Werner
Similar Messages
-
Hi all,
I built a simple query builder form:
<cfif IsDefined('form.query')>
<cfquery name="queryDemo" datasource="TestProduction">
#form.goQuery#
</cfquery>
</cfif>
FORM
<ul>
<cfform name="QueryForm" action="" method="post">
<li><label>Type Query</label></li>
<li><cftextarea name="goQuery" cols="100" rows="6"></cftextarea></li>
<li><cfinput name="query" type="submit" value="Run Query"/></li>
</cfform>
</ul>
<cfif IsDefined('form.query') and queryDemo.recordCount gt 0>
<cfform action="" name="resultsForm">
<cfgrid query="queryDemo" griddataalign="center" name="QueryResults" width="700" autowidth="yes" height="700">
</cfgrid>
</cfform>
</cfif>
When I run a "where" clause such as where type = 'LCR', I get an error. Has anyone tried this before? Please provide insight.
Thanks.Error Code:
Error Executing Database Query.
[Macromedia][SQLServer JDBC Driver][SQLServer]Incorrect syntax near 'LCR'.
The error occurred in C:\inetpub\wwwroot\cfAttica\betaFiles\queryDemo.cfm: line 3
1 : <cfif IsDefined('form.query')>
2 : <cfquery name="queryDemo" datasource="TestProduction">
3 : #form.goQuery#
4 : </cfquery>
5 : </cfif>
VENDORERRORCODE
102
SQLSTATE
HY000
SQL
select item from tlkp_item where type = ''LCR''
DATASOURCE
TestProduction
Resources: -
Simple Question About Using "Group by" Inside the Oracle XE Query Builder
Hi,
I am a new user of Oracle 10g XE and I have built and populated some tables. I am trying to create a view (make a query) via using the Query Builder. I have chosen two attributes, say course_section_ID and trainer_ID in the same table. I choose the "COUNT" function for course_section_no and I check the box for "Group By" with trainer_ID. (I would like to count the number course sections each trainer is teaching). Then I "run" the query and the same error message appears:
fail to parse SQL query:
ORA-00904: "COURSE_SECTION"."TRAINER_ID": invalid identifier
Both attribute names should be valid (as shown above).
If I only choose course_section_ID and do a COUNT on it, it gives the same error message on course_section_no.
I did try to do the same thing with the demo HR database. There were no problems with counting a field nor with grouping on a field with HR.
PLEASE HELP!
Thanks.I have got it. When all the attribute names are in the uppercase, then I can do aggregate functions and "group by" with the GUI.
-
Internal errors during Query Builder
Please help me to correct a problem. Database user has a very simple cube: a measure with two dimensions. User (named "warehouse") owns it, the fact table, the dimension tables etc.; client application connects using warehouse account too.
While QueryBuilder makes a data source, one dimension (providers) fails at the some selections; for example, selections "top 10" and "last 3" works, but selection "measure value > 10000" fails; the other dimension (services) works great with all selections tried.
"Fails" means that selection step can be selected (moved from "available" to "selected" box), but cannot be configured (edited) at any manner, both in the left and right boxes - for example, I cannot edit value "10000". This selection cannot be applied too. Visually query builder does nothing, but prints exception trace (see below).
My configuration:
BI Beans Diagnostics(v1.0.0.0) 04.03.04
===============================================================================
JDEV_ORACLE_HOME ............................. = C:\JDeveloper
JAVA_HOME .................................... = C:\JDeveloper\jdk
JDeveloper version ........................... = 9.0.3.1.1107
BI Beans version ............................. = 9.0.3.6.0
BI Beans internal version .................... = 2.7.0.14
Connect to database .......................... = Successful
JDBC driver version .......................... = 9.2.0.3.0
JDBC JAR file location ....................... = C:\JDeveloper\jdbc\lib
Database version ............................. = 9.2.0.4.0
OLAP Catalog version ......................... = 9.2.0.4.1
OLAP AW Engine version ....................... = 9.2.0.4.1
OLAP API Server version ...................... = 9.2.0.4.1
BI Beans Catalog version ..................... = N/A; not installed in warehouse
OLAP API JAR file version .................... = 9.2
OLAP API JAR file location ................... = C:\JDeveloper\jdev\lib\ext
Load OLAP API metadata ....................... = Successful
Number of metadata folders ................... = 3
Number of metadata measures .................. = 1
Number of metadata dimensions ................ = 2
Metadata output location ..................... = C:\JDeveloper\bibeans\bin\bi_metadata.txt
Exception:
Thu Mar 04 11:08:21 MSK 2004 In oracle.dss.queryBuilder.QueryBuilderQueryAccessUtils::getDimMembers
Sorry, these lines are re-translated from localized version
oracle.express.ExpressServerException Error class: OLAPI
Server errors description:
DPR: Unable to create server cursor, Universal at TxsOqDefinitionManagerSince9202::crtCurMgrWthInputTypes
OES: ORA-01722: invalid number
, Universal at TxsRdbSelectStatement:execute()
oracle.express.idl.ExpressOlapiDataCursorModule.CursorManagerInterface oracle.express.olapi.data.full.DefinitionManagerSince9202.createCursorManagerInterface(oracle.olapi.data.source.CursorManagerSpecification, oracle.olapi.data.source.SourceDefinition, oracle.olapi.data.source.Source[], long)
DefinitionManagerSince9202.java:260
oracle.express.olapi.data.full.ExpressSpecifiedCursorManager oracle.express.olapi.data.full.DefinitionManager.createCursorManager(oracle.olapi.data.source.CursorManagerSpecification, oracle.olapi.data.source.Source[], long)
DefinitionManager.java:132
oracle.olapi.data.source.SpecifiedCursorManager oracle.express.olapi.data.full.ExpressDataProvider.createCursorManagerSince9202(oracle.olapi.data.source.CursorManagerSpecification, oracle.olapi.data.source.Source[], long)
ExpressDataProvider.java:729
oracle.olapi.data.source.SpecifiedCursorManager oracle.express.olapi.data.full.ExpressDataProvider.internalCreateCursorManager(oracle.olapi.data.source.CursorManagerSpecification, oracle.olapi.data.source.Source[], long)
ExpressDataProvider.java:624
oracle.olapi.data.source.SpecifiedCursorManager oracle.express.olapi.data.full.ExpressDataProvider.createCursorManager(oracle.olapi.data.source.CursorManagerSpecification, oracle.olapi.data.source.Source[])
ExpressDataProvider.java:555
oracle.olapi.data.source.SpecifiedCursorManager oracle.olapi.data.source.DataProvider.createCursorManager(oracle.olapi.data.source.CursorManagerSpecification)
DataProvider.java:269
oracle.express.olapi.data.full.ExpressSpecifiedCursorManager[] oracle.dss.dataSource.QueryUtilities.setUpCursors(oracle.dss.dataSource.SourceTemplate[], oracle.dss.dataSource.common.CubeCursor[], oracle.olapi.data.source.Source[], oracle.express.olapi.data.full.ExpressSpecifiedCursorManager[], boolean, boolean, boolean, boolean)
QueryUtilities.java:558
oracle.express.olapi.data.full.ExpressSpecifiedCursorManager[] oracle.dss.dataSource.QueryServer._setUpCursorsForMainQuery(oracle.dss.dataSource.SourceTemplate[], oracle.dss.dataSource.common.CubeCursor[], boolean, boolean, boolean, boolean)
QueryServer.java:7036
void oracle.dss.dataSource.QueryServer._getCursorForCube(oracle.dss.dataSource.common.DimTree, boolean, boolean, boolean, boolean, boolean)
QueryServer.java:4096
void oracle.dss.dataSource.QueryServer._createCubeAndCursor(boolean, boolean, boolean)
QueryServer.java:4251
void oracle.dss.dataSource.QueryServer._createCommonQuery(java.lang.String[][], java.lang.String[], oracle.dss.util.Operation, oracle.dss.dataSource.common.QueryState)
QueryServer.java:3894
void oracle.dss.dataSource.QueryServer._initQuery(java.lang.String[][], java.lang.String[], oracle.dss.util.Operation, oracle.dss.dataSource.common.QueryState)
QueryServer.java:3841
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
native code
java.lang.Object oracle.dss.util.Operation.execute(java.lang.Object)
Operation.java:69
java.lang.Object oracle.dss.dataSource.OperationQueue.update()
OperationQueue.java:68
java.lang.Object oracle.dss.dataSource.common.BaseOperationQueue.addOperation(oracle.dss.util.Operation, int)
BaseOperationQueue.java:176
java.lang.Object oracle.dss.dataSource.common.BaseOperationQueue.addOperation(oracle.dss.util.Operation)
BaseOperationQueue.java:146
java.lang.Object oracle.dss.dataSource.QueryServer.queueOperation(java.lang.String, oracle.dss.util.Parameter[], boolean, oracle.dss.dataSource.common.QueryEvent, java.lang.String, oracle.dss.util.Parameter[], oracle.dss.dataSource.common.QueryState)
QueryServer.java:7073
void oracle.dss.dataSource.QueryServer.initQuery(java.lang.String[][], java.lang.String[])
QueryServer.java:3803
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
native code
java.lang.Object oracle.dss.util.Operation.execute(java.lang.Object)
Operation.java:69
java.lang.Object oracle.dss.dataSource.QueryManagerServer.sendQueue(oracle.dss.dataSource.common.BaseOperationQueue)
QueryManagerServer.java:1548
java.lang.Object oracle.dss.dataSource.common.OperationQueue.update()
OperationQueue.java:198
java.lang.Object oracle.dss.dataSource.common.BaseOperationQueue.addOperation(oracle.dss.util.Operation, int)
BaseOperationQueue.java:176
java.lang.Object oracle.dss.dataSource.common.BaseOperationQueue.addOperation(oracle.dss.util.Operation)
BaseOperationQueue.java:146
void oracle.dss.dataSource.client.QueryClient.initQuery(java.lang.String[][], java.lang.String[])
QueryClient.java:1581
oracle.dss.util.DataAccess oracle.dss.dataSource.common.QueryQueryAccess$SelCursor.getDataAccess(boolean)
QueryQueryAccess.java:1099
oracle.dss.util.DataAccess oracle.dss.dataSource.common.QueryQueryAccess.getDataAccess(java.lang.String)
QueryQueryAccess.java:278
java.util.Vector oracle.dss.queryBuilder.QueryBuilderQueryAccessUtils.getDimMembers(oracle.dss.datautil.QueryAccessUtilities, java.lang.String, java.lang.String, java.util.Vector, java.lang.String)
QueryBuilderQueryAccessUtils.java:220
oracle.dss.datautil.DimensionMember oracle.dss.queryBuilder.QueryBuilderQueryAccessUtils.getDimMember(oracle.dss.datautil.QueryAccessUtilities, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
QueryBuilderQueryAccessUtils.java:156
java.util.Vector oracle.dss.queryBuilder.stepView.ConditionStepView.getQDRMemberNames(java.lang.String, oracle.dss.selection.OlapQDR)
ConditionStepView.java:230
void oracle.dss.queryBuilder.stepView.ConditionStepView.updateQDRControls()
ConditionStepView.java:606
void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateQDR()
MeasConditionStepView.java:451
void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateMeasureEditorSelection()
MeasConditionStepView.java:208
void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateMeasureEditorContents()
MeasConditionStepView.java:271
void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateMeasureEditorSelection()
MeasConditionStepView.java:161
void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateControls()
MeasConditionStepView.java:148
void oracle.dss.queryBuilder.stepView.StepView.updateStepEditor(oracle.dss.selection.step.Step, boolean, boolean, int)
StepView.java:562
javax.swing.JPanel oracle.dss.queryBuilder.stepView.StepView.getStepEditor(oracle.dss.selection.step.Step, boolean, boolean, int, int)
StepView.java:522
void oracle.dss.queryBuilder.StepsPanelEditor.startEdit(java.awt.Component, java.lang.String, int, java.awt.Rectangle)
StepsPanelEditor.java:93
boolean oracle.dss.util.dimensionList.DimensionList.doEdit(int)
DimensionList.java:525
void oracle.dss.queryBuilder.StepsPanel$MyDimensionListAdapter.startEditingNewSelection()
StepsPanel.java:404
void oracle.dss.queryBuilder.StepsPanel$MyDimensionListAdapter.dimensionSelected(oracle.dss.util.dimensionList.DimensionListEvent)
StepsPanel.java:374
void oracle.dss.util.dimensionList.DimensionList.notifyDimensionListListener(oracle.dss.util.dimensionList.DimensionListEvent)
DimensionList.java:2074
void oracle.dss.util.dimensionList.DimensionList.valueChanged(javax.swing.event.ListSelectionEvent)
DimensionList.java:1772
void javax.swing.JList.fireSelectionValueChanged(int, int, boolean)
JList.java:946
void javax.swing.JList$ListSelectionHandler.valueChanged(javax.swing.event.ListSelectionEvent)
JList.java:960
void javax.swing.DefaultListSelectionModel.fireValueChanged(int, int, boolean)
DefaultListSelectionModel.java:170
void javax.swing.DefaultListSelectionModel.fireValueChanged(boolean)
DefaultListSelectionModel.java:140
void javax.swing.DefaultListSelectionModel.setValueIsAdjusting(boolean)
DefaultListSelectionModel.java:507
void javax.swing.JList.setValueIsAdjusting(boolean)
JList.java:1261
void javax.swing.plaf.basic.BasicListUI$MouseInputHandler.mouseReleased(java.awt.event.MouseEvent)
BasicListUI.java:831
void java.awt.AWTEventMulticaster.mouseReleased(java.awt.event.MouseEvent)
AWTEventMulticaster.java:231
void java.awt.AWTEventMulticaster.mouseReleased(java.awt.event.MouseEvent)
AWTEventMulticaster.java:230
void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
Component.java:3715
void oracle.dss.util.dimensionList.DragList.processMouseEvent(java.awt.event.MouseEvent)
DragList.java:202
void oracle.dss.util.dimensionList.DimensionList.processMouseEvent(java.awt.event.MouseEvent)
DimensionList.java:2167
void java.awt.Component.processEvent(java.awt.AWTEvent)
Component.java:3544
void java.awt.Container.processEvent(java.awt.AWTEvent)
Container.java:1164
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
Component.java:2593
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1213
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
Container.java:2451
boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
Container.java:2216
boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
Container.java:2125
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1200
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
Window.java:922
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
EventQueue.java:339
boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
EventDispatchThread.java:131
void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
EventDispatchThread.java:98
void java.awt.Dialog.show()
Dialog.java:380
void java.awt.Component.show(boolean)
Component.java:946
void java.awt.Component.setVisible(boolean)
Component.java:903
boolean oracle.bali.ewt.wizard.WizardDialog.runDialog()
boolean oracle.dss.datautil.gui.DefaultBuilderDialog.runDialog()
DefaultBuilderDialog.java:481
boolean oracle.dss.datautil.gui.DefaultBuilderDialog.run()
DefaultBuilderDialog.java:466
boolean oracle.dss.queryBuilder.QueryBuilder.run()
QueryBuilder.java:2401
void borlas.oa.Actions.actionEditQuery.doAction()
actionEditQuery.java:44
boolean borlas.oa.Actions.Action.fire()
Action.java:88
void borlas.oa.Forms.FormModule.editQuery()
FormModule.java:132
void borlas.oa.Forms.FormModule.access$6000071(borlas.oa.Forms.FormModule)
FormModule.java:42
void borlas.oa.Forms.FormModule$1.actionPerformed(java.awt.event.ActionEvent)
FormModule.java:113
void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
AbstractButton.java:1450
void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent)
AbstractButton.java:1504
void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
DefaultButtonModel.java:378
void javax.swing.DefaultButtonModel.setPressed(boolean)
DefaultButtonModel.java:250
void javax.swing.AbstractButton.doClick(int)
AbstractButton.java:279
void javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(java.awt.event.MouseEvent)
BasicMenuItemUI.java:886
void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
Component.java:3715
void java.awt.Component.processEvent(java.awt.AWTEvent)
Component.java:3544
void java.awt.Container.processEvent(java.awt.AWTEvent)
Container.java:1164
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
Component.java:2593
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1213
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
Container.java:2451
boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
Container.java:2216
boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
Container.java:2125
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1200
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
Window.java:922
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
EventQueue.java:339
boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
EventDispatchThread.java:131
void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
EventDispatchThread.java:98
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
EventDispatchThread.java:93
void java.awt.EventDispatchThread.run()
EventDispatchThread.java:85
Exception occurred during event dispatching:
java.lang.NullPointerException
java.util.Vector oracle.dss.queryBuilder.stepView.ConditionStepView.getQDRMemberNames(java.lang.String, oracle.dss.selection.OlapQDR)
ConditionStepView.java:230
void oracle.dss.queryBuilder.stepView.ConditionStepView.updateQDRControls()
ConditionStepView.java:606
void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateQDR()
MeasConditionStepView.java:451
void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateMeasureEditorSelection()
MeasConditionStepView.java:208
void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateMeasureEditorContents()
MeasConditionStepView.java:271
void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateMeasureEditorSelection()
MeasConditionStepView.java:161
void oracle.dss.queryBuilder.stepView.MeasConditionStepView.updateControls()
MeasConditionStepView.java:148
void oracle.dss.queryBuilder.stepView.StepView.updateStepEditor(oracle.dss.selection.step.Step, boolean, boolean, int)
StepView.java:562
javax.swing.JPanel oracle.dss.queryBuilder.stepView.StepView.getStepEditor(oracle.dss.selection.step.Step, boolean, boolean, int, int)
StepView.java:522
void oracle.dss.queryBuilder.StepsPanelEditor.startEdit(java.awt.Component, java.lang.String, int, java.awt.Rectangle)
StepsPanelEditor.java:93
boolean oracle.dss.util.dimensionList.DimensionList.doEdit(int)
DimensionList.java:525
void oracle.dss.queryBuilder.StepsPanel$MyDimensionListAdapter.startEditingNewSelection()
StepsPanel.java:404
void oracle.dss.queryBuilder.StepsPanel$MyDimensionListAdapter.dimensionSelected(oracle.dss.util.dimensionList.DimensionListEvent)
StepsPanel.java:374
void oracle.dss.util.dimensionList.DimensionList.notifyDimensionListListener(oracle.dss.util.dimensionList.DimensionListEvent)
DimensionList.java:2074
void oracle.dss.util.dimensionList.DimensionList.valueChanged(javax.swing.event.ListSelectionEvent)
DimensionList.java:1772
void javax.swing.JList.fireSelectionValueChanged(int, int, boolean)
JList.java:946
void javax.swing.JList$ListSelectionHandler.valueChanged(javax.swing.event.ListSelectionEvent)
JList.java:960
void javax.swing.DefaultListSelectionModel.fireValueChanged(int, int, boolean)
DefaultListSelectionModel.java:170
void javax.swing.DefaultListSelectionModel.fireValueChanged(boolean)
DefaultListSelectionModel.java:140
void javax.swing.DefaultListSelectionModel.setValueIsAdjusting(boolean)
DefaultListSelectionModel.java:507
void javax.swing.JList.setValueIsAdjusting(boolean)
JList.java:1261
void javax.swing.plaf.basic.BasicListUI$MouseInputHandler.mouseReleased(java.awt.event.MouseEvent)
BasicListUI.java:831
void java.awt.AWTEventMulticaster.mouseReleased(java.awt.event.MouseEvent)
AWTEventMulticaster.java:231
void java.awt.AWTEventMulticaster.mouseReleased(java.awt.event.MouseEvent)
AWTEventMulticaster.java:230
void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
Component.java:3715
void oracle.dss.util.dimensionList.DragList.processMouseEvent(java.awt.event.MouseEvent)
DragList.java:202
void oracle.dss.util.dimensionList.DimensionList.processMouseEvent(java.awt.event.MouseEvent)
DimensionList.java:2167
void java.awt.Component.processEvent(java.awt.AWTEvent)
Component.java:3544
void java.awt.Container.processEvent(java.awt.AWTEvent)
Container.java:1164
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
Component.java:2593
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1213
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
Container.java:2451
boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
Container.java:2216
boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
Container.java:2125
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1200
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
Window.java:922
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
EventQueue.java:339
boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
EventDispatchThread.java:131
void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
EventDispatchThread.java:98
void java.awt.Dialog.show()
Dialog.java:380
void java.awt.Component.show(boolean)
Component.java:946
void java.awt.Component.setVisible(boolean)
Component.java:903
boolean oracle.bali.ewt.wizard.WizardDialog.runDialog()
boolean oracle.dss.datautil.gui.DefaultBuilderDialog.runDialog()
DefaultBuilderDialog.java:481
boolean oracle.dss.datautil.gui.DefaultBuilderDialog.run()
DefaultBuilderDialog.java:466
boolean oracle.dss.queryBuilder.QueryBuilder.run()
QueryBuilder.java:2401
void borlas.oa.Actions.actionEditQuery.doAction()
actionEditQuery.java:44
boolean borlas.oa.Actions.Action.fire()
Action.java:88
void borlas.oa.Forms.FormModule.editQuery()
FormModule.java:132
void borlas.oa.Forms.FormModule.access$6000071(borlas.oa.Forms.FormModule)
FormModule.java:42
void borlas.oa.Forms.FormModule$1.actionPerformed(java.awt.event.ActionEvent)
FormModule.java:113
void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
AbstractButton.java:1450
void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent)
AbstractButton.java:1504
void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
DefaultButtonModel.java:378
void javax.swing.DefaultButtonModel.setPressed(boolean)
DefaultButtonModel.java:250
void javax.swing.AbstractButton.doClick(int)
AbstractButton.java:279
void javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(java.awt.event.MouseEvent)
BasicMenuItemUI.java:886
void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
Component.java:3715
void java.awt.Component.processEvent(java.awt.AWTEvent)
Component.java:3544
void java.awt.Container.processEvent(java.awt.AWTEvent)
Container.java:1164
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
Component.java:2593
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1213
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
Container.java:2451
boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
Container.java:2216
boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
Container.java:2125
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1200
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
Window.java:922
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
EventQueue.java:339
boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
EventDispatchThread.java:131
void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
EventDispatchThread.java:98
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
EventDispatchThread.java:93
void java.awt.EventDispatchThread.run()
EventDispatchThread.java:85Also read this great article
http://sqlblog.com/blogs/alexander_kuznetsov/archive/2009/05/13/your-try-block-may-fail-and-your-catch-block-may-be-bypassed.aspx
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
A simple query to show sales versus last year on daily basis/
Hi guys,
I want to build a simple query with day (1,2,3,4,5,6) on the rows and "sales current year" and "sales last year"
on the columns.
I have only 0CALDAY in my cube.
How can I have on the rows the day in stead of the full date?
I would like to see in the sames row sales current year and sales last year.
Thanks
ShlomiHI Shlomi
Create a virtual characteristic in your infoprovider that can calculate the day from calendar Day. In ZXRSRZZZ while adding code for this virtual characteristic use the function module DATE_COMPUTE_DAY to compute the day for every calendar day.
For calculating Sales Current year, create a restricted ky figure with Sales as the key figure. Add 0CalDay to this RKF and create a variable for this infoobject(Eg: ZCURYEAR) that will receive input from the user for the range of dates eg: 08/16/2009 - 08/22/2009.
For Sales Prior year, create another restricted key figure with Sales. Add 0CalDay to this RKF and add a customer exit variable. In the Customer exit code use the ZCURYEAR variable and offset it to prior year in both the upper and lower limits. This should work.
I hope this helps.
Thanks. -
Create a query builder in oracle Apex
Hi
We have a request to create a query builder in oracle Apex particularly.But it provide the application builder and Utilities when we create the apex workspace.My question is any possibility are to make the application builder and utilizes as invisible
regards
apexuserhi scott,
we no need to buid a report.we want generate a sql query using GUI drag and drop query builder.
our suggestion is provide synonym for all objects and give to clinet,but in apex query builder only show view and table...
it not show synonym thats the problem..
simply we want oracle query browser.just want build a query.through synonym schema.
we cerate a oracle user and provide synonym for live tables.then we provide the synonym user to client place,so they want build a query simpl.
they dont have sql knowledge.
regards
apexuser -
Save layout of queries in SQL Developer query builder?
Sometimes queries are very complex and moving tables around in the graphical view is really helpfull to better understand them.
Unfortunately this layout does not get saved with "save" (because this is a simple text file).
Once upon there was a query builder (included with designer 2000 and later vom 1991 to 1998) that had a proprietary format (.brw) to just do that: Save a query including layout.
Any chance to save the layout of SQL Developer query builder queries?I dont think there is any way to save the layout for the query, you can request an enhancement on the Exchange for this http://sqldeveloper.oracle.com/
But if you only need to restore the query you are working with later, or move it to another workstation and continue editing using the query builder, you only need the SQL code generated; when you paste it in an opened worksheet (on the same database or even a clone with the same structure) the query builder is able to resume working just fine with default positioning for the table objects.
If you hand edit the query and insert some SQL manually then the query builder may stop working for particularly complex statements, in this case it will warn you and disable itself. -
Query Builder - sort order causing ORA-00979 error
Hello,
I'm having an issue with the "sort order" clause in the query builder tool when using a function on the same column.
I've build a simple query in the gui and the following statement is displayed in the SQL Window
select "DEMO_ORDER_ITEMS"."ORDER_ID" as "ORDER_ID",
sum(DEMO_ORDER_ITEMS.QUANTITY) as "QUANTITY"
from "DEMO_ORDER_ITEMS" "DEMO_ORDER_ITEMS"
group by DEMO_ORDER_ITEMS.ORDER_ID
and if I add a sort order of "1" on the quantity field, the following query is changed to
select "DEMO_ORDER_ITEMS"."ORDER_ID" as "ORDER_ID",
sum(DEMO_ORDER_ITEMS.QUANTITY) as "QUANTITY"
from "DEMO_ORDER_ITEMS" "DEMO_ORDER_ITEMS"
group by DEMO_ORDER_ITEMS.ORDER_ID
order by DEMO_ORDER_ITEMS.QUANTITY DESC
When running this query I get an error
failed to parse SQL query:
ORA-00979: not a GROUP BY expression
It is quite obvious what is wrong with the query but I don't know how to get the query builder tool to generate the correct statement. The order by clause should be order by sum(DEMO_ORDER_ITEMS.QUANTITY) DESC.
I've tried to do some searching and haven't found much documentation on this issue. Any assistance is appreciated.
Thanks,
TonyWhile this statement is generally certainly true and should also be remembered, it is not really helpful for the specific case.
I think the behaviour described is a bug. However this might be one a little difficult to solve. The user unfortunatly can't influence much of the query builder results directly.
Either put 1 into the order by clause or use the column alias name without table alias name ("QUANTITY" only).
My personal solution would be NOT TO use any sort criteia in the query builder. This makes sense in so far as the generated SQL is often basis for some report. If that is an interactive report you won't add a sort order anyway. This is a layout thing and layout will be handled by the end user itself. he can choose whatever sorting he wants.
Edited by: Sven W. on Jul 22, 2009 11:43 AM -
Need ABAP Query Builder Like Ms-SQLQuery Builder for Critical ABAP-Query
Dear ABAP Friends,
I Need ABAP Query Builder which is as flexible as Ms-SQLQuery Builder for building Critical ABAP-Queries e.g. "I have 4 master tables , Each master table having self-join with some condition and these 4 Result-Sets have Innser-Join+Left Outer Join " Please Help.I have seen TCODE SQ01, But I found that this TCODE may be used to build simple ABAP Query with Selection-screen which can be used for generating simple report. But i think for critical query ??????????
I have build my Query in MS-SQL and got the right output, Now how do I write this in ABAP Using Join statement. Please Help.....................
My SQL Query as below(Remember this is a single Query and verified correct in SQL):
SELECT P1.PERNR, P1.ENAME, P1.BEGDA AS P1BEGDA, P1.ENDDA AS P1ENDDA, P1.AEDTM AS P1AEDTM, P1.UNAME AS P1UNAME, P1.PERSG, P1.PERSK,
P1.PLANS,
P2.ENDDA AS P2ENDDA, P2.BEGDA AS P2BEGDA, P2.AEDTM AS P2AEDTM, P2.UNAME AS P2UNAME, P2.GESCH, P2.FAMST,
P21.ENDDA AS P21ENDDA, P21.BEGDA AS P21BEDDA, P21.AEDTM AS P21AEDTM, P21.UNAME AS P21UNAME, P21.FAMSA, P21.FAVOR, P21.FANAM,
P21.FGBDT, P21.FASEX,
P0.ENDDA AS P0ENDDA, P0.BEGDA AS P0BEDDA, P0.AEDTM AS P0AEDTM, P0.UNAME AS P0UNAME, P0.MASSN,
P0.MASSG
FROM (SELECT TOP (100) PERCENT PA0001_2.PERNR, PA0001_2.ENDDA, PA0001_2.BEGDA, PA0001_2.AEDTM, PA0001_2.UNAME, PA0001_2.PERSG,
PA0001_2.PERSK, PA0001_2.PLANS, PA0001_2.ENAME
FROM PA0001 AS PA0001_2 INNER JOIN
(SELECT PERNR, MAX(ENDDA) AS ENDDA
FROM PA0001 AS PA0001_1
GROUP BY PERNR) AS Pi1
ON PA0001_2.PERNR = Pi1.PERNR
AND PA0001_2.ENDDA = Pi1.ENDDA
ORDER BY PA0001_2.PERNR) AS P1 LEFT OUTER JOIN
(SELECT TOP (100) PERCENT PA0000.PERNR, PA0000.ENDDA, PA0000.BEGDA, PA0000.AEDTM, PA0000.UNAME, PA0000.MASSN,
PA0000.MASSG
FROM PA0000 INNER JOIN
(SELECT PERNR, MAX(AEDTM) AS Pi0AEDTM
FROM PA0000 AS PA0000_1
GROUP BY PERNR) AS Pi0 ON PA0000.PERNR = Pi0.PERNR AND PA0000.AEDTM = Pi0.Pi0AEDTM
ORDER BY PA0000.PERNR) AS P0 ON P1.PERNR = P0.PERNR LEFT OUTER JOIN
(SELECT TOP (100) PERCENT PA0021.PERNR, PA0021.ENDDA, PA0021.BEGDA, PA0021.AEDTM, PA0021.UNAME, PA0021.FAMSA, PA0021.FAVOR,
PA0021.FANAM, PA0021.FGBDT, PA0021.FASEX
FROM PA0021 INNER JOIN
(SELECT PERNR, MAX(AEDTM) AS Pi21AEDTM
FROM PA0021 AS PA0021_1
GROUP BY PERNR) AS Pi21 ON PA0021.PERNR = Pi21.PERNR AND PA0021.AEDTM = Pi21.Pi21AEDTM
ORDER BY PA0021.PERNR) AS P21 ON P1.PERNR = P21.PERNR LEFT OUTER JOIN
(SELECT TOP (100) PERCENT PA0002.PERNR, PA0002.ENDDA, PA0002.BEGDA, PA0002.AEDTM, PA0002.UNAME, PA0002.GESCH,
PA0002.FAMST
FROM PA0002 INNER JOIN
(SELECT PERNR, MAX(ENDDA) AS Pi2ENDDA
FROM PA0002 AS PA0002_1
GROUP BY PERNR) AS Pi2 ON PA0002.PERNR = Pi2.PERNR AND PA0002.ENDDA = Pi2.Pi2ENDDA
ORDER BY PA0002.PERNR) AS P2 ON P1.PERNR = P2.PERNR
xxxxx----
Edited by: Goutam Roy on May 5, 2009 1:11 PM -
Qustion regarding Query Builder.
Hi All,
We need to write a query to get the information like " User having access to all the his report"
and "List of all the user having access to their reports".
Thanks.I don't think that Query Builder is going to let you query for such questions. This can be done using the BOE SDK, which comes in Java and .NET flavor. The QB only lets you query the CMS DB for certain information related to objects but what you are trying to do will be considered more complex for simple SQL queries via the QB.
You can post on the SDK Forum for better help on code/samples to do what you are trying to accomplish. -
[SOLVED] Package-Query build error
I'm trying to get my new Arch system setup, and I'm having trouble getting Yaourt installed. I can't seem to get package-query to build successfully. I have base-devel installed, and I've followed the instructions in the wiki on installing AUR packages. After running "makepkg -s" from the package-query directory it seems to go fine until the end, where I see this output.
make: *** [install-recursive] Error 1
==> ERROR: A failure occurred in package().
Aborting...
And that's it. Not sure what I'm missing here.
Thanks.
Last edited by x371322 (2012-05-31 08:11:21)I take that back, after another look I did notice a couple of errors. They're near the bottom of the output. I'm sure it's something simple, and I'm probably going to end up looking like an idiot , but anyway, here's the entire output.
==> Making package: package-query 1.0.1-1 (Thu May 31 03:21:18 EDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Downloading package-query-1.0.1.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 361k 100 361k 0 0 152k 0 0:00:02 0:00:02 --:--:-- 177k
==> Validating source files with md5sums...
package-query-1.0.1.tar.gz ... Passed
==> Extracting Sources...
-> Extracting package-query-1.0.1.tar.gz with bsdtar
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
configure: WARNING: Libtool does not cope well with whitespace in `pwd`
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking for alpm_version in -lalpm... yes
checking for yajl_free in -lyajl... yes
checking for gawk... (cached) gawk
checking for curl-config... /usr/bin/curl-config
checking for the version of libcurl... 7.26.0
checking for libcurl >= version 7.19.4... yes
checking whether libcurl is usable... yes
checking for curl_free... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for git... no
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
package-query:
Build information:
source code location : .
prefix : /usr
sysconfdir : /etc
conf file : /etc/pacman.conf
localstatedir : /var
database dir : /var/lib/pacman/
compiler : gcc
compiler flags : -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
package-query version : 1.0.1
using git version : no
git ver :
Variable information:
root working directory : /
aur base url : http://aur.archlinux.org
make all-recursive
make[1]: Entering directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1'
Making all in src
make[2]: Entering directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1/src'
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT aur.o -MD -MP -MF .deps/aur.Tpo -c -o aur.o aur.c
mv -f .deps/aur.Tpo .deps/aur.Po
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT alpm-query.o -MD -MP -MF .deps/alpm-query.Tpo -c -o alpm-query.o alpm-query.c
alpm-query.c: In function 'alpm_pkg_get_realsize':
alpm-query.c:486:9: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result]
mv -f .deps/alpm-query.Tpo .deps/alpm-query.Po
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c
util.c: In function 'ltostr':
util.c:532:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
util.c: In function 'itostr':
util.c:525:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
util.c: In function 'concat_backup_list':
util.c:480:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
util.c: In function 'string_fcat':
util.c:342:11: warning: ignoring return value of 'vasprintf', declared with attribute warn_unused_result [-Wunused-result]
mv -f .deps/util.Tpo .deps/util.Po
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT color.o -MD -MP -MF .deps/color.Tpo -c -o color.o color.c
mv -f .deps/color.Tpo .deps/color.Po
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT package-query.o -MD -MP -MF .deps/package-query.Tpo -c -o package-query.o package-query.c
mv -f .deps/package-query.Tpo .deps/package-query.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -lcurl -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -o package-query aur.o alpm-query.o util.o color.o package-query.o -lyajl -lalpm
libtool: link: gcc -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,--hash-style=gnu -o package-query aur.o alpm-query.o util.o color.o package-query.o -lcurl -lyajl -lalpm
make[2]: Leaving directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1/src'
Making all in doc
make[2]: Entering directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1/doc'
make[2]: Entering directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1'
make[2]: Leaving directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1'
make[1]: Leaving directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1'
==> Entering fakeroot environment...
==> Starting package()...
Making install in src
make[1]: Entering directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1/src'
make[2]: Entering directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1/src'
test -z "/usr/bin" || /bin/mkdir -p "/home/x371322/AUR Builds/package-query/pkg/usr/bin"
/bin/sh ../libtool --mode=install /usr/bin/install -c package-query '/home/x371322/AUR Builds/package-query/pkg/usr/bin'
libtool: install: /usr/bin/install -c package-query /home/x371322/AUR Builds/package-query/pkg/usr/bin/package-query
/usr/bin/install: target 'Builds/package-query/pkg/usr/bin/package-query' is not a directory
make[2]: *** [install-binPROGRAMS] Error 1
make[2]: Leaving directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1/src'
Making install in doc
make[1]: Entering directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1/doc'
make[2]: Entering directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1/doc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/man/man8" || /bin/mkdir -p "/home/x371322/AUR Builds/package-query/pkg/usr/share/man/man8"
/usr/bin/install -c -m 644 package-query.8 '/home/x371322/AUR Builds/package-query/pkg/usr/share/man/man8'
make[2]: Leaving directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1/doc'
make[1]: Leaving directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1/doc'
make[1]: Entering directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1'
make[2]: Entering directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1'
make[1]: Leaving directory `/home/x371322/AUR Builds/package-query/src/package-query-1.0.1'
make: *** [install-recursive] Error 1
==> ERROR: A failure occurred in package().
Aborting...
I appreciate the help guys. -
hi,
i'm getting an oracle error in query builder that i'm hoping someone could explain. i used query builder to build a simple query without issue. i saved it and i was able to retrieve query again and get the data. here's the query that was saved......
select AUDIT_EVENT.ENTITY_NAME as ENTITY_NAME,
AUDIT_MGMT_PROVISIONING.OWNER_NAME as OWNER_NAME,
AUDIT_EVENT.ENTITY_TYPE as ENTITY_TYPE,
AUDIT_EVENT.ACTION as ACTION,
AUDIT_EVENT.TIMESTAMP as TIMESTAMP,
AUDIT_EVENT.INITIATOR_NAME as INITIATOR_NAME,
PUTPERSON_SN.SN as SN,
PUTPERSON_GIVENNAME.GIVENNAME as GIVENNAME
from PUTPERSON_SN PUTPERSON_SN,
PUTPERSON_GIVENNAME PUTPERSON_GIVENNAME,
ITIMACCOUNT_OWNER ITIMACCOUNT_OWNER,
AUDIT_MGMT_PROVISIONING AUDIT_MGMT_PROVISIONING,
AUDIT_EVENT AUDIT_EVENT
where AUDIT_EVENT.ID=AUDIT_MGMT_PROVISIONING.EVENT_ID
and AUDIT_EVENT.INITIATOR_DN=ITIMACCOUNT_OWNER.OWNER
and ITIMACCOUNT_OWNER.OWNER=PUTPERSON_GIVENNAME.DN
and ITIMACCOUNT_OWNER.OWNER=PUTPERSON_SN.DN;
the problem arise when i drop table PUTPERSON_SN and rebuild it. i rebuild it with the exact structure and data as before. but when i go back into htmldb and run the saved query, this is the query that i got back and i got the error ora-01741. notice the table PUTPERSON_SN is missing and the whole where clause is gone. could someone explains what could be happening? it seems as though query builder is aware PUTPERSON_SN got dropped and the rebuild table isn't the same even though the structure and data are the same. does query builder or htmldb somehow keeps track of the object_id in the database? thanks
select "AUDIT_EVENT"."ENTITY_NAME" as "ENTITY_NAME",
"AUDIT_MGMT_PROVISIONING"."OWNER_NAME" as "OWNER_NAME",
"AUDIT_EVENT"."ENTITY_TYPE" as "ENTITY_TYPE",
"AUDIT_EVENT"."ACTION" as "ACTION",
"AUDIT_EVENT"."TIMESTAMP" as "TIMESTAMP",
"AUDIT_EVENT"."INITIATOR_NAME" as "INITIATOR_NAME"
from "" "",
"PUTPERSON_GIVENNAME" "PUTPERSON_GIVENNAME",
"ITIMACCOUNT_OWNER" "ITIMACCOUNT_OWNER",
"AUDIT_MGMT_PROVISIONING" "AUDIT_MGMT_PROVISIONING",
"AUDIT_EVENT" "AUDIT_EVENT"Just wanted to let you know that Bug 5347850 has been logged for this problem.
-
Simple Query returns no result
We have a problem with a simple query on a "old" Table in our Database. The Table has following Structure:
CREATE TABLE <table_name>
ROLE_ID INTEGER NOT NULL,
ROLE_NAME VARCHAR (99) ascii NOT NULL,
OBJECTDATA LONG BYTE,
UNIQUE (ROLE_NAME)
The table containts two rows and following querys get these results:
select role_id, role_name from <schema>.<table_name>
--> 2 rows
select role_id, role_name from <schema>.<table_name>
order by role_id
--> 2 rows
select role_id, role_name from <schema>.<table_name>
order by role_name
--> 0 rows ?? confusion
When we create a "new" table with the same structure, and insert the same content to this new table, the queries are working correctly.
What happened with our "old" table, so that these simple queries don't function anymore?
(Database Kernel 7.6.05 Build 009-123-191-997)
thx
gerri
Edited by: Gerfried on Jul 17, 2009 11:42 AMOk, Gerfried send me the dump file and this is what was in it:
INV ROOT/LEAF 15857 perm entries : 0 [block 0]
bottom : 81 filevers: dummy convvers: 9
writecnt: 1
00001 nodepage.pno: 15857 nodepage.pt : data
00006 nodepage.pt2: inv nodepage.chk: checksumData
00008 nodepage.mde: empty
08181 nd_checksum : 61937 nodepge2.pno: 15857
08189 nodepge2.pt : data nodepge2.pt2: inv
08191 nodepge2.chk: checksumData
08192 nodepge2.mde: empty
00009 nd_bottom : 81 nd_rec_cnt : 0
00017 nd_level : 0
00019 nd_filestate: empty
00020 nd_sorted : false nd_root : 15857/F13D0000
00025 nd_right : nil_pno nd_left : nil_pno
00033 nd_last : nil_pno nd_conv_vers: 9
00045 nd_str_vers : nil_pno nd_file_vers: dummy
00052 ndPageVersio: 0 nd_inv_usage: 0
00057 nd_leaf_cnt : 1 nd_treeleavs: nil
00065 nd_trans_id : nil ndInvRoot : nil_pno
00077 nd_write_cnt: 1
END OF FILE
Obviously the reason for not delivering any data for the query is: this index is empty.
See "nd_filestate: empty" !
For some reasons (that I really don't know - sorry about that) this index had not been maintained anymore, since a very long time.
"nd_conv_vers: 9" tells us that it was the 9th savepoint that wrote down this page to the disks and that it had not been touched since then.
To view the current converter version you may just use the db_restartinfo command in dbmcli.
If you were a SAP customer the next thing I'd check would be with which database version these indexes had been created, what the internal file state is etc. - just to figure out the root cause.
As such an analysis is basically not possible via this forum all I can propose is to look for those indexes (containing 0 entries although the table has more rows) and rebuild them.
This statement should do the trick:
select i.owner, i.indexname, i.tablename, if.*
from files if join files tf on if.primaryfileid=tf.fileid
join indexes i on if.fileid=i.fileid
where if.entrycount =0
and if.type ='INDEX'
and tf.entrycount >0
best regards,
Lars -
Does Query Builder support Alias like in Oracle
Dear Experts,
As I read one artical give a detailed information regarding the tables in BOE, so i want to use one sql statements to get the information from that table.
I exclude the way to check directly on infoview and designer. I just want to know the way how to get thoes information from query builder.
eg: i know the SI_ID for one webi, and so i want to find out what's the universe/connection/owner etc belong to it.
I have one sample sql as below:
select IA.SI_KIND,IB.SI_NAME,IC.SI_NAME,IW.SI_NAME,IE.SI_NAME
from CI_INFOOBJECTS IA, CI_INFOOBJECTS IB, CI_INFOOBJECTS IC, CI_INFOOBJECTS IW, CI_INFOOBJECTS IE
where IA.SI_PARENTID=IB.SI_ID and
IA.SI_OWNER =IC.SI_ID and
IA.si_universe=IW.SI_ID
and IW.SI_CONNECTION =IE.SI_ID
But i got the "invalid error" from query builder, so i guess maybe the query builder support the Alias like in Oracle.
If you know how to use one statement to check the webi and it's universe/connection etc, please kindly assist.
Many thanks.
SophieQuery Builder is not meant for running complex queries against repository so i dont think Alias will work in query builder.Try to get results with simple queries else you can use SDK to get your job done.
-Gokul. -
How to add a new field in Query Builder or Report
Hi,
I am writing a report using Oracle 6i query builder and report.
example:
QTY_1 QTY_2 QTY_3
QTY_1 and QTY_2 are table fields and QTY_3 Is not. I need to show the value of (QTY_2-QTY_1) in QTY_3.
I need to create a field QTY_3 which is not in the database table. How do I do that?
JunHi,
Try using formula to return the qty_1 - qty2.
or
select qty_1, qty_2, (qty_1 - qty_2) qty_3
from table;
regards,
CB
Maybe you are looking for
-
I have a Safari web browser that I have used since I purchased my Mac in 2008. Within the last week or so, I have been getting an error message, which says something like it cannot find the Apache back server or something like that. As a result, I
-
Can I use upgrade win 8 pro license on win 7 pro lenovo system that comes with a tablet?
I really like to use the custom edition from Lenovo in my girlfriend's Thinkpad Twist. Can anybody answer me? Thank you for reply.
-
Hi Guys, I have query on Planning Application. As per the requirement we are developing one Planning Application with 3 Plan Types. As of now we need only one Plan Type as per requirement but we are keeping two other Plan Types for future purpose. Bu
-
[FYI] FRM-92101 and scroll bar and form crash
Forms 6i Windows 2k for app server. I have just spent three hours figuring out why I was getting a FRM-92101 when I deployed a form from my development app server to my test app server. Noted that the development server has patch 18 and uses cgi, not
-
I'm using mysql as my db in a web app. I've put the mysql jar file in WEB-INF/lib of my app and I'm using org.gjt.mm.mysql.Driver in my call to Class.forName() but when I try to access the db I get a no driver available message. Can anyone offer an i