Re: not exists SQL using ! filter expression with a variable

This is still not producing the correct result set in Kodo JDO 3.0.0RC4. I
see the following SQL statement in the log.
DEBUG ExecuteThread: '10' for queue: 'default' kodo.jdbc.SQL - <t 7720801,
conn 5232795> [10 ms] executing prepstmnt 1654874 SELECT DISTINCT t0.pk,
t0.JDOCLASS, t0.JDOVERSION, t0.AEndPoint, t0.AEndPointType, t0.DS0, t0.DS1,
t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint, t0.ZEndPointType, t0.adminState,
t0.creationDate, t0.speckey, t0.spectype, t0.description,
t0.lastModifiedDate, t0.lastModifiedUserId, t0.lastupdate, t0.name, t0.note,
t0.previousVersion, t0.resourceBusinessName, t0.signalType, t0.supporting,
t0.direction, t0.validForEnd, t0.validForStart FROM dschannel t0 CROSS JOIN
channelsegment t1 WHERE (NOT (t0.pk = t1.channel AND t0.supporting = ? AND
(t1.validForEnd > ? OR t1.validForStart < ?))) [params=(String)
101/DS3/LOC01/LOC02, (Timestamp) 2001-07-24 20:29:14.0, (Timestamp)
2038-01-18 22:14:07.0]
INFO ExecuteThread: '10' for queue: 'default' com.metasolv.oss.inventory -
resultSet size=0
It looks to me like the CROSS JOIN is not the right join to be using. ---
unless I am doing something altogether incorrect in the JDO Query itself,
which is highly likely.
Ben
"Ben Eng" <[email protected]> wrote in message news:...
Using Kodo JDO 2.5.3, I am attempting to do queries of the following form:
select * from dschannel as c
where not exists (select pk from channelsegment as s
where c.pk = s.channel and
c.supporting = ? and
(s.validForEnd > ? or
s.validForStart < ?));
select * from dschannel as c
left join channelsegment as s
on c.pk = s.channel and
c.supporting = ? and
(s.validForEnd > ? or
s.validForStart < ?)
where s.channel is null;
The code looks like this:
extent = pm.getExtent( ChannelValue.class, true );
query = pm.newQuery( this.extent );
query.declareImports( "import
com.metasolv.resources.entity.connection.ChannelSegmentValueImpl; import
java.util.Date;" );
query.declareParameters( "String pConn, Date pStart, Date pEnd" );
query.declareVariables( "ChannelSegmentValueImpl assign" );
String filter = "! (key == assign.channel && supportingConnection == pConn
&& (assign.validForEnd > pStart || assign.validForStart < pEnd))";
query.setFilter( filter );
resultSet = (java.util.Collection) query.execute( connection,
interval.getStartDateTime(), interval.getEndDateTime() );
I am seeing the following Exception with mysql 4.0.15 and mysql connector
JDBC driver 3.0.8:
com.solarmetric.kodo.runtime.DataStoreException:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
t0.signalType, t0.supporting, t0.direction, t0.validForEnd,
t0.validForStart> FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK => t1.channel AND t0.supporting = '101/DS3/LOC01/LOC02' AND (t1.validForEnd >> {ts '2001-07-24 20:59:49.0' OR t1.validForStart < {ts '2038-01-18
22:14:07.0'}))]
[PRE=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
t0.signalType, t0.supporting, t0.direction, t0.validForEnd,
t0.validForStart> FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK => t1.channel AND t0.supporting = ? AND (t1.validForEnd > ? ORt1.validForStart> < ?))
Syntax error or access violation, message from server: "You have an error
in your SQL syntax. Check the manual that corresponds to your MySQLserver
version for the right syntax to use near 'WHERE NOT (t0.PK = t1.channelAND
t0.supporting = '101/DS3/LOC0" [code=1064;state=42000]
NestedThrowables:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
t0.signalType, t0.supporting, t0.direction, t0.validForEnd,
t0.validForStart> FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK => t1.channel AND t0.supporting = '101/DS3/LOC01/LOC02' AND (t1.validForEnd >> {ts '2001-07-24 20:59:49.0' OR t1.validForStart < {ts '2038-01-18
22:14:07.0'}))]
[PRE=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t> 0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,t0.signalType,> t0.supporting, t0.direction, t0.validForEnd, t0.validForStart FROMDSChannel> t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK = t1.channel AND> t0.supporting = ? AND (t1.validForEnd > ? OR t1.validForStart < ?))
Syntax error or access violation, message from server: "You have an error
in your SQL syntax. Check the manual that corresponds to your MySQLserver
version for the right syntax to use near 'WHERE NOT (t0.PK = t1.channelAND
t0.supporting = '101/DS3/LOC0"
at
com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwDataStore(SQLExcep
tions.java:64)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:1167)
at
com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:1
26)
at
com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.executeQuery(Que
ryImpl.java:1565)
at
com.solarmetric.kodo.query.QueryImpl$AggregateQueryExecutor.executeQuery(Que
ryImpl.java:1401)
at
com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:685)
>
atcom.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:545)
>
at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:531)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:513)
at
com.metasolv.resources.queries.ChannelAvailabilityQueryBean.execute(ChannelA
vailabilityQueryBean.java:55)
at
com.metasolv.oss.inventory.InventorySessionBean.queryInventory(InventorySess
ionBean.java:1343)
at
com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl.queryInventory
(InventorySessionBean_xf0gis_EOImpl.java:3998)
at
com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl_WLSkel.invoke(
Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:821)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
>
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:3
0)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
NestedThrowablesStackTrace:
java.sql.SQLException: Syntax error or access violation, message from
server: "You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use near
'WHERE NOT (t0.PK = t1.channel AND t0.supporting = '101/DS3/LOC0"
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1651)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:889)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:956)
at com.mysql.jdbc.Connection.execSQL(Connection.java:1874)
at
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1538)
at
com.solarmetric.datasource.PreparedStatementWrapper.executeQuery(PreparedSta
tementWrapper.java:93)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryI
nternal(SQLExecutionManagerImpl.java:707)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(
SQLExecutionManagerImpl.java:600)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecu
tionManagerImpl.java:355)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.selectPrimaryMappings(
ClassMapping.java:1743)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:1136)
at
com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:1
26)
at
com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.executeQuery(Que
ryImpl.java:1565)
at
com.solarmetric.kodo.query.QueryImpl$AggregateQueryExecutor.executeQuery(Que
ryImpl.java:1401)
at
com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:685)
>
atcom.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:545)
>
at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:531)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:513)
at
com.metasolv.resources.queries.ChannelAvailabilityQueryBean.execute(ChannelA
vailabilityQueryBean.java:55)
at
com.metasolv.oss.inventory.InventorySessionBean.queryInventory(InventorySess
ionBean.java:1343)
at
com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl.queryInventory
(InventorySessionBean_xf0gis_EOImpl.java:3998)
at
com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl_WLSkel.invoke(
Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:821)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
>
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:3
0)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
INFO ExecuteThread: '10' for queue: 'default' com.metasolv.oss.inventory -
ignoring exception
javax.oss.IllegalArgumentException:
com.solarmetric.kodo.runtime.DataStoreException:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
t0.signalType, t0.supporting, t0.direction, t0.validForEnd,
t0.validForStart> FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK => t1.channel AND t0.supporting = '101/DS3/LOC01/LOC02' AND (t1.validForEnd >> {ts '2001-07-24 20:59:49.0' OR t1.validForStart < {ts '2038-01-18
22:14:07.0'}))]
[PRE=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
t0.signalType, t0.supporting, t0.direction, t0.validForEnd,
t0.validForStart> FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK => t1.channel AND t0.supporting = ? AND (t1.validForEnd > ? ORt1.validForStart> < ?))
Syntax error or access violation, message from server: "You have an error
in your SQL syntax. Check the manual that corresponds to your MySQLserver
version for the right syntax to use near 'WHERE NOT (t0.PK = t1.channelAND
t0.supporting = '101/DS3/LOC0" [code=1064;state=42000]
NestedThrowables:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
t0.signalType, t0.supporting, t0.direction, t0.validForEnd,
t0.validForStart> FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK => t1.channel AND t0.supporting = '101/DS3/LOC01/LOC02' AND (t1.validForEnd >> {ts '2001-07-24 20:59:49.0' OR t1.validForStart < {ts '2038-01-18
22:14:07.0'}))]
[PRE=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
t0.signalType, t0.supporting, t0.direction, t0.validForEnd,
t0.validForStart> FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK => t1.channel AND t0.supporting = ? AND (t1.validForEnd > ? ORt1.validForStart> < ?))
Syntax error or access violation, message from server: "You have an error
in your SQL syntax. Check the manual that corresponds to your MySQLserver
version for the right syntax to use near 'WHERE NOT (t0.PK = t1.channelAND
t0.supporting = '101/DS3/LOC0"
at
com.metasolv.resources.queries.ChannelAvailabilityQueryBean.execute(ChannelA
vailabilityQueryBean.java:61)
at
com.metasolv.oss.inventory.InventorySessionBean.queryInventory(InventorySess
ionBean.java:1343)
at
com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl.queryInventory
(InventorySessionBean_xf0gis_EOImpl.java:3998)
at
com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl_WLSkel.invoke(
Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:821)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
>
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:3
0)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
Ben

Ben-
Is the SQL statement that is being executed returning incorrect results,
or is it causing an exception with the MySQL server?
If the former, can you describe the results you are seeing? If the
latter, can you post the stack trace?
In article <[email protected]>, Ben Eng wrote:
This is still not producing the correct result set in Kodo JDO 3.0.0RC4. I
see the following SQL statement in the log.
DEBUG ExecuteThread: '10' for queue: 'default' kodo.jdbc.SQL - <t 7720801,
conn 5232795> [10 ms] executing prepstmnt 1654874 SELECT DISTINCT t0.pk,
t0.JDOCLASS, t0.JDOVERSION, t0.AEndPoint, t0.AEndPointType, t0.DS0, t0.DS1,
t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint, t0.ZEndPointType, t0.adminState,
t0.creationDate, t0.speckey, t0.spectype, t0.description,
t0.lastModifiedDate, t0.lastModifiedUserId, t0.lastupdate, t0.name, t0.note,
t0.previousVersion, t0.resourceBusinessName, t0.signalType, t0.supporting,
t0.direction, t0.validForEnd, t0.validForStart FROM dschannel t0 CROSS JOIN
channelsegment t1 WHERE (NOT (t0.pk = t1.channel AND t0.supporting = ? AND
(t1.validForEnd > ? OR t1.validForStart < ?))) [params=(String)
101/DS3/LOC01/LOC02, (Timestamp) 2001-07-24 20:29:14.0, (Timestamp)
2038-01-18 22:14:07.0]
INFO ExecuteThread: '10' for queue: 'default' com.metasolv.oss.inventory -
resultSet size=0
It looks to me like the CROSS JOIN is not the right join to be using. ---
unless I am doing something altogether incorrect in the JDO Query itself,
which is highly likely.
Ben
"Ben Eng" <[email protected]> wrote in message news:...
Using Kodo JDO 2.5.3, I am attempting to do queries of the following form:
select * from dschannel as c
where not exists (select pk from channelsegment as s
where c.pk = s.channel and
c.supporting = ? and
(s.validForEnd > ? or
s.validForStart < ?));
select * from dschannel as c
left join channelsegment as s
on c.pk = s.channel and
c.supporting = ? and
(s.validForEnd > ? or
s.validForStart < ?)
where s.channel is null;
The code looks like this:
extent = pm.getExtent( ChannelValue.class, true );
query = pm.newQuery( this.extent );
query.declareImports( "import
com.metasolv.resources.entity.connection.ChannelSegmentValueImpl; import
java.util.Date;" );
query.declareParameters( "String pConn, Date pStart, Date pEnd" );
query.declareVariables( "ChannelSegmentValueImpl assign" );
String filter = "! (key == assign.channel && supportingConnection == pConn
&& (assign.validForEnd > pStart || assign.validForStart < pEnd))";
query.setFilter( filter );
resultSet = (java.util.Collection) query.execute( connection,
interval.getStartDateTime(), interval.getEndDateTime() );
I am seeing the following Exception with mysql 4.0.15 and mysql connector
JDBC driver 3.0.8:
com.solarmetric.kodo.runtime.DataStoreException:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
t0.signalType, t0.supporting, t0.direction, t0.validForEnd,
t0.validForStart>> FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK =>> t1.channel AND t0.supporting = '101/DS3/LOC01/LOC02' AND (t1.validForEnd >>> {ts '2001-07-24 20:59:49.0' OR t1.validForStart < {ts '2038-01-18
22:14:07.0'}))]
[PRE=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
t0.signalType, t0.supporting, t0.direction, t0.validForEnd,
t0.validForStart>> FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK =>> t1.channel AND t0.supporting = ? AND (t1.validForEnd > ? OR> t1.validForStart>> < ?))
Syntax error or access violation, message from server: "You have an error
in your SQL syntax. Check the manual that corresponds to your MySQLserver
version for the right syntax to use near 'WHERE NOT (t0.PK = t1.channelAND
t0.supporting = '101/DS3/LOC0" [code=1064;state=42000]
NestedThrowables:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
t0.signalType, t0.supporting, t0.direction, t0.validForEnd,
t0.validForStart>> FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK =>> t1.channel AND t0.supporting = '101/DS3/LOC01/LOC02' AND (t1.validForEnd >>> {ts '2001-07-24 20:59:49.0' OR t1.validForStart < {ts '2038-01-18
22:14:07.0'}))]
[PRE=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t>> 0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,> t0.signalType,>> t0.supporting, t0.direction, t0.validForEnd, t0.validForStart FROM> DSChannel>> t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK = t1.channel AND>> t0.supporting = ? AND (t1.validForEnd > ? OR t1.validForStart < ?))
Syntax error or access violation, message from server: "You have an error
in your SQL syntax. Check the manual that corresponds to your MySQLserver
version for the right syntax to use near 'WHERE NOT (t0.PK = t1.channelAND
t0.supporting = '101/DS3/LOC0"
at
com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwDataStore(SQLExcep
tions.java:64)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:1167)
at
com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:1
26)
at
com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.executeQuery(Que
ryImpl.java:1565)
at
com.solarmetric.kodo.query.QueryImpl$AggregateQueryExecutor.executeQuery(Que
ryImpl.java:1401)
at
com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:685)
atcom.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:545)
at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:531)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:513)
at
com.metasolv.resources.queries.ChannelAvailabilityQueryBean.execute(ChannelA
vailabilityQueryBean.java:55)
at
com.metasolv.oss.inventory.InventorySessionBean.queryInventory(InventorySess
ionBean.java:1343)
at
com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl.queryInventory
(InventorySessionBean_xf0gis_EOImpl.java:3998)
at
com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl_WLSkel.invoke(
Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:821)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:3
0)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
NestedThrowablesStackTrace:
java.sql.SQLException: Syntax error or access violation, message from
server: "You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use near
'WHERE NOT (t0.PK = t1.channel AND t0.supporting = '101/DS3/LOC0"
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1651)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:889)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:956)
at com.mysql.jdbc.Connection.execSQL(Connection.java:1874)
at
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1538)
at
com.solarmetric.datasource.PreparedStatementWrapper.executeQuery(PreparedSta
tementWrapper.java:93)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryI
nternal(SQLExecutionManagerImpl.java:707)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(
SQLExecutionManagerImpl.java:600)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecu
tionManagerImpl.java:355)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.selectPrimaryMappings(
ClassMapping.java:1743)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:1136)
at
com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:1
26)
at
com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.executeQuery(Que
ryImpl.java:1565)
at
com.solarmetric.kodo.query.QueryImpl$AggregateQueryExecutor.executeQuery(Que
ryImpl.java:1401)
at
com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:685)
atcom.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:545)
at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:531)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:513)
at
com.metasolv.resources.queries.ChannelAvailabilityQueryBean.execute(ChannelA
vailabilityQueryBean.java:55)
at
com.metasolv.oss.inventory.InventorySessionBean.queryInventory(InventorySess
ionBean.java:1343)
at
com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl.queryInventory
(InventorySessionBean_xf0gis_EOImpl.java:3998)
at
com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl_WLSkel.invoke(
Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:821)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:3
0)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
INFO ExecuteThread: '10' for queue: 'default' com.metasolv.oss.inventory -
ignoring exception
javax.oss.IllegalArgumentException:
com.solarmetric.kodo.runtime.DataStoreException:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
t0.signalType, t0.supporting, t0.direction, t0.validForEnd,
t0.validForStart>> FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK =>> t1.channel AND t0.supporting = '101/DS3/LOC01/LOC02' AND (t1.validForEnd >>> {ts '2001-07-24 20:59:49.0' OR t1.validForStart < {ts '2038-01-18
22:14:07.0'}))]
[PRE=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
t0.signalType, t0.supporting, t0.direction, t0.validForEnd,
t0.validForStart>> FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK =>> t1.channel AND t0.supporting = ? AND (t1.validForEnd > ? OR> t1.validForStart>> < ?))
Syntax error or access violation, message from server: "You have an error
in your SQL syntax. Check the manual that corresponds to your MySQLserver
version for the right syntax to use near 'WHERE NOT (t0.PK = t1.channelAND
t0.supporting = '101/DS3/LOC0" [code=1064;state=42000]
NestedThrowables:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
t0.signalType, t0.supporting, t0.direction, t0.validForEnd,
t0.validForStart>> FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK =>> t1.channel AND t0.supporting = '101/DS3/LOC01/LOC02' AND (t1.validForEnd >>> {ts '2001-07-24 20:59:49.0' OR t1.validForStart < {ts '2038-01-18
22:14:07.0'}))]
[PRE=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
t0.signalType, t0.supporting, t0.direction, t0.validForEnd,
t0.validForStart>> FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK =>> t1.channel AND t0.supporting = ? AND (t1.validForEnd > ? OR> t1.validForStart>> < ?))
Syntax error or access violation, message from server: "You have an error
in your SQL syntax. Check the manual that corresponds to your MySQLserver
version for the right syntax to use near 'WHERE NOT (t0.PK = t1.channelAND
t0.supporting = '101/DS3/LOC0"
at
com.metasolv.resources.queries.ChannelAvailabilityQueryBean.execute(ChannelA
vailabilityQueryBean.java:61)
at
com.metasolv.oss.inventory.InventorySessionBean.queryInventory(InventorySess
ionBean.java:1343)
at
com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl.queryInventory
(InventorySessionBean_xf0gis_EOImpl.java:3998)
at
com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl_WLSkel.invoke(
Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:821)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:3
0)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
Ben
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • Table or view does not exist when using in PL/SQL block

    I hav something strange...
    When i execute a query it works just fine... When i use the exact same query in a function i want to create, i get the error 'table or view does not exist'
    I create the function with the same user then when i'm executing the query.
    For example:
    select name,userid from portal.WWLOG_ACTIVITY_LOGS
    if i execute this... it works fine. I get my results.
    However when i create a function:
    CREATE OR REPLACE FUNCTION EBUSINESS.GET_USER_CREATOR (p_userid IN Varchar2) return VARCHAR2
    as
    /*CURSOR c_user_creator IS
    select distinct name,userid from portal.WWLOG_ACTIVITY_LOGS
    where sub_domain = 'user' and action = 'create'
    and name = p_userid;*/
    v_creator varchar2(500);
    v_ret_val VARCHAR2(500) := 'NOT_FOUND';
    BEGIN
    select userid into v_ret_val from portal.WWLOG_ACTIVITY_LOGS
    where sub_domain = 'user' and action = 'create'
    and name = p_userid;
    --v_ret_val := x.userid;
    --end loop;
    -- Is the user in the group or not?
    /*OPEN c_user_creator;
    FETCH c_user_creator INTO v_creator;
    IF c_user_creator%FOUND THEN
    v_ret_val := v_creator;
    ELSE
    v_ret_val := 'NOT FOUND';
    END IF;
    CLOSE c_user_creator;*/
    Return v_ret_val;
    END;
    The table or view does not exist...
    I tryed with cursor, select into, for x in (select....)
    Nothing works.
    A select grant is a select grant right? Are there different grant you should use so you can select it into a function or just do a normal select?
    I also tryed to create a view that just sais select * from WWLOG_ACTIVITY_LOGS but that doesn't work...

    Are there different grant you should use so you can
    select it into a function or just do a normal select? Yes. Grants on objects used in functions/procedures must be given directly to the user, and not through a role.

  • Re NOT EXISTS SQL QUERY

    Hai ,
    I am having doubt regarding NOT EXISTS sql query,
    I want to select rows from table1 where column2 < column3 and column1 value should not exists in another two tables.
    When i tried with NOT IN clause i got the answer but i didnt get when i tried with NOT EXISTS.....can anyone give me the answer....
    select * from TABLE1 where mark2< mark3 AND
    name NOT IN (select name from TABLE2 UNION
    select name from TABLE3);

    Your query can be re-written in the following way by using not exists clause:
    SELECT     *
      FROM     table1 t1
      WHERE     mark2 < mark3
      AND     NOT EXISTS (
           SELECT     1
             FROM     table2
             WHERE     name = t1.name)
      AND     NOT EXISTS (
           SELECT     1
             FROM     table3
             WHERE     name = t1.name)Go through http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:442029737684
    on when to use NOT IN and NOT EXISTS.
    Hope this is helpful.
    - RK

  • 2nd Try: Please Help : UIX : Not able to use messageFileUpload along with m

    UIX : Not able to use messageFileUpload along with messageChoice
    I used messageFileUpload UIX element and associated upload button to fileupload servlet. This servlet just captures the file and put it in desired location. This works just fine.
    My client wanted me to add another choice filed on UI. I used messageChoice. I named the field as fileType. All the options have name and value populated but when I submit the form servlet is reading fileType as NULL.
    I am not sure what's happening. Please let me know how should I send file handle as well fileType ?
    Thanks,
    Linda

    What exactly are you expecting this to do for you?
    Forall is designed to process batches of DML to prevent context switching from PL/SQL to SQL.
    Has no relevance for what you are trying to do.
    If you don't want to call the procedure multiple times, you need to rewrite it to passs the cursor to the function, then have the function process all the records.
    Carl

  • Full page prints from iPhone but not from iPad using photo app with AirPrint ?

    Full page prints from iPhone but not from iPad using photo app with AirPrint ? iPad only prints 4x6 on full size paper. It's an HP 8600.

    I also have this problem printing photos from an iPad to an Epson WF-2540 printer. It prints only 4x6 and without border (so print starts at extreme top left corner of paper). Borderless printing is not selected on printer. Printing a square photo just crops to 4x6 size.

  • Sql sever 2012 express with tools

    Can someone show me step by step how to download sql server 2012 express with tools. The free versionI tried download but there file missing i cant it to run.
    james

    Hi James,
    You can directly download SQL Server 2012 Express with tools from below link. Please choose SQLEXPRWT_x64_ENU.exe or SQLEXPRWT_x86_ENU.exe package to install.
    http://www.microsoft.com/en-us/download/details.aspx?id=29062
    However, if you fail to download/install  SQL Server 2012 Express with tools, please help to post the full error message for analysis.
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Using built-in with global variables

    I am trying to setup built-in source code control for LabVIEW. It seems to be OK except in one case:
    Is it possible to use built-in with global variables ?
    VIs that use a global variable are supposed to be updated automatically when global variable is modified but what happen when VIs are checked-in ? LabVIEW cannot updated them. Is it necessary to check out all VIs before modifying global variable ? This is not convenient if global variable is used in more than 100 VIs !
    Is there another solution ? Can Perforce resolve this problem ?
    Thanks for your help !
    David

    You can still use and update global variables while they are checked in to SSC. The default values will still be saved in SSC but they can still be modified and read by other vi's.
    goldie

  • Using report parameter in data set filter expression with an SSAS data source

    I have an SSRS report with an SSAS data source.
    Report parameters:
    Param1 - text, single select
    Param2 - text, multi-select
    Dataset:
    In Query Designer, I want to include Param1 as a filter expression so I can have "Dimension1 Begins with @Param2". I'm not sure the exact syntax to make param2 work in this.
    The point is to filter my data set on param1. If A is selected for param1, I want the data set to have the filter saying "Dimension1 begins with A"
    Anyone know how to use a report parameter in the dataset filter expression for an ssas data source?

    hi,
    try this maybe the dates you are comparing are not in the same format.
    I test data template in EBS but not with dates.
    to_date(date,'dd/mm/YY') between to_date(:p_from_date ,'dd/mm/YY') and to_date(:p_to_date ,'dd/mm/YY')
    if dont works try to put values insted of your parameter like :
    to_date(date,'dd/mm/YY') between to_date(:p_from_date ,'10/01/07') and to_date(:p_to_date ,'01/12/07') ... put dates where u can have some values in report...
    if dont work then try to print the values of the 2 parameters and the date of the select somwhere in ur report to see what you have in it..
    hope it helps..
    Regards Joe.

  • Using SQL Server 2012 Express with Bitocker

    Hello,
    I'm currently working on getting our SQL Server Express database working with BitLocker but I am coming across a few problems. Here is my scenario:
    The OS is partitioned into two volumes (C and D).
    The C volume contains the OS and Software, while the D volume is primarily used for the database files (logs, back, and mdf).
    The D volume is encrypted using BitLocker
    The database connects using the SA account (SQL Server Authentication)
    From what I understand, BitLocker must be enabled with the same account that the SQL Server is running on. So what I have done is change the SQL Server service account to the user account (lets say its called User) via SQL Configuration Manager. While staying
    logged into User account, I then enable BitLocker via Control Panel -> System and Security -> BitLocker Drive Encryption. I then reboot and then while the software is trying to connect to the database I get the following  exception:
    'login failed for user sa'.
    Is there anything I need to do to get this working? Thanks for the help.

    Hi moncadad,
    When you turn off BitLocker, does the database also show “Recovery Pending”? If so, the simplest cause for “Recovery Pending” might be that a disk spin-up was slow, or a disk became full. Please read this
    blog to fix the issue, then check if you can successfully connect to the database after you turn on BitLocker.
    However, if you are not able to view the database contents only after you turn on BitLocker, I suspect that there are some issues about configuring BitLocker. As far as I know, Bitlocker must be performed by a member of Local Admins Group, please make sure
    that your account is a member of Local Admins Group on your computer.
    Also I would like to recommend you post the question in the
    Microsoft Bitlocker Administration and Monitoring (MBAM) forum to get better support. For more details about configuring SQL Server with Bitlocker, please review the following similar articles.
    Using SQL Server 2012 Standard with Bitlocker
    How can I retrieve my BitLocker recovery key from MBAM in Windows PE
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • Using airport express with existing network

    So I have a Zoom wireless modem/router that supports g + b wireless. If I get an airport express, will it connect to the existing wireless network? And if I want to stream music to my stereo, will the airport express communicate with my MacBook at the n network speed, or does it step down to the speed of the Zoom box?
    Not sure if the airport express would talk directly with the mac or use the Zoom as an intermediary.

    Welcome to the discussions!
    You have a couple of options.
    1) Configure the AirPort Express (AX) to "join" your existing wireless network. This will allow you to stream AirTunes to the AX over your current wireless network. If you choose this option, the AX will connect at "b/g" speeds.
    2) Configure the AirPort Express to "create a wireless network" so you can stream AirTunes at "n" speeds from your Mac if it is "n" capable. The downside to this approach is that you will need to switch wireless networks whenever you want to stream AirTunes, and since the AX will not be connected to a modem, you will not have internet access when you are streaming AirTunes.
    Users usually choose the "join" option to allow simultaneous internet connection and AirTunes streaming.
    Connection wise, your Mac must communicate to the wireless router, which in turn communicates to the AirPort Express. Your Mac will not communicate directly to the AX unless you choose option 2.

  • Using Applicationo Express with MY SQL or SQL Server ?

    Hello,
    I am new to APEX. Please guide me can I use it with My SQL or SQL Server in any possible way. As shared hosting for both of these databases is easily available.
    Secondly I heard APEX support web services. Can I use dotnet webservices with it ?
    thanks
    haansi

    Shared hosting is ALSO available for APEX. The product RUNS inside an Oracle database, so unless you use the connectivity software to link an Oracle database to SQL Server or mysql, you can NOT use it with these products?
    Why exactly are you looking to do this? Is i the cost of hosting an APEX application? There are places charging $10-20 a month to host APEX applications, comparable to mysql/SQL Server sites..
    Thank you,
    Tony Miller
    Webster, TX

  • Bad SQL for filter expression

    Using Kodo JDO 2.5.3, I am attempting to do queries of the following form:
    select * from dschannel as c
    where not exists (select pk from channelsegment as s
    where c.pk = s.channel and
    c.supporting = ? and
    (s.validForEnd > ? or
    s.validForStart < ?));
    select * from dschannel as c
    left join channelsegment as s
    on c.pk = s.channel and
    c.supporting = ? and
    (s.validForEnd > ? or
    s.validForStart < ?)
    where s.channel is null;
    The code looks like this:
    extent = pm.getExtent( ChannelValue.class, true );
    query = pm.newQuery( this.extent );
    query.declareImports( "import
    com.metasolv.resources.entity.connection.ChannelSegmentValueImpl; import
    java.util.Date;" );
    query.declareParameters( "String pConn, Date pStart, Date pEnd" );
    query.declareVariables( "ChannelSegmentValueImpl assign" );
    String filter = "! (key == assign.channel && supportingConnection == pConn
    && (assign.validForEnd > pStart || assign.validForStart < pEnd))";
    query.setFilter( filter );
    resultSet = (java.util.Collection) query.execute( connection,
    interval.getStartDateTime(), interval.getEndDateTime() );
    I am seeing the following Exception with mysql 4.0.15 and mysql connector
    JDBC driver 3.0.8:
    com.solarmetric.kodo.runtime.DataStoreException:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    [SQL=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
    t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
    t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
    t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
    t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
    t0.signalType, t0.supporting, t0.direction, t0.validForEnd, t0.validForStart
    FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK =
    t1.channel AND t0.supporting = '101/DS3/LOC01/LOC02' AND (t1.validForEnd >
    {ts '2001-07-24 20:59:49.0'} OR t1.validForStart < {ts '2038-01-18
    22:14:07.0'}))]
    [PRE=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
    t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
    t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
    t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
    t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
    t0.signalType, t0.supporting, t0.direction, t0.validForEnd, t0.validForStart
    FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK =
    t1.channel AND t0.supporting = ? AND (t1.validForEnd > ? OR t1.validForStart
    < ?))]
    Syntax error or access violation, message from server: "You have an error
    in your SQL syntax. Check the manual that corresponds to your MySQL server
    version for the right syntax to use near 'WHERE NOT (t0.PK = t1.channel AND
    t0.supporting = '101/DS3/LOC0" [code=1064;state=42000]
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    [SQL=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
    t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
    t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
    t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
    t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
    t0.signalType, t0.supporting, t0.direction, t0.validForEnd, t0.validForStart
    FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK =
    t1.channel AND t0.supporting = '101/DS3/LOC01/LOC02' AND (t1.validForEnd >
    {ts '2001-07-24 20:59:49.0'} OR t1.validForStart < {ts '2038-01-18
    22:14:07.0'}))]
    [PRE=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
    t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
    t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
    t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE, t
    0.name, t0.note, t0.previousVersion, t0.resourceBusinessName, t0.signalType,
    t0.supporting, t0.direction, t0.validForEnd, t0.validForStart FROM DSChannel
    t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK = t1.channel AND
    t0.supporting = ? AND (t1.validForEnd > ? OR t1.validForStart < ?))]
    Syntax error or access violation, message from server: "You have an error
    in your SQL syntax. Check the manual that corresponds to your MySQL server
    version for the right syntax to use near 'WHERE NOT (t0.PK = t1.channel AND
    t0.supporting = '101/DS3/LOC0"
    at
    com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwDataStore(SQLExcep
    tions.java:64)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
    reManager.java:1167)
    at
    com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:1
    26)
    at
    com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.executeQuery(Que
    ryImpl.java:1565)
    at
    com.solarmetric.kodo.query.QueryImpl$AggregateQueryExecutor.executeQuery(Que
    ryImpl.java:1401)
    at
    com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:685)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:545)
    at
    com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:531)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:513)
    at
    com.metasolv.resources.queries.ChannelAvailabilityQueryBean.execute(ChannelA
    vailabilityQueryBean.java:55)
    at
    com.metasolv.oss.inventory.InventorySessionBean.queryInventory(InventorySess
    ionBean.java:1343)
    at
    com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl.queryInventory
    (InventorySessionBean_xf0gis_EOImpl.java:3998)
    at
    com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl_WLSkel.invoke(
    Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
    at
    weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
    :114)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:821)
    at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:3
    0)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    NestedThrowablesStackTrace:
    java.sql.SQLException: Syntax error or access violation, message from
    server: "You have an error in your SQL syntax. Check the manual that
    corresponds to your MySQL server version for the right syntax to use near
    'WHERE NOT (t0.PK = t1.channel AND t0.supporting = '101/DS3/LOC0"
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1651)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:889)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:956)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:1874)
    at
    com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1538)
    at
    com.solarmetric.datasource.PreparedStatementWrapper.executeQuery(PreparedSta
    tementWrapper.java:93)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryI
    nternal(SQLExecutionManagerImpl.java:707)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(
    SQLExecutionManagerImpl.java:600)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecu
    tionManagerImpl.java:355)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.selectPrimaryMappings(
    ClassMapping.java:1743)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
    reManager.java:1136)
    at
    com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:1
    26)
    at
    com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.executeQuery(Que
    ryImpl.java:1565)
    at
    com.solarmetric.kodo.query.QueryImpl$AggregateQueryExecutor.executeQuery(Que
    ryImpl.java:1401)
    at
    com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:685)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:545)
    at
    com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:531)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:513)
    at
    com.metasolv.resources.queries.ChannelAvailabilityQueryBean.execute(ChannelA
    vailabilityQueryBean.java:55)
    at
    com.metasolv.oss.inventory.InventorySessionBean.queryInventory(InventorySess
    ionBean.java:1343)
    at
    com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl.queryInventory
    (InventorySessionBean_xf0gis_EOImpl.java:3998)
    at
    com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl_WLSkel.invoke(
    Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
    at
    weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
    :114)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:821)
    at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:3
    0)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    INFO ExecuteThread: '10' for queue: 'default' com.metasolv.oss.inventory -
    ignoring exception
    javax.oss.IllegalArgumentException:
    com.solarmetric.kodo.runtime.DataStoreException:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    [SQL=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
    t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
    t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
    t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
    t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
    t0.signalType, t0.supporting, t0.direction, t0.validForEnd, t0.validForStart
    FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK =
    t1.channel AND t0.supporting = '101/DS3/LOC01/LOC02' AND (t1.validForEnd >
    {ts '2001-07-24 20:59:49.0'} OR t1.validForStart < {ts '2038-01-18
    22:14:07.0'}))]
    [PRE=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
    t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
    t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
    t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
    t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
    t0.signalType, t0.supporting, t0.direction, t0.validForEnd, t0.validForStart
    FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK =
    t1.channel AND t0.supporting = ? AND (t1.validForEnd > ? OR t1.validForStart
    < ?))]
    Syntax error or access violation, message from server: "You have an error
    in your SQL syntax. Check the manual that corresponds to your MySQL server
    version for the right syntax to use near 'WHERE NOT (t0.PK = t1.channel AND
    t0.supporting = '101/DS3/LOC0" [code=1064;state=42000]
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    [SQL=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
    t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
    t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
    t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
    t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
    t0.signalType, t0.supporting, t0.direction, t0.validForEnd, t0.validForStart
    FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK =
    t1.channel AND t0.supporting = '101/DS3/LOC01/LOC02' AND (t1.validForEnd >
    {ts '2001-07-24 20:59:49.0'} OR t1.validForStart < {ts '2038-01-18
    22:14:07.0'}))]
    [PRE=SELECT DISTINCT t0.PK, t0.JDOCLASSX, t0.JDOLOCKX, t0.AEndPoint,
    t0.AEndPointType, t0.DS0, t0.DS1, t0.DS2, t0.DS3, t0.DS4, t0.ZEndPoint,
    t0.ZEndPointType, t0.adminState, t0.creationDate, t0.SPECKEY, t0.SPECTYPE,
    t0.description, t0.lastModifiedDate, t0.lastModifiedUserId, t0.LASTUPDATE,
    t0.name, t0.note, t0.previousVersion, t0.resourceBusinessName,
    t0.signalType, t0.supporting, t0.direction, t0.validForEnd, t0.validForStart
    FROM DSChannel t0 LEFT OUTER JOIN ChannelSegment t1 WHERE NOT (t0.PK =
    t1.channel AND t0.supporting = ? AND (t1.validForEnd > ? OR t1.validForStart
    < ?))]
    Syntax error or access violation, message from server: "You have an error
    in your SQL syntax. Check the manual that corresponds to your MySQL server
    version for the right syntax to use near 'WHERE NOT (t0.PK = t1.channel AND
    t0.supporting = '101/DS3/LOC0"
    at
    com.metasolv.resources.queries.ChannelAvailabilityQueryBean.execute(ChannelA
    vailabilityQueryBean.java:61)
    at
    com.metasolv.oss.inventory.InventorySessionBean.queryInventory(InventorySess
    ionBean.java:1343)
    at
    com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl.queryInventory
    (InventorySessionBean_xf0gis_EOImpl.java:3998)
    at
    com.metasolv.oss.inventory.InventorySessionBean_xf0gis_EOImpl_WLSkel.invoke(
    Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
    at
    weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
    :114)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:821)
    at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:3
    0)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    Ben

    pConn parameter is a String value like "1001/DS3/LOC01/LOC02" which is being
    matched against the supportingConnection field (mapped to a column named
    "supporting") on the ChannelValue candidate class. Note that the Extent is
    created on the ChannelValue interface, but it is the DSChannelValue
    concrete class that has matching instances. (This kind of Query started
    working in 2.5.0, if I remember correctly.)
    Ben
    "Abe White" <[email protected]> wrote in message
    news:[email protected]..
    What is the value of the pConn parameter / connection variable?

  • ORA-01435: user does not exist when using imp utility

    I installed Oracle 8.1.7.0.0 successfully on WINDOWS 2000 and created a database TEST using DBCA. Then I used a script to creat a tablespace and a user in TEST databse. I could use the imp utility to import the data (a dmp file) to the TEST database without any problem. But after I applied a patch to bring up the version to Oracle 8.1.7.4.1, I got the following error when I tried to use the imp utility again to import the data (a dmp file) to the TEST database.
    IMP-00003: ORACLE error 1435 encountered
    ORA-01435: user does not exist
    IMP-00000: Import terminated unsuccessfully
    I checked that I created the same user test (as it is in dmp file I wanted to import) on TEST, and I could login to TEST using:
    sqlplus test/test@TEST
    The command I used is:
    imp system/password@TEST file=test.dmp full=y log=importTEST.TEST.tmp
    I also tried to use the following command:
    imp system/password@TEST file=test.dmp fromuser=test touser=test log=importTEST.TEST.tmp
    and got the same error as before.
    Anyone has any clues what could go wrong? The only difference for me to import the data on TEST is that the
    previous successful import was done in Oracle 8.1.7.0.0.
    Is it possible that I missed something during the applying of the patch 8.1.7.4.1?
    Thanks, and your help is greatly appreciated.
    Jane

    Ther is a set of instruction to be followed after installing the patch set 8.1.7.4.1 after running it thru OUI.They are as follows. Please complete these steps and u should not have problems any more.
    When applying this patchset on Windows NT and Windows 2000, you must log onto the system as a user with Administrative privileges (e.g., as a user which is a member of the local Administrators group).
    1.Disabling system triggers.
    Before performing the next step, you must first set SYSTEMTRIG_ENABLED = FALSE in the initialization parameter file. To do this add the following line to your init<sid>.ora file and restart the database (see Note 149948.1 in Metalink for more information on this issue).
    systemtrig_enabled=false
    2.Invoke SQL*Plus (sqlplus), connect as internal and run the following:
    select * from duc$ where PACK='JIS$INTERCEPTOR$' ;
    If no rows were returned go to the next step. If a row was returned delete it using the following:
    delete from duc$ where PACK='JIS$INTERCEPTOR$' ;
    commit;
    3.Invoke SQL*Plus (sqlplus), connect as internal and run the following SQL scripts with event 10520 set. NOTE: This event is not intended for regular database operation and when turned on below by the 'ALTER SESSION' command will automatically be turned off by the subsequent 'CONNECT' command.
    ALTER SESSION SET EVENTS '10520 TRACE NAME CONTEXT FOREVER, LEVEL 10';
    ?/rdbms/admin/catalog.sql
    ?/rdbms/admin/catproc.sql
    ?/rdbms/admin/catrep.sql (This only needs to be run if you are using symmetric/advanced replication. This is not necessary for sites using dblinks and read-only snapshots if symmetric/advanced replication is not installed)
    CONNECT / AS SYSDBA;
    update obj$ set status=5 where type#=29 and owner#!=0;
    commit;
    4.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install.
    If Java has previously been loaded into the database, invoke SQL*Plus (sqlplus), connect as internal and run the following SQL DDL command(* Note:If Java has not previously been loaded into the database, skip this step).:
    SQL> create or replace java system
    2 /
    (Note that the / (slash) is important to ensure the execution of the command).
    To ensure the correct installation of the XDK in the database run the following 2 scripts (Bug 2115227):
    $ORACLE_HOME/oracore/admin/initxml.sql
    $ORACLE_HOME/rdbms/admin/catxsu.sql
    * To determine whether Java has previously been loaded into the database:
    invoke SQL*Plus (sqlplus), connect as internal and run the following:
    SQL> select count(*) from all_objects where object_type like 'JAVA%';
    Java is installed if you get a non zero result returned from the query.
    5.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install:
    If Java has previously been loaded into the database, invoke SQL*Plus (sqlplus), connect as internal and run the following scripts which are located in $ORACLE_HOME/javavm/install ( Note: If Java has not previously been loaded into the database, you can skip this step):
    load_jis.sql
    jisja.sql
    initjsp.sql
    jspja.sql
    Notes:
    When running the $ORACLE_HOME/javavm/install/jisja.sql script the following error may be reported and can be ignored:
    call jis_exit_java_session(0)
    ERROR at line 1:
    ORA-29515: exit called from Java code with status 0
    Bug 1459233 was filed against this problem which is fixed in 9i.
    6.If you deleted a row from duc$ in step 8 then reinsert it again. Invoke SQL*Plus (sqlplus), connect as internal and run the following SQL:
    insert into duc$ (OWNER, PACK, PROC, FIELD1, OPERATION#, SEQ) values ('SYS', 'JIS$INTERCEPTOR$', 'USER_DROPPED', 0, 1, 1);
    commit;
    7.Enabling system triggers.
    You must either remove SYSTEMTRIG_ENABLED from the initialization parameter file or explicitly set it to TRUE before attempting any other patch set post-install steps. Restart the database.
    8.This step is optional - it will recompile all invalid PL/SQL packages now rather than when accessed for the first time - you can also use utlrcmp.sql to parallelize this. Invoke SQL*Plus (sqlplus), connect as internal and run the following SQL script:
    ?/rdbms/admin/utlrp.sql
    9.Execute the following steps only if you have installed Oracle interMedia Text in the database you are attempting to modify:
    If you have not previously unlocked the ctxsys account and supplied a password for that account, you need to do so. (If you have needed to use Oracle Text in any way prior to applying the patchset, you will have already performed this step, and you can skip this.) Do so by issuing the following statement:
    ALTER USER ctxsys IDENTIFIED BY <passwd> ACCOUNT UNLOCK;
    If you have already installed 8.1.7.2 or 8.1.7.3, go directly to step 7 below.
    If you have already installed 8.1.7.1, go directly to step 5 below.
    CONNECT ctxsys/<passwd>;
    @?/ctx/admin/upgrade/u0801071.sql
    CONNECT ctxsys/<passwd>;
    @?/ctx/admin/upgrade/u0801072.sql
    CONNECT / AS SYSDBA;
    @?/ctx/admin/upgrade/s0801074.sql
    CONNECT ctxsys/<passwd>
    @?/ctx/admin/dr0pkh.sql
    @?/ctx/admin/dr0plb.sql
    @?/ctx/admin/dr0type.plb
    @?/ctx/admin/dr0typec.plb
    9.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install:
    The installation of this patch set fixes a potential security hole in the XSQL Servlet - see here for more detail. The patchset installation does not, however, modify any of the Oracle HTTP Server configuration files to reflect changes to the XSQL Servlet installation. If you have previously installed the Oracle HTTP Server, you will need to update one of the configuration files manually after the patchset installation is complete. If you do not do so, the XSQL Servlet may not work in the context of the Oracle HTTP Server after the patchset is installed. To update your Oracle HTTP Server configuration, perform the following steps:
    1) Edit the file: $ORACLE_HOME/Apache/Jserv/conf/jserv.properties
    2) Search for the string: "XSQLConfig.xml File location"
    3) Modify the parameter wrapper.classpath on the line immediately following the above string to read: $ORACLE_HOME/oracore/admin
    4) Save the file.
    10.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install:
    The installation of this patch set fixes a potential security hole in the PL/SQL XML parser - see here for more detail. To load the new XML parser in to the database, run the following script as user SYS:
    ? /xdk/plsql/parser/bin/load.sql
    11.If you are using the RMAN catalog then upgrade it as follows:
    rman catalog <user/passwd@alias>
    upgrade catalog;
    upgrade catalog;
    The post install actions are now complete and the database is now ready for use.

  • Getting "Method 'sign_in' does not exist" Error (using Charles)

    This may be a bit off the FLEX field, and have to do with Zend Framework's ZEND_AMF class. Unfortunately I haven't been able to dig anything up, and comments posted on Wade Arnolds site have not received any responses, so I thought I'd give it a go here.
    My ServiceController Class:
    public function loginAction()
         $this->_helper->viewRenderer->setNoRender();
         $server = new Zend_Amf_Server();
         $server->setClass('LoginAmfService', 'LoginService');
         $server->setClassMap('CurrentUserVO', 'CurrentUserVO');
         $server->setProduction(false);
         print($server->handle());
    My LoginAmfService class:
    class LoginAmfService
          * Main login function.
          * @param  string        $name
          * @param  string        $password
          * @return CurrentUserVO
         public function sign_in($name, $password)
              $authAdapter     = new Zend_Auth_Adapter_DbTable(Zend_Registry::get('db'), 'users', 'user_name', 'password', 'PASSWORD(?) AND active = 1');
              $returnValue     = new CurrentUserVO();
              $authAdapter->setIdentity(htmlspecialchars($name))
                   ->setCredential(htmlspecialchars($password));
              $authResult = $authAdapter->authenticate();
              if ($authResult->isValid())
                   $userArray                          = $authAdapter->getResultRowObject(array('id', 'first_name', 'last_name', 'title', 'photo'));
                   $returnValue->first_name     = $userArray->first_name;
                   $returnValue->last_name          = $userArray->last_name;
                   $returnValue->title               = $userArray->title;
                   $returnValue->photo               = $userArray->photo;
                   $returnValue->token               = $userArray->id;
              return $returnValue;
          * Function used to log people off.
         public function sign_out()
              $authAdapter = Zend_Auth::getInstance();
              $authAdapter->clearIdentity();
    My SignIn FLEX module (the relevant portions):
         <mx:RemoteObject
              id="LoginRemote"
              destination="login"
              source="SignIn"
              showBusyCursor="true"
              fault="parentDocument.handleFault(event)"
         >
               <mx:method name="sign_in" result="signin_handle(event)" />
               <mx:method name="sign_out" result="signout_handle(event)" />
         </mx:RemoteObject>
         <mx:Script>
              <![CDATA[
                   import mx.rpc.events.FaultEvent;
                   import mx.utils.ArrayUtil;
                   import mx.rpc.events.ResultEvent;
                   import mx.controls.Alert;
                   import com.brassworks.ValueObjects.CurrentUserVO;
                   import mx.events.VideoEvent;
                   [Bindable]
                   private var this_user:CurrentUserVO = new CurrentUserVO();
                   private function mdl_init():void
                        focusManager.setFocus(txt_username);
                   private function signin_handle(event:ResultEvent):void
                             this_user = event.result as CurrentUserVO;
                             if (this_user.token == null) {Alert.show("Supplied login credentials are not valid. Please try again.");}
                             else
                                  this.parentApplication.setUser(this.this_user);
                   private function signout_handle(event:ResultEvent):void
                   private function sign_in(event:Event):void
                        try
                             //Alert.show(txt_name.text + "|" + txt_password.text);
                             LoginRemote.sign_in(txt_username.text, txt_password.text);
                        catch (error:Error)
                             this.parentDocument.handleFault(error);
                   private function sign_out(event:Event):void
                   private function show_error(error:Error, s_function:String):void
                        Alert.show("Method:" + s_function + "\nName: " + error.name + "\nID: " + error.errorID + "\nMessage: " + error.message + "\nStack Trace: " + error.getStackTrace() + "\nError: " + error.toString());
                   private function handleFault(event:FaultEvent):void
                        Alert.show(event.fault.faultDetail, event.fault.faultString);
              ]]>
         </mx:Script>
    Now, all this is great and good, as it works with Zend Framework 1.7.6. However, when I try to upgrade to 1.7.8 (to take advantage of session management and other bug-fixes), I get the following error (using Charles):
    #1 /var/web/htdocs/core/library/Zend/Amf/Server.php(390): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
    #2 /var/web/htdocs/core/application/default/controllers/ServicesController.php(73): Zend_Amf_Server->handle()
    #3 /var/web/htdocs/core/library/Zend/Controller/Action.php(503): ServicesController->loginAction()
    #4 /var/web/htdocs/core/library/Zend/Controller/Dispatcher/Standard.php(285): Zend_Controller_Action->dispatch('loginAction')
    #5 /var/web/htdocs/core/library/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #6 /var/web/htdocs/core/application/bootstrap.php(39): Zend_Controller_Front->dispatch()
    #7 /var/web/htdocs/core/public/index.php(5): Bootstrap->runApp()
    #8 {main} ?Method "sign_in" does not exist
    I have no idea why this would not work anymore. My assumption is that I am not correctly setting up Zend_Amf (but then again, my counter-argument is that it worked before, so ..... ????)
    Thanks for any help!
    -Mike

    For those that are also fighting this issue:
    The problem appears to be that the RemoteObject needs to specify the class containing the methods as a source parameter. According to this bug report (http://framework.zend.com/issues/browse/ZF-5168) it is supposed to have been addressed, but apparently has re-emerged in Zend_Amf since version 1.7.7.
    Using my example above, I would have to specify the RO as:
    <mx:RemoteObject
              id="LoginRemote"
              destination="login"
              source="LoginAmfService"
              showBusyCursor="true"
              fault="parentDocument.handleFault(event)"
         >
               <mx:method name="sign_in" result="signin_handle(event)" />
               <mx:method name="sign_out" result="signout_handle(event)" />
         </mx:RemoteObjecct>

  • Can I use logic express with my Macbook

    I just got a macbook and i was wondering if I can use Logic express or pro on it??

    yes!
    it of coourse depends what you want to do with it - but yes!
    by all acounts logic express and pro will run very well on the new macbooks.
    I'm using pro on my old powerbook - just about manage to use it live and it's slow but useable to get ideas down onto and am using an intel imac as my main studio computer with logic pro 7.2.3 - it's essentially the same as a macbook except it doesn't have integrated graphics and it has a faster hard disk which does make a difference. Apart from that i'm sure your new macbook would toast my powerbook in terms of performance.
    Be sure to get the intel version of logic (7.2 and above) as an older "ppc" version may run but is not supported and would probably run very slowly.
    Enjoy!
    Rounik

Maybe you are looking for

  • Group by values

    Hi We are using OBIEE11g.I have report like County,Count(Ref_No) E.g Country Volume CN 1,518 HK 161 IN 60 GB 54 BR 27 DE 23 RU 16 BD 12 VN 9 AA 5 BB 10 CC 10 DD 8 EE 20 FF 2 GG 1 How can i achive below formate (I hsould display only 10 rows,After top

  • Passing values to Forms

    I created a report and a form in 9ias portal. I want to pass a value from the report to the Form (not the Rowid). Can any body let me how can I do that? thanks, ajay

  • Help!! Security Issues with web site

    Whenever we start our webservices, web visitors can view our folder list. The option is disabled on the server and the web folder is not being shared. Any ideas? One of my sites was hacked into. thanks!!

  • YouTube issue w/ 11.7.700.169

    I am an IT technician for a public library. After upgrading to Flash 11.7.700.169 yesterday, we began experiencing issues with YouTube. Specifically, YouTube doesn't seem to detect the new installation of Flash, reporting that "Your browser is out-of

  • Update table TVARV

    Hi, I am writing a small program to update tavle TVARV. I don't want to use UPDATE TVARV statement, is there any FM or Transaction I can use? Thanks.