tablespace

Is there any logical reason of having different tablespace for indexes?

霸气de小男生 提交于 2019-12-20 10:51:28
问题 Hi Can some let me know why we created different table space for Index and data. 回答1: It is a widespread belief that keeping indexes and tables in separate tablespaces improves performance. This is now considered a myth by many respectable experts (see this Ask Tom thread - search for "myth"), but is still a common practice because old habits die hard! Third party edit Extract from asktom: "Index Tablespace" from 2001 for Oracle version 8.1.6 the question Is it still a good idea to keep

How can I tell what is in a Postgresql tablespace?

半世苍凉 提交于 2019-12-20 09:55:11
问题 I've created a new tablespace called indexes , and I'm trying to remove the old tablespace indexes_old , which used to contain some tables and indexes. When I try to drop the tablespace, I get: => drop tablespace indexes_old; ERROR: tablespace "indexes_old" is not empty But when I try to see what's in there, it seems that no tables live in that tablespace: => select * from pg_tables where tablespace = 'indexes_old'; schemaname | tablename | tableowner | tablespace | hasindexes | hasrules |

ORA-01950: no privileges on tablespace 'USERS' [closed]

百般思念 提交于 2019-12-17 21:43:21
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm getting this error: ORA-01950: no privileges on tablespace 'USERS' I have a default tablespace and I'm able to create tables, however, they do not show at the objects tab in Toad. I cannot insert anything into tables I create. 回答1: You cannot insert data because you have a quota of 0 on the tablespace. To

Optimizing large tablespace

谁说我不能喝 提交于 2019-12-13 04:24:35
问题 We have a very large table LARGEHISTORY table which is having millions of records. Currently the table is using 50GB of table space and maximum allowed table space is 65GB in DB2 (DB2 v9.5.301.436). The table is growing very fast and we need to do something very fast to overcome the problem. Database: DB2 v9.5.301.436 Solutions which we already though of: Increase the table space size, which can be achieved using below two options: Alter table space of LARGEHISTORY from 65GB to 2 TB Advantage

CREATE and DROP TABLESPACE Oracle

被刻印的时光 ゝ 提交于 2019-12-12 08:23:37
问题 I have created this tablespace CREATE TABLESPACE IA643_TBS DATAFILE 'IA643_dat' SIZE 500K AUTOEXTEND ON NEXT 300K MAXSIZE 100M; I tried to drop it using this command DROP TABLESPACE IA643_TBS; And it said that it was dropped, when I tried to create it again, I got those error messages: ERROR at line 1: ORA-01119: error in creating database file 'IA643_dat' ORA-27038: created file already exists OSD-04010: <create> option specified, file already exists How can I delete the datafile and

True tablespace size in oracle

孤街浪徒 提交于 2019-12-12 08:07:06
问题 I need to know true tablespace size in Oracle. I have some tablespace and I need to know how many space it uses now and how many space is free (and maybe percent of free space). I found in web some sqls but all of them showed size based on water mark... which is not true space allocated now but as far as I know the highest value which has ever been reached... So my real need is to know if I have enough space for my data which constantly are written and I must know how much of them I can store

How to export oracle 11g user to 10g and on a different default tablespace

て烟熏妆下的殇ゞ 提交于 2019-12-12 04:54:20
问题 I have an 11g database and I want to export a dump to import it later on a 10g database. I can use expdp with option VERSION=10.2 but my problem is that I have to import this dump on a different tablespace. thank you 回答1: You can use the REMAP_TABLESPACE parameter during the import: Remaps all objects selected for import with persistent data in the source tablespace to be created in the target tablespace. You can specify multiple mappings if necessary. 来源: https://stackoverflow.com/questions

Copying a tablespace from one postgresql instance to another

寵の児 提交于 2019-12-10 11:32:28
问题 I'm looking for a way to quickly "clone" a database from 1 postgresql server to another. Assuming... I have a postgresql server running on HostA, serving 2 databases I have 2 devices mounted on HostA, each device stores the data for one of the database (i.e. 1 database => 1 tablespace => 1 device ) I am able to obtain a "safe" point in time snapshot through some careful method I am able to consistently and safely produce a clone of any of the 2 devices used (I could even assume both database

Oracle中数据库实例、表空间、用户、模式的概念及关系

最后都变了- 提交于 2019-12-06 13:04:19
数据库 实例 :    用Oracle官方描述:实例是访问Oracle数据库所需的一部分计算机内存和辅助处理后台进程,是由进程和这些进程所使用的内存(SGA)所构成一个集合。 我们访问Oracle都是访问一个实例,但这个实例如果关联了数据库文件,就是可以访问的,如果没有,就会得到实例不可用的错误。 实例名指的是用于响应某个数据库操作的数据库管理系统的名称。她同时也叫SID。实例名是由参数instance_name决定的。查询当前数据库实例名: select instance_name from v$instance;   数据库实例名(instance_name)用于对外部连接。在操作系统中要取得与数据库的联系,必须使用数据库实例名。比如我们做开发,要连接数据库,就得连接数据库实例名: jdbc:oracle:thin: @localhost :1521:orcl(orcl就为数据库实例名)   一个数据库可以有多个实例,在作数据库服务集群的时候可以用到。 数据文件 :(待续) 表空间: 一个数据库由多个表空间组成,一个表空间只能属于一个数据库。 一个表空间可以包含一个或多个数据文件, 一个数据文件只能属于一个表空间 。    Oracle数据库是通过表空间来存储物理表的,一个数据库实例可以有N个表空间,一个表空间下可以有N张表。有了数据库,就可以创建表空间。   创建表空间语法:

no privileges on tablespace 'USERS'

痴心易碎 提交于 2019-12-04 04:40:23
i have many tables that i can insert rows, but i get this error only for one table; Error starting at line 1 in command: INSERT INTO ERRORLOG (MESSAGE) VALUES ('test') Error report: SQL Error: ORA-01950: no privileges on tablespace 'USERS' 01950. 00000 - "no privileges on tablespace '%s'" *Cause: User does not have privileges to allocate an extent in the specified tablespace. *Action: Grant the user the appropriate system privileges or grant the user space resource on the tablespace. i am not expert on oracle but as i understood from the error message; 'USERS' tablespace is full and my user is