Access other schema object from connection

Hi;
from the dbconnection, how can I access other schema object?
Thanks

Hi,
I don't know if I understand correctly but if you mean the scenario you connect to the database as SCOTT and you want to map table EMPLOYEES from HR schema, you can do it within wizard and in read only view object you
use schema name as prefix like select * from HR.EMPLOYEES. If you mean something else please describe it more.
regards,
Branislav

Similar Messages

  • Access other schema's table without specify the schema name

    Hi, need ur help again,
    I would like to access other schema's table without specify the schema name. for example,
    select * from hr.jobs;
    What priviledges i need if i want to select the data in this way:
    select * from jobs;
    Thanks!

    Public synonyms have their place, but are not generally a good idea as they will cause conflicts with other schemas and applications. Another think that you can do is issue the
    ALTER SESSION set CURRENT_SCHEMA = schema;
    The CURRENT_SCHEMA (8i and above) parameter changes the current schema of the session to the specified schema. Subsequent nqualified references to schema objects during the session will resolve to objects in the specified schema. The setting persists for the duration of the session or until you issue another ALTER SESSION SET CURRENT_SCHEMA statement. CURRENT_SCHEMA is a session parameter only, not an initialization parameter.
    This setting offers a convenient way to perform operations on objects in a schema other than that of the current user without having to qualify the objects with the schema name. This setting changes the current schema, but it does not change the session user or the current user, nor does it give you any additional system or object privileges for the session.

  • Cancelling the privaleges of the user accessing the schema objects ???

    Hi,
    I have given privilages to the user to access my schema objects(tables). Can i cancell the privilages of the user of accessing my schema objects(table) which i granted them ???
    Thank you !!!

    Hi,
    If you gave a privilege or role to a user using GRANT, you can take it away using REVOKE.
    For example:
    REVOKE  SELECT ON my_table FROM user_name;un-does the privilege given by
    GRANT  SELECT ON my_table TO user_name;

  • Nwdi-managed access of pcd-objects from java web dynpro

    Hi,
    im am trying to access portal pcd-objects from a java web dynpro component (namely getting and setting personalized iview properties). for locally managed web dynpro components this works fine with the code below.
    when i try the same with a nwdi managed web dynpro component i run into problems regarding references to used dcs. for instance, i need to reference used dc SAP_JTECHS/tc/epbc/pcm/adminapi/java because the build needs tcepbcpcmadminapijava.jar which is inside the mentioned dc. but access permissions of this dc don't allow the dependency. when i try to "add used dc ..." in nwds i get the error message: illegal dependency: access list does not allow use of ...
    has someone any solution for this problem? are there other ways of accessing pcd-objects from java web dynpro (nwdi managed!)?
    thanks
    heiko
    private static void savePersonalizationData(String value) {
         try {
              IAttributeSet attributeSet = (IAttributeSet) getIview(IVIEW);
              attributeSet.putAttribute(ATTRIBUTE, value);
              attributeSet.save();
         } catch (Exception e) {
    private static Object getIview(String pcdPath) throws Exception {
         Hashtable env = new Hashtable();
         env.put(
              com.sap.portal.directory.Constants.REQUESTED_ASPECT,
              com.sap.portal.pcm.admin.PcmConstants.ASPECT_SEMANTICS);
         env.put(
              Context.SECURITY_PRINCIPAL,
              WDClientUser.getCurrentUser().getSAPUser());
         env.put(
              IPcdContext.PCD_PERSONALIZATION_PRINCIPAL,
              WDClientUser.getCurrentUser().getSAPUser());
         InitialContext iCtx = new InitialContext(env);
         return iCtx.lookup(pcdPath);

    Hi Kust,
    To access the PCD objects the code you used looks ok for me but your main issues is related to the dc access permissions. This thread discussed about the similar issue. Please review this below thread.
    /message/979328#979328 [original link is broken]
    Regards
    Krishna Reddy

  • Unable to see other schemas in JDeveloper Connections Navigator

    When I add a database to my Connections Navigator, only one Schema is visible under the DB. I am unable to view other schemas to which the user has access.
    How do I view the other schemas?

    Yes.. Thats missing in 10.1.3.0.4(bug 5027141)
    Check forum: Cant view objects from another schemas

  • Access to schema objects

    Guys,
    I am on 10g R2 and have this requirement.
    We refresh our QA environment from PROD every day ( exp/imp and schema refresh ). App team now have a requirement where by they want to create few objects including tables every day and load those tables with static data. This in a way doesn't need to be refreshed every day.. So, could place this in another schema. But we do not want to grant access on that schema to the user.
    Alternatively, we can get them to send the us a script, that can be run as POST refresh script on completion of the refresh. But this would mean that any changes to the script will involve us copying the file, which could be a hassle.
    I am wondering, if there is better way to handle this.. BTW, the app team do not have access to the database host and we don't plan to grant it either..
    What is the best alternative ?

    You can use DBMS_METADATA and EXECUTE IMMEDIATE
    SQL> create user u1 identified by u1;
    User created.
    SQL> create or replace type u1.type1 as object (a number, b date);
      2  /
    Type created.
    SQL> declare
      2  stat varchar2(32000):= dbms_metadata.get_ddl('TYPE','TYPE1','U1');
      3  begin
      4    execute immediate replace(stat,'"U1".','');
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL> desc type1
    Name                                                        Null?    Type
    A                                                                    NUMBER
    B                                                                    DATEYou can loop on all schema objects selected from dba_objecs to manage all objects with a single statement:
    SQL> create function u1.f1 return number is
      2  begin
      3    return 0;
      4  end;
      5  /
    Function created.
    SQL> declare
      2  stat varchar2(32000);
      3  begin
      4    for r in (select object_type, object_name from dba_objects where owner='U1') loop
      5      stat := dbms_metadata.get_ddl(r.object_type,r.object_name,'U1');
      6      dbms_output.put_line(stat);
      7      execute immediate replace(stat,'"U1".','');
      8    end loop;
      9  end;
    10  /
      CREATE OR REPLACE TYPE "U1"."TYPE1" as object (a number, b date);
      CREATE OR REPLACE FUNCTION "U1"."F1" return number is
    begin
      return 0;
    end;
    PL/SQL procedure successfully completed.
    SQL> desc f1
    FUNCTION f1 RETURNS NUMBER
    SQL> desc type1
    Name                                                        Null?    Type
    A                                                                    NUMBER
    B                                                                    DATEMax
    [My Italian Oracle blog| http://oracleitalia.wordpress.com/2010/02/07/aggiornare-una-tabella-con-listruzione-merge/]

  • Not able to select the other schema objects mrtadata

    Hi,
    My function returns the matadata of a table (xml format) in the current schema but unable return output of another schema objects. I have the privileges of export full database, import full database and select_catalog_role also.
    It doesn't throw any error just throws empty xml.
    my code is...
    CREATE OR REPLACE FUNCTION TUNER.F_DBEG3(V_Schema VARCHAR2, V_Table VARCHAR2)
    RETURN XMLTYPE
    AS
    Handle NUMBER; --handle returned by OPEN
    V_First_Part XMLTYPE;
    V_Next_Part XMLTYPE;
    V_Output_Total XMLTYPE;
    V_Cnt NUMBER := 0;
    BEGIN
    DBMS_OUTPUT.PUT_LINE('START THE PROGM');
    Handle := DBMS_METADATA.OPEN('DATABASE_EXPORT');
    DBMS_OUTPUT.PUT_LINE('Open the handle');
    DBMS_METADATA.SET_COUNT(HANDLE, 1000);
    DBMS_METADATA.set_filter (Handle, 'INCLUDE_PATH_EXPR', '=''TABLE''');
    DBMS_METADATA.SET_FILTER(Handle,'NAME', V_Schema,'SCHEMA');
    DBMS_METADATA.SET_FILTER(Handle,'NAME', V_Table,'TABLE');
    DBMS_OUTPUT.PUT_LINE('Filter the required objects');
    LOOP
    DBMS_OUTPUT.PUT_LINE('Start the loop');
    DECLARE
    no_mvlog exception;
    pragma exception_init( no_mvlog, -31608 );
    BEGIN
    V_First_Part := DBMS_METADATA.FETCH_XML(Handle);
    EXCEPTION
    WHEN no_mvlog THEN
    EXIT;
    DBMS_OUTPUT.PUT_LINE ('No mv log');
    END;
    IF V_First_Part IS NOT NULL THEN
    DBMS_OUTPUT.PUT_LINE('First Count is '|| v_cnt);
    DBMS_OUTPUT.PUT_LINE('Into the process ');
    else
    DBMS_OUTPUT.PUT_LINE('Exit the loop ');
    exit;
    end if;
    IF V_Cnt = 0 THEN
    V_Output_Total := V_First_Part;
    DBMS_OUTPUT.PUT_LINE('track the metadata in xml form ');
    ELSE
    IF V_Cnt is not null and V_Cnt > 0 then
    SELECT EXTRACT(V_First_Part, '/ROWSET/ROW') INTO V_Next_Part FROM DUAL;
    SELECT APPENDCHILDXML(V_Output_Total,'/ROWSET',V_Next_Part) INTO V_Output_Total FROM DUAL;
    DBMS_OUTPUT.PUT_LINE('combining the child xml''s ');
    END IF;
    END IF;
    V_Cnt := V_Cnt +1;
    DBMS_OUTPUT.PUT_LINE(' Last Count is '|| v_cnt);
    END LOOP;
    DBMS_OUTPUT.PUT_LINE('converted into xml');
    return v_output_TOTAL;
    DBMS_METADATA.CLOSE(Handle);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    RAISE_APPLICATION_ERROR (
    -20001,
    'Please check! ' || V_Table || ' not an object'
    WHEN OTHERS
    THEN
    DECLARE
    SQL_ERROR NUMBER := SQLCODE;
    SQL_ERRMESS VARCHAR2 (250) := SUBSTR (SQLERRM, 1, 200);
    BEGIN
    DBMS_OUTPUT.PUT_LINE (SQL_ERROR || 'Message : ' || sql_errmess);
    END;
    END;
    but when i use like below i got o/p.
    SELECT DBMS_METADATA.GET_XML('TABLE','ACT_RAP_T','EMACH') FROM DUAL;
    Please tell me where iam wrong.
    regards,
    Madhavi.

    Can you let me know is this problem for the components which are in containers only..
    Yes, as Charles said, the problem is for grouping/ungrouping in containers.  If you find otherwise, please let us know.
    <br>
    This problem you will be looking for next iteration, so is it going to be Service Pack or some Hot Fix..
    Is it possible for us to know the issues which will be looked for the next iteration so that we can know what are the issues current version has so that we have the good idea..
    Correct, it will be for Fix Pack 1 (size between a Service Pack and a Hot Fix).
    We don't have a list of issues.  I don't believe it's procedure to disseminate such information.  Usually we give the information on an individual issue basis.  For instance, this issue is slated for FP1.
    <br>
    Javier

  • Accessing the same object from multiple classes.

    For the life of me I can't workout how I can access things from classes that haven't created them.
    I don't want to have to use "new" multiple times in seperate classes as that would erase manipulated values.
    I want to be able to access and manipulate an array of objects from multiple classes without resetting the array object values. How do I create a new object then be able to use it from all classes rather than re-creating it?
    Also I need my GUI to recognize the changes my buttons are making to data and reload itself so they show up.
    All help is good help!
    regards,
    Luke Grainger

    As long as you have a headquarters it shouldn't be to painfull. You simply keep a refrence to your ShipDataBase and Arsenal and all your irrellevant stuff in Headquarters. So the start of your Headquarters class would look something like:
    public class Headquarters{
      public Arsenal arsenal;
      public ShipDatabase db;
    //constructor
      public Headquarters(){
        arsenal = new Arsenal(this, ....);
        db = new ShipDatabase(...);
    //The Arsenal class:
    public class Arsenal{
      public Headquarter hq;
      public Arsenal(Headquarter hq, ....){
        this.hq = hq;
        .Then in your ShipDatabase you should, as good programing goes, keep the arraylist as a private class variable, and then make simple public methods to access it. Methods like getShipList(), addToShipList(Ship ship)....
    So when you want to add a ship from arsenal you write:
    hq.db.addToShipList(ship);
    .Or you could of course use a more direct refrence:
    ShipDatabase db = hq.db;
    or even
    ShipList = hq.db.getShipList();
    but this requires that the shiplist in the DB is kept public....
    Hope it was comprehensive enough, and that I answered what you where wondering.
    Sjur
    PS: Initialise the array is what you do right here:
    //constructor
    shipList = new Ship[6];
    shipList[0] = new Ship("Sentry", 15, 10, "Scout");
    " " " "etc
    shipList[5] = new Ship("Sentry", 15, 10, "Scout");PPS: To make code snippets etc. more readable please read this article:
    http://forum.java.sun.com/faq.jsp#messageformat

  • Accessing an UIComponent object from a .java

    Hello,
    I have i new problem here, i have fetch in the java-doc but in vain ...
    Does somebody have an example on the syntax of the code that i have to put in my java file to access an UIComponent object ?
    Thanks :-)
    In fact here is what i'd like to do:
    I would like to have in my jsp, a select list with values defined in my backing bean according to a parameter. For example, a product can have 2 status: sold out or available. If available i want the select list to have values as 1,2 and if sold out 2,3 ...

    No in fact what i want is:
    I want a select list with 4 options:
    - Choice 1
    - Choice 2
    - Choice 3
    - Choice 4
    if the status is 1, then i want my select list to contain :
    - Choice 1
    - Choice 2
    In this case, i want to remove from my backing bean, the choice 3 and choice 4
    if the status is 2:
    - Choice 1
    - Choice 2
    - Choice 3
    So in this case, i want to remove choice 4...
    I need to do that from a bean.

  • Access to ResultList objects from Labview user interface

    Hi!
    I would like to have access to TS Locals.ResultList[] objects from user interface (LV) after test report is generated.
    According to TS Help in this point I can get sequence context for the process model sequence file which posts UIMsg_ModelState_PostProcessingComplete message.
    But objects of my interest are located in context of client sequence file.
    Can I get access to Locals.ResultList objects with use provided model file context?
    Are there another ways to get wanted data?
    I have references to sequence file and execution in this point and tried to use Execution.RunTimeVariables property.
    But could not get wanted data with any supposed lookup string from this object.
    Thanks in advance for any ideas.
    Solved!
    Go to Solution.

    The general idea is the following:
    You have to keep in mind that Locals.ResultList on the model level (callstack) is simply the return value of a sequence call step (MainSequence). Therefore, you will only have this single entry [0].
    To get access to the results of the steps inside you MainSequence (and any other sublevel in the callstack), you have to dig into this callstack using this "root-property":
    Locals.ResultList[0].TS.SequenceCall.ResultList
    hope this helps,
    Norbert
    [EDIT]: Since i have not stated it: The screenshot displays the UIMessageEvent callback function in a simple oi where the manager control is the Application Manager.
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Readonly user can access other schema and change them

    Hello everybody,
    I created a readonly user like this in oracle 11g r2
    SQL> CREATE USER readonly IDENTIFIED BY readonly;
    SQL> GRANT CREATE SESSION ,CREATE SYNONYM TO readonly;
    SQL> GRANT SELECT ON SA.vCustomerService TO readonly;
    But when I connect to the database and do a select like:
    SQL> SELECT * FROM ACC;
    I get the data from that table, even if I do an update on that table it works.
    What am I doing wrong that my readonly user still has full acces on the other schema?
    Thanks in advance for your help!
    Best regards,
    GIL GOMES Dany

    Dan_lu wrote:
    Hello everybody,
    I created a readonly user like this in oracle 11g r2
    SQL> CREATE USER readonly IDENTIFIED BY readonly;
    SQL> GRANT CREATE SESSION ,CREATE SYNONYM TO readonly;
    SQL> GRANT SELECT ON SA.vCustomerService TO readonly;
    But when I connect to the database and do a select like:
    SQL> SELECT * FROM ACC;
    I get the data from that table, even if I do an update on that table it works.Check the permissions for that table -- maybe some operations on this table are granted to publc?

  • Access PL/SQL Objects from JavaScript

    I have following Problem:
    I want to have access to a pl/sql object from javascript.
    for example:
    i have a procedure with a parameter called test from Type Test.
    PROCEDURE toTest (
    test Test)
    IS
    BEGIN
    htp.script('here i want the value of test', 'javascript');
    would be really great if somebody can help me fast.
    thanks a lot
    holger

    I think it might have something to do with htmldb_Get
    Hope that clue gets you somewhere. I would love to see a working example of this for 4.02 if anyone actually has one.
    Regarding dynamic actions there's a severe limit on the number of them I believe.29? Which is one reason I avoid them and
    just do things in javascript. Personally I think javascript is actually easier to understand because one does not have to
    divide an actiivity up into several pieces. But that might just be specific to my brain, I don't know.

  • Inconsistent logic for viewing others schemes objects in browser

    A while ago when we upgraded our db's to Oracle 10 we also replaced our famous green friend for Sql Developer with our entire development crew.
    Among a few other things, people were not all that happy, seeing that they lost the desired "check for access to dba views option". But as long as we could rely on a consistent view in the "other schema" in all possible views (via table, or directly in the navigator) we could defend this way of thinking for not being able to see everything.
    But unfortunately, in the latest version "1.5.1 5440", we still see inconsistent things...
    for example :
    via browser (other users schema)
    => Indexes are not visible in the indexes branch point, but they do show up on the indexes tab for the corresponding table.
    => For the same "other users scheme", Triggers do show up in the triggers branch point, but then when we check the trigger tab for the corresponding table, they are not shown
    It looks like waiting for yet another version is no option and we will be forced to retreat to the green commercial swamp on high demand of our developers...
    Ribbit :-(

    There are still a few glitches in the queries used for certain things - I cannot remember the problem you mention with indexes being posted before (although I get the same problem with indexes visible in all_indexes not appearing on other users index node), but the trigger tab problem has been discussed before (1.5PROD/EA3/EA2/EA1: Only table owners triggers show in Table's trigger tab
    theFurryOne

  • Access other schema to check details

    I am updating certain rows (contain coupons information) in the db with a particular condition
    Before updaing i need to check whether those are in active status in an other schema which has relevant info related to coupons
    do i need nested am's to do this

    hi,
    you can use createStatement() method of AM to get any data from the database (if AM's user has db privileges to read another users tables)
    here is an example:
    http://jjzheng.blogspot.com/2010/11/run-single-query-in-application-module.html
    regards,
    Brano

  • Help with public function (accessing to addchild object from other public function)

    Hi, i have below piece of my code AS3 (Flash CS4). I would like to get access to addchild Movie Clip object (ZoltyWjazdMC) in function two() which i created by addchild command in public function one(). I know it`s basic question but i can`t find answer for it. Anybody would help me with that?
    public function one():void
    var ZoltyWjazdMC:MovieClip = new MovieClip();
    this.addChild(ZoltyWjazdMC);
    ZoltyWjazdMC.addChild(assets.ZoltyWjazd.loader);
    this.setChildIndex(ZoltyWjazdMC,1);
    ZoltyWjazdMC.alpha = 0;
    ZoltyWjazdMC.visible = true;
    assets.ZielonyWjazd.alpha = 1;
    public function two():void
    ZoltyWjazdMC.alpha = 1;
    Do i need remove "this" and change it to "stage". Is it necessary?

    Define your variable var ZoltyWjazdMC:MovieClip outside of function one(). Currently ZoltyWjazdMC is local to function one() so that function two() does not understand what it is!

Maybe you are looking for

  • Rendering not correct on first visit to page

    I am attempting to dynamically render components on a page during first visit (using request-scope beans), specifically datatable components (rendering via value-binding), as well optionally addMessage for a h:message component. The datatable renderi

  • 10.1.3 EA - AppModule Quirks in BC Diagram

    Create an AppModule in a BC Diagram, drag a View Object with an attached View Link into the Module, then drag the View Link into the View Object Instance in the Module. What's supposed to happen is that the View Link brings with it the "other end", i

  • HT5266 The screen issue. I do have a retina macbook pro mid 2013.

    The screen seems to be decolonizing, you can see it at the bottom corners, while background is black. I mean those places are getting whiter (brighter) that all the rest screen. And it seems to be extending. What could you advice?

  • Adobe Creative Suite CS3 Design Premium Student Upgrade?

    I bought a student edition of CS3 Design Premium. After purchasing it I found that I only use the Photoshop part of the Suite. Am I able to upgrade the Photoshop portion, upgrade the complete Suite or do I have to purchase a new student copy of  CS5

  • Lightroom 2 develop sliders

    Hi i bought lightroom 1.4.1 and now i'm using photoshop cs4 well lightroom 1.4.1 , i mean the develop sliders are very smooth and the cs4 (or cs3) acr is amazing blazing fast , again the sliders i tried lightroom 2 last version on different pc , very