MS SQL Server 2008 performance problem
We use TopLink 10.1.3.5 to connect to MS SQL Server 2008.
What we are seeing is that when a query is being run by TopLink a lot of cursors open up and remain open. Our database CPU usage goes up and it affects the whole application.
Our DBA took a look at it and said the database shows FETCH_APICURSOR* being used for select statements.
Is there a way to tell TopLink not to use cursors for queries?
Thanks.
Can you pin point a particular TopLink query tied to the " FETCH_APICURSOR* " call in the app and post how it is being created?
My guess is that the application is specifying the TopLink query object to return a cursor or stream and not closing it in all cases, or keeping them open for a long period - did you say they were leaking, or is it just that a large number are open at a time leading to performance problems?
This streams+cursors are described in the TopLink docs here
http://docs.oracle.com/cd/E21764_01/web.1111/b32441/qryadv.htm#CJGJBHGJ
or the 10g docs here:
http://sqltech.cl/doc/oas10gR3/web.1013/b13593/qryadv010.htm
If this is the case, you might want to use a different strategy such as pagination instead of cursors, described here:
http://docs.oracle.com/cd/E17904_01/web.1111/b32441/optimiz.htm#CHDIBGFE
Best Regards,
Chris
Similar Messages
-
OGG-00868 SQL Server 2008 has problem with ODBC in the EXTRACT process
Hello Everyone
I want to replicate tables between MS SQLServer 2008 and Oracle 10g
I have Windows XP / MS SQLServer 2008 and Oracle Database 10g R 10.2.0.1.0 running on Red Hat Linux
I followed the steps from the white paper (http://www.oracle.com/technetwork/articles/datawarehouse/oracle-sqlserver-goldengate-460262.html)
and Installed Oracle Golden Gate Version 11.2.1.0.1 (for Linux) and the Version 11.2.1.0.1 32bits (for Windows XP)
I followed all steps of the white paper without problem and I could do the initial load in
the Oracle Database from SQL Server sucessfully.
But when I tried to set and start the Extract process from SQL SERVER
a error was generated in the file c:\gg\dirrpt\MSEXT.rpt and the process is ABENDING
GGSCI > info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT STOPPED MSEXT 00:00:00 03:22:29
2013-08-25 11:59:41 ERROR OGG-00868 Executing statement for select operation Database error 213 ([Microsoft][SQL Server Native Client 10.0][SQL Server]Column name or number of supplied values does not match table definition.
[Microsoft][SQL Server Native Client 10.0][SQL Server]DBCC execution completed. If DBCC printed error messages, contact your system administrator.
[Microsoft][SQL Server Native Client 10.0][SQL Server]Column name or number of supplied values does not match table definition.
[Microsoft][SQL Server Native Client 10.0][SQL Server]DBCC execution completed. If DBCC printed error messag).
2013-08-25 11:59:41 ERROR OGG-01668 PROCESS ABENDING.
If somebody has a clue or faced something similar please let me how could solve it.
Thanks
JuanHello mb_ogg,
Yes, I had created a Data Source HR Driver= SQL Server (second Tab System DSN) and I also had tried with
the driver SQL Server Native Client 10.0 but I faced the same error.
The database by default is EMP
Below is my configuration
Microsoft SQL Server ODBC Driver Version 03.85.1117
Data Source Name: HR
Data Source Description:
Server: JUAN-XP
Database: EMP
Language: (Default)
Translate Character Data: Yes
Log Long Running Queries: No
Log Driver Statistics: No
Use Integrated Security: Yes
Use Regional Settings: No
Prepared Statements Option: Drop temporary procedures on disconnect
Use Failover Server: No
Use ANSI Quoted Identifiers: Yes
Use ANSI Null, Paddings and Warnings: Yes
Data Encryption: No
I also clicked on the button "Test Data Source" with the below messages:
Microsoft SQL Server ODBC Driver Version 03.85.1117
Running connectivity tests...
Attempting connection
Connection established
Verifying option settings
Disconnecting from server
TESTS COMPLETED SUCCESSFULLY!
Then I went to Database Properties (Right Click) /Oprtion and Recovery model field has Full value
I also made a Backup (Backup Type = Full)
The Backups was made to Disk: C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Backup\EMP.bak
Today I repeated the same steps and I got the same error (I Copied at the end):
I also have the follow question:
Is necessary define the location of the backup of MS SQL Server to say to GG where it can get it?
GSCI (juan-xp) 1> DBLOGIN SOURCEDB HR
2013-08-27 21:16:32 INFO OGG-03036 Database character set identified as win
dows-1252. Locale: en_US.
2013-08-27 21:16:32 INFO OGG-03037 Session character set identified as wind
ows-1252.
Successfully logged into database.
GGSCI (juan-xp) 3> ADD TRANDATA HRSCHEMA.EMP
Logging of supplemental log data is enabled for table hrschema.emp
GGSCI (juan-xp) 4> EDIT PARAMS DEFGEN
GGSCI (juan-xp) 5> exit
C:\gg>defgen paramfile c:\gg\dirprm\defgen.prm
Oracle GoldenGate Table Definition Generator for SQL Server
Version 11.2.1.0.2 OGGCORE_11.2.1.0.2T3_PLATFORMS_120724.2205
Windows (optimized), Microsoft SQL Server on Jul 25 2012 03:37:58
Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
Starting at 2013-08-27 21:18:23
Operating System Version:
Microsoft Windows XP Professional, on x86
Version 5.1 (Build 2600: Service Pack 2)
Process id: 3236
** Running with the following parameters **
defsfile c:\gg\dirdef\emp.def
Source Context :
SourceModule : [defgen.main]
SourceID : [defgen/defgen.c]
SourceFunction : [create_defgen_file]
SourceLine : [808]
2013-08-27 21:18:23 ERROR OGG-00037 DEFSFILE file c:\gg\dirdef\emp.def alrea
dy exists.
2013-08-27 21:18:23 ERROR OGG-01668 PROCESS ABENDING.
C:\gg>defgen paramfile c:\gg\dirprm\defgen.prm
Oracle GoldenGate Table Definition Generator for SQL Server
Version 11.2.1.0.2 OGGCORE_11.2.1.0.2T3_PLATFORMS_120724.2205
Windows (optimized), Microsoft SQL Server on Jul 25 2012 03:37:58
Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
Starting at 2013-08-27 21:19:03
Operating System Version:
Microsoft Windows XP Professional, on x86
Version 5.1 (Build 2600: Service Pack 2)
Process id: 3312
** Running with the following parameters **
defsfile c:\gg\dirdef\emp.def
sourcedb hr
2013-08-27 21:19:05 INFO OGG-03036 Database character set identified as win
dows-1252. Locale: en_US.
2013-08-27 21:19:05 INFO OGG-03037 Session character set identified as wind
ows-1252.
table hrschema.emp;
Retrieving definition for hrschema.emp
Definitions generated for 1 table in c:\gg\dirdef\emp.def
C:\gg>ggsci
Oracle GoldenGate Command Interpreter for SQL Server
Version 11.2.1.0.2 OGGCORE_11.2.1.0.2T3_PLATFORMS_120724.2205
Windows (optimized), Microsoft SQL Server on Jul 25 2012 02:57:42
Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
GGSCI (juan-xp) 1> start manager
MGR is already running.
GGSCI (juan-xp) 2> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
GGSCI (juan-xp) 3> ADD EXTRACT MSEXT, TRANLOG, BEGIN NOW
EXTRACT added.
GGSCI (juan-xp) 4> ADD RMTTRAIL /u01/app/oracle/gg/dirdat/ms, EXTRACT MSEXT
RMTTRAIL added.
GGSCI (juan-xp) 5> EDIT MSEXT
ERROR: Invalid command.
GGSCI (juan-xp) 6> edit params msext
GGSCI (juan-xp) 7> START EXTRACT MSEXT
Sending START request to MANAGER ('GGSMGR') ...
EXTRACT MSEXT starting
GGSCI (juan-xp) 8> show all
Parameter settings:
SET SUBDIRS ON
SET DEBUG OFF
Current directory: C:\gg
Using subdirectories for all process files
Editor: notepad
Reports (.rpt) C:\gg\dirrpt
Parameters (.prm) C:\gg\dirprm
Replicat Checkpoints (.cpr) C:\gg\dirchk
Extract Checkpoints (.cpe) C:\gg\dirchk
Process Status (.pcs) C:\gg\dirpcs
SQL Scripts (.sql) C:\gg\dirsql
Database Definitions (.def) C:\gg\dirdef
GGSCI (juan-xp) 9> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT STOPPED MSEXT 00:00:00 00:02:34
GGSCI (juan-xp) 10> EDIT MSEXT
Report MSEXT.rpt with same error
Oracle GoldenGate Capture for SQL Server
Version 11.2.1.0.2 OGGCORE_11.2.1.0.2T3_PLATFORMS_120724.2205
Windows (optimized), Microsoft SQL Server on Jul 25 2012 03:49:54
Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
Starting at 2013-08-27 21:30:26
Operating System Version:
Microsoft Windows XP Professional, on x86
Version 5.1 (Build 2600: Service Pack 2)
Process id: 2452
Description:
** Running with the following parameters **
2013-08-27 21:30:26 INFO OGG-03035 Operating system character set identified as windows-1252. Locale: en_US, LC_ALL:.
EXTRACT MSEXT
SOURCEDB HR
2013-08-27 21:30:28 INFO OGG-03036 Database character set identified as windows-1252. Locale: en_US.
2013-08-27 21:30:28 INFO OGG-03037 Session character set identified as windows-1252.
TRANLOGOPTIONS MANAGESECONDARYTRUNCATIONPOINT
RMTHOST OCM, MGRPORT 7809
RMTTRAIL /u01/app/oracle/gg/dirdat/ms
TABLE HRSCHEMA.EMP;
2013-08-27 21:30:28 INFO OGG-01815 Virtual Memory Facilities for: COM
anon alloc: MapViewOfFile anon free: UnmapViewOfFile
file alloc: MapViewOfFile file free: UnmapViewOfFile
target directories:
C:\gg\dirtmp.
CACHEMGR virtual memory values (may have been adjusted)
CACHESIZE: 1G
CACHEPAGEOUTSIZE (normal): 4M
PROCESS VM AVAIL FROM OS (min): 1.57G
CACHESIZEMAX (strict force to disk): 1.41G
Database Version:
Microsoft SQL Server
Version 10.00.1442
ODBC Version 03.52.0000
Driver Information:
SQLSRV32.DLL
Version 03.85.1117
ODBC Version 03.52
Source Context :
SourceModule : [ggvam.param]
SourceID : [../gglib/ggvam/cvamparams.cpp]
SourceFunction : [com_goldengate_vam::validateIfSqlServer]
SourceLine : [1955]
2013-08-27 21:30:28 ERROR OGG-00868 Executing statement for select operation Database error 213 ([Microsoft][ODBC SQL Server Driver][SQL Server]Column name or number of supplied values does not match table definition.
[Microsoft][ODBC SQL Server Driver][SQL Server]DBCC execution completed. If DBCC printed error messages, contact your system administrator.
[Microsoft][ODBC SQL Server Driver][SQL Server]Column name or number of supplied values does not match table definition.
[Microsoft][ODBC SQL Server Driver][SQL Server]DBCC execution completed. If DBCC printed error messages, contact your system admi).
2013-08-27 21:30:28 ERROR OGG-01668 PROCESS ABENDING.
Thanks
Juan -
Oracle 11gR2 to SQL Server 2008 R2 - Problem executing SP on SQL server
Hi,
I have this problem: Executing a sp in SQL server from oracle
--------------------ORACLE SP--------------------
create or replace
PROCEDURE DRIVER_SP
AP IN OUT appl_param%ROWTYPE
as
v_sp_name varchar2(50);
v_control_id number;
val VARCHAR2(100);
cur INTEGER;
nr INTEGER;
BEGIN
v_sp_name := ap.MESSAGE_MISC_TEXT;
v_control_id := ap.control_id;
cur := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@dblink_sqlserver;
DBMS_HS_PASSTHROUGH.PARSE@dblink_sqlserver(cur, 'execute ' || v_sp_name || ' ' || to_char(v_control_id));
LOOP
nr := DBMS_HS_PASSTHROUGH.FETCH_ROW@dblink_sqlserver(cur);
EXIT WHEN nr = 0;
DBMS_HS_PASSTHROUGH.GET_VALUE@dblink_sqlserver(cur, 1, val);
END LOOP;
DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@dblink_sqlserver(cur);
driver_ap01_log_msg('Procedure returned: ' || val);
commit;
exception
when others then
driver_ap01_log_msg(sqlerrm);
END DRIVER_SP;
--------------------SQL Server SP-----------------------
ALTER PROCEDURE [dbo].[PA01_SP]
@control_id integer
AS
begin
--update PA01
--set infile_control_id = @control_id
--insert into dbo.PA01LOG(msg) values('test')
select 0
end
THE PROBLEM: Oracle SP calls SQL Server SP and any time I try to INSERT/UPDATE/DELETE (DML) within SQLServer SP it throws an exception on Oracle's end. Once I comment all DML code the proc runs fine.
+"ORA-28511: lost RPC connection to heterogeneous remote agent using SID=ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxxxxxx)(PORT=1511))(CONNECT_DATA=(SID=dg4msql)))+
+ORA-02063: preceding line from DBLINK_SQLSERVER"+
Please help.
ThanksThanks for your response, it got me closer to my goal. I'm still facing one problem:
Let me explain what I need to achieve
Purpose
Execute an Oracle stored procedure which in turn executes a stored procedure on remote SQLServer which updates local tables on that SQLServer.
Observations
The execution of both procedures completes successfully. However, an explicit COMMIT statement must be issued on the Oracle session which initiated the transaction before any data could be read from the SQLServer updated table.
The following is test exercise for proof of concept.
PL/SQL code
declare
out_arg integer;
ret_val integer;
begin
out_arg := 0;
ret_val := "dbo"."ZZZ_SP"@DBLINK_SQLSERVER(10, out_arg);
dbms_output.put_line(to_char(out_arg));
end;
SQLServer code
ALTER procedure [dbo].[ZZZ_SP] (@arg1 integer, @arg2 integer output)
AS
begin tran tran1
insert into dbo.PA01LOG(msg) values('ddd')
commit tran tran1
set @arg2 = @arg1 * 100
select -1
GO
I have put the Oracle gateway in Single_Site mode to avoid two phase commit. I want SQLServer to be able to run its own transaction management. I don't want Oracle to be responsible for completing the transactions which take place within SQLServer.
I fear there might be a gap in my knowledge.
Any ideas why I need to issue a COMMIT in Oracle session to release the lock from SQLServer table?
Thanks -
SQL Server 2008 R2 setup error
installing the above, I get an error just before the end of the setup saying - Attempted to perform an unathorized operation. Click retry or cancel.
Any ideas why this is doing this?Hello,
Please try the following resources:
http://blogs.msdn.com/b/petersad/archive/2009/08/08/sql-server-2008-could-not-fix-registry-key-issue-and-how-to-resolve.aspx
http://social.technet.microsoft.com/Forums/sqlserver/en-US/3649e3f7-e726-4bc7-854f-0b436756dad0/sql-server-2008-installation-problem
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/61d56f64-2575-4a58-9503-84579476afaf/sql-server-2008-setup-error-attempted-to-perform-an-unauthorized-operation
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cfab9cdd-eb89-4e70-a255-4f4bff3def8e/sql-server-2008-r2-setup-fails-with-error-attempted-to-perform-an-unauthorized-operation
If the above resources do not help, please share with us the Detail.txt log file. The following
article may help you locate the file:
http://technet.microsoft.com/en-us/library/ms143702(v=sql.105).aspx
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Hi,
I am looking for inputs in tuning stored procedure using sql server 2008. l am new to performance tuning in sql,plsql and oracle. currently facing issue in stored procedure - need to increase the performance by code optmization/filtering the records using where clause in larger table., the requirement is Stored procedure generate Audit Report which is accessed by approx. 10 Admin Users typically 2-3 times a day by each Admin users.
It has got CTE ( common table expression ) which is referred 2 time within SP. This CTE is very big and fetches records from several tables without where clause. This causes several records to be fetched from DB and then needed processing. This stored procedure is running in pre prod server which has 6gb of memory and built on virtual server and the same proc ran good in prod server which has 64gb of ram with physical server (40sec). and the execution time in pre prod is 1min 9seconds which needs to be reduced upto 10secs or so will be the solution. and also the exec time differs from time to time. sometimes it is 50sec and sometimes 1min 9seconds..
Pl provide what is the best option/practise to use where clause to filter the records and tool to be used to tune the procedure like execution plan, sql profiler?? I am using toad for sqlserver 5.7. Here I see execution plan tab available while running the SP. but when i run it throws an error. Pl help and provide inputs.
Thanks,
VijiYou've asked a SQL Server question in an Oracle forum. I'm expecting that this will get locked momentarily when a moderator drops by.
Microsoft has its own forums for SQL Server, you'll have more luck over there. When you do go there, however, you'll almost certainly get more help if you can pare down the problem (or at least better explain what your code is doing). Very few people want to read hundreds of lines of code, guess what's it's supposed to do, guess what is slow, and then guess at how to improve things. Posting query plans, the results of profiling, cutting out any code that is unnecessary to the performance problem, etc. will get you much better answers.
Justin -
SQL Server 2008 Developer install failed - Attempted to perform an unauthorized operation
I'm trying to install SQL Server 2008 Developer edition on my laptop running Windows XP Professional SP2. I ran the installer as a domain user with admin rights to the local box. The installation advisor program certified that my system was ready for the install, but nevertheless I had to uninstall SQL Server 2005 Express edition and install .NET framework 3.5 SP1 first. Once that was done, the installer finished, having successfully installed all the components of SQL Server 2008 except for the core database engine. It failed with this error message: Attempted to perform an unauthorized operation.
I uninstalled SQL Server 2008 and reinstalled with the same results.
Below is a snippet from my C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20081014_203925\Detail.txt which seems like it may be relevant.
Can anyone offer any assistance? Would be greatly appreciated.
2008-10-14 20:50:15 SQLEngine: --EtwSetup: Updating WMI Security
2008-10-14 20:50:15 SQLEngine: --EtwSetup: WMI sddlA;;0x120fff;;;SY)(A;;0x120fff;;;BA)
2008-10-14 20:50:15 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
2008-10-14 20:50:15 Slp: Sco: Attempting to open registry subkey SYSTEM\CurrentControlSet\Control\WMI\Security
2008-10-14 20:50:15 Slp: Prompting user if they want to retry this action due to the following failure:
2008-10-14 20:50:15 Slp: ----------------------------------------
2008-10-14 20:50:15 Slp: The following is an exception stack listing the exceptions in outermost to innermost order
2008-10-14 20:50:15 Slp: Inner exceptions are being indented
2008-10-14 20:50:15 Slp:
2008-10-14 20:50:15 Slp: Exception type: Microsoft.SqlServer.Configuration.Sco.ScoException
2008-10-14 20:50:15 Slp: Message:
2008-10-14 20:50:15 Slp: Attempted to perform an unauthorized operation.
2008-10-14 20:50:15 Slp: Data:
2008-10-14 20:50:15 Slp: WatsonData = HKEY_LOCAL_MACHINE@SYSTEM\CurrentControlSet\Control\WMI\Security
2008-10-14 20:50:15 Slp: DisableRetry = true
2008-10-14 20:50:15 Slp: Inner exception type: System.UnauthorizedAccessException
2008-10-14 20:50:15 Slp: Message:
2008-10-14 20:50:15 Slp: Attempted to perform an unauthorized operation.
2008-10-14 20:50:15 Slp: Stack:
2008-10-14 20:50:15 Slp: at Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.OpenSubKey(String subkey, RegistryAccess requestedAccess)
2008-10-14 20:50:15 Slp: ----------------------------------------
2008-10-14 20:50:31 Slp: User has chosen to cancel this actionHi,
I have recently donwloaded the evaluation version of SQL SERVER 2010. I have a similar problem to this user as shown below. I have tried changing the registry permissions for Microsoft SQL Server but this made no difference. Since the registry entries are created by the installation process it seems odd that it cannnot subsequently update the entry.
Any ideas?
Dominic
Detailed results:
Feature: Database Engine Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Failed: see details below
Configuration error code: 0xD3BEBD98@1211@1
Configuration error description: Attempted to perform an unauthorized operation.
Configuration log: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20100408_135119\Detail.txt
2010-04-08 14:01:43 Slp: ----------------------------------------
2010-04-08 14:01:43 Slp: The following is an exception stack listing the exceptions in outermost to innermost order
2010-04-08 14:01:43 Slp: Inner exceptions are being indented
2010-04-08 14:01:43 Slp:
2010-04-08 14:01:43 Slp: Exception type: Microsoft.SqlServer.Configuration.Sco.ScoException
2010-04-08 14:01:43 Slp: Message:
2010-04-08 14:01:43 Slp: Attempted to perform an unauthorized operation.
2010-04-08 14:01:43 Slp: Data:
2010-04-08 14:01:43 Slp: WatsonData = Microsoft SQL Server
2010-04-08 14:01:43 Slp: DisableRetry = true
2010-04-08 14:01:43 Slp: Inner exception type: System.UnauthorizedAccessException
2010-04-08 14:01:43 Slp: Message:
2010-04-08 14:01:43 Slp: Attempted to perform an unauthorized operation.
2010-04-08 14:01:43 Slp: Stack:
2010-04-08 14:01:43 Slp: at System.Security.AccessControl.Win32.GetSecurityInfo(ResourceType resourceType, String name, SafeHandle handle, AccessControlSections accessControlSections, RawSecurityDescriptor& resultSd)
2010-04-08 14:01:43 Slp: at System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType, Boolean isContainer, String name, SafeHandle handle, AccessControlSections includeSections, Boolean createByName, ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext)
2010-04-08 14:01:43 Slp: at Microsoft.SqlServer.Configuration.Sco.SqlRegistrySecurity..ctor(ResourceType resourceType, SafeRegistryHandle handle, AccessControlSections includeSections)
2010-04-08 14:01:43 Slp: at Microsoft.SqlServer.Configuration.Sco.SqlRegistrySecurity.Create(InternalRegistryKey key)
2010-04-08 14:01:43 Slp: at Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.SetSecurityDescriptor(String sddl, Boolean overwrite)
2010-04-08 14:01:43 Slp: ---------------------------------------- -
Attempted to perform an unauthorized operation sql server 2008 ( Windows 7 )
Dear All,
I am facing following error Sql 2008 setup "Attempted to perform an unauthorized operation sql server 2008 ( Windows 7 )"
I tryed to run setup as administrator
I tryed to run setup to create new user as an administrator and login in new user then run setup
I tryed to run in compatible mode windows xp sp3.
I tryed to login in Administrato account and run setup
in this all time same error came i am tired too much. because of this i format my pc and install windows 7 but still it is same please help me.
Thanks is advance
Regards
Uday
[email protected]Hi,
Can you locate summary.txt file and details.txt file from location
C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log
Upload these to files on some shared location like dropbox, onedrive etc and post link here I would analyze and see where actually problem is coming.
This link would also help you in searching log files.
PS: Dont reply to duplicate thread you posted
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP -
Crystal Report 13 Visual Studio 2010 SQL Server 2008 R2 ODBC Problem
Hi Everybody,
I am new in Crystal Report.
I developed a web application in Visual Studio 2010, and my Database is SQL Server 2008 R2.
I created reports using Crystal Report 13 in Visual Studio and my Operating System is Windows 7 32-Bit.
I used ODBC Connection System DNS for my application.
It is running fine even after Hosting on my local PC.
But it creates problem when hosted on my Team Leader PC and Test Server.
Their Configurations are same but only difference is "SQL Server 2008" Not R2
The Error I am getting is "Failed to open the connection".
When I Host the same on my another team member PC, I am getting the error like
"Failed to open the connection. Details: [Database Vendor Code: 4060 ] Database Connector Error: ' [Database Vendor Code: 4060 ]' Failed to open the connection. Failed to open the connection. TestVr {CE268132-D2BD-43EC-BE45-0BCD847FBCDA}.rpt Details: [Database Vendor Code: 4060 ]"
I tried various solution to fix this bug.
But i am unable to do this and not getting any idea to fix this issue.
If anyone can guide I will be thankful to him.
All suggestions are appreciable.
Thank youHi,
Please use the top right search box. for ex below search which will return many useful kb's, articlea and forum threads where simillar issues are discussed.
[http://www.sdn.sap.com/irj/scn/advancedsearch?query=failedtoopentheconnection|http://www.sdn.sap.com/irj/scn/advancedsearch?query=failedtoopentheconnection]
Most probably the issue is missing database client driver / provider.
Install the driver used to connect the rpt to the db on the server and then create a 32 bit DSN with the same name as the dev machine..
Hope this helps,
Bhushan. -
Crystal Reports XI connection problems - after updating to SQL Server 2008
Hello!
We have some ASP.NET 2.0 Applications that call some CR XI report files with parameters to generate PDF Files. After upgrading from SQL Server 2005 to 2008 the apps hang when trying to generate the PDFs. Some research with Fiddler showed that ever time a 401 Error is raised. Calling the reports directly from CR Designer with the same connection values and Parameter shows the appropriate data that means the log-in data iare functioning.
I already tried switching the data source driver from OLE DB to SQL Native - no effect!
Can it be that CR XI does not work with SQL Server 2008? Or is there an update for CR XI and SQL Server 2008?
Because we are in a hurry I hope somebody can solve my problem(s) ...?!
Thanks in advance,
FrankHi Frank,
No CR XI is not supported nor is any version completely at this time. What we've found issues in so far are the Time(7) time is returned as a string value and Stored Procedure Data/time parameter SQL creation. The Time(7) field is an OLE DB driver issue with Microsoft but the Date/time SP issue is our issue and it's currently tracked and escalated. It will be fixed for CR 2008 with SP3 I believe. And I've asked that the same fix be rolled back to CR XI R2 but waiting on the reply from R&D if it can be done.
What you need to do is download the trial version of CR XI R2 ( Release 2 ) and then use your XI Keycode to install it and it will work. Then update to the latest SP 5 Service Pack. XI is past it's end of life support which means there will be no updates or bug fixes any more.
Next, MS SQL Server 2008 does not work with the MDAC version of the Native drivers, you must install the MS SQL Server Client. You'll see the driver name is "MS SQL Server Native client 10". This is the one you need to use.
Another work around is to use ODBC, it seems to resolve all issues, but the client must be installed.
Thank you
Don -
I've been trying fresh installation of SQL Server 2008 R2 enterprise on Windows Server 2012 R2 standard VM server several times for two weeks, but always get the error "Attempted to perform an unauthorized operation". At first, I attempted
to install all features, but failed several times. So I decided to try install just Database Engine service, and still fail at the SqlBrowserConfigAction_Install_ConfigNonRC_Cpu32, with the error "Attempted to perform an unauthorized operation".
I remote login to server with my admin domain account. This account is in server local Administrators group. I
1. Right-click on setup.exe file | properties | Compatibility tab | select compatibility to Windows 8.Then click OK.
2. Right-click on setup.exe file | Run as Administrator, to start the Installation Center.
I have the document of my installation steps and zip file of the installation logs, if you need to take a look.
Appreciate for any help!
ntthHi ntth,
"Attempted to perform an unauthorized operation"
The above error is always related to the Windows account SID mapping. I recommend you login into Windows using another Windows account which has administrative privileges and run SQL Server setup using that Windows account.
Besides, please note that we need to apply SQL Server 2008 R2 Service Pack 2 or a later update when installing SQL Server Windows Server 2012 R2. For more information, please review this
KB article.
Thanks,
Lydia Zhang
If you have any feedback on our support, please click
here.
Lydia Zhang
TechNet Community Support -
Local Network Connection Problem with SQL Server 2008 R2
Hi,
I have CRM application which uses SQL server 2008. Weird thing is that I have no problems connecting from client machines to the server when using a particular router (via LAN) and when I upgrade the firmware of the same router (A common open source firmware
which is used by many also works perfect apart from mentioned problem) and restart the server, the connection cannot be established. I get Error 40.
When i downgrade the firmware and restart the server, the connection works again.
Please note that I am absolutely not touching any configuration of the server. Also the CRM software allows remote connections from public IPs which this feature works fine with both downgraded and upgraded firmwares.
As for my understanding, the routers do not block ports in LAN connections. So how can I diagnose the reason for this connection problem?Hi Leony83,
Please also help to check Windows Event Log information regarding this issue, so that we can do further investigation. In additin, here is the general steps to troubleshoot SQL Server Error 40 issue. Please see:
SQL SERVER – Fix : Error : 40 – could not open a connection to SQL server – Fix Connection Problems of SQL Server:
http://blog.sqlauthority.com/2008/08/24/sql-server-fix-error-40-could-not-open-a-connection-to-sql-server-fix-connection-problems-of-sql-server/
Hope this helps.
Regards,
Elvis Long
TechNet Community Support -
Problems with SQL server 2008 nvarchar type to varchar in oracle.
Hello
I did an Heterogeneous Connectivity between SQL server 2008 db and Oracle 11g, so far so good, but when i try to view colum data on RPD (only varchar type) i only see the first character of the string.
One more thing, when i try to see the data on Oracle SQL developer i get some strange characters, like when we have the wrong character encoding on our browser.
Some print to illustrate the problem.
Oracle SQL developer query:
http://postimg.org/image/5cvyqw6ih/
Microsoft SQL developer query :
http://postimg.org/image/skddx991f/
RPD printscreen :
http://postimg.org/image/aok2337cp/
SQLplus (as you can see the are spaces between the characters ) :
http://postimg.org/image/664xw1xjh/
To finish the data will be use to build an mobile app with oracle mobile app designer.
Thank youThe spaces you see between the characters when using the gateway indicate a wrong charset is being used.
1. Which gateway are you using - DG4MSQL or Dg4ODBC?
2. Could you please post the gateway init file and just in case it is DG4ODBC also the odbc.ini file
3. What's the character set of the Oracle database?
4. Looks like you're connected using Putty to a Unix box - what is the Putty NLS setting?
5. What is the NLS setting when starting SQL*Plus and what is the LOCALE setting?
6. Was a NLS_LANG parameter set when the gateway was started? Please change in your gateway init file the HS_FDS_TRACE_LEVEL to DEBUG, then run again the query and post it to a share.
=> There's a note that guides you step by step to configure the gateway and your env correctly - please have a look at:
NLS Guide for Generic Connectivity and Gateways (Doc ID 230239.1)
- Klaus -
Problem in creating DATA Model from SQL SERVER 2008 in BI PUBLISHER
Dear Team,
I connect BI Publisher with SQL SERVER 2008 But On creating Report on BI,when we create data model...dataset,
i select the tables but when i click on RESULT i am geting this error.
error--
[Hyperion][SQLServer JDBC Driver][SQLServer]Invalid object name 'DBNAME.DBO.TABLE'.
please resolve this problem...
Thanks,
Him
Edited by: h on Aug 22, 2011 6:31 PMHi David,
The things I said are not a fix for this problem.
If your RCU installation worked, then you do not have to worry about modifying the createfr.sql.
Edit:
I've just tracked the problem. It appears that when using the query builder, BI forgets to add the " sign.
For example:
This query will give the hyperion error.
select "table"."field"
from "database.user"."table"
To correct it write it like this:
select "table"."field"
from "database"."user"."table"
Edited by: EBA on Nov 14, 2011 10:21 AM -
Hi,
I am getting the error "Attempted to perform an unauthorized operation" on windows 8.1 while installing
SQL server 2008.
The specific error is The error is Attempted to perform an unauthorized operation."
at stepSqlBrowserConfigAction_install_ConfigNonRC_Cpu32 .
I have tried everything from copying to the C drive. I am the admin on the machine. I also checked access in registry. It already has acesss to HKLM\System\CurrentControlSet\Control\WMI\security
Can someone comment on how to resolve this issue. I also tried NT
AUTHORITY\SYSTEM but getting the same error.
Any help would be appreciated.Hello,
Please note that SQL Server 2008 requires Service Pack 3 (SP3) to make it compatible with
Windows 8.1. Please perform an slipstream installation of SQL Server 2008 + SP3:
http://support.microsoft.com/kb/955392
If it fails again, please share with us the Summary.txt log file and the details.txt log file. The following article
may help you locate those files on disk::
http://msdn.microsoft.com/en-us/library/ms143702(v=sql.100).aspx
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
SQL Server 2008/2012 Express Connection Problem
Hello,
since a couple of days I'm working on a problem with the SQL Server Express (32-Bit as well as 64Bit).
I installed a new SQL Server 2008 with an instance named SQL2012 and the Management Studio 2008 R2 on the same machine. I easily am abled to connect to the Server using the Management Studio with several Server Name settings (localhost, IP, (local), .\SQL2012).
Now I have a self-written programm (C#) wich should connect to the Server, but it does not work. It is definitely not a problem of the programm code because the same programm is abled to connect to a SQL Server 2008 Enterprise Edition. Similar Problem with
the 2012 Express Version (2012 Enterprise not tested).
The connection string I use and wich is working with connecting on the Enterprise Edition is: Server=Servername\Instance;Database=DatabaseName;User Id=user;Password=password;
Anybody any solution why the Express-Version refuses to connect?
(Sorry if I have made several failures in my text, English is not my native language)It Occurs when I try to ping.Send the Server to see if he is active. If I skip this step and try to connect directly to the server (con.Open()) I get the exception:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The
server was not found or it can not be accessed. Verify that the instance name is correct and that SQL Server allows remote connections. (provider: Named Pipes Provider, error: 40 - Connection with the SQL Server couldn't be opened)
Maybe you are looking for
-
FF works on startup but will not open after closing until I reboot.
Until today everything okay. This evening tried to re-open Firefox and it would not. Rebooted computer & Firefox opened OK but after I closed it an tried to reopen, it would not start. Now it appears that Firefox will only open on a fresh restart of
-
E-mail verification doesn't work
hi, I am still waiting for my mail(3 days now) and i am not amused with this. Maybe someone can send me the password in mail([email protected]) i hope someone will respond now. grtz
-
Quick question about Photoshop and Bridge
If someone purchases the Standard Photoshop software, does Bridge come with it? I think it does, but I am not sure.
-
Good Afternoon: I've got a PSD file in which I have pasted some vector paths from Illustrator as a Smart Object. Everything works as expected. When I save the PSD as a PDF, the PDF that I receive is entirely raster based. The vector based paths are n
-
User not able to send the mail from other mail box on outlook 2007
In my outlook(2007), i am using my mail box to send the mail and receiving the mail every thing working fine, now what happened , i am adding one of my users mail box to my outlook profile,and trying to send the mail from that mail box,when ever i am