Run Multiple SQL's in one Database and record there counts automatically.

Hi ,
I have to run 33 Sql's in three databases seperately and then have to match there counts, manually if i do it takes 3+ hours, is there any way to automate this in Toad i.e all 33 Sql's run in different databases and in the end i get the result count of all of them and then i compare the results.
The 33 queries are:-
select count(*),'FND_LOOKUP_VALUES' as TABLE_NAME from FND_LOOKUP_VALUES a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'CSF_DEBRIEF_HEADERS' as TABLE_NAME from CSF_DEBRIEF_HEADERS a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'CSF_DEBRIEF_LINES' as TABLE_NAME from CSF_DEBRIEF_LINES a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'CS_INCIDENTS_AUDIT_B' as TABLE_NAME from CS_INCIDENTS_AUDIT_B a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'CS_INCIDENT_LINKS' as TABLE_NAME from CS.CS_INCIDENT_LINKS a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'CS_INCIDENT_SEVERITIES_TL' as TABLE_NAME from CS_INCIDENT_SEVERITIES_TL a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'CS_INCIDENT_STATUSES_TL' as TABLE_NAME from CS_INCIDENT_STATUSES_TL a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'CS_INCIDENT_TYPES_TL' as TABLE_NAME from CS_INCIDENT_TYPES_TL a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'CS_INCIDENT_URGENCIES_TL' as TABLE_NAME from CS_INCIDENT_URGENCIES_TL a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'CS_INCIDENTS_ALL_B' as TABLE_NAME from CS_INCIDENTS_ALL_B a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'CS_HZ_SR_CONTACT_POINTS' as TABLE_NAME from CS_HZ_SR_CONTACT_POINTS a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'CS_INCIDENTS_ALL_TL' as TABLE_NAME from CS_INCIDENTS_ALL_TL a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'CSI_ITEM_INSTANCES' as TABLE_NAME from CSI_ITEM_INSTANCES a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'JTF_RS_GROUPS_B' as TABLE_NAME from JTF_RS_GROUPS_B a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'JTF_TASK_REFERENCES_B' as TABLE_NAME from JTF_TASK_REFERENCES_B a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'OKC_K_LINES_B' as TABLE_NAME from OKC_K_LINES_B a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'OKC_K_ITEMS' as TABLE_NAME from OKC_K_ITEMS a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'HZ_RELATIONSHIPS' as TABLE_NAME from HZ_RELATIONSHIPS a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'HZ_CONTACT_POINTS' as TABLE_NAME from HZ_CONTACT_POINTS a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'HZ_PARTY_SITES' as TABLE_NAME from HZ_PARTY_SITES a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'MTL_SYSTEM_ITEMS_TL' as TABLE_NAME from MTL_SYSTEM_ITEMS_TL a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'JTF_TASK_ASSIGNMENTS' as TABLE_NAME from JTF_TASK_ASSIGNMENTS a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'JTF_TASK_PRIORITIES_TL' as TABLE_NAME from JTF_TASK_PRIORITIES_TL a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'JTF_TASK_PRIORITIES_B' as TABLE_NAME from JTF_TASK_PRIORITIES_B a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'JTF_TASK_STATUSES_TL' as TABLE_NAME from JTF_TASK_STATUSES_TL a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'JTF_TASKS_B' as TABLE_NAME from JTF_TASKS_B a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'JTF_OBJECTS_TL' as TABLE_NAME from JTF_OBJECTS_TL a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'JTF_TASK_TYPES_TL' as TABLE_NAME from JTF_TASK_TYPES_TL a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'JTF_TASK_AUDITS_B' as TABLE_NAME from JTF_TASK_AUDITS_B a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'JTF_TASK_ASSIGNMENTS' as TABLE_NAME from JTF_TASK_ASSIGNMENTS a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*),'EMCCS_SRLOG_ADD_AUDIT_COLMS' as TABLE_NAME from EMCCS_SRLOG_ADD_AUDIT_COLMS a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*), 'cs_incident_statuses_b' as TABLE_NAME from cs.cs_incident_statuses_b a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
select count(*), 'jtf_task_statuses_b' as TABLE_NAME from jtf.jtf_task_statuses_b a
where a.creation_date > to_date('08/06/2010','mm/dd/yyyy')
and a.creation_date <= to_date('08/07/2010','mm/dd/yyyy');
Thanks in Advance.

Hi,
From TOAD you can connect to three different databases- that is different sessions with different DB's
make a use of union operator and execute the queries.
You can see the output in - output window.
Select the output and right click save to excel sheet.
Parallely you can run 33 sql in other sessions, do the same process as stated above and save to the same excel sheet but different instance (different sheet of excel)
Now compare -- its demo for how to utilize the tool.
Other way around, Create one table with two columns table_name, count.
execute the select queries with union Operator and directly insert into the table.
Perform the same above two steps in different databases.
Now, from one database - create database link to other two dabases and provide select privilege on that table in order to access.
Now, write a query to compare two tables using dblink.
HTH
- Pavan Kumar N
OCP- Oracle 9i/10g
http://oracleinternals.blogspot.com

Similar Messages

  • Query about multiple connection pools under one database

    Hi,
    I have s query about connection pool, now we have a requirement,
    we have two schemas in one db, some data store in one schema, some in another schema,
    all tables are the same, but data is different, we want to retrive all data under two schemas,
    so we need two connection pools under one database,
    I have set two system DSN, and each connection pool was mapping to one DSN,
    but after I importing tables into RPD, when I view data, there is a dialog let me select connection pool. so If this, when we drag columns in answer, it will definitely get wrong.
    so how to realize this function about multiple connection pools under one database and we can get data normally.

    Hi,
    Try this step
    1)Better to create two different DSN for the same database with different user id and password
    2)now create multiple connection pool in the same database in u r RPD physical layer .
    also refer this link : for imporving performance
    http://obiee101.blogspot.com/2009/01/obiee-multiple-connection-pools.html
    http://gerardnico.com/wiki/dat/obiee/connection_pool
    Thanks
    Deva

  • How to run multiple sqls in one jasper report

    Hello!
    Is there any one that can help me in integrating/ viewing my xml file to the web. I have my GUI in jsp format, the jsp makes a call to the bean class and then finally bean class hit my reports java class.The report java class generates the report and shows it in the new window.
    The problem is with writing mutiple sql queries and showing the result from multiple sql queires in one report.
    I do not know how to write multiple queries for just 1 report. I can give a simple example of my problem also.
    My report is as follows:
    First Name Middle Name Last name
    Sandeep               Pathak
    Now First and Middle Name come from 1st sql query and Last Name comes from 2nd sql query.
    I want to join the result obtained from both the sql queries in one Jasper Report (not as 2 separate sections but as one section).
    My problem is how to view my report in the web. furthermore, how to make complex query in jasperassistant, like multiple table in one query, because i�m integrating multiple query in one form or sheets of paper.
    Please help me in this.
    Thanks
    Sandeep
    Calance
    India

    Hi Sheldon,
    we never have issues when we combine standard objects, like a cliear with a load inforprovider, or the master data integration you mentioned in your document. However, from the moment we combine a script logic with a standard package (like a move) it does not work .The data package contains the task needed for the script and for the move. the process chain is called up but always comes in error in the first step (BPC modify dynamically ) ... there is also no log when checking the view status ...
    I can sent you some screenshots if you like ...
    D

  • Run a SQL procedure with multi database querying from Excel

    I'm using SQL Server 2008 Enterprise. I created a procedure in one database. The procedure is composed of several queries to different databases and the final combined result set is being displayed.
    I try to execute it via Excel, so the results will appear automatically in Excel sheet, but I'm getting the error:
    "The query did not run, or the database table could not be opened. Check the database server or contact your DBA. Make sure the external
    database is available and hasn't been moved or recognized, then try the operation again".
    I created a simpler procedure that queries only one database, and the results displayed at the Excel sheet with no issues.
    I suspect that, the original procedure failed due to the fact that I'm querying several databases in the procedure, when in the connection details of the "External Data Properties", only one database is mentioned.
    My question is - can it be solved? Can I use multiple databases in the procedure and see it in the Excel?
    Thanks, Roni

    Use Global Temporary table(##) instead of Local Temporary table(#).
    The scope of the temp table is limited to one database and it dispose automatically when jump to another database.
    No, that is not correct. From where did you get that idea?
    USE tempdb
    go
    CREATE TABLE #a(a int NOT NULL)
    INSERT #a(a) VALUES(9)
    go
    USE master
    go
    SELECT a FROM #a
    go
    USE msdb
    go
    SELECT a FROM #a
    go
    DROP TABLE #a
    And Roni's stored procedure does not even change database.
    ...however, the temp tables may very well be the problem, but for a completely different reason. Excel may ask SQL Server for the shape of the result set before it runs the procedeure, and this does not work with the temp tables. For this reason, using a
    table variable my save the show.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to execute multiple sql query in one time?

    HI
    I'm trying to convert my sql project In Oracle. In sql i could run multiple select statement/query in once and they return in multiple table result respectively. but in oracle its not executed.
    like:
    sqlQry := "Select * from abc; select * from qwe; select * from kkk; select * from xyz"
    its return 4 table abc, qwe,kkk,xyz to my dataset result
    how it is possible in oracle 10g

    Saten Chamoli wrote:
    I'm trying to convert my sql project In Oracle. In sql i could run multiple select statement/query in once and they return in multiple table result respectively. but in oracle its not executed.
    like:
    sqlQry := "Select * from abc; select * from qwe; select * from kkk; select * from xyz"
    its return 4 table abc, qwe,kkk,xyz to my dataset result That is pretty much a hack - there are no ANSI SQL standards supporting this syntax. It makes no sense either.
    If you want to combine 4 data sets, there are the UNION and UNION ALL set commands.
    If you want to create 4 cursors with a single call, then use the following (anonymous PL/SQL block) call:
    begin
      open :c1 for select * from abc;
      open :c2 for select * from qwe;
      open :c3 for select * from kkk;
      open :c4 for select * from xyz;
    end;Bind 4 client cursor variables to the ref cursors c1 to c4 and make the call to Oracle.
    And I suggest that you read up on Oracle concepts and fundamentals as your approach with you "sql project" shows ignorance in this regard.

  • Portal Users in one database and Groups is other? portal 9.2

    Hi All!
    My question is as follows: Is it possible to have portal users stored in one database and groups stored in other database? Also the these are the groups to which the users belongs and groups already exist as part of the current legacy system. I have to create new application and only store users in the new DB and use the groups from the existing legacy system. Does BEA supports that? Also note that these groups are nothing but custom entities and not in BEA's GROUP table. So is there a way I can write some kind of provider which will extend BEA's user-group framework? I am using BEA portal 9.2.
    Please help!
    Thanks
    Sanjay

    You can fetch data from multiple lists in ListViewWebpart, this can be possible through Content Query web part or Custom Web Part using visual studio but in that case you can not get the standard SharePoint funcationality for list (which is available in
    ListViewWebparts).
    No OOB filter available for multi-choice column, you also have to go with custom solution to achieve this.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I am not aware of a way except for photos that allows you to select multiple files in an email. I even checked settings in the Adobe Reader app, and it does not show that ability.

  • "Please connect to one database and try again."

    "Please connect to one database and try again."
    That is the error message that comes up when I launch Apple Mail. I have not made any changes to my Apple Mail in 8 months. Not one.
    Has anyone seen this error message before? I'm not even sure what is failing as all of my mail (at least in a quick check) seems to be working (a few IMAP and a few POP accounts).
    Thanks for any info regarding this... strange....

    Well, all of a sudden it's gone now... probably some strange IMAP occurance, but who knows.
    Thanks.

  • Is there anybody out there who is still using Appleworks Database and is there a good alternative?

    Is there anybody else out there who is still using Appleworks Database and is there a good alternative?

    There is no replacement program that will directly read Appleworks database files.
    You have two options:
    1.  Continue to use Appleworks 6.2.9, which requires Rosetta installed in Snow Leopard, or the access to Rosetta by installing Snow Leopard Server in virtualization for use in Lion, Mt. Lion or Mavericks:
                                       [click on image to enlarge]
    2.  Export your database information into a common export function (such as delimited ASCII text file) and build a new database file in an alternate database program (such as Filemaker Pro) and import your information into it.  More information here:
    http://www.wilmut.webspace.virginmedia.com/notes/aw/page5.html

  • Select records from one database and insert it into another database

    Hi
    I need to write a statement to select records from one database which is on machine 1 and insert these records on a table in another database which is on machine 2. Following is what I did:
    1. I created the following script on machine 2
    sqlplus remedy_intf/test@sptd @load_hrdata.sql
    2. I created the following sql statements in file called load_hrdata.sql:
    rem This script will perform the following steps
    rem 1. Delete previous HR data/table to start w/ clean import tables
    rem 2. Create database link to HR database, and
    rem 3. Create User Data import table taking info from HR
    rem 4. Drop HRP link before exiting
    SET COPYCOMMIT 100
    delete from remedy.remedy_feed;
    commit;
    COPY FROM nav/donnelley@hrp -
    INSERT INTO remedy.remedy_feed -
    (EMPLID, FIRST_NAME, MI, LAST_NAME, BUSINESS_TITLE, WORK_PHONE, -
    RRD_INTRNT_EMAIL, LOCATION, RRD_OFFICE_MAIL, RRD_BUS_UNIT_DESCR) -
    USING SELECT EMPLID, FIRST_NAME, MI, LAST_NAME, BUSINESS_TITLE, WORK_PHONE, -
    RRD_INTRNT_EMAIL, LOCATION, RRD_OFFICE_MAIL, RRD_BUS_UNIT_DESCR -
    FROM ps_rrd_intf_medium -
    where empl_status IN ('A', 'L', 'P', 'S', 'X')
    COMMIT;
    EXIT;
    However, whenever I run the statement I keep getting the following error:
    SP2-0498: missing parenthetical column list or USING keyword
    Do you have any suggestions on how I can fix this or what am I doing wrong?
    Thanks
    Ali

    This doesn't seem to relate to Adobe Reader. Please let us know the product you are using so we may redirect you or refer to the list of forums at http://forums.adobe.com/

  • Multiple SQL statement in one step of procedure

    Hi,
    is it possible to run more than one sql command in only one step of a procedure.
    I need to run a script which insert about 2-300 records and i don't want to create 2-300 step.. any suggestions ?
    i tried :
    insert into myTable (myCol, myCol2) values('value1','value2');
    insert into myTable (myCol, myCol2) values('value2','value2');
    insert into myTable (myCol, myCol2) values('value3','value2');
    but it doesn't work!

    Hi,
    Why don't you try to write all your data:
    value1;value2 etc... in a file and create an interface that load this data to your table?
    Any way if you are in Oracle database try the begin end block as it said.
    or write a jython script to do the job.

  • Run multiple SQL*Loader control files from command prompt

    I have written control files for 15 different tables with specific data files for each table. I have build the control files using toad for each one of them at once. Now I want to run the sql loader for all the tables one time. I know I cannot run multiple files from toad and not sure If I can run from the command prompt.
    Please let me know If I can.

    skvaish1 wrote:
    Hi,
    On unix you can create a script to runn all sqlldr at once like as followes.
    1. Create a script load_sqlldr.sh with following content.
    export ORACLE_SID=<YOUR DB_SID>
    export ORACLE_HOME=<Your Oracle Home>
    export PATH=$ORACLE_HOME/bin:$PATH
    sqlldr (Full command with parameter for 1st table) &
    sqlldr (Full command with parameter for 2nd table) &
    sqlldr (Full command with parameter for 3rd table) &
    sqlldr (Full command with parameter for 4th table) &
    sqlldr (Full command with parameter for 15th table) &
    2. Then execute the script.
    Regards1. Can I also write script load_sqlldr.sh with following content
    sqlldr user/psswd@db_name control=controlfile1.ctl
    sqlldr user/psswd@db_name control=controlfile2.ctl
    sqlldr user/psswd@db_name control=controlfile3.ctl
    sqlldr user/psswd@db_name control=controlfile15.ctl
    2. Then execute the script.

  • ORA-600 [17069] error while running catrelod.sql to downgrade 11g database

    Hi,
    We are downgrading our 11.2.0.2 database to 10.2.0.4. We have successfullly run catdwgrd.sql without any errors in 11g env. While running catrelod.sql in 10g env we are facing the following error:
    SQL> @?/rdbms/admin/catrelod.sql
    TIMESTAMP
    COMP_TIMESTAMP RELOD__BGN 2013-04-24 20:15:39 2456407 72939
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>  The following statement will cause an "ORA-01722: invalid number"
    DOC>  error if the database server version is not 10.0.0.
    DOC>  Shutdown ABORT and use a different script or a different server.
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>#
    no rows selected
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>  The following statement will cause an "ORA-01722: invalid number"
    DOC>  error if the database has not been opened for MIGRATE.
    DOC>
    DOC>  Perform a "SHUTDOWN ABORT"  and
    DOC>  restart using MIGRATE.
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>#
    no rows selected
    Session altered.
    Session altered.
    no rows selected
    DECLARE
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [17069], [0x170FB8CA8], [], [], [],
    [], [], []I have checked the trace file in udump but it dint give any readable information.
    Please find below environment details.
    OS : RHEL 5 64 bit
    11g Database : 11.2.0.2
    10g Database : 10.2.0.4
    Kindly assist.

    KR10822864 wrote:
    Whenever an ORA-600 error is raised a trace file is generated and an entry written to the alert.log with details of the trace file location. Starting with Oracle Database 11g Release 1, the diagnosability infrastructure was introduced which places the trace and core files into a location controlled by the DIAGNOSTIC_DEST initialization parameter when an incident, such as an ORA-600 is created. For earlier versions, the trace file will be written to either USER_DUMP_DEST (if the error was caught in a user process) or BACKGROUND_DUMP_DEST (if the error was caught in a background process like PMON or SMON). The trace file contains vital information about what led to the error condition
    please post 40 lines of alert log info .
    MOS Note:ORA-600 [17069] "Failed to pin a library cache object after 50 attempts" [ID 39616.1]
    "Look in the trace file for the text 'LIBRARY OBJECT HANDLE: handle=170fb8ca8'"
    if not found any massages like above please raise [email protected].
    Hi KR,
    Thanks for your help. As suggested I have checked the trace file to search and found the below info. I suppose it is some kind of lock but not sure about it. Please let me know if the following makes sense:
        SO: 0x21158a6e0, type: 3, owner: 0x211006f28, flag: INIT/-/-/0x00
        (call) sess: cur 211572570, rec 211572570, usr 211572570; depth: 0
          SO: 0x21158a9b8, type: 3, owner: 0x21158a6e0, flag: INIT/-/-/0x00
          (call) sess: cur 211572570, rec 0, usr 211572570; depth: 1
            SO: 0x1727a2618, type: 54, owner: 0x21158a9b8, flag: INIT/-/-/0x00
            LIBRARY OBJECT PIN: pin=1727a2618 handle=170fb8ca8 mode=S lock=171243e98
            user=211572570 session=211572570 count=1 mask=001d savepoint=0x43 flags=[00]
            SO: 0x171243e98, type: 53, owner: 0x21158a9b8, flag: INIT/-/-/0x00
            LIBRARY OBJECT LOCK: lock=171243e98 handle=170fb8ca8 mode=S
            call pin=0x1727a2618 session pin=(nil) hpc=0000 hlc=0000
            htl=0x171243f18[0x17278a310,0x17278a310] htb=0x17278a310 ssga=0x172789928
            user=211572570 session=211572570 count=1 flags=PNC/[0400] savepoint=0x43
            LIBRARY OBJECT HANDLE: handle=170fb8ca8 mtx=0x170fb8dd8(0) cdp=0
            name=SYS.STANDARD
            hash=51570e225ed8a9a803b7318f191e0a8d timestamp=04-18-2006 00:00:00
            namespace=TABL flags=KGHP/TIM/SML/[02000000]
            kkkk-dddd-llll=0000-001d-001d lock=S pin=S latch#=3 hpc=0004 hlc=0004
            lwt=0x170fb8d50[0x170fb8d50,0x170fb8d50] ltm=0x170fb8d60[0x170fb8d60,0x170fb8d60]
            pwt=0x170fb8d18[0x170fb8d18,0x170fb8d18] ptm=0x170fb8d28[0x170fb8d28,0x170fb8d28]
            ref=0x170fb8d80[0x170fb8d80,0x170fb8d80] lnd=0x170fb8d98[0x170f05b50,0x170fa6858]
              LIBRARY OBJECT: object=170e82de8
              type=PCKG flags=EXS/LOC[0005] pflags=NST/IVR[0201] status=VALD load=0
              DATA BLOCKS:
              data#     heap  pointer    status pins change whr
                  0 170e831f8 170e82fc0 I/P/A/-/-    0 NONE   00
          SO: 0x21158e470, type: 5, owner: 0x21158a6e0, flag: INIT/-/-/0x00
          (enqueue) CU-70E88BC0-00000001    DID: 0001-001F-00000004
          lv: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  res_flag: 0x2
          res: 0x17677adc8, mode: X, lock_flag: 0x0
          own: 0x211572570, sess: 0x211572570, proc: 0x211006f28, prv: 0x17677add8
          SO: 0x177f82c28, type: 59, owner: 0x21158a6e0, flag: INIT/-/-/0x00
          cursor enqueue
          child: 170e89348, flag: 53, number: 0
          parent: 170e89738

  • CR produces modern SQL joining on one machine and old style on another

    Hi.
    I have a configuration related question that I hope someone here could help me with. The background is that we are two project members that have very similar setup, but where one crusial outcome differs between the environments and this difference is a real obstacle to the project. I assume that there is a way to fix it but I cannot find out how.
    So, what actually differs is that when I use the Crystal Designer to build up a report query (using the Database expert, Data and Links), the SQL that is produced by the CR Designer uses the modern approach to table joining with the join conditions in the FROM clause (i.e. by jusing "INNER JOIN" and "OUTER JOIN" statements) wheras my collegue's CR Designer produces old style table joining with the join conditions in the where clause and using the join operator to achieve outer joins. Now, the problem arises when we both make changes in the same rpt file and when there is a need to use outer joins in a way that is not allowed with the old style joining.
    So, my question is where (in what component) this behaviour is configured. We are both using CR2008 (different builds but I did not find this issue looking at the changelog) and Oracle db connection using the JDBC provider.
    I am grateful for any help.
    Kind regards,
    Mikael

    Thanks for your anwer Don.
    I had hoped that there was a more "user friendly" approach to getting the configurations correct. Neither of us have experience in the tools you mentioned and the same goes for making registry changes etc in general. For now, it seems that we can live with the problem. Maybe we will dig into it again at a later stage.
    Kind regards.
    /Mikael

  • Do we need run catbundle.sql file for new databases.

    dear all,
    i have doubt over execution of catbundle.sql or not?
    scenario:
    i have insatlled 10gr2 on rhel5 and applied patchset 4 (10.2.0.5) and applied Oracle® Database Patch 10248542 - 10.2.0.5.2 Patch Set Update
    after this i have create fresh database.
    now,
    in Oracle® Database Patch 10248542 - 10.2.0.5.2 Patch Set Update document it has specified in belwo section
    3.4 Post Installation Instructions for Databases Created or Upgraded after Installation of PSU 10.2.0.5.2 in the Oracle Home
    These instructions are for a database that is created or upgraded after the installation of PSU 10.2.0.5.2.
    You must execute the steps in Section 3.3.2, "Loading Modified SQL Files into the Database" for any new database only if it was created by any of the following methods:
    Using DBCA (Database Configuration Assistant) to select a sample database (General, Data Warehouse, Transaction Processing)
    Using a script that was created by DBCA that creates a database from a sample database
    Cloning a database that was created by either of the two preceding methods, and if the steps in Section 3.3.2, "Loading Modified SQL Files into the Database" were not executed after PSU 10.2.0.5.2 was applied
    Upgraded databases do not require any post-installation steps.
    so do we need to run catbundle here or not.
    since i have created fresh database after applying 10.2.0.5 PSU2 why does it required.
    opatch output:
    [oracle@RG615 ~]$ opatch lsinventory
    Invoking OPatch 10.2.0.5.1
    Oracle Interim Patch Installer version 10.2.0.5.1
    Copyright (c) 2010, Oracle Corporation. All rights reserved.
    Oracle Home : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1
    Central Inventory : /prd/crm/swbcrmdb/usr/oracle/oraInventory
    from : /etc/oraInst.loc
    OPatch version : 10.2.0.5.1
    OUI version : 10.2.0.5.0
    OUI location : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/oui
    Log file location : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2011-05-03_11-41-34AM.log
    Patch history file: /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt
    Lsinventory Output file location : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2011-05-03_11-41-34AM.txt
    Installed Top-level Products (2):
    Oracle Database 10g 10.2.0.1.0
    Oracle Database 10g Release 2 Patch Set 4 10.2.0.5.0
    There are 2 products installed in this Oracle Home.
    Interim patches (1) :
    Patch 10248542 : applied on Tue May 03 07:32:29 BST 2011
    Unique Patch ID: 13292123
    Created on 25 Dec 2010, 23:11:24 hrs PST8PDT
    Bugs fixed:
    6402302, 9713537, 8350262, 9949948, 8394351, 10327179, 8546356, 9711859
    9714832, 9952230, 10248542, 8544696, 9963497, 9772888, 8664189, 10249537
    7519406, 9952270, 8277300, 9726739
    OPatch succeeded.

    Pl post the output of view DBA_REGISTRY_HISTORY - see MOS Doc 605795.1 (Introduction To Oracle Database catbundle.sql)
    Was the database created using DBCA or manually using scripts ?
    Srini

Maybe you are looking for

  • Problem in Bsp

    hi brian i need a small help from you.i am uploading file into bps web,i followed your pdf guide.it is working fine.in my scenario,i had developed a screen design and in that i wants to incorporate the file upload functinality.when we generate the bp

  • Is it possible to put xsl file at some other location except BPEL folder fo

    Hi, I want to put my xsl file in some location not in BPEL suitcase. If i use processXSLT function using full path. it thorws filenot found exception. So does it mean i can not put my file at any other location and specify absolute file path? Thanks,

  • Ken Burns flickers, why?

    Very disapointed with Ken Burns flickering on playback with photos, not video.

  • Personalization and commerce server

    Hi all, Does weblogic 5.1 bundles personalization and commerce server

  • WRT54GS Access Restrictions

    I have a WRT54GS v7.2 with firmware version v7.2.06 build 002, Capture(month.num4)Apr. 30, 2008. I have been asked to allow internet access, but restrict access to social networking sites (facebook and twitter) except during a couple of time windows