Question about B1if-Database in SQL-Mgmt-Studio

Hello,
We have made some changes in the configuration in SLD.
We made some more Di-Proxy-Ports and then made Proxygroups for the Databases.
Nearly every half hour, in SQL-Mgmt Studio we can see this "task" ?
During the time, this task is online, the Queue-Monitor collects all Jobs... but not more.
After this Job has finished... B1i begins to work up the jobs.
Can anyone tell me something about "Rollback Transac" in  B1if-Database ?
Thanks
Markus

Passing the exam and becoming certified are not a matter of simply reading a book or taking a training class. While books and classroom materials as well as in-class training are all important steps in preparing for an exam, experience and research are just as important. I cannot tell you that there are 53 questions on the exam and every single question maps directly back to page 13, paragraph 3 in XX book. However, If you have the classroom material, and you have the list of exam topics, you should be able to find most of the information you need. In some cases, if you are not completely familiar with a specific topic, or you don't feel like the information in the book gives you all the information you need, you may need to do a little additional research. This is all part of preparing for an exam. This process is what makes you successful as a certified professional.
Your focus seems to be solely on the course materials that you have and what volumes and chapters you should read. I'm trying to give you a different perspective - preparing for an exam is not necessarily about taking one course or reading one book and being ready. You need to review the exam topics and be sure that you are familiar with each topic.
Regards,
Brandye Barrington

Similar Messages

  • Question about import database pk, fk

    Hi
    I want to ask a question about imported database. I imported database and I noticed tables doesnt have Primary key or foreign key. They havent relation between eachs. Why can this occured ?
    is it about import or another something?

    yeah ı am surprised none of tables have pk or fk ..
    but ı want to show you http://i51.tinypic.com/2hedc9d.jpg
    what is blue shapes in there ?
    can be foerign keys ?

  • A question about the impact of SQL*PLUS SERVEROUTPUT option on v$sql

    Hello everybody,
    SQL> SELECT * FROM v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0  Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL>
    OS : Fedora Core 17 (X86_64) Kernel 3.6.6-1.fc17.x86_64I would like to ask a question about the SQL*Plus SET SERVEROUTPUT ON/OFF option and its impact on queries on views such as v$sql and v$session. Here is the problem
    Actually I define three variables in SQL*Plus in order to store sid, serial# and prev_sql_id columns from v$session in order to be able to use them later, several times in different other queries, while I'm still working in the current session.
    So, here is how I proceed
    SET SERVEROUTPUT ON;  -- I often activate this option as the first line of almost all of my SQL-PL/SQL script files
    SET SQLBLANKLINES ON;
    VARIABLE mysid NUMBER
    VARIABLE myserial# NUMBER;
    VARIABLE saved_sql_id VARCHAR2(13);
    -- So first I store sid and serial# for the current session
    BEGIN
        SELECT sid, serial# INTO :mysid, :myserial#
        FROM v$session
        WHERE audsid = SYS_CONTEXT('UserEnv', 'SessionId');
    END;
    PL/SQL procedure successfully completed.
    -- Just check to see the result
    SQL> SELECT :mysid, :myserial# FROM DUAL;
        :MYSID :MYSERIAL#
           129   1067
    SQL> Now, let's say that I want to run the following query as the last SQL statement run within my current session
    SELECT * FROM employees WHERE salary >= 2800 AND ROWNUM <= 10;According to Oracle® Database Reference 11g Release 2 (11.2) description for v$session
    http://docs.oracle.com/cd/E11882_01/server.112/e25513/dynviews_3016.htm#REFRN30223]
    the column prev_sql_id includes the sql_id of the last sql statement executed for the given sid and serial# which in the case of my example, it will be the above mentioned SELECT query on the employees table. As a result, right after the SELECT statement on the employees table I run the following
    BEGIN
        SELECT prev_sql_id INTO :saved_sql_id
        FROM v$session
        WHERE sid = :mysid AND serial# = :myserial#;
    END;
    PL/SQL procedure successfully completed.
    SQL> SELECT :saved_sql_id FROM DUAL;
    :SAVED_SQL_ID
    9babjv8yq8ru3
    SQL> Having the value of sql_id, I'm supposed to find all information about cursor(s) for my SELECT statement and also its sql_text value in v$sql. Yet here is what I get when I query v$sql upon the stored sql_id
    SELECT child_number, sql_id, sql_text
    FROM v$sql
    WHERE sql_id = :saved_sql_id;
    CHILD_NUMBER   SQL_ID          SQL_TEXT
    0              9babjv8yq8ru3    BEGIN DBMS_OUTPUT.GET_LINES(:LINES, :NUMLINES); END;Therefore instead of
    SELECT * FROM employees WHERE salary >= 2800 AND ROWNUM <= 10;for the value of sql_text I get the following value
    BEGIN DBMS_OUTPUT.GET_LINES(:LINES, :NUMLINES);Which is not of course what I was expecting to find in v$sql for the given sql_id.
    After a bit googling I found the following thread on the OTN forum where it had been suggested (well I think maybe not exactly for the same problem) to turn off SERVEROUTPUT.
    Problem with dbms_xplan.display_cursor
    This was precisely what I did
    SET SERVEROUTPUT OFFafter that I repeated the whole procedure and this time everything worked pretty well as expected. I checked SQL*Plus documentation for SERVEROUTPUT
    and also v$session page, yet I didn't find anything indicating that SERVEROUTPUT should be switched off whenever views such as v$sql, v$session
    are queired. I don't really understand the link in terms of impact that one can have on the other or better to say rather, why there is an impact
    Could anyone kindly make some clarification?
    thanks in advance,
    Regards,
    Dariyoosh

    >
    and also v$session page, yet I didn't find anything indicating that SERVEROUTPUT should be switched off whenever views such as v$sql, v$session
    are queired. I don't really understand the link in terms of impact that one can have on the other or better to say rather, why there is an impact
    Hi Dariyoosh,
    SET SERVEROUTPUT ON has the effect of executing dbms_output.get_lines after each and every statement. Not only related to system view.
    Here below what Tom Kyte is explaining in this page:
    Now, sqlplus sees this functionality and says "hey, would not it be nice for me to dump this buffer to screen for the user?". So, they added the SQLPlus command "set serveroutput on" which does two things
    1) it tells SQLPLUS you would like it <b>to execute dbms_output.get_lines after each and every statement</b>. You would like it to do this network rounding after each call. You would like this extra overhead to take place (think of an install script with hundreds/thousands of statements to be executed -- perhaps, just perhaps you don't want this extra call after every call)
    2) SQLPLUS automatically calls the dbms_output API "enable" to turn on the buffering that happens in the package.Regards.
    Al

  • Few questions about upgrading database

    Hi everyone,
    greetings of the day
    I have few questions about the upgrading database,
    In export and import mode
    1.can we have new name for the target database,
    2.I think we need to create tablespaces ,do we need to create users as well
    3.If we are upgrading from 9i to 10g database ,any activity to be perfromed other than creating a new sysaux tablespace
    4.How come we get consistent export
    In DBUA mode ( in the same machine only)
    1.Do we need shutdown / startup restrict the database
    2.How can we move the files to the new location
    3.Can we change db_name of the database
    4.Can we use the old database as well
    In manual upgration using catupgrd scripts
    1.Can we rename the db_name
    2.can we use old database as well
    3.how to move the database files to the new location
    4.can we perform this kind of upgrade on a different server
    5.when we startup upgrade in the new home ,how it identifies the old database in-order to upgrade the old one
    Thanks

    udayjampani wrote:
    Hi everyone,
    greetings of the day
    Pl post details of source and target database versions, along with your OS details.
    I have few questions about the upgrading database,
    In export and import mode
    1.can we have new name for the target database,Yes.
    2.I think we need to create tablespaces ,do we need to create users as wellYou can create users, but it is not necessary. You need to pre-create tablespaces only if their characteristics/locations on the target are different than on the source.
    3.If we are upgrading from 9i to 10g database ,any activity to be perfromed other than thisNot that I am aware of - see the steps in the Upgrade Guide - http://docs.oracle.com/cd/B19306_01/server.102/b14238/expimp.htm
    4.How come we get consistent export wetherEnsure the database is started in restricted mode, so users will not be able to access the database during the export.
    >
    In DBUA mode ( in the same machine only)
    1.Do we need shutdown / startup restrict the databaseNo - DBUA will do this automatically for you.
    2.How can we move the files to the new locationYou can after the upgrade move the datafiles to wherever you want - use the ALTER DATABASE RENAME DATAFILE (http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_1004.htm#i2082829) command.
    3.Can we change db_name of the databaseI do not believe this is possible with DBUA.
    4.Can we use the old database as wellNo - the database will be upgraded by DBUA - there is no "old" database.
    >
    >
    In manual upgration using catupgrd scripts
    1.Can we rename the db_nameYes.
    2.can we use old database as wellNo - the scripts will upgrade the database - there is no "old" database.
    3.how to move the database files to the new locationSee above.
    4.can we perform this kind of upgrade on a different serverPl elaborate on what you mean by this. You can copy the existing database to a different server (assuming compatible OS) and upgrade it there.
    >
    >
    ThanksHTH
    Srini

  • A Question about LV Database Connectivi​ty Toolkit

    Hello everyone!
    I have a question about using LabVIEW DataBase Connectivity Toolkit 1.0.2 that eagerly needs your help. I don't know how to programmaticlly create a new Microsoft Access(.mdb)file (Not a new table in a existing Database)using LabVIEW Database Connectivity Toolkit1.0.2. As you know, usually we can set up the connection by creating a Universal Data Link (.udl) file and inputting the path to the DB Tools Open Connec VI in the LabVIEW DataBase Connectivity Toolkit. However, searching a table within an existing database containing a great many tables is a toilfulif job. If I want to use a new DataBase file with the date and time string as its name to log my acquisition data in each measurement process, how to do? I am sure someone of you must can resolve my question, and thanks very much for your help.

    I don't know what your real design considerations are here but, from I understand from your post, this is a really bad way to go about the process of logging data -- IF you want to be able to do significant ad hoc or stored procedures analyses after it has been collected.  Using separate MDB files for data that ONLY differs by one field (namely that date) is not the most efficient way to organize it.  What would be much more efficient would a joined table including the date and a reference ID of some sort for the various measurements that were done.  That way your stored procedures for looking at ALL measurements of type X would be very simple going across ALL dates.  Making such a comparison across multiple MDB files is a much more challenging process AND doing the original data collection in that way doesn't really gain you anything.
    Generally, if something is difficult to do in the DCT (Database Connectivity Toolkit) it's because it's a "not good thing" to do within MDBs.  I know that others probably disagree with that but I've worked with Access since it's initial release and other RDBMs prior to that both through compiled tools, Unix scripts, etc.  You may, of course, still choose to proceed in the way you've described and that may work excellently for you. 

  • AUto-renaming mdf & ldf filenames when restoring a database with SQL Management Studio

    Hi!
    I am using SQL Management Studio 2014 and I am experiencing some problems when restoring a database backup.
    I have a SQL Server 2008R2 & SQL Server 2012 instances.
    On the 2012 instance, when I restore a database and rename it into a new name, the mdf and ldf files get automatically renamed into the new database name : Great, this is the behavior that I expect.
    On the 2008R2 instance, the mdf and ldf files don't automatically get renamed to match the new database name and I have to perform the renaming manually - pretty annoying.
    Has anybody experienced this problem ? If yes, do you know of a fix ?
    Thank you
    Frederic

    Hi,
    You are using an external tool (SSMS GUI interface) which give you some behaviors like default names. this is very simple, just use a simple query to restore the database and dont use the GUI if you dont like its behavior
    (this behavior might change from time to time). You can use the profiler to make sure what is
    the real query that the SSMS sent to the server.
    >> How to: Restore a Database to a New Location and Name (Transact-SQL)
    http://technet.microsoft.com/en-us/library/ms190447(v=sql.105).aspx
    -- use any name that you want in the restore
    RESTORE DATABASE MyNewAdvWorks
    FROM AdventureWorks2008R2_Backup
    WITH RECOVERY,
    MOVE 'AdventureWorks2008R2_Data' TO 'D:\MyData\MyNewAdvWorks_Data.mdf',
    MOVE 'AdventureWorks2008R2_Log' TO 'F:\MyLog\MyNewAdvWorks_Log.ldf'
    GO
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Basic question about Flashback Database

    Hi,
    I have a very generic question about using Flashback Database.
    On my testing systems, for performance testing and simulation purposes, I want to create a guaranteed restore point so I can test impact on batch when code change releases are done, before deployment in production.  My confusion is with respect to redo logs, as summarized in the questions below:
    1. Is it possible to change redo log files, when a guaranteed restore point has been configured?
    2. If yes, will the Flashback to restore point, also change the size of the redo logs?
    I could not find anything in the docs about this....hence my question....
    Appreciate your time taken in responding to these questions....
    Regards.

    HI,
    donneskold wrote:
    Hi,
    I have a very generic question about using Flashback Database.
    On my testing systems, for performance testing and simulation purposes, I want to create a guaranteed restore point so I can test impact on batch when code change releases are done, before deployment in production.  My confusion is with respect to redo logs, as summarized in the questions below:
    1. Is it possible to change redo log files, when a guaranteed restore point has been configured?
    1) Yes it is possible.
    2. If yes, will the Flashback to restore point, also change the size of the redo logs?
    2) It will not change the size of redo log file.  Cannot resize a redo log file..
    I could not find anything in the docs about this....hence my question....
    Appreciate your time taken in responding to these questions....
    Regards.
    Thank you

  • How to connect to SP2010 content database from SQL Management Studio?

    I would like to migrate the SP 2010 Foundation content to 2013 Foundation.
    Both default installations with no external SQL server.
    When trying to connect from SQL Management Studio Express 2008 I get the error below.
    I'm using windows authentication and my domain admin account.
    tried all the steps  from
    this guide.
    What am I doing wrong here?
    Cannot connect to (local).
    ADDITIONAL INFORMATION:
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
    TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.) (Microsoft SQL Server, Error: 10061)

    Hi,
    According to your description, my understanding is that you could not connect from SQL Management Studio Express 2008.
    Please try to connect to <MACHINENAME>\SQLEXPRESS or .\SQLEXPRESS instead of (local).
    A similar post for your reference:
    http://nali.org/post/96133108434/sql-server-a-network-related-or-instance-specific-error
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Lync 2013 and problem with copy/paste from SQL Mgmt Studio.

    Hi Everyone,
    Recently one of ours programmers noticed a very interesting issue which is a real pain in the a## for him and his colleagues. It was all fine with Lync client 2010, problem started when moved some people to 2013 client.
    When someone sends him a message with SQL Code, and he is pasting it into SQL mgmt std. he gets dashes "-" instead of spaces " ".
    I thought this is a local PC issue, but:
    1. On 2010 it worked, stopped all of a sudden when they changed lync client to 2013
    2. They are pasting code on the SERVER not local SQL mgmt std. on their client machines
    3. Even if I send him a code from Lync 2010 and he is pasting that from his 2013 client - he gets "-" dashes, so I guess it is not important from where I send the message, but from where he is copying it.
    As for now, I have noticed that problem with guys from England and region of APAC - they have lync 2013 client already.
    Really appreciate any help as I donot have any point where to start troubleshooting...
    Cheers guys,

    Hi,
    I test the issue with my colleague and didn't find the same issue.
    Here is the screenshot:
    So please check if Lync Server 2013 and all the issued Lync 2013 client update to the latest version firstly, it not update to the latest version, update it and then test again.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Question about Oracle Database 11g: Program with PL/SQL

    Hello,
    I've read that:
    This course is a combination of Oracle Database 11g: PL/SQL Fundamentals and Oracle Database 11g: Develop PL/SQL Program Units courses.
    In order to preparing for this exam, i should read the student guide, so there are 4 pdf files. One is Oracle Database 11g: PL/SQL Fundamentals, and the other 3 are regarding to Oracle Database 11g: Develop PL/SQL Program Units (volume I, II and III). My question is, regarding to this last one (Oracle Database 11g: Develop PL/SQL Program Units), which volume should i read? I saw that volume I has 400+ pages, and the IIIrd ~80.
    Which document should i read? What's the difference between them?
    Thanks!

    Passing the exam and becoming certified are not a matter of simply reading a book or taking a training class. While books and classroom materials as well as in-class training are all important steps in preparing for an exam, experience and research are just as important. I cannot tell you that there are 53 questions on the exam and every single question maps directly back to page 13, paragraph 3 in XX book. However, If you have the classroom material, and you have the list of exam topics, you should be able to find most of the information you need. In some cases, if you are not completely familiar with a specific topic, or you don't feel like the information in the book gives you all the information you need, you may need to do a little additional research. This is all part of preparing for an exam. This process is what makes you successful as a certified professional.
    Your focus seems to be solely on the course materials that you have and what volumes and chapters you should read. I'm trying to give you a different perspective - preparing for an exam is not necessarily about taking one course or reading one book and being ready. You need to review the exam topics and be sure that you are familiar with each topic.
    Regards,
    Brandye Barrington

  • How to install SQL Mgmt Studio on the front end

    SQL 2008 R2
    I need to install SSMS on the front end server. 
    On the SQL Windows Server 2008 R2, When I click on START -->ALL PROGRAMS-->MICROSOFT SQL SERVER 2008 R2
    I see the following:
       SQL Server Management Studio
       Analysis Services
       Configuration Tools
       Integration Services
       Performance Tools
      Looking at the above list, I think SSMS has already been installed?  What is a front end server?
      Thanks for your help.

      What is a front end server?
      Thanks for your help.
    That's not a good question I guess you were asking about whether SSMS is present or not you already got the answer. Front end is there any server can be front end server its name used for terminal server where user generally perform some action.
    Front end is term used when dealing with 3 or N tier architecture which is beyond scope of this forum
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Some questions about my database access bean

    The following is a bean (minus imports) that access a database and populates several "articles" and then returns a set of them. pretty plain really.
    The bean is modified from here to add exception cactching and 'fix' other problems along the way.
    http://forum.java.sun.com/thread.jspa?threadID=727979 (thanks evnafets)
    The results list is genericified(!) to avoif unchecked calls (casting) in this line result.add(article);
    public class dataAccess {
        public List getNewsResults() throws NamingException{
            Context initContext = new InitialContext();
            Context envContext = (Context) initContext.lookup("java:/comp/env");
            DataSource ds = (DataSource) envContext.lookup("jdbc/mySite");
            Connection conn = null;
            Statement stmt = null;
            ResultSet rs = null;
            List<newsArticleBean> result = new ArrayList<newsArticleBean>();
            try {
                String sql = "SELECT * FROM news, users WHERE news.user = users.username";
                conn = ds.getConnection();
                stmt = conn.createStatement();
                rs = stmt.executeQuery(sql);
                stmt.execute();
                while (rs.next()) {
                    newsArticleBean article = new newsArticleBean();
                    article.setTitle(rs.getString("title"));
                    article.setAuthor(rs.getString("author"));
                    article.setEmail(rs.getString("email"));
                    article.setNews(rs.getString("news"));
                    article.setPictureURL(rs.getString("pictureURL"));
                    article.setDate(rs.getDate("date"));
                    article.setTime(rs.getTime("time"));
                    result.add(article);
            } catch (SQLException e) {
                //error message goes here
            finally {
                try {
                    if (rs != null) rs.close();
                } catch (Exception e) {
                    //error message goes here
                try {
                    if (stmt != null) stmt.close();
                } catch (Exception e) {
                    //error message goes here
                try {
                    if (conn != null) conn.close();
                } catch (Exception e) {
                    //error message goes here
        return result;
    }Some questions that would be of great help if answered:
    Im not too sure what a context does or what im doing with it here. My current understanding is that it allows concurrent access of the database.
            Context initContext = new InitialContext();
            Context envContext = (Context) initContext.lookup("java:/comp/env");
            DataSource ds = (DataSource) envContext.lookup("jdbc/mySite");This section im having trouble with too.
    As I see it:
    I set what my sql query will be;
    get a connection @ conn
    now im not too sure what stmt is getting, is it getting ready to send the query.
    stmt does not have an executeQuery() method, so im never actually sure when the sql query gets sent to the database. I have subbed with execute() but it does not take any arguments so the problem of not sending anything remains.
                String sql = "SELECT * FROM news, users WHERE news.user = users.username";
                conn = ds.getConnection();
                stmt = conn.createStatement();
                rs = stmt.executeQuery(sql);Any help greatly appreciated.

    Some questions that would be of great help if
    answered:
    Im not too sure what a context does or what im doing
    with it here. My current understanding is that it
    allows concurrent access of the database.
    Context initContext = new InitialContext();
    Context envContext = (Context)
    Context) initContext.lookup("java:/comp/env");
    DataSource ds = (DataSource)
    aSource) envContext.lookup("jdbc/mySite");
    Nops, it has nothing to do with concurrent access. You use tomcat to set up a Connection Pool. This causes the tomcat server to create a pool of reusable connections on startup. The connection pool (or set of Connection objects) are given a name and the server binds the set of objects to this name in a 'registry'.
    From the code, you use jndi to access the Connections from the pooled objects. While doing so, you have to provide the jndi name against which this object pool is bound to.
    You'll be more clear when you read the fllowing resources.
    http://java.sun.com/products/jndi/
    http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
    >
    This section im having trouble with too.
    As I see it:
    I set what my sql query will be;
    get a connection @ conn
    now im not too sure what stmt is getting, is it
    getting ready to send the query.Yes something of that sort - basically it provides you a wrapper which can accept your query, use the connection object to access the db, execute the query and return a result set.
    stmt does not have an executeQuery() method, so im
    never actually sure when the sql query gets sent to
    the database.er....it has and that's what you use in your code. (http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Statement.html#executeQuery(java.lang.String))
    I have subbed with execute() but it
    does not take any arguments so the problem of not
    sending anything remains.Hmmm....the execute() method is for a different purpose and it does accept arguments (http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Statement.html#execute(java.lang.String))
    >
                String sql = "SELECT * FROM news,
    users WHERE news.user = users.username";
    conn = ds.getConnection();
    stmt = conn.createStatement();
    rs = stmt.executeQuery(sql);Any help greatly appreciated.ram.

  • Question about 'Generic Database Connector'

    Hi SAP IdM Gurus,
    I found 'Generic Database Connector' in the list of SAP NW IdM connectors overview.
    I'd like to check the capability of this connector in detail. 
    I'm wondering whether it could provide not only  a connectivity of RDBMS, but also custom-developed application using the RDBSM for their ID/Password repository. If it provides only a connectivity of RDBMS, Is there a connector for the custom-developed application using the RDBSM for their ID/Password repository?
    My question is that which connector is used for the connectivity  of custom-developed application using the RDBSM for their ID/Password repository.
    I would really appreciate it if you could answer the question.
    Thanks
    Kenneth

    Kenneth,
    The Generic Database connector uses a JDBC connection and allows for the and writing to databases.
    That being said, you can also use this connection to set up access to the system or drop access using SQL commands and set them up per the framework.
    What specific Database are you working with?
    Matt

  • Question about using objects in SQL query.

    I had posted this question in the SQL/PLSQL forum but I guess nobody took the time to understand exactly what I am asking so I decided to try here hoping to get the answer. So here is the thing:
    I have created generic object type "tree" - the constructor takes as a parameter sql query which returns "node_id" and "parent_node_id" - this is all we need to have a tree. The object has all related to a tree structure member functions and one of them is "oldest_relative" (the tree may not be fully connected - it may be more like a set of many trees, so it's not necessary all nodes to have the same root).
    I also have departments table with the following fields: department_id, parent_department_id, department_name,...
    all records in the table w/out parent_departments (parent_department_id is null) are considered divisions.
    Now if I run the following query:
    SELECT "DEPARTMENT_ID", "PARENT_DEPARTMENT_ID", "DEPARTMENT_NAME", tree('select department_id "node_id", parent_department_id "parent_node_id" from departments').oldest_relative("DEPARTMENT_ID") "DIVISION_ID" FROM departments
    my question is: Is the tree object created for every row or does Oracle somehow caches the object since the object itself is not changing but only the parameter for the oldest_relative member function.
    The table only has a few hunderd records and I can't see much of a difference in the execution time btw the query above and query like this:
    SELECT "DEPARTMENT_ID", "PARENT_DEPARTMENT_ID", "DEPARTMENT_NAME", b.t.oldest_relative("DEPARTMENT_ID") "DIVISION_ID"
    FROM departments left join (select tree('select department_id "node_id", parent_department_id "parent_node_id" from departments') t from dual) b on 1 = 1
    where the object is clearly created just ones. (there is probably a better way to do it instead of this join)
    Pls elaborate
    George

    Not exactly sure what the question is...
    As I understand, you are comparing the following two constructor calls:
    +select..  tree('select department_id "node_id", parent_department_id "parent_node_id" from departments').oldest_relative("DEPARTMENT_ID") ... FROM ...+
    +select tree('select department_id "node_id", parent_department_id "parent_node_id" from departments') ... FROM dual+
    These calls are the same (besides the 1st one doing an immediate implicit call to a method of the object being constructed). The number of times these are being called depends on the number of times this SQL projection is applied - and that is determined by the number of rows being projected by the SELECT.
    The latter one is against DUAL which only has a single row. So that constructor is only called once. The former can be against multiple rows. Obviously a single pass through a data set is desirable - which means that the sub-select (use by the constructor) should ideally only be executed once and makes the 2nd method more desirable.
    However, I'm having a hard time understanding why the class and constructor are at all needed. Why pull data from a SQL table into PL memory? As that is where the class will need to cache and store the results of that construction parameter SQL SELECT. And once in PL memory, how does the object effectively access, search and use this cached data?
    PL memory is expensive. It is not sharable.
    PL data structures are primitive - these cannot be compared to SQL structures in the form of tables and columns that can be stored in a number of physical ways (index tables, hash tables, partitioned tables, clustered tables, etc). Cannot be indexed like SQL structures using B+tree, bitmap, function and other indexing methods. Cannot be sorted, grouped, analysed, filtered, etc like SQL structured data.
    It makes very little sense to read SQL data into a class and then deal with that data, cached in expensive PL memory, using primitive PL structures.
    And the same would be true if Java or C# was used. The best place for data is inside the SQL engine. That is the most superior environment for data. It can processes more data, scale better, perform better and offer more flexibility, than pulling data from it and then crunch that data using PL or Java or C#.

  • Question about using database links in Forms 10g

    I have a form that uses a database link for the "Query Data Source Name," i.e. it is set to some_view@some_db_link
    For some reason when I run a query using the DB link the query takes approximately 30 seconds. When I remove the link and go local the query takes about one second. Has anybody observed and addressed this issue before (without going local of course)?
    Thanks,
    Thomas

    Let me first say that it is never a good idea to use a db link in the data source. It is better to create a synonym in the database and use this as the data source. If the db link changes, you only have to do this in the database, without recompiling forms.
    create synonym some_view for some_view@some_db_link
    This may already solve your problem. If not, than see if the query is also slow in sqlplus. You may have a problem in your connection between the two databases.

Maybe you are looking for

  • Converting XML string to ABAP types

    Hello, I am having a requirement where i wanted to parse incoming XML string and i checked few of examples of CALL TRANSFORMATION id. but whatever examples i checked those were simple transformation with no hierarchy. My source structure <record> <fi

  • Still Image Transitions

    I'm doing a textbook all about images. I want to compare A/B/C images in place on the page with just a simple cut between them. And as I compose the page, that's just what it looks like. But then I take the eBook to my New iPad and the transitions ar

  • Match Code Objects and ID's

    Hi,     Can you explain what is Match code objects and ID Regards, Bharath Mohan B

  • OSB Dynamic Routing and Transaction Rollback

    Hi, I have implemented dynamic routing to different jms business services. That's the flow: 1. I have a proxy service which is invoked via a message delivered to a jms queue(XA connection factory), this queue is configured with Error Destination, exp

  • What's the "web server" in WAS... ?

    A non-SAP colleague of mine bugs me with questions like "what is the web server-part of WAS? It's Apache, right?" Me being relatively ignorant about these specific down-to-earth technical sides to the WAS, means I have to ask: What IS the "web server