Accessing Schemas

Hi All...
Please tell me in how many ways a user schema can be accessed....
I know 4 ways....these are..
1. user's own schema....
2. privileges granted to other users schema...
3. public objects...
4. by defining roles....
Please tell me if thr is any other way in which a user can access a schema or the objects which he's access to?
Please reply soon....
Thanks in advance...
Bhupesh...

here is an example to access a remote schema object.
you should have the tns string configured on your database to connect to the remote database.
then you can create the database link
using
CREATE DATABASE LINK local
CONNECT TO hr IDENTIFIED BY hr
USING ’local’
see the sql reference guide for compelt syntax details.
in the above sql
"hr" is the username
"hr" is the password
"local" is the connect string to conenct to the remote database.
after you have created the link
you can query in such a way.
SELECT * FROM employees@local
where "employees" is the table in the remote database and
"local" is the database link name.
similar to query you can also perform insert/update etc.
good luck.

Similar Messages

  • Not able to access schema from a Web Server

    I am not successful in using a schema from a web server. I am using j2sdk1.4.2_06, and JDOM-b10. I have been successful in accessing schema using a file path, but not with a web address. The server is Windows Server 2003, I create a virtual directory using IIS under Inetpub.
    Let the URL be: http://server/research_schema/client.xsd
    This would be accessible only on the intranet.
    Here is some XML:
    <client xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="http://server/research_schema/client.xsd">
    <execute matlab="false" commit="false" return_server_msg="false">
    <t1>
    <load_batch_data>
    <username>test</username>
    <password>test</password>
    <database>db</database>
    <get_next_batch>true</get_next_batch>
    </load_batch_data>
    </t1>
    </execute>
    </client>
      Here is the code that sets the parser to be validating, and sets the schema location, I am using JDOM:
    builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser", true);
    builder.setFeature(
      "http://apache.org/xml/features/validation/schema",
      true);
    builder.setProperty(
       "http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",
            "http://server/research_schema/client.xsd");
    doc = builder.build(source);The error I get is a JDOMException saying the client element is not found, but I know that the client element is there, after seeing the XML output to
    a file from the sender.
    I see many exmples on the internet using a URL for the schema location, and it is usually the internet and not just the intranet. So it does work for someone.
    I'd appreaciate any help.

    Steve, et. al.,
    My apologies for using this in lieu of email, but I have been searching and searching for the answer to your questions from last summer concerning the correct method for getting the local xsd file to be correctly accessed from the xml file when using JDOM to parse with validation..
    I did not see successful resolution of the thread from last summer, but this one seems closely related and suggests that you were either instructed to give up, or gave up on your own and went to the solution of placing the xsd file on a server.
    Maybe I've got my head screwed on wrong, but I, like you, would like to find a successful way to make xml processing work for a JWS-provisioned application the same as it would if I just sent the clients a big jar file and told them to unjar it to some convenient local directory. In that scenario xsi:noNamespaceSchemaLocation = "itsrighthere.xsd" works as expected.
    Can anyone tell us what the correct method of specification is in the JWS context?
    Thank you.

  • Accessing schem in sqlplus made in APEX

    i want to access schema (made in APEX) in Oracle forms developer, but i dont know what password should i provide it in oracle forms developer, or even in sqlplus environment.
    Thanks and kind Regards
    Abbas

    Hi,
    You can reset that schema password.
    You can login to workspace where schema is assigned and run in SQL workshop.
    ALTER USER your_schema IDENTIFIED BY your_passRegards,
    Jari

  • API to access schema!

    Hi,
    I need to access the schema structure(SOM) in a way similar to DOM. I want to know if there is any API available to do so.
    thanks

    I did look up those. It looks ok, the only thing is how do I get the data types for the elements? eg
    <xs:element name="someEle" type="xs:integer"/>
    I want to extract the information that someEle is of type Integer i.e get the primitive type of the element. getType() gives me if it simple type /complex ?

  • After installing bi,how to access schema

    Hello,
    I have installed OBIEE 11g on my m/c.
    I wanted to know how do i access my tables in the schema which i gave while creating the RCU and while installing bi.
    I logged in to bi
    new->analysis->create direct db request.
    Here its asking for connection pool, what i need to enter here, because while installing i didnt see any where to enter the name.
    Thanks

    Hello,
    I have connected to one user called abc_test(schema) while installing RCU.
    So there (schema)in the "other users" i saw the dev_biplatform and dev_mds being created.
    Now in the report i.e. inside the obiee i would like to connect to test_schema,
    How could i do that, so that i can write query for tables.
    Any comment on this will be useful?
    First i have just installed obiee on my machine.
    Just was reading so got to know need to create a repository.
    So went to obiee->Administartion tool->New Repository->ocl 10g/11g->but there i saw need data source name and un and pwd.
    So i went to odbc->select driver oracle 11g bi->created a data source called ds.
    Now again to adminstartion tool->New Repository->ocl 10g/11g->gave ds as data source name but don't know what to give in the un and pwd.
    Aim is to connect to test_schema schema so that i can use select query to generate reports.
    Pls help me out any url giving info will be also be fine.
    Thanks

  • Problem accessing schema in DB

    I am operating on a DB that has 82 different schemas. I have read the Underground PHP Manual, searched google and searched the forum here with no results. The setup is as follows - I have a database called 'asmp' and I need to access data from the schema 'apps' within that DB.
    I can use either connection string successfully:
    $db = "(DESCRIPTION= (ADDRESS = (PROTOCOL = TCP)(HOST = ".$this->DBhost.")(PORT = ".$this->DBport."))                    (CONNECT_DATA=(SID=".$this->DBserviceName.")))";
    $this->connection = @oci_connect($this->DBuserName, $this->DBpassWord, $db);
    Where $this->DBserviceName = "asmp"
    -- OR --
    $this->conn=@oci_connect($this->user,$this->password,$this->database)
    Where $this->database = $hostaddr."/asmp");
    If I change the 'asmp' in either statement above to 'apps' I get an 'ORA-12514: TNS:listener does not currently know of service requested in connect descriptor' error.
    I simply need to know how to switch to the 'apps' schema once I am connected to the 'asmp' DB. Seems simple but I cannot find anything on this subject. Thank you all in advance!

    Please disregard, issue fixed.

  • User privilege to access schema ?

    Hello experts ...
    how can we find the simple information about :
    for example a user scott has privilege to connect schema (like create session privilege he has) ...
    like that i want know how many schema's connect privilege he has .... in wiich data dictionary we get this information and what is query ....
    how to get this information ??????
    thankssss

    Hi,
    1) very first i wana to know how to give 1 particular schema privilege for example scott schema .. to multiple users (not only access the tables privilege) the complete connect role to multiple users.Refer to : http://download.oracle.com/docs/cd/B28359_01/network.111/b28531/authorization.htm
    2)second which users having which schema's connect privilege ..SELECT * FROM dba_role_privs WHERE granted_role='CONNECT'
    - Pavan Kumar N

  • Access schema objects without having to specify the user.

    I've just created a role in a schema and assigned some priveleges.Then I created a user and granted the role to it. But as the newly created user is not the owner of the schema when I say a simle select query like this:
    SELECT EMLOYEENAME FROM EMPLOYEES
    I get "table or view does not exist" error. Is there a way I can wirte refer to objects in this schema without having to indicate the owner. So instead of writing SCOT.EMPLOYEES I want to write just EMPLOYEES.

    >
    I get "table or view does not exist" error. Is there a way I can wirte refer to objects in this schema without having to indicate the owner. So instead of writing SCOT.EMPLOYEES I want to write just EMPLOYEES.
    >
    Create a public synonym for the object.
    CREATE PUBLIC SYNONYM EMP32 FOR SCOTT.EMP;Then you do not need to specify the schema.
    --- edited to add doc reference
    See CREATE SYNONYM in the SQL Language doc
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_7001.htm
    >
    CREATE SYNONYM Purpose
    Use the CREATE SYNONYM statement to create a synonym, which is an alternative name for a table, view, sequence, operator, procedure, stored function, package, materialized view, Java class schema object, user-defined object type, or another synonym. A synonym places a dependency on its target object and becomes invalid if the target object is changed or dropped.
    >
    Edited by: rp0428 on Apr 5, 2012 10:56 PM

  • Accessing schema-based XML table

    HI Gentlemen,
    I have a schema-based XMLtype table that I have to query in detail (e.g. via XPath). Documentation states that XML mapping is possible through some Java programming. However, I do not have XML content in a .xml file, it has already been loaded into Oracle DB (that is - non-JAXB)!
    Can anybody recommend a sample code or description of the technology?
    Thanks, regards from
    Miklos HERBOLY

    Your xml document may by represented as an column, you will got the content as other attributes.
    You will not be able to manage the structure of your document natively via the adf layer ... you may marshall/unmarshall the content into a class you build with jaxb or with castor by example (much better interface and classes).
    Note that you will be able to generate a data control from the class that represent the document and use the elements (and/or attributes) of your sturcture in your web pages by drag and drop like for columns in a table.
    Hope this help a little bit

  • Self registration - who should I be logged in as when creating the ua access schema?

    The documentation is not specific about this, I'm assuming you should login as portal30 or portal30_sso. Could someone please confirm. Thanks.

    Step 1 says to start SQL*Plus and login to the database in which the Login Server is installed. From what I have learned, the Login Server is the same as Single Sign On (SSO) Server. So I logged in as portal30_sso to create the schema for portal30_sso_ua.
    I am not an Oracle DBA and was not sure of how to create the schema. I learned that all you have to do is create a "portal30_sso_ua" user and the schema gets created automatically. That is what I did.
    I was able to get the Self Registration working for Windows NT, but only after correcting 4 bugs with the selfreg.cmd that is run in step 8. So, if you doing this on Windows, reference the following discussion thread for the bug fixes to the script:
    http://technet.oracle.com:89/ubb/Forum70/HTML/002208.html.
    Good luck.

  • Restriction to access schema objects

    Hi,
    Is it possible to give restriction that connect with the user in oracle but can not view any object. And if we will run the query
    select count(*) from user_objects; will give "0"
    but if we write a query for user created table, we can access the table data.
    Regs,
    Brij

    I try to reply.
    If you have the user A,and A have a table called A_tab.
    Then you can create an user B.
    grant select on A_tab to B.
    Through this method B only can access A_tab.
    I don't know whether it can work for you.

  • How to access  Schema(.xsd) file in the work flow

    Hi all,
    Please help me.
    regards,
    Jeevan

    Yes. You have to understand that to read a FILE (one that is seen as a file by your OS), you probably use a FileInputStream, which is a special case of InputStream. When the 'file' is not a FILE anymore, but an entry in a jar (the OS does not see it, only utilities like WinZip or jar see it), you cannot use a FileInputStream, but some other InputStream. Which one? The one returned by getResourceAsStream(), whatever this is (you don't really care). And all the rest will nicely fall into place.

  • How to know last access date for the schema's

    Dear all,
    could u plz tell me How to know last access date for the schema’s
    Regards,
    Srinivasa rao.P

    Srinivas,
    could u plz tell me How to know last access date for the schema’s
    In Oracle, we don't access schemas but schema objects.And this informationis not kept anywhere persistantly.As Amit also mentioned,if you do need it,you have to enable Auditing.
    Aman....

  • Accessing a specific schema with JDBC

    My database has several schemas and I'm trying to access a specific schema using the following code snipet:
    Class driverClass = Class("oracle.jdbc.driver.OracleDriver");
    Connection jdbcConnection = Drivermanager.getConnection("jdbc:oracle:thin:@datastore:1527:dbname","username","password");
    IDatabaseConnection connection = new DatabaseConnection(jdbcConnection);
    Is there a way to access schema mike27 on dbname? I keep getting the schema pointed to by the public synonyms.

    Hi,
    I would think that you have to override the doDML method in ADF BC to then insert/update the values in the scott schema. For this the main schema must have privileges on teh Scott schema to perform the operation
    Frank

  • Access 2000 schema export failing

    I'm running Windows XP Sp2
    MS Access 2003 (DB is 2000 file-format)
    Exporter for Microsoft Access Release 10.1.0.4.0
    I just downloaded and tried to run the omwb access export utility, and it keeps giving me the following error whenever I click "export database schema":
    "error #2516 - XMLExporter - Method of 'Run' of object '_Application' failed.
    I tried deleting all of the _Oracle references, and the "exporter" reference in VB, left over after it screws up, and I even tried converting the database to 2003 format (and tried the 2000, 2002, and 2003 converters on both versions), but no luck. Any suggestions?

    If you have MS Access 2003 installed, I think the mdb file should also be in 2003 format. Also which exporter are you running? It should be omwb2003.mde
    Also checkout a previous post, with a similar issue and the suggestions Hilary made
    Errors when exporting Access schema
    Donal

Maybe you are looking for