oracle 本地数据库用户名密码忘了,如何破解??急!

2020-10-28 科技 91阅读
1、cd $ORACLE_HOME/network/admin/
将sqlnet.ora改个名字
2、用sys用户登录
sqlplus '/as sysdba'
查看用户
select username,account_status from dba_users where account_status='OPEN';
修改用户的密码
password username;(或alter user username IDENTIFIED BY password; )
3、或者创建个和导出时一样的tablespace和user,并赋予导入权限
create tablespace ts01 datafile '/data1/oracle/test_201203.dbf' size 2048M AUTOEXTEND ON NEXT 512M MAXSIZE UNLIMITED;
create user user01 identified by password1 default tablespace ts01;
GRANT CREATE USER,DROP USER,ALTER USER ,CREATE ANY VIEW ,
DROP ANY VIEW,EXP_FULL_DATABASE,IMP_FULL_DATABASE,
DBA,CONNECT,RESOURCE,CREATE SESSION TO user01;
4、imp user01/password1 file=your.dmp FULL=y log=imp.log
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com