EJBQL with boolean field on Oracle
Hi
I am using the following query to find the default group of a customer where defaultGroup
is a boolean field.
SELECT DISTINCT OBJECT(g) FROM ServiceGroup g WHERE g.defaultGroup AND g.customer
= ?1
When I call this query I get the following error
javax.ejb.EJBException: nested exception is: javax.ejb.TransactionRolledbackLocalException:
EJB Exception: ; nested exception is: javax.ejb.EJBException: Problem in findCustomerDefault
while preparing or executing statement: 'weblogic.jdbc.rmi.SerialPreparedStatement@e0bfd':
java.sql.SQLException: ORA-00920: invalid relational operator
I believe this has something to do with the fact that booleans are represented
as numbers in Oracle as it works fine with another DB that supports boolean types.
And when I run the following query in sql+ "select * from servicegroup where
customer=1 and default_group" I get the same error. The getters and setters work
fine it is just when it is used in a query. Anybody know of a way to fix this
without having to change the CMP field to an int and put a boolean wrapper around
it?
Jeremy
ps Running WLS7 and Oracle 9 on solaris
Unfortunately, not using cursors is not an option for me. The DBA I talked to indicated to me that the only way to get a result set from a stored procedure in Oracle is to use a cursor. It doesn't really matter if that is correct or not, as all our stored procedures for Oracle are written assuming that is true. Here is the code for the stored procedure that uses a cursor:
create or replace procedure DI0002
(P_USER IN types.char32,
P_CURSOR IN OUT types.GenCursor)
IS
BEGIN
OPEN P_CURSOR FOR
SELECT * FROM DITEST
WHERE MBR_NAME = P_USER;
END;types.GenCursor is a ref cursor, types.char32 is a 32 byte character value.
Also, your suggestion doesn't address the problem I'm having with getUpdateCount always returning a -1.
Similar Messages
-
Issue related with CLOB field in Oracle and PI
Dear Experts,
We are trying to transfer material Long description from SAP to Oracle table.
There is a field in Oracle table 'LNG_DESC' which is defined as CLOB.
In PI mapping we have defined that fields as String type with Maxlength as 14000.
There are few materials for which this limit is excedding and we are getting ORA:014
String too Long' error in communication channel.
Kindly suggest that how can we define a field in PI as CLOB or how to handle this
situation.
Thanks
SumitHi Hank,
The reason could be either improper set up and loading sequence followed, or transactions not locked while performing set up filling and initialization.
There could be two approaches to rectify this.
1. Redo the inventory data, as per how to document.
2. Identify the transactions that are not captured, by running the reports and analysing the date on which transactions are not captured(this could be quite painful) and then fill set up of movements just for these documents and load to cube without discurbing the deltas.
Do write back to me, if you have any questions.
Naveen -
Migration Access to Oracle with GUID fields
How to migrate Access 2000 with GUID fields to Oracle 10g? If I use Migration Workbench, I got following error message,
"Error #-2147220502: Unofficial JET datatype encountered: column xxx_id, table xxx"
Does Workbench suppose to handle with GUID? Does anyone have any experience?
Thanks.Hi Meena,
Please refrain from duplicating forum postings on the forum. I have responded to your initial question on this topic at the following thread - ShowSplashScreen("_OracleSplashScreen",3) error Please use the original thread when responding on this issue.
Regards,
Hilary -
Problem with date format from Oracle DB
Hi,
I am facing a problem with date fields from Oracle DB sources. The date format of the field in DB table is 'Date base type is DATE and DDIC type is DATS'.
I mapped the date fields to Date characters in BI. Now the data that comes to PSA is in weird format. It shows like -0.PR.09-A
I have changing the field settings in DataSource to internal and external and also i have tried mapping these date fields to text fields with out luck. All delivers the same format.
I have also tried using conversion routines like, CONVERSION_EXIT_IDATE_INPUT to change format. It also delivers me the same old result.
If anybody of you have any suggestions or if anybody have you experienced such probelms, Please share your experience with me.
Thanks in advance.
Regards
VaradaThanks for all your reply. I can only the solutions creating view in database. I want some solution to be done in BI. I appreciate if some of you have idea in it.
The issue again in detail
I am facing an issue with date fields from oracle data. The data that is sent from Oracle is in the format is -0.AR.04-M. I am able to convert this date in BI with conversion routine in BI into format 04-MAR-0.
The problem is, I am getting data of length 10 (Output format) in the format -0.AR.04-M where the month is not in numericals. Since it is in text it is taking one character spacing more.
I have tried in different ways to convert and increased the length in BI, the result is same. I am wondering if we can change the date format in database.
I am in puzzle with the this date format. I have checked other Oracle DB connections data for date fields in BI, they get data in the format 20.081.031 which will allow to convert this in BI. Only from the system i am trying creating a problem.
Regards
Varada -
Boolean field mapping with mysql
Hi,
I'm using kodo 2.5.8 with mysql and ran into a problem with a boolean
field.Despite setting it to 'true' it goes into database as 0 and so I'm
never able to read it back as 'true'.In afct after manually changing the
value in database to 1, I still get it as false.
Following is the code that I use:
I have a boolean field named 'isAdmin' along with other fields in User
class.
public class User{
private String name; //primary key
private String password;
private String emailAddress;
private boolean isAdmin;
private String firstName;
private String lastName;
private String suffix;
//pm is persistence manager
pm.currentTransaction().begin();
pm.makePersistent(user);
pm.currentTransaction().commit();Surender-
Strange. If you enable verbose SQL logging, what do you see the field
being set as when you commit changes?
In article <c2ssq3$pt5$[email protected]>, Surender Kumar wrote:
Hi,
I'm using kodo 2.5.8 with mysql and ran into a problem with a boolean
field.Despite setting it to 'true' it goes into database as 0 and so I'm
never able to read it back as 'true'.In afct after manually changing the
value in database to 1, I still get it as false.
Following is the code that I use:
I have a boolean field named 'isAdmin' along with other fields in User
class.
public class User{
private String name; //primary key
private String password;
private String emailAddress;
private boolean isAdmin;
private String firstName;
private String lastName;
private String suffix;
//pm is persistence manager
pm.currentTransaction().begin();
pm.makePersistent(user);
pm.currentTransaction().commit();
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com -
Validation expression, with a Boolean field
Hello,
My issue is as follow: I want to make sure that if attribute 'A' = "1"; then attribute 'B' has values.
Note: attribute 'A' is boolean.
I did not succeed in setting up such a formula [I succeeded in setting up the opposite formula only:
IF(Attribute 'A',IS_NULL(Attribute B))
Thx for any help,
Rémi DusaudHi Remi,
attribute 'A' is a field of type Boolean in main table, right which has two values 1 and some other value, right?
if this is right then i hope you have also set True Value as 1 and False Value as something in MDM Console. Because Boolean field has only two values which you can set through Console by default True value = TRUE and False Value = FALSE, here you need to change it to 1 and other value as per your requirement.
For the same this expression works as given by me in above post.
If this is really Attributes, name as Attribute 'A' and Attribute 'B' in taxonomy mode of data manager.
and by Boolean you mean here that Attribute of type Text but has two values 1 and some other value.
if this is true then you want a record in maintable is associated with a category which is linked with these two Attributes, and if Attribute 'A' has Attribute Value as 1 then Attribute B should not be null, in this case firstly you have to create a validation and then right click on this validation and then Add Branch select here Branch Value(category which is linked with these two attributes). a new validation gets created with this branch Value.
now write expression in this Branch validation expression as same:
IF(attribute 'A' = "1", IS_NOT_NULL(attribute 'B'))
But here you need to select Attribute 'A' and Attribute 'B' from Attributes Tab in validation expression.
and select "1" from Text Values Tab in validation expression.
let me know if you still face, in both ways this expression is working fine at my end.
Regards,
Mandeep Saini -
Importing an SQL Server TEXT data type field in Oracle - problem with LONG
Hello,
I work in Oracle 9i and I created a view on a distant SQL Server database that contains a TEXT data type field. But I have a problem when I select that field in Oracle; I have the following error message: "ORA-00997: forbidden use of LONG data type".
Could anybody have a solution for me, to solve that problem?
Thanks a lot!It is very difficult to suggest anything without seeing your code. I don't even know if what you are seeing is the actual value or an error code. Often, negative numbers are indicative of error codes.
For instance -1 could mean that you have an invalid reference or path, etc...
Can you post your code? -
Problem with boolean type in Informix via ODBC
Hello,
I'm connecting to an Informix database from an Oracle database via the ODBC Gateway. The connection works fine.
However, when I select a boolean type column from a table in the Informix database, nothing is returned and I get the following error:
SQL> select "stat" from bt@informix;
ERROR:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Informix][Informix ODBC Driver]Restricted data type attribute violation.
{07006,NativeErr = -11013}
ORA-02063: preceding 2 lines from INFORMIX
no rows selected
Selecting a boolean type column with isql works fine. Other column types work from Oracle.
Can anyone help me resolve this issue? Please find configuration details and traces below.
Software stack:
Informix Database: Enterprise Edition 12.10 for Linux x86_64
Informix ODBC driver: Informix Client SDK Developer Edition 4.10 for Linux 64-bit
Oracle Database: Enterprise Edition 11.2.0.1.0 64-bit (Oracle Linux 6.6 64-bit)
UnixODBC: 2.3.2 x86_64
odbcinst.ini:
[Informix]
Driver=/opt/IBM/informix/lib/cli/libifcli.so
Setup=/opt/IBM/informix/lib/cli/libifcli.so
APILevel=1
ConnectFunctions=YYY
DriverODBCVer=03.51
FileUsage=0
SQLLevel=1
smProcessPerConnect=Y
[ODBC]
TraceFile=/tmp/odbc.log
Trace = Yes
odbc.ini:
[ol_informix1210]
Driver=Informix
Description=Test connection
Database=sysutils
LogonID=informix
pwd=informix
Servername=ol_informix1210
CursorBehavior=0
DB_LOCALE=en_us.8859-1
TRANSLATIONDLL=/opt/IBM/informix/lib/esql/igo4a304.so
[ODBC]
UNICODE=UCS-2
; Trace file Section
Trace=1
TraceFile=/tmp/odbctrace.out
InstallDir=/opt/IBM/informix
TRACEDLL=idmrs09a.so
Oracle Gateway init.ora:
HS_FDS_CONNECT_INFO=ol_informix1210
HS_FDS_SHAREABLE_NAME=/usr/local/lib/libodbc.so
HS_FDS_TRACE_LEVEL=debug
HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
Oracle Gateway trace:
Entered hgoftch, cursor id 1 at 2015/04/14-12:22:03
hgoftch, line 130: Printing hoada @ 0x2007fe0
MAX:1, ACTUAL:1, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
-7 BIT Y 1 1 0/ 0 0 0 20 stat
Performing delayed open.
SQLBindCol: column 1, cdatatype: -28, bflsz: 1
Entered hgopoer at 2015/04/14-12:22:03
hgopoer, line 233: got native error -11013 and sqlstate 07006; message follows...
[Informix][Informix ODBC Driver]Restricted data type attribute violation. {07006,NativeErr = -11013}
Exiting hgopoer, rc=0 at 2015/04/14-12:22:03
hgoftch, line 730: calling SQLFetch got sqlstate 07006
0 rows fetched
Exiting hgoftch, rc=28500 at 2015/04/14-12:22:03 with error ptr FILE:hgoftch.c LINE:730 FUNCTION:hgoftch() ID:Fetch resultset data
ODBC trace:
[ODBC][11041][1429005970.973443][SQLPrepare.c][196]
Entry:
Statement = 0x276ecb0
SQL = [SELECT A1. stat FROM BT A1][length = 29]
[ODBC][11041][1429005970.973914][SQLPrepare.c][371]
Exit:[SQL_SUCCESS]
[ODBC][11041][1429005970.973940][SQLNumResultCols.c][156]
Entry:
Statement = 0x276ecb0
Column Count = 0x26f5868
[ODBC][11041][1429005970.973970][SQLNumResultCols.c][248]
Exit:[SQL_SUCCESS]
Count = 0x26f5868 -> 1
[ODBC][11041][1429005970.974097][SQLDescribeCol.c][247]
Entry:
Statement = 0x276ecb0
Column Number = 1
Column Name = 0x7fffc3ff2d90
Buffer Length = 31
Name Length = 0x7fffc3ff2ed4
Data Type = 0x7fffc3ff2ed8
Column Size = 0x7fffc3ff2e70
Decimal Digits = 0x7fffc3ff2edc
Nullable = 0x7fffc3ff2ee0
[ODBC][11041][1429005970.974140][SQLDescribeCol.c][501]
Exit:[SQL_SUCCESS]
Column Name = [stat]
Data Type = 0x7fffc3ff2ed8 -> -7
Column Size = 0x7fffc3ff2e70 -> 1
Decimal Digits = 0x7fffc3ff2edc -> 0
Nullable = 0x7fffc3ff2ee0 -> 1
[ODBC][11041][1429005970.974192][SQLSetStmtAttr.c][265]
Entry:
Statement = 0x276ecb0
Attribute = SQL_ATTR_ROW_ARRAY_SIZE
Value = 0x64
StrLen = 0
[ODBC][11041][1429005970.974218][SQLSetStmtAttr.c][925]
Exit:[SQL_SUCCESS]
[ODBC][11041][1429005970.974230][SQLSetStmtAttr.c][265]
Entry:
Statement = 0x276ecb0
Attribute = SQL_ATTR_ROW_BIND_TYPE
Value = (nil)
StrLen = -5
[ODBC][11041][1429005970.974249][SQLSetStmtAttr.c][925]
Exit:[SQL_SUCCESS]
[ODBC][11041][1429005970.974837][SQLExecute.c][187]
Entry:
Statement = 0x276ecb0
[ODBC][11041][1429005970.975231][SQLExecute.c][348]
Exit:[SQL_SUCCESS]
[ODBC][11041][1429005970.975255][SQLSetStmtAttr.c][265]
Entry:
Statement = 0x276ecb0
Attribute = SQL_ATTR_ROW_STATUS_PTR
Value = 0x27f5b78
StrLen = -4
[ODBC][11041][1429005970.975280][SQLSetStmtAttr.c][925]
Exit:[SQL_SUCCESS]
[ODBC][11041][1429005970.975291][SQLSetStmtAttr.c][265]
Entry:
Statement = 0x276ecb0
Attribute = SQL_ATTR_ROWS_FETCHED_PTR
Value = 0x26f5850
StrLen = -4
[ODBC][11041][1429005970.975311][SQLSetStmtAttr.c][925]
Exit:[SQL_SUCCESS]
[ODBC][11041][1429005970.975326][SQLBindCol.c][236]
Entry:
Statement = 0x276ecb0
Column Number = 1
Target Type = -28 SQL_C_UTINYINT
Target Value = 0x27f5af8
Buffer Length = 1
StrLen Or Ind = 0x27f5eb8
[ODBC][11041][1429005970.975349][SQLBindCol.c][341]
Exit:[SQL_SUCCESS]
[ODBC][11041][1429005970.975367][SQLFetch.c][162]
Entry:
Statement = 0x276ecb0
[ODBC][11041][1429005970.975455][SQLFetch.c][348]
Exit:[SQL_ERROR]
DIAG [07006] [Informix][Informix ODBC Driver]Restricted data type attribute violation.
[ODBC][11041][1429005970.975574][SQLGetDiagRec.c][758]
Entry:
Statement = 0x276ecb0
Rec Number = 1
SQLState = 0x7fffc3ff2e20
Native = 0x7fffc3ff2c14
Message Text = 0x7fffc3ff2c20
Buffer Length = 510
Text Len Ptr = 0x7fffc3ff2e70
[ODBC][11041][1429005970.975615][SQLGetDiagRec.c][795]
Exit:[SQL_SUCCESS]
SQLState = 07006
Native = 0x7fffc3ff2c14 -> -11013
Message Text = [[Informix][Informix ODBC Driver]Restricted data type attribute violation.]
[ODBC][11041][1429005970.975642][SQLGetDiagRec.c][758]
Entry:
Statement = 0x276ecb0
Rec Number = 2
SQLState = 0x7fffc3ff2e20
Native = 0x7fffc3ff2c14
Message Text = 0x7fffc3ff2c20
Message Text = 0x7fffc3ff2c20
Buffer Length = 510
Text Len Ptr = 0x7fffc3ff2e70
[ODBC][11041][1429005970.975667][SQLGetDiagRec.c][795]
Exit:[SQL_NO_DATA]Here are my findings after consulting the unixODBC mailing list and the IBM documentation.
There are several levels of data types at play here: native Informix SQL types, Informix ODBC driver SQL types and Informix ODBC driver C types (as well as standard C types).
According to the Informix documentation (http://www-01.ibm.com/support/knowledgecenter/SSGU8G_11.70.0/com.ibm.odbc.doc/ids_odbc_108.htm), the ODBC driver SQL type for the native boolean type is SQL_BIT.
The traces show that the ODBC SQL type is SQL_BIT (type code -7) and that this should be converted into the SQL_C_UTINYINT ODBC C type (type code -28).
Oracle ODBC Gateway trace:
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
-7 BIT Y 1 1 0/ 0 0 0 20 stat
Performing delayed open.
SQLBindCol: column 1, cdatatype: -28, bflsz: 1
unixODBC trace:
ODBC][11041][1429005970.975326][SQLBindCol.c][236]
Entry:
Statement = 0x276ecb0
Column Number = 1
Target Type = -28 SQL_C_UTINYINT
Target Value = 0x27f5af8
Buffer Length = 1
StrLen Or Ind = 0x27f5eb8
[ODBC][11041][1429005970.975349][SQLBindCol.c][341]
Oracle tries to bind the SQL_BIT type column to a buffer of SQL_C_UTINYINT type, which requires a conversion from SQL_BIT to SQL_C_UTINYINT that is apparently not supported by the Informix ODBC Driver.
According to the documentation (http://www-01.ibm.com/support/knowledgecenter/SSGU8G_11.70.0/com.ibm.odbc.doc/ids_odbc_108.htm) the Informix ODBC driver can only convert the SQL_BIT ODBC SQL type into SQL_C_BINARY, SQL_C_BIT and SQL_C_CHAR ODBC C types. (The ODBC C types are in turn converted into standard C types, for example the SQL_C_BIT type is converted into UCHAR which is a typedef for the standard C type unsigned char.)
A possible workaround could be to tell Informix to present boolean as a different ODBC SQL type, for example SQL_CHAR (as it would be possible with PostgreSQL by setting BoolAsCharater=1 in odbc.ini), but Informix only seems to supports the SQL_BIT ODBC SQL type.
A cumbersome workaround is to use the Gateway's pass-through feature that allows a query to be passed to Informix as is, which in turn allows us to cast the boolean field into a character field:
SQL> set serveroutput on
SQL> r
1 DECLARE
2 val VARCHAR2(1);
3 c INTEGER;
4 nr INTEGER;
5 BEGIN
6 c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@informix;
7 DBMS_HS_PASSTHROUGH.PARSE@informix(c,'select cast (stat as character) from bt');
8 LOOP
9 nr := DBMS_HS_PASSTHROUGH.FETCH_ROW@informix(c);
10 EXIT WHEN nr = 0;
11 DBMS_HS_PASSTHROUGH.GET_VALUE@informix(c, 1, val);
12 DBMS_OUTPUT.PUT_LINE(val);
13 END LOOP;
14 DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@informix(c);
15 END;
16*
t
f
PL/SQL procedure successfully completed
Easier solutions are still welcome. -
Entities with booleans in JPA Diagram
Hi,
I'm trying to use the EJB/JPA Diagram in jdev 11.1.1.2.0 with entities that have boolean field and, everytime I add them to the diagram, jdev crashes. If I remove the booleans, everything works.
Does anyone has seen that? It is easy to replicate:
1) Create a new entity in java editor with booleans members;
2) Create a new EJB/JPA diagram
3) Add the entity to the diagram
The error details are:
Performing action Grid[ from oracle.modeler.addin.ModelerEditor ]
Invoking command: Layout
Performing action Hierarchical (Bottom to Top)[ from oracle.modeler.addin.ModelerEditor ]
Invoking command: Layout
Performing action Symmetrical[ from oracle.modeler.addin.ModelerEditor ]
Invoking command: Layout
Performing action Hierarchical (Bottom to Top)[ from oracle.modeler.addin.ModelerEditor ]
Invoking command: Layout
Performing action Properties...[ from oracle.modeler.addin.ModelerEditor ]
Performing action Properties...[ from oracle.modeler.addin.ModelerEditor ]
Performing action Save[ from oracle.modeler.addin.ModelerEditor ]
Invoking command: [ from oracle.modeler.addin.ModelerEditor ]
java.lang.NullPointerException
o.j.ejb.Entity30Helper.gatherEntity30Fields(Entity30Helper.java:205)
o.j.ejb.EjbClassEngine.getEjbFields(EjbClassEngine.java:301)
o.j.ejb.EjbClassEngine.getEjbFields(EjbClassEngine.java:277)
o.j.ejb.BaseEjbEngine.gatherEjbFields(BaseEjbEngine.java:1536)
o.j.ejb.BaseEntityEngine.getFields(BaseEntityEngine.java:400)
o.j.ejbmodeler.mediator.EjbModelerNodeMediator.loadFields(EjbModelerNodeMediator.java:145)
o.j.ejbmodeler.mediator.EjbModelerNodeMediator.updateGraphic(EjbModelerNodeMediator.java:101)
o.modeler.uml.config.BaseMediator.handleUpdate(BaseMediator.java:367)
o.modeler.uml.config.BaseMediator.updateGraphic(BaseMediator.java:234)
o.modeler.uml.config.MGMediator.updateGraphic(MGMediator.java:139)
o.modeler.uml.config.ClassifierMediator.updateGraphic(ClassifierMediator.java:27)
o.modeler.mediation.MediationManager$GraphicUpdater.apply(MediationManager.java:640)
ilog.views.IlvManager.applyToObject()
o.modeler.mediation.MediationManager$GraphicUpdater.run(MediationManager.java:628)
o.modeler.mediation.MediationManager.updateGraphics(MediationManager.java:594)
o.modeler.mediation.MediationManager.processEvent(MediationManager.java:510)
o.modeler.mediation.MediationEvent.process(MediationEvent.java:185)
o.modeler.mediation.MediationManager.dispatchEvents(MediationManager.java:439)
o.modeler.mediation.MediationManager.access$100(MediationManager.java:86)
o.modeler.mediation.MediationManager$1.run(MediationManager.java:356)
j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
j.a.EventQueue.dispatchEvent(EventQueue.java:597)
j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
j.a.EventDispatchThread.run(EventDispatchThread.java:122)
java.lang.NullPointerException
o.j.ejb.Entity30Helper.gatherEntity30Fields(Entity30Helper.java:205)
o.j.ejb.EjbClassEngine.getEjbFields(EjbClassEngine.java:301)
o.j.ejb.EjbClassEngine.getEjbFields(EjbClassEngine.java:277)
o.j.ejb.BaseEjbEngine.gatherEjbFields(BaseEjbEngine.java:1536)
o.j.ejb.BaseEntityEngine.getFields(BaseEntityEngine.java:400)
o.j.ejb.BaseEntityEngine.getEjb3Relationships(BaseEntityEngine.java:1413)
o.j.ejbmodeler.id.EjbElementReference.populateThatEndIfOwningSide(EjbElementReference.java:248)
o.j.ejbmodeler.id.EjbElementReference.get(EjbElementReference.java:145)
o.j.ejbmodeler.config.RelationshipConfig$1.findEnds(RelationshipConfig.java:134)
o.modeler.dif.ModelerGraphicBridge.verifyConnections(ModelerGraphicBridge.java:1053)
o.modeler.dif.ModelerGraphicBridge.verifyConnections(ModelerGraphicBridge.java:1009)
o.j.ejbmodeler.mediator.EntityMediator.loadEntityRelationships(EntityMediator.java:138)
o.j.ejbmodeler.mediator.EntityMediator.mediate(EntityMediator.java:86)
o.j.ejbmodeler.mediator.EjbModelerNodeMediator.updateGraphic(EjbModelerNodeMediator.java:104)
o.modeler.uml.config.BaseMediator.handleUpdate(BaseMediator.java:367)
o.modeler.uml.config.BaseMediator.updateGraphic(BaseMediator.java:234)
o.modeler.uml.config.MGMediator.updateGraphic(MGMediator.java:139)
o.modeler.uml.config.ClassifierMediator.updateGraphic(ClassifierMediator.java:27)
o.modeler.mediation.MediationManager$GraphicUpdater.apply(MediationManager.java:640)
ilog.views.IlvManager.applyToObject()
o.modeler.mediation.MediationManager$GraphicUpdater.run(MediationManager.java:628)
o.modeler.mediation.MediationManager.updateGraphics(MediationManager.java:594)
o.modeler.mediation.MediationManager.processEvent(MediationManager.java:510)
o.modeler.mediation.MediationEvent.process(MediationEvent.java:185)
o.modeler.mediation.MediationManager.dispatchEvents(MediationManager.java:439)
o.modeler.mediation.MediationManager.access$100(MediationManager.java:86)
o.modeler.mediation.MediationManager$1.run(MediationManager.java:356)
j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
j.a.EventQueue.dispatchEvent(EventQueue.java:597)
j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
j.a.EventDispatchThread.run(EventDispatchThread.java:122)
(sorry for my english)uhmm... I guess not, the specification says:
"The persistent fields or properties of an entity may be of the following types: Java primitive types; java.lang.String; other Java serializable types (including wrappers of the primitive types, java.math.BigInteger, (...) "
so it should accept the Booleans or booleans members. I've tried both and got the same problem. It looks more like a bug in the layout designer. -
How do you get a line with MULTIPLE fields to WRAP ?
How do you get a line with MULTIPLE fields to WRAP ?
Good afternoon everyone...
THE PROBLEM: Why doesn’t a line with multiple fields WRAP?
HYPOTHETICAL EXAMPLE/WHAT I”D LIKE TO SEE
If I have 2 fields on a line (this is now a hypothetical example and nothing to do with my actual report)….let’s call them field A and field B. And if field A has values of all ‘X’ and field B has values of all ‘Y’…then….the normal case would be (ignore dots – only for spacing):
A……………………… B
XXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYY
But what if A is too long? I would want to see B wrap onto the next line like this:
A……………………………………………………B
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX YYYYYY
YYYYYYYYYYYYY
And similarly….if B is extra long, can the line print as:
A………………………. B
XXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYY
YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
I don’t want the case where B is long and I get:
A………………… …B…
XXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYY
………………………..YYYYYYYYYYYYYYYYYYYYY
I can see how you can wrap an individual field like that…but how can you WRAP a line of[b] fields within the frame so it wraps to the BEGINNING of the frame on next line?
My SPECIFIC CASE
I have a report that I have stripped down to a simple structure for the purposes of this explanation.
My DATA MODEL has the main QUERY (for plant family and species data). The columns of the query are divided into 2 groups. The 1st GROUP contains the family data. Below that is the rest of the species data in a 2nd GROUP.
Linking from the 2nd species group (above) is a new QUERY to extract REGION data based on the common key field. Under this 2nd query is another group with all the REGION columns.
The LAYOUT MODEL has a group frame (the main , base one)
On top of this is a repeating frame based on the 1st group (family data).
On top of this is another repeating frame for the 2nd group (species data).
On top of this is 2 Frames on the same line line. The 1st frame contains columns from the species group .
The 2nd frame on this line is a repeating frame. The PRINT DIRECTION for this frame is ACROSS/DOWN. It repeats details of the REGION where the species is found. These columns come from this group come from the REGION QUERY and GROUP.
All fields on the report line have variable horizontal elasticity.
The problem is that when there is too much data on the line, it does NOT WRAP to the 2nd line.. It TRUNCATES.
Can the line be made to WRAP????..
In my current report, 1 of 2 things is happening:
1) All fields print on the line until it hits the page boundary and then it just stops. Truncated!
2) All fields print on the current line, then Oracle Reports throws a new page to print the REMAINDER of the long, input line
But I would like a LONG line to continue printing onto the following line of the same page.
I have tried all combinations of the elasticity fields and the ‘ADVANCED LAYOUT’ properties.
I have been focussing my attention with this problem on the frames .
We are using REPORT BUILDER V 6.0.8.26.0
Thankyou to anyone who may offer assistance.
Tony Calabrese.Steve,
you gain 1 thing, but you lose something else!
This thing is SO frustrating!
Hey Steve! Good afternoon.
I've done as you suggested....I have a long text boilerplate item - the only 1 on the line...and it has all the column in it.
So it looks like:
&col1 &col2 &col3 &col4 &col5 etc etc etc
And the line expands nicely to each field's requirements.
And when it gets to the right page boundary...it WRAPS to the next line! Beautiful!!!
The only thing is that...when I had individual fields across the line I was able to create format triggers for those fields. And in doing so I was able to reduce the font and change the justification. I had to do that because some of the fields had to appear superscripted.
So I wanted something like (ignore the dots):
...................................ppppp
AAAA BBBB CCCCC DDDD EEEE FFFFFF
So the field of 'ppppp' appeared slightly higher on the line than the other fields...
I can't see how I can do this with a single TEXT field containing all the &COL values.
Have you ever come across anything like this?
Thankyou again,
Tony Calabrese 12/4/2007 -
How to encrypt the text in password field in Oracle Forms version 6i
Need help!
How to encrypt the text in password field in Oracle Forms version 6i?
one way is to change the settings in the property palette. Can somebody provide me some script to be run while the form is running which will enable the password to be encrypted?
Thanks!Hello,
Do you mean "hidden" (replaced with stars) or encrypted (that needs to be decrypted ?
Francois -
How to view field name for a field in Oracle form?
I was told you can do this but I forgot how.
If you want to build a report, but don't know what the field name is in Oracle, you can open up the Oracle form and find the screen with that field name and do a trick that tells you the Oracle field name. Any help?Try this....
REPORT ZZDYNAMIC_FIELD.
DATA: BEGIN OF it1 OCCURS 0,
printer(10) TYPE c,
paper1(20) TYPE c,
paper2(20) TYPE c,
paper3(20) TYPE c,
END OF it1.
DATA: descr_ref TYPE REF TO cl_abap_tabledescr,
i TYPE i.
FIELD-SYMBOLS:
<key_comp_wa> TYPE abap_keydescr,
<field> TYPE ANY.
it1-printer = 'MUC123'.
it1-paper1 = 'KBLOGO'.
it1-paper2 = 'BLANK'.
it1-paper3 = 'DINA5'.
APPEND it1.
it1-printer = 'MUC123'.
it1-paper3 = 'KBLOGO'.
it1-paper2 = 'BLANK'.
it1-paper1 = 'DINA5'.
APPEND it1.
TRY.
descr_ref ?= cl_abap_typedescr=>describe_by_data( it1[] ).
CATCH cx_root.
ENDTRY.
LOOP AT it1.
i = 0.
WHILE 1 = 1.
i = i + 1.
ASSIGN COMPONENT i OF STRUCTURE it1 TO <field>.
if <field> is not assigned.
EXIT.
endif..
IF <field> IS ASSIGNED AND <field> EQ 'KBLOGO'.
READ TABLE descr_ref->key INDEX i ASSIGNING <key_comp_wa>.
WRITE <key_comp_wa>-name.
exit.
ENDIF.
ENDWHILE. -
Getting table script using dbms_metadata.get_ddl, but with clob field
So, Oracle 11g R2..
I'm using dbms_metadata.get_ddl to get table scripts and it's working fine..
now, I have a table with clob field, and it's not working... I got an 'missing right parenthesis (ora-0907)' error...
I could paste a script that I got, but I don't think it makes any sense..
does anybody have some experience on using this package on clob tables?
tnxthis is script that I got... it's long, and it looks like it's not good
CREATE TABLE "COMMON"."TEST_AAA2"
( "ID" NUMBER(10,0),
"TEKST" VARCHAR2(200 CHAR),
"UPDATESTAMP" DATE,
"OBJEKAT" CLOB,
CONSTRAINT "TEST_PART_PK2" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "USERS"
ALTER INDEX "COMMON"."TEST_PART_PK2" UNUSABLE ENABLE
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_DATA"
LOB ("OBJEKAT") STORE AS BASICFILE (
ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
NOCACHE LOGGING
STORAGE(
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT))
PARTITION BY RANGE ("UPDATESTAMP")
(PARTITION "P_201012" VALUES LESS THAN (TO_DATE(' 2011-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_DATA"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_201101" VALUES LESS THAN (TO_DATE(' 2011-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_DATA"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_201102" VALUES LESS THAN (TO_DATE(' 2011-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_ARCHIVE"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "COMMON_ARCHIVE" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_201103" VALUES LESS THAN (TO_DATE(' 2011-04-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_DATA"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_201104" VALUES LESS THAN (TO_DATE(' 2011-05-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_ARCHIVE"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "COMMON_ARCHIVE" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_201105" VALUES LESS THAN (TO_DATE(' 2011-06-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_DATA"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_201106" VALUES LESS THAN (TO_DATE(' 2011-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_ARCHIVE"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "COMMON_ARCHIVE" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_201107" VALUES LESS THAN (TO_DATE(' 2011-08-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_DATA"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "COMMON_ARCHIVE" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_MAXVALUE" VALUES LESS THAN (MAXVALUE)
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_DATA"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "COMMON_ARCHIVE" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ) -
Excel import error with NCHAR field on v1.2.1
Hi, we've tried to import data from Excel to an Oracle table (10g) using SQL Developer 1.2.1. However it failed with the following error in Log Window:
ORA-00917: missing comma
Further checking revealed that one field in Oracle table was defined as NCHAR, while the generated DML value was without quote:-
insert into test_table (field1,field2) VALUES(123,1B);
When we replaced the '1B' value to numeric value 11, the import worked. As we're using an application package, we cannot simply modify the table/field's attribute from NCHAR to CHAR. Is there a way to configure SQL Developer that will have the quote placed like:-
insert into test_table (field1,field2) VALUES(123,'1B');
which works fine in SQL Developer Query mode.
Please advise, thanks :)Note and thanks for handling and fixing this issue.
Furthermore to the import function, we also noted that the default setting cannot fit to inserting data with Chinese (or Double Byte) characters, we will need to add a "N" as a prefix, e.g.:-
insert into table_a (field_a, field_b) values(123, N'一二三')
If "N" is missing, field_b will only contains garbage.
As we notice that the import will generate insert statements, please see if you can include this problem as part of the "missing quote" fix, thanks. -
How to increase the width of a field in oracle reports 6i
Hello,
I'm facing a problem related to width of field. I have a table with field abc varchar2(1500) and when I try to show it in report. I'm unable to see complete data because field size in report is 300.
Kindly guide me to increase the size/width of field in oracle report 6i
thanks in advance
sadiqPost your question on Reports forum
Reports
Maybe you are looking for
-
How to add an unique column to an existing table?
How to add an unique column to an existing table? I have a large table which has no unique constraint. and I want to add an unique column for it. How to do it? Does adding a sequence is a good choice? How to do it? Thank you
-
Hi, What do i need to connect my airport express to my tv? I have the audio working through my stereo, but want to put pictures and video onto my TV like in the adverts... Many thanks Al
-
Hi, Can anyone let me know what is the table for physical inventory which are carried out for warehouse. I want to know the table in which my before count and after count results gets posted. Sunil
-
Down loaded Adobe Flash Player on my Windows 7Home Premium,only works w/Google?
Adobe Flash player previously worked w/Windows 7 Home Premium Explorer internet. Then it was n't working. Down loaded it, but it only works w/google.My explorer keeps showing I need to download it. Appreciate help. And tools show it is enabled?
-
DNG converter for older versions of MAC OS?
Hi, I'm helping a friend who is happily using PS CS3 on a Mac with Lion or Lepard. I'm a PC person so I'm not sure what those two names mean. Anyway, he has a couple of newer cameras (a Sony and a Nikon) for which CS3 can't interpret the RAW files.