前提,要打开windows command line窗口。
1。打开sqlPLUS
C> sqlplus /nolog
2。连接到指定数据库
sql>connect user/password@SID 或者
sql>connect user/password@localhost(IP Address):1521/SID
sql>select table_name from user_tables;
4。使用DBA身份登陆数据库
sql>connect system/manager@SID as sysdba;
5。系统表中检索用户
sql>select name,password from sys.user$ where name = ''zhangsan';
sql>alter user user_name identified by new_password;
7。查询DBA Profile表
sql>select * from dba_profiles where profile='DEFAULT_PROFILE';
8。使用完整模式导出指定数据库
c\:>exp 'system/manager@SID as sysdba' FULL=y FILE=c:\dbfulldata.dmp log=c:\dbfulldata.log
9。导入到新的数据库中
c\:>imp system/manager@SIDFULL=Y IGNORE=Y file==imp_dbfull.dmplog=imp_dbfull.dmp.log
sql>spool c:\result.txt;
sql>select * from yourtables;
sql>spool off; --强制清孔缓冲区数据到指定txt文件
sql>connect sys/install_on_change@SID as sysdba;
sql>alter user system identified by new_password;
12。查看Oracle当前版本信息
sql>select * from v$version;
c\:>oradim -delete -sid SID
14。查看用户信息
sql>select * from dba_users;
原文链接:https://www.f2er.com/oracle/213351.html