Find out query using specific DB link
Hello,
Environment: 11G and Ksh script
Currently our Client is upgrading to new environment, so I need to find out which query in our Database use DB link to pull data from that client will be impacted.
for example,
select * from table_1@DB_link_1All our SQL are embedded in UNIX script, so I use command line to search any scripts contain '@DB_link_1' but not find anything.
is it possible to search any dynamic view or any suggestion to search inside ORACLE database to see if any query using this 'DB_link_1'? I tried 'dba_db_links' but this does not show which query is using which DB link.
Thanks,
Thomas
frank wrote:
Hello,
Environment: 11G and Ksh script
Currently our Client is upgrading to new environment, so I need to find out which query in our Database use DB link to pull data from that client will be impacted.
for example,
select * from table_1@DB_link_1All our SQL are embedded in UNIX script, so I use command line to search any scripts contain '@DB_link_1' but not find anything.
is it possible to search any dynamic view or any suggestion to search inside ORACLE database to see if any query using this 'DB_link_1'? I tried 'dba_db_links' but this does not show which query is using which DB link.
Thanks,
Thomashttp://download.oracle.com/docs/cd/E11882_01/server.112/e17110/statviews_1068.htm#REFRN20053
REFERENCED_LINK_NAME VARCHAR2(128) Name of the link to the parent object (if remote)
"
Similar Messages
-
How to find out query name using Elements of the query builder.
Hi SDNers,
how to find out query name using Elements of the query .
thanks,
satyaaHi,
For having a look at the relation between BEx tables,check the link below:
http://wiki.sdn.sap.com/wiki/display/BI/ExploretherelationbetweenBEx+Tables
-Vikram -
How to find out the used space and free space in the DB for attachments
Hi,
In CRM 5.2 web UI, we can save a transaction by saving attachments like work documents or text files.
Could someone help me find out the used space, free space, maximum capacity on the CRM DB for these attachments.
Thanks & Best Regards,
Ramesh.Hi,
check with below table
TNAPR --- Processing programs for output
and NACE Transaction code
NACE -- out types
Regards,
Madhu -
Has your debit/credit card been charged for unauthorized APPLE Itunes purchases? How do you find out who used it?
Max OSX 10.6.8, iTunes 11.1
I had a similar problem: I wanted to synch my playlist to my iphone. I like to have my playlist sorted by genre. But under each genre, albums are not sorted by the track numbers. This is a problem, especially when I am listening to club mixes when the DJ smoothly transitions from 1 track sequentially to the next one. Under the properties of each audio file, the Track Numbers and Disc Numbers are already there.
My perfect solution was to turn On Sorting - Sort Album under View>Show View Options. Then, select all the songs in that album (Shift click, Cmd click, etc) , and Edit multiple item information (Cmd I). You will see Info-Video-Sorting-Options buttons. Click on Sorting. Then, under Sort Album, Enter the name of the album. Then OK.
You should now have the playlist sorted by Genre, then each album individually sorted by track numbers. On your playlist you should see, if you scroll right, the column added called "Sort Album".
Hope this helps. -
How to find out Query last used by whom
Dear All,
Can any one tell me that "How to find out the Query last used by whom. I have already searched in SDN but no luck. In my system BW Stats are not installed and I have already checked the below tables.
RSZELTDIR - Directory of the reporting component elements
RSZELTTXT - Texts of reporting component elements
RSZELTXREF - Directory of query element references
RSRREPDIR - Directory of all reports (Query GENUNIID)
RSZCOMPDIR - Directory of reporting components
RSZRANGE - Selection specification for an element
RSZSELECT - Selection properties of an element
RSZELTDIR - Directory of the reporting component elements
RSZCOMPIC - Assignment reuseable component <-> InfoCube
RSZELTPRIO - Priorities with element collisions
RSZELTPROP - Element properties (settings)
RSZELTATTR - Attribute selection per dimension element
RSZCALC - Definition of a formula element
RSZCEL - Query Designer: Directory of Cells
RSZGLOBV - Global Variables in Reporting
RSZCHANGES Change history of reporting components
I am able to find out the Date and time but not the user name. So could you please help on this.
Regards
Sankari think u have missed it.
RSZCOMPDIR IS THE ONLY TABLE WHICH PROVIDES THE DATA.
ENTER TECHNICAL QUERY Name in RSZCOMPDIR-COMPID.
RSZCOMPDIR-TSTNAM gives you the user id of sap bw user who made the change.
RSZCOMPDIR-TSTPDAT gives you date on which change was made .
RSZCOMPDIR-TSTPTIM gives you timestamp on which change was made .
all users details can be obtained from TCODE SU01 where you need to enter sap user id.
You can also get user name( description) by using tcode SE09 and entering above sap user id. -
Query to find out tables using view
Hi
I have a views using three tables.Now i wanted a query to find out number of views using three tables
I have written a query
select * from dba_views where text like '%SELECT%;
It is giving me error as ora error EXPECTED NUMBER GOT LONG.
Appreciate your help?SELECT DECODE(referenced_type, 'NON-EXISTENT', '.....',
referenced_type) || ' ' || referenced_owner ||
'.' || referenced_name r_name, ' is referenced by: ' ||
type || ' ' || owner || '.' || name name,
' Referenced Link: ' || DECODE(referenced_link_name,
NULL, 'none', referenced_link_name) r_link
FROM dba_dependencies
-- WHERE owner NOT IN ('SYS', 'SYSTEM')
-- and rownum < 50
ORDER BY 1,2;
add your own where clause to it -
How to find out where used list of Table or T-code
Dear ABAP gurus
I know many of you have done this several times.
wish to find out which Transaction code INSERTs the data into the table IHPA.
I did the where used list - SE11 ( for specific key work called INSERT ).
Used the Table called D010TAB which has some information.
Vise versa if I know a T-CODE , how to know which tables it read & Modify...
any better procedure than spending hours in research...
I found similar custom program to find USER EXITS ...here..., looking soething similar...
[http://wiki.sdn.sap.com/wiki/display/Snippets/FindUser-exits%2CBADIs%2CBTEs%2CEtcbyTCodeorProgram]
thank you for your help
Edited by: Raj Anvesh on Aug 3, 2011 9:58 PMHi Anvesh,
Maybe the data INSERTION is happening by BAPI,
So just try to look for the concerned BAPIS.
ECP_SRV_PARTNERS_IHPA
IREP1_IHPA_ADRNR_PRE_FETCH
IREP1_IHPA_ADRNR_READ
MAP2E_DIIHPA_TO_PARTNER
MAP2E_IHPAVB_BAPI2080_NOTPARTE
MAP2E_IHPAVB_TO_BAPI_IHPA
MAP2E_IHPA_BAPI2080_NOTPARTNRI
MAP2E_IHPA_M_BAPI2080_NOTPNRI
MAP2I_BAPI2080_NOTPARTNRI_IHPA
MAP2I_BAPI_IHPA_TO_IHPA
PM_DB_FILL_DIIHPA
PM_PARTNERCOPY_FILL_XIHPA
PM_PARTNER_DELETE_XIHPA
PM_PARTNER_GET_XIHPA
PM_PARTNER_PUT_XIHPA
PM_PARTNER_REFRESH_XIHPA
these are the bapis which are dealing with the IHPA table,
Segregate them as needed and then go to the std program
Revert for further clarification.
Thanks
Sri -
How to find out query name in customer exit for variables
We use the same customer exit variable in different queries. In the customer exit we want to find out, which query has called the customer exit. With the technical query name we want to read a master data table entry.
e.g. If we come from query ZG1_TEST1 we want to use selection sel1
Query name | selection
ZG1_TEST1 | sel1
ZG1_TEST2 | sel2
How can we find out the query name in the customer exit for variables?
Thanks for your help,
EviHi Evi,
check out the structure I_S_RKB1D in your exit. It contains the query.
Siggi -
Error executing a query using a DB-Link
Hi all,
I'm trying to execute a query on a DB using a connection. I created a DB-LINK on the DB. executing the select:
select sysdate from dual@lnk_db_prod;
I get the following error:
Error starting at line 1 in command:
select sysdate from dual@lnk_db_prod
Error at Command Line:1 Column:19
Error report:
SQL Error: ORA-01882: timezone region not found
ORA-02063: preceding line from lnk_db_prod
The error will be return executing any query on a db-link.
It appens if I create a db-link using syntax referencing the SID and using the sintax with the complete connection string. Below the two example of db-link DDL commands:
1.
CREATE DATABASE LINK lnk_db_prod
CONNECT TO prod IDENTIFIED BY prod
USING 'DBPROD';
2.
create database link lnk_db_prod2
connect to prod
identified by prod
using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host = 10.41.54.156)
(Port = 1521)
(CONNECT_DATA = (SID = DBPROD)
Can you help me, please?
bye,
IvanHi,
You would be better off posting / searching on other Oracle forums that deal more specifically with Application Servers. I googled "WebLogic set time_zone" and the first three hits were from our forums:
Default TimeZone
How to fix msg=ORA-01882: timezone region not found
http://kr.forums.oracle.com/forums/thread.jspa?messageID=9400587
I hope one of the these is what you are looking for.
Regards,
Gary Graham
SQL Developer Team -
Is there any way to find out what a specific line of data usage was for?
There is a line on my bill for 97 MB of usage while I was bowling? I was not using my phone. How can I find out what it was doing for that specific charge?
Just like you said earlier
3. Re: Is there any way to find out what brush is applied to a path?
imagecollection Apr 7, 2015 6:01 PM (in response to Silly-V)
The skill of scripting in Illustrator is to (due to necessity) find the most difficult way to achieve the simplest of tasks...
so to retort I say this;
“I suppose it is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail.”
― Abraham Maslow, Toward a Psychology of Being -
How to Find the Query used by the Workbook ?
Hi ,
I am currently involved in trouble shooting a work book where some master data values are not being displayed.
How do i find, which Query the work books is using ? or Let me know as to how should i proceed in solving the same .Hi,
If you have access to BW Admin workbench... then choose the option metadatarepository(left side) of the BW admin workbench, search for the workbook(Technical name) and click on the "Network display dataflow" link.
If you want to know the relationship between workbook and the queries:
Check table RSRWORKBOOK which contains the WORKBOOKID and the GENUNIID.
Table RSRREPDIR contains GENUNIID, query name RNAME, AUTHOR, LASTUSER, INFOCUBE
Table RSRINDEXT contains the WORKBOOKID and workbook TITLE
You should join the tables by GENUNIID and select in RSRREPDIR the rows that have COMPTYPE='REP' for queries and object version active/modified.
With this information an infoset query can be created to list all workbook-query-user relationship (and even the query-infocube relationship).
Hope this helps u...
Regards,
KK. -
Hi All,
I have TCode of SAP Query, i need to find out SAP Query.
things i followed:
1) Executed TCode and menu bar --> System --> Status. I got Program.
2) I went to SE93 --> TCode --> Display --> bottom i got UserGroup, Query but when i try to check that Query in SQ01 it is saying Query has not created.
3) Executed program using FM RSAQ_DECODE_REPORT_NAME, got UserGroup n Query. but same issue as above.
Query is working but when i check in SQ01, it has not created is showing.
My requirement is - functional has created 4 SAP Queries. i need to merge all the SAP Queries into 1 report program.
i need how can we check those SAP Queries in SQ01 using TCode.
Regards,
Naresh.Hi Naresh,
You did not explain how the reports were created, but if they can be accessed directly via a transaction code individually, they were probably manually created by a programmer via ABAP and were not created via SQ01. Thus, you cannot find them in the SQ01 table. Only if they were created via Ad Hoc Query (PQAH) or directly in SQ01, would they be available via SQ01.
If they were created in SQ01 in a Development system and transported to your Productive system, they can be found in the Global Area as indicated above by Boris. If they were created directly in the Productive system, they can be found in the Standard Area. And again, each area has its own set of User Groups, so you may be looking in several areas. The key is to learn how and where the queries you are searching for were created.
Paul -
How to find out URL of Masthead Help Link
Hi Experts,
I am working for a support project. Implementation team has long back left the project. I have to change the 'Help' link URL of Masthead area. There are three links in Masthead - Logoff, Personalize and Help.
At present when we are clicking on 'Help' link of Masthead, user is routed following website:
https://www.xyz.com.
In the new scenarion, when the user will click on 'Help' link of Masthead, user should be routed following website:
https://www.abc.com.
I can see the following property of Masthead iView:
Show Link in Masthead: Help
I am unable to find out where the URL has been stored.
Can you please let me know. Is it in UME or any other place? If yes, where excatly in UME.
I searched a lot in the code. I got the file (com.sap.portal.navigation.masthead) from server. After that I imported it in NWDS. I searched a lot in various places of NWDS. I can not see the URL.
It seems that javascript:openHelp is helping in getting URL. If yes, how?
<TD nowrap >
<!--<hbj:link id="HelpLink" tooltip="<%=helpTooltipStr%>" linkDesign="FUNCTION" reference="javascript:openHelp();"><hbj:textView nested="true" text="<%=helpTextStr%>"/></hbj:link> --><hbj:link id="HelpLink" tooltip="<%=helpTooltipStr%>"
linkDesign="FUNCTION" reference="#">
<% if (!isPreview) { HelpLink.setOnClientClick("javascript:openHelp();");} %>
<hbj:textView nested="true" text="<%=helpTextStr%>"/>
</hbj:link>
</TD>
<TD nowrap>
Please help.
Regards,
GaryHi Sushil,
It seems that I don't have the correct masthead par file. I have got the masthead file from BASIS. It is com.sap.portal.navigation.masthead
The existing masthead par file has following setting in portalapp.xml
<property name="HelpUrl" value="http://help.sap.com/content/documentation/netweaver/docu_nw_04s.htm">
<property name="plainDescription" value="Help Link URL"/>
<property name="category" value="Navigation"/>
</property>
<property name="ShowLogInLogOffLink" value="true">
<property name="validvalues" value="4/true5/false"/>
<property name="plainDescription" value="Show Link in Masthead: Log In / Log Off"/>
<property name="longDescription" value="Show or hide the 'Log In' / Log Off' link displayed in the masthead iView at runtime."/>
<property name="category" value="Navigation"/>
</property>
<property name="HelpUrl" value="http://help.sap.com/nw04 ">
<property name="plainDescription" value="Help Link URL"/>
<property name="category" value="Navigation"/>
</property>
This does not contain link https://www.xyz.com
Does this mean that the mathead par I am having is wrong.
Please suggest.
Regards,
Gary -
How can I find out WHEN a specific iPhone was reported stolen?
I bought a storage unit at auction. There was a brand new iphone 4S, among other items, in the locker. Many had receipts with the owner's name so I know it wasn't a storage unit full of stolen merchandise. I ran a check of the iphone through a website, imei.info, and it seemed to come up clean (Verizon locked). The Ebay buyer backed out of the auction and now, days later, is claiming the phone is stolen. I'm thinking the buyer for some unknown reason, is the one who reported it stolen, just recently, and is trying to scam me. When I called Verizon, they confirmed that this phone was either lost or stolen but could not tell me when it was reported.
DOES ANYONE KNOW HOW I CAN FIND OUT THE DATE THE PHONE WAS REPORTED STOLEN, AND POSSIBLY WHO REPORTED IT STOLEN?
Many Thanks!!!
AnthonyBuyer fraud has become a problem on eBay.
I ran a check of the iphone through a website, imei.info, and it seemed to come up clean (Verizon locked).
It probably would have been better to contact Verizon directly, but if you kept records of that research, use it to dispute the buyer's subsequent claim. Unfortunately, eBay buyers hold all the cards these days, and eBay's robots will simply order you to accept a return or face suspension of your account and seizure of your PayPal assets.
To dispute a SNAD may require that you obtain a court order to subpoena Verizon's record of the theft, which will entail an expense that will almost certainly exceed absorbing the loss.
Ebay is a buyer's paradise. For sellers, not so much. -
Variable database name in SQL Server query using Oracle database link
Hi All,
I have an ApEx 4.1 app running on 11g x64 (11.2.0.1) on Windows Server 2008 x64, and I have some data integration points with a SQL Server (2005 and 2008) that I need to establish. I have configured the database link with dg4odbc and it works beautifully... I can execute queries against the SQL Server database without any problems using the database link.
However, there is a scenario where the SQL Server database name is dynamic, and I need to generate it on the fly in a PL/SQL block, and then use that in a dynamic SQL query (all of this in ApEx). This is where I run into problems... when I am querying the default database based on the ODBC connection and I don't have to specify the database name, there is no issue. But when I need to access one of several other non-default databases, I keep receiving the "invalid table" error.
This runs fine:* (note that "fv" is the name of my database link)
v_query1 := 'select "ReleaseDate" from dbo.Schedules@fv where dbo.Schedules."SchedID" = :schedule';
EXECUTE IMMEDIATE v_query1 into rel_date using schedule;
I then take that rel_date variable, convert to a varchar2 (rel_date_char), and then use it as the database name in the next query...
This returns an error_ (Error ORA-00903: invalid table name)
v_query2 := 'select "PARTNO" from :rel_date_char.dbo.ProdDetails@fv where "SchedID" = :schedule and "UnitID" = :unit
and "MasterKey" = :master and "ParentKey" = :parent';
EXECUTE IMMEDIATE v_query2 into part_number using schedule, unit, master, parent;
I have also tried using all of the following to no avail:
'select "PARTNO" from ' || :rel_date_char || '.dbo.ProdDetails@fv where "SchedID"...
'select "PARTNO" from ' || rel_date_char || '.dbo.ProdDetails@fv where "SchedID"...
'select "PARTNO" from ' || @rel_date_char || '.dbo.ProdDetails@fv where "SchedID"...
'select "PARTNO" from @rel_date_char.dbo.ProdDetails@fv where "SchedID"...
Is there a way to do this in PL/SQL?
Thanks for any help!
-Ian C.
Edited by: 946532 on Jul 15, 2012 7:45 PMJust did a test using passthrough:
SQL> set serveroutput on
SQL> declare
2 val varchar2(100);
3 c integer;
4 nr integer;
5 begin
6 c:= dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
7 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 'select count(*) from EMP');
8 LOOP
9 nr:= DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c);
10 exit when nr=0;
11 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c,1,val);
12 dbms_output.put_line(val);
13 end loop;
14 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c);
15 end;
16 /
24576
PL/SQL procedure successfully completed.
SQL> declare
2 val varchar2(100);
3 c integer;
4 nr integer;
5 begin
6 c:= dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
7 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 'select count(*) from dbo.EMP');
8 LOOP
9 nr:= DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c);
10 exit when nr=0;
11 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c,1,val);
12 dbms_output.put_line(val);
13 end loop;
14 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c);
15 end;
16 /
24576
PL/SQL procedure successfully completed.
So all 3 ways work for me.
Edited by: kgronau on Jul 23, 2012 10:08 AM
Now using variables to perform the select:
SQL> declare
2 val varchar2(100);
3 c integer;
4 nr integer;
5 tabname varchar2(20) :='EMP';
6 ownr varchar2(20) :='dbo';
7 dbname varchar2(20) :='gateway';
8 begin
9 c:= dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
10 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 'SELECT count(*) FROM '||dbname||'.'|| ownr || '.'||tabname||'');
11 LOOP
12 nr:= DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c);
13 exit when nr=0;
14 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c,1,val);
15 dbms_output.put_line(val);
16 end loop;
17 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c);
18 end;
19 /
24576
PL/SQL procedure successfully completed.
=> instead of executing the statement using "execute Immediate" we have to use PASTHROUGH package to pass the statement to the SQL Server.
Edited by: kgronau on Jul 23, 2012 10:10 AM
Maybe you are looking for
-
Can't find Save As Optimized PDF in Acrobat X Standard.
I just bought and installed Acrobat X Standard, but cannot find the Save As > Optimized PDF option. I have seen and used this option before in Acrobat X Pro, and it was one of the reasons I bought Acrobat for myself. Adobe's own website says that t
-
Itunes encounters a problem and needs to close
This is the error I suddenly started getting today when I try to open itunes. Also, when I try to open quicktime or watch something in quicktime nothing happens (no error and it doesn't open). I feel this is a problem with quicktime since itunes need
-
SQL not connecting to Personal database - ORA-12203
I have just installed Oracle 8.1.7 Personal Edition which is required for my Graduate Database Mgmt course. I am getting an ORA-12203 error when loging onto SQL Plus (part of the install instructions) Instructions say to leave the Host String blank.
-
Missing Promoted Links app in root site
Hello All, I'm working on an Intranet site for my organization. It was created in SharePoint 2013 enterprise, with the site collection created using the publishing template. Under the root site, i have 8 subsites. In each of the subsites I can add th
-
Chinese display issues from xml
Hello all, I'm currently developing a standalone application that can be launched as an applet that needs internationalization support. The app reads in text and information for buttons and menus from an XML file with a custom parser (which I did not