Schema grants
I am asked to give select grant to a user on the objects which are owner by another user. Can anyone of u pass on a good script to me. Thanks in advance
SQL> conn scott/tiger
Connected.
SQL> select count(*) from hr.employees;
select * from hr.employees
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> disconn
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> conn hr/hr
Connected.
SQL> begin
2 for x in (select table_name from user_tables)
3 loop
4 execute immediate 'Grant select on '|| x.table_name || ' to &schema';
5 end loop;
6 end;
7 /
Enter value for schema: scott
old 4: execute immediate 'Grant select on '|| x.table_name || ' to &schema';
new 4: execute immediate 'Grant select on '|| x.table_name || ' to scott';
PL/SQL procedure successfully completed.
SQL> disconn
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> conn scott/tiger
Connected.
SQL> select count(*) from hr.employees;
COUNT(*)
107 Regards
Umi
Similar Messages
-
Travel Schema:grant all privileges
I have a request to add the travel schema to one of our 9202 databases. Fairly straight forward. I got the *.dmp file from your site:
http://www.oracle.com/technology/sample_code/tech/java/travel/travelschema.htm#system
I created the user travel and used the system tablespace as the default. As for privileges, I noticed that I should "grant all privileges" to travel. Is this wise? What's the minimum amount of privileges that I can grant to travel?Is this wise? You are quite right to be concerned. Granting ALL PRIVILEGES is a dodgy thing to do. In mitigation I might say that the TRAVEL schema is a sample piece of code and so should only be installed on a development database, where the damage can be limited.
But I think the real problem is that the sample code was developed by Java programmers who couldn't be bothered to work out exactly what privileges were needed. Shocking, yes, but hardly uncommon. And the poltroons have also included instructions on how to
To Download and install the travel schema into the SYSTEM tablespace:
No no no! No application objects go into the SYSTEM schema. What's the point of us non-Oracle people banging on about best practice if their own employees are allowed to post stuff like this on OTN? Sack these bozos!
What's the minimum amount of privileges that I can grant to travel? I have absolutely no idea. I think the safest thing is to build a new database instance, so that the potential for damage is limited. Alternatively, grant CONNECT and RESOURCE and see how far that goes. You may have to grant additional powers. I see they also grant JAVASYSPRIV and JAVAUSEPRIV. Horrible, simply horrible.
Cheerse, APC -
Hi Experts,
I am getting the following error during import using impdp
Failing sql is:
GRANT SELECT ON "CM_DBA"."PARTY" TO "CM_USR"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'CM_USR' does not exist
Failing sql is:
GRANT SELECT ON "CM_DBA"."PARTY_RLN" TO "CM_USR"
How to exclude CM_USR during import in windows?
Thanks for the help.
Regards,
RichardThis link will be helpful
http://psoug.org/reference/datapump.html
Here just find out word EXCLUDE a good explanation is given -
How to copy one schema into another
I need to copy one schema into another. That means, all the tables, views, constraints, etc, and all the data as well.
I have a dmp file of source-schema (created daily with expdp by our backup schedule).
Can I use impdp to import this dmp file into dest-schema? I'm thinking about something like this:
The dmp file was created with:
expdp source-schema/pwd DIRECTORY=dmpdir DUMPFILE=myproject.dmp
Create the copy on dest-schema with:
impdp dest-schema/pwd DIRECTORY=dmpdir DUMPFILE=myproject.dmp
(dest-schema is an existing schema on the same machine. I'll drop all the tables before executing the command. Is there anything else I should do first?)
If this approach is not feasible, kindly suggest me an alternative.
Thank you.
Edited by: mgro on Apr 16, 2010 3:22 AM (changed 2nd command: expdp to impdp)Thank you both. Dean, I've made a note of your proposed command. May use it next time.
In the end I used the following command and it worked for me. I added TABLE_EXISTS_ACTION=REPLACE since the destination was not empty.
First I ran these command logged in as SYS
GRANT Import Full Database TO dest-schema;
GRANT Create Any Directory TO dest-schema;
GRANT Unlimited Tablespace TO dest-schema;
impdp
dest-schema/pwd
DIRECTORY=dmpdir
DUMPFILE=myproject.dmp
REMAP_SCHEMA=source-schema:dest-schema
TABLE_EXISTS_ACTION=REPLACE
LOGFILE=implog.log
There were some errors though. The import process complained about constraints referencing non-existent primary keys.
It turns out that the source schema has some constraints that are marked with status DISABLED. These constraints either:
- are not part of the DUMP file
or
- are in the DUMP file but skipped during import
Don't know if this is a bug or by design behavior. -
To access PD Repository, why do we have to connect to the schema owner?
Hi
we use Oracle for PD repository. In order to connect to the repository, we create odbc connection to the repository schema owner. The question is, can we create a application schema user and provide read/write privileges to the repository and then create odbc connection to this application schema instead of repository schema?
thanksHi Krishna,
We create odbc connection to the repository schema owner. The question is, can we create a application schema user and provide read/write privileges to the repository and then create odbc connection to this application schema instead of repository schema? Yes
I suggest that you use the proxy rather than a direct connection. Search this topic in this forum.
If you decide to keep your idea here's how :
REPOSITORY_SCHEMA (OWNER SCHEMA):
GRANT SELECT, INSERT, UPDATE, DELETE ON EACH <PD TABLES> TO <APPLICATION_SCHEMA>
(PD tables usually begin by PM%, actually PD does not use VIEW, SEQUENCE objects)
On Application Schema : Create as many synonyms as there's table to go to the schema owner
Example : CREATE SYNONYM PMTEMP FOR <OWNER_SCHEMA.PMTEMP>
Ask to your Oracle DBA. It can do, he know how do.
Warning : When you do an update of PD you will have to check if the privileges are gone,if SAP has added new tables, etc.
I do not think it's a good idea to follow this path
Note : Your evaluation of my answer would be appreciated. Please mark the answer as "Helpful” or “Correct” if this is the case. Also If you consider that I have answered mark the discussion as “Answered,” so that other members can find the answer more easily. Before posting a new question members search SCN to see if it’s already been asked / answered. That’s the fastest way to get information. -
Move table to a different schema
How can i move a particular table from one schema to another.
I have no mutual depenencies on anyother tables.Couldn't you just use CREATE TABLE <tablename> AS SELECT * FROM oldschema.<tablename> in the new schema, then drop the table in the old schema? Or, is your situation more complex than that? You might need to create a synonym to point to the new table from the old schema...
For this to work, you'll need to make sure that the new schema has select privileges on the old schema's table. If it doesn't, while logged into the old schema, use:
GRANT SELECT on <tablename> to <newschema>;Then, if you still need to access the table from the old schema once it's moved, you'll need to grant those privileges from the new schema:
GRANT SELECT on <tablename> to <oldschema>;(Though, using roles is a better option than granting privileges directly to a schema...)
Edited by: user11033437 on Aug 24, 2010 8:47 AM -
How to create a link between database schema?
Hi,
I have created database link between two database schema (From DBSchema2 i have created database link for DBSchema1). From DBSchema2, i have quried one table (This table is present in DBSchema1). But it throws an error says that Table or View does not exist. Anyone pls tell the detailed way to create database link between schema??
Thanks,
Sathish kumar DYes iam trying to Archive
I said achieve not archive. Anyways so you are trying to archive the data. Can you just detail your requirement ? What exactly do you want ?
Only few tables will be moved to Archive Schema and other foriegn key tables will have a reference to the Live Schema. So how i can create the link between the Archive Schme to Live schema?
There is no question of creating database links between 2 schems. It is pure stupidity. If you want to access any object from another schema grant proper privileges and create a synonym for the object. Database links are not meant for this purpose.
Amardeep Sidhu
http://www.amardeepsidhu.com -
How to GRANT SELECT on all the tables in 1 go?
Hi
I have many tables (close to 200) in my Schema. I want to grant SELECT ON ALL TABLES to another user. How do I achieve this in one go?
Thanking you in advance,
...Although Justin has given a wonderful answer. You might also review the following threads;
Grant select on a schema
Re: Grant select on a schema
grant select on
grant select on
grant select on tables
Re: grant select on tables
Adith -
Hello Experts!
I am using Oracle ImpDP to import a fresh DB to a test system. I was the impdp to create all the schema.
My original import was done using sys as sysdba
I am running the import using the same user. What option should I set in the par file to do so?
-- Oracle 10.2G
-- Running on Linux
Thanks!hi
Part of the Exp Logs
Export: Release 10.2.0.4.0 - Production on Monday, 19 September, 2011 19:09:09
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SYS"."SYS_EXPORT_FULL_01": "system/******** AS SYSDBA" DUMPFILE=EXP_DUMP_DIR:expdp_STAGEDB_09192011.dmp logfile=EXP_LOG_DIR:expdp_STAGEDB_09192011.log PARFILE=/home/oracle/wavemark/export/scripts/expdp_STAGEDB.par
Estimate in progress using BLOCKS method...
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 9.944 GB
Processing object type DATABASE_EXPORT/TABLESPACE
Processing object type DATABASE_EXPORT/SYS_USER/USER
Processing object type DATABASE_EXPORT/SCHEMA/USER
Processing object type DATABASE_EXPORT/ROLE
Processing object type DATABASE_EXPORT/GRANT/SYSTEM_GRANT/PROC_SYSTEM_GRANT
Processing object type DATABASE_EXPORT/SCHEMA/GRANT/SYSTEM_GRANT
Processing object type DATABASE_EXPORT/SCHEMA/ROLE_GRANT
Processing object type DATABASE_EXPORT/SCHEMA/DEFAULT_ROLE
Processing object type DATABASE_EXPORT/SCHEMA/TABLESPACE_QUOTA
Processing object type DATABASE_EXPORT/RESOURCE_COST
Processing object type DATABASE_EXPORT/TRUSTED_DB_LINK
Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/SEQUENCE
Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type DATABASE_EXPORT/DIRECTORY/DIRECTORY
Processing object type DATABASE_EXPORT/DIRECTORY/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type DATABASE_EXPORT/CONTEXT
Processing object type DATABASE_EXPORT/SCHEMA/PUBLIC_SYNONYM/SYNONYM
Processing object type DATABASE_EXPORT/SCHEMA/SYNONYM
Processing object type DATABASE_EXPORT/SCHEMA/TYPE/TYPE_SPEC
Processing object type DATABASE_EXPORT/SCHEMA/TYPE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PRE_SYSTEM_ACTIONS/PROCACT_SYSTEM
Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PROCOBJ
Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/POST_SYSTEM_ACTIONS/PROCACT_SYSTEM
Processing object type DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/PRE_TABLE_ACTION
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/GRANT/CROSS_SCHEMA/OBJECT_GRANT
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/INDEX
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/CONSTRAINT/CONSTRAINT
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/COMMENT
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/RLS_CONTEXT
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/RLS_GROUP
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/RLS_POLICY
Processing object type DATABASE_EXPORT/SCHEMA/PACKAGE/PACKAGE_SPEC
Processing object type DATABASE_EXPORT/SCHEMA/PACKAGE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type DATABASE_EXPORT/SCHEMA/FUNCTION/FUNCTION
Processing object type DATABASE_EXPORT/SCHEMA/PROCEDURE/PROCEDURE
Processing object type DATABASE_EXPORT/SCHEMA/PROCEDURE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type DATABASE_EXPORT/SCHEMA/FUNCTION/ALTER_FUNCTION
Processing object type DATABASE_EXPORT/SCHEMA/PROCEDURE/ALTER_PROCEDURE
Processing object type DATABASE_EXPORT/SCHEMA/VIEW/VIEW
Processing object type DATABASE_EXPORT/SCHEMA/VIEW/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type DATABASE_EXPORT/SCHEMA/VIEW/GRANT/CROSS_SCHEMA/OBJECT_GRANT
Processing object type DATABASE_EXPORT/SCHEMA/VIEW/COMMENT
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type DATABASE_EXPORT/SCHEMA/PACKAGE_BODIES/PACKAGE/PACKAGE_BODY
Processing object type DATABASE_EXPORT/SCHEMA/TYPE/TYPE_BODY
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/POST_TABLE_ACTION
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TRIGGER
Processing object type DATABASE_EXPORT/SCHEMA/VIEW/TRIGGER
Processing object type DATABASE_EXPORT/SCHEMA/MATERIALIZED_VIEW
Processing object type DATABASE_EXPORT/SCHEMA/JOB
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/POST_INSTANCE/PROCACT_INSTANCE
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/POST_INSTANCE/PROCDEPOBJ
Processing object type DATABASE_EXPORT/SCHEMA/POST_SCHEMA/PROCOBJ
Processing object type DATABASE_EXPORT/SCHEMA/POST_SCHEMA/PROCACT_SCHEMA
. . exported "UWAVE"."PRODUCTITEM" 1.607 GB 4961525 rows
. . exported "UWAVE"."PRODUCTEVENT" 1.363 GB 7668052 rows
. . exported "UWAVE"."RFIDTAG" 716.7 MB 6206230 rows
. . exported "UWAVE"."ERRORLOG" 856.5 MB 628430 rows
. . exported "UWAVE"."CABINETRUN" 979.5 MB 20389386 rows
. . exported "URPT"."STG_RTHOSPITAL_PRODUCTEVENT" 252.4 MB 1854228 rows
. . exported "UWAVE"."AUDITLOG_ARCHIVE" 232.3 MB 571450 rows
. . exported "UWAVE"."PERFORMANCETIMING" 194.8 MB 330004 rows
. . exported "UWAVE"."REPORTLOG" 186.2 MB 2315240 rows
. . exported "UWAVE"."ENDPOINTITEMEND_MV" 138.8 MB 306043 rows
Part of the Imp Logs
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYS"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "SYS"."SYS_IMPORT_FULL_01": "system/******** AS SYSDBA" DUMPFILE=IMP_DUMP_DIR:expdp_ProdDB_2_EngDB02.dmp LOGFILE=IMP_LOG_DIR:impdp_ProdDB_2_rows.log PARFILE=impdp_ProdDB_2_eng.par
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
. . imported "UWAVE"."PRODUCT" 8.966 MB 39674 rows
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USPLY' does not exist
Failing sql is:
GRANT ALTER ON "UWAVE"."PRODUCT" TO "USPLY"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USPLY' does not exist
Failing sql is:
GRANT DELETE ON "UWAVE"."PRODUCT" TO "USPLY"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USPLY' does not exist -
I have the same APEX application loaded in different workspaces. Each workspace connects to the same DB machine, but has different parsing schemas. The schemas (tables,packages, functions) are all identical. The only difference is the actual data stored in the table.
I am running into a sporadic issue where functions/procedure calls from my APEX pages seem to be connecting to a different schema that the workspaces parsings schema.
FOR example. I am logged into APEX as schema1. My Page validation is calling a function stored in a package.
return SIS_express.ok_to_inquire(:APP_USER,:P0_LOGIN_SCHOOL_YEAR,:P0_LOGIN_SCHOOL,:APP_ID,:APP_PAGE_ID);
The package name is 'SIS_express' (which every schema has loaded) and the function is 'ok_to_inquire'. Instead of running this from the parsing_schema (schema1) it is running it in (schema2). Of course, this makes the validation fail. Of course, this does not happen all the time, but seems to happen a few times a day. Is there anyway to prevent this from happening (either in the APEX code or the schema grants)?Check if any of the schema packages are directly referring another schema in code. For me my development triggers were referring production tables.
Edited by: user13289574 on Nov 2, 2011 11:26 PM -
Accepting user input and then running grant statements
Hi I have a script which creates a database, at the end of this script I need to change user, and then run a number of grants. I need to accept the name of the schema to make the grants to from the user. The code I have been trying to use is below
--Prompt for portal password and connect as portal
connect portal
--Issue grants for portal apis
PROMPT 'Enter the schema name'
ACCEPT schema
@provsyns.sql &schema
PROMPT 'Enter the schema name'
ACCEPT schema
grant select on WWSEC_PERSON to &&schema;
PAUSE
grant select on WWSEC_GROUP$ to &&schema;
PAUSE
grant execute on wwctx_api_private to &&schema;
grant execute on pkg_oid to &&schema;
grant execute on pkg_error_handling to &&schema;
UNDEFINE schema
When I run the code I get and ORA-00987: missing or invalid username(s)
Can anyone help me please?
Many thanks,
DannyHi,
You can write a genric procedure to achive the desired output. Pass 'Y' or 'N' in the procedure.
Call that procedure in simple pl/sql block during runtime using substituton operator.
For ex
create or replace procedure p1(category_in in varchar2)
IS
BEGIN
if (category_in='Y')
then
prcdr1()
/** Write your logic here ***/
elsif(category_in='N') then
prcdr2()
/** write your logic here***/
end if;
exception
/***write the exception logic ***/
end p1;
Begin
p1('&cat');
end;Regards,
Achyut K
Edited by: Achyut K on Aug 6, 2010 5:20 AM -
Hi,
Is there a way to list permissions on a schema granted to a user? Not objects in the schema, but schema itlself?
I tried using
SELECT * FROM fn_my_permissions('MySchemaName', 'SCHEMA')
but return is not what I need. For example, it lists permission SELECT, but not whether permission was granded, revoked, or denied. It is the latter I am interested about.
Any help would be apreciated.
Thank you.
Peter Battelino
BTE Corporation
PMBTI may be misunderstanding what you are asking for, but when I tested Rick's script, it seems to me that it returns more or less exactly what you are asking for. There is no place to plug in the permission - it lists all permissions denied or granted, see
the script below.
However, REVOKE is missing and will always be missing since REVOKE just removes whatever there used to be.
CREATE DATABASE listschema
go
USE listschema
go
CREATE SCHEMA TestSchema
go
CREATE USER TestUser WITHOUT LOGIN
go
GRANT SELECT ON SCHEMA::TestSchema TO TestUser
DENY INSERT ON SCHEMA::TestSchema TO TestUser
go
SELECT state_desc, permission_name, 'ON', class_desc,
SCHEMA_NAME(major_id),
'TO', USER_NAME(grantee_principal_id)
FROM sys.database_permissions AS Perm
JOIN sys.database_principals AS Prin
ON Perm.major_ID = Prin.principal_id AND class_desc = 'SCHEMA'
WHERE major_id = SCHEMA_ID('TestSchema')
AND grantee_principal_id = user_id('TestUser')
--AND permission_name = 'SELECT'
go
USE tempdb
go
DROP DATABASE listschema
Erland Sommarskog, SQL Server MVP, [email protected] -
HELP - Schema and security principals ?
Having a great deal of difficulty finding a good description or exposition on the use of SCHEMAS as it pertains to security principals. I've been working with DBs such as AD and Exchange for several years, and am familiar with the concept and use of SCHEMAS in these contexts.
Specifically ... what and why the necessity to map a (user?) schema to a login/user in SS2k5? Someone please provide a clear (simple ... not too techno-nerd) answer or provide a link to an article/faq/blog/thread where this concept is clearly and FULLY explained.
Thanks ...Thank you for your quick response ... the last two linked articles above helped, but as can always be anticipated, I now have additional questions:
1) Clarification ... "SCHEMA" then in the SQL 2k5 context is analogous to "Node" or "sub-domain" as used in a "schema" (directory actually) such as active directory or DNS?
2) An SQL security principal created would then be identified with some sort of FQSN ("fully qualified schema name") such as [DBServer].[DBName].[DBO].[UserName] ... in the case of an SQL user created using the default schema?
3) Is there inheritance of properties such as access rights and permissions from parent container to child both on the object(s) themselves as well as rights and permissions granted to the parent schema on other objects anywhere in the [DBServer] tree?
4) What is the use and important characteristcs/properties of the "DBO" schema ... more specifically in terms of any SQL sequrity principals contained within DBO?
5) Related to #3 and #4 above, does default "membership" in the DBO schema grant DB ownerhip permissions and rights to any SQL sequrity principal created with DBO as the default container? And if so, are those rights and permissions applied "globally" so that any new user with DBO as the default schema would suddenly have DB owner access to all DBs within its parents' schema's scope?
6) What is the mechanism that maps NTFS, Windows OS, and Windows AD rights/permissions to SQL Security principals that are added to the DBO or other security principal "schema(s)" for security and DB access administration/management?
7) Related to #6 above, what are the rules and mechanisms that govern use of SQL Server (and DB) ROLES, LOGINS, and USER objects mapped to Windows and AD security groups ... what are the policies and best practices? ... how do I manage DB access (such as ownership) using Windows groups? ... How do I grant only the least or specifically required access rights to a group of users be they programmers, admins, users, or whatever using Windows AD security groups?
8) Lastly, is there an SSMS wizard or TSQL script that can be used to "browse" or navigate the SQL schema hierarchy similar to ADSIEdit or LDP.EXE for AD?
Thanks again ... EHammer -
Create Link between database schema
Hi,
I have created database link between two database schema (From DBSchema2 i have created database link for DBSchema1). From DBSchema2, i have quried one table (This table is present in DBSchema1). But it throws an error says that Table or View does not exist. Anyone pls tell the detailed way to create database link between schema??
Thanks,
Sathish kumar DYes iam trying to Archive
I said achieve not archive. Anyways so you are trying to archive the data. Can you just detail your requirement ? What exactly do you want ?
Only few tables will be moved to Archive Schema and other foriegn key tables will have a reference to the Live Schema. So how i can create the link between the Archive Schme to Live schema?
There is no question of creating database links between 2 schems. It is pure stupidity. If you want to access any object from another schema grant proper privileges and create a synonym for the object. Database links are not meant for this purpose.
Amardeep Sidhu
http://www.amardeepsidhu.com -
Grant V$instance privelege
Hi,
I want to grant select on privelege on V$INSTANCE to one of my scheme,
grant select on v_$instance to abc123;
But this gives the error.
Please give the right query,You have to be connected as sysdba to grant privileges on v_$instance.
Regards,
PP
Maybe you are looking for
-
Aperture 3 and Flickr syncing back and forth
I posted some pics to flickr using Aperture 3, and later added keywords, again using Aperture 3. I couldn't get the new keywords to sync up to my flickr page, something I'd been able to do previously. I hit the broadcast sync button, but it is not ad
-
Why do I get "Missing signed entry" error?
I am distributing jar files that have been signed (by thawte). Sometimes, a certain build will throw up a "Missing signed entry" error when I try to launch the jnlp file. Why does this happen? I used add/remove programs (on Windows) to delete the cac
-
HttpServletRequest getReader read part of the post data
Hi all, HttpServletRequest getReader read part of the post data (even though the conten length is bigger). It stops after 48k (49,152 bytes) int sizeOfBuffer = 100; char[] cbuf = new char[sizeOfBuffer]; StringBuffer inputBuffer = new StringBuffer();
-
I have Windows 8.1 and tried to update Muse using my CC account, during this process the programme completely disappeared from my system. In the end it failed stating: Exit Code: 7 Please see specific errors below for troubleshooting. For example, E
-
Converting Poral Service to Web Service
Hi Can any one help me in converting a portal service to a web service or point me to a link where i can get some documentation on the same. Rgds NagaKishore