SQL Exception after upgraded to Tomcat 5
I used to develop JSP in SunOne Studio 4 Update 1, which comes with Tomcat 4.0
My database is Microsoft Access Database. My JDK is 1.4.2
My JSP applications work in SunONE studio's Tomcat environment.
However, I tried to run the application in Tomcat 5.0 without SunONE studio. It is not working for all the pages related with Database connection.
The error says: "java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"
But it DO works using the same code under SunONE's environment.
Following is my connection.
String url = application.getInitParameter("dBURL");
String username = application.getInitParameter("dBUserName");
String password = application.getInitParameter("dBUserPassword");
Connection conn = null;
String classPath = "sun.jdbc.odbc.JdbcOdbcDriver";
try {
Class.forName(classPath);
conn = DriverManager.getConnection(url,username,password);
} catch (Exception exc){
out.println(exc.toString());
Statement stm = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
String query;
ResultSet rst=null;I have tested using out.println(application.getInitParameter("dBURL")); that the parameters are retrieved successfully.
conn = DriverManager.getConnection(url,username,password); is actually the place where the error occurs.
Any body knows about this error?
This sounds like it might answer your question... probably SunONE does some of this for you, that you might have to do manually without it.
http://java.sun.com/webservices/docs/1.1/tutorial/doc/Admintool5.html
Similar Messages
-
Hi All,
After upgrading the service pack to SP10, I am getting an exception while executing the function module of the adobe form.
The Exception is
ADS: SOAP Runtime Exception: CSoapExceptionTransport :(100101).
Kindly help me resolve this issue.
RegardsHi sudheendra,
Please check webservice FP_ICF_DATA , FP_ICF_DATA_<SID> and HTTP destination FP_ICF_DATA_<SID> in visual administrator >server>services-->destinations.(you can find details in ADS conguration guide NW 7.0)
Please dont forget to mention SID , client and ADS_AGENT userid and password in those destinations.
Regards
Bhaskar -
Invalid SQL command after upgrading to Oracle 9i
After upgrading to Oracle 9i, the SQL queries in some of our existing reports are no longer valid. The Oracle error returned is "old style outer join () can not be used with ANSI joins". It appears that the SQL query generated by Crystal Reports is correct in that it uses "LEFT OUTER JOIN" instead of just naming the tables separated by a comma, but it also includes the "()" qualifer on the matching columns which is no longer allowed. Is there any way to overcome this error short of rewriting the reports based on a command?
Hello,
A couple suggestions come to mind.
Business Objects tend to take problematic SQL generation very seriously at least on the SQL and Oracle platforms (due to their widespread use) and I would first grab the latest database/engine hotfixes to be certain it hasn't been tracked and corrected already. If you can clearly reproduce this issue (sounds like you can) then it should be easy to convince the support team at BOBJ to track the issue. However...
Since their hotfix release cycle is rather slow especially for items that have workarounds (even sometimes painful workarounds) you may want to consider using a Stored Procedure instead of a Command.
Commands have a notorious history of issues/limitations that tend to burn you later - especially when you have to update many reports. A stored procedure would likely render the + qualifier a moot point.
Cheers, Dylan
<p><strong>Dylan Lopez - </strong>604.628.4467 </p><p>Previously: Microsoft .NET Resource in Developer Support @ Business Objects</p><p>Currently: Principal @ Inno Software Inc / Independent Contractor Group</p> -
Problem with ADF Security / SQL Authenticator after upgrade to 11.1.1.6
Hi,
We have an ADF application built with JDeveloper 11.1.1.2 that's been in production for a couple of years. Now we are in the process of upgrading to 11.1.1.6 so I have upgraded WLS and ADF in a test environment and re-deployed the application there. The application uses users and groups from database using SQL Authenticator configured in WLS. This worked fine in the old version but now after the upgrade we can't log in with credentials from the database. I can log in if I add a user to the default authenticator. We didn't touch any of the authenticator settings or security realm configurations during the upgrade. Both authenticators are marked as SUFFICIENT, as they have always been.
Has something changed in the way SQL Authenticator is used since 11.1.1.2? What could be the problem?
Regards,
JoonasAnswering myself here: after recreating the SQL Authenticator and the ADF Security configuration logins are working again. Don't know where the problem was though.
-
SQL slow after upgrading to Oracle Database 10g Enterprise Edition Release
Hi all:
We have recently upgraded our database from Oracle9i Enterprise Edition Release 9.2.0.6.0 to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
After that we found that our some sql getting very slow
for example query with 9i showing result in 4 seconds while in 10g showing result in 28 seconds.
Following is the execution plan of my query in Oracle9i
Operation Object PARTITION_START PARTITION_STOP COST
SELECT STATEMENT () 9458
NESTED LOOPS () 9458
SORT (UNIQUE)
INDEX (RANGE SCAN) BL_EQ_PK_N 2
VIEW () CONTAINER_INFO 2
UNION-ALL (PARTITION)
TABLE ACCESS (BY INDEX ROW SERVICE_EVENTS 1
NESTED LOOPS () 11
NESTED LOOPS () 10
NESTED LOOPS (OUTER) 9
NESTED LOOPS () 8
NESTED LOOPS () 7
NESTED LOOPS () 6
NESTED LOOPS () 5
NESTED LOOPS () 4
NESTED LOOPS (OUT 3
TABLE ACCESS (BY EQUIPMENT_USES 2
INDEX (UNIQUE S EQUSE_PK 1
TABLE ACCESS (BY SHIPPING_LINES 1
INDEX (UNIQUE S LINE_PK
INDEX (UNIQUE SCA EQHT_PK
TABLE ACCESS (BY I EQUIPMENT_TYPES 1
INDEX (UNIQUE SCA EQTP_PK
TABLE ACCESS (BY IN EQUIPMENT_SIZES 1
INDEX (UNIQUE SCAN EQSZ_PK
TABLE ACCESS (BY IND SHIP_VISITS 2
INDEX (RANGE SCAN) SVISIT_UK 1
TABLE ACCESS (BY INDE SHIPS 1
INDEX (UNIQUE SCAN) SHIP_PK
TABLE ACCESS (BY INDEX CARE_VIR_MAP 1
INDEX (UNIQUE SCAN) VIR_VESVOY
TABLE ACCESS (BY INDEX EQUIPMENT 1
INDEX (RANGE SCAN) EQ_EQUSE_FK
INDEX (RANGE SCAN) SEVENTS_EQUSE_FK_N
NESTED LOOPS () 7
NESTED LOOPS () 6
NESTED LOOPS () 5
NESTED LOOPS () 4
NESTED LOOPS (OUTER) 3
TABLE ACCESS (BY INDE EQUIPMENT_USES 2
INDEX (UNIQUE SCAN) EQUSE_PK 1
TABLE ACCESS (BY INDE SHIPPING_LINES 1
INDEX (UNIQUE SCAN) LINE_PK
INDEX (UNIQUE SCAN) EQHT_PK
TABLE ACCESS (BY INDEX EQUIPMENT_TYPES 1
INDEX (UNIQUE SCAN) EQTP_PK
TABLE ACCESS (BY INDEX R EQUIPMENT_SIZES 1
INDEX (UNIQUE SCAN) EQSZ_PK
TABLE ACCESS (BY INDEX RO EQUIPMENT 1
INDEX (RANGE SCAN) EQ_EQUSE_FK and following is my query plan in Oracle 10g
Operation Object PARTITION_START PARTITION_STOP COST
SELECT STATEMENT () 2881202
NESTED LOOPS () 2881202
SORT (UNIQUE) 2
INDEX (RANGE SCAN) BL_EQ_PK_N 2
VIEW () CONTAINER_INFO 2881199
UNION-ALL ()
NESTED LOOPS (OUTER) 2763680
NESTED LOOPS () 2718271
NESTED LOOPS () 2694552
NESTED LOOPS () 2623398
NESTED LOOPS (OUTER) 2623380
NESTED LOOPS () 2393965
NESTED LOOPS () 2393949
NESTED LOOPS () 2164536
NESTED LOOPS () 1706647
NESTED LOOPS () 854120
TABLE ACCESS (FU BL_EQUIPMENT 1515
TABLE ACCESS (BY EQUIPMENT_USES 1
INDEX (UNIQUE S EQUSE_PK 1
TABLE ACCESS (BY EQUIPMENT 1
INDEX (RANGE SCA EQ_EQUSE_FK 1
TABLE ACCESS (BY I EQUIPMENT_TYPES 1
INDEX (UNIQUE SCA EQTP_PK 1
TABLE ACCESS (BY IN EQUIPMENT_SIZES 1
INDEX (UNIQUE SCAN EQSZ_PK 1
INDEX (UNIQUE SCAN) EQHT_PK 1
TABLE ACCESS (BY INDE SHIPPING_LINES 1
INDEX (UNIQUE SCAN) LINE_PK 1
INDEX (RANGE SCAN) SEVENTS_TSERV_FK_N 1
TABLE ACCESS (BY INDEX SHIP_VISITS 2
INDEX (RANGE SCAN) SVISIT_UK 2
TABLE ACCESS (BY INDEX R SHIPS 1
INDEX (UNIQUE SCAN) SHIP_PK 1
TABLE ACCESS (BY INDEX RO CARE_VIR_MAP 2
INDEX (UNIQUE SCAN) VIR_VESVOY 1
NESTED LOOPS (OUTER) 117519
NESTED LOOPS () 98158
NESTED LOOPS () 78798
NESTED LOOPS () 78795
NESTED LOOPS () 59432
TABLE ACCESS (FULL) EQUIPMENT_USES 20788
TABLE ACCESS (BY INDE EQUIPMENT_TYPES 1
INDEX (UNIQUE SCAN) EQTP_PK 1
TABLE ACCESS (BY INDEX EQUIPMENT 1
INDEX (RANGE SCAN) EQ_EQUSE_FK 1
INDEX (UNIQUE SCAN) EQHT_PK 1
TABLE ACCESS (BY INDEX R EQUIPMENT_SIZES 1
INDEX (UNIQUE SCAN) EQSZ_PK 1
TABLE ACCESS (BY INDEX RO SHIPPING_LINES 1
INDEX (UNIQUE SCAN) LINE_PK 1can somebody help me regarding this?
Thanks
HassanI would say ..gather stats on 9i/10gfor the required table and indexes , then post the expalin plan.
--Girish -
Java object instantiation exception after upgrade from CF9 to CF10
I have some custom Java classes placed within the C:\ColdFusion10\cfusion\wwwroot\WEB-INF\classes directory of my CF10 install. Although these worked in CF9, I am now getting the following error:
Error Occurred While Processing Request
Object instantiation exception.
An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. Error: javax/mail/Store.
The exception log entry is similar:
"Error","ajp-bio-8012-exec-1","01/28/13","21:51:08",,"Object instantiation exception.An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. Error: javax/mail/Store. The specific sequence of files included or processed is: sample\path\to\document\index.cfm, line: 1 "
coldfusion.runtime.java.JavaObjectInstantiationException: Object instantiation exception.
I created a simple sample that attempts to instantiate the object that throws the above exception:
<cfscript>m = createObject( "Java", "sample.namespace.MBoxReader" );</script>
I can create the same object in Java without error, e.g.:
MBoxReader m = new MBoxReader();
I checked, but as far as I can nothing attempts to instantiate the Store class, only subclasses of store. I have read in other posts that this may be due to missing classes or duplicate classes, so I'm not ruling that out, but haven't had much luck in identifying anything yet. Any tips on troubleshooting this issue?
EDIT: I started with a much simpler Java class and started adding methods back to it. It appears to break when I attempt to instantiate a mail session:
"Error","ajp-bio-8012-exec-1","01/29/13","10:17:22",,"javax/mail/Session The specific sequence of files included or processed is: sample\path\to\document\index.cfm, line: 3 "
java.lang.NoClassDefFoundError: javax/mail/Session
I built the project using the mail.jar file in C:\ColdFusion10\cfusion\lib, which contains a Session class. However, the Session class does not have a public constructor--maybe that's why CF has an issue.
For example, calling this Java method via CF causes the error:
public void mboxTest() {
Properties props = new Properties();
Session session = Session.getDefaultInstance( props );Hi,
Can you please roll back the Security patch and the reason is because you have missed some files when you were applying the patch. So after you roll back check if the admin in working then re-apply the patch once again.
Regards,
Priyank -
POWL fatal exception after upgrading to SRM 7.01
Hello,
We are upgrading SRM 5.0 to SRM 7.0 SRM server 7.01 SP5. We are getting POWL error when we want to create a shopping cart. Error in ST22 is CX_POWL_FATAL_EXCEPTION. We have done the necessary changes regarding the roles en the post installation steps (as far as we can see). Can anybody help on this ? Any other things we are going to encounter ? Please share your experience! By the way I read the threads regarding this error but they seem not to be the solution to our problem.
These are the details of the technical errors in SRM:
Method: GET_LAYOUT of program CL_POWL_PERS_ACCESSOR=========CP
Method: INITIALIZE of program CL_POWL_MODEL=================CP
Method: HANDLEDEFAULT of program /1BCWDY/47B31TM8X1UWQ6FVUXCS==CP
Method: HANDLEDEFAULT of program /1BCWDY/47B31TM8X1UWQ6FVUXCS==CP
Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/47B31TM8X1UWQ6FVUXCS==CP
Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_IF_VIEW=====CP
Method: DISPLAY_TOPLEVEL_COMPONENT of program CL_WDR_CLIENT_COMPONENT=======CP
Method: INIT of program CL_WDR_CLIENT_APPLICATION=====CP
Thanks!
Kind regards,Hello Sri Sri,
This problem will happen if you have entry missing for POWL Application ID.
POWL application is maintained in FPB_MAINATAIN_HIER.
Please check if your entries exist there.
http://wiki.sdn.sap.com/wiki/display/WDABAP/POWL
Please let me know if you are still facing the issue.
Best regards,
Rohit -
Facing Parse Errors after upgrading database from 10g to 11g
Hi,
We are facing parse errors in the SQL's after upgrading database from 10g to 11g.
Kindly look into below parse errors.
********************************** Parse Error *****************************************************
Tue Aug 13 14:13:08 2013
kksSetBindType 16173533-2: parse err=1446 hd=3c73061fb8 flg=100476 cisid=173 sid=173 ciuid=173 uid=173
PARSE ERROR: ospid=15598, error=1446 for statement:
SELECT ROWID,ORGANIZATION_CODE,PADDED_CONCATENATED_SEGMENTS,PRIMARY_UOM_CODE,REVISION,SUBINVENTORY_CODE,TOTAL_QOH,NET,RSV,ATP,ORGANIZATION_NAME,ITEM_DESCRIPTION,INVENTORY_ITEM_ID,ORGANIZATION_ID,LOCATOR_ID,LOCATOR_TYPE,ITEM_LOCATOR_CONTROL,ITEM_LOT_CONTROL,ITEM_SERIAL_CONTROL FROM MTL_ONHAND_LOCATOR_V WHERE (INVENTORY_ITEM_ID=:1) and (ORGANIZATION_ID=:2) order by ORGANIZATION_CODE,SUBINVENTORY_CODE,REVISION, organization_code, padded_concatenated_segments
Tue Aug 13 14:13:10 2013
kksfbc 16173533: parse err=942 hd=3c387c4028 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
PARSE ERROR: ospid=29813, error=942 for statement:
Select feature from toad.toad_restrictions where user_name=USER or user_name in ( select ROLE from sys.session_roles)
kksfbc 16173533: parse err=942 hd=3c97d83648 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
PARSE ERROR: ospid=29813, error=942 for statement:
SELECT password
FROM SYS.USER$
WHERE 0=1
kksfbc 16173533: parse err=6550 hd=35185e4278 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
----- PL/SQL Stack -----
----- PL/SQL Call Stack -----
object line object
handle number name
319e277050 30 anonymous block
319e277050 57 anonymous block
PARSE ERROR: ospid=29813, error=6550 for statement:
BEGIN sys.dbms_profiler."146775420110782746251362632012"; END;
kksfbc 16173533: parse err=942 hd=3c142d8600 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
----- PL/SQL Stack -----
----- PL/SQL Call Stack -----
object line object
handle number name
319e277050 67 anonymous block
PARSE ERROR: ospid=29813, error=942 for statement:
SELECT 1 FROM plsql_profiler_data WHERE 0 = 1
Please help.
Regards
SureshHi Suresh,
Apologies for misunderstanding..
Tue Aug 13 14:13:08 2013
kksSetBindType 16173533-2: parse err=1446 hd=3c73061fb8 flg=100476 cisid=173 sid=173 ciuid=173 uid=173
PARSE ERROR: ospid=15598, error=1446 for statement:
SELECT ROWID,ORGANIZATION_CODE,PADDED_CONCATENATED_SEGMENTS,PRIMARY_UOM_CODE,REVISION,SUBINVENTORY_CODE,TOTAL_QOH,NET,RSV,ATP,ORGANIZATION_NAME,ITEM_DESCRIPTION,INVENTORY_ITEM_ID,ORGANIZATION_ID,LOCATOR_ID,LOCATOR_TYPE,ITEM_LOCATOR_CONTROL,ITEM_LOT_CONTROL,ITEM_SERIAL_CONTROL FROM MTL_ONHAND_LOCATOR_V WHERE (INVENTORY_ITEM_ID=:1) and (ORGANIZATION_ID=:2) order by ORGANIZATION_CODE,SUBINVENTORY_CODE,REVISION, organization_code, padded_concatenated_segments
Assuming you see the above error message in the alert log file, which was your original post, follow the below steps:
1 Get the 'ospid' value from the error
2. Issue the below command:
SQL> select request_id,ORACLE_PROCESS_ID
2 from fnd_concurrent_requests
3 where request_id = 15598;
3. After obtaining the request_id
4, Query it from the front-end using SYSADMIN responsibility
Hopefully this should get you the respective concurrent report/program.
Thanks &
Best Regards, -
Any known issues with SCOM 2007 R2 after upgrading to SP2 for SQL 2008 R2 ?
Are there any known or reported issues in SCOM 2007 R2 after installing SP2 for SQL server 2008 R2 ? Currently running RTM version of SQL Server 2008 R2.
Hi There,
As a testing purpose long time back i did this. I did this step by step
I installed SCOM 2007R2 with SQL server 2008 with SP1 initially.
Then upgraded to 2008 SP2.
Then upgraded to 2008 SP3
Then upgraded to 2008 R2.
Then upgraded to 2008 R2 SP1
Finally to SP2
I dint find any issue.
I just kept on adding service packs upon each other. Except for upgradation to 2008 to 2008 r2 i used the installation media then the SP1 & SP2 files. to upgrade to service packs.
If you want to go to directly SP2 i would suggest you install SP1 and then install SP2.
Every thing is fine in the LAB equipment i tried this.
Gautam.75801 -
SQL query is slow after upgrading from SQL 2008 to SQL 2008 R2
Hello
We were using SQL 2008 Standard, but after upgrading to R2, following query is much slower (takes 5 seconds instead of less than 1 second), how is this possible?
Regards, Hennie
SELECT
P.BSN,
P.Persnr,
P.Roepnaam,
P.Tussenvoegsels,
P.Achternaam,
P.Geslacht,
COALESCE (P.Achternaam + ', ' + P.Roepnaam + ' ' + P.Tussenvoegsels, P.Achternaam + ', ' + P.Roepnaam, P.Achternaam) AS naamvolledig,
P.Telmobiel,
P.Telvast,
P.Postcode,
G.groep,
COALESCE (RM.nieuweDag, GR.Dag) AS dag,
COALESCE (RM.nieuweDatum, GR.datum) AS datum,
DATEPART(ww, COALESCE (RM.nieuweDatum, GR.datum)) AS weeknummer,
DATEPART(yyyy, COALESCE (RM.nieuweDatum, GR.datum)) AS jaar,
CONVERT(VARCHAR(8),
CASE WHEN GR.ID_lokaties = 3 THEN COALESCE (RM.nieuweBegintijd,
CASE WHEN GR.Tijdspan = 2 THEN R.begintijd2 ELSE R.begintijd END)
ELSE COALESCE (RM.nieuweBegintijd, GR.begintijd) END, 108) AS begintijdberekend,
CONVERT(VARCHAR(8),
CASE WHEN GR.ID_lokaties = 3 THEN COALESCE (RM.nieuweEindtijd,
CASE WHEN GR.Tijdspan = 2 THEN R.eindtijd2 ELSE R.eindtijd END)
ELSE COALESCE (RM.nieuweEindtijd, GR.eindtijd) END, 108) AS eindtijdberekend,
CASE WHEN GR.ID_lokaties = 3 THEN
CONVERT(NCHAR(5), COALESCE (RM.nieuweBegintijd,CASE WHEN GR.Tijdspan = 2 THEN R.begintijd2 ELSE R.begintijd END), 108) + '-' +
CONVERT(NCHAR(5), COALESCE (RM.nieuweEindtijd, CASE WHEN GR.Tijdspan = 2 THEN R.eindtijd2 ELSE R.eindtijd END), 108)
ELSE CONVERT(NCHAR(5),COALESCE (RM.nieuweBegintijd, GR.begintijd), 108) + '-' + CONVERT(NCHAR(5), COALESCE (RM.nieuweEindtijd, GR.eindtijd), 108)
END AS Tijdspanne,
CASE
WHEN GR.ID_lokaties = 3 AND R.id_relaties = 9 THEN 'Werk Intern'
WHEN GR.ID_lokaties = 3 THEN R.relatienaam
ELSE L.lokatie END AS Lokatieberekend,
R.relatienaam AS relatie,
L.IntExt,
RA.Omschrijving AS roosteractiviteit,
A.instroomdatum,
A.uitstroomdatum,
TT.trajecttype,
W.Naamvolledig AS Werkcoach,
A.ID_groepen,
T.ID_personen,
A.ID_werkcoaches,
CASE
WHEN GR.ID_lokaties = 3 AND R.id_relaties = 9 THEN 20
WHEN GR.ID_lokaties = 3 THEN R.id_relaties
ELSE L.ID_relaties END AS ID_lokatieberekend,
A.ID_relaties AS ID_relatie,
R.nummer2 AS capaciteit,
GR.ID_groepsroosters,
CAST(CASE WHEN foto IS NOT NULL THEN 'Ja' ELSE NULL END AS char(2)) AS Foto,
W.Email,
W.TelefoonMobiel,
W.TelefoonVast
FROM
dbo.personen AS P INNER JOIN
dbo.trajecten AS T ON T.ID_personen = P.ID_personen INNER JOIN
dbo.trajecttype AS TT ON T.ID_trajecttype = TT.ID_trajecttype INNER JOIN
dbo.trajectactiviteiten AS A ON A.ID_trajecten = T.ID_trajecten INNER JOIN
dbo.groepsroosters AS GR ON GR.ID_groepen = A.ID_groepen LEFT OUTER JOIN
dbo.roosteractiviteit AS RA ON GR.ID_roosteractiviteit = RA.ID_roosteractiviteit INNER JOIN
dbo.lokaties AS L ON GR.ID_lokaties = L.ID_lokaties INNER JOIN
dbo.werkcoaches AS W ON A.ID_werkcoaches = W.ID_werkcoaches INNER JOIN
dbo.groepen AS G ON A.ID_groepen = G.ID_groepen LEFT OUTER JOIN
dbo.relaties AS R ON A.ID_relaties = R.ID_relaties LEFT OUTER JOIN
dbo.roostermutaties AS RM ON P.ID_personen = RM.ID_personen AND GR.ID_groepsroosters = RM.ID_groepsroosters AND RM.aanwezig IS NULL
WHERE
(COALESCE (RM.nieuweDatum, GR.datum) BETWEEN GETDATE() - 1 AND GETDATE() + 13)
AND (COALESCE (DATEDIFF(day, COALESCE (RM.nieuweDatum, GR.datum), A.uitstroomdatum), 0) >= 0)
AND (DATEDIFF(day, A.instroomdatum, COALESCE (RM.nieuweDatum, GR.datum)) >= 0)
AND ((SELECT COUNT(*) AS Expr1
FROM dbo.roostermutaties AS RM2
WHERE (P.ID_personen = ID_personen)
AND (GR.ID_groepsroosters = ID_groepsroosters)
AND (CONVERT(VARCHAR(8), begintijdafwezig, 108) = CONVERT(VARCHAR(8),
CASE WHEN GR.ID_lokaties = 3 THEN COALESCE (RM.nieuweBegintijd,
CASE WHEN GR.Tijdspan = 2 THEN R.begintijd2 ELSE R.begintijd END)
ELSE COALESCE (RM.nieuweBegintijd, GR.begintijd) END, 108)) AND
(CONVERT(VARCHAR(8), eindtijdafwezig, 108) = CONVERT(VARCHAR(8), CASE WHEN GR.ID_lokaties = 3 THEN COALESCE (RM.nieuweEindtijd,
CASE WHEN GR.Tijdspan = 2 THEN R.eindtijd2 ELSE R.eindtijd END) ELSE COALESCE (RM.nieuweEindtijd, GR.eindtijd) END, 108))) = 0)We were using SQL 2008 Standard, but after upgrading to R2, following query is much slower (takes 5 seconds instead of less than 1 second), how is this possible?
It is not uncommon to experience performance problems following an upgrade when there are issues with original query. Non-sargable expressions like Olaf called out are often the culprit, as well as lack of useful indexes and statistics.
The optimizer cannot glean accurate row count estimates or use indexes efficiently so the resultant plan may not be optimal for the task at hand. It is only by happenstance that old plan performed better; it could just as well be the other way around,
but again only by chance since the optimizer is guessing.
You might also try using EXISTS instead of SELECT COUNT(*)...= 0:
AND EXISTS(SELECT *
FROM dbo.roostermutaties AS RM2
WHERE P.ID_personen = ID_personen
AND GR.ID_groepsroosters = ID_groepsroosters
AND CONVERT(VARCHAR(8), begintijdafwezig, 108) = CONVERT(VARCHAR(8),
CASE WHEN GR.ID_lokaties = 3 THEN COALESCE (RM.nieuweBegintijd,
CASE WHEN GR.Tijdspan = 2 THEN R.begintijd2 ELSE R.begintijd END)
ELSE COALESCE (RM.nieuweBegintijd, GR.begintijd) END, 108)
AND CONVERT(VARCHAR(8), eindtijdafwezig, 108) = CONVERT(VARCHAR(8), CASE WHEN GR.ID_lokaties = 3 THEN COALESCE (RM.nieuweEindtijd,
CASE WHEN GR.Tijdspan = 2 THEN R.eindtijd2 ELSE R.eindtijd END) ELSE COALESCE (RM.nieuweEindtijd, GR.eindtijd) END, 108))
Dan Guzman, SQL Server MVP, http://www.dbdelta.com -
SSIS failed to execute in SSDT-BI for Visual studio 2012 after SQL 2012 SP2 upgrade
Hello,
I have applied sql server 2012 sp2 on my dev workstation and I am currently having this error message when trying to execute a SSIS package from SSDT-BI for visual studio 2012 : "Method
not found: 'Boolean Microsoft.SqlServer.Dts.Design.VisualStudio2012Utils.IsVisualStudio2012ProInstalled()'. (Microsoft.DataTransformationServices.VsIntegration)"
I found this link on SSIS forum :
IsVisualStudio2012ProInstalled() method not found error when running an SSIS package from VS2012
I don't have neither Gacutil.exe nor Visual studio professional installed so it can't be fixed this way... and anyway, this means we will use the old assembly version of ssis...
sql server 2012 sp2 setup doesn't apply to SSDT-BI 2012 ?
what can we do ?
thanks,
StéphaneHi Stephane Guilleminot,
According to your description, you do not execute a SSIS package from SSDT-BI for visual studio 2012 after upgrading to SQL Server 2012 SP2. The workaround is still necessary to apply SP2 and CU1 for SP2 (11.0.5532), then you still have to replace Microsoft.SqlServer.Dts.Design.dll
(11.0.5532.0) with the last working version: 11.0.3412.0 from SP1 CU9.
There is similar issue about executing SSIS package after upgrading SQL Server 2012, you can review the following similar post.
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/53606f1b-38b0-48d3-a526-12cac5258d0b/vs2012-reports-failed-to-start-project-when-executing-ssis-package-after-applying-cu10-for-sql?forum=sqltools
Regards,
Sofiya Li
If you have any feedback on our support, please click
here.
Sofiya Li
TechNet Community Support -
Exception in WLPI after upgrading to WLI 2.0 SP4 from SP2
Environment is :
WLS 6.0 SP2 and WLI 2.0 SP4 on Solaris 2.8.
We get the following exception when the server starts up and tries to deploy
wlpi-mdb-ejb.jar. This started only after upgrading to WLI 2.0 SP4 from WLI
2.0 SP2.
Any help will be highly appreciated.
####<Feb 12, 2002 6:08:49 PM PST> <Info> <J2EE> <spruce> <edevServer31>
<main> <system> <> <160003> <Deployed : wlpi-master-ej
b.jar>
####<Feb 12, 2002 6:08:49 PM PST> <Info> <EJB> <spruce> <edevServer31>
<main> <system> <> <010008> <EJB Deploying file: wlpi-m
db-ejb.jar>
####<Feb 12, 2002 6:08:50 PM PST> <Info> <EJB> <spruce> <edevServer31>
<main> <system> <> <010052> <An exception occurred whil
e creating the freepool.>
java.rmi.RemoteException: Error in the bean's constructor : ; nested
exception is:
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException:
java.lang.ExceptionInInitializerError:
weblogic.ejb20.internal.MethodPermissionEx
ception: Security violation: insufficient permission to access method
at
weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:91)
at
weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java
:55)
at
com.bea.wlpi.server.plugin.PluginManagerCfgBeanEOImpl.getState(PluginManager
CfgBeanEOImpl.java:1411)
at
com.bea.wlpi.server.plugin.PluginManagerImpl.refreshState(PluginManagerImpl.
java:187)
at
com.bea.wlpi.server.plugin.PluginManagerImpl.<init>(PluginManagerImpl.java:1
72)
at
com.bea.wlpi.server.eventprocessor.EventProcessor.<clinit>(EventProcessor.ja
va:37)
at
com.bea.wlpi.server.eventlistener.EventListenerBean.ejbCreate(EventListenerB
ean.java:47)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.ejb20.internal.MessageDrivenEJBHome.createBean(MessageDrivenEJBHome
.java:297)
at
weblogic.ejb20.pool.MessageDrivenPool.createBean(MessageDrivenPool.java:98)
at weblogic.ejb20.pool.Pool.createInitialBeans(Pool.java:100)
at weblogic.ejb20.pool.Pool.<init>(Pool.java:74)
at weblogic.ejb20.pool.EntityPool.<init>(EntityPool.java:34)
at
weblogic.ejb20.pool.MessageDrivenPool.<init>(MessageDrivenPool.java:43)
at
weblogic.ejb20.deployer.MessageDrivenBeanInfoImpl.getPool(MessageDrivenBeanI
nfoImpl.java:336)
at
weblogic.ejb20.deployer.MessageDrivenBeanInfoImpl.deploy(MessageDrivenBeanIn
foImpl.java:403)
at
weblogic.ejb20.deployer.Deployer.deployDescriptor(Deployer.java:1105)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:908)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:31)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:327)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
Target.java:277)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
eploymentTarget.java:232)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
entTarget.java:192)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy0.updateDeployments(Unknown Source)
Regards,
AdarshHi Feng,
In 2.0.10, we strictly evualuate the xpath queries:
1. According to bpel spec 1.1 section 14.3, xpath queries should be absolute queries. you need to change query="//sessionID" to /cstaPrefix:iRequest/cstaPrefix:sessionID.
2.If your xml documents are namespace aware then you must use qualified xpath queries. in your case you have to add prefix to your query like "/tns:disconnect_cstaRequest/tns:input. So please change the unqualified query //sessionId to qualified one by just prefixing. (Same rule goes for /xmlMessage query, please change all your queries to have prefix.)
Here is the link to xpath spec which explains this in more detail.
http://www.w3.org/TR/xpath#node-tests
A QName in the node test is expanded into an expanded-name using the namespace
declarations from the expression context. This is the same way expansion is
done for element type names in start and end-tags except that the default
namespace declared with xmlns is not used: if the QName does not have a
prefix, then the namespace URI is null (this is the same way attribute names
are expanded). It is an error if the QName has a prefix for which there is no
namespace declaration in the expression context. -
System exception code 0xc0000005 after upgrading to LabVIEW 8.2
After upgrading to LabVIEW 8.2 from LabVIEW 8.0 I am continously getting a system reboot on my PXI (8187) when attempting to run my real time loops which worked fine with LabVIEW 8.0. The loops seem to start, and within less than a 30 seconds the system reboots. Upon reboot a message is displayed reboot due to system error. After running and getting this error again the system reboots into safe mode. Looking at the nirtlog file on the PXI, there is system crash log which list the exception code as 0xC0000005 and a listing of loaded dlls.
Does anyone have any idea what may be leading to this?
Thanks,
KevinThe following is a simple example that produces the exception and reboots the PXI. This VI was originally created on a machine with LabVIEW version 8.0 and run on a PXI-8187 w/ RealTime version 8 and it ran without issue. I then took the VI to a machine running LabVIEW 8.2, I opened the VI, which compiled it to version 8.2, and ran it on another PXI-8187 w/ RealTime version 8.2 and I got a system exception and the PXI rebooted. If I run the two loops at the same priority level, it seems to run without issue. Also if I run with the loops at different priority levels and place a check in the Discard Missed Periods and in the Maintain Original Phase of the lower priority loop, it seems to run fine as well. However if I uncheck either the Discard Missed Periods or the Maintain Original Phase (as is set in the attached VI) the exception will occur. Any thoughts on what is going on, am I doing something wrong?
Thanks,
Kevin
Attachments:
TestLoop.vi 155 KB -
Come back to PL/SQL block after being kicked out by Exception!!!
Hi All,
Is there any way to come back into the PL/SQL block after coming out of the block by raising the Exception?
Regards,
R.You cannot jump back to the executeion section from its corresponding exception handler. If you wanted to continue processing after handling the exception, then handle exception locally.
BEGIN
BEGIN
<code that can raise exception> ;
EXCEPTION
END ;
<continue with the rest of the logic> ;
END ; -
After upgrading my iPad will do nothing except refuse to take a charge display a black screen or a battery red line or the occasional apple logo. Have tried soft boot and hard boot and nothing!,!
Hello there, Victoria.
Great job on troubleshooting on your own. The following Knowledge Base article offers up some great steps to review and additional recomendations:
iPhone and iPod touch: Charging the battery
http://support.apple.com/kb/HT1476
Resolving issues
If your battery doesn't charge, or if your device shows a low-battery image, black screen, or "accessory not supported" alert, follow these steps.
Inspect the connector at the bottom of the phone:
Make sure that there are no bent pins in the connector.
Make sure that the connector is free from debris.
If there are bent pins or debris, please contact Apple Support.
Otherwise, continue troubleshooting.
Make sure that the outlet you're using works.
Make sure that the Apple USB cable and Apple USB power adapter work.
Plug the device in to power and let it charge until your device turns on. This could take between 10 and 30 minutes. If you don't have an Apple USB power adapter, try connecting to a computer's high-power USB 2.0 port (not a keyboard). The computer must be on.
If the device still exhibits an issue, try turning your device off and then on again while connected to power.
If the issue persists, please contact Apple Support.
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro.
Maybe you are looking for
-
How to change sequence settings without CC 7.1 update?
Well, i was hoping that Adobe will release 7.1 update on October 15th, as promised on some websites. I don't recall, maybe it was Creative COW or any other. That's why i have created 720p PRORES proxies for 9x multi-camera live performance shoot whic
-
IPhone headset not working correctly on iPad
The playback controls on my Apple Earphones with Remote and Mic from my iPhone 4 don't seem to work on my iPad 3. Is thre a setting I am missing to activate that function. They worked on my original iPad and they work on my iPhone 4. Any ideas??
-
How to enable rear speakers (old creative ca
i've a quite old sound card by creative and i am using Windows XP. the sound card name displayed in device manager is 'Creative AudioPCI' and in sound settings through control panel its name appears as 'Creative Sound Blaster PCI' i've creative inspi
-
Error when trying to configure Manage Data Refresh
Hello, I recieve the following error when clicking on the "Manage Data Refresh" button: " Cannot make a cache safe URL for filename "1037/styles/powerpivot.css", file not found. Please check the file in the layout library". I'll really appreciate any
-
Problems saving pictures from Facebook
I recently downloaded the IOS 6 onto my iphone 4. I now cannot save pictures from the Live feed on Facebook like I use too. I can save pictures from safari and take screen shots still though. My coworker has a iphone 4s and she does not seem to have