Export of different schema

Hi all,
I am trying to take backup of a different schema from my user, I am given rights of EXP_FULL_DATABASE but whenever I try to take exp of say user USER1 from my user, it gives an error as:
C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR>EXP USER2@TEST OWNER=(USER1) FILE=C:\USER2_20MAR2010.DMP FULL=Y LOG=C:\EXP_LOG.TXT
CONNECTED TO: ORACLE DATABASE 10G ENTERPRISE EDITION RELEASE 10.2.0.1.0 - PRODUCTION
WITH THE PARTITIONING, OLAP AND DATA MINING OPTIONS
EXP-00026: CONFLICTING MODES SPECIFIED
EXP-00000: EXPORT TERMINATED UNSUCCESSFULLY
version:
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - ProductionI need solution on this WTH of EXP as well as EXPDP
Thanks for reading this post
*009*

009 wrote:
I am trying to take backup of a different schema from my user, I am given rights of EXP_FULL_DATABASE but whenever I try to take exp of say user USER1 from my user, it gives an error asYour problem has nothing to do with rights. Look at the error:
EXP-00026: CONFLICTING MODES SPECIFIEDYou say OWNER=(USER1) which means export schema USER1 only ant at the same time you say FULL = Y which means whole database. Obviously it is conflicting. Since it looks like you want to export USER1 only, remove FULL=Y
SY.

Similar Messages

  • How to restore a single table from a DP Export from a different schema?

    Environment:
    Oracle 11.2.0.3 EE on Solaris
    I was looking at the documentation on DP Import trying to find the correct syntax to import a single table from a DP Export of a different schema.
    So, I want to load table USER1.TABLE1 into USER2.TABLE1 from a DP Export.
    Looking at the REMAP_TABLE options:
    REMAP_TABLE=[schema.]old_tablename[.partition]:new_tablename
    OR
    REMAP_TABLE=[schema.]old_tablename[:partition]:new_tablenameI can't see where to specify the target schema name. The examples had the new table name residing in the same schema with just a new name.
    I looked at the REMAP_SCHEMA but the docs say that will import the entire schema into the new schema and I only want one (1) table.
    Any suggestions are most welcome!
    -gary

    I thought I tried that combination and it seemed to me that the REMAP_SCHEMA somehow over-rode the TABLES= parameter >and started loading all the objects.If it does fail (and it should not) then please post the details here and I will try to see what is happening.
    Let me get back into the sandbox and try it again. I admit I was in a bit of a hurry when I did it the first time.We are all in a hurry, no worries. If it fails, please post the details and the log file.
    Does it make any sense that one parameter would override another?No, this should never happen. We have tons of checks to make sure the job can't have multiple meanings. For example, you can't say
    full=y schemas=foo --- Which do you want, a full export or a list of schema exports, etc.
    Your suggestion was the first thing I thought would work.This should work. If not, please post the log file with the command and the results.
    Dean
    Thanks again for the help and stay tuned for my new attempt.
    -gary

  • Import of BaseView to a different schema in database

    Hi All,
    We have developed some bam reports. Now the base view, meta view are referring to a schema name (say SchemaName1) in database.
    In the plans we are using "SQL query" to get data from database. So we have queries like "Select SchemaName1.table1.column1 ... from ......".
    Now we have taken a export of the base view, meta view ,plans and all other components of BAM.
    All is fine till now... But now i need to import all these stuff in a different database. My problem is that in the new database instance i cannot use the same schema name (i.e. SchemaName1 ). I have a different schema name(say SchemaName2) there and i need to use that......There is no way i can use SchemaName1.
    Will the import of Base view/Meta view/plans work or we need to do some configuration changes during import??
    Do we have to create Base view for the new schema names from scratch or the imported code can be used??
    The plans have sql queries referring to SchemaName1 but we need it to refer to the Other schema(SchemaName2 )...What is the possible way of referring to the new schema without developing the plan again??
    Waiting for your valuable feedback...

    ***Backup your repository database***
    ***Please review all steps before attempting***
    Sarputil Export
    1.     Start | Run, type “sarputil”
    2.     Do a partial export. (Note down directory that will contain files to be exported.).
    3.     Select your Baseview, Metaview, Security:Login Profile, and Plan. (Note, the check boxes are in front of each object name and might appear very light on some clients.)
    4.     On the XML dialog and with the question on what you would like to do – select Execute Now.
    5.     Finish the wizard and from the directory noted above, verify .csv files were created. (Typically C:\OracleBAM\EnterpriseLink\Data\rp\export).
    6.     Copy all .csv files and paste to different temporary folder on 2nd server.
    Sarputil Import
    1.     Start | Run, type “sarputil” on the 2nd server where you’ll import into.
    2.     Partial import
    3.     Under Repository Information dialog, set the Data Source information on the right and remember to change the directory now containing your .csv files.
    4.     Like before, select “Execute now” and Finish the wizard.
    Oracle BAM Admin
    Modify connect string (host string or tns name) if you need to:
    1.     Connect in Oracle BAM Admin
    2.     Expand Baseviews and select the imported Baseview
    3.     Check under “Server” on the left if the connect string is correct.
    4.     If not, click Modify button and change.
    Modify Baseview Login if you need to:
    1.     With your Baseview still selected on the left side, click on “Baseview Logins” tab
    2.     Logins on the left correspond to actual database user id’s and password. Add a new Login with a database User ID and Password to access the new schema.
    3.     Associate or Set the new Login (right) to the BAM User on the left.
    Sarpbv Modification
    Use sarpbv utility to change references of the old schema name to a new schema name.
    General syntax for Oracle:
    sarpbv /R"username:pwd:Oracle:TNS Name::DB UserID:DBUser pwd” /B"BaseView name" /O"NewSchema"
    **Use Capital letters for New Schema name!
    **Notice 2 colons (::) after TNS Name (because you do not have a database name in Oracle).
    1.     Open DOS
    2.     Type your sarpbv command. Below is an example where I changed a Baseview called “scott” to use a new schema name called Jack.
    sarpbv /R"sa::ORACLE:baminst::sagent:sagent" /B"scott" /O"JACK"
    3.     Open Design Studio, locate the plan and check the SQL Query now reflects the new schema.
    4.     Test the plan to ensure it’s pulling data correctly from the new schema.

  • Compare table structures in different schemas. help please

    Hi all,
    I have a question...
    I have tables on different schemas some thing like
    Schema A
    Table 1
    Table 2
    Table 3
    Schema B
    Table 1
    Table 2
    Table 3
    Now situation is Table 1 and Table 2 will have similar structure or Table 1 in Schema B will have additional columns.
    like so... on... for all other tables...
    example !
    Schema A:
    Desc Table 1;
    Name                                  Type            Null
    No                                Number            Notnull
    Name                           Varchar2(10)     Not null
    Fee                              Number (10,2)   Not null
    Scheam B;
    Desc Table1;
    Name                                  Type               Null
    DX_No                                Number            Notnull
    DX_Name                           Varchar2(10)      Not null
    DX_Fee                              Number (10,2)   Not null
    comments                          Varchar(2)        Now I need to write a procedure sort of thing to compare these tables which are in different in column names in both schema and get it exported to Excel sheet.
    and here thing is first three columns SHOULD BE TREATED AS SAME even though prefix of DX_ exist since REST OF THE PART OF COLUMN NAME IS SAME.
    and in same way commets is new coloumn in schema B only..So that should be highlighted excel sheets..
    I am not sure how OAD or SQL Developer handle this...Is there any plsql block I can write to do above..
    Thanks in advance..

    An example of one method (this is just a starting point, you'll have to build it out to suit your needs).
    create table emp as select * from scott.emp where 1=0;
    alter table emp add (junk number(1));
    select
          t1.column_name as t1_column_name
       ,  t2.column_name as t2_column_name
    from
       select column_name
       from
          dba_tab_columns
       where
          table_name  = 'EMP'
       and
          owner       = user
    ) t1
    full outer join
       select column_name
       from
          dba_tab_columns
       where
          table_name  = 'EMP'
       and
          owner       = 'SCOTT'
    ) t2
    on (t1.column_name = t2.column_name)
    where
       t1.column_name is null
    or
       t2.column_name is null;
    T1_COLUMN_NAME                 T2_COLUMN_NAME
    JUNK
    1 row selected.
    TUBBY_TUBBZ?If you need to remove prefix's ... you would just do that in the select list (using regexp_replace, translate, substr, whatever you think is appropriate for your situation).
    Edited by: Tubby on Nov 6, 2010 12:38 PM
    Forgot to mention that this code will report differences between two schemas, regardless of where the additional columns reside ... if you have a 'master' schema that is the definitive source, then you would want to use the query provided by Xtender.

  • EXPORT/IMPORT SBO SCHEMA ERROR

    Hello,
    We have a client who is working with SAP BusinessOne version for HANA, with HANA PLATFORM rev. 69 and I need to export your database and import it to our development server .
    To backup/restore the database I have performed the following steps :
    1 - I have made ​​the export of a ' SCHEMA ' with "EXPORT "SBOXXX_ES"."*" AS BINARY INTO '/tmp/SBOXXX_ES' WITH REPLACE THREADS 10;".
    2 - I have compressed files in Linux using the command : tar- czvf .....
    3 - I've Unzipped the files to our local server.
    4 - Performing the ' IMPORT ' command gives me the following errors,I tried two ways to import :
    4.1 - IMPORT  "SBOGXXX_ES"."*" as binary from '/tmp/SBOXXX_ES' with replace threads 10 rename schema "SBOXXX_ES" to "SBOXXX_ES_2";
    Error mesage: SAP DBTech JDBC: [2]: general error: [Other schema]._SYS_SS_CE_1957622_RET not found in the import directory.
    4.2 - IMPORT "SBOXXX_ES"."*" as binary from '/tmp/SBOXXX_ES'
    with replace threads 10 NO DEPENDENCIES
    rename schema "SBOXXX_ES" to "SBOXXX_ES_2";
    Error mesage: SAP DBTech JDBC: [2048]: column store error: table import failed:  [30111] Binary import failed (could not execute create statement);invalid column view: ODLN: line 7 col 45 (at pos 506) at ptime/query/checker/check_cube.cc:259
    I guess when you export the " SCHEMA " exported la la " DEPENDENCIES ON" option and these are generating the first error when importing .
    If the error is of the DEPENDENCIES, in which DEPENDENCIES are stored files to edit , and remove all that is giving the error (SYS_SS_CE_1957622_RET ) .
    Thank you very much for your support .
    Adria.

    Hi Adria,
    I asked you to test the import on the system you exported from to determine if the problem is occurring because you are transporting the files from system 1 to system 2.  If it works on point of origin we should investigate why the transfer is corrupting the file.  I thought it would be ok because you are renaming the schema as part of the process.  I would not want to import @point of origin without the rename.
    Whenever some one asks me how to export a schema and import it with a different name I provide:
    export "SBODEMOGB"."*" as
    binary into '/home/SBODEMOGB' with replace threads 10;
    import "SBODEMOGB "."*" as
    binary from '/home/SBODEMOGB_901' with replace threads 10 rename schema "SBODEMOGB" to
    "SBODEMOGB_NEW";
    You are using the statement I would provide. 
    I cannot find an hints for the error reported (SYS_SS_CE_1957622_RET).  If you do not see anything more helpful in the trace file I would suggest opening a customer message.
    Best regards,
    Duncan

  • Creating dup app in different schema...

    I have found a few notes on exporting/importing applications, but they don't tell me whether the export is a copy or move. I need to keep both schema's versions of the same application. My original version is under my personal schema. I am ready for office wide testing. How do I copy my application so that I have both versions, but under different schemas. Exactly how do I do that? Is it simply exporting the application and then performing an import?

    Hello,
    >> but they don't tell me whether the export is a copy or move
    Export is a copy. APEX creating a SQL script, which include all the application meta data. Your original application is stay intact.
    >> Is it simply exporting the application and then performing an import?
    Basically Yes. You are exporting your application on one server, and import it on the other. As part of the import process, you can choose the schema in which to install the application.
    However, as you are installing your application on a new server/schema, you need also to copy and install all the supporting objects (on the database level) your application is using. You can read more about how to deploy a new application in the following - http://download-uk.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/deploy.htm#BABGJIAD .
    Regards,
    Arie.

  • Compare DB objects between different schemas

    Hi,
    I want to compare db objects beween 2 different schemas like QA and PROD.
    Please suggest me a tool that compares table definitions,stored procedures and other db objects between different schemas.

    Did you check the above video link which is shared?
    Yes I'd agree with you and also i faced these situations to check what objects i need to export from Dev to Quality ( to analyze what are already correct or what have to be imported again)
    Generally Quality & Prod are in sync.
    Also will be waiting along with you if anyone comments on any such tool.
    Regards,
    Krishna Tangudu

  • Exporting/Importing partition schema

    Hi,
    We are trying to manage multiple repositories for a project and in
    particular we use a devopment/test rep and a production rep ( containing a
    production plans snapshot ).
    When a plan is moved from a development repository to the production one,
    the partitioning previously done is lost. In this case developers have to
    partition from scratch.
    Moreover in our repository management policy ( apart clean up ) , we
    destroy periodically development repository and import saved plans in a new
    created one. This procedure causes the same problem described before.
    Is there any chance to export the partition schema done in development
    repository in order to re-apply the partitioning to the same plan in new
    one, using fscript ?
    Is there any other way to do it ( maybe via repository hooks and a tool
    application ) ?
    Thanx
    Fab

    Fabrizio,
    We have a tool that will do this, and a number of other things for you. It
    not only saves partitioning information, but it also:
    * Reads your application defintion, along with the partitioning information
    from the repository,
    * Creates deployment and installation scripts,
    * Analyzes your application for over 20 different performance and
    scalability problems,
    * Captures the supplier plan relationships for each partition as well as
    for the entire application,
    * Graphically shows partitioning structure, similar to partition workshop,
    along with all partition and service object properties,
    * Has Web and IIOP property sheets which are read from the application,
    * Saves operational information, such as outage schedules and external
    interfaces,
    * Records special runtime properties of classes in your system
    We offer this as part of our "Designing for Deployment" workshop. You can
    send me a separate message for information about the workshop and the tool.
    Don
    At 06:35 PM 4/10/98 +0200, Fabrizio Barbero wrote:
    Hi,
    We are trying to manage multiple repositories for a project and in
    particular we use a devopment/test rep and a production rep ( containing a
    production plans snapshot ).
    When a plan is moved from a development repository to the production one,
    the partitioning previously done is lost. In this case developers have to
    partition from scratch.
    Moreover in our repository management policy ( apart clean up ) , we
    destroy periodically development repository and import saved plans in a new
    created one. This procedure causes the same problem described before.
    Is there any chance to export the partition schema done in development
    repository in order to re-apply the partitioning to the same plan in new
    one, using fscript ?
    Is there any other way to do it ( maybe via repository hooks and a tool
    application ) ?
    Thanx
    Fab
    ============================================
    Don Nelson
    Regional Consulting Manager - Rocky Mountain Region
    Forte Software, Inc.
    Denver, CO
    Phone: 303-265-7709
    Corporate voice mail: 510-986-3810
    aka: [email protected]
    ============================================
    "Until you learn to stalk and overrun, you can't devour anyone" - Hobbes

  • How do I import a dump file into a different schema

    I think this is an easy question.
    I just exported a schema for userA to a file using expdp. I now want to import this data for userA to a different schema for userB.
    What parameters do I need in the impdp command?
    thanks,
    jj

    Oh OK thanks.
    Let me extend my question. I see that I can change the schema and I did that but then I realized that I also need to change my tablespace.
    Can this be done in a single command? I got an error when I tried to remap both the schema and tablespace.
    thanks.

  • JDBC Lookup - Import table data from a different schema in same DB

    Hi XI Experts,
    We are facing an issue while importing a Database table into the external definition in PI 7.1.
    The details are as below:
    I have configured user 'A' in PI communication channel to access the database. But the table that I want to access is present in schema "B". Due to this, I am unable to view the table that I have to import in the list available.
    In other words, I am trying to access a table present in a different schema in the same database. Please note that my user has been given all the required permissions to access different schema. Even then, I am unable to access the table in different schema.
    Kindly provide your valuable suggestions as to how I can import table which is present in another schema but in the same Database.
    Regards,
    Subbu

    If you are using PI 7.1, then you can do JDBC Lookup to import JDBC meta data (table structures from DB). Configure a jdbc receiver communication channel where you specify username and password which has permission to access schema A and Schema B of database. Specify database name in the connection string. Then you might have access to import both schema.
    Please refer these links
    SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups
    How to use JDBC Lookup in PI 7.1 ?

  • Accessing tables from different schema in CDS and AMDP

    Hi All,
    We are working on a HANA system which has several schema replicated from SAP R/3/Non SAP systems. We have BW 7.4 SP9 deployed on the same system and accessing the HANA views using latest BW virtual objects such as Open ODS , Composite providers etc.
    We are also using the BW system for few ABAP based data processing developments. We are currently accessing HANA views in ABAP programs by creating dictionary views based on external HANA views.
    We would like to however use recent possibilities of CDS and AMDP for better life cycle management of ABAP based solutions. The open SAP course on this subject was of very good help. Thanks a lot "open SAP team" for that. I would however have few open questions,
    As I understand AMDP gives us full flexibility of writing sql procedures within ABAP development environment, but can we access tables from different schema into AMDP code. If yes, then sample code would help.
    If the answer of first question is yes, then how do we manage transports between development and production systems where the schema names would be different. Currently in open HANA developments, such transport is manged using Schema mapping.
    Can I also use different schema tables in CDS views.
    We are updating few tables in ABAP dictionary after applying processing logic in ABAP program as detailed in step 1. With the new approach using AMDP, can we directly update database schema tables which will give us an optimization advantage.
    New ABAP HANA program interfaces are quite promising and we would like to use them to optimize many data intensive applications.
    Thanks & Regards,
    Anil

    Hi Anil,
    I can only answer 1. and 2. (and would be interested into 3. as well):
    1.
    Yes you can access tables from a different schema and also HANA views. In this case no 'using' is needed.
    Examples:
        RESULT = SELECT
        FROM
              "SAP_ECC"."T441V" AS t,
              "_SYS_BIC"."tmp.package/AFPO" AS a.
        WHERE ...
    2. In this case, if you need schema mapping: You could use HANA (projection) views which just forward to a different schema, also see example.
    Best regards,
    Christoph

  • Moving Subpartitions to a duplicate table in a different schema.

    +NOTE: I asked this question on the PL/SQL and SQL forum, but have moved it here as I think it's more appropriate to this forum. I've placed a pointer to this post on the original post.+
    Hello Ladies and Gentlemen.
    We're currently involved in an exercise at my workplace where we are in the process of attempting to logically organise our data by global region. For information, our production database is currently at version 10.2.0.3 and will shortly be upgraded to 10.2.0.5.
    At the moment, all our data 'lives' in the same schema. We are in the process of producing a proof of concept to migrate this data to identically structured (and named) tables in separate database schemas; each schema to represent a global region.
    In our current schema, our data is range-partitioned on date, and then list-partitioned on a column named OFFICE. I want to move the OFFICE subpartitions from one schema into an identically named and structured table in a new schema. The tablespace will remain the same for both identically-named tables across both schemas.
    Do any of you have an opinion on the best way to do this? Ideally in the new schema, I'd like to create each new table as an empty table with the appropriate range and list partitions defined. I have been doing some testing in our development environment with the EXCHANGE PARTITION statement, but this requires the destination table to be non-partitioned.
    I just wondered if, for partition migration across schemas with the table name and tablespace remaining constant, there is an official "best practice" method of accomplishing such a subpartition move neatly, quickly and elegantly?
    Any helpful replies welcome.
    Cheers.
    James

    You CAN exchange a subpartition into another table using a "temporary" (staging) table as an intermediary.
    See :
    SQL> drop table part_subpart purge;
    Table dropped.
    SQL> drop table NEW_part_subpart purge;
    Table dropped.
    SQL> drop table STG_part_subpart purge;
    Table dropped.
    SQL>
    SQL> create table part_subpart(col_1  number not null, col_2 varchar2(30))
      2  partition by range (col_1) subpartition by list (col_2)
      3  (
      4  partition p_1 values less than (10) (subpartition p_1_s_1 values ('A'), subpartition p_1_s_2 values ('B'), subpartition p_1_s_3 values ('C'))
      5  ,
      6  partition p_2 values less than (20) (subpartition p_2_s_1 values ('A'), subpartition p_2_s_2 values ('B'), subpartition p_2_s_3 values ('C'))
      7  )
      8  /
    Table created.
    SQL>
    SQL> create index part_subpart_ndx on part_subpart(col_1) local;
    Index created.
    SQL>
    SQL>
    SQL> insert into part_subpart values (1,'A');
    1 row created.
    SQL> insert into part_subpart values (2,'A');
    1 row created.
    SQL> insert into part_subpart values (2,'B');
    1 row created.
    SQL> insert into part_subpart values (2,'B');
    1 row created.
    SQL> insert into part_subpart values (2,'C');
    1 row created.
    SQL> insert into part_subpart values (11,'A');
    1 row created.
    SQL> insert into part_subpart values (11,'C');
    1 row created.
    SQL>
    SQL> commit;
    Commit complete.
    SQL>
    SQL> create table NEW_part_subpart(col_1  number not null, col_2 varchar2(30))
      2  partition by range (col_1) subpartition by list (col_2)
      3  (
      4  partition n_p_1 values less than (10) (subpartition n_p_1_s_1 values ('A'), subpartition n_p_1_s_2 values ('B'), subpartition n_p_1_s_3 values ('C'))
      5  ,
      6  partition n_p_2 values less than (20) (subpartition n_p_2_s_1 values ('A'), subpartition n_p_2_s_2 values ('B'), subpartition n_p_2_s_3 values ('C'))
      7  )
      8  /
    Table created.
    SQL>
    SQL> create table STG_part_subpart(col_1  number not null, col_2 varchar2(30))
      2  /
    Table created.
    SQL>
    SQL> -- ensure that the Staging table is empty
    SQL> truncate table STG_part_subpart;
    Table truncated.
    SQL> -- exchanging a subpart out of part_subpart
    SQL> alter table part_subpart exchange subpartition
      2  p_2_s_1 with table STG_part_subpart;
    Table altered.
    SQL> -- exchanging the subpart into NEW_part_subpart
    SQL> alter table NEW_part_subpart exchange subpartition
      2  n_p_2_s_1 with table STG_part_subpart;
    Table altered.
    SQL>
    SQL>
    SQL> select * from NEW_part_subpart subpartition (n_p_2_s_1);
         COL_1 COL_2
            11 A
    SQL>
    SQL> select * from part_subpart subpartition (p_2_s_1);
    no rows selected
    SQL>I have exchanged subpartition p_2_s_1 out of the table part_subpart into the table NEW_part_subpart -- even with a different name for the subpartition (n_p_2_s_1) if so desired.
    NOTE : Since your source and target tables are in different schemas, you will have to move (or copy) the staging table STG_part_subpart from the first schema to the second schema after the first "exchange subpartition" is done. You will have to do this for every subpartition to be exchanged.
    Hemant K Chitale
    Edited by: Hemant K Chitale on Apr 4, 2011 10:19 AM
    Added clarification for cross-schema exchange.

  • MapViewer metadata problem - accessing spatial data in a different schema.

    I have a MapViewer application that uses data from three different schemas.
    1. Dynamic Themes come from schema A.
    2. Static Themes come from schema B.
    3. A newly added static theme in B whose data comes from schema C.
    The mapviewer datasource points to schema B where the static themes, data and metadata are defined while the dynamic themes have their own datasource specified as part of addJDBCTheme(...).
    To get the newly added map to work I've had to add a view in schema B that points to C instead of referencing directly the table and I've had to add the metadata twice, once for schema B and once for schema C.
    If I put the metadata in just one of the two schemas I get the following errors.
    08/11/21 13:58:57 ERROR [oracle.sdovis.ThemeTable] cannot find entry in ALL_SDO_GEOM_METADATA table for theme: AMBITOS_REST
    08/11/21 13:58:57 ERROR [oracle.sdovis.ThemeTable] java.sql.SQLException: Invalid column index
    OR
    08/11/21 13:53:39 ERROR [oracle.sdovis.theme.pgtp] java.sql.SQLException: ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13203: failed to read USER_SDO_GEOM_METADATA view
    It's not a big deal but I'd like to know if anyone else has has similar problems.
    Saludos,
    Lew.
    Edited by: Lew2 on Nov 21, 2008 6:42 AM

    Hi Lew,
    if you are using a recent version (10.1.3.1 or later) there is no need to use a view and to create the metadata in both schemas.
    You need to grant selection on tables between the schemas.
    You can try the following. Assume you have the MVDEMO schema (from MapViewer kit) and SCOTT schema.
    1) grant select on MVDEMO Counties table to SCOTT
    SQL> grant select on counties to scott;
    2) Now you are ready to create a predefined theme in schema SCOTT using the MVDEMO Counties table.
    - Open MapBuilder and loads the SCOTT schema.
    - On the Data navigator (bottom left tree), go to Geometry tables and you should see the MVDEMO node and the COUNTIES node inside it.
    - Start a wizard to create a geometry theme based on this Counties table.
    - At the end you should see that the base table name is MVDEMO.COUNTIES. Therefore MapViewer will use the metadata in MVDEMO schema and there is no need to replicate it in SCOTT schema.
    Joao

  • HTML DB application using table in a different schema

    I need to create a new HTML DB application. The table is in a different schema than mine. The DBA granted me rights to see it and I can see it from iSQL. HTML DB does not give the alternative of selecting this table.

    This thread covers your issue.
    New to HTML DB, have questions about service admin and schemas
    Ask your DBA to add workspace to schema mapping.
    Sergio

  • Dbms_sql  in a different schema from query table-error  ** ORA-00942

    Oracle Experts,
    I think I am having problems with using DBMS_SQL in which the function was created in one schema and the query table was created in a different schema.
    We have 2 schemas: S1, S2
    We have 2 tables:
    T1 in Schema S1
    T2 in Schema S2
    We have a function F1 created by DBA in schema S1 that uses the dbms_sql as:
    CREATE OR REPLACE FUNCTION S1.F1(v1 in VARCHAR2) return NUMBER IS
    cursor1 INTEGER;
    BEGIN
    cursor1 := dbms_sql.open_cursor;
    dbms_sql.parse(cursor1, v1, dbms_sql.NATIVE);
    dbms_sql.close_cursor(cursor1);
    return (0);
    EXCEPTION
    when others then
    dbms_sql.close_cursor(cursor1);
    return (1) ;
    END;
    I am using jdeveloper 11G. We have an Oracle DB 11g.
    We have a java program which uses jdbc to talk to our Oracle DB.
    Basically, in my java program, I call function F1 to check if the query is valid.
    If it is, it returns 0. Otherwise, returns 1:
    oracle.jdbc.OracleCallableStatement cstmt = (oracle.jdbc.OracleCallableStatement) connection.prepareCall ("begin ? := S1.F1 (?); end;");
    cstmt.registerOutParameter (1, java.sql.Types.INTEGER);
    cstmt.setString(2, "Select * from S2.T2");
    cstmt.execute ();
    Since the table that I run the query is T2, created in different schema than F1 was created in, I have the error:
    ** ORA-00942: table or view does not exist
    So my questions are these:
    - I am using Oracle DB 11g, if I run the query on a table that created in a different schema from the one that the function (which uses dbms_sql) was created in, I would get the error ORA-00942?
    - If I runs the query on table T1 in the same schema as the function F1, would I have the same problem(The reason I ask is I cannot create any table in schema S1 because the DBA has to do it; I am not a DBA)
    - This is not a problem, but a security feature because of SQL injection?
    - How to resolve this issue other than creating the table in the same schema as the function that utilizes DBMS_SQL?
    Regards,
    Binh

    Definer rights (default) stored objects run under owner's security domain and ignore role based privileges. So regardless what user you are logged in as, function S1.F1 always executes as user S1 and ignores user S1 roles. Therefore exeuting statement within S1.F1:
    Select * from S2.T2requires user S1 to have SELECT privilege on S2.T2 granted to S1 directly, not via role.
    SY.

Maybe you are looking for

  • Total Compensation statement dates

    Hi, There is from and to date in total compensation statement under benefits and payments. May I know from where these dates are fetching from.Because by default it is showing 01/01/2008 to 31/12/2008. My client requirement is to change it to system

  • Pl/sql folder has old content when user public

    I have a pl/sql folder in my CA, published as portlet. The pl/sql content has been edited a couple of times, and it looks fine when I'm logged in. However, when I logg out of the portal and access the folder as a public user, I see the first content

  • My phone is malfunctioning.

    This morning I wake up and my phone is stuck on silent/vibrate [the side button is doing nothing], and it keeps switching from vibrate to on over an over again without touching a thing. Both speakers on my phone are gone, no sound will come out of ei

  • Black ink cartridge in my Photosmart c309g-m won't print

    I have an HP Photosmart Premium C309g-m printer. The black ink was low so I replaced the cartridge with a brand new HP564 black ink cartridge (not the photo black ink cartridge).  The printer will not print the black ink cartridge since I replaced it

  • Why can't I share between computers?!?

    I am trying to share music between two of my home computers and I have followed the directions in the help section but there is one big problem.  It says to click the box in preferences under sharing to "look for shared libraries" but there IS NO BOX