Connecting to (description = (address = (protocol = IPC) (key = extproc))
tns-12557: TNS: protocol adapter is not loadable
Tns-12560: protocol adapter error
Tns-00527: the protocol adapter cannot be loaded
2. Check whether/TMP /. Oracle and/var/TMP /. Oracle directories exist
3. Check the permissions of the current user trying to start the listener on these directories
MKDIR/var/TMP /. Oracle
MKDIR/TMP /. Oracle
chown – R Oracle: oiinstall/var/TMP /. Oracle/TMP /. Oracle
Chmod – R 01777/var/TMP /. Oracle/TMP /. Oracle
4. Run the listener to solve the problem:
lsnrctl start
5. If the listener still cannot be started, grant Oracle 777 permission on/tmp directory
chmod -R 777/tmp/var/tmp
Author Archives: Robins
Centos7.6 vsftpd access error, 500 oops [How to Solve]
1. In the/etc/vsftpd/vsftpd.conf configuration file, add
allow_writeable_chroot=YES
2. Restart vsftpd service
service vsftpd restart
Arm assembly instruction ADS1.2 reports an error unknown opcode
Question:
Software:
ADS1.2
CodeWarrior for arm Developer Suite
error:
unkonw opcode
solution:
the arm assembly instruction does not support top grid writing. Just leave the first line of code a few spaces blank.
[Solved] Parsing JSON error unexpected end of JSON input
It’s normal to jump and pass parameters using JSON, but today I don’t know why I reported an error, unexpected end of JSON input,
reason
I found the answer on the Internet because there are unrecognized contents in the passed parameters, and the parameters I passed contain rich text, Therefore, there is no resolution
solution
start with JSON character parameters (parent page) on the page to jump to
issueanswer(item){
let arrar = JSON.stringify(item)
uni.navigateTo({
url:"issueanswer?arr="+encodeURIComponent(arrar)
})
},
Then accept and parse the parameters in onload of the sub page
onLoad(option) {
this.arr =JSON.parse(decodeURIComponent(option.arr))
},
How to Solve quantum espressoproblems computing cholesky Error
Problems computing Cholesky in quantum espresso reports an error
When running a small system, such as graphene of 11 or elemental iron of 11 * 1, QE calculation reports an error:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
stopping ...
After testing, it is found that this error is due to the use of too many kernel computing and small tasks. For example, if you use 32 small tasks such as accounting, such errors will appear
the solution is to use fewer cores for calculation. For example, on Cheng Chao’s machine, the corresponding statement is modified as follows:
#sbatch -- ntasks per node = 32
to
#sbatch -- ntasks per node = 8
Error reported using layui $is not defined
The following error occurs when calling a function using the layui template
reason: Layu needs to be pre loaded and defined$
<script type="text/javascript" rel="script">
layui.use(['table', 'layer', 'form','element'], function(){
var table = layui.table;
var layer = layui.layer;
var form = layui.form;
var element = layui.element;
var $ = layui.$;
</script>
Vue install reports an error operation not allowed
Solution:
1. Permission problem
you can run CMD as an administrator or open CMD by pressing Win + x .
2. Dependency package error
generally, in this case, we need to focus on the directory after operation not allowed . Through the error prompt, the problem can be solved by correctly installing the required dependent packages globally.
3. NPM version problem
this is also similar to the previous one, because different versions sometimes have problems with dependent packages. For example, the version is too high and there is no corresponding dependent package, so it is OK to change the NPM version.
The springboot integration mybatis reported an error. The parameter cannot be found
Today, I stepped on a pit when I implemented a login page in springboot and mybatis
It always shows that the parameter cannot be found, and many blogs on the Internet have not found the reason
Finally, it was pointed out by the leaders in the group that the @ param annotation was missing in the usermapper parameter
This SQL statement is used in usermapper, resulting in an error
So I sorted out the usage of a wave of @ param annotations from the Internet
1. Use @ param annotation
When writing SQL statements in the following way:
@ Select(“select column from table where userid = #{userid} “)
public int selectColumn(int userid);
When you use the @ param annotation to declare parameters, you can use either #{} or ${}.
@ Select(“select column from table where userid = ${userid} “)
public int selectColumn(@Param(“userid”) int userid);
When you do not use the @ param annotation to declare parameters, you must use the use #{} method. If you use ${}, an error will be reported.
@ Select(“select column from table where userid = ${userid} “)
public int selectColumn(@Param(“userid”) int userid);
2. Do not use @ param annotation
··When the @ param annotation is not used, there can only be one parameter and it is a java bean. JavaBean properties can be referenced in SQL statements, and only JavaBean properties can be referenced.
// Here ID is the attribute of user
@ Select(“SELECT * from Table where id = ${id}”)
Enchashment selectUserById(User user);
1
[Linux] MAC installation pyfasttext error
Reference: MacOS installation pyfasttext error reporting solution_ Kungreye CSDN blog
Mac usage clang Compile and change the compilation path again to successfully install (both methods are OK).
Solution:
CXX=/usr/bin/clang CC=/usr/bin/clang pip3 install --no-cache pyfasttext
An error of 500 is reported when an item is assigned to a role
Original: void addrolesbyuserid (string [] roleids, string userid);
After modification: void addrolesbyuserid (@ param (“roleids”) string [] roleids, @ param (“userid”) string userid);
Error reason: roleides is not found, and the roleides parameter is not detected by SQL statement
Solution: add the @ param annotation to specify the parameters of the incoming SQL statement
An error occurred when installing pytorch version 1.7 GPU
Error when installing 1.7 GPU version of pytorch: torch has an invalid wheel,. Dist info directory not found
the reason is that CUDA versions are inconsistent,
Solution 1:
Install torch for CPU version
pip install torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
Solution 2:
conda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 cudatoolkit=11.0 -c pytorch
Pandas uses str.contains to filter error [How to Solve]
When using pandas to filter excel,
df.loc[df['threat_type'].str.contains("DGA")]
The following error messages appear:
ValueError: Cannot mask with non-boolean array containing NA/NaN values
It is reported that the grouping column contains non-string contents. Because the use of .Str.contains requires that the field must be a string and cannot have numbers,
so it is added to the code
df.loc[df['threat_type'].str.contains("DGA", na=False)]
This enables the function to directly ignore non-string situations.