Create table - invisible to other users
Hi,
i'm using Oracle XE 10g, and I have a following problem:
when I log in as "user1" and create a table (create table test ...) then I don't see this table when logged as "user2"... Both users have same access rights. What is wrong? I am beginner in Oracle, I've used MySQL before, and this works without problems...
thanks
Jiri Matejka
USER2 needs select rights on the test table owned by USER1. In order for USER2 to be able access the table owned by USER1 the USER1 name needs to be added to the table name, example USER1.TEST. A synonym can be created to remove that need.
Similar Messages
-
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 -
I cannot see other user's tables via the OTHER USERS link
I'm using SQL Developer version 1.5.0.53 Build MAIN-53.38.
I log into the database as a user who has SELECT access to tables in other schemas via a ROLE.
In the SQL window, I can select from those other tables as I expect.
But, when I go down to the bottom of the screen and expand the Other Users link and then go down to one of the schemas that my account can select from,
no tables appear.
I've tried a couple of things so far to no avail.
1. I first granted SELECT ANY TABLE to my account. I then killed my SQL Developer session and started a fresh session. I'm seeing the same results.
2. I saw a post in here that said I needed to grant SELECT on the ALL_USERS view. So I removed the SELECT ANY TABLE privilege and granted the SELECT on
ALL_USERS to my account. Once again, I killed the SQL Developer session and re-logged in. Same results.
Is this a bug?
Thanks,
Johnwell, it turns out I'm not as dumb as I though. My end user could still not select from other user's Materialized Views. Some more research showed that granting either SELECT ANY TABLE or SELECT_CATALOG_ROLE fixed the problem for him. I'm sure that a more restrictive grant on one of the DBA_ tables would also work (probably DBA_MVIEWS) but I've not tried that.
-
Main Account Invisible to other users on network
When other users on my network try to connect to my computer my main (administrator) account does not show in the 'volumes' box but other accounts on my computer do.
I have tried all preferences etc. but am unable to make my my main account visible.
Any suggestions please.I have reset permissions in 'others' box at bottom of home 'get info' panel and my account is now visible to other computers.
Andrew Spencer -
From one user, how to get tables names of other user.
hi all,
now i connected to Oracle with one user let us assume 'pavan/pavan'. and i need to get the table names that are in user: pavan and in user: gupta (gupta/gupta).
one way is,
from Java, first get connection to pavan user, execute the query and store the results and disconnect to it and againg connect to user 'gupta', execute the query and add these results to first results.
but this is very expensive and time consuming also.
is there any query to get this one. or need to create 'Database Link' and access through that link.
regards
pavan.First you have to grant permission (like SELECT,UPDATE,DELETE....etc..) to PAVAN on objects that are belongs to GUPTA. Then you can make use the GUPTA user objects.
Suppose you connected to PAVAN and you want see the data in table A which exist in GUPTA user.
Connect GUPTA user first and execute following statement
GRANT SELECT,UPDATE,DELETE ON A TO PAVAN;
After executing the above query connect to PAVAN user and execute following statement.
SELECT * FROM GUPTA.A; -
Grant tables/views to other user
i have 3 user (a,b,c)
i want to grant select previlege of all the tables/views of user a,b to c
please help me out which one is the shortest method to doing thissukhijank wrote:
grant select any table to a,b,c;
select 'grant select on '|| OWNER || '.' ||view_name || ' to ' || '<USERNAME>;' from dba_views;
This is considered lazy and bad practice. A better practice would be to create a role, make individual grants on the tables and views owned by a and b to the role and then grant the role to c.
This is assuming c will be just querying the objects and not referencing the objects in its own objects (ie views packages etc). If this is the case then direct grants from a and b to c are needed. Once again, you should only grant the minimum necessary and resist the temptation to do a quick fix and grant system privs to ordinary users.
Andre -
Create a folder with other user id
Hi Experts,
I dont have permissons to create unix directory.
Can any one tell me how to write a prog to create a folder on UNIX directory WITH ANOTHER USERS ID each & everytime my prog executes as i dont have sufficient aunthrization.
Thanks
DanHi,
try it per job:
1) fm job_open
2) SUBMIT zz12345 AND RETURN
USER 'MD001' VIA JOB jobname NUMBER jobcount_lfad
WITH ...
3) fm job_close
A. -
UL type lock on a table blocking all other users
Hi,
We have a referential integrity constraint on a version enabled table, that refers to a non-version enabled table (highly active table..lots of inserts/updates). An insert into the version enabled table is causing a UL type lock and the non-versioned table is locked (literally the table is inaccessible) and we see blocking locks. How can I avoid this situation? Is there any OWM settings that will help me resolve this issue? I am using workspace manager version 10.2.0.4.2.
Thanks.Hi,
An insert into a child table requires a lock on the parent table which will block updates and deletes into its parent table(s) until the lock is released. This is done to maintain the validity of the constraint. Otherwise, it would be possible to have child rows without parents, which we obviously need to prevent from happening.
If possible, you could commit/rollback the transaction involving the child table more frequently, so that the locks are released and dmls can proceed on the parent table.
You can also take a look at the following thread.
RIC in OWM - ORA-20171 deadlock detected ...
It is specifically referring to deadlock situations, but it also explains our locking behavior for RIC tables.
Regards,
Ben -
Error creating view with tables of other user
I am creating of view containing two tables of another user. I
am a dba-user.
The statement looks like this:
CREATE VIEW TEST
(SELECT ...
FROM DWH.TABLE_A A, DWH.TABLE_B B
WHERE A.ID = B.ID)
I get an error-message (ORA-00942: Table or view not found).
When I create the view as user DWH, everything went OK. I don't
think it has something to do with privileges since I am the dba-
user.
How can I create a view using other users tables?Hi
To create view on table of another user you need to have select
privilege grant directly to you - not to role granted to you. In
your case you can select tables because you have granted dba
role and it has select any table prvivilege, but you havent
directly granted this rights without role.
Regards -
Problem to load XML SQL Utility into other user
Hi,
I need help to load XML Utility into other user than
"scott"tiger".
I loaded both xmlparser.jar and oraclexmlsql.jar into
"scott/tiger", it works and creating functions and testing work
fine. But when change USER_PASSWORD to another user, it gave me
some errors like
creating : org/xml/sax/helpers/AttributeListImpl
Error while creating class org/xml/sax/helpers/AttributeListImpl
ORA-29506: invalid query derived from USING clause
ORA-00942: table or view does not exist
Error while accessing MD5 table
ORA-00942: table or view does not exist
Do I need create any table or view for my another oracle account?
Or did I missed any thing. From the installation instruction, I
cano not find any about creating table or view before I load the
two jar files.
Thanks
Yuping
nullHi Yuping,
Great to hear that! Thx for posting the solution to the
problem! Let us know if you have any problems with the utility
or if u need any enhancements!
Thx
Murali
Yuping Zhu (guest) wrote:
: Hi,Murali,
: The problem is fixed now. When load xmlparser into the user, it
: creates two tables automatically, my mistake is I did not grant
: "create table" privilege to the user. After I granted the
: privilege to it, it works fine.
: Thanks!
: Yuping
: Murali K (guest) wrote:
: : Hi,
: : I will check this out with the Java folks and let u know
: : Thx
: : Murali K
: : Yuping Zhu (guest) wrote:
: : : Hi, Murali
: : : I'm using Oracle8i on Solaris 2.6. When I load xmlparser
: using
: : : loadjava -resolve -verbose -user $USER_PASSWORD
xmlparser.jar
: : : I get error message and I catch part of erros
: : : PS, I can load it into scott/tiger.
: : : Thanks!
: : : Yuping
: : : loading : org/w3c/dom/html/HTMLLegendElement
: : : Error while loading org/w3c/dom/html/HTMLLegendElement
: : : ORA-04068: existing state of packages has been
discarded
: : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
: : : ORA-06508: PL/SQL: could not find program unit being called
: : : ORA-06512: at line 1
: : : creating : org/w3c/dom/html/HTMLLegendElement
: : : Error while creating class
org/w3c/dom/html/HTMLLegendElement
: : : ORA-29506: invalid query derived from USING clause
: : : ORA-00942: table or view does not exist
: : : Error while accessing MD5 table
: : : ORA-00942: table or view does not exist
: : : loading : org/w3c/dom/html/HTMLImageElement
: : : Error while loading org/w3c/dom/html/HTMLImageElement
: : : ORA-04068: existing state of packages has been
discarded
: : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
: : : ORA-06508: PL/SQL: could not find program unit being called
: : : ORA-06512: at line 1
: : : creating : org/w3c/dom/html/HTMLImageElement
: : : Error while creating class
org/w3c/dom/html/HTMLImageElement
: : : ORA-29506: invalid query derived from USING clause
: : : ORA-00942: table or view does not exist
: : : Error while accessing MD5 table
: : : ORA-00942: table or view does not exist
: : : loading : oracle/xml/parser/v2/XSLException
: : : Error while loading oracle/xml/parser/v2/XSLException
: : : ORA-04068: existing state of packages has been
discarded
: : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
: : : ORA-06508: PL/SQL: could not find program unit being called
: : : ORA-06512: at line 1
: : : Murali K (guest) wrote:
: : : : Hi Yuping,
: : : : I tried the same on a 8i database and it seems to be
: : working
: : : : fine. (loading into two schemas). In fact I just created
: the
: : : : other user and it doesnt have any tables or anything in
it.
: : : : You do not need to create anything (table/view) extra
for
: : : these
: : : : to work.
: : : : Which database (Oracle8 or 8i) are u using?
: : : : Thanks
: : : : Murali
: : : : Yuping Zhu (guest) wrote:
: : : : : Hi,
: : : : : I need help to load XML Utility into other user than
: : : : : "scott"tiger".
: : : : : I loaded both xmlparser.jar and oraclexmlsql.jar into
: : : : : "scott/tiger", it works and creating functions and
: testing
: : : work
: : : : : fine. But when change USER_PASSWORD to another user,
it
: : gave
: : : me
: : : : : some errors like
: : : : : creating : org/xml/sax/helpers/AttributeListImpl
: : : : : Error while creating class
: : : : org/xml/sax/helpers/AttributeListImpl
: : : : : ORA-29506: invalid query derived from USING clause
: : : : : ORA-00942: table or view does not exist
: : : : : Error while accessing MD5 table
: : : : : ORA-00942: table or view does not exist
: : : : : Do I need create any table or view for my another
oracle
: : : : account?
: : : : : Or did I missed any thing. From the installation
: : instruction,
: : : I
: : : : : cano not find any about creating table or view before
I
: : load
: : : : the
: : : : : two jar files.
: : : : : Thanks
: : : : : Yuping
null -
Create Table using DBMS_SQL package and size not exceeding 64K
I have a size contraint that my SQL size should not exceed 64K.
Now I would appriciate if some one could tell me how to create a table using
Dynamic sql along with usage of DBMS_SQL package.
Brief Scenario: Users at my site are not given permission to create table.
I need to write a procedure which the users could use to create a table .ALso my SQL size should not exceed 64K. Once this Procedure is created using DBMS_SQL package ,user should pass the table name to create a table.
Thanks/"If a user doesn't have permission to create a table then how do you expect they will be able to do this"
Well, it depends on what you want to do. I could write a stored proc that creates a table in my schema and give some other user execute privilege on it. They would then be able to create a able in my schema without any explicitly granted create table privilege.
Similarly, assuming I have CREATE ANY TABLE granted directly to me, I could write a stroe proc that would create a table in another users schema. As long as they have quota on their default tablespace, they do not need CREATE TABLE privileges.
SQL> CREATE USER a IDENTIFIED BY a
2 DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp;
User created.
SQL> GRANT CREATE SESSION TO a;
Grant succeeded.
SQL> CREATE TABLE a.t (id NUMBER, descr VARCHAR2(10));
CREATE TABLE a.t (id NUMBER, descr VARCHAR2(10))
ERROR at line 1:
ORA-01950: no privileges on tablespace 'USERS'So, give them quota on the tablespace and try again
SQL> ALTER USER a QUOTA UNLIMITED ON users;
User altered.
SQL> CREATE TABLE a.t (id NUMBER, descr VARCHAR2(10));
Table created.Now lets see if it really belongs to a:
SQL> connect a/a
Connected.
SQL> SELECT table_name FROM user_tables;
TABLE_NAME
T
SQL> INSERT INTO t VALUES (1, 'One');
1 row created.Yes, it definitely belongs to a. Just to show that ther is nothing up my sleeve:
SQL> create table t1 (id NUMBER, descr VARCHAR2(10));
create table t1 (id NUMBER, descr VARCHAR2(10))
ERROR at line 1:
ORA-01031: insufficient privilegesI can almost, but not quite, see a rationale for the second case if you want to enforce some sort of naming or location standards but the whole thing seems odd to me.
Users cannot create tables, so lets give them a procedure to create tables?
John -
Problem in using CREATE TABLE with Execute Immediate
I'm trying to create a table using Native Dynamic SQL. the code of the pl/sql block is
BEGIN
EXECUTE IMMEDIATE 'create table demo (ddate date)';
END;
The problem is that the above block is executed successfully as an anonymous PL/SQL block. The same block when written in a procedure it gives an error
"ORA-01031 Insufficient privelages"
at the time of execution. The procedure is complied successfully.
nullYour user needs direct system privs to create tables. You are receiving your privs properly by the role RESOURCE. Connect as system and grant CREATE TABLE directly to your user - that should do it.
Regards
Peter Larsen -
How to create Tables and Fields in Java DI API?
I have the problem to get the handle for IUserTabledMD.
userTablesMD = (IUserTablesMD) getCompany().getBusinessObject(SBOCOMConstants.BoObjectTypes_oUserTables);
does not work as in VB (getCompany() gets the ICompany handle).
and
userTablesMD = SBOCOMUtil.getUserTablesMD(getCompany(),"");
needs an additional String!?!?!?!?
How to get the handle to create new user defined tables?
I think Fields needs the same methods.
Regards, Frank.could you send me code for creating table using java
-
Is a PRIVILEGE always forwardeable to other users?
Assume user123 has (got) a privilege XXXX.
Can he always GRANT/pass/forward this privilege to other users?
Or is there in Oracle a difference between possessing a privilege and have the privilege to GRANT a privielege to others?
PeterHello Peter,
Suppose
1. WITH ADMIN OPTION , user123 got create table privilege using this option (normally system privileges (e.g create table) and roles.)
user 123 can grant this privilege to other users like test1 & test2, in future when this create table privilege revoked from user123 , this privilege is not revoked from test & test2.
2. WITH GRANT OPTION. ( table specific privileges) User123 got select privilege on table dept with this option
user 123 can grant this privilege to other users like test1 & test2, in future when this select privilege revoked from user123 , this privilege is also revoked from test & test2.
Regards,
Vineeth -
Basically, I need to create a table from a query that runs against another db on a separate box. Is this possible?
ThanksIf you're able to create a database link to the other server you could then use the query(modifying the tables in the from clause to use the dblink) in a create table statement.
Maybe you are looking for
-
Kuler no longer working in InDesign CS4
Hi I've been googling this a lot but haven't found a (working) solution yet. I did find a link to what could be a solution, but the link is not working anymore. I'm an IT guy in an office where we have a small team of four people using Adobe Creative
-
While saving the sales document .this error is coming.
Is there any body to help it out ....... While saving the document this error is coming **Financial document: No financial document assigned**
-
i got a new comp yet i still have to use my old one to update and manage apps on my iphone 4. how do i switch it over?
-
I want to remove a saved login user name which always shows in my ist of usernames
I inadvertanly typed my password at the end of a user login name and now this always shows in the list of usernames when I type the first characters of the username. Which is used constantly.
-
[SOLVED] unetbootin has me ready to take hostages!
Okay, that's a little 'ranty', but I've just spent literally 8-10 hours over the past two days trying to get a bootable USB drive working with my Asus laptop. (Dual-boot Windows 8/Arch Linux.) I have a friend that's going to be converting from Windo