Querries

Hi, all
Please help me with the following if any
1.A querry that returns the number of rows in a DB schema object.output should look like.
Object Count
dba_segments 20645
2.One that returns a table name and tablespace(s) associated with it.
Thanks.

Hi,
I have a Question here , what is the difference
between ALL_Tables and DBA_TABLES Views. Is both are
same and return the same values.
Thanks & Regards,The difference is those are views that are limited by what the user has rights to see in the database.
See:
SQL> connect system@laptop
Connected.
SQL> select count(1) from all_tables;
COUNT(1)
1577
SQL> select count(1) from dba_tables;
COUNT(1)
1577
SQL> grant connect,resource to newuser identified by newuser;
Grant succeeded.
SQL> connect newuser/newuser@laptop
Connected.
SQL> select count(1) from all_tables;
COUNT(1)
91
SQL> select count(1) from dba_tables;
COUNT(1)
1577
SQL> connect sys@laptop as sysdba
Connected.
SQL> grant select on dba_tables to newuser;
Grant succeeded.
SQL> connect newuser/newuser@laptop
Connected.
SQL> select count(1) from all_tables;
COUNT(1)
91
SQL> select count(1) from dba_tables;
COUNT(1)
1577
SQL> spool off

Similar Messages

  • MS Access and  querries

    MS Access has a feature of creating querries to access only parts of a table. My question is there a way to retrieve those querries or run them to retrieve that specific data?

    hi ,
    i'am trying to update my database which resides on the server as of now.. The database being Microsoft access .. I defined the field type in access but when i run a servlet thru my .html file it is not updating the my database ... i'am using apache tomcat for this ....Instead it is giving me NUll Pointer exception..... here is my code plzz let me know where am i making an error.....
    import java.sql.*;
    import java.io.*;
    import java.text.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class TestServlet extends HttpServlet
         private Connection con;
         private PrintWriter out;
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    String dataSourceName = "LAVS";
    String dbURL = "jdbc:odbc:"+dataSourceName;
         try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");//Load JDBC-ODBC Bridge driver
    Connection con = DriverManager.getConnection(dbURL,"","");// set this to a MS Access DB
    catch( ClassNotFoundException e){System.out.println(" JDBC-ODBC "); }
         catch(SQLException e){System.out.println(" sql exception ");}     
         }//end of init
         // doPost Method is called in response to the Post Request
         public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException
         try {
              Statement stmt ;// used to access database     
              ResultSet rs;// used for databae access
    res.setContentType("text/html");//Set the content type of the data to be sent back to the client.
              PrintWriter out= res.getWriter();//Get an output writer object to send data back to the client.
              stmt = con.createStatement(); //Get a Statement object
    String FirstName = req.getParameter("FirstName");//Get the incoming data parameters from the client
    stmt.execute("insert into TEST12345 values(' "+FirstName+" ')");
    //stmt.executeUpdate("INSERT INTO TEST12345("+"FirstName) " + " VALUES('"+ FirstName+"')");
              out.println("<HTML>");
              out.println("<Body>");
    out.println("<h1> DATABASE UPDATED </h1>");
    out.println("</Body>");
    out.println("</HTML>");
              System.out.println("Database updated");
    stmt.close();
              con.close();     
              catch (Exception err) { System.out.println(err);}
    }//end of doPost
    }//end of TestServlet
    Thanks in advance ....

  • Having problem w 3rd party software ., there tech advsed me to repair  permissions  before  reinstalling software . However  , querrie says  repairing permissions  is not good for  system .  whats up ,, help  !!!

    having problem w 3rd party software ., there tech advsed me to repair  permissions  before  reinstalling software . However  , querrie says  repairing permissions  is not good for  system .  whats up ,, help  !!!

    I've fixed the problem - I think.
    I forgot I had the program "Little Snitch" installed on my computer. So I went into it and saw that it was blocking most of my connections for all the programs I use on a daily basis. Once I lifted the RULE to those certain programs - BAM - everything came back to life in an instant!

  • Some querries related to BOM,Rework order

    Hi FRIENDS,
    Really feeling good to being among SAP intellectuals.This is my first thread in community....
    I am working in SAP QM past 2 yrs,and am trying to get some SAP PP knowledge...
    pLz help me out in getting some knowledge......
    a) Whis is it so that rework order is always created without material,it sounds confusing to me.Cant I prepare a standard order for a component say of 100 pcs and then confirm it by 95 pcs and create rew another order with material(same) for 5 pcs..
        By co07,the user can book other component (apart from BOM component of that header) by going to co07---bom tab.
    Can it be stopped....
    b) Another querry is related with BOM....
           Why By product is maintained in negative qty in BOM,Cant get the theory behind it.....
    Plz answer my querries....

    Dear Snehal,
    1.Normally a rework order will be created in order to address the product which does meet the expected quality parameters.
    2.For a rework order which is created through CO07,no GR will be made and only confirmation will be required because
    already the whole product exists as such and this order helps to capture the extra cost spent for correcting the product and
    for settlement.
    3.So for this reason order without material will be created without referring to any particular material or say product and in
    case if you creating a production order with material GR will be made as an automatic process or manual GR.
    4.A byproduct will be maintained in negative quantity because so much of product will be obtained as an output along with the
    main product.In this the GR will be happening for the main product as well the by-product.So the normal components will be
    maintained in +ve quantity which means consuming so much quantity the fianl product is produced and if any component is
    maintained in negative quantity then it indicates that its a by product.
    Check these links to explore more.
    settings for co-product and by-product
    Re: Co product and By Product
    http://sapfunctional.com/PP/Co&BiProducts.htm
    Regards
    Mangalraj.S

  • Transport querries and workbooks?

    hi friends,
    can we transport work books and querries directly?
    Thanking u
    suneel.

    hi Suneel,
    if you need the doc (perhaps inside some screen shots ..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3010ba90-0201-0010-2896-e58547c6757e
    http://help.sap.com/saphelp_nw2004s/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e883de94-0501-0010-7d95-de5ffa503a86
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/1d733b73a8f706e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/57/38e1824eb711d182bf0000e829fbfe/frameset.htm
    Re: Transport Organizer---
    report/query
    http://help.sap.com/saphelp_nw2004s/helpdata/en/38/5ee7377a98c17fe10000009b38f842/frameset.htm
    hope this helps.

  • PM Querries

    hi PM Gurus,
    i have a couple of querries:-
    1.What is the exact difference between customizing and configuration.
    2. plz any one send me some list of  basic reports commonly used in PM
    3.
    my mail ID is:-
    [email protected]
    thanks&regards
    pushpa

    Hi Pushpa,
    In General there is no difference b/w SAP Customizing and Configuration they are same, but the context in which they use may differ.
    If you go to SRPO you find SAP Customizing Implementation Guide (i.e. IMG)
    where you do all the settings for the process you are mapping as per the requirements and options available in the SAP System.
    Again in General the Customizing & Configuraion is one & the same.
    Specifically in different context Configuration can be a configuration of a product even, which is a different process of manageing a product variants.
    <u>The General Reports Used in SAP PM Module are:</u>
    1. Equipment History Periodically  Tcode :- IW66, IW64, IW68
    2. Calibration Status periodically for Equipement: QA32
    3. Menhour Utilization for each workcenter  wise, division wise etc, : CM01, CM05
    4. Pending Job LIst Department wise: IW28
    5.Expenditure incurred for immediate procurement to carry out repair immediatly : IW38
    Regards
    Rehman
    Reward Your Points If Useful

  • Diferent querries and flow control in xsql servlets

    My question is if i can make a flowcontrol in an xsql servlet.
    For example I want to use different querries depending on an attribute which is delivered by an xsql querry.
    For shemata example:
    <query>
    select a from table a
    </query>
    if a=abc
    <query>
    select b from table b
    </query>
    if a=def
    <query>
    select c from table b
    </query>
    Is such a thing possible or should i use a PL/SQL block in the xsql Servlet.
    Thanks for your answers
    Andreas

    For a fully-worked example, illustrating how to use <xsql:ref-cursor-function> to programmatically determine a dynamic query, see Chapter 17 of my Building Oracle XML Applications book.
    The basic technique is illustrated by the following procedure:
    CREATE OR REPLACE PACKAGE App IS
    TYPE ref_cursor IS REF CURSOR;
    FUNCTION HotItems(userid VARCHAR2) RETURN ref_cursor;
    END;
    CREATE OR REPLACE PACKAGE BODY App IS
    FUNCTION HotItems(userid VARCHAR2) RETURN ref_cursor IS
    the_cursor ref_cursor;
    my_sal NUMBER := 1;
    query VARCHAR2(2000);
    BEGIN
    IF UPPER(userid) = 'STEVE' THEN
    query := 'SELECT ename, sal FROM EMP WHERE ROWNUM < 4';
    ELSE
    query := 'SELECT dname, deptno FROM DEPT WHERE ROWNUM < 2';
    END IF;
    OPEN the_cursor FOR query; /* USING var, var, var */
    RETURN the_cursor;
    END;
    END;
    /Using <xsql:ref-cursor-function>, depending on the values that you pass to the App.HotItems() function, you'll either get back EMP data or DEPT data.

  • End User Experience Monitoring Querries

    Dear Experts,
    I have a doubt in End User Experience Monitoring (EEM), I created a SAP GUI Script
    that script  execute automatically every day. How to set automatically.
    Regards
    Balaji

    Dear Experts,
    I want to know the End user Experience Monitoring in the EEM Script how to assign the Region, Location,
    then how to call the script.
    Please give me provide solution.
    Regards
    Balaji

  • How to RollBack the SQL Querries in XMII

    Hi,
    I need to Rollback the SQL query for the parent table if the query for the child table fails in the transaction.
    In the current scenario I have two separate table one is the parent table for which I have a ID column referred by the child table.
    However,if the query for the child table fails I need to rollback the parent table query.
    Is there any way to do this in MII?
    Thanks
    Amit

    Amit,
    To answer your questions in a single line, there is no MII capability that lets you do this inherently from MII. However there are two alternatives.
    1) As Manoj mentions is to use Stored Procedures.
    2) Use JTA Action Blocks. [Read about them and download them here...|http://www.google.com/url?sa=t&source=web&cd=2&ved=0CB0QFjAB&url=http%3A%2F%2Fwww.sdn.sap.com%2Firj%2Fscn%2Fgo%2Fportal%2Fprtroot%2Fdocs%2Flibrary%2Fuuid%2F10bfa608-103b-2c10-6399-e41044c3363e%3Foverridelayout%3Dtrue&rct=j&q=sap%20mii%20jta%20action&ei=0iXLTPDRCoTsuAOayqj_Dw&usg=AFQjCNHetW1FIkRNnuMypaZyM9XDVhgc9Q&sig2=bM660sTZXBk95LfF_scBEg&cad=rja]
    You should however note that the JTA Actions blocks are provided as is, with no official support from SAP and I would be very brave indeed to use them in a production environment.
    Abesh

  • How to find Explain Plan for a large querry which has multiple sub querries

    Hi All,
    I have a Package which has many procedures and one of the procedure has a cursor which is like 2000 lines. This cursor has a main select statement which again has many select statements in it.
    Now how do I do the explain plan for the main select statement?
    If it can be done easier way in toad(or SQLPLUS), please tell me...

    When your query takes too long ...

  • J1ID Querries

    In vendor excise details of J1ID what is the significance of the last column
    " Cenvat".
    When should i checked it.
    Similarly in plant excise details what value i should maintain in excise indicator
    " E"
    What is the importance of the it.
    In excise tax rate field of j1id there are two two columns  viz. Excise rate, and excise duty rate waht is the difference between two.
    If we are ordering certain material on which the BED is 16% and CESS is 1% .What values i should maintain there and in which column.
    Please explain.
    What is quantity based AED,NCCD,SED rates we should maintain?
    Alsoif we are maintaining various tax rates using the tax code , then why we maintain them again J1ID. If there is any difference between them please explain me.
    Message was edited by:
            Komal Kapur

    <b>In vendor excise details of J1ID what is the significance of the last column
    " Cenvat".</b>
    The Cenvat tick is usefull only if u r using old excise determination method.
    Now a days its not applicable. in olden days SSI vendor used to have diffrent rate of excise . so this indiacator is used to pick corect excise rate based on SSI vendor and that cenvat tick.
    <b>Similarly in plant excise details what value i should maintain in excise indicator
    " E"</b>
    u will have to mainatin 1 in as excise indicator in "E"
    <b>What is the importance of the it.</b>
    its importants in to correctly select the excise rate on combination of indicator
    plant excise indicator vendor excise indicator and excise tax indiactor for selecting of excat rate for excise.
    example
    for a plant 1 and vendor1 combination rate is of excise is16%
    where as for plant 1 and vendor 2 rate in 8 %
    in this case this indicators r used. only for TAXINJ tax procedure
    <b>In excise tax rate field of j1id there are two two columns viz. Excise rate, and excise duty rate waht is the difference between two.</b>
    Excise rate is %
    Excise duty rate is Value in RS
    <b>If we are ordering certain material on which the BED is 16% and CESS is 1% .What values i should maintain there and in which column</b>
    % in Excise rate column
    <b>What is quantity based AED,NCCD,SED rates we should maintain?</b>
    Quantity based means u will have to put the value and this value will get multiplied by ur quantity to give u AED value.
    example Qty base rater say 12 Rs and qty ordered is 100 then AED value is 1200
    <b>Alsoif we are maintaining various tax rates using the tax code , then why we maintain them again J1ID. If there is any difference between them please explain me.</b>
    This all aboue are used in only TAXINJ procedure
    in tax code u use 100 % for Excise duty
    and the excate rate in picked up from j1id
    for example taxcode 100% maintaned and in jiid 16% then it means 16% full
    and if in taxocde 50% maintained for excise duty and in j1id 16% then it means 8%
    All this were used in olden days now a days india have made flat on 16 % so all this things are not in use.
    more over SAP have new tax procedure TAXINN whis is now used and all this this have become invaled only few things in J1id have to be maintained
    hope this have helped u
    reward is expected is u like the ans

  • Please provide answers(relevant) to my querries

    Hi,
    I am new to ale and idocs
    I want to know about the various   idoc statuses
    like 64.51,68,53
    Moreover i want to know about mssage claases segments.
    specifically  message type clifmas
    secondly i d want to know about tcode sm37,bd87,sm59 in detail.
    regards,
    sharad

    hi
    51---ERROR IN ALE
    53 --- DATA POSTED TO THEIR RELATED DATABASE TABLES
    64-- IDOC READY TO GET POSTED.
    50-- IDOC ADDED
    For more check out
    http://publib.boulder.ibm.com/tividd/td/ITMAN/SC23-4812-00/en_US/HTML/sa51mst256.htm
    For different Message types
    http://www.erpgenie.com/sapedi/message_types_masterdata.htm
    http://www.erpgenie.com/sapedi/message_types.htm
    CLIFMAS--- Classification and its message type is clifmas01 for master data in the LOgistics
    About transactions 
    SM59-- is to maintain RFC Destinations
    SM37--Overview of Job selection
    BD87--Status monitor for ALE messages
    Regards
    pavan

  • Raid/Scratch Querries When Using WIth Photoshop

    I am about to purchase a Mac Pro 3GHZ and am looking into options with raiding the hard drives. I use my mac for high end photoshop retouching and want to get the best possible performance from the hard drives when saving and openning large files.
    I am going to keep the system hard drive seperate, but purchase 2 additional Caviar SE 250 GB hard drives and set up a striped array (Raid 0) for my large working files. However, I am aware that to create an effective scratch disk it is best to partition the hard drive so as not to be detrimental to the main HD and cause fragmentation.
    Because I am raiding the 2 Caviar hard drives will it be a mistake to use it as a scratch as well? Obviously the scratch speed would improve but would it affect the performance of the read/write speed of the hard drive for working files? Is it even possible to partition a raid drive and is it advisable? I am not looking to purchase a seperate HD for the scratch as I feel this would be a bit of a waste of money.
    Mac Pro 3 GHZ   Mac OS X (10.4.8)  

    The way I would actually configure a Photoshop workstation is to have…
    1) Western Digital Raptor 10K 150GB RAID 0 pair for Mac OS X and scratch
    2) Maxtor MaXLine Pro 500GB RAID 0 pair for data and secondary scratch
    Now, I have to admit this would not be the cheapest setup although it would kick you know what.

  • PM QUERRI

    HI PM GURUS,
    1. How do we proceed for warranty claim processing?Any useful doc would help me.
    2. do we have inventory management for PRT'S ? plz send some document on this
    3.What are the settings we have to do in order release or save  for capacity avialability check of workcentre, money avialability in the cost centre which we have entered?
    4.Is PRT check possible before order release or save how is the setting done in orders?
    thanks&regards
    pushpa

    hi pushpa,
    1.in enterprise structure first you have to create MPP in definition and you have to assin to MP
    for example you have two plants 1000 and 1001 if you are planning in one plat say in 1000 only ,then you have to create both the plants in MPP (definition)and assign 1000 for both the plants
    2.you can use multiple counter plan for configuring the problem you specified, for this you have to create a cycle cet first.
    3.Estimated cost is used for general planning only suppose you does not know how much will be the cost involved ,so you plan the estimated cost in the early stage.but you can only specify the est.cost until the release of order only
    -The workcentre specifying in the operation tab is the performing work center,that is the group of people who actually do the work, whereas the main workcenter you specify in the order header is a group of people or department head who plan who should do the work.
    4.work center capacity is defined by the system itself,base on the input you have provided in the workcentre capacity
    i hope i have cleared
    regards
    thyagarajan

  • PM Querris

    hi pm gurus
    1.Anyone plz send me list on SAP-PM tables and linking details&list of various user exits,customer exits , BADIS ,to my email:- [email protected]
    Plz try to send as it would help me in my SAP-PM carrer.
    thanks&regards
    pushpa

    Hi Kolla......
    In reference to your querry regarding PM tables, you go to T code SE16, then press F4, on F4 screen click on SAP APPLICATIONS, you can see the diffrent modules mentioned there. Click on PM & drilldown the tree, you will find all the tables related with PM module......
    Hope, this will help you.........
    Regards,

Maybe you are looking for