Query from all_tab_columns

I'm looking for a query from ALL_TAB_COLUMNS which should give me all table names containing both the columns below:
'TIME_PERD_ID' and 'CTRL_PERD'
Help?
Thanks,
Bhagat

You can try the below:
[email protected]> create table t1(c1 int, TIME_PERD_ID int, CTRL_PERD int);
Table created.
[email protected]> create table t2(c2 int, TIME_PERD_ID int, CTRL_PERD int);
Table created.
[email protected]> create table t3(c2 int, TIME_PERD_ID int);
Table created.
[email protected]> select a1.table_name
2 from all_tab_columns a1, all_tab_columns a2
3 where a1.table_name = a2.table_name and a1.column_name = 'TIME_PERD_ID'
4 and a2.column_name = 'CTRL_PERD'
5 /
TABLE_NAME
T1
T2
Best regards
Krystian Zieja / mob

Similar Messages

  • Want to construct insert statement from all_tab_columns

    I am using Oracle 10GR2 and a new user for plsql
    I want to write a plsql block or SQL in order to insert some dummy data.
    I want to use the column list from all_tab_columns and want to construct insert statement
    EX: I am trying to construct SQL as below
    for i in (select column_name from all_tab_columns where table_name='EMP')
    loop
    v_sql := insert into emptest valuesi.column_name
    could you please let me know any pointer for the same ..?
    can I use any other technique for the same .. like collection, nested table etc

    Am not clear for this requirement, if possible could you please elaborate.
    Also specify the requirement, inputs and expected outputs with your query in code format...
    This will help..

  • Is it possible to open a query from sap menu favorite to excel?

    Hi all
    I have added a query in favorite . From the favorite in sap menu , i want to open the query in excel.
    Is is possible?
    Currently the query open in web.
    Please revert back if you have any idea
    Thanks
    ajay

    Hi Daya Sagar,
    You said the query saved in favorite from query designer will open in browser and the one saved from analyzer will open in bex excel. But it does not work for me. It saves as web icon and both query is opening in browser.
    Hi All,
    The different story for me is I have problem of opening the web browser by running a query from favorite or user menu because in the url I have different Client. Is there any way to fix this url problem. Any one in this thread can help me on this issue and will be awarded. Thanks.
    Raj

  • See sql query from crystal report without crystal report

    see sql query from crystal report without crystal report 

    Hi,
    Depends on datasource type but you could have a look at ODBC trace or if you have access to the SQL Server you could use profiler to monitor the session.
    Regards,
    Craig
    And this will only be of use if you know which Server/Insstance/Database the Report is connecting to...
    Please click "Mark As Answer" if my post helped. Tony C.

  • How to call a BW Query from an ABAP program?

    How to call a BW Query from an ABAP program?

    hi
    check this link
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-ii
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
    hope this helps
    cheers

  • RC 8 error while transporting the query from Dev to Qa - Element missing

    Hi All,
    I have made a multiprovider by copying one existing one.
    I have copies one of the Bex queries using RSZC from the source to Target MP.
    While transporting the query from Dev to QA i have got the following error. (I have already moved the Multi Prov in a previous TR) 
    Has anyone seen similar types before. Any inputs will be highly appreciated.
    Start of the after-import method RS_ELEM_AFTER_IMPORT for object type(s) ELEM (Activation Mode)     
    Error when activating element 4LUSZK561QN74UDBJ7BPU9GFM                                             
    Element 4LUSZJXHIS1HM7TVDD9DK7HPU is missing in version M                                           
    End of after import methode RS_ELEM_AFTER_IMPORT (Activation Mode) - runtime: 00:00:06                                                                               
    Start of the after-import method RS_ELEM_AFTER_IMPORT for object type(s) ELEM (Delete Mode)         
    End of after import methode RS_ELEM_AFTER_IMPORT (Delete Mode) - runtime: 00:00:14                  
    Errors occurred during post-handling RS_AFTER_IMPORT for ELEM L                                     
    RS_AFTER_IMPORT belongs to package RS                                                               
    The errors affect the following components:                                                         
       BW-WHM (Warehouse Management)                                                                    
    Post-import method RS_AFTER_IMPORT completed for ELEM L, date and time: 20110517070045              
    Post-import methods of change/transport request BDAK959603 completed                                
         Start of subsequent processing ... 20110517070025                                              
         End of subsequent processing... 20110517070045                                            
    Kind regards,

    Hi Jith,
    First of all try to consolidate all your objects in a single TR and then move to Q from D.
    In this case check for the list of objects that you have in your TRs. If TR 3 have all the Objects that were in TR1, TR2, then transporting TR3 alone will work.
    Also, you can find the information related to the elements that were missed in your TR1,TR2 by following process.
    1. Go to your transport Logs and then to the entries marked as Error.
    2. There you will find the Query Element Ids, copy them
    3. Now, go to Table(Se16) RSZELTDIR, there enter those query elements.
    Now, you can able to find the elements that you have missed in your TRs. Hope this helps you.

  • 0ADHOC error while executing the query from Report Designer

    Hi All,
    When I am executing The Query from Report Designer,  am getting the below error.
    Please help me in this regard.
    The initial exception that caused the request to fail was:
    The Web template "0ADHOC" does not exist in the master system
    com.sap.ip.bi.base.exception.BIBaseRuntimeException: The Web template "0ADHOC" does not exist in the master system
    at com.sap.ip.bi.webapplications.runtime.service.template.impl.TemplateService.getTemplateContent(TemplateService.java:57)
    at com.sap.ip.bi.webapplications.runtime.jsp.portal.service.template.PortalTemplateAccessService.getTemplateContent(PortalTemplateAccessService.java:82)
    at com.sap.ip.bi.webapplications.runtime.preprocessor.Preprocessor.parseTemplate(Preprocessor.java:163)
    at com.sap.ip.bi.webapplications.runtime.xml.XmlTemplateAssembler.doInit(XmlTemplateAssembler.java:79)
    at com.sap.ip.bi.webapplications.runtime.template.TemplateAssembler.init(TemplateAssembler.java:133)
    Thanks,
    KVR

    Hi,
    The web template 0ADHOC is usually the standard web template for 3.x queries. The Report Designer executes the reports in java web, thus tries to find the template 0ADHOC in the 7.0 templates and does not find it. Check whether you have maintained the standard web template 0ADHOC for 7.0 reports also:
    Transaktion SPRO -> SAP Reference Image -> SAP NetWeaver -> Business Intelligence -> Settings for Reporting and Analysis -> Bex Web -> Set Standard Web Templates
    Best regards,
    Janine

  • Issues after copying a query from one IP to another

    Hi Friends,
    I have a query which was built on a infoset, i have built a multi provider with aditional objects apart from what i have in the infoset, i.e. this Multi provider has all the objects which are used in the query. I have copied the query from infoset onto the multi provider. All is well until this point.
    but when i see the default values or free characteristics of this copied query, it still shows the objects with prefix of old infoset. Shouldn't it be having prefix of multi provider instead as this query is based on the Multi provider?.
    Also when i save the query, i get a error message saying that XXX characteristic is not found in the info provider(MP), where as this cahr is available in the Multi provider.
    Can someone pls guide me how to resolve this?.
    Regards
    BN

    Hi,
    I get an error message when i try to copy the existing query to the new Mulit Provider. This i get in Transaction RSZC after i give source Ino cube XXX and Target Info cube ZZZ and select Queries radio button and execute.
    The error message what i am getting is as follows
    InfoObject Source__F1 is  missing in target info cube (Muti provider name).
    like this i am getting for almost all the objects, but all these objects are available in the target.
    Since, the query was a stright forward one i have created a new query exactly like the other one.But now i get another problem, i cant see the data in the report, even though there is data in DB. I checked the data on the Infoset and Multi Provider using Listcube.
    Can you suggest what can i do here?
    Regards
    BN

  • Error - opening a web query from my favorite or roles

    I am trying to open a query saved as web query from my favorite folder or user menu. I got error when processing the request. Below is the detailed error.
    Error when processing your request
    What has happened?
    The URL http://p2pr3.ittind.com:8000/sap/bw/BEx was not called due to an error.
    Note
    The following error text was processed in the system DVR : You can only work in client 010
    The error occurred on the application server P2PR3_DVR_00 and in the work process 0 .
    The termination type was: ABORT_MESSAGE_STATE
    The ABAP call stack was:
    Function: RS_MANDT_CHECK of program SAPLRSMANDT
    Form: CLIENT_CHECK of program SAPLRSDG_IOBJ_DB_READ
    Function: RSD_IOBJ_GET_A_THEN_M of program SAPLRSDG_IOBJ_DB_READ
    Function: RSZ_X_COMPONENT_EXIST of program SAPLRZX0
    Form: GET_AUTHORIZATION of program CL_RSRD_UTILITIES_BW_OBJECTS==CP
    Form: SET_ITEM of program CL_RSRD_WWW_ITEM_BROADCASTER==CP
    Form: INIT of program CL_RSR_WWW_ITEM===============CP
    Form: CREATE of program CL_RSR_WWW_ITEM===============CP
    Form: SET_ITEM of program CL_RSR_WWW_PAGE===============CP
    Form: SET_TEMPLATE_ITEMS of program CL_RSR_WWW_ITEM_TEMPLATE======CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system DVR in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server P2PR3_DVR_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server P2PR3_DVR_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 035 -u: NKRISHNA -l: E -s: DVR -i: P2PR3_DVR_00 -w: 0 -d: 20081022 -t: 120849 -v: ABORT_MESSAGE_STATE -e: You can only work in client 010
    Any steps to solve this issue will be appreciated and awarded. Thanks

    Hi Experts,
    We are also having the same issue. We are in BI 7 SP 15.
    Is there any way to find the relation between the Bookmark ID and Query name? The favorite link is not working and getting the above error message. We are also not able to identify the query related to this favorite / bookmark link. Is there any table to identify for query and Bookmark?
    Can you experts advise urgently? Advance Thanks.
    Linda.

  • Time out error while executing BW query from SRST

    Hello Experts,
    While running a query from SRST t-code im getting time out dump.
    Is there any possibility to run the query in background to avoid dumps, apart from taking the report and executing from SE 38
    Regards,
    Arjun Reddy.

    Hi,
    Your target may have huge and report may be trying to extract whole data.
    please try to your report with some selections/filters and check it.
    it may work.
    Thanks

  • ORA-27092 Error while executing any query from client

    Hello
    I am getting following error while executing any query from client remotly.
    IAMDBA@TEST_OAT.ABCD > select userid from dual;
    select userid from dual
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01116: error in opening database file 1
    ORA-01110: data file 1: '/u01/prod/system/system01.dbf'
    ORA-27092: size of file exceeds file size limit of the process
    Additional information: 131071
    Additional information: 286209
    But while local connection,its working.

    hi,
    ulimit command- Limit user resources
    su - oracle
    ulimit -n (this command will show you the current value for ulimit the default value is 1024)
    to increase its value:---
    ulimit -n <some value> ( this command will change value for current session only)
    example
    ulimit -n 101062
    once done check the value as:--
    ulimit -n( for verification)
    search in google for more explanation or revert back to me for any suggestions.... :)
    Edited by: varun4dba on Jan 31, 2011 4:09 PM

  • Power query from ODBC :"DataSource.Error: Arithmetic operation resulted in an overflow"

    Good day
    Everytime I want to pull data into a query from our servers it gives the error "DataSource.Error: Arithmetic operation resulted in an overflow". What is the reason for this error, and how do I get past this bump.
    Thanks in advance
    Arnoux

    Hey Tristan. Thanks I did that yes.
    For some reason my direct MySQL connection does not want to work.
    I get the following error
    DataSource.Error: MySQL: Unable to find a database provider with invariant name 'MySql.Data.MySqlClient'.
    This error may have been the result of provider-specific client software being required but missing on this computer.  To download client software for this provider, visit the following site and choose at minimum 'MySQL Connector/Net':

  • Impact of selecting "Removing Query from Selection List" in 2 channels.

    HI All ,
    I have customized a query in one channel (My Agreements and Contract Documents query in Master Agreements List channel) and have removed the standard query from the channel by checking the  "Remove Query from Selection List" and introduced my custom query in that query group .
    But  it resulted in break in chain for  "Master Agreements" link in "Contracts To Do List" channel as the link was pointing to standard  "My Agreements and Contract Documents" query and is displaying "The query can not be executed. Contact your system administrator" when ever I click on that.
    Any pointers on how to overcome above scenario wud be gr8!
    Regards,
    Uday

    Hi Uday,
    In order for To Do List channel to work, the query definition should be in the Master Agreement List query group. Do you still want the standard query in the To Do List? If so, you would have to leave it on the Query Group as To Do list is pointing to it. May be change the display name of the query so you can differentiate between the 2 queries. The other option is change the To Do channel to point to the custom query.
    Regards,
    Vikram

  • How do I reference columns in a report query from another report query?

    In Apex 3.1 it is possible to generate a report on more than one query. I have read that these queries can be correlated, but I cannot find how in the documentation.
    I go the Shared Components and create a new Report Query:
    select * from dept
    Then I click Add Query and I add:
    select * from emp
    How do I correlate these two queries (I want to join emp.deptno to dept.deptno) and have a nice hierarchicle XML-file.
    Is it possible in Apex 3.1?
    Dik Dral

    Dik,
    This type of query can't be build. The two queries are independent, you can't reference values in the first query from the second query. However you can reference page and application items - which won't help you all that much with this scenario though. You could also try combining the two queries into one, and then take care of the proper presentation in your template.
    Regards,
    Marc

  • Run BW query from R/3, need output file saved on application server

    Hello all,
    We are currently working on BI 7.0. Is there a way where we can run a BW query from R/3 by some program or tcode? We need to run the BW query and use the output of that query as an input to some other custom program in R/3.
    If we can save the output file on application server than the R/3 program will pick up that file from there.
    Is there any standard delivered functionality that will allow us to do that or how can we achieve this.
    Can some help help with some suggestions or links?
    Thanks in advance.

    Hi,
       Refer the following threads:
    [Calling BW Query from R/3;
    [Saving Bex Report / query in BW App server;
    Regards.

Maybe you are looking for

  • Spry Menu bar wrongly displayed in IE

    Hi, on my website i integrated a Spry Menu bar with one Submenu, which really works fine in Firefox. The boxes have a defined width of 124 px. My problem is, if you view this site with IE, the drop down menus don´t work and you are asked to activate

  • Error ref code: tuMfkgFG8GvC0T4olRZOeA

    Hi! We are getting this error code in Adobe forms questionnaire we created whenever a user hits the "Save" feature button Unable to send form link error ref code: tuMfkgFG8GvC0T4olRZOeA Can someone please help? The form is online and located here: ht

  • SAP IDM 7.2 SP09 initial load jobs error

    Hello IDM experts We are getting below error while loaidng initial jobs in IDM 7.2 SP09 java.lang.Throwable: java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'JCO.nativeIni

  • PO collaboration material not able to transfer to SNC under DR environment

    Dear all, I have a question. The demand of our PO collaboration (i.e. CMI) material does not get transfer to SNC (i.e. we are using the Dynamic Replenishment, DR) even if we will to run the RSMIPROACT program. I check all the necessary setup in IDOC,

  • Can't Import DualDisc on G5

    Hi, Can't seem to import (the sound is lousy with buzzing noise throughout songs) a DualDisc CD. It imports fine on my girlfriends ibook. Do I need a software upgrade? Thanks for any help.