上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 52 下一页
摘要: 下面以CVE-2018-2893为例 1.登录oracle官网www.oracle.com 2.在搜索栏输入CVE-2018-2893 3.找到如下栏目点击进入 4.找到对应的补丁号,然后点击右边链接进入 5.找到补丁号相应距阵上面的my oracle support noe 2394520.1链接 阅读全文
posted @ 2023-04-21 16:53 slnngk 阅读(3442) 评论(0) 推荐(0)
摘要: 主库上执行SQL>connect / as sysdbaSQL>alter session set container=pdb1;SQL>create user hxl identified by oracle;SQL>grant dba to hxl; 连接具体pdbsqlplus /nologS 阅读全文
posted @ 2023-04-19 15:33 slnngk 阅读(37) 评论(0) 推荐(0)
摘要: 环境:OS:Centos 7DB:12.2.0.1 拓扑:1主1从的 dataguard 从库恢复新建的pdb后, enabled_PDBs_on_standby参数对该pdb不再起作用了. 1.从库查看参数enabled_PDBs_on_standby SQL> show parameters e 阅读全文
posted @ 2023-04-18 14:12 slnngk 阅读(164) 评论(0) 推荐(0)
摘要: 环境:OS:Centos 7DB:12.2.0.1 1.监听状态 [oracle@19c ~]$ lsnrctl status LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 17-APR-2023 23:12:48 Copyright ( 阅读全文
posted @ 2023-04-18 11:19 slnngk 阅读(342) 评论(0) 推荐(0)
摘要: 环境:OS:Centos 7DB:12.2.0.1 主库: alter session set container=pdb2; column file_name format a64; select file_name,file_id from dba_data_files; SQL> select 阅读全文
posted @ 2023-04-18 09:50 slnngk 阅读(62) 评论(0) 推荐(0)
摘要: 环境:DB:12.2.0.1 1.关闭pdbalter pluggable database pdb3 close; 2.恢复SQL>alter session set container=cdb$root;SQL>alter system set standby_file_management=a 阅读全文
posted @ 2023-04-17 17:53 slnngk 阅读(57) 评论(0) 推荐(0)
摘要: 环境:OS:Centos 7DB:12.2.0.1 1.全备份数据库 run { allocate channel ch1 device type disk; allocate channel ch2 device type disk; allocate channel ch3 device typ 阅读全文
posted @ 2023-04-14 10:09 slnngk 阅读(49) 评论(0) 推荐(0)
摘要: 1.数据库全备份 run { allocate channel ch1 device type disk; allocate channel ch2 device type disk; allocate channel ch3 device type disk; backup as compress 阅读全文
posted @ 2023-04-13 14:37 slnngk 阅读(86) 评论(0) 推荐(0)
摘要: 1.备份单个pdb run { allocate channel ch1 device type disk; allocate channel ch2 device type disk; allocate channel ch3 device type disk; backup as compres 阅读全文
posted @ 2023-04-12 09:48 slnngk 阅读(137) 评论(0) 推荐(0)
摘要: 环境: Python:3.6.5 #!/usr/bin/env python #coding=utf-8 import os, json, urllib, datetime, shutil import time import cx_Oracle gl_mysql_server="192.168.1 阅读全文
posted @ 2023-04-11 09:35 slnngk 阅读(370) 评论(0) 推荐(0)
摘要: 方式:1.克隆方式dblink2.DBMS_PDB.DESCRIBE方式 转换成cdb后,原来no-cdb用户的sys、system账号的密码会使用cdb的密码 ######################克隆方式dblink###############################环境:源端( 阅读全文
posted @ 2023-04-10 16:41 slnngk 阅读(166) 评论(0) 推荐(0)
摘要: 1.分区相关 创建分区表CREATE TABLE `app_message_all_new` ( `user_id` bigint(20) NOT NULL, `message_type` int(11), `massive_type` int(11), `status` int(11), `del 阅读全文
posted @ 2023-03-30 10:35 slnngk 阅读(793) 评论(0) 推荐(0)
摘要: 环境:OS:Centos 7 1.控制台添加云盘 2.创建pvpvcreate /dev/sdc 3.扩充VG [root@19c ~]# vgs VG #PV #LV #SN Attr VSize VFree centos 2 2 0 wz--n- 42.99g 0 [root@19c ~]# v 阅读全文
posted @ 2023-03-28 14:21 slnngk 阅读(131) 评论(0) 推荐(0)
摘要: 1.select具体字段 [root@host135 script]# more sqlserver2mysql02.json { "job": { "content": [ { "reader": { "name": "sqlserverreader", "parameter": { "conne 阅读全文
posted @ 2023-03-27 16:19 slnngk 阅读(173) 评论(0) 推荐(0)
摘要: 1.json文件 [root@host135 script]# more oracle2mysql.json { "job": { "content": [ { "reader": { "name": "oraclereader", "parameter": { "column": ["*"], " 阅读全文
posted @ 2023-03-27 14:14 slnngk 阅读(178) 评论(0) 推荐(0)
摘要: 环境: [root@host135 ~]# java -version java version "1.8.0_361" Java(TM) SE Runtime Environment (build 1.8.0_361-b09) Java HotSpot(TM) 64-Bit Server VM ( 阅读全文
posted @ 2023-03-27 13:57 slnngk 阅读(1137) 评论(0) 推荐(0)
摘要: 1.下载驱动安装包instantclient-basic-windows.x64-11.2.0.4.0instantclient-odbc-windows.x64-11.2.0.4.0 2.解压将下载的两个安装包解压到一起 3.以管理员身份运行cmd命令 4.进入到odbc_install.exe执 阅读全文
posted @ 2023-03-24 17:01 slnngk 阅读(1435) 评论(0) 推荐(0)
摘要: 1.substr和substrb [oracle@lenovo sqlload]$ more tb_test01.ctl Load DATA LENGTH SEMANTICS CHARACTER INFILE '/tmp/mytest.txt' truncate into table tb_test 阅读全文
posted @ 2023-03-24 15:17 slnngk 阅读(139) 评论(0) 推荐(0)
摘要: 1.查看当前库下的所有表 select name from dbo.sysobjects where xtype='U' 2.查看当前表占用空间大小 SELECT db_name() as DbName, t.NAME AS TableName, s.Name AS SchemaName, p.ro 阅读全文
posted @ 2023-03-23 08:53 slnngk 阅读(56) 评论(0) 推荐(0)
摘要: 1.导出表bcp "select * from tryine_kjzx.dbo.tb_test01" queryout c:\my.txt -S 192.168.1.39 -U"test" -P"test" -c -t"€" -r"\n" 2.ue打开文件转换 dos转unix转换 ascii转ut 阅读全文
posted @ 2023-03-23 08:39 slnngk 阅读(212) 评论(0) 推荐(0)
摘要: 环境:角色 ip 部署db 部署ogg源端 192.168.1.134 mysql5.7 ogg for mysql:12.2目的端 192.168.1.135 无 ogg adapeter:12.2.0.1 ######################源端##################### 阅读全文
posted @ 2023-03-16 15:09 slnngk 阅读(87) 评论(0) 推荐(0)
摘要: 1.日常命令 db.serverStatus() ##查看系统状态db.currentOp() ##查看正在运行的会话db.killOp() ##获取到opid,杀掉会话db.getProfilingLevel() ##获取日志级别 2.查看执行计划db.tb_test.find({"update_ 阅读全文
posted @ 2023-03-15 11:10 slnngk 阅读(112) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python#coding=utf-8from pymongo import MongoClientimport timefrom datetime import datetimeimport astdef chaxun_data(): ##client = Mongo 阅读全文
posted @ 2023-03-15 09:30 slnngk 阅读(128) 评论(0) 推荐(0)
摘要: 同步先做增量通过,然后再做数据初始化,增量和数据初始化的复制进程都需要加上handlecollisions,下面以oracle同步到mysql为例 #####################先做增量同步############################ 主库 抽取进程 GGSCI (host0 阅读全文
posted @ 2023-03-14 11:16 slnngk 阅读(584) 评论(0) 推荐(0)
摘要: 函数@RANGE (1, n,字段1,字段2...)拆分,你打算对这个表拆分分成几个进程,n就是几,相应的创建n个复制进程 同时这里的字段必须是主键或是keycols定义的列 1.给准备新建的进程添加参数文件添加replicate 进程 add replicat repep1,exttrail /g 阅读全文
posted @ 2023-03-13 17:16 slnngk 阅读(140) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 52 下一页