<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Sql on EvBackup</title>
    <link>https://forzw.com/tags/sql/</link>
    <description>Recent content in Sql on EvBackup</description>
    <image>
      <title>EvBackup</title>
      <url>https://forzw.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://forzw.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 03 Dec 2010 08:56:37 +0000</lastBuildDate>
    <atom:link href="https://forzw.com/tags/sql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Oracle 用户、表空间、授权的删除及创建</title>
      <link>https://forzw.com/archives/557/</link>
      <pubDate>Fri, 03 Dec 2010 08:56:37 +0000</pubDate>
      <guid>https://forzw.com/archives/557/</guid>
      <description>&lt;p&gt;#删除用户下所有内容&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;drop user XXXX cascade;
drop tablespace XXXX INCLUDING CONTENTS;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;#创建表空间&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;create tablespace test_data    
logging    
datafile &amp;#39;/app/u01/oradata/test_data.dbf&amp;#39;    
size 32m    
autoextend on    
next 32m maxsize 2048m    
extent management local; 
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;#创建临时表空间&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;create temporary tablespace test_temp    
tempfile &amp;#39;/app/u01/oradata/test_temp.dbf&amp;#39;    
size 32m    
autoextend on    
next 32m maxsize 2048m    
extent management local;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;#创建用户并指定表空间&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;create user username identified by password    
default tablespace test_data    
temporary tablespace test_temp; 
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;#授权&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;grant connect,resource to username;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;#之后就可以用imp导入数据，用上面创建的用户登录后的创建的数据会默认指定表空间&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
