码迷,mamicode.com
首页 > 数据库 > 详细

Oracle导库及相关操作

时间:2020-02-06 19:31:49      阅读:96      评论:0      收藏:0      [点我收藏+]

标签:sql   用户   oracl   大小   sele   ide   修改   impdp   oracle   

SELECT * FROM dba_profiles s WHERE s.profile=‘DEFAULT‘ AND resource_name=‘PASSWORD_LIFE_TIME‘;--如果后面显示180天的请将密码有效期由默认的180天修改成“无限制”:
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
alter user system identified by dreamsoft;
select * from dba_directories;
create or replace directory dmp as ‘E:\dmp‘;

expdp system/dreamsoft@GSDX DIRECTORY=dmp DUMPFILE=GSDX_20190810.dmp FULL=y

impdp system/dreamsoft@CDGWY DIRECTORY=dmp DUMPFILE=CDZZ20191119.DMP FULL=y

impdp system/dreamsoft@orcl DIRECTORY=dmp DUMPFILE=XMDX_20191208.DMP remap_schema=dsoa:xmdx logfile=xmdx.log

imp dsoa/dreamsoft@SuiZhouSWDX file=E:\dmp\daochu.dmp FULL=y


create user xmdx identified by dreamsoft default tablespace users;
grant resource,connect,dba to xmdx;
commit;--提交

imp dsoa/dreamsoft@SZDX file=e:\dmp\20190820szdx.dmp full=y

--查询数据库用户
select * from dba_users;
drop user xmdx cascade;


--修改memory_target大小
show parameters target;
alter system set memory_target=512M scope=spfile;
alter system set memory_max_target=512M scope=spfile;
alter system set deferred_segment_creation=false scope=spfile;

select username,account_status from dba_users where username=‘DSOA‘;--查看到DSOA用户锁了
alter user DSOA account unlock;--解锁DSOA用户
select * from dba_profiles where RESOURCE_NAME=‘FAILED_LOGIN_ATTEMPTS‘;--查看用户限制登陆次数
alter profile default limit failed_login_attempts unlimited;--修改用户无论输入多少次都不会被锁定


1、在运行中输入CMD

2、在命令行输入sqlplus /nolog (不登陆数据库,只启动sqlplus)

3、SQL> conn /as sysdba

已连接。

4、SQL> alter user system identified by 123456;

用户已更改。

password即为要修改的新密码。

Oracle导库及相关操作

标签:sql   用户   oracl   大小   sele   ide   修改   impdp   oracle   

原文地址:https://www.cnblogs.com/wangSoft/p/12269859.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!