Loading

02 2023 档案

摘要:1.脚本如下 snc-sdyd-oceanbase02:~/lhh # cat orac host="172.16.100.136" password=ShSnc123!@# if [ "$1" = "version" ]; then mysql -h"$host" -P2881 -uroot@sy 阅读全文
posted @ 2023-02-26 22:48 李行行 阅读(139) 评论(0) 推荐(0) 编辑
摘要:原文连接:https://linux.cn/article-7310-1.html 在 Linux 系统中,我们经常用 free 命令来查看系统内存的使用状态。在一个 RHEL6 的系统上,free 命令的显示内容大概是这样一个状态: [root@tencent64 ~]# free total u 阅读全文
posted @ 2023-02-24 14:03 李行行 阅读(54) 评论(0) 推荐(0) 编辑
摘要:1.查看状态如下信息 2.两个关键命令 show database 'sbdb' statusreport; show database verbose SBDB; 3.查看状态信息 show database 'jkzy' statusreport; 根据报错检查数据库角色,查看之后什么都是正常的 阅读全文
posted @ 2023-02-23 17:19 李行行 阅读(118) 评论(0) 推荐(0) 编辑
摘要:mosid:34631.1 Oracle 12.1 Id1 Meaning ~~~ ~~~~~~ 0 to 112 *Same as 11.2.0.3 113 Oracle Label Security install 114 Oracle Label Security enforce 115 Or 阅读全文
posted @ 2023-02-21 15:45 李行行 阅读(24) 评论(0) 推荐(0) 编辑
摘要:set long 1000000 SET PAGESIZE 3000 set lines 200 SET HEADING OFF SET VERIFY OFF SET FEEDBACK OFF set echo on set timing off set wrap On SET LONGCHUNKS 阅读全文
posted @ 2023-02-17 21:37 李行行 阅读(97) 评论(0) 推荐(0) 编辑
摘要:$ machinfo CPU info: #CPU信息 4 Intel(R) Itanium 2 9100 series processors (1.59 GHz, 18 MB) #4个CPU 532 MT/s bus, CPU version A1 8 logical processors (2 阅读全文
posted @ 2023-02-17 13:30 李行行 阅读(39) 评论(0) 推荐(0) 编辑
摘要:hp unix mount -F nfs -o rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,proto=tcp,suid,forcedirectio 172.16.8.90:/xtts /xtts aix mount -t n 阅读全文
posted @ 2023-02-17 13:23 李行行 阅读(200) 评论(0) 推荐(0) 编辑
摘要:脚本 vi a.shmysql -uroot -p123456 -N >a.txt<<! select concat(concat('show create table ',TABLE_SCHEMA,'.',TABLE_NAME),'\\\G') from information_schema.ta 阅读全文
posted @ 2023-02-15 19:06 李行行 阅读(91) 评论(0) 推荐(0) 编辑
摘要:之前一直纠结mysql如何编写交互式脚本,像Oracle那样进行交互式输出,通过Oracle的方式交互式输出在mysql中格式是乱的,最后在网上发现了mysql原来有一个-e选项 编写相关脚本如下 [root@rds lhh]# cat ora mysql -e "source $1" [root@ 阅读全文
posted @ 2023-02-14 18:20 李行行 阅读(32) 评论(0) 推荐(0) 编辑
摘要:今天碰见了两个常见小问题,简单记录下 1.Terminal too wide 处理方式:在当前会话界面输入以下内容stty columns 100 2.crontab无法调用 $ crontab -lcrontab:you are not authorized to use cron. Sorry. 阅读全文
posted @ 2023-02-13 10:19 李行行 阅读(122) 评论(0) 推荐(0) 编辑
摘要:在Oracle的日常运维中,我们经常会使用v$session视图中的p1,p2,p3,当p1text=type|mode,一般就代表这个p1代表一个锁,那么可以通过如下脚本来进行查看锁的定义,下面脚本并展示了new_value替代变量的使用 1.编写脚本如下 [oracle@rds lhh]$ ca 阅读全文
posted @ 2023-02-12 23:56 李行行 阅读(47) 评论(0) 推荐(0) 编辑
摘要:contents of Memory Script: { backup as copy current controlfile for standby auxiliary format '/oradata/ORCL/control01.ctl'; restore clone primary cont 阅读全文
posted @ 2023-02-10 14:04 李行行 阅读(803) 评论(0) 推荐(0) 编辑
摘要:1.设置保留时间点 begin dbms_audit_mgmt.set_last_archive_timestamp( audit_trail_type => dbms_audit_mgmt.audit_trail_unified, last_archive_time => sysdate -1, 阅读全文
posted @ 2023-02-05 22:32 李行行 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-02-05 21:58 李行行 阅读(23) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
more_horiz
keyboard_arrow_up dark_mode palette
选择主题