频道栏目
首页 > 资讯 > 其他综合 > 正文

stacksize解析

19-01-18        来源:[db:作者]  
收藏   我要投稿

1.配置测试环境
创建数据表空间
create tablespace test logging datafile '/home/oracle/test.dbf' size 10m autoextend on next 10m maxsize 2048m extent management local;
创建用户并指定表空间
create user test identified by 123456 default tablespace test;
给用户授予权限
grant connect,resource,dba to test;
创建表
sqlplus test/123456@orcl

[root@12c-1 ~]# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 15653
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) unlimited
cpu time               (seconds, -t) unlimited
max user processes              (-u) 15653
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited



安装12c的时候提示maximun stack size 过小
ulimit -a




ulimit -s unlimited

重新安装12c 可以通过

微信图片_20190115171609.jpg

/> CREATE TABLE test2(userId number(8), username varchar2(40), tep number (20)) PARTITION BY RANGE (userId)(PARTITION p1 VALUES LESS THAN (10000), PARTITION p2 VALUES LESS THAN (20000), PARTITION p3 VALUES LESS THAN (30000) );
查询当前用户下的表:
select tname from tab;

2.文件系统表空间迁移到ASM中去
rman target /
report schema; 查看表空间
sql 'alter tablespace test offline';离线表空间
backup as copy datafile 5 format '+DATA';Copy类型备份表空间
switch datafile 5 to copy;切换表空间文件到copy副本
sql 'alter tablespace test online';上线表空间
report schema;

sqlplus test/123456@orcl
2 select tname from tab;

相关TAG标签
上一篇:重装Oracle数据库
下一篇:oracle表空间文件系统迁移到ASM
相关文章
图文推荐

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站