Access data on multi-logical database with ad hoc query

Dear all,
I would like to know if it is possible to access data in multi-logical database with ad hoc query.
I recall that I read some document stated that you can access data in multi-logical database with PNP as base.
But I find no document about how to set it up, any comment?
Regards
Bill

Hi Bill...
PNP can be accessible..............
PNP  0000-0999, 2000 to 2999 HR Master Data & Time 
PCH.... I don't think so....
Experts please do reply on this please...................
Vijay
Edited by: Vijay Shankar on Sep 13, 2011 11:32 AM

Similar Messages

  • Is it possible to retrieve data from an Oracle db with an LDAP query?

    Our application uses an LDAP query to retrieve data from Microsoft Active Directory. Is it also possible to retrieve data from an Oracle database with an LDAP query?

    if you have Oracle Internet Directory, you will retrieve with ldapsearch data, which are physically stored in the database. But to select * from emp where ename='SCOTT', it is probably not possible.
    At least I have never heard of such a product which translate ldap query in sql query. But feel free to write your own one in perl :-)

  • ORA-28150 when accessing data from a remote database

    Portal Version: Portal 3.0.9.8.0
    RDBMS Version: 8.1.6.3.0
    OS/Vers. Where Portal is Installed:: Solaris 2.6
    Error Number(s):: ORA-28150
    I have a problem with using a database link to access a table in
    a remote database. So long as the dblink uses explicit logins
    then everything works correctly. When the dblink does not have a
    username then I get the ORA-28150 message. The database link is
    always public. A synonym is created locally that points to a
    synonym in the remote database. I am using the same Oracle user
    in both databases. The Oracle portal lightweight user has this
    same Oracle user as its default schema. The contents of the
    remote table are always visible to sqlplus, both when the link
    has a username and when it doesn't have a username.
    All the databases involved are on the same version of Oracle.
    I'm not sure which Oracle login is being used to access the
    remote database, if my lightweight user has a database schema
    of 'xyz' then does portal use 'xyz' to access the remote
    database? I would be very grateful for any help or pointers that
    might help to solve this problem.
    James
    To further clarify this, both my local and remote databases
    schemas are owned by the same login.
    The remote table has a public synonym.
    The link is public but uses default rather than explicit logins.
    The local table has a public synonym that points to the remote
    synonym via the database link.
    If I change the link to have an explicit login then everything
    works correctly.
    I can view the data in the remote database with TOAD and with
    sqlplus even when the database link has default login rather
    than explicit login.
    This seems to point to Portal as being the culprit. Can anyone
    tell me whether default logins can be used across database links
    with portal?
    TIA
    James

    832019 wrote:
    One way to do this is by creating a database link and joining the two tables directly. But this option is ruled out. So please suggest me some way of doing this.Thus you MUST use two connection strings.
    Thus you are going to be either constructing some intricate SQL dynamically or you are going to be dragging a lot of data over the wire and doing an in memory search.
    Although realistically that is what the database link table would have done as well.
    Might be better to look at moving the table data from one database to the other. Depends on size of course.

  • APEX Application accessing data from two different databases

    Hi All,
    Currently as we all know that APEX Application resides in database and is connected to the schema of that database.
    I want APEX Application to be running and accessing data from two different databases. Elaborating my question,
    Currently, my APEX Production Application is connected with XXXX Schema of DB1 Database(Where APEX Resides). Now I want to add some pages into this APEX Application for REPORT Purpose, But I want to connect this REPORT APEX Pages to get data from Different Schema YYYY for Database DB2.
    Is it possible to configure this scenario?
    The reason for doing this is to avoid the REPORT related (adhoc queries) resource utilization effect on Production DB1 Database.
    Thanks
    Nil

    1. If you do the joining of two or more tables in DB1 then all data is pulled over to DB1 and then the join is executed: so more data over the databaselink and more work for DB1. Better keep the joining stuff where the data resides and just pull exactly that data over that you need.
    2. Don't know about your different block sizes. Seems a nice question for one of the other forums (DBA or SQL).
    3. I mean create synonyms on DB1 for reports VIEWS in DB2.
    Hope all is clear!

  • Is it possible to insert data into a MySQL database with Java?

    Hello everyone!
    I would like to know, if it's possible to insert data into a MySQL database, with a JFrame inside a servlet?
    When the JFrame is first created it calls this method:
         * Connects the servlet with the MySQL database.
        private void connect(){
            try{
                Class.forName("com.mysql.jdbc.Driver");
                connection = DriverManager.getConnection(
                        "jdbc:mysql://localhost:3306/data", "root", "omfg123");
            }catch(ClassNotFoundException cnfe){
                cnfe.printStackTrace();
            }catch(SQLException sqle){
                sqle.printStackTrace();
        }Then, when you click the "Add" button, it executes this code:
                add.addActionListener(new ActionListener(){
                    @Override
                    public void actionPerformed(ActionEvent ae){
                        String employee = employeeName.getText();
                        String[] args = employee.split(" ");
                        firstName = args[0];
                        lastName = args[1];
                        execute();
                });And this is my "execute()" method:
         * Connects the servlet with the MySQL database.
         * - And executes the SQL queries.
        private void execute(){
            try{
                PreparedStatement statement = connection.prepareStatement("insert" +
                        " into employees values(" + firstName + ", " + lastName
                        + ")");
                ResultSet result = statement.executeQuery();
                String fullName = firstName + " " + lastName;
                printer.write("Employee " + fullName + " added.</br>");
            }catch(SQLException sqle){
                sqle.printStackTrace();
        }But when I click the "Add" button, nothing happens.

    This is what I use to insert into mysql. It works on windows.
    try {
                Class.forName("com.mysql.jdbc.Driver");
                String connectionUrl = "jdbc:mysql://" + loadip + "/custsig?" +
                        "user=root&password=";
                Connection con = DriverManager.getConnection(connectionUrl);
                newproc = jTextField1.getText();
                newsoft = jTextField2.getText();
                newdeb = jTextField3.getText();
                newcust = jTextField4.getText();
                if (newcust.equals("")) {
                    errorsig12 = 1;
                    jLabel1.setForeground(new java.awt.Color(255, 0, 0));
                } else if (newsoft.equals("")) {
                    errorsig12 = 1;
                    jLabel2.setForeground(new java.awt.Color(0, 0, 0));
                } else if (newproc.equals("")) {
                    errorsig12 = 1;
                    jLabel3.setForeground(new java.awt.Color(0, 0, 0));
                } else if (newdeb.equals("")) {
                    errorsig12 = 1;
                    jLabel4.setForeground(new java.awt.Color(0, 0, 0));
                if (errorsig12 == 0) {
                    PreparedStatement ps = con.prepareStatement("insert into customer set cust_name = ?,  software = ?, processor = ?, debit = ?");
                    ps.setString(4, newdeb);
                    ps.setString(3, newproc);
                    ps.setString(2, newsoft);
                    ps.setString(1, newcust);
                    int rs = ps.executeUpdate();
            } catch (SQLException eg) {
                System.out.println("SQL Exception: " + eg.toString());
            } catch (ClassNotFoundException cE) {
                System.out.println("Class Not Found Exception: " + cE.toString());
            }

  • Accessing and Managing RAC 10g database with 9i OEM

    can i Access and Manage RAC 10g database with 9i OEM? If yes How?

    9i EM can 'see' a 10g database and perform some basic functions (rsp. all what is known to 9i). But it cannot manage any 10g functionality , because it doesn't know it. So such a constellation doesn't make really sense. On the other hand 10g EM can manage 8i,9i and 10g databases.
    Werner

  • Linking logical database to TABLE in query

    Can we link Logical Database to Table during query creation in tcode SQVI
    Message was edited by:
            rohith modi
    Message was edited by:
            rohith modi

    go to sqvi and select "Table Join"in data source and enter title select radio button for "basis mode" and enter u reach a new screen in that new screen press "insert table" and give ur table name and again  press "insert table" and give another table in thsi way we can joint table in ABAP query.
    reward points if it is helpful

  • Logical Databases with ABAP OO

    As we move to ABAP OO paradigm, should we abandon the use of  logical databases?
    Edited by: Kimberly Carmack on Mar 10, 2009 12:47 AM

    Thank you for your input.
    I am aware of the capability to call FM LDB_PROCESS from a method. 
    But should I? Should I avoid using LDBs altogether? In what scenario should I use an LDB in OOA/OOD?
    I am very interested in hearing more about why "implicit triggering of events, implicit calls, and data sharing between programs....is contradictory ..to OO". Will you please elaborate?
    Let me give some insight as to the source of this question...
    Our company has made an acquistion. We are converting some of their customization into our system.
    I am currently re-engineering one of their reports.  It uses data from the tables: VBAK, VBAP, VBEP, VBUK, VBUP, VBEP, VBPA and VBFA.
    Although the old program does not use logical database, I see the VAV logical database lines up with this data request quite nicely.
    And since I know that there are  several of their reports and transactions that access the same data, the reusability of the LDB is quite attractive.
    However, our company has an initiative to conduct all new development using OO standards.
    So, should I used the VAV LDB from a local method?  Or would it be better practice to look at creating a global class that has methods that repeat the functionality of the VAV LDB? 
    And if global classes and new methods is the way to go, what would that global class look like? 
    This is what I am wondering about.
    Any feedback is appreciated.
    Edited by: Kimberly Carmack on Mar 10, 2009 2:19 PM

  • Problem with logical database DDF in ABAP query

    Hi All,
          I have created an ABAP query via the transaction SQ01 using the logical database DDF to retrieve customer master data from tables KNA1 & KNB1. The selection screen used is the screen 903 of the logical database DDF. But now the problem is that when I execute the query, I am getting a blank value in the tax code4(KNA1-STCD4) field though there is value in the KNA1 table for this particular field. This field was added to the table by means of a customizing include. Can anyone suggest a way to get around this problem so that I can view the content of the field STCD4 in the query.
    Thanks and regards,
    Sarath.

    I think it's not used by DDF.
    so you must check it with:
    check kna1-bran1 in s_bran1.
    A.

  • MRP Area tables for MD06 information access like SQ01, DBM logical database

    We currently use SQ01 DBM logical database to access MD06 information (tables MDKP and MDTB).  The MRP results from the MRP Area are not showing in this query. This implies that the MRP area, MRP results are stored in other tables.
    I have reviewed tables (MDLV, MDMA, MDLG, DVER, MDIP) from a similiar thread.  However, they do not contain the MRP data (planned orders, stock, production orders ect) like in the DBM logical database.   This data access is very powerfull for exporting planning data for more robust analysis.
    Any help is much appreciated.
    Thank you

    Hi,
           Please try FM: 'AUFBAUEN_MDPSX_ANZEIGEN'.
        MD06 dame come many table.
    Example:
    (Plant level)
      icm61w-fabkl  =  wk_fabkl.                  :Factory calender
      imt61d-matnr  =  p_matnr.                    : Materials
      imt61d-werks  =  it_tbl-werks.            : Plant
    AUFBAUEN_MDPSX_ANZEIGEN 呼出
      CALL FUNCTION 'AUFBAUEN_MDPSX_ANZEIGEN'
        EXPORTING
          ecm61w      =  icm61w
          ecm61x      =  icm61x
          emt61d      =  imt61d
          et399d      =  it399d
          ECM61B      =
          ESFILT      =
        IMPORTING
          icm61m      =  wa_e_cm61m
          imdkp       =  wa_e_mdkp
          imdsta      =  wa_e_mdsta
        TABLES
          mdpsx       =  it_mdps
    regards,
       Gaito

  • How to  Find Logical Database with table name

    Shankar

    Version 4.6x
    If you need to find the logical database for a table name, you can used <b>SE36</b> - Logical Database Bulider.
    Steps :-
    Go to transaction <b>SE36</b>
    Click <b>Extras -> Table usage</b>
    Supply the Table name and hit enter.
    A Display Logical Database will be shown on a pop-up windows.
    Reward  points  if it is  usefull ....
    Girish

  • Logical database with objects

    hi guys ,
    It is not possible to use the stamente GET  BSID for example , in methods ?
    thanks.

    You cannot use [GET node|http://help.sap.com/abapdocu_70/en/ABAPGET-.htm] outside of [logical database|http://help.sap.com/abapdocu_70/en/ABENLOGICAL_DATA_BASE_GLOSRY.htm], so only in [executable programs|http://help.sap.com/abapdocu_70/en/ABENEXECUTABLE_PROGRAM_GLOSRY.htm],
    but you can call a LDB from a method via FM [LDB_PROCESS.|http://www.sdn.sap.com/irj/scn/advancedsearch?query=ldb_process.]
    Regards,
    Raymond

  • Retriving Absence data from PNP logical database

    hi all,
    there is an function where i can get the absence data but my client wants in the following order
    But my client wants the report in following format:
    YEAR--- week number--
    number of absence hourse in that week
    2006 -
    WEEK -
    HOURS
    infotype is pa2001.
    thx in advance.
    Sunil

    Sunil,
    Table PTQUODED may be better suited than PA2001 because in PA2001 it is <b>very difficult to distinguish between absences that overlap between 2 or more weeks</b>.
    Here is sample code that does exactly what you need:
    REPORT  zggar_abs.
    DATA: ta_ptquoded  TYPE TABLE OF ptquoded.
    DATA: l_week       TYPE scal-week.
    DATA: BEGIN OF ta_abs OCCURS 0,
            pernr    TYPE pernr,
            year(4)  TYPE c,
            week(2)  TYPE c,
            abs      TYPE f,
          END OF ta_abs.
    DATA: wa_abs  LIKE LINE OF ta_abs.
    FIELD-SYMBOLS: <fs_ptquoded>  LIKE LINE OF ta_ptquoded.
    PARAMETERS : p_pernr  TYPE p_pernr.
    SELECT * FROM ptquoded
             INTO TABLE ta_ptquoded
             WHERE pernr = p_pernr.
    LOOP AT ta_ptquoded ASSIGNING <fs_ptquoded>.
      wa_abs-pernr = <fs_ptquoded>-pernr.
      CLEAR: l_week.
      CALL FUNCTION 'DATE_GET_WEEK'
        EXPORTING
          date = <fs_ptquoded>-datum
        IMPORTING
          week = l_week.
      wa_abs-year = l_week+0(4).
      wa_abs-week = l_week+4(2).
      wa_abs-abs  = <fs_ptquoded>-quode.
      COLLECT wa_abs INTO ta_abs.
    ENDLOOP.
    SORT ta_abs BY year week.
    LOOP AT ta_abs INTO wa_abs.
      WRITE : wa_abs-year, wa_abs-week, wa_abs-abs.
      NEW-LINE.
    ENDLOOP.
    Please, assign points and close the thread if solved.
    Best regards,
    Guillaume

  • PDF/multi-media database with metadata export capabilities

    i need to organize some pdfs and other file types in a database.
    i would like to do this in something that may let me /edit/ metadata but also in a way that lets me /export/ the pdf or other files so that the file that gets exported retains the metadata.
    right now i am considering Papers and FileMaker but i have also researched some of the Devon products.I am also wondering if something like Adobe Bridge might be good for this.
    can anyone offer any advice or leads on this?
    THANKS

    I have a similar problem.  I've narrowed down my specific issue to the unicode character U+1D70E (MATHEMATICAL ITALIC SMALL SIGMA).  The issue occurs when the keynote file contains:
    A text field containing the character... except when the this character is the first character in the text field
    An embedded PDF object containing this character (e.g., as generated by LaTeX's \sigma)
    My workaround has been to use unicode U+03C3 (GREEK SMALL LETTER SIGMA) instead, where possible.

  • Database with many schemas - query schema depending on user

    Let's assume we have a number of schemas in a database (hundred or so), which all contain the same tables.
    The customer wants one application express application which accesses only the schema corresponding to the user that is currently logged in.
    So database schema user1 contains table EMP, and schema user2 also contains EMP. Now the application is assigned both schemas user1 and user2, and when user2 logs in he only sees database schema user2.
    Is this possible with Apex? I've tried both built-in authentication and database authentication for the application, but found out this is truly only about authentication, because the query is always executed by APEX_PUBLIC_USER.
    How can I manage which schema is accessed with the authenticated user?
    Thanks in advance!

    Patrick,
    Every apex application has an "owner" attribute which is used as the parsing schema. All SQL and PL/SQL in your app is parsed as that schema using that schema's privileges. It is as if your application were a definer's rights stored procedure in that schema. The APEX_PUBLIC_USER schema is simply used to create the session and has no bearing on privileges. Currently there is no way to change the owner attribute of an application at runtime. However, your application can operate with any schema in the database according to the privileges granted to the parsing schema. Something along the lines of what you described was discussed at length in the following thread, maybe it will give you some ideas to try out: Access to owner schema throught APIs
    Scott

Maybe you are looking for

  • Subtraction for Adobe Acrobat 9 Pro Extended

    I have an Order Form (originally I downloaded it and didn't have the Fill In Options), I made it into the Fill In version of a PDF.  What I'd like to do is to have the TOTAL - CREDIT ENCLOSED= TOTAL ENCLOSED.  In the drop down list all I see are:  su

  • Installing Nokia Maps on N95

    Hi, trying to install the program "Nokia Maps" on my new N95, but it keeps failing. Have tried both from PC and from putting the file "Nokia_Maps_S60.SISX" on the Memory card and starting from there. It get s through "Install smart2go?" but then stop

  • Error Message ORA-31043: Element 'person' not globally defined in schema

    Hello All, We have registered 2 xsd documents as follows.. DECLARE    lc_test_xsd   CLOB; BEGIN    lc_test_xsd   := '<?xml version="1.0" encoding="UTF-8"?> <schema     xmlns="http://www.w3.org/2001/XMLSchema"     xmlns:tns="http://www.xyz.com/cicat/t

  • Consumption accounts not created as cost elements - Implications

    Hi There are following GL accounts as an Expense GL accounts: Cost of Raw Material Consumption Cost of Finished Goods Manufactured Cost of Finished Goods Sold Change in Stock WIP. I have not created them as cost elements since its asking me cost cent

  • Can't find Application Builder after installing AB 7.0 in a LabView 7.1 system

    Hello, I just installed applivcation Builder 7.0 on my windows desktop (XP, SP2) that has already installed a Labview 7.1. But nothing happens...I just can't find it. Not on "Werkzeuge" (Tools) or anywhere else in the application. Only in the explore