惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
T
Tenable Blog
Project Zero
Project Zero
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
S
Schneier on Security
Scott Helme
Scott Helme
S
Securelist
Know Your Adversary
Know Your Adversary
Vercel News
Vercel News
IT之家
IT之家
V
V2EX
F
Fortinet All Blogs
Simon Willison's Weblog
Simon Willison's Weblog
K
Kaspersky official blog
博客园_首页
T
Tailwind CSS Blog
The GitHub Blog
The GitHub Blog
Spread Privacy
Spread Privacy
Microsoft Security Blog
Microsoft Security Blog
Cisco Talos Blog
Cisco Talos Blog
The Register - Security
The Register - Security
有赞技术团队
有赞技术团队
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cyberwarzone
Cyberwarzone
Google DeepMind News
Google DeepMind News
The Hacker News
The Hacker News
L
LINUX DO - 热门话题
Hugging Face - Blog
Hugging Face - Blog
博客园 - 三生石上(FineUI控件)
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
CXSECURITY Database RSS Feed - CXSecurity.com
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Threat Research - Cisco Blogs
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Privacy & Cybersecurity Law Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CERT Recently Published Vulnerability Notes
S
SegmentFault 最新的问题
AWS News Blog
AWS News Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Vulnerabilities – Threatpost

博客园 - 早上六点半遇见五月天

PHP 关于用判断is_resource函数判断 CURL 句柄,在 PHP 7.2+ 版本有一个重要变化! mysql 存储不过1000个中文选什么数据类型 PHP curl 模拟GET请求接口报错HTTP Status 400 – Bad Request 问题 删除所有的php-fpm进程命令 Mac版phpstorm 一次性折叠所有函数/方法的快捷键 Mac 多次killall php-fpm之后会php-fpm会自动启动 解决方法 PHP 常用的字符串函数 MySQL 表示日期的数据类型 同一局域网下Mac无法远程连接至win7报错:Unable to connect to remote PC. MySQL 支持的存储引擎 设计模式之单例模式 MySQL 数据定义语言(DDL) 设计模式的原则和法则 GoF的23种设计模式分类和功能 PHP 跨域之header Mac brew安装的php修改了php.ini之后如何重启php? PHP 文件上传之如何识别文件伪装?——PHP的fileinfo扩展可! PHP 超全局变量之$_FILES PHP 超全局变量之$GLOBALS
利用Navicat premium实现将数据从Oracle导入到MySQL
早上六点半遇见五月天 · 2021-03-29 · via 博客园 - 早上六点半遇见五月天

背景:我们给用户提供了新的直播系统,但客户之前的老系统用的数据库是Oracle,我们提供的新系统用的是MySQL

客户诉求:将老系统中的所有直播数据导入到MySQL中;

思路:我知道Navicat有数据迁移的功能,所以在想将客户的数据导入到我本地的Oracle中,用Navicat,数据迁移导过来;再在新系统提供接口将老数据导入到新系统中; 但是,我从业这几年,没用过Oracle…… 还好,有朋友用过,所以问了问朋友

具体解决步骤:

1、win7系统;安装Oracle,客户版本 11gr2;我安装的版本1. Oracle Database 11g Release 11.2.0.1.0 - 64bit Production; 

   安装过程参考:https://blog.csdn.net/qq_33317586/article/details/81712139

2、安装Navicat和MySQL

   Navicat premium 上官网下载安装就好了;

  MySQL安装过程参考:https://www.jb51.cc/mysql/560200.html

3、两个数据库环境安装好之后,将客户提供的dmp文件导入到Oracle中:

  1>Navicat 链接Oracle;

  

  2>Oracle 在导入数据库的之前,需要先创建表空间和表名

  

--创建表空间
create tablespace LIVE
logging
datafile 'D:\oracle\LIVE.dbf'
size 1024m
autoextend on
maxsize unlimited
extent management local;

--创建用户
create user LIVE identified by root
default tablespace LIVE
temporary tablespace temp;

--权限:
grant aq_administrator_role to LIVE with admin option;
grant authenticateduser to LIVE with admin option;
grant connect to LIVE with admin option;
grant dba to LIVE with admin option;
grant resource to LIVE with admin option;
grant unlimited tablespace to LIVE with admin option;

  3>利用命令行 imp命令将dmp文件导入到Oracle数据库中:

  导入整个库:

  

C:\Users\Administrator>imp LIVE/root@orcl file = C:\Users\Administrator\Desktop\
a.dmp log = C:\Users\Administrator\Desktop\live.log full = y;

  导入整个数据库命令:imp 用户名/密码@orcl file = dmp文件路径 log = 日志路径 full = y;

  等待它自动导入,导入成功会提示导入成功,没有错误警告。

  ……

3、Oracle数据整理好之后,利用Navicat进行数据传输

   1>先在MySQL新建一个用来放数据的数据库注意:数据库的默认编码!数据库的默认编码!数据库的默认编码!别问我为什么强调(因为字符集 我傻了)……

  

  2>Navicat>工具>数据传输:

  

  

  

   

   看见finished successfull就成功了!关闭就可以了。

4、导入到熟悉的MySQL中,就可以项目里筛选数据存到新系统的库中了!


搞了一上午,因为字符集还被同事一波嘲讽,哎,道阻且长,继续努力吧。