Oracle 删库

最近,“从删库到跑路”的话题热度攀升,今天就教你如何进行Oracle 删库!

DBCA启动图形界面


选择要删除的DB,点击finish按钮即可。


半杯茶的工夫,删库完成!比安装EZ很多~~


附1. 手工创建的数据库注册到 DBCA(添加到最后一行):
  1. [oracle@db01 ~]$ vi /etc/oratab
  2. #



  3. # This file is used by ORACLE utilities. It is created by root.sh
  4. # and updated by either Database Configuration Assistant while creating
  5. # a database or ASM Configuration Assistant while creating ASM instance.

  6. # A colon, ':', is used as the field terminator. A new line terminates
  7. # the entry. Lines beginning with a pound sign, '#', are comments.
  8. #
  9. # Entries are of the form:
  10. # $ORACLE_SID:$ORACLE_HOME:<N|Y>:
  11. #
  12. # The first and second fields are the system identifier and home
  13. # directory of the database respectively. The third filed indicates
  14. # to the dbstart utility that the database should , "Y", or should not,
  15. # "N", be brought up at system boot time.
  16. #
  17. # Multiple entries with the same $ORACLE_SID are not allowed.
  18. #
  19. #
  20. ORCL:/u01/app/oracle/product/11.2.0/db_1:N
  21. PROD:/u01/app/oracle/product/11.2.0/db_1:N


附2. DBCA静默安装的样例:

点击(此处)折叠或打开


  1. [oracle@db01 ~]$ dbca -silent -createDatabase -templateName $ORACLE_HOME/assistants/dbca/templates/General_Purpose.dbc -gdbname PROD -sid PROD -characterSet ZHS16GBK
  2. Enter SYS user password:
  3.  
  4. Enter SYSTEM user password:
  5.  
  6. Copying database files
  7. 1% complete
  8. 3% complete
  9. 37% complete
  10. Creating and starting Oracle instance
  11. 40% complete
  12. 45% complete
  13. 50% complete
  14. 55% complete
  15. 56% complete
  16. 60% complete
  17. 62% complete
  18. Completing Database Creation
  19. 66% complete
  20. 70% complete
  21. 73% complete
  22. 85% complete
  23. 96% complete
  24. 100% complete
  25. Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/PROD/PROD.log" for further details.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12707874/viewspace-2144581/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/12707874/viewspace-2144581/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值