Guest User

Untitled

a guest
Jan 15th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. [oracle@node1 ~]$ sqlplus phil/phil
  2.  
  3. SQL*Plus: Release 11.2.0.2.0 Production on Tue Oct 2 17:28:15 2012
  4.  
  5. Copyright (c) 1982, 2010, Oracle. All rights reserved.
  6.  
  7.  
  8. Connected to:
  9. Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
  10. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  11.  
  12. SQL> create tablespace imptest datafile '/u01/app/oracle/oradata/PHIL112/imptest.dbf' size 100m;
  13.  
  14. Tablespace created.
  15.  
  16. SQL> create user imptest identified by imptest default tablespace users;
  17.  
  18. User created.
  19.  
  20. SQL> grant connect, resource to imptest;
  21.  
  22. Grant succeeded.
  23.  
  24. SQL> conn imptest/imptest
  25. Connected.
  26. SQL> create table imptesttable ( a number ) ;
  27.  
  28. Table created.
  29.  
  30. SQL> insert into imptesttable values ( 1 ) ;
  31.  
  32. 1 row created.
  33.  
  34. SQL> commit;
  35.  
  36. Commit complete.
  37.  
  38. SQL> select tablespace_name from user_tables;
  39.  
  40. TABLESPACE_NAME
  41. ------------------------------
  42. USERS
  43.  
  44. SQL> quit;
  45. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
  46. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  47. [oracle@node1 ~]$ exp imptest/imptest file=imptest.dmp;
  48.  
  49. Export: Release 11.2.0.2.0 - Production on Tue Oct 2 17:28:50 2012
  50.  
  51. Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
  52.  
  53.  
  54. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
  55. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  56. Export done in US7ASCII character set and AL16UTF16 NCHAR character set
  57. server uses WE8MSWIN1252 character set (possible charset conversion)
  58. . exporting pre-schema procedural objects and actions
  59. . exporting foreign function library names for user IMPTEST
  60. . exporting PUBLIC type synonyms
  61. . exporting private type synonyms
  62. . exporting object type definitions for user IMPTEST
  63. About to export IMPTEST's objects ...
  64. . exporting database links
  65. . exporting sequence numbers
  66. . exporting cluster definitions
  67. . about to export IMPTEST's tables via Conventional Path ...
  68. . . exporting table IMPTESTTABLE 1 rows exported
  69. . exporting synonyms
  70. . exporting views
  71. . exporting stored procedures
  72. . exporting operators
  73. . exporting referential integrity constraints
  74. . exporting triggers
  75. . exporting indextypes
  76. . exporting bitmap, functional and extensible indexes
  77. . exporting posttables actions
  78. . exporting materialized views
  79. . exporting snapshot logs
  80. . exporting job queues
  81. . exporting refresh groups and children
  82. . exporting dimensions
  83. . exporting post-schema procedural objects and actions
  84. . exporting statistics
  85. Export terminated successfully without warnings.
  86. [oracle@node1 ~]$ sqlplus phil/phil
  87.  
  88. SQL*Plus: Release 11.2.0.2.0 Production on Tue Oct 2 17:28:56 2012
  89.  
  90. Copyright (c) 1982, 2010, Oracle. All rights reserved.
  91.  
  92.  
  93. Connected to:
  94. Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
  95. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  96.  
  97. SQL> drop table imptest.imptesttable;
  98.  
  99. Table dropped.
  100.  
  101. SQL> alter user imptest default tablespace imptest;
  102.  
  103. User altered.
  104.  
  105. SQL> revoke unlimited tablespace from imptest;
  106.  
  107. Revoke succeeded.
  108.  
  109. SQL> alter user imptest quota 0 on users;
  110.  
  111. User altered.
  112.  
  113. SQL> quit;
  114. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
  115. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  116. [oracle@node1 ~]$ imp imptest/imptest file=imptest.dmp;
  117.  
  118. Import: Release 11.2.0.2.0 - Production on Tue Oct 2 17:29:19 2012
  119.  
  120. Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
  121.  
  122.  
  123. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
  124. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  125.  
  126. Export file created by EXPORT:V11.02.00 via conventional path
  127. import done in US7ASCII character set and AL16UTF16 NCHAR character set
  128. import server uses WE8MSWIN1252 character set (possible charset conversion)
  129. . importing IMPTEST's objects into IMPTEST
  130. . . importing table "IMPTESTTABLE"
  131. IMP-00058: ORACLE error 1536 encountered
  132. ORA-01536: space quota exceeded for tablespace 'USERS'
  133. Import terminated successfully with warnings.
  134. [oracle@node1 ~]$
Add Comment
Please, Sign In to add comment