# migrate_database **Repository Path**: dbnews/migrate_database ## Basic Information - **Project Name**: migrate_database - **Description**: 基于Shell的数据库全库迁移脚本。 - **Primary Language**: Shell - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-30 - **Last Updated**: 2021-12-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # migrate_database #### 介绍 基于Shell的数据库全库迁移脚本。 #### 软件架构 1. Linux平台脚本 #### 使用说明 1. 1_get_tablespaces.sh:获取源库中表空间的创建语句 2. 2_get_profiles.sh:获取源库用户profile的创建语句 3. 3_get_users.sh:获取源库用户的创建语句 4. 4_get_users_sys_privs.sh:获取源库用户系统权限的创建语句 5. 5_get_users_tab_privs.sh:获取源库用户对象权限的创建语句 6. 6_get_users_role_privs.sh:获取源库用户角色的创建语句 7. 7_get_users_dblink_privs.sh:获取源库用户dblink权限的创建语句 8. 8_check_objects_num.sh:获取源库对象统计数量等信息 9. 9_get_expdp_scripts.sh:获取源库expdp导出命令 10. 10_get_impdp_scripts.sh:获取目标库impdp导入命令 注意:所有脚本都在源库按照前面的1-10标号顺序执行! --用户数据导出命令,放后台执行 nohup /bin/sh /home/oracle/expdp_script/9.expdp.sh >>/home/oracle/expdp_script/expdplog.file 2>&1 & --用户数据导入命令,放后台执行 nohup /bin/sh /home/oracle/expdp_script/10.impdp.sh >>/home/oracle/expdp_script/impdplog.file 2>&1 & #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)