SQL Server 2016: Error when selecting from sys.messages - sql-server

Since roughly one week, after a reboot of my server hardware, I have a strange error when trying to execute the following command:
USE master;
SELECT * FROM sys.messages;
The error, in german, says the following:
Fehler beim Laden der Formatzeichenfolge für Fehler "997", Sprachen-ID "1033". Betriebssystemfehler: 317(Das System hat keinen Meldungstext für die Meldungsnummer 0x997 in der Meldungsdatei 1033 gefunden.). Überprüfen Sie, ob die Ressourcendatei mit der ausführbaren Datei von SQL Server übereinstimmt und ob die Ressourcendatei im lokalisierten Verzeichnis mit der Datei im englischen Verzeichnis übereinstimmt. Überprüfen Sie auch die Speicherauslastung.
Roughly translated:
Error loading the format string for error 997 with the language ID 1033, operating system error 317 (The system could not find a message string for error number 0x997 in message file 1033). Check if the resource file matches with the executable file of SQL server and if the resource file in the localized folder matches the one in the english directory. Check the memory usage.
The memory usage can't be the issue here, there is plenty of both RAM and disk space available.
I checked the resource files in the 1033 folder (this one: C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\Resources\1033 ), there were no change dates newer than 2016 (and the server has had many reboots since then).
I also replaced those resource files with ones from a fresh installation of the same patch level, where I can do the query without issues but it didn't help us out.
I tried restoring the master database, which also didn't yield any positive result (I restored it to a backup one day before that reboot).
Does anybody have any other ideas about what could be done? I tried searching for articles and issues about this same problem but the only posts I found were many years old and the linked solutions no longer exist.

Related

Oracle Database: plshprof procudes incomplete HTML for DBMS_HPROF-Profiler trace file

Moin,
I used the Oracle-Profiler from the DBMS_HPROF package a lot to find out where the right queries to optimize.
This time I ran into a problem, even though it seems to be setup correctly.
Profiling even complex parts of the application I try to optimize produce trace files that are processed without any issues by the plshprof tool that produces the HTML reports from the trace files.
When I profile this one particular procedure it produces a trace file that seems ok (it is properly ended and so).
But when I use plshprof on it, out comes always an HTML file that ends after 12542 Bytes (no, the drive is not full).
I tried executing an additional query before the problematic procedure and the result was that the HTML ended again after exactly 12542 Bytes.
In one case the HTML ended in the middle of an attribute of a tag in the other before the > of the ending tag.
From the beginning to the EOF the HTML report looks ok!
Windows Server 2019 Build 1809
Oracle Database Version: 19c (19.3) Standard Edition 2
This is how I called the profiler and the procedure:
BEGIN
DBMS_HPROF.START_PROFILING(LOCATION=>'PLSHPROF_DIR', FILENAME=> 'test1.trc');
SOME_PACKAGE.SOME_PROCEDURE();
COMMIT;
DBMS_HPROF.STOP_PROFILING;
END;
/
This how I called it:
C:\TEMP>plshprof test1.trc
PLSHPROF: Release 19.0.0.0.0 - Production on Do Mrz 24 12:04:00 2022
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
[160 symbols processed]
C:\TEMP>echo %ERRORLEVEL%
-1073741819
C:\TEMP>plshprof
PLSHPROF: Release 19.0.0.0.0 - Production on Fr Mrz 25 11:56:20 2022
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Usage: plshprof [<option>...] <tracefile1> [<tracefile2>]
Options:
-trace <symbol> (no default) specify function name of tree root
-skip <count> (default=0) skip first <count> invokations
-collect <count> (default=1) collect info for <count> invokations
-output <filename> (default=<symbol>.html or <tracefile1>.html)
-summary print time only
C:\TEMP>
As you can see last line of the output is missing and there is an error code but there is no error message nor any switch to verbose the output of the tool.
C:\TEMP>plshprof test2.trc
PLSHPROF: Release 19.0.0.0.0 - Production on Do Mrz 24 12:41:17 2022
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
[12 symbols processed]
[Report written to 'test2.html']
C:\TEMP>echo %ERRORLEVEL%
0
The trace file seems to end properly:
P#C SQL."SCHEMANAME"."SOME_PACKAGE"::11."__static_sql_exec_line133" #133."8ggw94h7mvxd7"
P#! COMMIT
P#X 79
P#R
P#X 17
P#R
P#C SQL."".""."__static_sql_exec_line8" #8."8ggw94h7mvxd7"
P#! COMMIT
P#X 160
P#R
P#C PLSQL."SYS"."DBMS_HPROF"::11."STOP_PROFILING"#980980e97e42f8ec #747
P#R
P#! PL/SQL Timer Stopped
Did anybody ever ran into this problem and/or found out what is/was the problem?
I can imagine it has to do with the complexity of the function tree called but I am not able to figure out where to start.
The procedure uses several packages and reads and writes from and to tables and views with triggers which also call functions that do the same.
Thanks in advance!

LateX on Mac: Texmaker can't find installed package

I have a Mac and just installed LaTeX and the editor Texmaker. To use the Arial font I installed it via MiKTeX Console. I also found out that by doing so, the files for the installed packages lay here:
"/Users/Mirko/Library/Application Support/MiKTeX/texmfs/install/tex/latex"
My problem is that the Editor (TeXMaker) still doesn't find the Arial-Font.
Here is my Code:
\documentclass[pdftex,openany,11pt,twoside,a4dutch]{report}
\usepackage{uarial}
\usepackage{csquotes}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{csquotes} % Setzen von Anführungsstrichen
\begin{document}
This is a test.
\end{document}
and here is the Error:
! LaTeX Error: File `uarial.sty' not found.Type X to quit or <RETURN> to proceed,or enter new name. (Default extension: sty)Enter file name:! Emergency stop.<read > \usepackage
But the folder arial and the file arial.sty are in the above mentioned folder.
In the MikTeX-Console I already entered the folder to Directories > Settings
I thankful for every help!
Thanks and greetings!
Here is the log-file from TexMaker:
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex 2019.10.27) 27 OCT 2019 13:34
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**test.tex
(./test.tex
LaTeX2e <2018-12-01>
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/report.cls
Document Class: report 2018/09/03 v1.4i Standard LaTeX document class
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/size11.clo
File: size11.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
)
\c#part=\count80
\c#chapter=\count81
\c#section=\count82
\c#subsection=\count83
\c#subsubsection=\count84
\c#paragraph=\count85
\c#subparagraph=\count86
\c#figure=\count87
\c#table=\count88
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
! LaTeX Error: File `uarial.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
! Emergency stop.
<read *>
l.5 \usepackage
{csquotes}^^M
*** (cannot \read from terminal in nonstop modes)
Here is how much of TeX's memory you used:
221 strings out of 492616
2365 string characters out of 6129480
60608 words of memory out of 5000000
4231 multiletter control sequences out of 15000+600000
3940 words of font info for 15 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
21i,0n,22p,110b,36s stack positions out of 5000i,500n,10000p,200000b,80000s
! ==> Fatal error occurred, no output PDF file produced!
As you can see from the first line of the log file
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019)
texmaker is not using the miktex distribution for which you installed the uarial package, but a texlive distribution which seems to be also installed on your computer. In the long run it would be best to only have a single tex distribution on your computer to avoid such problems. For mac I would suggest to keep the texlive distribution and get rid of miktex, because texlive is used by most mac users and therefore well tested compared to miktex for mac.
Now you could force texmaker to use your miktex installation by modifying the texmaker preferences, but the easier way to use Arial in your document is to switch from pdflatex to xelatex or lualatex and directly use the arial font installed on your computer
% !TeX TS-program = xelatex
\documentclass[openany,11pt,twoside,a4dutch]{report}
\usepackage{fontspec}
\setmainfont{Arial}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\begin{document}
This is a test.
\end{document}

datomic "index creation failed" "merge-db failed"

After adding a new index in datomic I got this Error.
The very same problem occured on one of my systems some Years ago and is still not fixed:
2018-11-27 10:23:37.580 WARN default datomic.update - {:message "Index creation failed", :db-id "xxx-8eb416be-ec26-4bff-b4ce-503bb734026b", :pid 29822, :tid 15}
java.io.IOException: Datei oder Verzeichnis nicht gefunden
at java.io.UnixFileSystem.createFileExclusively(Native Method) ~[na:1.8.0_191]
at java.io.File.createTempFile(File.java:2024) ~[na:1.8.0_191]
at datomic.external_sort$temp_file_io$reify__5949.make_temp_file(external_sort.clj:22) ~[datomic-transactor-pro-0.9.5656.jar:na]
at datomic.external_sort$file_system_sorter$fn__6044.invoke(external_sort.clj:113) ~[datomic-transactor-pro-0.9.5656.jar:na]
at clojure.core$map$fn__5587.invoke(core.clj:2747) ~[clojure-1.9.0-RC1.jar:na]
at clojure.lang.LazySeq.sval(LazySeq.java:40) ~[clojure-1.9.0-RC1.jar:na]
at clojure.lang.LazySeq.seq(LazySeq.java:49) ~[clojure-1.9.0-RC1.jar:na]
at clojure.lang.RT.seq(RT.java:528) ~[clojure-1.9.0-RC1.jar:na]
2018-11-27 10:23:37.602 WARN default datomic.index - {:message "merge-db failed", :pid 29822, :tid 15}
java.io.IOException: Datei oder Verzeichnis nicht gefunden
at java.io.UnixFileSystem.createFileExclusively(Native Method) ~[na:1.8.0_191]
at java.io.File.createTempFile(File.java:2024) ~[na:1.8.0_191]
at datomic.external_sort$temp_file_io$reify__5949.make_temp_file(external_sort.clj:22) ~[datomic-transactor-pro-0.9.5656.jar:na]
at datomic.external_sort$file_system_sorter$fn__6044.invoke(external_sort.clj:113) ~[datomic-transactor-pro-0.9.5656.jar:na]
Seems like datomic not being able to write down some cache for the indexing process.
It crashes always shortly after restart trying to do the indexing job.
Last time this occurred on one of my systems I contacted support #marshall from datomic. With his help I dumped the datebase, grabbed the backup, reduced the amount of data, assigned a lot of ram ... and it worked. This time that's is not possible.
found the SOLUTION
the transactor indexer ignores the path settings in the config file ("datomic.version" "0.9.5656" and before tested) and tries to save on actual relative file path.
I made the datomic-pro folder accessible and voilà it creates a ..../data directory and indexing works
in detail:
in my debian setup i have set the database path to data-dir=/var/lib/datomic
all the db and tmp files are correctly stored in /var/lib/datomic
the datomic pro installation is in /usr/local/share/datomic/datomic-pro-0.9.5656/
My relative path starting the transactor (via start-stop-daemon) is also /usr/local/share/datomic/datomic-pro-0.9.5656/.
indexing works in my case after:
chown datomic:datomic /usr/local/share/datomic/datomic-pro-0.9.5656/
or better
mkdir /usr/local/share/datomic/datomic-pro-0.9.5656/data
chown datomic:datomic /usr/local/share/datomic/latest/data
you can watch datomic creating a /usr/local/share/datomic/latest/data/indexer folder
Hope that helps!

ClearCase db_server.exe: Error: db_VISTA error -920 (errno == "Bad file descriptor")

Seeing following errors in the server db log.
db_server.exe(): Error: db_VISTA error -920 (errno == "Bad file descriptor")
db_server.exe(): Error: Cannot open database in ".vbs\db"
Any idea, seeing this error for every 20 mins. This is happening for only two vobs.
Followed below with no luck.
http://www-01.ibm.com/support/docview.wss?uid=swg21236027
http://www-01.ibm.com/support/docview.wss?rs=984&uid=swg21148639
http://www-01.ibm.com/support/docview.wss?uid=swg21133944
The About db_VISTA errors page mentions:
db_VISTA database error -920 - no lock manager is installed
db_VISTA error 2 from OpenFileMapping() of lockmgr_almd
And reference the technote "DB_Vista -920 error and Error 2 from OpenFileMapping()"
Even if this isn't exactly the same error message, check the status of your lock manager (lockmgr.exe on Windows, lockmgr on Unix), both on the client and the server.
Regarding the db_server process, you can try a stop/restart ClearCase on the server, to reset both db_server and vob_server processes.
That can be also related to almd parameters, initially found in:
/opt/rational/clearcase/config/vob/db/vob_almd_params
(for all vobs), but also found in each vobs:
/path/to/vobstorage/yourVob.vbs/db/vob_almd_params
I usually try to raise those parameters in case of 920 errors.
For instance:
-u 4000 -q 16000
That (meaning those local vob configs) would explain why you see errors in only two of your vobs.
To stop the services on Windows: "How do I determine via Windows command line whether ALBD service is running?".

Cocos2d-x cannot run build-win32.bat on Windows 7 64 bit

I'm new in cocos2d-x. I started setting up environment for developing.
I download the cocos2d-x-2.1.5 zip file and extracted. Then I double click on build-win32.bat, these line apppeared :
Build started 8/28/2013 9:08:01 AM.
0>D:\Dev_cocos2dx\cocos2d-x-2.1.5\cocos2d-win32.vc2012.sln : Solution file error MSB5009: Erro
r parsing the nested project section in solution file.
Build FAILED.
D:\Dev_cocos2dx\cocos2d-x-2.1.5\cocos2d-win32.vc2012.sln : Solution file error MSB5009: Er
ror parsing the nested project section in solution file.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.01
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.18052]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 8/28/2013 9:08:01 AM.
0>D:\Dev_cocos2dx\cocos2d-x-2.1.5\cocos2d-win32.vc2012.sln : Solution file error MSB5009: Erro
r parsing the nested project section in solution file.
Build FAILED.
D:\Dev_cocos2dx\cocos2d-x-2.1.5\cocos2d-win32.vc2012.sln : Solution file error MSB5009: Er
ror parsing the nested project section in solution file.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.01
/*
* Check the cocos2d-win32 application "TestCpp.exe" ...
*/
The system cannot find the path specified.
/*
* Run cocos2d-win32 tests.exe and view Cocos2d-x Application Wizard for Visual Studio User Guide.
*/
File not found - Resources
0 File(s) copied
File not found - Resources
0 File(s) copied
File not found - Resources
0 File(s) copied
File not found - Resources
0 File(s) copied
File not found - Resources
0 File(s) copied
File not found - js
0 File(s) copied
File not found - tests
0 File(s) copied
File not found - MoonWarriors
0 File(s) copied
File not found - WatermelonWithMe
0 File(s) copied
File not found - Published files iOS
0 File(s) copied
Can't find the binary "TestCpp.exe", is there build error?
Press any key to continue . . .
I'm using windows 7 64bit .
Thanks!
I found a solution:
1.Open the "cocos2d-win32.vc2010.sln".
2.Create a new project.
3.Delete the project of step 2.
4.Close .sln file, click save.
After these steps, my batch file works well. Hope it is useful for you.

Resources