Pl/sql boolean expression short circuit behavior and the 10g optimizer
Oracle documents that a PL/SQL IF condition such as
IF p OR q
will always short circuit if p is TRUE. The documents confirm that this is also true for CASE and for COALESCE and DECODE (although DECODE is not available in PL/SQL).
Charles Wetherell, in his paper "Freedom, Order and PL/SQL Optimization," (available on OTN) says that "For most operators, operands may be evaluated in any order. There are some operators (OR, AND, IN, CASE, and so on) which enforce some order of evaluation on their operands."
My questions:
(1) In his list of "operators that enforce some order of evaluation," what does "and so on" include?
(2) Is short circuit evaluation ALWAYS used with Boolean expressions in PL/SQL, even when they the expression is outside one of these statements? For example:
boolvariable := p OR q;
Or:
CALL foo(p or q);
This is a very interesting paper. To attempt to answer your questions:-
1) I suppose BETWEEN would be included in the "and so on" list.
2) I've tried to come up with a reasonably simple means of investigating this below. What I'm attempting to do it to run a series of evaluations and record everything that is evaluated. To do this, I have a simple package (PKG) that has two functions (F1 and F2), both returning a constant (0 and 1, respectively). These functions are "naughty" in that they write the fact they have been called to a table (T). First the simple code.
SQL> CREATE TABLE t( c1 VARCHAR2(30), c2 VARCHAR2(30) );
Table created.
SQL>
SQL> CREATE OR REPLACE PACKAGE pkg AS
2 FUNCTION f1( p IN VARCHAR2 ) RETURN NUMBER;
3 FUNCTION f2( p IN VARCHAR2 ) RETURN NUMBER;
4 END pkg;
5 /
Package created.
SQL>
SQL> CREATE OR REPLACE PACKAGE BODY pkg AS
2
3 PROCEDURE ins( p1 IN VARCHAR2, p2 IN VARCHAR2 ) IS
4 PRAGMA autonomous_transaction;
5 BEGIN
6 INSERT INTO t( c1, c2 ) VALUES( p1, p2 );
7 COMMIT;
8 END ins;
9
10 FUNCTION f1( p IN VARCHAR2 ) RETURN NUMBER IS
11 BEGIN
12 ins( p, 'F1' );
13 RETURN 0;
14 END f1;
15
16 FUNCTION f2( p IN VARCHAR2 ) RETURN NUMBER IS
17 BEGIN
18 ins( p, 'F2' );
19 RETURN 1;
20 END f2;
21
22 END pkg;
23 /
Package body created.Now to demonstrate how CASE and COALESCE short-circuits further evaluations whereas NVL doesn't, we can run a simple SQL statement and look at what we recorded in T after.
SQL> SELECT SUM(
2 CASE
3 WHEN pkg.f1('CASE') = 0
4 OR pkg.f2('CASE') = 1
5 THEN 0
6 ELSE 1
7 END
8 ) AS just_a_number_1
9 , SUM(
10 NVL( pkg.f1('NVL'), pkg.f2('NVL') )
11 ) AS just_a_number_2
12 , SUM(
13 COALESCE(
14 pkg.f1('COALESCE'),
15 pkg.f2('COALESCE'))
16 ) AS just_a_number_3
17 FROM user_objects;
JUST_A_NUMBER_1 JUST_A_NUMBER_2 JUST_A_NUMBER_3
0 0 0
SQL>
SQL> SELECT c1, c2, count(*)
2 FROM t
3 GROUP BY
4 c1, c2;
C1 C2 COUNT(*)
NVL F1 41
NVL F2 41
CASE F1 41
COALESCE F1 41We can see that NVL executes both functions even though the first parameter (F1) is never NULL. To see what happens in PL/SQL, I set up the following procedure. In 100 iterations of a loop, this will test both of your queries ( 1) IF ..OR.. and 2) bool := (... OR ...) ).
SQL> CREATE OR REPLACE PROCEDURE bool_order ( rc OUT SYS_REFCURSOR ) AS
2
3 PROCEDURE take_a_bool( b IN BOOLEAN ) IS
4 BEGIN
5 NULL;
6 END take_a_bool;
7
8 BEGIN
9
10 FOR i IN 1 .. 100 LOOP
11
12 IF pkg.f1('ANON_LOOP') = 0
13 OR pkg.f2('ANON_LOOP') = 1
14 THEN
15 take_a_bool(
16 pkg.f1('TAKE_A_BOOL') = 0 OR pkg.f2('TAKE_A_BOOL') = 1
17 );
18 END IF;
19
20 END LOOP;
21
22 OPEN rc FOR SELECT c1, c2, COUNT(*) AS c3
23 FROM t
24 GROUP BY
25 c1, c2;
26
27 END bool_order;
28 /
Procedure created.Now to test it...
SQL> TRUNCATE TABLE t;
Table truncated.
SQL>
SQL> var rc refcursor;
SQL> set autoprint on
SQL>
SQL> exec bool_order(:rc);
PL/SQL procedure successfully completed.
C1 C2 C3
ANON_LOOP F1 100
TAKE_A_BOOL F1 100
SQL> ALTER SESSION SET PLSQL_OPTIMIZE_LEVEL=0;
Session altered.
SQL> exec bool_order(:rc);
PL/SQL procedure successfully completed.
C1 C2 C3
ANON_LOOP F1 200
TAKE_A_BOOL F1 200The above shows that the short-circuiting occurs as documented, under the maximum and minimum optimisation levels ( 10g-specific ). The F2 function is never called. What we have NOT seen, however, is PL/SQL exploiting the freedom to re-order these expressions, presumably because on such a simple example, there is no clear benefit to doing so. And I can verify that switching the order of the calls to F1 and F2 around yields the results in favour of F2 as expected.
Regards
Adrian
Similar Messages
-
Airport Express short circuit A1264
Hi,
The Airport Express model A1264 at my inlaws stopped working all of a sudden last year, for now apparent reason. They bought newer version, but I kept the old one. Cleaning my closet and pondering to throw it away, I decided to take it apart. To my surprise I discovered burn-marks of a apparent short-circuit.
Anybody else had this experience and should I report this?
Thanx.The power supply inside the AirPort Express failed....a somewhart normal occurence if the Express has been in use for several years. I rarely got more than 3 years use out of the older version of the AiPort Express. Some users do better, some worse.
The newer version of the Express....introduced about a year ago....runs much cooler, so hopefully it will have a longer average life than the older versions. -
Having issues with getting SQL Server Express to start services and run.
Good afternoon everyone,
I have been working on a 2012 R2 server getting ready to move databases to new hardware. I had SQL Server Express 2008 R2 running on this server with no issues. I was handed another software package that ran SQL Express 2012 and had to for compatibility
reasons. I have had multiple versions run on Server 2012 before with no issues. This time, not so lucky. When the installer from the updated package put on SQL Express 2012 it completed with errors ( error log posted at the end of post) and
would not allow me to run software. I then tried the db that I had installed on 2008 R2 and it also gave the same error as the 2012 version. IN basic terms the required services attempted to start and shut back down again. I have received
Error 1068 about database handles and error %%945. I know this db has plenty of space and the permissions were added for the Admin account to access both db's. I then uninstalled both versions and tried again, with the same errors listed when
I tried to start the services. I am thinking that a clean install would fix the issue however I am not certain what files/folders/reg entries need to be deleted or modified. I have researched all the errors I can find, however I am very
new with SQL anything so I know I am missing something. I also do not have an "E:" drive on this server (not sure why it is going there). Input would be very welcome as I am not certain where to go from here.
Thanks,
Matt
Error Log follows, server and domain names have been blacked out with ****.
2015-04-15 11:57:55.16 Server Microsoft SQL Server 2012 (SP1) - 11.0.3128.0 (X64)
Dec 28 2012 20:23:12
Copyright (c) Microsoft Corporation
Express Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)
2015-04-15 11:57:55.16 Server (c) Microsoft Corporation.
2015-04-15 11:57:55.16 Server All rights reserved.
2015-04-15 11:57:55.16 Server Server process ID is 4104.
2015-04-15 11:57:55.16 Server System Manufacturer: 'HP', System Model: 'ProLiant ML350p Gen8'.
2015-04-15 11:57:55.16 Server Authentication mode is WINDOWS-ONLY.
2015-04-15 11:57:55.16 Server Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\Log\ERRORLOG'.
2015-04-15 11:57:55.17 Server The service account is 'NT AUTHORITY\LOCAL SERVICE'. This is an informational message; no user action is required.
2015-04-15 11:57:55.17 Server Registry startup parameters:
-d C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA\master.mdf
-e C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\Log\ERRORLOG
-l C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA\mastlog.ldf
2015-04-15 11:57:55.17 Server Command Line Startup Parameters:
-s "SQLEXPRESS"
2015-04-15 11:57:55.48 Server SQL Server detected 1 sockets with 6 cores per socket and 12 logical processors per socket, 12 total logical processors; using 8 logical processors based on SQL Server licensing. This is an informational message;
no user action is required.
2015-04-15 11:57:55.48 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2015-04-15 11:57:55.48 Server Detected 8157 MB of RAM. This is an informational message; no user action is required.
2015-04-15 11:57:55.48 Server Using conventional memory in the memory manager.
2015-04-15 11:57:55.68 Server This instance of SQL Server last reported using a process ID of 7840 at 4/15/2015 11:57:47 AM (local) 4/15/2015 3:57:47 PM (UTC). This is an informational message only; no user action is required.
2015-04-15 11:57:55.68 Server Node configuration: node 0: CPU mask: 0x00000000000000ff:0 Active CPU mask: 0x00000000000000ff:0. This message provides a description of the NUMA configuration for this computer. This is an informational message
only. No user action is required.
2015-04-15 11:57:55.69 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.
2015-04-15 11:57:55.72 Server Software Usage Metrics is disabled.
2015-04-15 11:57:55.73 spid5s Starting up database 'master'.
2015-04-15 11:57:55.79 spid5s 20 transactions rolled forward in database 'master' (1:0). This is an informational message only. No user action is required.
2015-04-15 11:57:55.79 spid5s 0 transactions rolled back in database 'master' (1:0). This is an informational message only. No user action is required.
2015-04-15 11:57:55.80 Server CLR version v4.0.30319 loaded.
2015-04-15 11:57:55.86 spid5s Service Master Key could not be decrypted using one of its encryptions. See sys.key_encryptions for details.
2015-04-15 11:57:55.89 Server Common language runtime (CLR) functionality initialized using CLR version v4.0.30319 from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\.
2015-04-15 11:57:55.91 spid5s SQL Server Audit is starting the audits. This is an informational message. No user action is required.
2015-04-15 11:57:55.91 spid5s SQL Server Audit has started the audits. This is an informational message. No user action is required.
2015-04-15 11:57:55.94 spid5s SQL Trace ID 1 was started by login "sa".
2015-04-15 11:57:55.94 spid5s Server name is '********\SQLEXPRESS'. This is an informational message only. No user action is required.
2015-04-15 11:57:55.96 spid5s Failed to verify Authenticode signature on DLL 'C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\Binn\ftimport.dll'.
2015-04-15 11:57:55.96 spid5s Starting up database 'msdb'.
2015-04-15 11:57:55.96 spid9s Starting up database 'mssqlsystemresource'.
2015-04-15 11:57:55.96 spid5s Error: 17204, Severity: 16, State: 1.
2015-04-15 11:57:55.96 spid5s FCB::Open failed: Could not open file e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\MSDBData.mdf for file number 1. OS error: 3(The system cannot find the path specified.).
2015-04-15 11:57:55.96 spid5s Error: 5120, Severity: 16, State: 101.
2015-04-15 11:57:55.96 spid5s Unable to open the physical file "e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\MSDBData.mdf". Operating system error 3: "3(The system cannot find the path specified.)".
2015-04-15 11:57:55.96 spid5s Error: 17207, Severity: 16, State: 1.
2015-04-15 11:57:55.96 spid5s FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\MSDBLog.ldf'.
Diagnose and correct the operating system error, and retry the operation.
2015-04-15 11:57:55.96 spid5s File activation failure. The physical file name "e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\MSDBLog.ldf" may be incorrect.
2015-04-15 11:57:55.99 spid9s The resource database build version is 11.00.3000. This is an informational message only. No user action is required.
2015-04-15 11:57:56.02 spid12s A self-generated certificate was successfully loaded for encryption.
2015-04-15 11:57:56.03 spid12s Server is listening on [ 'any' <ipv6> 53345].
2015-04-15 11:57:56.03 spid12s Server is listening on [ 'any' <ipv4> 53345].
2015-04-15 11:57:56.03 spid12s Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\SQLEXPRESS ].
2015-04-15 11:57:56.03 spid12s Server named pipe provider is ready to accept connection on [ \\.\pipe\MSSQL$SQLEXPRESS\sql\query ].
2015-04-15 11:57:56.04 spid12s Dedicated administrator connection support was not started because it is disabled on this edition of SQL Server. If you want to use a dedicated administrator connection, restart SQL Server using the trace flag 7806.
This is an informational message only. No user action is required.
2015-04-15 11:57:56.04 Server SQL Server is attempting to register a Service Principal Name (SPN) for the SQL Server service. Kerberos authentication will not be possible until a SPN is registered for the SQL Server service. This is an informational
message. No user action is required.
2015-04-15 11:57:56.04 Server The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc/********.****.local:SQLEXPRESS ] for the SQL Server service. Windows return code: 0xffffffff, state: 53.
Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been
manually registered.
2015-04-15 11:57:56.04 Server The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc/********.****.local:53345 ] for the SQL Server service. Windows return code: 0xffffffff, state: 53. Failure
to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually
registered.
2015-04-15 11:57:56.09 spid9s Starting up database 'model'.
2015-04-15 11:57:56.10 spid9s Error: 17204, Severity: 16, State: 1.
2015-04-15 11:57:56.10 spid9s FCB::Open failed: Could not open file e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\model.mdf for file number 1. OS error: 3(The system cannot find the path specified.).
2015-04-15 11:57:56.10 spid9s Error: 5120, Severity: 16, State: 101.
2015-04-15 11:57:56.10 spid9s Unable to open the physical file "e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\model.mdf". Operating system error 3: "3(The system cannot find the path specified.)".
2015-04-15 11:57:56.10 spid9s Error: 17207, Severity: 16, State: 1.
2015-04-15 11:57:56.10 spid9s FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\modellog.ldf'.
Diagnose and correct the operating system error, and retry the operation.
2015-04-15 11:57:56.10 spid9s File activation failure. The physical file name "e:\sql11_main_t.obj.x86release\sql\mkmastr\databases\objfre\i386\modellog.ldf" may be incorrect.
2015-04-15 11:57:56.10 spid9s Error: 945, Severity: 14, State: 2.
2015-04-15 11:57:56.10 spid9s Database 'model' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details.
2015-04-15 11:57:56.10 spid9s SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
Hi HMLunger,
Did you install the SQL Server instance successfully? If not, please help to post the summary and detail logs for analysis. By default, the logs can be found in: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log.
However, if you fail to start SQL Server Express service after successfully installing SQL Server,
you might have to change the paths of the files by running the following scripts from the command prompt. For more details, please review this similar
thread.
NET START MSSQL$SQLEXPRESS /f /T3608
SQLCMD -S .\SQLEXPRESS
ALTER DATABASE model MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
ALTER DATABASE model MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
go
exit;
ALTER DATABASE msdb MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
ALTER DATABASE msdb MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
NET STOP MSSQL$SQLEXPRESS
In addition, you can follow the steps in this KB article to uninstall SQL Server.
Thanks,
Lydia Zhang
Lydia Zhang
TechNet Community Support -
Expression with Audio Amp and the Puppet tool
Hello,
I was wondering if anyone could give me a hand trying to figure out if an expression would work to accomplish the animation I am after.
I have a music file converted to Key frames based on its amplitude. I have another layer with the puppet tool mesh on it. What I am after is having the character dance to the music. I was curious if I could set up an expression so allow it to detect if the amplitude is greater than a value and move the deform position to a specific value (example: When the amplitude is greater than 15 [Drumbeat] the foot will touch the ground).
I was worried if I did this the Dance would be jerky as I have this in mind for one of the feet:
effect("Puppet").arap.mesh("Mesh 1").deform("Right").position=
if (Other Layers amplitude > 15){
position(5,5); (**position at ground**)
}else if (Other Layers amplitude > 15){
position(10,10); (**position at knee**)
}else{
value;
I know this formula currently will not work. But could a formula written do this type of movement in line with the music? Would the movements between the key frames be smooth or would the movement be jerky from one spot to the other without interpolation ?
If anyone could point me towards some information or knowledge regarding expressions and making objects "dance" I would be very much appreciative. Thanks.Conditional statements are always "jerky" - it's the nature of the beast. A branching state can only have an x number of fixed values, but none inbetween. You'd have to create different code that measures the actual temporal distance from a trigger keyframe and modulates the interpolation, contained in a loop. Depending on the density of the cues, you'd also have to define additional behaviors for how a new beat mixes/ overrides a previous one, how to smooth out ambiguous areas inbetween, flatten inactive areas and a few other things. This can become quite complex. Therefore a better solution may be to rely on available scripts (e.g. nabscript's audio amplitude scripts) or plugins such as Trapcode's Soundkeys that provide a more direct way of dealing with audio-generated data.
Mylenium -
Airport Express 801.11b/g and the neverending, unconfigurable blinking amber light
Gather round and let me tell you a tale. Once upon a time I bought an airport express 801.11b/g and I was very happy to use it for airtunes, extending a wi-fi network and the wireless printing capabilities. One day, it beagn flashing a scaaaary amber light. The base station stopped showing up in my airport utility 5.6 as well. The only way to get it to show up, was to hard reset it, and lose all the configurations I once enjoyed happily. After the hard reset, It would show up in the utility, and I would reconfigure it to do all its cool things it once did, and it would restart. But sadly, after restarting the blinking amber light came on a again. It would also not show up in the utility unless I hard reset it again, and the same thing happened over and over and over until I felt like pulling my hair out.
I decided to get another airport express a few months later, ultimately deciding that the unit must have just been defective. Bad luck. But - the second unit literally went through the SAME EXACT THING. Worked for a while, then onto the blinking amber light- hard reset- reconfigure-blinking amber light thing. Over and over and over. Just like the first one. The end.
So - either Im missing something totally fundamental or I had the misfortune of getting two defective units in a row. Both were bought used from different places, and worked "fine" for previous owners. Am I corrupting these things or what?
I have spent literally hours trying all the resets, configuring "workarounds" and nothing works. For both of them.
What do I do with these two devices? I don't need two shiny white paperweights.
Please advise,
Thanks.Yes. It seems an integral part of the set up process though, you don't have to seperately configure the airport do you?
My wireless security is WPA/WPA2 Personal. When I go through the standard network set up, it automatically enters my wireless security settings. So it doesn't really seem to give an option to specifically set that option on the airport if that makes sense?
I did go through maunual mode to try that with the same result:
If I'm using the airports own network and connect to the wifi, no security, then I'm getting airtunes from my macbook. Of course this means it's plugged into my router via ethernet which isn't any use to me as I want it in my kitchen, and would rather not limit my apple devices to b/g when I have a decent N router, and would also mean running a huge ethernet cable across my house!
The seller has said it worked for him but he's not up to scratch on his tech, so if I'm sure it's malfunctioning he'll refund. Obviously this is great news and he seems like a very nice guy so I want to be certain it's not me malfunctioning before I send it back!
So in summary I have it functioning on it's OWN network:
Wireless mode: Create a wireless network
Wireless network name: Apple Network XXXXXX
etc
Once 'wireless mode' is switched from 'create a wireless network' to 'join a wireless network' I select my current WiFi, security and password, checked the TCP/IP settings all good. Select 'Update'. Get the warning that device and network will be temporarily unavailable am I sure I want to continue. Then it goes through the same as before, says it's succesful, restarts to flashing amber with no way of accessing it unless I hard reset.
Thanks for the help so far... -
SQL SSRS 2008 DateTime Calendar Control and Oracle 10g Data Source
Hello. I am creating reports in SSRS 2008 using the calendar control for a date range. Let's say we select a start date of 3/3/2012. This parameter is sent into my SQL statement in the WHERE clause which is executed against an Oracle 10g database. All syntax has to be in SQL that Oracle understands, so no CONVERT or CAST.
The format of the date is throwing an error "ORA-01843: not a valid month" when I try to use the following:
SELECT *
FROM TABLE
WHERE STARTDATE >= TO_DATE('3/03/2012', 'MM/DD/YYYY')
I get ORA-01722: invalid number when I try the following:
SELECT *
FROM TABLE
WHERE STARTDATE >= >= TO_CHAR('3/03/2012', 'MM/DD/YYYY')
I cannot find a way to format the date parameter in SQL Server SSRS before it gets to the SQL to be executed in Oracle.
Please help.
Thanks,
Sunny920616 wrote:
sb92075: I am showing you how Oracle renders the date if I do a simple select from the table from which I am trying to pull data. You are right, it sure doesn't prove anything other than how the date looks right out of the Oracle database, but hopefully, it will give a clue as to how I need my SSRS date parameter to work.
Hans Forbrich:
I get ORA-01722: invalid number when I try the following:
SELECT *
FROM TABLE
WHERE STARTDATE >= TO_CHAR('3/03/2012', 'MM/DD/YYYY')
Solomon:
It works. The problem is getting the parameter '3/3/2012' into a usable format for Oracle.
Let's assume an application is sending in '3/3/2012' which will be used in an Oracle query (no PL/SQL allowed, nor can I create functions, stored procedures, etc - only straight up SQL). How can I prepare the parameter to successfully do the compare on the Oracle Date field?
12:50:23 SQL> select TO_CHAR('03/03/2012', 'MM/DD/YYYY') from dual;
select TO_CHAR('03/03/2012', 'MM/DD/YYYY') from dual
ERROR at line 1:
ORA-01722: invalid number
12:51:00 SQL> ed
Wrote file afiedt.buf
1* select TO_DATE('03/03/2012', 'MM/DD/YYYY') from dual
12:51:20 SQL> /
TO_DATE('03/03/2012
2012-03-03 00:00:00 -
How to "Wake-up" the USB Behavior and the CDROM drive?
Good afternoon everyone,
I have a little problem. My computer doesn't see the cdrom drive. All that I can figure out is that when I placed a thumb drive in the USB port, the computer found the device. But when I tried to ejected, it came up with device being busy. I figured that if I shut down the computer that would reset things. Wrong. Now the computer does not see the USB port and now it does not see the cdrom drive. I know that both appear under the remote disk directory. I am guessing that the volume manager is messed up. Could you get me back on track with this? Once I have this solved, then I can answer "Sunworshipper's" question in another thread.
Thank you,
FredGood afternoon,
You are right. It does appear under /cdrom. My brain isn't here. I found that I could use ejected.
Some how in clicking on different things, I have discovered that there is a nice "desktop" It did show the CD-rom disk in the computer. I clicked on that and I was able to eject the disk that way. Although it seems "nautilus" (whatever this is) doesn't like me doing that; it generated an error message. I closed it and the desk top went away.
Is it normally for the /cdrom to keep displaying a cd-rom disk that is no longer in use? How do I clear that?
I think I got the idea about the rmdisk, because that is where the USB device had once appeared. Since I had the volume manager running, I decided to insert the USB device. The computer wanted to reformat it. I answered "No," but I don't know where it is. What else do I need to do?
Thank you,
Fred -
Please, advice how to optimize optimizer_index_cost and the other optimizer
I need to tune my performance. I have too many db_file_sequential read due to index lookups. The tables are Large and indexes are also large. I would like to only cache the indexes that are actually used.
Please, advice how to tune optimizer_index_cost and the other optimizer_index parameters.
Thanks a lot,
MJOracle will only cache blocks from objects that are used. I'm not sure, therefore, what it is you are trying to cache (or not cache) here.
What version of Oracle are you using? Assuming you're using 9i or later, gathering system statistics is generally preferrable to adjusting optimizer initialization parameters.
You are also in the somewhat unique position of, apparently, complaining that the CBO is using too many indexes rather than doing full table scans. While it is certainly true that full table scans may be more efficient than index lookups, it is pretty rare for the CBO to erroneously use indexes when it shouldn't-- it tends to be much less index hungry than the RBO was, for example. It sounds like you likely have inefficient SQL that needs to be tuned, not that you have initialization parameters to tune.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Does the 6033E have any type of short circuit protection on the 5v line?
This is not a problem, but seeking information to correspond to a design consideration between my test platform and UUT.
The 5 V line on your board is fused. The KnowledgeBase below lists the type of fuse used on the 6033E:
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/e1f4d5736d91a625862560b6005bf81f?OpenDocument
Regards,
Erin -
Short-circuiting boolean expressions
There is a term used in other languages to describe the behavior of compiled code which evaluates boolean expressions: short circuiting. Basically, it means that if a term in an expression determines its value, then following terms never get evaluated, since they are irrelevant. For example, I have noticed that this always works in AppleScript:
if class of x is not integer or x > 32 then . . . .
But this will throw an exception if x is something that can’t be coerced into a number:
if x > 32 or class of x is not integer then . . . .
It looks to me that the reason the first always works is that Applescript is short-circuiting, and therefore there is no attempt to evaluate the inequality if x is of inappropriate class.
Does anyone know if Applescript’s behavior is sufficiently well defined that I can be confident it will always short circuit? I know I can avoid the issue by breaking such expressions into separate, nested, if statements. If there is no such assurance that is what I will probably make a habit of doing. But I thought I'd ask if this is really necessary.Hello
Short-circuiting is well-defined in AppleScript.
cf. ASLG > Operator References (p.179 of ASLG pdf)
http://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/Appl eScriptLangGuide/AppleScriptLanguageGuide.pdf
Regards,
H -
Search MessageSelector sample for complex boolean express with AND, OR, NOT
As far as I know I can specify in the "Message Selector" field of a JMS-PartnerLink
a boolean expression.
How are AND, OR and NOT written here? Can I use brackets?
Can I use blanks inside the boolean expression?
Assume I would like to specify:
((myfield1 > 3.0) && (myfield2 == 777)) || (myfield3 != 'aaa')
Is the syntax correct for this?http://www.mcs.csueastbay.edu/support/oracle/doc/10.2/server.102/b14257/jm_create.htm
11.3 JMS Point-to-Point Model Features/MessageSelector
that will give you some examples of how to use it -
SQL Server Express 2014 CTP2 LocalDB
I just installed 2014 SQL Express and everything looked like it worked just fine.
Too fine for my own good because it updated the database files to version 782 and now I am stuck.
I cannot get SQL Server Management Studio nor VS 2013 Express to connect to LocalDB v12.0, only to LocalDB v11.0, but the latter does not read version 782 data base files.
The Discovery Report shows that LocalDB v.12 has been configured. But when I try to connect with "(LocalDB)\v12.0" I get "Cannot connect..." It can still connect with "(LocalDB)\v11.0" but than cannot open the v.782
data bases.
And when I try to open an SQLexpress database in VS 2013 Express it comes back with "An incompatible SQL Server version was detected."Hello ,
Do you know these links ?
http://msdn.microsoft.com/en-us/library/hh510202(v=sql.120).aspx
http://social.technet.microsoft.com/wiki/contents/articles/4609.troubleshoot-sql-server-2012-express-localdb.aspx
You may have problems with access permissions on the files of the database ( see at the end of the 2nd link ). The user must be added to the list of authorized users to connect and so on.
There was also a similar problem of connection for applications created with VS 2010 towards localdb 2012.
See also the articles from the SQL Server Express Weblog ( for 2012 but the remarks could be always interesting )
http://blogs.msdn.com/b/sqlexpress/archive/2011/11/28/using-localdb-in-visual-studio-2010.aspx
http://blogs.msdn.com/b/sqlexpress/archive/2011/10/28/localdb-where-is-my-database.aspx
http://blogs.msdn.com/b/sqlexpress/archive/2011/10/27/net-framework-4-now-supports-localdb.aspx
Please , could you explain how you have created your localdb on the users computers ?
I am surprised by your short error message ( I think that you have not provided the full error message ).
Have a nice day
PS : as you are using a SQL Server Express 2014 CTP2 , it is possible that the RTM version could solve your problem. I have applied always a rule : I never install an application using a new version of SQL Server before the release of the SP1.
Mark Post as helpful if it provides any help.Otherwise,leave it as it is. -
I have tried installing SQL Server 2008 multiple times on my machine, and I always receive this error about 3/4 of the way through: '' is not a valid login or you do not have permission.
I have tried installing both SQL Server Express 2008 with Tools and SQL Server Express 2008 with Advanced Services, and they both fail the same way. I am trying to do a new stand-alone installation.
I'm running Windows XP Home Edition SP3.
Looking into the error, some forums say I have to install it from THE Administrator account, and not an account with administrator permissions; it also cannot be in Safe Mode, because then the Windows Installer won't work. Unfortunately, I haven't been able to login to the Administrator account. I can go to the home login screen, do ctrl+alt+del twice, and attempt to login to the Administrator account, but I receive this error: Unable to Log You on because of an Account Restriction.
Other forums say that in the Server Configuration section, all you have to do is provide the username and a strong password from an administrative account on the computer, and it doesn't have to be THE Administrator. Well, I did that, but for some reason it doesn't recognize my username and password, it says something like "The credentials you provided for the SQL Server Agent are invalid". BUT THOSE ARE THE CORRECT CREDENTIALS FOR MY ADMINISTRATIVE USER! So I'm forced to use one of the accounts without a password, like NT AUTHORITY\SYSTEM. That's the only way I can get past this step.
Also, just FYI, on the next step, which is Database Engine Configuration, I am using Mixed Mode for the Security Mode. I AGAIN provide a password, and then add my current user (who IS an administrator on my machine!) to the SQL Server Administrators box.
But yet, it fails every single time.
This is pathetic and ridiculous. I must have tried to install this thing 15 times, that is not an exaggeration. I'm posting this on several other forums as well, maybe an MVP or Bill Gates himself can help me.
I have one of the log files from a failed installation. If someone would like to see it, I will post it.Papy Normand wrote:
Hello,
Please, could you have a look on the excellent answer of Mike Wachal you will find here :
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=4160294&SiteID=1
Don't hesitate to post again for more help or explanations
Have a nice day
PS : if you are talking about the Sql Server Agent Service, it is disabled for Sql Server Express. It is enabled only for the Workgroup/Standard/Dev and Entreprise Editions
Sorry, but I've tried the suggestion in that link, and it hasn't helped me.
For anyone wonder, the link is talking about the problem in Server Configuration where I enter my Windows user account and password (which is in the Administrative group), but it says the credentials are invalid. The link suggests that you need to either enter your Windows account (which I did, and it wouldn't let me go to the next step), or to use one of the built in accounts (which I also tried, but it gave me the " '' is not a valid login" error during the installation).
Any other ideas?
I haven't had any answers from any other forums either, so I'll just post my log file in case anyone wants to look at this:
Overall summary:
Final result: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
Exit code (Decimal): -2068643839
Exit facility code: 1203
Exit error code: 1
Exit message: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
Start time: 2008-11-17 11:13:47
End time: 2008-11-17 12:17:25
Requested action: Install
Log with failure: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20081117_110917\Detail.txt
Exception help link: http%3a%2f%2fgo.microsoft.com%2ffwlink%3fLinkId%3d20476%26ProdName%3dMicrosoft%2bSQL%2bServer%26EvtSrc%3dsetup.rll%26EvtID%3d50000%26ProdVer%3d10.0.1600.22%26EvtType%3d0xBE029E38%400x12C2466D
Machine Properties:
Machine name: STEVEN
Machine processor count: 2
OS version: Windows XP
OS service pack: Service Pack 3
OS region: United States
OS language: English (United States)
OS architecture: x86
Process architecture: 32 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID Feature Language Edition Version Clustered
Package properties:
Description: SQL Server Database Services 2008
SQLProductFamilyCode: {628F8F38-600E-493D-9946-F4178F20A8A9}
ProductName: SQL2008
Type: RTM
Version: 10
SPLevel: 0
Installation location: D:\x86\setup\
Installation edition: DEVELOPER
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: False
AGTSVCACCOUNT: NT AUTHORITY\SYSTEM
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Manual
ASBACKUPDIR: C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Config
ASDATADIR: C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Data
ASDOMAINGROUP: <empty>
ASLOGDIR: C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log
ASPROVIDERMSOLAP: 1
ASSVCACCOUNT: NT AUTHORITY\SYSTEM
ASSVCPASSWORD: *****
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: STEVEN\Steven
ASTEMPDIR: C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Temp
BROWSERSVCSTARTUPTYPE: Disabled
CONFIGURATIONFILE: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20081117_110917\ConfigurationFile.ini
ENABLERANU: False
ERRORREPORTING: False
FEATURES: SQLENGINE,REPLICATION,FULLTEXT,AS,RS,BIDS,CONN,IS,BC,SDK,BOL,SSMS,ADV_SSMS,SNAC_SDK,OCS
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <empty>
FTSVCACCOUNT: NT AUTHORITY\LOCAL SERVICE
FTSVCPASSWORD: *****
HELP: False
INDICATEPROGRESS: False
INSTALLSHAREDDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSHAREDWOWDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSQLDATADIR: <empty>
INSTANCEDIR: C:\Program Files\Microsoft SQL Server\
INSTANCEID: MSSQLSERVER
INSTANCENAME: MSSQLSERVER
ISSVCACCOUNT: NT AUTHORITY\SYSTEM
ISSVCPASSWORD: *****
ISSVCSTARTUPTYPE: Automatic
MEDIASOURCE: D:\
NPENABLED: 0
PID: *****
QUIET: False
QUIETSIMPLE: False
RSINSTALLMODE: DefaultNativeMode
RSSVCACCOUNT: NT AUTHORITY\SYSTEM
RSSVCPASSWORD: *****
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: SQL
SQLBACKUPDIR: <empty>
SQLCOLLATION: SQL_Latin1_General_CP1_CI_AS
SQLSVCACCOUNT: NT AUTHORITY\SYSTEM
SQLSVCPASSWORD: *****
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: STEVEN\Steven
SQLTEMPDBDIR: <empty>
SQLTEMPDBLOGDIR: <empty>
SQLUSERDBDIR: <empty>
SQLUSERDBLOGDIR: <empty>
SQMREPORTING: False
TCPENABLED: 0
X86: False
Configuration file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20081117_110917\ConfigurationFile.ini
Detailed results:
Feature: Database Engine Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Failed: see details below
Configuration error code: 0x12C2466D
Configuration error description: '' is not a valid login or you do not have permission.
Configuration log: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20081117_110917\Detail.txt
Feature: SQL Client Connectivity SDK
Status: Passed
MSI status: Passed
Configuration status: Passed
Feature: SQL Server Replication
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Failed: see details below
Configuration error code: 0x12C2466D
Configuration error description: '' is not a valid login or you do not have permission.
Configuration log: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20081117_110917\Detail.txt
Feature: Full-Text Search
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Failed: see details below
Configuration error code: 0x12C2466D
Configuration error description: '' is not a valid login or you do not have permission.
Configuration log: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20081117_110917\Detail.txt
Feature: Analysis Services
Status: Passed
MSI status: Passed
Configuration status: Passed
Feature: Reporting Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Failed: see details below
Configuration error code: 0x12C2466D
Configuration error description: '' is not a valid login or you do not have permission.
Configuration log: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20081117_110917\Detail.txt
Feature: Integration Services
Status: Passed
MSI status: Passed
Configuration status: Passed
Feature: Client Tools Connectivity
Status: Passed
MSI status: Passed
Configuration status: Passed
Feature: Management Tools - Complete
Status: Passed
MSI status: Passed
Configuration status: Passed
Feature: Management Tools - Basic
Status: Passed
MSI status: Passed
Configuration status: Passed
Feature: Client Tools SDK
Status: Passed
MSI status: Passed
Configuration status: Passed
Feature: Client Tools Backwards Compatibility
Status: Passed
MSI status: Passed
Configuration status: Passed
Feature: Business Intelligence Development Studio
Status: Passed
MSI status: Passed
Configuration status: Passed
Feature: SQL Server Books Online
Status: Passed
MSI status: Passed
Configuration status: Passed
Feature: Microsoft Sync Framework
Status: Passed
MSI status: Passed
Configuration status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20081117_110917\SystemConfigurationCheck_Report.htm -
Problem with Datasource for SQL Server Express
I have set up a development environment to develop some processes for the HCSO client and have a question. I have a turnkey install on my laptop with MYSQL. The liveCycle databases are in MYSQL. I have also installed SQL Server Express on this machine and created a table to query that will control workflow. I added a datasource configuration in the adobe-ds.xml configuration file. That configuration is:
<local-tx-datasource>
<jndi-name>HCSO</jndi-name>
<connection-url>jdbc:sqlserver://localhost:1433;DatabaseName=DBName</connection-url>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<user-name>username</user-name>
<password>password</password>
<min-pool-size>1</min-pool-size>
<max-pool-size>30</max-pool-size>
<blocking-timeout-millis>60000</blocking-timeout-millis>
<autoReconnect>true</autoReconnect>
<idle-timeout-minutes>15</idle-timeout-minutes>
<prepared-statement-cache-size>100</prepared-statement-cache-size>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<new-connection-sql>Select id from HCSOUser.eric</new-connection-sql>
<check-valid-connection-sql>Select id from HCSOUser.eric</check-valid-connection-sql>
<metadata>
<type-mapping>MS SQLSERVER2000</type-mapping>
</metadata>
</local-tx-datasource>
In SQL Server, I created a user and a schema with the same name in a database. I created a simple table called "eric" with one column called "id". The user was given the appropriate default schema and given full permissions on the database and table.
In workbench, I added a JDBC query single row activity. I have configured the datasource as java:/HCSO and also tried java:HCSO. I then entered the query as "Select id from HCSOUser.eric" and hit test. Nothing appears in the results area. I see the following in the server.log:
2009-09-24 14:44:26,437 ERROR [org.jboss.ejb.plugins.LogInterceptor] RuntimeException in method: public abstract java.lang.Object com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterLocal.doBMT(com.ad obe.idp.dsc.transaction.TransactionCallback) throws com.adobe.idp.dsc.DSCException:
java.lang.RuntimeException: A result set was generated for update.
at com.adobe.idp.dsc.jdbc.JDBCService.testExecute(JDBCService.java:616)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doBMT(EjbTran sactionBMTAdapterBean.java:197)
at sun.reflect.GeneratedMethodAccessor573.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 58)
at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
at $Proxy270.doBMT(Unknown Source)
at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:95)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:132)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(AbstractMessageReceiv er.java:315)
at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invokeCall(SoapSdkEndpoint. java:138)
at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invoke(SoapSdkEndpoint.java :81)
at sun.reflect.GeneratedMethodAccessor710.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter(InvocationFilter.java :43)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja va:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11P rotocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: A result set was generated for update.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerStatement$StatementExecutionRequest.executeStatemen t(Unknown Source)
at com.microsoft.sqlserver.jdbc.CancelableRequest.execute(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeRequest(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeUpdate(Unknown Source)
at org.jboss.resource.adapter.jdbc.WrappedStatement.executeUpdate(WrappedStatement.java:161)
at com.adobe.idp.dsc.jdbc.helper.SqlHelper.executeTestUpdate(SqlHelper.java:117)
at com.adobe.idp.dsc.jdbc.JDBCService.testExecute(JDBCService.java:610)
... 82 moreThanks fot the tip, but now I got a different message in the "Test" results of "Query Single Row":
Exception: Could not create connection; - nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect))
My datasource xml is like this:
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>MSSQL</jndi-name>
<connection-url>jdbc:sqlserver://localhost:1433;DatabaseName=ADOBE</connection-url>
<use-java-context>false</use-java-context>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<user-name>sa</user-name>
<password>adobe</password>
<min-pool-size>10</min-pool-size>
<max-pool-size>50</max-pool-size>
<blocking-timeout-millis>60000</blocking-timeout-millis>
<idle-timeout-minutes>15</idle-timeout-minutes>
<prepared-statement-cache-size>100</prepared-statement-cache-size>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<check-valid-connection-sql>SELECT 1 FROM sysobjects</check-valid-connection-sql>
<metadata>
<type-mapping>MS SQLSERVER2005</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
Where is the problem and how to fix it?
Thank you. -
SQL Server Express 2012 SP2 installation hangs during extract phase
Greetings!
I am having an issue with trying to silent install SQL Server Express 2012 SP2 (x86).
I have a proprietary installation framework, which is calling the SQL Server Express installer.
The SQL Server Express installer starts extracting files to c:\{some guid}. The folder reaches about 11 mb in size, and then nothing further happens. No activity on the machine, CPU or disk - I have waited up to 15 minutes to verify this. On the normal installation,
the size of this folder is ~650 mb.
Here are the things I've also tested:
- I'm experiencing these symptoms on both Windows 7 and Windows Server 2012 R2 (haven't tested other platforms)
- If I launch exactly the same command from the command prompt, the installation goes through as normal
- If I replace the SQL Server Express 2012 SP2 with SQL Server Express 2012 SP1, and install via our installation framework, the installation goes through as normal
- I have checked and double-checked that our installation framework is started with administrative privileges.
- From my previous search attempts, I have seen issues where the installer would hang or fail when launched from inside an msi, which would result in a log in C:\Program Files (x86)\Microsoft SQL Server\<something something>. These are not the symptoms
I am experiencing. The C:\Program Files (x86)\Microsoft SQL Server\ folder is not even created!
Any suggestions, or places I can look to figure out why it's not proceeding? For now, I have worked around the issue by including SP1 instead of SP2, but ideally I'd like to base my solution on the most recent service pack.Hello Alberto!
The installation framework does check for this. I'm also certain that these prerequisites are fulfilled.
When the SQL Server process hangs, I can kill the process, copy/paste the exact command that was executed from the installation framework's log files, and execute that command in a command prompt - and then the installation runs as expected.
The installation framework installs SQL Server Express correctly if I use the 2008 R2 SP1 express or the 2012 SP1 Express installer. It's just the SP2 installer that is giving me problems.
The only difference I can think of is that the installation framework is a 32-bit process, which calls the SQL Server installer, while the command prompt is a 64-bit application. I am installing the SQLEXPR_x86_ENU.exe
from http://www.microsoft.com/en-us/download/details.aspx?id=43351, so it should be compatible with my 32 bit environment -
"SQLEXPR_x86 is the same product but supports installation onto both 32-bit and 64-bit (WoW) operating systems"
Tomorrow, I will try:
- Installing on Windows 7 32-bit
- Trying to launch the SQL Server installer from a powershell (x86) prompt, to emulate a 32-bit environment on a 64-bit machine
Maybe you are looking for
-
Connecting my iPad to a smartboard
I work in a school & our smart boards are operated through apple mini macs, on my personal iPad I have interactive books that I would like to share with my class but having trouble finding out how to connect.
-
Website Design Using Adobe Flash
Hi everybody, I need some help from anyone that expert in website design using adobe flash player. Please send me a PM. Thank you Jarlabs
-
Create schemas for Reporting Data Warehouse with Oracle XE
There is the possibility to import dw house and loader with the database Oracle XE? I receive this error ORA-00439: feature not enabled: Advanced replication in CIM log. I saw that the database, we do not have the feature 'Advanced replication'. SQL>
-
Class not found error while using ikvm error code IKVMC0100: class "javax.b
hi iam writing a java application which uses bluetoth i.e. javax.bluetooth; now i need to create exe for c# i.e. my GUI is C# and business logic is java, so these are steps i have followed * created a java project (iam using netbeans 6.1) * after bui
-
Hello, I have searched several forums (including this one) for help with this problem but i havnt found anything. Basically we have been using oracle 9i client on winXP for quite some time now and are going to upgrade to windows 7 64 bit, this is in