建立資料表空間、使用者、擴容、移動資料檔案

來源:互聯網
上載者:User

  2  logging
  3  datafile '/opt/oracle/oradata/bisal/test_data_01.dbf'
  4  size 10M
  5  autoextend on
  6  next 10m maxsize 2000m
  7  extent management local;
Tablespace created.


total 1.5G
-rw-r----- 1 oracle oinstall  11M Sep 27 22:56 test_data_01.dbf

  2  default tablespace test_data
  3  temporary tablespace tempts1;
User created.

USERNAME
------------------------------
TEST_DATA

Database altered.

total 1.5G
-rw-r----- 1 oracle oinstall  26M Sep 27 23:01 test_data_01.dbf

Tablespace altered.


total 1.5G
-rw-r----- 1 oracle oinstall  26M Sep 27 23:01 test_data_01.dbf
-rw-r----- 1 oracle oinstall 3.1M Sep 27 23:03 test_data_02.dbf

SQL*Plus: Release 10.2.0.1.0 - Production on Fri Sep 27 23:40:23 2013
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
ERROR:
ORA-01045: user TEST_DATA lacks CREATE SESSION privilege; logon denied
Enter user-name: 
ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name: ERROR:
ORA-01017: invalid username/password; logon denied

create table test (x int)
*
ERROR at line 1:
ORA-01031: insufficient privileges

Grant succeeded.


create table test (x int)
*
ERROR at line 1:
ORA-01950: no privileges on tablespace 'TEST_DATA'

create table test(x int)
*
ERROR at line 1:
ORA-01116: error in opening database file 7
ORA-01110: data file 7: '/opt/oracle/oradata/bisal/test_data_02.dbf'
ORA-27041: unable to open file
Linux Error: 2: No such file or directory
Additional information: 3


Table created.

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.