gdjlc

培养良好的习惯,每天一点一滴的进步,终将会有收获。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2016年12月10日

摘要: 背景: oracle正式库通过exp命令导出的dmp备份包,现在通过imp命令还原到测试库,测试库上面的表数据全部不要,要用新的。 方法: 先删除用户、用户所在表空间,再新建用户和表空间,再imp导入。 过程: 1、用plsql查看用户的权限等信息并备份,例如 -- Create the user create user testuser; -- Grant/Re... 阅读全文
posted @ 2016-12-10 13:49 gdjlc 阅读(35294) 评论(0) 推荐(0)

摘要: 例如,用户名test1改为test2,在plsql界面中不支持直接更改用户名,只能通过sql更改 1、查询系统user$中的user#值 select user#,name from user$ where name = 'test1'; 2、根据user#值,更改用户名 update user$ set name='test2' where user#=68; 3... 阅读全文
posted @ 2016-12-10 13:47 gdjlc 阅读(708) 评论(0) 推荐(0)