Create new table on new tablespace
new (downloaded - non-licensed) 8i install.
create new database
connect to new database (as both sys,system, and new user with just connect priv - as both normal and sysdba)
create new tablespace
create new table - schema is the new user,
tablespace is the new tablespace,
error - ORA-01950: no privileges on tablespace 'TS2' (new tablespace)
How do I set privileges to allow this?
Hi
Use this command
alter user username
quota 50M on tablespace_name;
Hope this will work.
Thanks and regards
Sarju Patel
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jim Connors ([email protected]):
new (downloaded - non-licensed) 8i install.
create new database
connect to new database (as both sys,system, and new user with just connect priv - as both normal and sysdba)
create new tablespace
create new table - schema is the new user,
tablespace is the new tablespace,
error - ORA-01950: no privileges on tablespace 'TS2' (new tablespace)
How do I set privileges to allow this?<HR></BLOCKQUOTE>
null
Similar Messages
-
BRSPACE create new tablespace for compressed table
Dear expert,
I'm plannng to create new tablespace PSAPCOMP for compressed table by brspace.
the current total size of the tables that i want to compression is 1T.
Now i have 2 question about the brspace script
1.How big size should the PSAPCOMP be , let's say 500G?
2. i'm confused about the datafile_dir value i should put (please refer to the attachment for current datafile_dir design)
Could you help to correct/improve the scritpts as following?
scriptA : brspace -f tscreate -t PSAPCOMP -s 5120 -a yes -i 100 -m 15360 -f sapdata4 -l 2 --> assign to sapdata4
repeat scriptB for 20 times
scriptB : brspace -f tsextend -t PSAPCOMP -s 5120 -a yes -i 100 -m 15360 -f sapdata4 -l 2 -f1 4 -f2 4 -f3 4 -f4 4 -f5 4 --> extend 25G in one run
Qestion: is it OK to assign the PSAPCOMP only to "sapdata4"? or i should specify "-f sapdata1 sapdata2 sapdata3 sapdata4" so the table data can distribute among different sapdata_dir?
Thank you!hi Kate,
some of the questions depend on the "customer" decision.
is it OK to assign the PSAPCOMP only to "sapdata4"?
how much space is available? what kind of storage do they have? is totally stripped or not? is there "free" space on the other filesystems?
1.How big size should the PSAPCOMP be , let's say 500G?
as I explained to you already, it is expected that applying all compressions you can save 1/2 of the space but you have to test this as it depends on the content of the tables and selectivity of the indexes. Use the oracle package to simulate the savings for the tables you are going to compress.
do you want the scripts interactive (option -c) or not?
The SAP Database Guide: Oracle has all possible options so you only have to check them
brspace -f tscreate -t PSAPCOMP -s 5120 -a yes -i 100 -m 15360 -f sapdata4 -l 2 --> assign to sapdata4
if you want to create a 500 GB, why you limit the maximum size to 15360? -
Can we create new tablespace in Oracle Database 10g Express Edition?
Hi,
Can we create new tablespace in Oracle Database 10g Express Edition instead of using the default "users" tablespace provided?
Please advise.
Thank you.Correct. The sum of all user tablespaces is not allowed to exceed 4 GIG.
You could try shrinking your tablespaces. Theres a script called maxshrink on http://asktom.oracle.com which is useful for this.
You could compress your tables.
If you are storing lobs, you could consider storing them as bfiles.
Or upgrade to Oracle Standard Edition 1. Its not that expensive. -
Problem in Creating a table with Default Tablespace
Hi All,
1) Can anybody plz tell me the syntax to move a table from one tablespace to another.
2) Also, plz tell me the Syntax of when creating a table specifying the tablespace name also.
Regards1) Alter table <table_name> move tablespace <tablespace_name>
2) example of create table is given below
CREATE TABLE emp123
( employee_id NUMBER(6)
TABLESPACE <tablespace_name>
STORAGE (INITIAL 600
NEXT 600
MINEXTENTS 2
MAXEXTENTS 100 );
Read following doc for more details
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/toc.htm
Cheer,
Virag -
Can we create a table in temp tablespace?
Hi Support ,
I have confused about on point that Can we create a table in temp tablespace.
thanksI so not think the question is so bad except that it was as suggested something you can determine for yourself in 20 seconds:
> /
create table mark (fld1 number) tablespace tmp
ERROR at line 1:
ORA-02195: Attempt to create PERMANENT object in a TEMPORARY tablespace
Other database products allow users to create tables in the temporary tables such as SQL Server. I just tested using SQL Server 2008 R2 and I could create a table in TEMPDB.
SQL Server also creates temporary tables, create table #table_name, in TEMPDB. You can see these objects while in use.
IMHO -- Mark D Powell -- -
Creating new Tablespace in 10g XE using Database Home Page
How can I add a Tablespace using the "Database home Page" GUI? I've done this before, but now do not see a link for "Create Tablespace" under the Administration -> Storage icon. I'm logged in as sys.
use sqlplus to create a new tablespace
(set your XE environment first)
(for Linux)
the environment file envOraXEclient for example) -- modify for your env and different shell, and source the file
export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export TNS_ADMIN=/home/mytnsdirectory
export TWO_TASK=XE
export LD_LIBRARY_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib
export PATH=$ORACLE_HOME/bin:${PATH}
by using sqlplus, create the tablespace (use different size if you want, up to 4gb, you can create smaller, more than one tablespace, etc - this is just an example)
CREATE SMALLFILE
TABLESPACE "MYTBLSPC1"
DATAFILE '/usr/lib/oracle/xe/oradata/XE/mytblspc1.dbf'
SIZE 2G REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED
LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO
if you want, create a dedicated temporary tablespace for your user/s as well (here is an example)
CREATE SMALLFILE TEMPORARY TABLESPACE "MYTEMP"
TEMPFILE '/usr/lib/oracle/xe/oradata/XE/mytemp.dbf'
SIZE 100M REUSE EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1024K
turn the recyclebin off if you want/need to (I do ;)
alter system set recyclebin=off;
change the open_cursors if you want/need to (I do ;)
ALTER SYSTEM SET open_cursors = 5000 SCOPE=MEMORY;
ALTER SYSTEM SET open_cursors = 5000 SCOPE=SPFILE;
ALTER SYSTEM SET session_cached_cursors = 50 SCOPE=SPFILE;
create a specific user utilizing the tablespaces you created earlier
CREATE USER "ZAFER" PROFILE "DEFAULT"
IDENTIFIED BY "zafer" DEFAULT TABLESPACE "MYTBLSPC1"
TEMPORARY TABLESPACE "MYTEMP"
ACCOUNT UNLOCK;
(grants are up to you - and your development / deployment environment)
GRANT UNLIMITED TABLESPACE TO "ZAFER";
GRANT "CONNECT" TO "ZAFER";
GRANT "RESOURCE" TO "ZAFER";
Edited by: zaferaktan on Sep 4, 2009 10:09 AM -
Creating new TableSpace and shifting existing ....
I created a database but it is using the default tablespace. I want to create a new tablespace and want to configure existing database to use new tablespace. How to do this? The database is having enough records.
>>alter user scott default tablespace system;<br>
<br>
Assume the default tablespaces for users USER1 and<br>
USER2 are TS1 and TS2 respectively, specified<br>
explicitly during user creation. The current<br>
default tablespace for the database is TS2, but<br>
later, the database default tablespace is changed to<br>
TS1. Even though USER2's default tablespace was<br>
explicitly specified as TS2<br>
<br>
<br>
sys@ORCL> create user user1 identified by user1 default tablespace system;
User created.
Elapsed: 00:00:00.06
sys@ORCL> create user user2 identified by user2 default tablespace system;
User created.
Elapsed: 00:00:00.01
sys@ORCL> select property_value
2 from database_properties
3 where property_name = 'DEFAULT_PERMANENT_TABLESPACE';
PROPERTY_VALUE
USERS
Elapsed: 00:00:00.00
sys@ORCL> select default_tablesapce
2 from dba_users
3 where username
4
sys@ORCL> select username, default_tablespace
2 from dba_users
3 where username in ('USER1', 'USER2');
USERNAME DEFAULT_TABLESPACE
USER1 SYSTEM
USER2 SYSTEM
Elapsed: 00:00:00.01
sys@ORCL> alter database default tablespace example;
Database altered.
Elapsed: 00:00:00.01
sys@ORCL> select username, default_tablespace
2 from dba_users
3 where username in ('USER1', 'USER2');
USERNAME DEFAULT_TABLESPACE
USER1 SYSTEM
USER2 SYSTEM
Elapsed: 00:00:00.01
sys@ORCL> select property_value
2 from database_properties
3 where property_name = 'DEFAULT_PERMANENT_TABLESPACE';
PROPERTY_VALUE
EXAMPLE
Elapsed: 00:00:00.00
sys@ORCL> -
All of our datafiles are located in ASM disks (we have only one ASM diskgroup). Now, we are running out of space in this ASM diskgroup although we have a planned ASM disk expansion, but it will not be happening anytime soon.
Now, I need to move partitions in order to be able to resize the database files considerably. When moving partitions I need to create a new tablespace where the partitions can be moved to (in filesystem), and afterwards, be moved back to original tablespace (in ASM). But since our partitions are so big (in GB), I don't have enough space in ASM. I only have a filesystem which has enough space to do the above. My question is: Will there be no problem if I create this move tablespace in this filesystem having in mind that my database uses ASM? This is just temporary until I'm done with this. Unfortunately, I don't have a testbed where I can test this.Ok. Thank you very much. I created new tablespace in a filesystem without any problem neither an error. Now, our DB is a mix of ASM and filesystem, but as I've said earlier, this new tablespace is just temporary until I finish the relocation of partitions and back.
-
Hi everybody,
I have an issue with new OAM Identity Asserter creation in Weblogic security Realm, it doesn't offer me the possibility to provide values neither in Common or Provider specific tab corresponding to this auth provider.
Meaning I am able to create OAMIDAsserter, after providing the name and provider type, but then when click on it for edit I cannot see any fields in those 2 tabs.
Do you have any idea what would be the cause?
I haven't had this problem till I removed this OIMIDAsserter from providers list and then added it back to the list.Hi
Use this command
alter user username
quota 50M on tablespace_name;
Hope this will work.
Thanks and regards
Sarju Patel
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jim Connors ([email protected]):
new (downloaded - non-licensed) 8i install.
create new database
connect to new database (as both sys,system, and new user with just connect priv - as both normal and sysdba)
create new tablespace
create new table - schema is the new user,
tablespace is the new tablespace,
error - ORA-01950: no privileges on tablespace 'TS2' (new tablespace)
How do I set privileges to allow this?<HR></BLOCKQUOTE>
null -
Requirements to go for new TableSpace Creation ?
Hi All,
It is a more databse question than SAP,
What are requirements to go for new Tablespace creation ?
OR
Why do we need to create new Tablespace evethough, we have around 7 default tspaces there.
Eg : In my case TSpace PSAPVERTEX created; vertex is US tax tool.
I dont think database stores the application specific data in particular TSpace like vertex application -
PSAPVETEX
Please reply to me soon
RKHello Ramakrishna,
>> Why do we need to create new Tablespace evethough, we have around 7 default tspaces there.
That is not correct. You have one default tablespace on database level or one default tablespace for different users (user settings)... but you can never have more than one default tablespace.
SAP creates more tablespaces to seperate the data and to structure it... but the definition, which object is stored in which tablespace is specified in the create statement of the object.
So if objects are for the vertex application.. the create statement includes the vertex tablespace PSAPVERTEX.. if not the objects are created in the default tablespace for the user.
Regards
Stefan -
How to relocate table in new tablespace in Oracle 8i
Hi all
I would like to know how to relocate table from one tablespace to another tablespace in Oracle 8i. Currently, I create new table without data in new tablespace and then load data from old table in old tablespace. However, I think it is not efficient at all. Could anyone kindly advise any method to proceed it
ThanksNick has pointed out the best way to relocate a table. With the alter table move command you do not have to worry about FK or any other kind of constraints, table triggers, or grants. They all remain in place. You just need to rebuild the indexes as Nick pointed out.
There were some restrictions on the types of tables that could be moved with alter table move when the command first was introduced. I think LOB columns were unsupported at first. The old exp/imp had to be used for those cases.
HTH -- Mark D Powell -- -
Migrating a new partition table with transportable tablespace
I created a partitioned table with 2 partitions (2010 and 2011) and used transportable tablespace to migrate the data over to a new envionment. My question is, if I decide to add a partition (2012) in the future, can I simply move that new partition along with the associated datafile via transportable tablespace or would I have to move all the partitions (2010, 2011, 2012).
user564785 wrote:
I created a partitioned table with 2 partitions (2010 and 2011) and used transportable tablespace to migrate the data over to a new envionment. My question is, if I decide to add a partition (2012) in the future, can I simply move that new partition along with the associated datafile via transportable tablespace or would I have to move all the partitions (2010, 2011, 2012).Yes why not.
1) create a table as CTAS from 2012 in new Tablespace on source
2) transport the tablespace
3) Add partition to existing partition table Or exchange partition
Oracle has also documented this procedure:
http://docs.oracle.com/cd/B28359_01/server.111/b28310/tspaces013.htm#i1007549 -
How can we move table with long col to new tablespace(LMT) from DMT?
Well, converting LONGs to LOBs is always "painful" :-)
But it is doable, however, the solution depends upon the version of the database.
There are several metalink notes coverting this matter:
Note 137160.1 Oracle 9i PLSQL LONG-TO-LOB API For Easier LONG to LOB Migration
Note 282464.1 How to convert LONG to a CLOB
However here is one that I used recently and it needs one 10g instance as a staging site. (I don't know if this approach has been documented on Metalink. It worked for me, it might work for you as well, but you should test it first).
My production database was 8i and it contained a table with LONG column. The requirement was to convert this column to CLOB.
I exported the table and imported it in 10g database.
Once in 10g I used ALTER TABLE tablename MODIFY longcolumn CLOB; which worked perfectly fine.
Finally I exported the table with CLOB column from the 10g database and imported it back in 8i database.
example:
SQL> create table t
2 (c1 long);
Table created.
SQL> insert into t values ('foo');
1 row created.
SQL> desc t
Name Null? Type
C1 LONG
SQL> alter table t
2 modify c1 clob;
Table altered.
SQL> desc t
Name Null? Type
C1 CLOB
SQL> select c1 from t;
C1
foo
SQL>Cheers,
Mihajlo -
Error while creating new table
Hi
First I had deleted one custom table. Then I try to create the same table with different fields. Now I am gettinh the errors.
1. ZLV_COMP_TABLE: Inconsistency DD <-> DB (check table with analysis tool)
2. A table called ZLV_COMP_TABLE exists in the database
3. No active nametab exists for ZLV_COMP_TABLE
4. Termination due to inconsistencies
5. Table ZLV_COMP_TABLE (Statements could not be generated)
6. Error number in DD_DECIDE (9)
Please help me ... how can I create a table with same name.
thanks
SubhankarHello,
goto SE14 -- Give the table name
use Tables Radio button
click on Edit
check the Delete Data Radio button
click on ACTIVATE AND ADJUST DATABASE.
Now check the table in SE11.
If it still exits you can change the same table or Delete it again & create a new table with Same Name.
This might help your query.
Anil. -
Error while creating a new tablespace
Hi all,
i got the following errors when i tried to create a new tablespace in my database.
ORA-00604: error occurred at recursive SQL level string
ORA-01655: unable to extend cluster string.string by string in tablespace string
can anyone suggest any possible reason?
thanks in advance..Hi,
ORA-01655 unable to extend cluster string.string by string in tablespace string
Cause: Failed to allocate an extent for cluster segment in tablespace.
Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the tablespace indicated
Pls check out the disk space. The command you issued is working for me and for all. Might be some errors in your disk.
Regards,
Raj
Maybe you are looking for
-
I shot a video on my iPhone. This got downloaded into my iPhoto during a sync. It has been there for months and worked fine. Recently the video was accidently deleted and the trash has been emptied. I just popped open Time Machine and went back a
-
Batch Capture - Error/Warning
I have a PowerPC G5 with a Firewire800 external HD plus a SATA external RAID system all connected to the G5. I have been (up to now) successful in batch capturing my video's. I now get an error message (warning) when I attempt to batch capture even o
-
SAP Courses (Functional)
I am working as a Business Analyst for Asset Management & Inventory control. Please suggest me the best suited SAP certification (Functional) for my domain.
-
Pre-loading external images for XML-based gallery
I'm working-on an XML-based photo gallery here: http://www.unionandparkwood.com/demo/flash_gallery/ It works how I want it, except that the first time a thumbnail is clicked for an image, it pauses long enough to skip the fade. If you click-through t
-
Non Cumulative scenarios?
Hi Gurus Can any one explain about Non Cumulative scenarios? Thanks in advance Raj