Table in Custom Schema . how to access in orabpel?

Hi
I am new to BPEL and going through order booking tutorial using oracle 10g database and 10.1.3.4 version of BPEL .
I have created one DB Adapter to insert the records in Orders and OrderItems table.But when I run the example I get an exception as 'Table or View doesnt exist.'
I agree with the exceptiona because orders and orderitems table arre created in system schema and orabpel has no access to these tables.
Pls give the idea on how to resolve this kind ofproblem.
Regards
Naveen

You create a data source that point to the correct schema.
Have a look at this link.
http://download.oracle.com/docs/cd/B31017_01/core.1013/b28764/deploy_em002.htm#sthref1130
Also have a look at the examples that are already there and copy them for you needs.
When creating the db adapter partner link make a not of the JNDI location is uses. You need to chnage this to point the the connection you require.
cheers
James
PS the system schema should not be used for custom tables, this should be reserved for oracle.

Similar Messages

  • [b]How to create this Custom Table on Custom Schema with foreign key [/b]

    This Custom Table is create in Custom Schema and Refers to Seeded Table in APPS schema
    1 create table test_dff (test_id number(15) primary key,
    2* invoice_id number(15) constraint ap_test_fk REFERENCES ap_invoices_all(invoice_id) ON DELETE CASCADE)
    SQL> /
    invoice_id number(15) constraint ap_test_fk REFERENCES ap_invoices_all(invoice_id) ON DELETE CASCADE
    ERROR at line 2:
    ORA-02270: no matching unique or primary key for this column-list
    How to create this Custom Table on Custom Schema
    thanks in advance

    hi prashant
    sorry for replying late, i have checked your query and it gives me no rows, but if i check for user_cons_columns it gives me no rows either in APPS Schema, but in AP schema it gives me
    SQL> SELECT * FROM user_cons_columns WHERE table_name = 'AP_INVOICES_ALL';
    OWNER CONSTRAINT_NAME TABLE_NAME
    COLUMN_NAME
    POSITION
    AP SYS_C008177 AP_INVOICES_ALL
    INVOICE_ID
    SQL> SELECT constraint_name, constraint_type FROM user_constraints WHERE table_name = 'AP_INVOICES_A
    LL';
    CONSTRAINT_NAME C
    SYS_C008177 C
    SYS_C008178 C
    SYS_C008179 C
    SYS_C008180 C
    SYS_C008181 C
    SYS_C008182 C
    SYS_C008183 C
    SYS_C008184 C
    SYS_C008185 C
    SYS_C008187 C
    SYS_C008189 C
    SYS_C008191 C
    and since this is a combination of Unique and Not Null Constraints , i am getting the same issue. do u have any solution to make the Detail table records to delete without using Alerts/DB Triggers?
    thanks for your time .
    abdul rahman

  • How to access a table present in same database

    I have one mc_pl_st tables in mcs_owner schema, but am accessing from another schema age_owner schema,but both schemas are in same database.
    Shall I use user_name.table_name to access the table present in other schema present in same database
    Pls suggest,
    Thanks

    T.PD wrote:
    Skalny wrote:
    859486 wrote:
    Shall I use user_name.table_name to access the table present in other schema present in same databaseYes, you must use schema name if you want to access table or other object, which belongs to different user.You could also use synonymes created by the tables owner:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7001.htm
    How ever, the user accessing must have SELECT (and INSERT/UPDETE/DELETE?) permissions granted.And also we can use public synonymes.

  • Unable to create a QUEUE in custom schema

    Hi,
    I was able to create a Type & queue table in custom schema, but using them was unable to create a QUEUE in custom schema
    I'm using the following piece
    DBMS_AQADM.CREATE_QUEUE(queue_name => 'XXXXXX_QUEUE',
    queue_table => 'XXXXXX_QUEUE_TABLE'
    Whereas in APPS schema I'm able to create the same queue.
    Pls advice ...

    Hi,
    The only reason is that, we create all the custom objects (owner as custom schema), and a synonym in APPS.
    I did not get any error, but the queue, is not getting created
    Following are the scripts used
    CREATE OR REPLACE TYPE 'XXXXXX_QUEUE_TYPE
    AS OBJECT (TYPE VARCHAR2(15));
    BEGIN
    DBMS_AQADM.CREATE_QUEUE_TABLE (queue_table => 'XXXXXX_QUEUE_TABLE',
    queue_payload_type => 'XXXXXX_QUEUE_TYPE'
    END;
    BEGIN
    DBMS_AQADM.CREATE_QUEUE(queue_name => 'XXXXXX_QUEUE',
    queue_table => 'XXXXXX_QUEUE_TABLE'
    END;
    BEGIN
    DBMS_AQADM.START_QUEUE(queue_name => 'XXXXXX_QUEUE'
    END;
    Thanks.....

  • 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

  • How do I move a table from one schema to another schema?

    How do I move a table from one schema to another schema?

    Grant access to the table from the source schema to destination schema.
      GRANT SELECT ON <TABLE_NAME> TO  <DESTINATION SCHEMA>A simple way would be to use CREATE Table with select syntax (in destination schema)
      CREATE TABLE <TABLE_NAME> AS SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME><li>However, you would be in <b><u>trouble when the table has index,constraints and triggers</u></b>.
    So you can better of grab the DDL statement of the table(and any additional components) andd then create the table in the destination schema.You can use SQL developer, Toad or Apex's Object browser for this.
    After the table is created, Insert the records using SELECT.
    INSERT INTO <TABLE_NAME> SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME>This question is discussed in great detail in this <b>AskTom thread</b>

  • How to access tables/views of an external database provider..

    After much trouble I finally managed to setup a second Database Provider that doesn't display the "0 out of 0 connections are good" error by filling in the "Configuration Class" field with "intradoc.server.DbProviderConfig".
    But now the problem is actually accessing the tables/views in my newly configured external database provider...
    In the Configuration Manager applet when I try to add a new Table or View it only lists the tables contained in the schema of the SystemDatabase database provider (the original one), I've tried running Queries via components trying stuff like SELECT * FROM provider_name.table_name and other similar but obviously it doesn't work...
    So... with that said, I just want to know how I access tables or views in my "supposedly" well conected (15 out of 15 connections are good, no errors on the Test Query) Oracle external Database Provider - After searching I was unable to find any information regading any post-provider-setup actions in the Content Server documentation - Does anyone know how to do this?
    On a side note, if the database is SQLServer instead of Oracle, with the same configuration and apparently no errors on the database side (other clients access it well) the Query Test of the new database provider returns the following error:
    "The provider 'TestSqlSrv' is in error. Unable to create database connection for JDBC:ODBC:SqlSrv. Unable to create result set for query 'select * from dummy'. Invalid Fetch Size Unable to create result set for query 'select * from dummy'. Invalid Fetch Size java.sql.SQLException: Invalid Fetch Size".But I won't even go there yet.... for now I would settle with just knowing how to reference information in the Oracle external database provider...
    Message was edited by:
    user602700

    if you are able to, pick up Bex Huff's book the Definitive Guite to Stellent Content Server Development (amazon link: http://www.amazon.com/Definitive-Stellent-Content-Server-Development/dp/1590596846/ref=sr_1_1?ie=UTF8&s=books&qid=1196365101&sr=8-1)
    chapter 11 is all about this.

  • How to copy data, table rows between tables in different schema

    how do I copy rows from one table in one schema into another table in another schema in same database?

    Hi,
    Give an Access to the respective table in Source Schema to Destinations Schema. If table does not exits in the destination schema use CTAS else Insert into..etc., with your select Query.
    - Pavan Kumar N

  • How to access XI_AF_MSG table in Composite Application Framework Java Code

    Hi Experts,
    I've no knowledge about PI. In one of my projects, I need access the XI_AF_MSG table of PI through java code in a composite application.
    How do I access this table? I've searched this forum for this query but the replies say that any SQL editor can be used to access XI_AF_MSG table. But my question is; How do I get the login details of the database? In the first place, how do I access the underlying database layer of PI? Is there any JAR file which can be used to make the connection?
    It would be of great help if any expert on this can give me a detailed reply.
    Thanks a lot in advance.
    Best Regards,
    Nitin

    Hi Nitin,
    The AFW runs on the J2EE Engine, so this table is in the Java Schema of the database and thus not visible in the ABAP stack. I guess you can use any tool your database provider offers for looking at table contents (e.g. SQLPlus).
    Regarding how to access the table please contact you basis administrator they will have access to the tables as they have j2ee_admin login ids and pwds.
    Regards
    joel

  • Query on Custom schema table getting 'Do You want to save changes' message

    Hi all,
    I am getting the error message whenever I query from the custom table. Here is the description of the issue.
    1. I have a button on the first block. When the user clicks on this button , execute_query is called on another block. Then the user getting the message "do you want to save the changes" . Although there are no changes made on the form.
    2. The second block is based on a custom table defined on the custom schema.
    3. Created public synonym for this table and also gave the all the grants to apps schema on this table.
    4. This error was not coming before when the second block is based on Apps schema table.
    Any idea on how to fix this.
    Thanks

    I doubt the problem is related to a schema or public synonym. The message is appearing because the value for an item is being changed after your query executes.
    First check to make sure that the blocks that are not based on a table are set to No. See the Database Data Block Property.
    If that doesn't solve the problem, then run the debugger and watch to see what item is changing. You may be doing something in a trigger.

  • 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

  • Create and access a table OUTSIDE SAPR3 schema

    Hi Gurus,
    Can you please help me how do I create a table outside SAPR3 schema in the same database, I have a user schema TEST in the sap database (Using SAPR3 4.6C). If any tcode does that? Or I need to use oracle sqlplus.
    HOW an ABAP progroam can access and manipulate the data available in this TEST schema?
    Reference to some SAP NOTE will be highly helpfull.
    Regards,
    Soumen.

    >
    Soumen Chattopadhyay wrote:
    > Dear Fiedel and Eric,
    Fiedel, Who?
    >
    > Thank you both for your suggestion,
    > me and my team are are checking up according to your idea....
    >
    > Actually, I do need to integrate one plant machinery equipment which has the backend database in MS SQL server and our SAP is using the backend Oracle and running on Linux.
    Very good, now we are getting more information.
    The data is NOT on the oracle database but outside.
    In this case DBCON (from DB+CONnection) can help
    >
    > As per the need of  business data need to be exchanged between these two.
    >
    > If you have may I request you to share some more information e.g. snotes on DBCO?
    >
    Very easy, follow my mantra (Top right box-Search functionality is very useful, also sap notes search)
    Lets chew this a little:
    117261     Multiconnect and DB procedure enhancements for 4.0B
    323151     Several DB connections with Native SQL
    738371     Creating DBCON multiconnect entries for SQL Server
    178949     MSSQL: Database MultiConnect with EXEC SQL
    >
    > But , why DBCON is not the right choice, Fiedel can U thow some more light?
    Lets see, in your first request you wanted to access to a different schema in the same database.
    you have the licence issues and DBCON is "overkill" (even when it can work) You would be connecting to yourself with a different usser.
    Probably it is easier to create synonyms at DB level and provide proper authorizations.
    In your second request the DBCON makes much more sense.
    You want to access to a different (external) DB. That is the reason DBCON exist.
    Now we have a little "issue". I'm not Windows/SQL expert, but, in order to connect to an external DB you need the SAP library "dbslib" (I think dbsmsslib is the correct name for the SQL server)
    Unfortunately, SQLServer is a Windows only program and this library is only available for Windows.
    To use it (use DBCON) you will have to install an AS on a windows machine and configure the DBCON on this server and execute the program to exchange data from this AS alone (if you execute it from another one it will fail because it does not find the dbslib)
    As mentioned, not much experience with non "real" Operating Systems, so perhaps someone else has more information.

  • Custom DB Table in xxcurrnx schema

    ,when I am trying to insert the data into custom DB Table in xxcurrnx schema of 12.1.3  through the JDeveloper.
    The Jdeveloper patch number is : p9879989_R12_GENERIC
    JDeveloper Version :10.1.3.3.0
    Oracle Application Version :R12.1.3
    Table Name: XXCUR_TRADE_CUSTOMER_DETAILS_D
    Exception Details.      
     oracle.apps.fnd.framework.OAException: oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement "BEGIN INSERT INTO XXCUR_TRADE_CUSTOMER_DETAILS_D(CUSTOMER_ID,CONSOLIDATION_LEVEL,LAST_UPDATE_LOGIN,LAST_UPDATE_DATE,CREATED_BY,LAST_UPDATED_BY,CREATION_DATE) VALUES (?,?,?,?,?,?,?) RETURNING ROWID INTO ?; END;".
             at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
             at oracle.apps.fnd.framework.server.OADBTransactionImpl.commit(Unknown Source)
             at xxcurrnx.oracle.apps.ont.custdtls.server.XxcurnxcustdtlsAMImpl.saveTransaction(XxcurnxcustdtlsAMImpl.java:51).java:871)
             at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
             at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
             at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
             at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
             at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
             at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
             at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    java.sql.SQLException: ORA-06550: line 1, column 19:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 1, column 7:
    PL/SQL: SQL Statement ignored

    >
    PL/SQL: ORA-00942: table or view does not exist
    >
    Does APPS account have access to this table ? Since you have not qualified the name of the table with the schema name, is there a public or private synonym (in APPS account) that points to this custom table ?
    HTH
    Srini

  • How Microsoft access could possibly an SAP CRM table

    ould anyone know if it is possible for a Microsoft access system to read an SAP table. If so, how? I have to implement an interface btw MS Access and SAP CRM and I am trying to see how to get it to work.

    Dear Abdul!
    There are probably many ways to achieve what you´re looking for. It heavily depends on several factors, which solution turns out to be the best for you. You should take into account security, data integrity and sensitivty, business context and system architecture, among others.
    First of all though, you should specify wheter you want to access the SAP table for unidirectional read access only, or if you have the requirement to also update data in any SAP table (are you talking about a SAP standard table or a customer Z-table?)
    If you´re looking for a straight forward solution for read-only access, you can create a custom Z* RFC-enabled function module that reads out your SAP table and returns the values to your calling application. You could also use the WebServices interfaces of your SAP WebApplicationServer, depending on your release level. Furthermore, kindly check, if there are standard BAPI´s available that contain the data you need in their return parameters.
    Of course, you also could directly interface on a DBMS level between MS access and your underlying SAP DB, but most likely such a solution will never be supported in any productive environment, and for good reason. So you should look into one of the other options mentioned.
    I´ll gladly provide more detail about any of the mentioned approaches, but would like to have a little more input about your requirements before, so the optimal solutions can be found.
    Kind regards
    Christoph

  • How to find accurate number of Rows, and size of all the tables of a Schema

    HI,
    How to find the accurate number of Rows, and size of all the tables of a Schema ????
    Thanks.

    SELECT t.table_name AS "Table Name",
    t.num_rows AS "Rows",
    t.avg_row_len AS "Avg Row Len",
    Trunc((t.blocks * p.value)/1024) AS "Size KB",
    t.last_analyzed AS "Last Analyzed"
    FROM dba_tables t,
    v$parameter p
    WHERE t.owner = Decode(Upper('&1'), 'ALL', t.owner, Upper('&1'))
    AND p.name = 'db_block_size'
    ORDER by 4 desc nulls last;
    ## Gather schema stats
    begin
    dbms_stats.gather_schema_stats(ownname=>'SYSLOG');
    end;
    ## Gather a particular table stats of a schema
    begin
    DBMS_STATS.gather_table_stats(ownname=>'syslog',tabname=>'logs');
    end;
    http://www.oradev.com/create_statistics.jsp
    Hope this will work.
    Regards
    Asif Kabir
    -- Mark the answer as correct/helpful

Maybe you are looking for

  • How to insert java.util.Date to Oracle by OraclePrepaidStatement

    Hi all, I am trying to insert the date data to oracle a lot. But all of them works wrong??? Here's a code: package main; import oracle.jdbc.driver.*; import oracledb.OraCon; import java.text.SimpleDateFormat; public class inmain {       * @param args

  • Users timing out in Oracle AS 10.1.3

    I am trying to figure out why the load tests running in the target environment (large and very secure corporate network) against a Spring MVC/EJB3 application running in Orcale AS 10.1.3 fail. The application is deployed on a server running on a Sola

  • ITunes app window opens same location every time

    Just started doing this. I move the window to Desktop 2 and quit. Then when I reopen, it goes back to Desktop 1 in the same location it opened last time. Isn't this window info in the application .plist file? Also, the Dock no longer has the option t

  • ISight light on but it doesn't work

    Hi I just turned my week old MacBook and I noticed that the light of the built in iSight was on. I tried suing photobooth but all I see on the screen is green. And on Yahoo the screen is just black. I've tried restarting it but the light just stays o

  • HT1937 What is best method to boost network signal iPhone 5

    I live on the lower level of the apartment complex with the woods and hills I get no service unless I go on my patio which gets maybe 2 bars.  How do I figure out what my best option will be when installing a signal booster. I don't have a wifi issue