王殊勋的个人博客

只要开始,虽远不迟!

服务器安装了oracle后运行正常,但是连接速度非常缓慢。 问题是linux系统dns配置导致的。 1 vi /etc/resolv.conf 将该文件中不必要的dns配置注销,我这台服务器没有外网,直接全部注销。 1 2 3 ; generated by /sbin/dhclient-script #search openstacklocal #nameserver 114.114.114.114 问题解决。
阅读全文 »

主要原因是linux的sysctl.conf中的kernel_shmmax配置不合理。 1 2 3 4 5 6 7 8 9 10 11 12 net.ipv4.ip_local_port_range= 9000 65500 fs.file-max = 6815744 kernel.shmall = 10523004 kernel.shmmax = 6465333657 #kernel.shmmax = 65970176 kernel.shmmni = 4096 kernel.sem = 250 32000 100128 net.core.rmem_default=262144 net.c
阅读全文 »

通过换yum源安装: 1 2 3 4 5 6 7 yum install centos-release-scl-rh yum install rh-ruby23 -y scl enable rh-ruby23 bash ruby -v 另外可能出现一个错误: 1 ruby: error while loading shared libraries: libruby.so.2.3: cannot open shared object file: No such file or directory 这个错误的原因是这个so文件的目录不对。 1 cp /opt/
阅读全文 »

1 nohup impdp 'v3xusernew/"***********8"' directory=BACKUP dumpfile=2021-09-30.dmp logfile=impdp.log REMAP_SCHEMA=v3xuser:v3xusernew remap_tablespace=v3x_space:v3x_new table_exists_action=replace 这样就可以导入不同模式名和表空间名的备份了,并且遇到同名数据会覆盖。
阅读全文 »

sql语句如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 SELECT mAX(B.file_id) id, B.TABLESPACE_NAME 表空间, B.FILE_NAME 物理文件名, B.BYTES / 1024 / 1024 大小M, (B.BYTES - SUM(NVL(A.BYTES,0))) / 1024 / 1024 已使用M, SUBSTR((B.BYTES - SUM(NVL(A.BYTES,0))) / (B.BYTES) * 100,1,5) 利用率 FROM DBA_FREE_
阅读全文 »

代码的作用是按照对应的循环次数,每次给当前系统时间加上5秒。 1 2 3 4 5 6 7 8 9 import time import datetime import os for num in range(1,50): aftertime = (datetime.datetime.now() + datetime.timedelta(seconds=5)).strftime("%Y-%m-%d %H:%M:%S") print('5S后时间:%s' % (aftertime)) os.system('date -s "%s"' % (aftertime))
阅读全文 »

sql如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 select a.a1 表空间名称, c.c2 类型, c.c3 区管理, b.b2/1024/1024/1024 表空间大小G, (b.b2-a.a2)/1024/1024/1024 已使用G, substr((b.b2-a.a2)/b.b2*100,1,5) 已利用率, round(100-(substr((b.b2-a.a2)/b.b2*100,1,5)), 3) 剩余利用率 from (select tablespace_name a1, sum(nvl(bytes,0)) a2 from dba_f
阅读全文 »
0%