1登录sys用户 2创建目录 create directory [dirname] as ‘[dirpath]’; dirname:取的名字 dirpath:dmp文件导出路径 示例:create directory cea as 'D:/'; 3查看一下是否存在该目录 select * from dba_directories; 4赋予指定用户在此目录的读写权限 GRANT READ, WRITE ON DIRECTORY [dirname] to [dbuser]; dirname:取的名字…
查看oracle数据库的连接数以及用户 11.查询oracle的连接数2select count(*) from v$session;32.查询oracle的并发连接数4select count(*) from v$session where status='ACTIVE';53.查看不同用户的连接数6select username,count(username) from v$session where username is not null group by username;74.查看所…
1.首先建立DUMP_DIR sqlplus / as sysdba select * from dba_directories 如果没有DUMP_DIR就执行下面的语句 CREATE OR REPLACE DIRECTORY DUMP_DIR AS 'C:\as' 此处的“C:\as”为DUMP_DIR的目录,用来存放dmp文件 2.执行下面语句授权 GRANT READ, WRITE ON DIRECTORY SYS.DUMP_DIR TO SYSTEM 3.导入.导出 cmd下执行下面命令…