Where do I look at UTLTZUV2.SQL output?

Dear gurus,
I'm in the process of applying Security Patch 16: 6637237(CPUJAN2008) on my Windows 32bit envs. In this process, I need to check the existing TSTZ data using this oracle provided script. I ran it and didn't see the result. Here in the info I got:
SQL> SET ECHO ON
SQL> @c:\C:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\utltzuv2.sql
SP2-0310: unable to open file "c:\C:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\utltzuv2.sql"
SQL> @c:\C:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\utltzuv2.sql
SP2-0310: unable to open file "c:\C:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\utltzuv2.sql"
SQL> @c:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\utltzuv2.sql
SQL> Rem
SQL> Rem $Header: utltzuv2.sql 21-dec-2006.02:22:10 huagli Exp $
SQL> Rem
SQL> Rem utltzuv2.sql
SQL> Rem
SQL> Rem Copyright (c) 2003, 2006, Oracle. All rights reserved.
SQL> Rem
SQL> Rem NAME
SQL> Rem utltzuv2.sql - time zone file upgrade to a new version script
SQL> Rem
SQL> Rem DESCRIPTION
SQL> Rem The contents of the files timezone.dat and timezlrg.dat
SQL> Rem are usually updated to a new version to reflect the transition rule
SQL> Rem changes for some time zone region names. The transition rule
SQL> Rem changes of some time zones might affect the column data of
SQL> Rem TIMESTAMP WITH TIME ZONE data type. For example, if users
SQL> Rem enter TIMESTAMP '2003-02-17 09:00:00 America/Sao_Paulo',
SQL> Rem we convert the data to UTC based on the transition rules in the
SQL> Rem time zone file and store them on the disk. So '2003-02-17 11:00:00'
SQL> Rem along with the time zone id for 'America/Sao_Paulo' is stored
SQL> Rem because the offset for this particular time is '-02:00' . Now the
SQL> Rem transition rules are modified and the offset for this particular
SQL> Rem time is changed to '-03:00'. when users retrieve the data,
SQL> Rem they will get '2003-02-17 08:00:00 America/Sao_Paulo'. There is
SQL> Rem one hour difference compared to the original value.
SQL> Rem
SQL> Rem Refer to $ORACLE_HOME/oracore/zoneinfo/readme.txt for detailed
SQL> Rem information about time zone file updates.
SQL> Rem
SQL> Rem This script should be run before you update your database's
SQL> Rem time zone file to the latest version. This is a pre-update script.
SQL> Rem
SQL> Rem This script first determines the time zone version currently in use
SQL> Rem before the upgrade. It then queries an external table to get all the
SQL> Rem affected timezone regions between the current version (version before
SQL> Rem the update) and the latest one. This external table points to the file
SQL> Rem timezdif.csv, which contains all the affected time zone names in each
SQL> Rem version. Please make sure that you have the latest version of the
SQL> Rem timezdif.csv (the one corresponding to the latest timezone data file),
SQL> Rem before you run the script.
SQL> Rem
SQL> Rem Then, this script scans the database to find out all columns
SQL> Rem of TIMESTAMP WITH TIME ZONE data type. If the column is
SQL> Rem in the regular table, the script also finds out how many
SQL> Rem rows might be affected by checking whether the column data
SQL> Rem contain the values for the affected time zone names.
SQL> Rem If the column is in the nested table's storage table, we
SQL> Rem don't scan the data to find out how many rows are affected but
SQL> Rem we still report the table and column info.
SQL> Rem
SQL> Rem The result is stored in the table sys.sys_tzuv2_temptab.
SQL> Rem Before running the script, make sure the table name doesn't
SQL> Rem conflict with any existing table object. It it does,
SQL> Rem change the table name sys.sys_tzuv2_temptab to some other name
SQL> Rem in the script. You can query the table to view the result:
SQL> Rem     select * from sys.sys_tzuv2_temptab;
SQL> Rem
SQL> Rem If your database has column data that will be affected by the
SQL> Rem time zone file update, dump the data before you upgrade to the
SQL> Rem new version. After the upgrade, you need update the data
SQL> Rem to make sure the data is stored based on the new rules.
SQL> Rem
SQL> Rem For example, user scott has a table tztab:
SQL> Rem create table tztab(x number primary key, y timestamp with time zone);
SQL> Rem insert into tztab values(1, timestamp '');
SQL> Rem
SQL> Rem Before upgrade, you can create a table tztab_back, note
SQL> Rem column y here is defined as VARCHAR2 to preserve the original
SQL> Rem value.
SQL> Rem create table tztab_back(x number primary key, y varchar2(256));
SQL> Rem insert into tztab_back select x,
SQL> Rem          to_char(y, 'YYYY-MM-DD HH24.MI.SSXFF TZR') from tztab;
SQL> Rem
SQL> Rem After upgrade, you need update the data in the table tztab using
SQL> Rem the value in tztab_back.
SQL> Rem update tztab t set t.y = (select to_timestamp_tz(t1.y,
SQL> Rem     'YYYY-MM-DD HH24.MI.SSXFF TZR') from tztab_back t1 where t.x=t1.x);
SQL> Rem
SQL> Rem Or you can use export utility to export your data before the upgrade
SQL> Rem and them import your data again after the upgrade.
SQL> Rem
SQL> Rem drop table sys.sys_tzuv2_temptab;
SQL> Rem once you are done with the time zone file upgrade.
SQL> Rem
SQL> Rem NOTES
SQL> Rem * This script needs to be run before upgrading to a new version time
SQL> Rem     zone file. Also, before running this script, please make sure that
SQL> Rem     you get the latest version of timezdif.csv file.
SQL> Rem * This script must be run using SQL*PLUS.
SQL> Rem * You must be connected AS SYSDBA to run this script.
SQL> Rem * This script is created only for Oracle 10.1 or higer. A separate
SQL> Rem     script is provided for Oracle 9i.
SQL> Rem * Two files, tzuv2ext_*.log and tzuv2ext_*.bad will be created in
SQL> Rem     the directory of $ORACLE_HOME/oracore/zoneinfo when using the
SQL> Rem     external table for timezdif.csv file to get the affected time zones.
SQL> Rem     After running the script, please refer to these two files to see if
SQL> Rem     there are any rows in timezdif.csv, which are not loaded. If so,
SQL> Rem     it might affect the correct selection of affected tables in the database.
SQL> Rem     You can always delete tzuv2ext_*.log and tzuv2ext_*.bad.
SQL> Rem * A Java stored procedure is created to get the system file separator,
SQL> Rem     e.g., Windows uses '\' and Unix uses '/'. Before you run this script,
SQL> Rem     make sure that the Java source/class object does not conflict with
SQL> Rem     any existing Java source/class object in the database. If it does, please
SQL> Rem     change the Java source/class object name GetFileSeparator to some other
SQL> Rem     name in the script. Also make sure that the Java stored procedure does not
SQL> Rem     conflict with any existing function in the database. If it does, please
SQL> Rem     change the function name GET_FILE_SEPARATOR to some other name in the script.
SQL> Rem     If renaming is needed, please make sure that you change all the occurences
SQL> Rem     to make them consistent.
SQL> Rem
SQL> Rem
SQL> Rem MODIFIED (MM/DD/YY)
SQL> Rem huagli     12/21/06 - Backport huagli_bug-5126270 from main
SQL> Rem               time zone update
SQL> Rem srsubram     05/12/05 - 4331865:Modify script to work with prior
SQL> Rem               releases
SQL> Rem lkumar     05/11/04 - Fix lrg 1691434.
SQL> Rem rchennoj     12/02/03 - Fix query
SQL> Rem qyu      11/22/03 - qyu_bug-3236585
SQL> Rem qyu      11/17/03 - Created
SQL> Rem
SQL>
SQL> SET SERVEROUTPUT ON
SQL>
SQL> Rem=========================================================================
SQL> Rem Check any existing table with this name sys.sys_tzuv2_temptab
SQL> Rem=========================================================================
SQL> DROP TABLE sys.sys_tzuv2_temptab
2 /
DROP TABLE sys.sys_tzuv2_temptab
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> CREATE TABLE sys.sys_tzuv2_temptab
2 (
3 table_owner VARCHAR2(30),
4 table_name VARCHAR2(30),
5 column_name VARCHAR2(30),
6 rowcount     NUMBER,
7 nested_tab VARCHAR2(3)
8 )
9 /
Table created.
SQL>
SQL> Rem========================================================================
SQL> Rem Check any existing table with this name sys.sys_tzuv2_temptab1
SQL> Rem========================================================================
SQL> DROP TABLE sys.sys_tzuv2_temptab1
2 /
DROP TABLE sys.sys_tzuv2_temptab1
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> CREATE TABLE sys.sys_tzuv2_temptab1
2 (
3 time_zone_name VARCHAR2(60)
4 )
5 /
Table created.
SQL>
SQL> DECLARE
2
3 dbv     VARCHAR2(10);
4 dbtzv     VARCHAR2(5);
5 numrows     NUMBER;
6 TYPE cursor_t IS REF CURSOR;
7 cursor_tstz cursor_t;
8 tstz_owner VARCHAR2(30);
9 tstz_tname VARCHAR2(30);
10 tstz_qcname VARCHAR2(4000);
11 tz_version NUMBER;
12 oracle_home VARCHAR(4000);
13 tz_count INTEGER;
14 plsql_block VARCHAR2(200);
15 file_separator VARCHAR2(3);
16
17 BEGIN
18
19 --========================================================================
20 -- Make sure that only version 10 or higher uses this script
21 --========================================================================
22
23 SELECT substr(version,1,6) INTO dbv FROM v$instance;
24
25 IF dbv = '8.1.7.'
26 THEN
27      DBMS_OUTPUT.PUT_LINE('TIMEZONE data type was not supported in ' ||
28                'Release 8.1.7.');
29      DBMS_OUTPUT.PUT_LINE('No need to validate TIMEZONE data.');
30      RETURN;
31 END IF;
32
33 IF dbv in ('9.0.1.','9.2.0.')
34 THEN
35      DBMS_OUTPUT.PUT_LINE('Please contact Oracle support to get the script ' ||
36                'for Release 9.0.1 or 9.2.0.');
37      RETURN;
38 END IF;
39
40 --========================================================================
41 -- Get $ORACLE_HOME
42 --========================================================================
43
44 plsql_block := 'BEGIN SYS.DBMS_SYSTEM.GET_ENV(:1, :2); END;';
45 EXECUTE IMMEDIATE plsql_block USING 'ORACLE_HOME', OUT oracle_home;
46
47 --========================================================================
48 -- Use an external table created on timezdif.csv file to get the
49 -- affected time zones. In this way, every time when time zone information
50 -- changes, we only need to provide user with the updated timezdif.csv file
51 -- without changing utltzuv2.sql.
52 --
53 -- 1. Setup the directory for timezdif.csv and log files(log, bad log)
54 -- 2. Check any existing external table with this name
55 -- sys.sys_tzuv2_affected_regions
56 -- 3. Setup the parameters of the external table
57 --========================================================================
58
59 --========================================================================
60 -- Create a Java stored procedure to get the file separator
61 --========================================================================
62
63 EXECUTE IMMEDIATE 'CREATE OR REPLACE AND COMPILE JAVA SOURCE
64                NAMED "GetFileSeparator" AS
65                public class GetFileSeparator {
66                     public static String get() {
67                     return System.getProperty("file.separator");
68                     }
69                }';
70
71 EXECUTE IMMEDIATE 'CREATE OR REPLACE FUNCTION GET_FILE_SEPARATOR
72                RETURN VARCHAR2
73                AS LANGUAGE JAVA
74                NAME ''GetFileSeparator.get() return java.lang.String'';';
75
76
77 plsql_block := 'BEGIN :1 := GET_FILE_SEPARATOR(); END;';
78 EXECUTE IMMEDIATE plsql_block USING OUT file_separator;
79
80 EXECUTE IMMEDIATE 'CREATE OR REPLACE DIRECTORY timezdif_dir AS ''' ||
81                oracle_home || file_separator || 'oracore' ||
82                          file_separator || 'zoneinfo''';
83
84
85 EXECUTE IMMEDIATE
86      'SELECT count(*)
87      FROM all_tables
88      WHERE owner = ''SYS'' and table_name = ''SYS_TZUV2_AFFECTED_REGIONS'''
89 INTO tz_count;
90
91 IF tz_count <> 0
92 THEN
93      EXECUTE IMMEDIATE 'DROP TABLE sys.sys_tzuv2_affected_regions';
94 END IF;
95
96
97 EXECUTE IMMEDIATE 'CREATE TABLE sys.sys_tzuv2_affected_regions
98                (
99                version     NUMBER,
100                time_zone_name VARCHAR2(40),
101                from_year     NUMBER,
102                to_year     NUMBER
103                )
104                ORGANIZATION EXTERNAL
105                (
106                TYPE ORACLE_LOADER
107                DEFAULT DIRECTORY timezdif_dir
108                ACCESS PARAMETERS
109                (
110                records delimited by newline
111                badfile timezdif_dir:''tzuvext%a_%p.bad''
112                logfile timezdif_dir:''tzuvext%a_%p.log''
113                fields terminated by '',''
114                lrtrim
115                missing field values are null
116                (
117                     version, time_zone_name, from_year, to_year
118                )
119                )
120                LOCATION (''timezdif.csv'')
121                )
122                REJECT LIMIT UNLIMITED';
123
124 --======================================================================
125 -- Check if the TIMEZONE data is consistent with the latest version.
126 --======================================================================
127
128 EXECUTE IMMEDIATE 'SELECT version FROM v$timezone_file' INTO tz_version;
129 EXECUTE IMMEDIATE 'SELECT MAX(version) FROM sys_tzuv2_affected_regions' INTO dbtzv;
130
131 IF tz_version = dbtzv
132 THEN
133      DBMS_OUTPUT.PUT_LINE('TIMEZONE data is consistent with the latest version ' ||
134                dbtzv || ' transition rules');
135      DBMS_OUTPUT.PUT_LINE('No need to validate TIMEZONE data');
136      RETURN;
137 END IF;
138
139 --======================================================================
140 -- Get tables with columns defined as type TIMESTAMP WITH TIME ZONE.
141 --======================================================================
142
143 OPEN cursor_tstz FOR
144      'SELECT atc.owner, atc.table_name, atc.qualified_col_name ' ||
145      'FROM "ALL_TAB_COLS" atc, "ALL_TABLES" at ' ||
146      'WHERE data_type LIKE ''TIMESTAMP%WITH TIME ZONE''' ||
147      ' AND atc.owner = at.owner AND atc.table_name = at.table_name ' ||
148      'ORDER BY atc.owner, atc.table_name, atc.column_name';
149
150 --======================================================================
151 -- Query the external table to get all the affected time zones based
152 -- on the current database time zone version, and then put them into
153 -- a temporary table, sys_tzuv2_temptab1.
154 --======================================================================
155
156 EXECUTE IMMEDIATE
157      'INSERT INTO sys.sys_tzuv2_temptab1
158      SELECT DISTINCT time_zone_name
159      FROM sys.sys_tzuv2_affected_regions t
160      WHERE t.version > ' || tz_version;
161
162 EXECUTE IMMEDIATE 'ANALYZE TABLE sys.sys_tzuv2_temptab1 ' ||
163                'COMPUTE STATISTICS';
164
165 --======================================================================
166 -- Check regular table columns.
167 --======================================================================
168 LOOP
169      BEGIN
170      FETCH cursor_tstz INTO tstz_owner, tstz_tname, tstz_qcname;
171      EXIT WHEN cursor_tstz%NOTFOUND;
172
173      EXECUTE IMMEDIATE
174           'SELECT COUNT(1) FROM ' ||
175           tstz_owner || '."' || tstz_tname || '" t_alias, ' ||
176           ' sys.sys_tzuv2_temptab1 r ' ||
177           ' WHERE UPPER(r.time_zone_name) = ' ||
178           ' UPPER(TO_CHAR(t_alias.' || tstz_qcname || ', ''TZR'')) ' INTO numrows;
179
180      IF numrows > 0 THEN
181           EXECUTE IMMEDIATE ' INSERT INTO sys.sys_tzuv2_temptab VALUES (''' ||
182           tstz_owner || ''',''' || tstz_tname || ''',''' ||
183           tstz_qcname || ''',' || numrows || ', ''NO'')';
184      END IF;
185
186      EXCEPTION
187      WHEN OTHERS THEN
188           DBMS_OUTPUT.PUT_LINE('OWNER : ' || tstz_owner);
189           DBMS_OUTPUT.PUT_LINE('TABLE : ' || tstz_tname);
190           DBMS_OUTPUT.PUT_LINE('COLUMN : ' || tstz_qcname);
191           DBMS_OUTPUT.PUT_LINE(SQLERRM);
192      END;
193 END LOOP;
194
195 --======================================================================
196 -- Check nested table columns.
197 --======================================================================
198
199 EXECUTE IMMEDIATE
200      'INSERT INTO sys.sys_tzuv2_temptab
201      SELECT owner, table_name, qualified_col_name, NULL, ''YES''
202      FROM ALL_NESTED_TABLE_COLS
203      WHERE data_type like ''TIMESTAMP%WITH TIME ZONE''';
204
205
206 DBMS_OUTPUT.PUT_LINE('Query sys.sys_tzuv2_temptab table to see ' ||
207                'if any TIMEZONE data is affected by version ' || dbtzv ||
208                ' transition rules');
209
210 EXCEPTION
211 WHEN OTHERS THEN
212      IF INSTR(SQLERRM, 'KUP-04063') != 0
213      THEN
214      DBMS_OUTPUT.PUT_LINE('Directory for file timezdif.csv is not correctly specified!');
215      DBMS_OUTPUT.PUT_LINE(sqlerrm);
216      ELSIF INSTR(SQLERRM, 'KUP-04040') != 0
217      THEN
218      DBMS_OUTPUT.PUT_LINE('File timezdif.csv in TIMEZDIF_DIR not found!');
219      ELSE
220      DBMS_OUTPUT.PUT_LINE(SQLERRM);
221      END IF;
222
223 END;
224 /
ORA-25153: Temporary Tablespace is Empty
PL/SQL procedure successfully completed.
SQL>
SQL> COMMIT
2 /
Commit complete.
SQL>
SQL> DECLARE
2 tz_count NUMBER;
3
4 BEGIN
5
6 --========================================================================
7 -- After obtaining the file separator, drop the Java stored procedure
8 --========================================================================
9
10 EXECUTE IMMEDIATE
11      'SELECT count(*)
12      FROM user_objects
13      WHERE object_name = ''GetFileSeparator'' and UPPER(object_type) like ''JAVA%'''
14 INTO tz_count;
15
16 IF tz_count > 0
17 THEN
18      EXECUTE IMMEDIATE 'DROP JAVA SOURCE "GetFileSeparator"';
19 END IF;
20
21 EXECUTE IMMEDIATE
22      'SELECT count(*)
23      FROM user_objects
24      WHERE object_name = ''GET_FILE_SEPARATOR'' and UPPER(object_type) = ''FUNCTION'''
25 INTO tz_count;
26
27 IF tz_count > 0
28 THEN
29      EXECUTE IMMEDIATE 'DROP FUNCTION GET_FILE_SEPARATOR';
30 END IF;
31
32 END;
33 /
PL/SQL procedure successfully completed.
SQL>
SQL> COMMIT
2 /
Commit complete.
SQL>
SQL> Rem=========================================================================
SQL> SET SERVEROUTPUT OFF
SQL> Rem=========================================================================
SQL> spool off
Could you help me find the TSTZ data if there are any? Thank you in advance.

Ok, I found out that I need to apply the patch 5746875 to have that. But there only instruction to apply this patch on unix env. I need on Windows. Can any body help me?

Similar Messages

  • Looking for an SQL query to retreive callvariables + ECC from a RUN SCRIPT RESULT (Translation to VRU)

    Hi Team,
    I am looking for an SQL query to check the data (ECC + CallVariable) received following a RUN SCRIPT RESULT when requesting an external VRU with a Translation Route to VRU with a "Run External Script".
    I believe the data are parsed between the Termination Call Detail + Termination Call Variable .
    If you already have such an SQL query I would very much appreciate to have it.
    Thank you and Regards
    Nick

    Omar,
    with all due respect, shortening a one day's interval might not be an option for a historical report ;-)
    I would recommend to take a look the following SQL query:
    DECLARE @dateFrom DATETIME, @dateTo DATETIME
    SET @dateFrom = '2014-01-24 00:00:00'
    SET @dateTo   = '2014-01-25 00:00:00'
    SELECT
    tcv.DateTime,
    tcd.RecoveryKey,
    tcd.RouterCallKeyDay,
    tcd.RouterCallKey,
    ecv.EnterpriseName AS [ECVEnterpriseName],
    tcv.ArrayIndex,
    tcv.ECCValue
    FROM Termination_Call_Variable tcv
    JOIN
    (SELECT RouterCallKeyDay,RouterCallKey,RecoveryKey FROM Termination_Call_Detail WHERE DateTime > @dateFrom AND DateTime < @dateTo) tcd
    ON tcv.TCDRecoveryKey = tcd.RecoveryKey
    LEFT OUTER JOIN Expanded_Call_Variable ecv ON tcv.ExpandedCallVariableID = ecv.ExpandedCallVariableID
    WHERE tcv.DateTime > @dateFrom AND tcv.DateTime < @dateTo
    With variables, you can parametrize your code (for instance, you could write SET @dateFrom = ? and let the calling application fill in the datetime value in for you).
    Plus joining two large tables with all rows like you did (TCD-TCV) is never a good option.
    Another aspect to consider: all ECC's are actually arrays (always), so it's not good to leave out the index value (tcv.ArrayIndex).
    G.

  • Looking for a SQL statement

    Looking for a sql statement that returns me one row which is made up of data of two rows but display it side by side instead of one row followed by other row.
    e.g
    Col1
    1
    2
    2 Rows selected
    How can i display it as
    Col1
    1 2
    1 Row selected
    Appreciate any responses.
    TIA
    DS
    null

    How to find the last sql statement executed in oracle .
    thanks
    B.B.Padhi
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by SANJAY KUMAR ([email protected]):
    i have table san with column rl having values 11, 12. Then write the SQL as:
    select a.rl, n.rl from san a,( select b.rl from san b where b.rl in (select rl from san) ) n
    where a.rl < n.rl;
    It will give u approprate result.
    Thanks!<HR></BLOCKQUOTE>
    null

  • Where does Bluetooth Diagnostics Utility put its output?

    I just ran the bluetooth diagnostics utility to diagnose the burst of loud static, and managed to catch it at perfectly the right spot. I followed all the on-screen instructions, let it collect information about my computer, waited while it filled in the entire progress bar, it said it was finished, and I clicked "continue."
    And nothing happened. At all. I clicked it a number of more times, but at no point was I asked to select where to save a file, or told it was done. Nor did a file ever show up on the desktop, which is where I expected it to put the output.
    Where should I look?

    Never mind. Finally find it under my user directory. Funny that it never told me where it was putting anything or THAT it was putting something or that it was DONE putting something somewhere.

  • Where would I look to see SAP supported versions?

    Where would I look to see if our version of BW is supported for SP3 of SQL 2005, we are currently using SP2?
    cheers

    Hi,
    Please check the below Note.
    Check this SAP Note 62988 - Patch recommendations for MS SQL Servers
    Thanks
    Rishi Abrol

  • I have some loops from acid 5 which I have dragged in a folder to the loop browser.  Some of them retain the folder name in the View: and some don't.  I have had some that seem to go in but I can't find them.  Where should I look?

    I have some loops from acid 5 which I have dragged in a folder to the loop browser.  Some of them retain the folder name in the View: and some don't.  I have also had some that seem to go in but I can't find them.  If I try to add them again, I get a msg that they are already there.  Where should I look?

    It may be best to recreate the folder and the smart playlists from scratch.
    tt2

  • How to look at the SQL trace in Oracle

    Hi,
    How do we look for the SQL trace in Oracle?
    With SQL trace I mean all the SQL statements being executed in Oracle database ( including select ).
    Thanks........

    Thanks for a quick reply nbellam. I wonder if there is a way to find out the date and time when the sql was executed?

  • How to find out which Tables have been accessed without looking at the SQL query ?

    Hi,
    I would like to know is there a way to find out what queries have been executed and on which tables without looking at the SQL query.
    I have an old C++ code which calls some library functions to access the Oracle database. The source code for the library is not available to me yet. The functions selects/updates/deletes and inserts based on some input parameters I give. I do not know which tables it affects. How do I find out the actual SQL query and/or the tables it accesses ? I was told about V$SQL table that
    has the most recently executed queries, but
    I did'nt see any queries connected to my process.
    Could anybody help me on this ?
    Thanks
    Jagdeep
    [email protected]
    null

    PRECISE/SQL can help you if you have access to it
    2nd option can be that turn on SQL_TRACE
    Run executable of ur c++ program
    it will create a trace file in user_dump_dest
    and then using TKPROF u can see all quesries and their plan also.
    HTH
    Gagan Deep Singh
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by (jagdeeps):
    Hi,
    I would like to know is there a way to find out what queries have been executed and on which tables without looking at the SQL query.
    I have an old C++ code which calls some library functions to access the Oracle database. The source code for the library is not available to me yet. The functions selects/updates/deletes and inserts based on some input parameters I give. I do not know which tables it affects. How do I find out the actual SQL query and/or the tables it accesses ? I was told about V$SQL table that
    has the most recently executed queries, but
    I did'nt see any queries connected to my process.
    Could anybody help me on this ?
    Thanks
    Jagdeep
    [email protected]<HR></BLOCKQUOTE>
    null

  • I migrated info from a hard drive to a new mac under time machine. It says I have shared files, but I don't see the old info on the new machine. Where do I look for it ? How do I make the old backup the base for my new macbook ?

    I migrated info from a hard drive to a new mac under time machine. It says I have shared files, but I don't see the old info on the new machine. Where do I look for it ? How do I make the old backup the basis for my new macbook ?
    The old OS was Mac X 10.5.8.   I think the new one is  10.7.2     Lion.

    Have a read here How do I set up a new Mac from an old one, its backups, or a PC?
    Stefan

  • Where & what to look for failed messages analysis ?

    Hi,
        Im new to PI. Messages are failing in PI.
       Just want to know where exactly to look in SXMB_ADM or RWB for the failed messages and what do I need to look in there to analyze these failed messages ?
    Please help.
    Thanks
    Sourav

    hi,
    ou use message monitoring in the following cases:
    ● To track the status of messages
    ● To find errors that have occurred and establish what caused them
    Check this help for further info:
    http://help.sap.com/saphelp_nw04/helpdata/en/2f/4e313f8815d036e10000000a114084/content.htm
    You use end-to-end monitoring in the following cases:
    ● If you want to monitor message processing steps in a number of SAP components (to be configured).
    ● If you want to monitor the path of individual messages through these SAP components, from start to end.
    Check this help for further info:
    http://help.sap.com/saphelp_nw04/helpdata/en/82/9e8dfe9eadbd4b9194c433e646b84e/content.htm
    and also
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0b4580be-0601-0010-d3ad-bd6ce51ae916
    http://help.sap.com/saphelp_nw2004s/helpdata/en/7c/14b5765255e345a9e3f044f1e9bbbf/frameset.htm
    refer this forum replies too..
    Questions about Failed Messages
    Thanks,
    Vijaya

  • Beginners question - making sense of form, item, pane & variable (with relation to where data is stored in the SQL database)

    Hi Everyone,
    I am new to writing reports (SQL code) for SAP, however I am aware that inside SAP Business One it is necessary to enable System Information (from the View menu) in order to see which tables (and related table attributes / column names) are related to various aspects of the various SAP 'modules' (e.g.: A/R Invoice).
    Using an A/R Invoice as an example I can see at the row (or line) level that an item with the description of 'Opening Balance Transfer' is contained in the table INV1, within the attribute (or column) called Dscription.
    However not every 'on screen object' shows a table / attribute. For example in the same A/R Invoice if I hover my mouse over the Balance Due field all I see is Form related information.
    My question is 'How do I make sense of the Form, Item, Pane, Variable information?', with relation to where data is stored within the SQL database?
    Links to online tutorials explaining how this feature of SAP Business One will be much appreciated, along with any personal advice regarding working with this information.
    Any (and all) help will be greatly appreciated.
    Kind Regards,
    David

    Hi David,
    1.Here I am explaining use of each field except pane
    a. Form ---> Used in additional authorization creator
    b. Item, column--->Useful in creating Formatted search queries (FMS)
    c. Variable --> Some of the field values based on another values. ie. indirect values.
    d. INV1---Table name
    2. How to get variable?
    As per your second attachment, to get balance due ,you need doc total field from OINV table. For example,
    SELECT T0.[DocNum], T0.[DocTotal] FROM OINV T0 WHERE T0.[DocNum] = 612004797
    Thanks & Regards,
    Nagarajan

  • Where can I look up the production date of my MacBook Pro?

    does anyone have an idea, where I can look up the production date of a MacBook Pro? I can't remember when I bought it...

    Try this site as well. Paste in your Macs serial number and it will reveal all kinds of info about it including exactly where is was assembled. You can get the serial number from System Profiler. Cheers!
    Forgot the link!
    http://www.appleserialnumberinfo.com/Desktop/index.php
    Message was edited by: Glenn Carter

  • I have my Mac with Mountain Lion and my IPad synched and have Pages on both. I have doc in Word on my Mac I want to access on my IPad while I am away travelling. But I can't locate them. Where should I look to find my previously saved Word docs?

    I have my Mac with Mountain Lion and my IPad synched and have Pages on both. I have doc in Word on my Mac I want to access on my IPad while I am away travelling. But I can't locate them. Where should I look to find my previously saved Word docs?

    Welcome to the Apple Support Communities
    It looks like you haven't got them on iCloud. On your Mac, open Pages and drag the Word documents to the iCloud window

  • Hiya, i would like to make an  image where the subject looks ghostly- half transparent etc. How can i do this on PSE 12?

    Hiya, i would like to make an  image where the subject looks ghostly- half transparent etc. How can i do this on PSE 12?...........also, perhaps to create a " then and now" type of picture, a modern view with a view of the past superimposed in.
    Thanks.

    Hi libbydibby,
    Please refer to the given link:- https://forums.adobe.com/message/4745994
    Let me know if further assistance requires.
    Sarika

  • Looking for and SQL query to match CTI OS agent login ID with the Directory Number (instrument)

    Hi All,
    I am looking for an SQL query to request the HDS database to find out which Directory Number / instrument  was associated with a specific CTI OS agent login ID.
    Has anyone done such a query before ?
    Thanks and Regards
    Nick

    Hi,
    this should work in 8.0 and 8.5:
    SELECT
    ag.PeripheralNumber AS [LoginID],
    al.Extension,
    al.LogoutDateTime
    FROM [instance]_hds.dbo.Agent_Logout al
    JOIN [instance]_awdb.dbo.Agent ag ON al.SkillTargetID = ag.SkillTargetID
    Of course, replace [instance] with the ICM instance.
    The query returns a table with three columns, first is the login ID aka PeripheralNumber, Extension is... well, the agent's extension, and LogoutDateTime is the timestamp when the agent logged out.
    G.

Maybe you are looking for

  • 2009 MBP can't see internal hard drive - for the second time!

    Well, my 2009 13" MBP is at Applecare for the second time because it cannot recognize _any_ internal hard drive. The first repair came at 9 months (purchased new), now 16 months later I have the same issue. Swap in a known good drive, it can't see it

  • How to change role tabs according to users?

    I'm sure somebody else asked this question before but I could not find any answer yet. I always design roles and check "Entry point" mark to make it one of portal main tabs. Sometimes what I need is creating restricted pages for some groups under the

  • I play virtual city.. Now I get a message: Warning you're running low on disk space

    i play virtual city playground. now i get a message: Warning you're running low space

  • Ageing of vendors

    what is the ageing of vendor group. why we have need this report can u give any example for understanding purpose?

  • Help - what is the command

    I dynamically generate textboxes, so they all have the same name. There are ten boxes in all. I know it outputs the checked boxes in a comma deliminted string, 1,2,3,4....etc. If checkbox 4 was one of the boxes selected, I need to do a cflocation to