centos 安裝oracle 11g r2(三)-----表空間創建
創建表空間前要保證監聽與數據庫實例已經啟動
1、啟動監聽
[oracle@localhost ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 01-DEC-2017 09:25:48
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /data/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
......
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 01-DEC-2017 09:25:48
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /data/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File
/data/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
The listener supports no services
The command completed successfully
2、進入數據庫
[oracle@localhost ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Dec 1 09:25:51 2017
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
3、啟動數據庫
SQL> startup
ORACLE instance started.
Total System Global Area 1586708480 bytes
Fixed Size 2213736 bytes
Variable Size 922749080 bytes
Database Buffers 654311424 bytes
Redo Buffers 7434240 bytes
Database mounted.
Database opened.
4、創建名稱為 tjyd 的表空間
SQL> create tablespace tjyd datafile '/data/oracle/oradata/BDCS/tjyd.dbf' size 128M autoextend on next 256M maxsize 2048M extent management local;
Tablespace created.
5、創建用戶名/密碼為 tjyd/tjyd 的用戶
SQL> CREATE USER tjyd IDENTIFIED BY tjyd ACCOUNT UNLOCK DEFAULT TABLESPACE tjyd;
User created.
6、為用戶配置權限
SQL> GRANT CONNECT,RESOURCE TO tjyd;
Grant succeeded.
SQL> GRANT DBA TO tjyd;
Grant succeeded.
7、退出
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@localhost ~]$
centos 安裝oracle 11g r2(一)-----軟件安裝
http://www.cnblogs.com/anzerong2012/p/7528311.html
centos 安裝oracle 11g r2(二)-----監聽配置與創建數據庫實例
http://www.cnblogs.com/anzerong2012/p/7940850.html