小任班长 发布的文章

核心代码如下

    /** 
    CGRect contentRect = CGRectZero;
    for (UIView *view in self.contentScrollView.subviews) {
        contentRect = CGRectUnion(contentRect, view.frame);
    }
    contentRect.size.height = contentRect.size.height  + 10;
    self.contentScrollView.contentSize = contentRect.size;
    */

### 核心代码如下:

Class<?> cls = body.getClass();
// 取出bean里的所有方法
Method[] methods = cls.getDeclaredMethods();
Field[] fields = cls.getDeclaredFields();
for (Field field : cls.getDeclaredFields()) {
    if (field.getName().equals("xxx")) {
        field = cls.getDeclaredField("xxx");
        field.setAccessible(true);
        field.set(body, "value");// 给指定的属性赋值
        break;
    }
}

-- ①查看产生死锁的表:
select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName
from sys.dm_tran_locks where resource_type='OBJECT'
-- 其中spid表示锁表的进程,tableName表示被锁的表名。

-- ②“杀死”死锁进程:
kill spid

At the P30 series of national bank conferences in April, Huawei announced the revolutionary “Ark Compiler”, which significantly improved performance through architecture-level optimization, especially the implementation of machine code throughout the process, running applications efficiently, and completely solving Android applications. Inefficiency caused by "execution".

Huawei claims that the Ark compiler can improve system operation fluency by 24%, system response speed by 44%, and third-party applications can be improved by 60% after recompilation!

Not only that, Yu Chengdong announced at the time that the Huawei Ark compiler will open source to the industry and appeal to APP developers and developers to use it as soon as possible.

At the China Open Source Summit 2019 held in Shanghai, Xiao Ran, vice president of Huawei's strategy and industry development, said that the Huawei Ark compiler will be officially open source in August this year.

Xiao Ran said that the majority of partners and application developers can join the "Ark of Friends Circle" together, "we work together to build a terminal ecological ark to build a fair, open, healthy and win-win global ecosystem."
66829-9pem2ojwudl.png

It is understood that the Huawei Ark compiler is from Huawei Ark Lab, which was developed by Zhou Zhide, the world's top editor and authoritative expert. It took nearly 10 years to build.

执行sql提示错误:
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0

出现原因大部分是因为oracleSID不对,排查方法:

export ORACLE_SID=xxxx --设置实例
echo $ORACLE_SID --查看当前实例

查看监听状态

lsnrctl status

随后重新登录,执行sql就不会提示报错。

免责声明
本博客部分内容来自于互联网,不代表作者的观点和立场,如若侵犯到您的权益,请联系[email protected]。我们会在24小时内进行删除。