当前位置:网站首页>Oracle 备份与用户解锁
Oracle 备份与用户解锁
2022-04-21 13:48:00 【Life666888】
1.scott用户解锁
登录oracle :sqlplus / as sysdba
输入命令:alter user scott identified by tiger unlock;
2.备份
首先以sysdba权限登录数据库
sqlplus / as sysdba
找到控制文件所在目录
SQL> col name for a60
SQL> select name from v$controlfile;
关闭数据库
shutdown immediate;
备份文件
host copy F:\app\Administator\oradata\dog*.* D:\Backup
host copy F:\app\Administator\product\11.2.0\dbhome_1\database*.* D:\Backup
到此备份完成
启动数据 startup
如果数据库发生崩溃,关闭数据库之后,可以将所做的备份放在原来的位置,在启动,这样数据库就到了备份之前的状态。
版权声明
本文为[Life666888]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Life666888/article/details/81916227
边栏推荐
猜你喜欢

Unittest单元测试(二)

Number II that occurs only once (hash, bit operation, logic circuit, finite state automata)

Sqlyog import SQL file

Explication détaillée du mécanisme d'allocation de mémoire JVM

International logistics centralized transportation system source code, overseas warehousing cross-border transshipment system source code

深度学习与图像识别:原理与实践 笔记Day_16

Ipemotion collects J1939 protocol signal

Ali Tianchi competition -- street view character coding recognition

Peking University ACM problems 1009: edge detection
![[special topic of stack and queue] - Dual queue simulation stack](/img/5f/241804f418487e779f8bd762df5556.png)
[special topic of stack and queue] - Dual queue simulation stack
随机推荐
String string dynamic change (10 points): in the following procedures, the function of fun is to find the character with the largest ASCII code value in the string STR, move all the characters before
并发编程之CAS和Atomic原子操作类
Servlet中关于web.xml的测试
JVM字节码文件结构深度剖析
Hystrix使用
JVM內存分配機制詳解
Beauty of ASM pile insertion
Color gradient (columns, rings, etc.)
Unittest unit test (V)
Explication détaillée du mécanisme d'allocation de mémoire JVM
What does it mean that the AGP transform API is abandoned?
工具函数---小数位处理
MySQL learning notes - day03
If the field lines are the same, they will be merged into another field SQL statement?
MySQL slow query log and index merge analysis
Ipemotion collects J1939 protocol signal
关于`Object.clone()`子类不能调用的思考
Locate the structural pseudo class of the child element
字符串串动变化 (10 分)下列程序中,函数fun的功能是:在字符串str中找出ASCII码值最大的字符,将该字符前的所有字符向后顺序移动一个位置,然后将该字符放到第一个位置上。
Do self media and short videos. You don't have to shoot videos yourself. Dazhou teaches you a quick way to start