我在SQL 2016 Developer Edition中安装了R-service,检查了安装并从设置工具中获取以下报告:
要测试R服务,我运行以下脚本:
sp_configure 'external scripts enabled', 1;
RECONFIGURE;
go
exec sp_execute_external_script @language =N'R',
@script=N'OutputDataSet<-InputDataSet',
@input_data_1 =N'select 1 as hello'
with result sets (([hello] int not null));
go
并收到以下错误:
Msg 39025, Level 16, State 1, Server WIN10, Line 1
External script execution failed as extensibility environment is not ready yet. Retry the operation when the server is fully started.
Msg 11536, Level 16, State 1, Server WIN10, Line 14
EXECUTE statement failed because its WITH RESULT SETS clause specified 1 result set(s), but the statement only sent 0 result set(s) at run time.
我安装了sql server 2016的更新 SQLServer2016-KB3164674-x64 update
我按照帖子中的步骤操作: SQL 2016 RC3 R Services Error, 和r-in-sql-server-2016 但仍然存在错误
如图所示,R服务报告为No configured 尽管我执行了脚本:
sp_configure 'external scripts enabled', 1;
更新
根据&#34; Umachandar的反应 - 微软&#34;:
SQL Server 2016正在Windows 10上运行。
我检查了SQL错误日志并发现以下错误:
Unknown,SQL failed to boot extensibility for error code 0xa.
Unknown,Error: 39002<c/> Severity: 16<c/> State: 1.
此外,我在Windows 10应用程序事件中发现了相同的可扩展性错误:
Log Windows NT (Application)
Source MSSQLSERVER
Category (2)
Event 39002
Computer xxxx
Message
SQL failed to boot extensibility for error code 0xa.
更新2:
现在它正在运作在应用Umachandar - Microsoft的答案和评论中的程序之后。
修改了文件夹E:\ Program Files \ Microsoft SQL Server \ MSSQL13.MSSQLSERVER \ MSSQL \ Binn
中的rlauncher.configWORKING_DIRECTORY=c:\ExtensibilityData
使用Junction工具并运行脚本:
junction64.exe c:\ExtensibilityData "E:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\ExtensibilityData"
重新启动服务:MSSQLLaunchpad
在我的帖子中执行sql脚本,返回1
非常感谢Umachandar - 微软的建议和支持。
答案 0 :(得分:1)
错误消息表明SQL Server无法在服务启动期间引导可扩展性环境。
您运行的是Windows 10吗?你可以检查SQL errorlog是否有任何错误?例如,检查以下错误:
SQL无法启动错误代码0x%lx
的可扩展性任何提及Launchpad或扩展性的错误。你也可以给我发电子邮件SQL错误日志,我会看看。
-
错误消息表明安装RTM时未成功安装R服务。您可以使用以下解决方法使系统进入工作状态:
-
注册表项#1
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.MSSQLSERVER\SRO]
"SRO_1"="3.2.2.803"
"SRO_2"="3.2.2.12000"
注册表项#2
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.MSSQLSERVER\SRS]
"SRS_1"="8.0.3"
"SRS_2"="8.0.3.12000"