access a type of user to another schema (collection)
HelloIn my scheme of production, I created a user type:
CREATE TYPE T_my_row OID '4711'
IS OBJECT(field1 varchar2(10), field2 number(10));
/
CREATE TYPE TT_my_table OID '0815'
IS TABLE OF T_my_row;
/
I use the TT_my_table collection as a parameter of a procedure type.Intended to test, I would like to call this procedure from another schema (SQL-developers UT repository). This is why I need 'access' to the collection type of this test pattern.
What are the rights I give to achieve?
Good bye
DPT
Edited by: T.PD the 29.06.2010 10:40
Dear T.PD,
I think that under query will work for you;
SQL > GRANT EXECUTE, DEBUG ON TYPE_NAME TO SCHEMA_NAME.
It will be useful,
Ogan
Tags: Database
Similar Questions
-
When I try to copy the files from the user to a new user, the corrupt user is inaccesable when I click it. I'm another user of the admin access. I restarted the computer. Does anyone have any suggestions?
I encountered this problem immediately after removing an accessory program Apple ITunes that I have not used. I did it to clear up disk space. This has happened also when I got a low disk space to open the user. I could open another admin user account and free up enough disk space to open the user. When I try to connect to the corrupt user, it connects me to another user called (name.value of initial user followed a string of alpha-numberic characters)
Thank you
Hello Cscoler,
Corruption of the profiles can be caused by malware, by repeated interruptions due to file system corruption and bad hardware issues. Did you run any malware removal software?
When you created a new user account, have you configured it as an administrator? Do you receive error messages when you try to open a session in the corrupted profile, such as "the system has recovered from a serious error or user profile is corrupted"? When you log in the corrupted profile, are you able to view your data?
Thank you
James
-
With the help of the TYPE operator % on objects in another schema
Suppose I have the following architecture:
* A schema called APP_SCHEMA (for example), which contains all applications level PL/SQL packages that contain a business application logic
* A data schema, called DATA_SCHEMA (for example), that contains the schema objects that are referenced by the PL/SQL in APP_SCHEMA
Suppose I create a simple procedure like this in the APP_SCHEMA:CREATE OR REPLACE PROCEDURE test_proc(pVar IN DATA_SCHEMA.TABLENAME.TABLECOLUMN%TYPE) AS BEGIN DBMS_OUTPUT.PUT_LINE(pVar); END; /{code} For this simplified procedure I get the following error: {code:java}1/25 PLS-00201: identifier 'DATA_SCHEMA.TABLENAME' must be declared{code}So, my basic question is how do I use the %TYPE operator to reference objects in another schema? Other Pertinent info: * Windows Server 2003 * Oracle Database 10gR2 (10.2.0.3) Thanks!
Its almost certainly a problem of privileges.
I can create a test procedure based on the same script that compiles successfully.
Verify that your user can access the table. Might need to have to grant access directly, rather than in a role.
Published by: Keith Jamieson on August 25, 2008 17:51
typo fixed -
Access to the content of the tables of a schema into another schema
Hello
I have my doubts... Suppose I have a user called DEMO and it has tables. now I have another user called DEMO1
my doubt is. How can I get the DEMO user tables in DEMO1. If updating the table DEMO1 which should reflect
DEMO user. Help me...Dear friend,
You can consult the tables of a schema in another schema using the following steps.
(1) you must grant privileges on table demo Demo1, here's the statement to do so.
Grant Select, update on the table table_name to Demo1
(2) Create in Demo1 for the table_name demo, the suite is about education to do.
SYNONYM to CREATE or REPLACE table_name for Demo.table_name;
(3) do the Update statement on the table table_name in Demo1. Updated these results reflected in demo when you post the update statement in Demo1.
Hope that gives you an idea.
Kind regards
Ravi Kumar Ankarapu. -
transfer tables belonged to a user to another user schema
Hello
in 10 G R2
in DB control how to transfer the tables belonged to a user to another user scheme?
Thank you.It isn't a way that I know of.
You can study using EXPDP/IMPDP or EXP/IMP.
-
Grant execute on a package in another schema of users
I need the ability to grant enforcement on a package in another schema of users...
i.e. User_1 a Package pkg_package1
User_2 should be able to grant execute on user_1.pkg_package1 to other users.
I know you can give any procedure (I think) to user_2 and - it must be able to do.
The problem is - I don't want user_2 can grant execute on any procedure in the database - just a diagram of user_1.
Is there a way to do this?Hello
FOT individual packages, you can tell
GRANT EXECUTE ON pkg_package1 TO user2 WITH GRANT OPTION;
Alternatively, you can write a procedure in the schema of user_1 which grants privileges and give privileges to EXECUTE user_2 on the procedure.
-
Re: "insufficient privileges" error when you run the Java stored procedure in another schema
I get an "insufficient privileges" error when you run the Java stored procedure in another schema, see details below. I don't know what are missing privileges (I already granted the EXECUTE privilege), suggestions? -Thank you.
Define a simple java class and deploy it as a Java stored procedure to test:
Schema: User1
test of the package;
public class HelloWorld {}
public HelloWorld() {
Super();
}
public static String Hello () {}
Return "HELLO";
}
}
CREATE or REPLACE FUNCTION HELLO RETURN VARCHAR2 AUTHID CURRENT_USER AS LANGUAGE JAVA NAME ' test. HelloWorld.hello () return java.lang.String';
Grant execute on USER2 HELLO
Test the Java stored procedure through the PL/SQL function call (in the same schema):
Schema: User1
SET SERVEROUTPUT ON
DECLARE
v_Return VARCHAR2 (200);
BEGIN
v_Return: = User1. HELLO;
DBMS_OUTPUT. Put_line ('v_Return =' | v_Return);
END;
anonymous block filled
v_Return = HELLO
Test the Java stored procedure through the PL/SQL function call in a different pattern:
Schema: USER2
SET SERVEROUTPUT ON
DECLARE
v_Return VARCHAR2 (200);
BEGIN
v_Return: = User1. HELLO;
DBMS_OUTPUT. Put_line ('v_Return =' | v_Return);
END;
Error report-
ORA-01031: insufficient privileges
ORA-06512: at "User1." HELLO', line 1
ORA-06512: at line 4 level
01031 00000 - "insufficient privileges".
* Cause: An attempt was made to change the user name or password
without the privilege appropriate. This error also occurs if
trying to install a database without the need for employment
access privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
If the user has been granted the privilege necessary for a higher label
that the connection is active.
* Action: Ask the database to perform the operation or grant administrator
the required privileges.
For users Trusted Oracle get this error, well that granted the
the privilege that is suitable for the top label, ask the database
administrator to grant the privilege to the appropriate label.
You have created the function with AUTHID CURRENT_USER, which means that the function is executed with the rights of the applicant (but not with the rights of the author). This means that the applicant must have grants (directly or through roles) on all used/accessible objects in the service. In your case the user USER2 has not granted with EXECUTE on the class/source Java test. Class HelloWorld, causing the ORA-01031 exception. You create service without AUTHID CURRENT_USER (i.e. with AUTHID DEFINE, which is by default, if you do not have a specific reason to use AUTHID CURRENT_USER) or grant EXECUTE on JAVA test SOURCE. Class HelloWorld to User2.
Dimitar
-
How to share data in the tables ' User_ * ' with another schema
I want to share the data in the table WHERE USER_SEGMENTS with another schema. If I create a view and grant select on the view, when the other schema queries the view data are identical to themselves querying the SYS.user_segments table directly.
My guess is that the SYS.user_segments table is a view based on the current user.create view sys_user_segments as select * from sys.user_segments; grant select on sys_user_segments to A;
Is there a way to share such data without creating a copy of the table?
Oracle: 10g
Thank youIf the ADMINISTRATOR is concerned about B access to DBA_SEGMENTS (or by creating DBA_SEGMENTS views that belongs to a user who has access on top and then grant access to this view of B), it seems pretty crazy allow that kind of database connection.
If you create a database link belonged to B that connects to A, B is, in substance, given any privilege that has exercises. But it is done in a very, very dark which will no doubt be neglected in the future when someone gets a check. He'll be sitting here to wait that someone (accidentally or intentionally) Decides to exploit the security hole and do something that is causing a problem (by removing all data from a table, grabbing all the sensitive data in a table, etc.). Risks of this almost certainly far, far* far * outweigh the risks of even leaving B to obtain direct access to DBA_SEGMENTS.
Justin
-
grant for dbms_metadata.get_ddl on objects in another schema
In Oracle 11 g R2, I use dbms_metadata.get_ddl to get the DDL to another schema, but I got an error:
ORA-31603: object not found 'IS_SNMP_DATA' of type TABLE in the schema "TXV.
that grant is necessary for this package to get from another schema ddl?
I tried with authid current_user (that I found on google), but no result...See the following example:
SQL> create user us_one identified by us1; User created. SQL> grant connect, resource to us_one; Grant succeeded. SQL> create user us_two identified by us2; User created. SQL> grant connect, resource to us_two; Grant succeeded. SQL> conn us_one/us1 Connected. SQL> create table t (id number); Table created. SQL> grant select on t to us_two; Grant succeeded. SQL> conn / as sysdba Connected. SQL> grant execute on dbms_metadata to us_two; Grant succeeded. SQL> conn us_two/us2 Connected. SQL> select dbms_metadata.get_ddl('TABLE','T','US_ONE') from dual; ERROR: ORA-31603: object "T" of type TABLE not found in schema "US_ONE" ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105 ORA-06512: at "SYS.DBMS_METADATA", line 2806 ORA-06512: at "SYS.DBMS_METADATA", line 4333 ORA-06512: at line 1 no rows selected SQL> conn / as sysdba Connected. SQL> grant select_catalog_role to us_two; Grant succeeded. SQL> conn us_two/us2 Connected. SQL> select dbms_metadata.get_ddl('TABLE','T','US_ONE') from dual; DBMS_METADATA.GET_DDL('TABLE','T','US_ONE') -------------------------------------------------------------------------------- CREATE TABLE "US_ONE"."T" ( "ID" NUMBER ) PCTFREE 10 PCTUSED 40 INITRA SQL>
-
reading of the objects in another schema schema
My requirement is to create a schema and grant privileges to read all objects in another main schema, including the functions and procedures. creating a role and assigning it to the schema will read or select the tables, but she will not allow the user to see the description of a function, or a procedure. can you please tell me what are my options. Thank you.Hello
Yes you can GRANT SELECT privilege to allow access to Tables / views, and GRANT EXECUTE privilege on the procedures in another schema.
You can also CREATE SYNONYM of these Tables in order to hide their location. There is a way to ensure the transparency of the location, otherwise use views or procedures.
These links can give you a few tracks on the transparency of the situation and manage privileges:
http://download.Oracle.com/docs/CD/B28359_01/server.111/b28310/ds_admin006.htm
http://download.Oracle.com/docs/CD/B28359_01/network.111/B28531/authorization.htm#DBSEG004
Hope this helps.
Best regards
Jean Valentine -
Hello.
I have a question about how to select the type of user account for each user account.
I read that if I type 'control userpasswords2' term, it will bring up a window of hidden user accounts. In this window, select a name of the user account and click property, click on membership group and it will show all the type of account you can purchase (including the standard user, restricted user, the other who has many other types)
Here is the link I read
http://www.exnol.com/globally-control-and-change-all-users-passwords-in-Windows
Let's say my computer is XP pro and it is in the home (not domain joined ) working group. Am I able to set these types of accounts to my user account using 'control userpasswords2' just as I explained above?
I was wondering because I read in the microsoft help article or somewhere that it indicates that the computer must be on the field to be able to choose the type of account by using this process, I explained, and one account type you can choose where your computer is located in the Working Group's account admin or limited using the control panel then click on accounts of users... but other said it should not be on the field... I got confused.
I would like to try it myself, but I don't have XP pro computer with me right now, I'd appreciate it really if someone could help me with the answer.
Hi greenyy,
If you are the administrator of the machine Windows XP Professional, you can use the command 'control userpasswords2' and access the list of user accounts and change the type of account.
You need not necessarily be on a domain, however, it may not work for some types of user accounts on a working group.
A test, you can try to change the type of account for user accounts & check if it works.
Reference: To change the type of user account
Hope the helps of information. Please post back and we do know.
Concerning
Joel S
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
Change the type of user account is not updated
I changed my account type standard user principal and account invited to administrative yesterday. Now, I want to change it back but is not allow me to change my primary administrative standard. I can click on it, but it is not updated. What should I do to not having guest account my administrative account?
Hello
You receive an error message or code everything by trying to change the type of account?
Note: Guest account cannot be defined as administrative account. There the option only to turn on or off.
Reference: Change the type of user account
http://Windows.Microsoft.com/en-us/Windows-Vista/change-a-users-account-type
If there is an another account on your computer, and then log on to the administrative account and then try to change the account type.
Method 1: Activate the default Administrator account, and then try to change the type of account and check if it helps:
Enable and disable the built-in Administrator account
http://TechNet.Microsoft.com/en-us/library/dd744293 (WS.10) .aspx
Method 2: If the above mentioned method does not work then try the system restore:
http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore -
I have only access to the folder users and subfolders. Everything I tried was "access denied." I can't get to the root of c:.
Hi, Scrivmark
The default C: drive system is not intended to access directly by users and therefore users have restricted access to its root in the premeditated or premeditated damage prevention vital system files. If you are an administrator you can allow full access to your account to all or specific files on drive c (including a root folder) by editing its ' authorization of the lists by right-clicking on a file and choosing "Security."
If you are not an administrator, you should ask another user whose account is Administrator (or equivalent) privileges to access the interesting files to your account.
In both cases, you must understand damage system files, you can do.This suggestion is the intention that your computer is virus-free.
-
Syntax to create the Type of registration at the schema level.
Hello
Could you let me know the syntax to create the type of registration at the schema level.
I tried to help below.
create or replace
TYPE "SR_TBL_TYPE" AS THE SR_REC_TYPE TABLE;
----------------------------------------------------------------------------------------------------------------
create or replace
BODY OF TYPE 'SR_REC_TYPE' AS
CONSTRUCTOR FUNCTION SR_REC_TYPE RETURN SELF AS RESULT
IS
BEGIN
task_status: = NULL; -jtf_task_statuses_tl. Name % type
task_type: = NULL; -jtf_task_types_tl. Name % type
jt_new_res_id: = NULL; --jtf_task_assignments_audit_b.new_resource_id%type
jt_source_name: = NULL; --jtf_rs_resource_extns.source_name%type
jt_sch_start_date: = NULL; -VARCHAR2 (50)
jt_task_number: = NULL; --jtf_tasks_b.task_number%type
jt_appointment_scheduled_agent: = NULL; --fnd_user.user_name%type
cs_old_prblm_code: = NULL; --cs_incidents_audit_b.old_problem_code%type
cs_problem_code: = NULL; --cs_incidents_audit_b.problem_code%type
qa_scenario_estimate_rec: = qa_scenario_est_type();
qa_recall_rec: = qa_recall_type();
RETURN;
END SR_REC_TYPE;
PROCEDURE of MEMBER log_sr_rec_values (SELF IN SR_REC_TYPE)
IS
BEGIN
NULL;
END log_sr_rec_values;
END;
Thank you
Could you let me know the syntax to create the type of registration at the schema level.
You do not have - record types are PL/SQL. In SQL, you create OBJECT types. It works for me:
create or replace TYPE AS OBJECT SR_REC_TYPE)
task_status varchar2(1),--jtf_task_statuses_tl.name%TYPE
task_type varchar2(1),--jtf_task_types_tl.name%TYPE
jt_new_res_id varchar2(1),--jtf_task_assignments_audit_b.new_resource_id%TYPE
jt_source_name varchar2(1),--jtf_rs_resource_extns.source_name%TYPE
qa_scenario_estimate_rec emp_table_type,
qa_recall_rec emp_table_type,
CONSTRUCTOR FUNCTION SR_REC_TYPE RETURN SELF AS RESULT
)
/create or replace TYPE of BODY SR_REC_TYPE AS
CONSTRUCTOR FUNCTION SR_REC_TYPE RETURN SELF AS A RESULT
BEGIN
Self.task_status: = null;
Self.task_type: = null;
Self.jt_new_res_id: = null;
Self.jt_source_name: = null;
Self.qa_scenario_estimate_rec: = emp_table_type();
Self.qa_recall_rec: = emp_table_type();
return;
END;
END;
/create or replace TYPE SR_TBL_TYPE AS TABLE OF SR_REC_TYPE;
See 'Definition and Implementing User-Defined constructors' in the object-relational doc
http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28371/adobjadv.htm#sthref751
-
Insufficient privileges in the creation of MV that he select another schema table
Hello
Before asking this question, I checked with similar questions in the forum, but I don't see my situation, or I'd say I'm not clear on the solution.
I got the privileges CREATE MATERIALIZED VIEW and CREATE ANY MATERIALIZED VIEW and I want to create a MV in my schema, but the MV selects data in another schema, and I had the privilege to choose this table. Here is my code
Create VIEW MATERIALISEE CPY_GL_HANDS_OFF_DTL
UPDATE THE BEGINNING WITH THE LARGEST (SYSDATE, TO_DATE ('2013.10.30.23.30.00 ',' YYYY.)) MM DD. HH24.MI. THE NEXT SS SYSDATE')) + (50519 /(24*60*60)) FULL
ENABLES QUERY REWRITE
SELECT
*
Of
User_a.GL_HANDS_OFF_DTL@dblink;
I run it, and I get ORA-01031: insufficient privileges. According to my research so far, the schema of the latter requires the CREATE TABLE privilege, even though she already had RESOURCES (which already includes the CREATE TABLE). Is this true? That's my problem. I only have read access to the table of the dblink, I can't control the privileges of this scheme. Advise please if this is the real problem?
Thanks and greetings
acquired through ROLE privileges do NOT apply in the PL/SQL name procedures
Maybe you are looking for
-
Unable to connect MacBook Pro to Apple TV
All tried, Airplay is on.
-
Can I have a day when I do not so much so the evening my circle to move the activity could be on the other end. If I turn on the app to drive and choose "Other formations" and then still be lying on the couch, but after 15-20 minutes my circle of mov
-
Can I change the video card on Qosmio G30 HD DVD
Hello I want to change internal video card on my toshiba.I have another laptop manufacturing and card video is a nividia GeForce GO 7900 GS.On my toshiba today I have a GeForce GO 7600. Is - this posibel to change the graphics card with that on my XP
-
foto ontdubbelen ik dat hoe doe?
Hoe ontdubbel ik foto'; s in mijn foto 17000 ca van bestaand?
-
Slide blackBerry Smartphones Blackberry Torch battery
I'm at my wits end. I downloaded the new operating system and since then my battery sinks within 4-5 hours. Is this normal? How can I fix it? Help, please Thank you