Table spaces and Users
I have created a new user and have specified separate tablespaces for both data and index for this users.
Now the problem is the schema objects are to be imported from another database which only has system tablespace, I wanted to know if this schema/user (single) is imported under the one I created in my database, then would it take the tablespaces automatically?
Also you can do import with parameter indexfile=[some file name here]. This won't do the actual import but instead will generate a file containing the sql necessary to create all tables and indexes. You can then manually edit this file to change the tablespace names and then run it to pre-create the tables (without data) and indexes in the correct tablespaces. Be sure to also remove the REM in front of all the create table statements as they will be commented out otherwise.
Then, do your import specifying ignore=y. This will ignore the errors generated by the tables already existing, and insert the data into the tables you already created.
Similar Messages
-
What is difference between table space and shchema
what is difference between table space and shchema ?
784633 wrote:
so each user has it own space of tables - schema ?yes, but let's clarify a bit ....
The "schema" is the collection of all objects owned by a particular user. So if user SCOTT creates two tables, EMP and DEPT, and a view EMP_RPT, and a procedure GET_MY_EMP, those objects (tables, views, procedures) collectively make up the SCOTT schema.
Those objects will be physically stored in a tablespace.
A tablespace is a named collection of data files. So tablespace USERS will be made up of one or more data files. A specific datafile can belong to one and only one tablespace. If a tablespace has more than one data file, oracle will manage those files as a collection invisible to the application - much like the OS or disk subsystem handles striping across multiple physical disks.
A specific object in the SCOTT schema can exist in only one tablespace, but not all objects of the schema have to be in the same tablespace. Likewise a tablespace can contain objects from multiple schemas.
and can one user to access tables of other users?As others have said - FRED can access tables belonging to SCOTT as long has SCOTT has granted that access to FRED. -
hi all,
how can we set the table spaces and extent sizesHi
All the things you can do when you are trying to create a table.
You create a table using SE11.
After that you have assign the fields to the table and later you need to give the technical settings to a table.
Here you need to specify the table size which you call it as Extents.
Table spaces are also defined to a table there itself.
Reward if useful -
Table space and recollection of released space after client deletion
Dear All,
I have two questions:
1.Can any1 tell me how to determine the fastest growing table and how to reorganize table space.
2. Is there any way by which we can recollect the space released:say after client deletion. I had deleted one client two weeks back and when I saw the SAP/user drive I fow free space available remains the same.
I searched but found no relevant clue.
regards,
Ashutosh1.- You can see the largest table report in ST04 (as far as i remember)...
2.- You can reorganize your db using brtools - brspace...
Read,
http://help.sap.com/saphelp_erp2004/helpdata/en/32/0d0c888839164ba4245b3ff7969c59/frameset.htm
Regards
Juan -
Table Onwers and Users Best Practice for Data Marts
2 Questions:
(1)We are developing multiple data marts that share the same Instance. We want to deny access to the users when tables are being updated. We have one generic user (BI_USER) with read access through one of the popular BI Tools. The current (first) data mart we denied access by revoking the privilege to the BI_USER, however going forward with other data marts the tables will get updated on a different schedule and we do not want to deny access to all the data marts. What is the best approach?
(2) What is the best Methodology for table ownership of tables in different data marts that share tables across marts? Can we create one generic ETL_USER to update tables with different owners?
Thanx,
Jim MastersonIf you have to go with generic logins, I would at least have separate generic logins for each data mart.
Ideally, data loads should be transactional (or nearly transactional), so you don't have to revoke access ever. One of the easier tricks to accomplish this is to load data into a shadow table and then rename the existing table and the shadow table. If you can move the data from the shadow table to the real table in a single transaction, though, that's even better from an availability standpoint.
If you do have to revoke table access, you would generally want to revoke SELECT access to the particular object from a role while the object is being modified. If this role is then assigned to all the Oracle user accounts, everyone will be prevented from viewing the table. Of course, in this scenario, you would have to teach your users that "table not found" means that the table is being refreshed, which is why the zero downtime approach makes sense.
You can have generic users that have UPDATE access on a large variety of tables. I would suggest, though, that you have individual user logins to the database and use roles to grant whatever ad-hoc privileges users need. I would then create one account per data mart, with perhaps one additional account for the truely generic tables, that own each data mart's objects. Those users would then grant different roles different database privileges, and you would then grant those different roles to different users. That way, Sue in accounting can have SELECT access to portions of one data mart and UPDATE access to another data mart without granting her every privilege under the sun. My hunch is that most users should not be logging in to, let alone modifying, all the data marts, so their privileges should reflect that.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Importing all tables and users from Oracle 8i database to Oracle 10g
Hi friends,
It would be highly appreciated if someone would kindly advise steps needed to
import full Oracle 8i database ( with all users, tables, table spaces
and other components ) to Oracle database 10g .
Thanks and regardshi
ur exp ur database from oracle 10g. from exp cmd instead of expdp cmd bcoz oracle 10g. expdp cmd is not compitable with oracle 8.
simple give cmd>exp cmd if u want exp complete database from oracle 10g..
if u have any problem go reference oracle database utilities ....
and then imp in oracle 8 using imp cmd cmd>imp cmd bcoz here u want imp complete database....
i hope u do ur work successfully...
regards
Mohammadi -
Temp Tables space problem with ORA-01114 and ORA-27072:
RDBMS :Oracle:9.2.0
OS: Linux AS3
Storage: SAND arrray (RAID 5)
Problem on exeuting dml statement
SQL> select * from myview ;
select * from myview
ERROR at line 1:
ORA-01114: IO error writing block to file 201 (block # 3977)
ORA-27072: skgfdisp: I/O error
Linux Error: 28: No space left on device
Additional information: 3976
ORA-01114: IO error writing block to file 201 (block # 3977)
ORA-27072: skgfdisp: I/O error
Linux Error: 28: No space left on device
Additional information: 3976
With Regards
JoyHello joy,
So, still looking for solution. I suggest you a sloution and it works well only if as you mentioned (in your previous post) that file causing error is temp file. So, get rid of this better you create new temporary table space and drop old one and then delete the old files manually.
But this will work only for Temp Tablespace not for normal tablespaces and datafiles. Prepare new temporary tablespace at different location from the previous one, try to make it on different disk beacuse it may be due to corruption of physical medium too.
Try this. If it works... you are through... otherwise i have no other options...
Please update..... -
Dropping Rollback table space in export dump and use the undo table space
Hi,
I want to upgrade my DB which is on 9.2.0.1.0 to 10.2.0.1.
I have done an export.
In order to import the DB I have created all the table spaces identical that of my export copy. While creating the Blank database I have already created Undo table space. In the exported DB I have a table space called rollback, how can I drop this table space and use undo table space. I believe this is the recommended table space that should be used in new releases
Thank youVery briefly, these are the steps you will need to perform:
1) Create an UNDO tablespace the same size as the Rollback tablespace, e.g.:
CREATE UNDO TABLESPACE undo
DATAFILE ‘/ora/$ORACLE_SID/001/oradata/$ORACLE_SID/undo_01.dbf’ size 1000M;
2) Add the initialisation parameters UNDO_MANAGEMENT=AUTO, UNDO_TABLESPACE=UNDO. Omit the UNDO_RETENTION parameter unless it is to be set to a value other then the default of 900 (seconds)
3) Remove the initialisation parameter ROLLBACK_SEGMENTS
4) Bounce the database to bring the new parameters into effect.
5) Drop the Rollback tablespace including contents and datafiles
Cheers,
Jason -
Table space not getting cleaned after using free method (permanent delete)
Hi ,
We are using the free method of the LIB OBJ, to permanently delete the objects. As per documentation, the ContentGarbageCollectionAgent will be cleaning the database which runs in a scheduled mode. But the log of that ContentGargabageCollectionAsgent shows, all zero for objects without reference, objects cleared,etc. I.e the table space remains the same before and after deleteing all the contents in the cmsdk database. But the agent is running as per the schedule but just comes out doing nothing.
Can anbody put some light on this issue.
thanks
Raj.Hi Matt,
Thanks for replying. It's been a very long time waiting for you ;)
---"Are you running the 9.2.0.1, 9.2.0.2, or 9.2.0.3 version of the Database?"
we are using 9.2.0.1
---"If you installed the CM SDK schema in the "users" tablespace ......."
Yes we are using USERS tablespace for our Development.
I ran the query. The result is:
SYSTEM MANUAL NOT AFFECTED
USERS MANUAL NOT AFFECTED
CTXSYS_DATA MANUAL NOT AFFECTED
CMSDK1_DATA MANUAL NOT AFFECTED
(USERS belongs to develpoment cmsdk schema. And CMSDK1 for Prod CMSDK schema)
From the results I see only "Manual", but still I don't see the tablespace size being coming down. Both table space sizes (USER and CMSDK1) always grows higher and higher.
Also to let you know, We use ORACLE EM Console (Standalone) application to see the oracle databse information online. Will there be any thing to do with the tool we use to see the table space sizes. We make sure we always refresh it before making a note.
So is there anything else I can see. Once I saw the ContentGarbageCollection agent to free 1025 objects and deleted 0 objects. But I don't see any change in the table space size. I am little confused b/w freed and deleted.
thanks once again for your response Matt.
-Raj. -
Information about table spaces.
Hi!
I have a requirement to create a Bex by which I can display the list of table spaces available and status of those table spaces like memory free, Used. Though we can get this information from DB02 I need to generate a report and broadcast that to users.
Can anyone help me in telling me the table name where you can get the list of table spaces and infomation or any function module which lists the table spaces name and status of them.
Regards
VenkatHello,
Could you please share more information about this? We need to do the same thing. How did you create your generic datasource? what table/Function module did you used?
Thank you
Ramona -
When do i need to create table spaces ?
hi all,
i know that any database has one table space and one data file at first creation , but
when do i need to create another table space or data file ? do i need that when oracle tells me that there is no space anymore or what ?
thanksnewbi_egy wrote:
hi all,
i know that any database has one table space and one data file at first creation , but
when do i need to create another table space or data file ? do i need that when oracle tells me that there is no space anymore or what ? In oracle database, the concept of storage segregation is done by two ways, using the schema and using the tablespace. So assume that you have two applications . One is used for HR related work and another is used for Finance and both kind of data is stored in one single database only. So how would you maintain such requirement? There are two ways to do it. One, you make two different schemas for each of the application and call them, for example HR schema and Fin schema. Now, you can create objects related to each of the application in it's own schema and store it in may be a single tablespace, Users. But this is going to be a little problematic like what would happen if you have lost the data file of that tablespace? You would be losing the data related to both the applications. So the better option would be to use two different tablespaces and store the data related to each application in both of them.
Understand that tablespace is a logical structure only. The only thing that's physical is going to be those data files which are stored under the tablespace. So if you are just running out of space in a data file of a tablespace, you do not need to create another tablespace. Take it like this that if you are running out of space for your family in the house, you can either make a new house for them or you can even build a new floor for them. Which one would be easier to manage, the new floor since a lot of ground work is already done for you. And that's what is the case if you have run out of the space in the data file. For this,you can simply create a new datafile(building a new floor) or even extend the existing one(construct a new room in the same floor, if you have space) . But creating a new tablespace won't be something that you should be doing for the reason of space being exhausted IMO.
Aman.... -
How can i build table with two user name columne ?
How can I build view with two columns for user name ( one create and the other
Can change also )
And to display full name ( the user name is the key but not display ) ?Hi,
Creating View
From initial screen of data dictionary(T.Code: SE11), enter the name of object i.e. view.
Select view radio button and click on the push button.
Dialog box is displayed for types of views.
Select the view type.
On the next screen, you have to pass following parameters.
Short text
In the table box you need to enter the table names, which are to be related.
In join table box you need to join the two tables.
Click on the TABFIELD. System displays the dialog box for all the table fields and user can select the fields from this screen. These fields are displayed in the view fields box.
Save and Activate: When the view is activated, view is automatically created in the underlying database system. As long as the table exists in the database, the view also exists (Unless you delete it).
Regards,
Bhaskar -
Difference between dynamic actions and user exit
Hi,
Please help me in when to use table T588z and user exit to write code for dynamic actions.
Thanks,
VenkatHi Prasad,
Find the difference between Dynamic action and user exits.
Dynamic Action User Exits
1. Here only initialization of an infotype 1. Along with initialization of an infotype, depending upon other infotype validation also can be done like in
can be done. IT 16 the contract end date can not be
entered more than 6 months.
2. Less time consuming to write. 2. Require programming approch so more
time consuming.
3. Table T588Z 3. PBAS0001
Br/Manas -
Hello,
I would like to list the name and size of table spaces and also extend them if they are almost filled. Since I'm more familiar with T/SQL I would greatly appreciate your helpSQL> select u.tblspc "TBLSPC", a.fbytes "ALLOC", u.ebytes USED, a.fbytes-u.ebytes UNUSED,
2 (u.ebytes/a.fbytes)*100 USEDPCT
3 from (select tablespace_name tblspc, sum(bytes) ebytes
4 from sys.dba_extents
5 group by tablespace_name) u,
6 (select tablespace_name tblspc, sum(bytes) fbytes
7 from sys.dba_data_files
8 group by tablespace_name) a
9 where u.tblspc = a.tblspc
10 ;
TBLSPC ALLOC USED UNUSED USEDPCT
CARTEST_DATA 891289600 488701952 402587648 54,8308824
CARTEST_IDX 83886080 46465024 37421056 55,390625
CARTMPTEST_DATA 41943040 26935296 15007744 64,21875
RBS 541065216 104857600 436207616 19,379845
SYSTEM 471859200 373547008 98312192 79,1649306
TEMP 209715200 58654720 151060480 27,96875
6 rows selected.
SQL>
Joel P�rez -
How to create User and Database in different Table spaces
How to create User and Database in different Table spaces using oracle 10g
Regards
dayaI am sorry but your question does not seem to make much sense.
Can you please rephrase your question?
Maybe you are looking for
-
I have an iPhone and keep my calendar into it. I have synced all photos. How do I get the calendar to sync with my MacBook Pro?
-
JDBC-Connection in SQL-Developer via Connection-Manager gives ORA-12529
Hi ! This is a followup of this Thread: https://community.oracle.com/thread/3568462 I have the same problem but I have ConnectionManager 11g (11.2.0.1.0) , which doesn't know the setting for AUTHENTICATION_LEVEL=0 And I have to use JDBC, so the OCI/T
-
Yosemite Mail - Preview list (delete purple text)
Hi guys, I have used updated from Mavericks to Yosemite. What I think is that the Mail app in Yosemite, and especially the reading pane where the conversation is shown, is not that nice. When you reply to an mail in Mavericks you see an conversation
-
Leopard 10.5.6 imac 24" won't wake from sleep
Hi - Recently my mac has stopped waking from sleep. This happens about 50% of the time and neither the keyboard or mouse will wake the machine... the only resolution is to hold the power button. Is there anywhere I can check to see what's causing thi
-
Retail Windows 7 can't install on Lenovo R61i
I have a retail version of Windows 7 that keeps asking for the drivers CD/DVD on installtion. I thought that was a thing of the past, I mean XP, but not with Vista and 7, and yet I get the error message. I've set the SATA settings to Compatibility mo