Category Archives: How to Fix

Failed to create Oracle Oracle home user solution appears in oracle12c installation

when I was installing Oracle12c, I also encountered the problem that Oracle12c Failed to Create oracle oracle Home User. I also found many solutions on the Internet, and this one worked.

1, open domain security policy (secpol.msc) – security Settings – account policy – password policy – password must comply with complexity requirements. Define the policy setting to: disabled.

2. Finally, CMD runs refresh group policy command: gpupdate /force

3, reinstall.

4, solve.

blog from: https://blog.csdn.net/u010249920/article/details/80691814

Elasticsearch6. X invalid time range query bug

elasticsearch6.x time-range query invalid bug

1.es6.8.1 time range query, the original writing is as follows:

GET /oms_historyalarm.historyalarm_recent/historyalarm_recent/_search
{
    "query":{
             "range":{
                "fault_start_time":{
                    "from":"2019-10-28 00:00:00",
                    "to":"2019-10-28 17:46:03",
                    "format": "yyyy-MM-dd hh:mm:ss"
                  }
              }
      }
}

query results are as follows:

{
  "took" : 2,
  "timed_out" : false,
  "_shards" : {
    "total" : 5,
    "successful" : 5,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : 0,
    "max_score" : null,
    "hits" : [ ]
  }
}
2. Looked up many baidu resources but could not find a solution, finally went back to check the field type of es index, found that fault_start_time field storage type is String, in this case, es will default to participle query again, of course, but no return.

solution: simply identify the time field that needs to be filtered as a keyword and then es will not participle it. As follows:

GET /oms_historyalarm.historyalarm_recent/historyalarm_recent/_search
{
    "query":{
             "range":{
                 "fault_start_time.keyword":{
                     "from":"2019-10-28 00:00:00",
                     "to":"2019-10-28 17:46:03",
                     "format": "yyyy-MM-dd hh:mm:ss"
                  }
              }
    }
}

result: of course successful

hope you can help, if you have any questions please leave a comment.

Go get github.com/kotakanbe/go -Problems encountered in CVE dictionary Download

(QIANG)

recently installed vuls on centos, which is the reason for QIANG’s frequent situation. Therefore, document several problems encountered and solutions

1.github.com undownloadable issues

before the reference to reprint an article in the link: https://blog.csdn.net/Jesusons/article/details/104267286
at the end of the centos/etc/hosts add

151.101.72.133 assets-cdn.github.com
151.101.229.194 github.global.ssl.fastly.net

will solve the problem

2. Resolve unknown import path “golang.org/x/sys/unix” : unrecognized import path “golang.org/x/sys”

is still QIANG, so you can’t directly visit golang.org. Fortunately, since Go 1.11, the Go module package dependency management tool has been officially supported. As long as you start Go modules, you can download it smoothly.

启用 Go Modules 功能
export GO111MODULE=on
 配置 GOPROXY 环境变量
export GOPROXY=https://goproxy.io

put a download interface after solving these two problems

When we crawl to the HTTPS website, the SSL certificate error is solved

SSL certificate error occurs when we crawl HTTPS sites

HTTPS in plain English is our HTTP + SSL (certificate), some small companies make their own SSL, so sometimes when we visit the website of some small companies it will remind us to download some SSL certificates, and the website that we don’t have to download has been CA certified

we are going to crawl an SSL certificate that is not a CA certified web address to verify.
when we climb to find the problem of error.

Idea has no code prompt solution when writing YML file

small white write springboot project, configuration yml file no code prompt, tried a lot of online methods, but did not find the answer, finally accidentally solved. I hope my method can help you.

I used idea2020, which should be updated. The yml file icon in 2020 has been changed, and there are no green leaves. The specific icon is like this.

if your icon looks like this, the software has recognized the yml file, but there is no code prompt, you need to download the yml plugin. Download plugins in setting.

Trouble shooting of no display in dieyun 2270g8

colleague 2270G8 suddenly not powered on, after replacing the main board, the power is powered on, the fan starts, but does not show, because it is an all-in-one machine, it is difficult to judge whether the replacement is successful. The VGA interface of the all-in-one machine is connected to the monitor, and the display is successful, which proves the replacement of the motherboard is successful. The manufacturer said that the BIOS parameters of the motherboard should be adjusted. The first display should be changed to LVDS and the resolution should be changed to 1720*1080. Success! Make a note!

An undetermined call to function ‘shell’: missing ‘. Stop. Problem encountered when using shell command in makefile

Calling a shell command in a

Makefile if the command has the character ‘#’, this can cause the following problem:

Makefile:3: *** unterminated call to function `shell': missing `)'. Stop.

possible reason: “”#" is parsed as a comment in a Makefile.

so if you want to use “#” you can just add the escape character “\#”.

Java query HBase outoforderscannernextexception

Java query hbase timeout, and sometimes an error OutOfOrderScannerNextException

there is only one message like this, no other error message

Caused by: org.apache.hadoop.hbase.exceptions.OutOfOrderScannerNextException: org.apache.hadoop.hbase.exceptions.OutOfOrderScannerNextException: Expected nextCallSeq: 1 But the nextCallSeq got from client: 0; request=scanner_id: 178 number_of_rows: 100 close_scanner: false next_call_seq: 0

then I trim the rowkey, make it the same length, and there it is…

Shiro deserialization vulnerability replication (cve-2016-4437)

In Apache Shiro 1.2.4 and previous versions, the encrypted user information is serialized and stored in a Cookie named remember-me. Attackers can use Shiro’s default key to forge user cookies, triggering a Java deserialization vulnerability, and then execute arbitrary commands on the target machine.

influence scope
Apache Shiro version < = 1.

vulnerability copy
1. Vulhub into the vulnerability directory pull up environment
2. Visit http://ip:8080, you can see the login interface

3. Input the password of any account and connect remeber me, grab the pack and view the returned set-cookie field. RemeberMe =deleteMe field

4 exists.

5. Select dnslog.cn for vulnerability detection
6. Key and Gadget

7 were retrieved. But after executing the command, I found that I could not see the echo

8. Alternatively, if you choose to use echo for vulnerability detection, you can provide a static resource URL that the program will use as a write directory
9. repair Suggestions
update shiro version

Differences between using VaR and omitting VaR to define variables in JS

define variables in js, we use var, accustomed to omit the var can actually use.

, use var or omit var to define variable difference
1, var private variable, can only be used in the current js, or use in the current scope, define private variable, can not delete; 2. Var definition variables are omitted, such as a = “SSS”, which defines a global variable object a. Before a is deleted, we can directly input a in the browser console and then see the result.

is not recommended to omit var, when var is omitted to be careful
var will bring the following:

  1. semantic unclear.
  2. team development, easy to overwrite other scoped variables, throwing exceptions.
  3. add unnecessary members to the window object, which is unnecessary pollution brings to the window, so use the best delete off, by the way, lest affect other variable
    the original links: https://www.cnblogs.com/qijuzi/p/8329994.html