0%
Linux下Oracle安装(四)
启动监听和数据库
1 2 3
| # /oracle/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start # /oracle/app/oracle/product/11.2.0/dbhome_1/bin/sqlplus / as sysdba SQL> startup
|
设置dba密码
1
| SQL> alter user sys identified by 123456;
|
使用Oracle客户端,创建表空间
1 2 3 4 5 6 7
| create tablespace ccmp_app -表空间名称 logging datafile '/oracle/ccmp-databases/ccmp_app' -表空间存储位置 size 10m autoextend on next 10m maxsize 20480m extent management local;
|
使用Oracle客户端,创建临时表空间
1 2 3 4 5 6
| create temporary tablespace ccmp_app_temp -表空间名称 tempfile '/oracle/ccmp-databases/ccmp_app_temp' -表空间存储位置 size 10m autoextend on next 10m maxsize 20480m extent management local;
|
创建用户和指定表空间
1 2 3
| SQL> create user ccmp_app identified by 123456; SQL> default tablespace ccmp_app; SQL> temporary tablespace ccmp_app_temp;
|
赋予用户权限
1
| SQL> grant connect,resource,dba to ccmp_app;
|