Error in Accessing another Schema

When i access table in another schema then the table is accessed but when i execute query it returns the following error Using PL/SQL Developer
Access Violation at address 606B90F0 in module 'ORACLIENT9.Dll'.Read the 00000000
What this error is and what the solution if anyone can help

i have installed oracle PL/SQL developer installed on my machine and i m using the tns file of oracle database in which i have connection of different database through which i m accessing
ok
the query is
select *
from arl.hrs_employee_personnel a
where a.employee_id not in
(select d.pi300_emp from pi300emp d where d.hb101_comp_cd = '01')
and a.employment_status in ('000', '006')
and a.employee_id not like '3%'
i have tried it also in sql plus ok
the error is
OCI-22303

Similar Messages

  • Grant schema to be able to access another schema"

    how can i grant another schema to be able to access another schema
    Edited by: adf009 on 2013/02/15 5:07 PM

    adf009 wrote:
    i want to access one schema object through another schemaGRANT SELECT ON SCHEMA_A.EMP TO SCHEMA_B.
    It's in the SQL Reference Manual.

  • Query in Stored Procedure accessing another schema

    Hi - this is going to sound kind of strange and even i can't come up with an explanation. My JDK 1.1.7 applet uses a type 4 JDBC thin driver (i think v 8.04.06) to access an Oracle 7.3.4 database. We also have a link with full grants and synonymns to another Oracle schema in an Oracle 8 database. Has never been a problem - we can access anything we need to through queries or stored procedures from either of these databases.
    So, i have a new stored procedure that needs to be called through JDBC that queries a table in the Oracle 8 database. For some reason, whenever i execute this stored procedure from java it hangs on this query and the instance needs to be restarted. If i execute that same stored procedure from SQL Plus, it runs fine.
    I tried a little test. I put a straight query in my java code that goes directly to that table (no stored procedure involved). It runs great through java!
    is this weird or what? my dbas have checked out all privelages and it seems that i have access to everything i could possibly need.
    If anyone has any suggestions i would love to hear them.
    thanks for your help...
    Lori - [email protected]
    null

    You can only access an object in another user's schema if you either:
    (a) Specify the 'other' schema name explicitly: SCHEMA.OBJECT
    (b) A synonymn has been created to access the object: CREATE SYNONYM OBJECT FOR SCHEMA.OBJECT.
    The user requiring the synonym should create it, or the user owning the object can create a PUBLIC synonym, if they have the authority.
    To check my hypothesis, try typing 'DESCRIBE procedure_name' from SQL*Plus as both users.

  • Access another schema object

    In my application,there is a database connection to a schema and and I have created entities and views from the available tables in that schema.According to my requirement, I need to access a table from a different schema.
    How can I do that?
    Please help
    Regards
    SK

    Specify the schema prefix in the SELECT query.
    SELECT * from OE.CATALOG

  • Granting Read Only Access to user in another schema

    Oracle Database 10g
    Red Hat Enterprise Linux Server release 5.3
    We are requested by a developer to grant his account read only access to TABLES, VIEWS, INDEXES, SEQUENCES, FUNCTIONS, PROCEDURES, PACKAGES, TRIGGERS, JOBS of another schema.
    I know granting read only access to Tables and Views. But is it possible to grant READ ONLY access to other mentioned objects ? How to do it ?
    And some views are in INVALID status.
    I tried to compile them using alter view owner.viewname compile;
    But got this ---- Warning: View altered with compilation errors.
    Those views are still in INVALID status. And then I tried to use utlrp.sql . Same result.
    Then I used the following
    SELECT TEXT FROM DBA_VIEWS WHERE VIEW_NAME='view-name';
    select REFERENCED_NAME,REFERENCED_TYPE from dba_dependencies where name='view-name';
    It turns out some reference types are non existent.
    Does that mean DBAs cannot do anything about this ?

    Nilton wrote:
    We are requested by a developer to grant his account read only access to TABLES, VIEWS, INDEXES, SEQUENCES, FUNCTIONS, PROCEDURES, PACKAGES, TRIGGERS, JOBS of another schema.
    I know granting read only access to Tables and Views. But is it possible to grant READ ONLY access to other mentioned objects ? How to do it ?
    TABLES -> YES grant SELECT
    VIEWS -> YES grant SELECT
    SEQUENCE -> YES grant SELECT
    INDEXES -> There is no read access for indexes...indexes are put on tables and a user who has read access on tables can read the index as well.
    FUNCTIONS / PROCEDURES / PACKAGES -> I am not sure what you mean by read access on procedures, functions and packages. You may grant EXECUTE privilege on these.
    TRIGGERS -> there is no read access on triggers required. They are implemented on tables for a DML event. If the user has DML access he has the execute access on the trigger as well.
    JOBS -> I am not sure what to read from Jobs.
    And some views are in INVALID status.
    I tried to compile them using alter view owner.viewname compile;
    But got this ---- Warning: View altered with compilation errors.
    Those views are still in INVALID status. And then I tried to use utlrp.sql . Same result.
    Then I used the following
    SELECT TEXT FROM DBA_VIEWS WHERE VIEW_NAME='view-name';
    select REFERENCED_NAME,REFERENCED_TYPE from dba_dependencies where name='view-name';
    It turns out some reference types are non existent.
    Does that mean DBAs cannot do anything about this ?There are compilation errors in the Views. e.g. the view may be referring to a table which doesn't exist etc.
    Unless you fix the error in the view you can't compile it and male it valid. Fix the view errors. If objects are non existing create them or refer to view to some where else.
    If the nonexistent objects were mistakenly dropped, or the data file which contained those objects was dropped, no matter what was the reason for that object to be gone a DBA can bring it back if he is a well prepared DBA and has setup his database for such kind of disasters.
    Now tell us why those objects are non-existent ? were they meant to be gone ? or they were dropped mistakenly?
    Now here are my guesses:
    If they were meant to be gone then probably the views definitions need to be adjusted not to refer them anymore.
    If they were mistakenly dropped then:
    Do you have them in recyclebin? (only tables) if YES just FLASHBACK TABLE <<tablename>> AS BEFORE DROP.
    Is your database has Flashback database ON? if YES FLASHBACK DATABASE until 'time/scn just before the object was dropped'
    Do you have backups and your database is running in ARCHIVE LOG mode? if YES perform an incomplete recovery using RMAN.

  • How can i access all the objects of one schema from another schema

    Dear All,
    How can i access all the objects(Tables,Views,Triggers,Procedures,Functions,Packages etc..) and do the modifications of one schema from another schema (Without using synonyms concept).
    Thanks in advance,
    Mahi

    First of all, synonyms only help you easy reference the object. It doesn't have any implication of object privilege.
    As long as you have proper privilege on target object. You can access it with or without synonyms.
    Assuming you have proper privilege of objects, you can use following command to assume schema owner.
    ALTER SESSION SET CURRENT_SCHEMA = Schema_owner

  • Problems publishing a web-access on Sharepoint: Error when modifying list schemes

    Good afternoon.
    I have an application built with an access database with several forms and web macros which is published on Sharepoint 2010. Through this application - not too big not too complex (ca. 10 tables / less than 2000 records at most) - I receive updates
    that are loaded into external applications, mainly excel worksheets, ms project files and so on.
    I have been going through the cycle of developing and publishing new versions of the application on the same site for more than a year; suddenly, from severeal weeks ago on, I started receiving the following error affecting random tables (not always the
    same) which crashes the compilation and publishing:
    "Error when modifying lists schemes. Changing name to "ID" field on list XXXX failed"
    And each time the list is different. And of course I am no trying at all to change the name of any ID field !????
    Any clue of what might be happening?
    Thank you

    The article might have missed the step where the blogger might have missed the step. Read the following article and which confirms that you cannot use user controls in SB solutions.
    http://msdn.microsoft.com/en-us/library/gg615454.aspx
    If you are trying to build this in SharePoint 2013 then you must know that custom code is deprecated from SB solutions.
    Deprecation
    of Custom Code in Sandboxed Solutions
    For SP 2013 your best bet is to create an APP or create a farm solution (God please forgive me). :)
    Amit

  • How to defer constraint of one schema from another schema

    Hi All,
    I am having a requirement of migrating data from one schema(SCHEMA_A) to another schema(SCHEMA_B). So I tried to implement the same using PL/SQL.
    Because of foreign key contraint while migrating child table, Oracle throws an error message like parent key not available.
    So I tried to set the all contraints to deferred and after completion of migration i planned to set all the contraints to immediate.
    But Here I am executing the procedure from schema(SCHEMA_C) which has rights to access SCHEMA_A and SCHEMA_B.
    How could I able to defer all the constraint in SCHEMA_B from SCHEMA_C?
    Thanks in Advance,
    Antany.

    Yes,
    You could run something like this, for foreign keys:
    BEGIN
      FOR cur_rec IN (SELECT table_name, constraint_name FROM DBA_CONSTRAINTS WHERE OWNER = <owner> AND CONSTRAINT_TYPE = 'R' )
        LOOP
          EXECUTE IMMEDIATE 'ALTER TABLE <owner>.' || cur_rec.table_name || ' DISABLE CONSTRAINT ' || cur_rec.constraint_name;
        END LOOP;
    END;
    /

  • Cannt execute stored proc of one schema in another schema from java app.

    I am posting my problem in this forum as i i though it could be server-independent.
    I am working on apache tomcat and spring framework with Oracle db (schema/user A)
    We access oracle db from our java application by setting jndi and works fine.We have sqlstatements, stored procs and functions all run fine.
    Now we create a role (DBROLE) with all permissions to that original db schema/user(A) . We created another empty schema B and assigned that role(DBROLE) to that user B.
    (We grant all kind of permissions on tables/packages of schema A to user role DBROLE and also created synonyms)
    Intentions are: to access the schema A though schema B from application and avoiding direct access.
    In our spring application, we replaced database-settings with schema B.
    Things work fine: When its plain SQL statement is run from Java code but Stored proc wont run and we get
    'Wrong num of arguments/data types' error.
    Also all stored procs are in packages.To execute stored proc in java code, we use SimpleJdbcCall.
    I also checked run stored proc from schema B and its works. Only from web app, it doesnt work.
    Please suggest,what should be done to make this working or if there is other alternative.
    Thanks

    Instead of importing a scema in another schema specifiy the schemas in the external-schemaLocation property.
    SAXParser saxParser = new SAXParser();
    saxParser.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation", "xmlschema1.xsd, xmlschema2.xsd");

  • VPD: Problems calling a function on another schema

    Here's the setup:
    I've create a schema called "AllYourBase".  It contains all of my tables, views, functions, procs, etc.
    These tables are protected by a DBMS_RLS policy.  The policy uses a function to define its predicate which looks like this:
    create or replace function tous_filter(schemaName varchar2, tableName varchar2)
    return varchar2 is
    begin
    return  'account = sys_context(''USERENV'', ''CLIENT_IDENTIFIER'')';
    end;
    All of the tables have an account column for this to work.  So far, this is a pretty basic VPD setup.
    I have other db users that login and view data in the "AllYourBase" schema.
    So when "ArbyLong" logs in, I set sys_context('USERENV', 'CLIENT_IDENTIFIER') to "ArbyLong", and when he runs a query, he gets back his rows.
    Now, "AllYourBase" has several functions.  Here's a very contrived, simplified example of one (but it illustrates the issue I'm running into just fine):
    create or replace function getUserID
    return integer is retval integer;
    begin
    select user_id into retval from users;
    return (retval);
    end;
    When "ArbyLong" runs the equivalent query (select user_id from users), he gets back the one row where the account column is equal to "ArbyLong", as expected.
    But this getUserID function lives in the "AllYourBase" schema.  And here's the catch: I've made "AllYourBase" exempt from the policies by running "grant exempt access policy to AllYourBase".
    When "ArbyLong" runs the function getUserID, it runs in the "AllYourBase" schema and pulls ALL of the rows from the users table.
    This particular function simply errors out (since it's only expecting one row), but other functions are returning data that the logged in user shouldn't see.
    So even though there are policies in place, by calling a function on another schema who is exempt from the policies, a user is able to see all returned data and not just the rows they are normally limited to.
    Ultimately my question is this: Is there a way to enforce VPD policies when a user calls a function that lives in another schema?
    Doing my own research, the answers I've come up with are:
    * Don't use "grant exempt policy"!
    * Put the function directly into the users' schemas.  So "ArbyLong" would have his own getUserID function that would look at the "AllYourBase" users table.
    I'd rather not do either of these, so does anyone have any other ideas?  If it turns out these are the only solutions, then I'll go with one of them.
    Thanks!

    Need more info. Are you using a ViewStack or other navigator container, and trying to access a view that has not been displayed yet, due to deferred instantiation?
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training and Support Services

  • Need a quick answer - Inserting into a target located in another schema

    on same instance. pls reply.
    OWB msg is:
    Loading of data across database link is not supported. Deploy this mapping within the same database instance as the actual target and remove the database link access specification from the physical configuration of this data target operator.
    What I am doing involves placing data into a table in another schema - error tracking.
    OWB 9.2.0.8
    - Jojo

    I too faced the same problem when loading target tables in different databases. I dont think this can be done.
    The way out is create a table having the same structure in your target schema and load it with this mapping and then create a one to one mapping to load the actual table in the other database.
    Regards
    -Arnab

  • Calling a procedure that exist in another schema

    hello , i need your help .
    i would like to know how i can call a procedure that exist in another schema
    what i did for example calling the procedure "proc" at schema "user1" from pl/sql code
    begin
    user1.proc(parm1,parm2);
    end;
    i got the error message
    (1): PLS-00201: identifier 'user1.proc' must be declared
    (2): PL/SQL: Statement ignored
    but by calling it from SQL PLUS from the same current schema i got no errors
    exec user1.proc(parm1,parm2);
    thank you

    Assuming that the call that is failing is located in a stored procedure or stored function, the problem is likely that your user's access to the user1.proc procedure is via a role and privileges granted through a role cannot be used in a definer's rights stored procedure or stored function.
    You can verify this by disabling roles in your SQL*Plus session. If you do
    SQL> set role none
    SQL> exec user1.proc( p1, p2 );I would expect that you'll get the same error that you get in your stored procedure. Assuming that is the case, you'll need to ask the DBA to grant your user EXECUTE access on user1.proc directly not via a role.
    Justin

  • Create user who can update another schema table

    Hi,
    We have a prod system under which we need to update  the application schema by running different update statement and  create/execute function,procedure,package body. This is very easy if you use the owner schema. But i need to run those activities from another user due to some restriction. How can i do that??
    May u suggested to give update any table privilege..but this would give all the dictionary table access also.
    Is there any privilege that would allow any other user to update another schema table without using the schema name infront of the table name??
    Plss suggest

    John,
    Can we use public synonym for it ?  I don't know the security risk for it though :
    SQL> connect hr/hr
    Connected.
    SQL> select * from scott.emp;
    select * from scott.emp
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> connect scott/tiger
    Connected.
    SQL> create public synonym scotemp for scott.emp;
    Synonym created.
    SQL> connect hr/hr;
    Connected.
    SQL> select * from scotemp;
    select * from scotemp
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> connect scott/tiger
    Connected.
    SQL> grant select on emp to hr;
    Grant succeeded.
    SQL> connect hr/hr
    Connected.
    SQL> select * from scotemp;
    14 rows selected.
    SQL> show user;
    USER is "hr"
    SQL> update scotemp set ename='SMITHX' where empno=7369;
    update scotemp set ename='SMITHX' where empno=7369
    ERROR at line 1:
    ORA-01031: insufficient privileges
    SQL> connect scott/tiger
    Connected.
    SQL> grant update on emp to hr;
    Grant succeeded.
    SQL> connect hr/hr
    Connected.
    SQL> update scotemp set ename='SMITHX' where empno=7369;
    1 row updated.
    SQL> rollback;
    Rollback complete.
    SQL>
    Regards
    Girish Sharma

  • UpdateUptimeRegKey: Operating system error 5(Access is denied.) encountered. Master

    I am getting the following event every minute in the event log:
    UpdateUptimeRegKey: Operating system error 5(Access is denied.) encountered. Master
    +
    System
    Provider
    [ Name]
    MSSQLSERVER
    EventID
    17053
    [ Qualifiers]
    49152
    Level
    2
    Task
    2
    Keywords
    0x80000000000000
    TimeCreated
    [ SystemTime]
    2012-07-07T10:55:22.000000000Z
    EventRecordID
    4171276
    Channel
    Application
    Computer
    ClinSQL.clinlogix.com
    Security
    EventData
    UpdateUptimeRegKey
    5(Access is denied.)
    9D420000100000000800000043004C0049004E00530051004C000000070000006D00610073007400650072000000
    Binary data:
    In Words
    0000: 0000429D 00000010 00000008 004C0043
    0008: 004E0049 00510053 0000004C 00000007
    0010: 0061006D 00740073 00720065 0000
    In Bytes
    0000: 9D 42 00 00 10 00 00 00 B......
    0008: 08 00 00 00 43 00 4C 00 ....C.L.
    0010: 49 00 4E 00 53 00 51 00 I.N.S.Q.
    0018: 4C 00 00 00 07 00 00 00 L.......
    0020: 6D 00 61 00 73 00 74 00 m.a.s.t.
    0028: 65 00 72 00 00 00 e.r...
    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
    <Provider
    Name="MSSQLSERVER" />
    <EventID Qualifiers="49152">17053</EventID>
    <Level>2</Level>
    <Task>2</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated
    SystemTime="2012-07-07T10:55:22.000000000Z" />
    <EventRecordID>4171276</EventRecordID>
    <Channel>Application</Channel>
    <Computer>ClinSQL.domain.com</Computer>
    <Security
    />
    </System>
    - <EventData>
    <Data>UpdateUptimeRegKey</Data>
    <Data>5(Access is denied.)</Data>
    <Binary>9D420000100000000800000043004C0049004E00530051004C000000070000006D00610073007400650072000000</Binary>
    </EventData>
    </Event>
    Appears to be with the Master database. I tried changing the SA password but did not correct the problem.
    Any ideas?

    UpdateUptimeRegKey: Operating system error 5(Access is denied.) encountered. Master
    It looks like the SQL Server service account doesn't have the needed registry permissions.  This may be because the account was changed directly using service control manager instead of using the SQL Server Configuration tool.
    Try changing the SQL Server service account using the SQL Server Configuration tool to another account temporarily and then back to the desired one and restart SQL Server.  This should assign the permissions the service account requires.
    Dan Guzman, SQL Server MVP, http://weblogs.sqlteam.com/dang/

  • How to work with tables located into another schema ?

    Hi
    I have created an application named OBSERVATOIRE and a schema named "OBSERVATOIRE" for it into my db. I created into this schema a few tables like "AGENT" for example.
    Now I am designing another application named TELEGESTION located in another schema named "SIVOA" and I need to display and to use tables located into the schema OBSERVATOIRE.
    I added the schema OBSERVATOIRE into my application TELEGESTION.
    In my new application TELEGESTION, when I try to create a report with a simple request like this
    select * from observatoire.agents
    I get this error :
    Query cannot be parsed, please check the syntax of your query. (ORA-00942: Table ou vue inexistante)
    What should I do in order to work with tables in another schema ?
    Thank you very much
    Christian

    Vajrad and Dan,
    Thank you very much for your suggestions.
    At this point I am wondering if It would be better for me to change the way I began work.
    These two applications will be used by the same users into an intranet (a private network of our company). I wonder if the better would be to import the tables and my application OBSERVATOIRE into the schema SIVOA and get rid of these problems of access.
    Historically, the schema SIVOA contains a lot of tables already used by a previous network.As i was beginner with APEX I created a schema "OBSERVATOIRE" to be "safe". But this schema contains a small amounbt of tables, i can easily tranfers them into the schema "SIVOA"
    But now as I see that that having two schemas is complexifying the developpement and also I am thinking to the login page, I do'nt want to force the user to login each times a switch from one application to the other, etc... I want some kind of "single sign on".
    Whad would be you advise ?
    Thank you for your time.
    Christian

Maybe you are looking for