Bo's Oracle Station

查看: 1770|回复: 0

(52-10)第13/14次:2015-10-30星期五,2015-11-2星期一

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2015-11-3 09:55:27 | 显示全部楼层 |阅读模式
上完1Z0-052第15章,(52-9)
上完1Z0-053第2章,(52-10)


catalog:
  1. Starting Control File and SPFILE Autobackup at 02-NOV-15
  2. piece handle=c-1343950367-20151102-03 comment=API Version 2.0,MMS Version 10.3.0.2
  3. Finished Control File and SPFILE Autobackup at 02-NOV-15

  4. RMAN> list backupset 48;


  5. List of Backup Sets
  6. ===================


  7. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  8. ------- ---- -- ---------- ----------- ------------ ---------------
  9. 48      Full    69.01M     SBT_TAPE    00:00:01     02-NOV-15      
  10.         BP Key: 52   Status: AVAILABLE  Compressed: NO  Tag: TAG20151102T201139
  11.         Handle: 1hql9e3r_1_3   Media: station90-000011
  12.   List of Datafiles in backup set 48
  13.   File LV Type Ckp SCN    Ckp Time  Name
  14.   ---- -- ---- ---------- --------- ----
  15.   5       Full 2001595    02-NOV-15 +DATA/orcl/datafile/example.265.816169651

  16. RMAN> exit


  17. Recovery Manager complete.
  18. [oracle@station90 ~]$ . oraenv
  19. ORACLE_SID = [orcl] ? rcat
  20. The Oracle base remains unchanged with value /u01/app/oracle
  21. [oracle@station90 ~]$ sqlplus /nolog

  22. SQL*Plus: Release 11.2.0.3.0 Production on Mon Nov 2 21:32:32 2015

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

  24. SQL> conn / as sysdba
  25. Connected to an idle instance.
  26. SQL> startup
  27. ORACLE instance started.

  28. Total System Global Area 1603411968 bytes
  29. Fixed Size                    2228784 bytes
  30. Variable Size                  503320016 bytes
  31. Database Buffers         1090519040 bytes
  32. Redo Buffers                    7344128 bytes
  33. Database mounted.
  34. Database opened.
  35. SQL> set linesize 1000
  36. SQL> select file_name from dba_data_files;

  37. FILE_NAME
  38. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  39. /u01/app/oracle/oradata/rcat/users01.dbf
  40. /u01/app/oracle/oradata/rcat/undotbs01.dbf
  41. /u01/app/oracle/oradata/rcat/sysaux01.dbf
  42. /u01/app/oracle/oradata/rcat/system01.dbf
  43. /u01/app/oracle/oradata/rcat/example01.dbf
  44. /u01/app/oracle/oradata/rcat/rcat01.dbf

  45. 6 rows selected.

  46. SQL> select  tablespace_name from dba_tablespaces;

  47. TABLESPACE_NAME
  48. ------------------------------
  49. SYSTEM
  50. SYSAUX
  51. UNDOTBS1
  52. TEMP
  53. USERS
  54. EXAMPLE
  55. RCAT

  56. 7 rows selected.

  57. SQL> show parameter instance_name

  58. NAME                                     TYPE         VALUE
  59. ------------------------------------ ----------- ------------------------------
  60. instance_name                             string         rcat
  61. SQL> show parameter service

  62. NAME                                     TYPE         VALUE
  63. ------------------------------------ ----------- ------------------------------
  64. service_names                             string         rcat.example.com
  65. SQL> create tablespace rcat datafile '/u01/app/oracle/oradata/rcat/rcat01.dbf' size 100M autoextend on ;
  66. create tablespace rcat datafile '/u01/app/oracle/oradata/rcat/rcat01.dbf' size 100M autoextend on
  67. *
  68. ERROR at line 1:
  69. ORA-01543: tablespace 'RCAT' already exists


  70. SQL> create user u90 identified by oracle_4U default tablespace RCAT quota unlimited on rcat;
  71. create user u90 identified by oracle_4U default tablespace RCAT quota unlimited on rcat
  72.             *
  73. ERROR at line 1:
  74. ORA-01920: user name 'U90' conflicts with another user or role name


  75. SQL> grant recovery_catalog_owner to u90;

  76. Grant succeeded.

  77. SQL>
复制代码



回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-11-1 10:23 , Processed in 0.033897 second(s), 25 queries .

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