Ora-01741 in query builder
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.
Similar Messages
-
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 -
Query Builder session settings as a solve to ORA-01843 (not a valid month)
Hi All! I'm novice at Oracle and RDBMS, so sorry for a dummy question.
I'm trying to make some queries to a tutorial database (10g XE) with Query Builder of Application Express 2.1000039.
I'm requesting columns with id, date of order and status of order; in a column of ordering date as a "where" condition I've wrote:
>= to_date('23-JUN-2006', 'DD-MON-RRRR') and got an error "ORA-01843: not a valid month".
Then I've edited row filtering condition:
>= to_date('23-JUN-2006', 'DD-MON-RRRR', 'NLS_DATE_LANGUAGE = american') and 've got a correct query result, BUT resulting table date format is DD-MM-RR.
So, here is a couple of questions:
1. Can I change a session settings (e.g. alter session set NLS_DATE_FORMAT = 'DD-MON-RRRR') such way, to use it in Query Builder, before building an application itself and not to write 'NLS_DATE_LANGUAGE = american' every time I'm inserting data to a date datatype field?
2. I wonder why resulting table date format is 'DD-MM-RRRR'. How can I get a data exactly in a date format 'DD-MON-RRRR', how I'm specifying in a query?
My operating system is Windows 7 Home Basic, NLS_DATE_FORMAT is DD-MON-YYYY in 2 cases in register and respectively in environment variable.
SQL*Plus displays all mentionted query tables correctly, corresponding to an 'ALTER SESSION ..... SETTINGS'.
Hope to your help, guys. Thanks for answers!Hi,
you can run the following query so you will see the session parameter values, and any differences with database and instance values :
SELECT
a1.parameter as "Parameter",
a1.value as "Database value",
a2.value as "Instance value",
a3.value as "Session value"
FROM
nls_database_parameters a1
LEFT JOIN nls_instance_parameters a2 ON a1.parameter = a2.parameter
LEFT JOIN nls_session_parameters a3 ON a1.parameter = a3.parameter
ORDER BY
a1.parameter ASC;What are the values for NLS_DATE_LANGUAGE and NLS_DATE_FORMAT ?
1. Can I change a session settings such way, to use it in Query Builder, before building an application itself and not to write 'NLS_DATE_LANGUAGE = american' every time I'm inserting data to a date datatype field?In the application, It depends on the Application Primary Language and Application Date Format you have set in the application globalization attributes. But you can also alter the session every time the APEX engine connects to the database, by entering some PL/SQL code in the Initialization PL/SQL Code attribute of the application (Application Builder -> Application -> Edit Security Attributes) :
BEGIN
EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_DATE_LANGUAGE = ''AMERICAN'' ';
END;In all cases application level settings will only affect the application, not SQL Commands and Query Builder. I think you have to alter session manually each time for these two last tools :/ -
ORA-01741: illegal zero-length identifier
Hi Friends,
I am facing a weird situation while creating a report with region having type as SQL Query(PL/SQL function body returning SQL Query).
I have a package function which takes 4 parameters and returns a SQL query in a varchar2 variable.
Now when I have the following code in my region source and on applying changes is showing ORA-01741: illegal zero-length identifier
DECLARE
l_query VARCHAR2 (5000);
BEGIN
SELECT apx_dashboard_pkg.f_int_monthly_grid (:p5_1, :p5_2, :p5_3, :p5_4)
INTO l_query
FROM DUAL;
RETURN l_query;
END;
If I change my code as below by passing values and run, then it does the job perfect.
DECLARE
l_query VARCHAR2 (5000);
BEGIN
SELECT apx_dashboard_pkg.f_int_monthly_grid(200712,
'IC',
3,
'AVARO'
INTO l_query
FROM DUAL;
RETURN l_query;
END;
I have no clue where I am doing wrong.
Please help me.
Thanks,
Raj.Thanks guys for your responses.
Varad,
I have tried with 'Generic Column Names' and it worked wonderfully.
Scott,
I would definitely consider your point because it might be the reason for erroring out in some of my pages in the application.
Thanks a lot. -
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 -
Function in report query builder
Hi,
It is possible to call a function in the select statement of a report query builder as followed :
select my_func()
from my_table
The function is defined as :
create or replace my_func() return vachar2 is
v_temp vachar2(100);
begin
v_temp := 'column_1, column_2, column_3';
return(v_temp);
end;
Therefore, the query should be interpreted as:
select column_1, column_2, column_3
from my_table
and the fields "column_1", "column_2" and "column_3" with the same alias name would be created for the report.
Thank you,
DSOk. Here is the way!
Create user parameter p_query. Datatype Character. Width 10000. Set initial value as
select RPAD('n',10) c1, RPAD('n',10) c2, RPAD('n',10) c3 from dual
** Suppose type of column 1, 2 and 3 is character and maximum length can be 10. So using this in above select statement.
Get value in After Parameter Form trigger
begin
:p_query := yourfuntion;
return(true);
end;
data model will have only this:
&p_query
Now you will see three columns in data model
c1
c2
c3
NOW error ORA-24333 can appear, when function/procedure doesn't return back anything for data model, I mean lexical parameter p_query is empty.
** You can replace whole select statement with lexical parameter. -
Multiple schemas in query builder
Hi,
I have seen variations of this question returning a couple of times in the forum, but no answer has come forward so far. So let's try again...
In APEX 4.1 (maybe also in earlier versions) there is a drop-down at the top-right of the query-builder tool to select a different schema.
The problem is, that it only shows the "parsing" schema. So the user the workspace is associated with.
I have taken all of the following steps, that i would expect to make the other schemas show up:
- associate my second scheme, SCHEMA_2, to the workspace SPACE_1
- grant the "parsing" schema, SCHEMA_1, select access to all objects in SCHEMA_2
And I have tested the following things:
- in "SQL Commands" run a query that selects objects from SCHEMA_2, using "select * from SCHEMA_2.TEST_TABLE;". This works
- in query builder, select the "SQL" option and insert the same query and click "run". Results in "Please enter a valid query to see results"
- create an application with a "SQL report" page, and insert the same query. Results in "Query cannot be parsed, please check the syntax of your query. (ORA-00942: table or view does not exist)"
My toughts on this issue:
- A different user is used in query builder and the application builder?
- the "SQL commands" uses the "parsing" schema, as expected
So, what's wrong?Is using more then one schema in the query builder such an uncommon requirement?
Or did this message pass by unnoticed? -
SQL developer 3.0 - Few Query Builder issues
Hi All,
I have just started using SQL Developer 3.0 so have not fully browsed thru all of the available options in SQL Developer. I have been trying to work on creating and editing sql statements using Worksheet and Query Builder.
I am working on to test this tool so I can give it to the users for them to try and use it - they used to work on the old Query Builder 6.0.7....since it is already de-supported long back to work against 11g database, I am hoping to tell them to use SQL developer 3.0 instead.
Hence, if an user doesn't know how to write a sql statement, he/she would try to do the same using Query Builder.
So, the following questions are more aligned towards a normal user who would try to create a query in the Query Builder window, instead of directly typing a sql statement in the Worksheet window.
1) How to establish/create a relationship between tables after you have dragged down the tables into the Query Builder window? - i tried but couldn't get any options!.
2) Sometimes I see 'Connection closed' error when i try to run a query. How to refresh the connection without opening a new Connection tab?
- I tried this but evertytime it opens up a new connection tab, while the old tab is still present.
3) Columns in the Expression field in Query Builder window can ONLY be displayed in the result set, if the 'output' box on the extreme left of the 2nd section in Query Builder window is checked.
Now when i try to check the output box for an expression (with few aggregate functions), the 'Grouping' check box automatically gets checked, which when run throws an ORA-00934 error: group function is not allowed here...but when I de-select the 'Grouping' check box, the 'output' box also gets un-checked!.
How to solve this out?
Please let me know the resolutions of the above - much appreciated.
With Regards,
Pamir
Edited by: user651047 on 11-Aug-2011 07:53Hi,
As Raghu noted above, and you also saw in rp0428's following reply,
Re: Problem with displaying sdo_geometry objects
drilling down to the cell edit details is your only recourse for now. Apparently there will be further work done in this area, but it is not clear exactly what or when it will be. For those with access to it, here is a bug reference:
Bug 13680849 - RC1: NOT DISPLAYING THE DATA OF MDSYS.SDO_GEOMETRY
Regards,
Gary -
ORA-00604 ORA-00904 When query partitioned table with partitioned indexes
Got ORA-00604 ORA-00904 When query partitioned table with partitioned indexes in the data warehouse environment.
Query runs fine when query the partitioned table without partitioned indexes.
Here is the query.
SELECT al2.vdc_name, al7.model_series_name, COUNT (DISTINCT (al1.vin)),
al27.accessory_code
FROM vlc.veh_vdc_accessorization_fact al1,
vlc.vdc_dim al2,
vlc.model_attribute_dim al7,
vlc.ppo_list_dim al18,
vlc.ppo_list_indiv_type_dim al23,
vlc.accy_type_dim al27
WHERE ( al2.vdc_id = al1.vdc_location_id
AND al7.model_attribute_id = al1.model_attribute_id
AND al18.mydppolist_id = al1.ppo_list_id
AND al23.mydppolist_id = al18.mydppolist_id
AND al23.mydaccytyp_id = al27.mydaccytyp_id
AND ( al7.model_series_name IN ('SCION TC', 'SCION XA', 'SCION XB')
AND al2.vdc_name IN
('PORT OF BALTIMORE',
'PORT OF JACKSONVILLE - LEXUS',
'PORT OF LONG BEACH',
'PORT OF NEWARK',
'PORT OF PORTLAND'
AND al27.accessory_code IN ('42', '43', '44', '45')
GROUP BY al2.vdc_name, al7.model_series_name, al27.accessory_codeI would recommend that you post this at the following OTN forum:
Database - General
General Database Discussions
and perhaps at:
Oracle Warehouse Builder
Warehouse Builder
The Oracle OLAP forum typically does not cover general data warehousing topics. -
Query Builder won't apply chosen date to the where clause
Does anybody know why when I chose a date field, in the where clause, when using Query Builder, it won't actually write the chosen date to the actual query?
If I select the "View Query" tab, no date shows up. Also if I press the "Run Report" button in the "View Result" tab, I get this error:
"An error was encountered performing requested operation: ORA-00936: missing expression"
This is because actual date data is missing.
After I hit the "Apply" button, I have to manually type the date data.
I thought this was a bug of the previous version, but I just installed version 1.5.4 and I have no different result.
Thanks.I just wanted to add my name to the list of people having this issue.
Oracle Techies, please help. -
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.
-
Query builder within application
Hi ,
is that possible to call query builder
as a pop up window from the application ?
Thanks ...Hi,
Not sure, if it is too late for replying for this issue. But, I found the same issue today when I was trying to build the graph(multi-line chart) making use of Function Body returning SQL.
"'SVG Chart error: ORA-20001: line_chart error: ORA-20001: get_data error: ORA-20001: Function returning SQL query: Query cannot be parsed within the Application Builder.'"
Here is the work around for the problem
Step 1.
Define two hidden items. (depending on the number of series you are having, in this case, it is two). name it like P25_GRAPH_SQL1 and P25_GRAPH_SQL2.
Step 2.
Write Onload Computation for these two variables and set the values for these variables using the same Function Body returning SQL which you make use in graph(multi-line chart ).
Step 3.
Use the variables P25_GRAPH_SQL1 and P25_GRAPH_SQL2 in the graphs(multi-line chart).
Step 4.
Define the content in the series as(nothing else)
&P25_GRAPH_SQL1.
and for the series 2 as
&P25_GRAPH_SQL2.
Please do not include any other code with this and just make use the above code. Please note that you need to mention the "&" ampersand at the beginning and dot at the end of the variable.
Step 5.
Try running the graph(multi-line chart ) now.
Hurray!! it should show you the graph without any issues provided you have the proper SQL mentioned.
Step 6.
Then, give me a treat if it works!!
Cheers!!
Prabhakar -
Immediately after supplying userid/password/database parameters when launching the Oracle Query Builder, the following error message is displayed:
OBE-15952: User privilege table not loaded
OBE-15950: No Query Builder tables--Database open/save is disabled
ORA-00942: table or view does not exist
What needs to be done to eliminate the messages?hello,
query builder is no longer a supported product. however, you might want to try adding verbose=no to the commandline.
thanks,
ph. -
Query builder, procedural builder - Oracle 8.17
I'm running Oracle 8.17 and I can't find query builder, procedural builder, report builder form builder and other builders. Where can I get these? I tried the universal installer and there are no options to install them.
Hi Fraser,
Thank you for responding.
I think I fixed that problem,actually there was a spelling
mistake in one of the parameter files.
But now I get another error message, says:
"ORA: 02068: following severe error from MSOLEDB
ORA: 28511: lost RPC connection to heterogenous
remote agent using
SID = (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)
(HOST=LOCAL_HOST)(PORT=1521)))(CONNECT_DATA=
(SERVICE_NAME=<SERVICE_NAME>)))
Do I have to configure the SQL Server network utilities?
I pinged both the servers ,they talk to each other.
But when I use tnsping ,the client machine (i.e.,the SQL Server
machine)talks to server(Oracle machine) but the server doesn't
talk to the client.
I am definitely not doing something right.
Asha. -
Connection information to use Query Builder
I am following the Oracle Reports tutorial - how to add data to a report
http://download-east.oracle.com/docs/cd/B14099_17/bi.1012/b14364/rwtutorial_data.htm#i1012227
I am at Step 6: Using the Query Builder.
I already have the HR sample schema in my (9i) database, and have unlocked it.
But at the prompt for user name and password and db name, I get this message:
REP 0501 Unable to connect to the specified database
ORA 12154 TNS: could not resolve the connect identifier specified.
For each field I have this information:
User name : hr
Password ; hr
Database : unidad
This is the same information I use to connect to my database. What am I doing wrong?
Many thanks.
DAHello again.
The entry in the oracle92\network\admin file is
# TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
UNIDAD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 2WIRE777)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = unidad.netcones.com)
While the entry in the \DevSuiteHome_1\NETWORK is
# tnsnames.ora Network Configuration File: C:\DevSuiteHome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 2WIRE777)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PLSExtProc)
Do you suggest I change SERVICE NAME, from PLSExtProc to unidad.netcones.com ??
Thank you again.
DA
Maybe you are looking for
-
Hi gurus, I am trying to send IORDER01(pm order) from an R/3 system to a file, which works fine. but when i try to use some business logic like if order type = 'PM01' then only i have to write to the file, using ccBPM, it fails... this is my first BP
-
this is very strange. my aluminum keyboard wired keys are not working. well just 2 keys the 'e' key and 'd' anyone have any advice, thanks
-
Do the Mac minis support using AirPlay and all of its functions? I thought I saw a comment yesterday that suggested the Mac mini (particularly the late 2012 models) does not support AirPlay. Thank you.
-
Stream 7 volume button not working
today i noticed my tablet was installing updates and after it testarted, the volume button doesnt do anyhtimg. any ideas how to fix it?
-
My N80 is mess up. I updated it firmware back in December just before Xmas i nearly lost all my contacts but i lucky backed it up b4 i did the update. Now the update keeps confusing my phone with folders in the file system. I have a contact that i ad