项目中需要将Oracle数据库的内容导入到SQL Server中,但是Oracle数据库管理员的密码丢失了,经Google大神指点使用如下方法进行密码重置,首先进入命令行:

sqlplus /nolog		## 启动不连接数据库
conn / as sysdba	## 用sysdba角色连接
alter user system identified by new_pwd		## 重置system用户new_pwd为新密码

导出:

exp system/new_pwd@orcl file=/tmp/export.dmp owner=movie

查看某个用户的表:

select table_name from dba_tables where owner='user_name'

或者使用user_name连接数据库:

select table_name from user_tables;	## 当前用户的表
select * from tab;	## 方法2

另外:

select table_name from all_tables;	## 所有用户的表 
select table_name from dba_tables;	## 包括系统表

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2022-02-11
  • 2021-06-02
  • 2021-12-10
  • 2021-12-20
  • 2021-12-05
  • 2021-12-10
相关资源
相似解决方案