Hi
I would like to achieve situation that every table or view created by the user is **automaticaly ** visible to all other users having access to that schema in my particular case PUBLIC.
I was trying such script :
__CREATE USER user1 IDENTIFIED BY 'password';
CREATE USER user2 IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON SCHEMA PUBLIC TO PUBLIC
ALTER SCHEMA "mpdb.public" DEFAULT INCLUDE SCHEMA PRIVILEGES;
CREATE ROLE Business;
GRANT ALL PRIVILEGES ON SCHEMA "public" TO Business;
GRANT SELECT ON SCHEMA PUBLIC TO Business;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA "mpdb.public" to Business;
GRANT Business TO user1, user2;
ALTER USER user1 DEFAULT ROLE ALL;
ALTER USER user1 DEFAULT ROLE ALL;
---for user 1
--vsql -U user1 -w password -c "create table t2(a int);"
--CREATE TABLE
-- for user 2
--vsql -U user2 -w password -c "select * from all_tables where table_name='t2'"
/*
schema_name | table_id | table_name | table_type | remarks
-------------+----------+------------+------------+---------
(0 rows)
/__
But without success. What am I doing wrong?
Thx
M.