Grants across table spaces
I'm trying to write a report that selects data from two schemas in two different HTMLDB tablespaces (or workspaces). How do I gain access from one workspace to the other? I've tried dblink and grants, but I'm unable to see users from one workspace to grant to, or see the schema from the other workspace.
Jim
Jim - Are you saying that when you use some of the wizards to create a report you cannot see objects in schemas other than the parsing schema of the current application? You don't need dblinks if everything is in the same database, but you do need to grant select on each table, view, etc., that you might want to access from your application and these must be direct grants and not through roles.
Scott
Similar Messages
-
Scattering Data Across Table Space
Hi Guys,
We have System Performance team who checks the performance of our product .As per them there are few tables which they are concurrently updating(For the performance check) and due to being the tables in the same table space the insert is taking long time and CPU wait spikes under high concurrent user load.
I am wondering is it the problem of many tables in the same table space or some thing differernt.
We are using Oracle 11g Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production.
Please share any ideas or thoughts if any body has encountered this problem already.
Thanks in advance.
Regards,
Papi957590 wrote:
We have System Performance team who checks the performance of our product .As per them there are few tables which they are concurrently updating(For the performance check) and due to being the tables in the same table space the insert is taking long time and CPU wait spikes under high concurrent user load.
I am wondering is it the problem of many tables in the same table space or some thing differernt.
Your performance team haven't told you enough about what they're doing to give you any sensible ideas about their problem.
If we assume that they understand nearly everything they're doing, and are looking in the right place at the right time, then there is a possibility that their problem is too much activity on a single tablespace, but the problem would be platform dependent and also be affected by the Oracle configuration.
Assume that they are using a file system for the Oracle data files, have just one file for the critical tablespace, and have configured multiple db writers (or writer slaves) and aren't using the O/S direct I/O and async features (which typically means they've not set Oracle's parameter filesystem_io_options to "setall") then they could be seeing inode contention for the relevant file and that could result in lots of CPU spinning. (At the file system level, readers block writers, writers block readers).
If you want to start understanding what their problem is, get them to show you an AWR report generated over a short interval, and get them to explain exactly what their test was doing in that interval.
Regards
Jonathan Lewis -
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,
I want to export the some table spaces to the new server ( on the new server I will create the new database and i want to import these exported tabale spaces)
I want export the Table spaces, their tables, user and grants.
These are arrount 100 table spaces
How should i do these using scripts.
Please guide me how to create script for this.
I am trying using TOAD but not able do it
Please guide me...
Thanks,
AmolMore or less you are planning to set up the target server (HP-UX) with the set of source server tablespaces (IBM-AIX) of your Oracle Database 10g R2.
As you have mentioned that you got about 100 tablespaces in Source System.
Consequently, in order to achieve this you can opt for The RMAN CONVERT DATABASE command, which is used convert/move database from one platform to another platform as long as both the endian platforms are same.
Pls take a look at the below Oracle Database Link for "Cross-Platform Transportable Database: RMAN CONVERT DATABASE"
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/dbxptrn002.htm#sthref1397
Regards,
Sabdar Syed. -
How to increase the table space for a particular table?
Hi Friends,
I want to know how to increase the table space for a particular table and how to check the table space size of a particular table. Please can any one send the SQL Script. I am very much poor in DBA Part.
Thanking You ..
KiranKiran - you should post this question on the SQL/Database forums - this is a Forms specific forum...
Regards
Grant Ronald
Forms PRoduct Management -
How much table space will be alloctaed per user
hi all,
when a user is created how much table space will be allocated by default per user the oracle server or is there any default size fixed by the dba.
thanks and regards,
sri ram.Untill the administrator doesn't specify QUOTA or grant UNLIMITED TABLESPACE to user Oracle account doesn't have available space in any tablespace, event in default:
SQL> create user new_user identified by new_user
2 default tablespace users;
User created.
SQL> grant create session, create table to new_user;
Grant succeeded.
SQL> conn new_user/new_user
Connected.
SQL> create table t(x int);
create table t(x int)
ERROR at line 1:
ORA-01950: no privileges on tablespace 'USERS'
SQL> conn / as sysdba
Connected.
SQL> alter user new_user quota 1M on users;
User altered.
SQL> conn new_user/new_user
Connected.
SQL> create table t(x int);
Table created. -
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. -
How to grant create table privilege for a user on a specific table
Hi:
I created a user, for a test scenario. I granted this user create any table, and I made the default tablespace as example.
When I connect as the user and try to create a table, I get this:
SQL> create table T1 (NAME varchar2 (500), AGE number(2));
create table T1 (NAME varchar2 (500), AGE number(2))
ERROR at line 1:
ORA-01950: no privileges on tablespace 'EXAMPLE'
How can I grant the necessary privilege to have user create/delete tables on tablespace example?
Thanks.
DAcreate user ADAM identified by radge default tablespace EXAMPLE
quota 10M on EXAMPLE;
for example 10Mbytes given to Example tablespace.... or you can write:
.....quota unlimited on EXAMPLE
and
grant connect to ADAM
grant create table to ADAM .....
or
grant connect , resource to ADAM .... although grant resource is not recommended...
....and something else....
you should define temporary tablespace in create user command... otherwise the system would be used...
Greetings...
Sim
Message was edited by:
sgalaxy -
Space in bytes used by a single index in given table space
Hi All,
How can i find a table space used by index in bytes
Eg:
suppose i have a table space USERS and i have a table say customer . one index defined on table customer called CUSTOMER_UQ and mapped to table to table space USERS . How can i find the bytes used by object CUSTOMER_UQ in table space USERS.
ThanksThe used space in Karthik's example is the number of bytes actually used by entries in the index, not the amount of space allocated to the index itself.
To find out how much space in disk is allocated to the index you can use (as the owner of the index) something like:
SELECT bytes FROM user_segments
WHERE segment_name = <index name>You could also use all_segments or dba_segments if you have access as another user, but you would also need to specify the owner name.
John -
BRtools table space creation error
hi,
Iam trying to create new table space in my R/3 system. When i went to brtools - space management sytem throwing error owner failed.I tried with all users to login like ( <SID>adm,administrator etc ...)even then same problem.Could you please suggest how to create table space with what login id
Error:
Main options for creation of tablespace in database WA6
1 - Tablespace name (tablespace) ......... [PSAPECDATA]
2 - Tablespace contents (contents) ....... [data]
3 - Segment space management (space) ..... [auto]
4 - SAP owner of tablespace (owner) ...... [EC5ADM]
5 - Data type in tablespace (data) ....... [both]
6 # Joined index/table tablespace (join) . []
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0662I Enter your choice:
c
BR0280I BRSPACE time stamp: 2006-06-14 21.08.45
BR0663I Your choice: 'c'
BR0259I Program execution will be continued...
BR0824E Owner EC5ADM not found in database or not SAP owner
BR0691E Checking input value for 'owner' failed
BR0669I Cannot continue due to previous warnings or errors - you can go back to
repeat the last action
BR0280I BRSPACE time stamp: 2006-06-14 21.08.45
BR0671I Enter 'b[ack]' to go back, 's[top]' to abort:
Please suggest.
- CheersLogin as ora<sid> and run brtools. Tablespace owner will be SAP<SID> or SAPR3 depends upon your version.
Thanks
Prince -
Table space not reduce after delete in oracle 11G
Hi Team,
I have a DB 11.1.0.7 on unix.
I have execute delete tables on tablespace, but this not reduce.
Thanks935299 wrote:
What segment space management type is defined for the tablespace in question?
MANUAL
Then you should check out the documentation some more.
But even if you shrink the table segement what is that going to do for the data file size?
I don't undertand you.
ThanksYour thread is titled "Table space not reduce after delete in oracle 11G" which implies to me that you are interested in reducing the size of a tablespace (which really means reducing the size of the underlying datafile(s)).
So, if you shrink the size of the sys.aud$ table, will that cause the datafile(s) to become smaller? Will it accomplish your goal? What else, if anything, needs to happen? -
Table space not reduce after delete in oracle 10g
Hi..
Based on my system, i have found that my oracle table space did not reduce after the deletion query. Why ?.. Could somebody help me. As your info, I am using oracle 10g.
Thank you,
BaharinAfter Delete the table space will not be set free. high water mark will not be reset. to regain the space you need to recognize the objects from which you deleted the data. This can be done in many ways.
1) Move the objects.
Alter table temp move --> optionally tablespace clause can be used. After this you need to rebuild table indexes.
2) With 10g table can be shrinked or reorganize to free the space.
alter table mytable enable row movement;
alter table mytable shrink space;
3) Export/Import
export the objects and drop and recreate with import. -
Select Into statement in db function - query from granted schema table
problem with "select into" in db function in 10.2
There are two schemas. 'mdbdev' is the master database and 'devusr' is granted SELECT table access to execute queries in mdbdev schema.
with devusr, in SQL, I'm able to execute the following query
select wm_concat(strConcatedCountryList)
from (select country_name as strConcatedCountryList from mdbdev.country_master mdbcm
where mdbcm.country_ship_status = <param?>
order by country_name)
but when I use the same query in function/procedure with "select into", the compilation failed with error *"table or view does not exist"*
FUNCTION GETCOUNTRYLISTTOSHIP (SHIP_STATUS IN NUMBER)
RETURN VARCHAR2
IS
var2CountryList VARCHAR2(1000);
BEGIN
select wm_concat(strConcatedCountryList) INTO var2CountryList
from (select country_name as strConcatedCountryList from mdbdev.country_master mdbcm
where mdbcm.country_ship_status = <value of SHIP_STATUS>
order by country_name);
return var2CountryList;
END;
Please advise/help/hint :)David, Justine, Thank you. The facts from this forum post helped a lot to get the solution.
The query helped a lot (select * from all_tab_privs_recd where owner = 'MDBDEV' and table_name = 'COUNTRY_MASTER").
there was a grant using ???(donno wht DBA said) and no direct SELECT grant on that country_master to "devusr". grant command executed. Now, it works :) -
How to restart after table space error
Hi,
While loading a big file ( 360 MB) with the File -> XI-<ABAP prodxy from source, we got the table space error in middle of load. Due to Content conversion split for 20K we normally get many messages per load.
In this case after basis increased the disk space, how do i restart the process so that it start from where it is left. I checked Moni and there is no Que. I checked RWB for adapter also and there is no message with error. I also checked integration and all possible places..
The Alert that came in for failure has a message ID. I checked and found that message ID has been processed successfully. Still the count of records at the source does not match with target and lot of records are missing.
Is there any way to re run the process from where it was left.
ThanksHi,
Check following:
- RWB->Message monitoring->Adapter engine (not integration server)
-Check for follwing status:
"Holding", "Waiting" "To be delivering" "Error" your message should be here any of above status.
Note: in RWB message monitoring select "Adapter engine"
Regards,
Gourav
reward points if it helps you -
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.....
Maybe you are looking for
-
Multiple SSIS Packages into one single package
Hello All, I have created 4 SSIS Packages. 1st package- To load data from FlatFiles to DB(MasterTable) 2nd package- split the MasterTable into 2 different tables(ChildTable1, ChildTable2). 3rd package- join the child table to another mastertable to g
-
How can i connect ipad mini wifi+celluar to 2g internet plan
-
Can't find or add previous event to calendar.
I have not updated to 8.1 yet. I KNOW that I had a calendar event on Sept. 22nd and many others that aren't showing up. I went back to add it [it' s important] and it won't 'take'. I toggled calendar off in settings and back on, restarted the iPhone
-
what's the maximum number of photos iPhoto can handle? I have about 15,000 photos and half of them are RAW files from a Canon 20D. I plan on shooting 90% of my photos in the future in RAW mode. is there a limit to when it starts to really crawl? (i h
-
How do i get my cursor to look like an arrow when i'm making adjustments
i don't have a normal cursor, which in my case is an arrow. instead i have what looks like three tiny hands in a row. this makes it very difficult to be accurate when cropping, or tilting. i uninstalled and reinstalled, to no avail. i'm using cs4