Bo's Oracle Station

查看: 1533|回复: 0

第25次:

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2014-8-20 08:57:30 | 显示全部楼层 |阅读模式
  1. select  * from v$logfile;

  2. select * from v$log;

  3. alter database add logfile member '+DATA'   to group 1;

  4. alter system switch logfile;

  5. alter database drop logfile member '+DATA/orcl/onlinelog/group_1.269.856037447' ;

复制代码
  1. [oracle@station90 ~]$ sqlplus /nolog

  2. SQL*Plus: Release 11.2.0.3.0 Production on Tue Aug 19 19:38:37 2014

  3. Copyright (c) 1982, 2011, Oracle.  All rights reserved.

  4. SQL> conn / as sysdba
  5. Connected.
  6. SQL> show parameter control

  7. NAME                                     TYPE         VALUE
  8. ------------------------------------ ----------- ------------------------------
  9. control_file_record_keep_time             integer         7
  10. control_files                             string         +DATA/orcl/controlfile/current
  11.                                                  .260.816169631, +FRA/orcl/cont
  12.                                                  rolfile/current.256.816169633
  13. control_management_pack_access             string         DIAGNOSTIC+TUNING
  14. SQL> exit
  15. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
  16. With the Partitioning, Automatic Storage Management, OLAP, Data Mining
  17. and Real Application Testing options
  18. [oracle@station90 ~]$ rman target /  catalog u90/oracle_4U@rcat

  19. Recovery Manager: Release 11.2.0.3.0 - Production on Tue Aug 19 19:46:01 2014

  20. Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

  21. connected to target database: ORCL (DBID=1343950367)
  22. RMAN-04007: WARNING from recovery catalog database: ORA-28002: the password will expire within 7 days

  23. connected to recovery catalog database

  24. RMAN> create catalog;

  25. recovery catalog created

  26. RMAN> register  database ;

  27. database registered in recovery catalog
  28. starting full resync of recovery catalog
  29. full resync complete

  30. RMAN> list backup ;


  31. List of Backup Sets
  32. ===================


  33. BS Key  Size       Device Type Elapsed Time Completion Time
  34. ------- ---------- ----------- ------------ ---------------
  35. 154     64.00K     SBT_TAPE    00:01:46     06-AUG-14      
  36.         BP Key: 162   Status: AVAILABLE  Compressed: NO  Tag: TAG20140806T194707
  37.         Handle: 0qpf9rpr_1_1   Media: station90-000009

  38.   List of Archived Logs in backup set 154
  39.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  40.   ---- ------- ---------- --------- ---------- ---------
  41.   1    93      1914471    06-AUG-14 1914701    06-AUG-14

  42. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  43. ------- ---- -- ---------- ----------- ------------ ---------------
  44. 155     Full    630.50M    SBT_TAPE    00:02:47     06-AUG-14      
  45.         BP Key: 163   Status: AVAILABLE  Compressed: NO  Tag: TAG20140806T194902
  46.         Handle: 0rpf9rtf_1_1   Media: station90-000009
  47.   List of Datafiles in backup set 155
  48.   File LV Type Ckp SCN    Ckp Time  Name
  49.   ---- -- ---- ---------- --------- ----
  50.   1       Full 1915012    06-AUG-14 +DATA/orcl/datafile/system.256.816169553

  51. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  52. ------- ---- -- ---------- ----------- ------------ ---------------
  53. 156     Full    431.06M    SBT_TAPE    00:03:17     06-AUG-14      
  54.         BP Key: 164   Status: AVAILABLE  Compressed: NO  Tag: TAG20140806T194902
  55.         Handle: 0tpf9rtf_1_1   Media: station90-000010
  56.   List of Datafiles in backup set 156
  57.   File LV Type Ckp SCN    Ckp Time  Name
  58.   ---- -- ---- ---------- --------- ----
  59.   2       Full 1915016    06-AUG-14 +DATA/orcl/datafile/sysaux.257.816169553

  60. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  61. ------- ---- -- ---------- ----------- ------------ ---------------
  62. 157     Full    642.50M    SBT_TAPE    00:06:03     06-AUG-14      
  63.         BP Key: 165   Status: AVAILABLE  Compressed: NO  Tag: TAG20140806T194902
  64.         Handle: 0spf9rtf_1_1   Media: station90-000009
  65.   List of Datafiles in backup set 157
  66.   File LV Type Ckp SCN    Ckp Time  Name
  67.   ---- -- ---- ---------- --------- ----
  68.   3       Full 1915014    06-AUG-14 +DATA/orcl/datafile/undotbs1.258.816169553

  69. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  70. ------- ---- -- ---------- ----------- ------------ ---------------
  71. 158     Full    69.06M     SBT_TAPE    00:06:20     06-AUG-14      
  72.         BP Key: 166   Status: AVAILABLE  Compressed: NO  Tag: TAG20140806T194902
  73.         Handle: 0upf9rtf_1_1   Media: station90-000010
  74.   List of Datafiles in backup set 158
  75.   File LV Type Ckp SCN    Ckp Time  Name
  76.   ---- -- ---- ---------- --------- ----
  77.   5       Full 1915018    06-AUG-14 +DATA/orcl/datafile/example.265.816169651

  78. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  79. ------- ---- -- ---------- ----------- ------------ ---------------
  80. 159     Full    3.31M      SBT_TAPE    00:07:57     06-AUG-14      
  81.         BP Key: 167   Status: AVAILABLE  Compressed: NO  Tag: TAG20140806T194902
  82.         Handle: 0vpf9rtg_1_1   Media: station90-000009
  83.   List of Datafiles in backup set 159
  84.   File LV Type Ckp SCN    Ckp Time  Name
  85.   ---- -- ---- ---------- --------- ----
  86.   4       Full 1915020    06-AUG-14 +DATA/orcl/datafile/users.259.816169553

  87. BS Key  Size       Device Type Elapsed Time Completion Time
  88. ------- ---------- ----------- ------------ ---------------
  89. 160     2.63M      SBT_TAPE    00:01:39     06-AUG-14      
  90.         BP Key: 168   Status: AVAILABLE  Compressed: NO  Tag: TAG20140806T195709
  91.         Handle: 10pf9scl_1_1   Media: station90-000009

  92.   List of Archived Logs in backup set 160
  93.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  94.   ---- ------- ---------- --------- ---------- ---------
  95.   1    94      1914701    06-AUG-14 1915763    06-AUG-14

  96. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  97. ------- ---- -- ---------- ----------- ------------ ---------------
  98. 161     Full    9.50M      SBT_TAPE    00:01:39     06-AUG-14      
  99.         BP Key: 169   Status: AVAILABLE  Compressed: NO  Tag: TAG20140806T195855
  100.         Handle: c-1343950367-20140806-01   Media: station90-000009
  101.   SPFILE Included: Modification time: 06-AUG-14
  102.   SPFILE db_unique_name: ORCL
  103.   Control File Included: Ckp SCN: 1918038      Ckp time: 06-AUG-14

  104. RMAN>
复制代码
  1. [root@station90 ~]# su - oracle
  2. [oracle@station90 ~]$ . oraenv
  3. ORACLE_SID = [orcl] ? rcat
  4. ORACLE_HOME = [/home/oracle] ? /u01/app/oracle/product/11.2.0/dbhome_1
  5. The Oracle base remains unchanged with value /u01/app/oracle
  6. [oracle@station90 ~]$ sqlplus /nolog

  7. SQL*Plus: Release 11.2.0.3.0 Production on Tue Aug 19 19:43:12 2014

  8. Copyright (c) 1982, 2011, Oracle.  All rights reserved.

  9. SQL> conn / as sysdba
  10. Connected to an idle instance.
  11. SQL> startup
  12. ORACLE instance started.

  13. Total System Global Area 1603411968 bytes
  14. Fixed Size                    2228784 bytes
  15. Variable Size                  503320016 bytes
  16. Database Buffers         1090519040 bytes
  17. Redo Buffers                    7344128 bytes
  18. Database mounted.
  19. Database opened.
  20. SQL> show parameter db_name

  21. NAME                                     TYPE         VALUE
  22. ------------------------------------ ----------- ------------------------------
  23. db_name                              string         rcat
  24. SQL> select  name from v$datafile;

  25. NAME
  26. --------------------------------------------------------------------------------
  27. /u01/app/oracle/oradata/rcat/system01.dbf
  28. /u01/app/oracle/oradata/rcat/sysaux01.dbf
  29. /u01/app/oracle/oradata/rcat/undotbs01.dbf
  30. /u01/app/oracle/oradata/rcat/users01.dbf
  31. /u01/app/oracle/oradata/rcat/example01.dbf
  32. /u01/app/oracle/oradata/rcat/rcat01.dbf

  33. 6 rows selected.

  34. SQL> create user u90 identified by oracle_4U  default tablespace rcat  quota unlimited on rcat ;
  35. create user u90 identified by oracle_4U  default tablespace rcat  quota unlimited on rcat
  36.             *
  37. ERROR at line 1:
  38. ORA-01920: user name 'U90' conflicts with another user or role name


  39. SQL> grant recovery_catalog_owner to u90;

  40. Grant succeeded.

  41. SQL>
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-2 21:09 , Processed in 0.034646 second(s), 24 queries .

快速回复 返回顶部 返回列表