SQL for finding system tables????

Hi all,
I would like to know what is the sql queery to find all the system tables( when i am logged in as a user and not as a DBA)
How to find the previleges enjoyed by a user ( when i am logged in as a user and not as a DBA)
thanks
Ganesh

For your second question following are the views you might want to query:
session_privs;
SESSION_ROLES
user_role_privs;
USER_SYS_PRIVS;
USER_COL_PRIVS
USER_COL_PRIVS_MADE
USER_COL_PRIVS_RECD
USER_TAB_PRIVS
USER_TAB_PRIVS_MADE
USER_TAB_PRIVS_RECD
COLUMN_PRIVILEGES
ROLE_ROLE_PRIVS, ROLE_SYS_PRIVS, ROLE_TAB_PRIVS.

Similar Messages

  • SQL  to find which table data is stored?

    I know a table field value.
    I don't know, which table that value is stored. I want to find that table from database.
    What sql will find that?.
    Please post me online links for tricky sql's like this...so i can master sql's of this kind.
    Thanks for ur help.

    Ok, here's my pseudo google DB:
    michaels>  var val varchar2(5)
    michaels>  exec :val := 'as'
    PL/SQL procedure successfully completed.
    michaels>  select distinct substr (:val, 1, 11) "Searchword",
                    substr (table_name, 1, 14) "Table",
                    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
               from cols,
                    table
                       (xmlsequence
                           (dbms_xmlgen.getxmltype ('select ' || column_name
                                                    || ' from ' || table_name
                                                    || ' where upper('
                                                    || column_name
                                                    || ') like upper(''%' || :val
                                                    || '%'')'
                                                   ).extract ('ROWSET/ROW/*')
                       ) t
    --        where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
           order by "Table"
    Searchword  Table          Column/Value                                     
    as          DEPARTMENTS    <DEPARTMENT_NAME>Purchasing</DEPARTMENT_NAME>    
    as          DEPARTMENTS    <DEPARTMENT_NAME>Treasury</DEPARTMENT_NAME>      
    as          EMPLOYEES      <EMAIL>PVARGAS</EMAIL>                           
    as          EMPLOYEES      <EMAIL>STOBIAS</EMAIL>                           
    as          EMPLOYEES      <FIRST_NAME>Douglas</FIRST_NAME>                 
    as          EMPLOYEES      <FIRST_NAME>Jason</FIRST_NAME>                   
    as          EMPLOYEES      <JOB_ID>AD_ASST</JOB_ID>                         
    as          EMPLOYEES      <LAST_NAME>Tobias</LAST_NAME>                    
    as          EMPLOYEES      <LAST_NAME>Vargas</LAST_NAME>                    
    as          JOB_HISTORY    <JOB_ID>AD_ASST</JOB_ID>                         
    10 rows selected.Not as fast as google, so you better take a cup of tea or two ... ;-)

  • T-SQL for finding the unused tables which are consuming maximum disk space.

    Hi,
    Need help in writing a T-SQL that can return me the unused or least used tables in a database and are consuming a lot of disk space.
    Thanks  

    Refer
    http://gallery.technet.microsoft.com/SQL-List-All-Tables-Space-baf0bbf9
    create table #TableSize (
    Name varchar(255),
    [rows] int,
    reserved varchar(255),
    data varchar(255),
    index_size varchar(255),
    unused varchar(255))
    create table #ConvertedSizes (
    Name varchar(255),
    [rows] int,
    reservedKb int,
    dataKb int,
    reservedIndexSize int,
    reservedUnused int)
    EXEC sp_MSforeachtable @command1="insert into #TableSize
    EXEC sp_spaceused '?'"
    insert into #ConvertedSizes (Name, [rows], reservedKb, dataKb, reservedIndexSize, reservedUnused)
    select name, [rows],
    SUBSTRING(reserved, 0, LEN(reserved)-2),
    SUBSTRING(data, 0, LEN(data)-2),
    SUBSTRING(index_size, 0, LEN(index_size)-2),
    SUBSTRING(unused, 0, LEN(unused)-2)
    from #TableSize
    select * from #ConvertedSizes
    order by reservedKb desc
    drop table #TableSize
    drop table #ConvertedSizes
    --Prashanth

  • SQL for finding chunk or no keyboard values

    Hi all ,
    I have table where users are allowed to enter data from excel sheet but while viewing it in application due to non key board values are like ¶,     ã, £
    the validation getting failed and values are not loaded kindly help me in finding those non key board values , as data has been already loaded i need to find the data with non key board values .
    i have written the query for one values but i need to find it for all the other values which are not part of key board
    select * from note where text like '%'|| chr(1) ||'%';

    879380 wrote:
    Hi all ,
    I have table where users are allowed to enter data from excel sheet but while viewing it in application due to non key board values are like ¶,     ã, £
    the validation getting failed and values are not loaded kindly help me in finding those non key board values , as data has been already loaded i need to find the data with non key board values .
    SELECT  REGEXP_REPLACE
              (column_name,
               '[qwertyuiopasdfghjklzxcvbnm QWERTYUIOPASDFGHJKLZXCVBNM ,./?;:''"{}1234567890=!@#$%^&*()_+\|`~-]+'
              ) non_keyborad_symbol_exists
      FROM table_name ;
    Cheers!

  • SQL for cross dependent table creation

    How do I run this SQL script to create these tables wiwth criss-cross relation ? kinda chicken-n-egg situation.
    Note : Writer<->Book
    CREATE TABLE library.Writer(
    name VARCHAR2(50) NOT NULL ,
    CONSTRAINT Writer_name PRIMARY KEY (name) ENABLE ,
    books VARCHAR2(50),
    CONSTRAINT books_Writer_Book FOREIGN KEY (books) REFERENCES library.Book (title) ENABLE
    CREATE TABLE library.Book(
    title VARCHAR2(50) NOT NULL ,
    CONSTRAINT Book_title PRIMARY KEY (title) ENABLE ,
    pages NUMBER NOT NULL ,
    category VARCHAR2(50) DEFAULT 'Mystery' NOT NULL ,
    author VARCHAR2(50),
    CONSTRAINT author_Book_Writer FOREIGN KEY (author) REFERENCES library.Writer (name) ENABLE
    CREATE TABLE library.Library(
    name VARCHAR2(50) NOT NULL ,
    CONSTRAINT Library_name PRIMARY KEY (name) ENABLE ,
    books VARCHAR2(50),
    CONSTRAINT books_Library_Book FOREIGN KEY (books) REFERENCES library.Book (title) ENABLE ,
    writers VARCHAR2(50),
    CONSTRAINT writers_Library_Writer FOREIGN KEY (writers) REFERENCES library.Writer (name) ENABLE
    );

    While I agree with the comments for this particular schema, if your question is meant to be more general, "How do I create constraints against interdependent tables?" then you need to create the constraints using an alter table statement after creating the tables and PKs. Something like:
    CREATE TABLE library.writer(
       name  VARCHAR2(50) NOT NULL,
       books VARCHAR2(50),
       CONSTRAINT writer_name PRIMARY KEY (name));
    CREATE TABLE library.book(
       title    VARCHAR2(50) NOT NULL,
       pages    NUMBER NOT NULL,
       category VARCHAR2(50) DEFAULT 'Mystery' NOT NULL,
       author   VARCHAR2(50),
       CONSTRAINT book_title PRIMARY KEY (title));
    CREATE TABLE library.library(
       name    VARCHAR2(50) NOT NULL,
       books   VARCHAR2(50),
       writers VARCHAR2(50),
       CONSTRAINT Library_name PRIMARY KEY (name));
    ALTER TABLE writer ADD CONSTRAINT books_Writer_Book FOREIGN KEY (books)
       REFERENCES library.Book (title);
    ALTER TABLE book ADD CONSTRAINT author_Book_Writer FOREIGN KEY (author)
       REFERENCES library.Writer (name);
    ALTER TABLE library ADD CONSTRAINT books_Library_Book FOREIGN KEY (books)
       REFERENCES library.Book (title);
    ALTER TABLE library ADD CONSTRAINT writers_Library_Writer FOREIGN KEY (writers)
       REFERENCES library.Writer (name);HTH
    John

  • Extractor For AFS System [ Table /AFS/MARM & /AFS/MWKE & /AFS/MLGN2 ]

    Hi Guru,
    Exist a Extractor Standard for this table? for exmple i thinking for /AFS/MARM ( 0MAT_UNIT ?? )
    I would like to implement a delta extractor using one of the usual method, for exmple by reading the table ( CDPOS / CDHR ) or using the BTE ( Transactio Event ) .
    I accept any kind of suggestion, in particular if someone has already implemented a possible solution.
    Regards
    Max

    Hi
    why do want to select the data from PSA table ?Already your trying to load data from PSA to DSO.
    you want to populate the AFS field value in DSO right?
    1. First you have to add AFS field in ur DSO
    2. Write the Start routine based on ur scenario(select the data based on ur scenario and put into internal table).
    3. wirte AFS field leval  transfer routine(Read the corresponding record based on docu num,item num) pass into RESULT.
    Regards,
    GR

  • SQL for finding identical domains in e-mail addresses

    Hi, guys can anyone help me designing a query which will guve me the names and email addresses of all people who have the identical registered domain names
    Edited by: user12258774 on Nov 22, 2009 1:35 PM
    Edited by: user12258774 on Nov 28, 2009 1:09 PM
    Edited by: user12258774 on Nov 28, 2009 1:11 PM

    Actually based on:
    Hi, guys can anyone help me designing a query which will guve me the names and email addresses of all people who have the identical registered domain namesThe following will produce lists of consultants with same email domains within expertiseid (assuming list will not exceed 4000 bytes):
    SELECT  expertiseid,
            substr(email,instr(email,'@',-1) + 1) domain,
            ltrim(firstname || ' ' || lastname,';'),';') name_list,
            ltrim(email,';'),';') email_list,
            ltrim(c.consultantid,';'),';') consultantid_list
      FROM  (
             SELECT  firstname, lastname, c.consultantid,row_number() over(partition by expertiseid,substr(email,instr(email,'@',-1) + 1) order by c.consultantid) rn
               FROM  consultants c, skills s
               WHERE s.consultantid = c.consultantid
      WHERE connect_by_isleaf = 1
      START WITH rn = 1
      CONNECT BY expertiseid = PRIOR expertiseid
             AND substr(email,instr(email,'@',-1) + 1) = PRIOR substr(email,instr(email,'@',-1) + 1)
             AND rn = PRIOR rn + 1
    /SY.

  • Sql for selected Workbook Folder Items

    Hi,
    Have come across a lot of excellent sql for finding workbook to folder items and many thanks to the various authors for those. However, what i am trying to get is the selected items within a workbook that is saved to the database. Using the code that I mentioned earlier, I see a workbook in the DB, the Business Areas and the folders. However, i see ALL the items in the folder. I am interested in seeing only those items that have been chosen.....
    I would also settle for some good doco on the eul5_xxxxxxxxx tables that are created detailing their functions, some are obvious - other less so...
    many thanks
    patrick.

    Hi Patrick
    As you may well be aware I am the author of the Oracle Discoverer 10g Handbook. In Appendix A of that book you will find many scripts for querying the EUL along with explanations for how some of the EUL is put together. If you don't have a copy you should consider getting one. Many companies get one for each of their administrators and report writers.
    The particular issue you refer to here is not covered in the book, simply because there is no easy mechanism to see the SQL used inside a workbook. Workbooks are stored in a table called EUL5_WORKBOOKS as binary objects which means you cannot query their content.
    If you have the gathering of query statistics enabled then each time a worksheet is executed a log of that is stored inside the table called EUL5_QPP_STATS. The following code will allow you to examine the folders and items that have been used in previously executed worksheets.
    SELECT
    QS.QS_DOC_OWNER USER_NAME,
    QS.QS_DOC_NAME WORKBOOK,
    QS.QS_DOC_DETAILS WORKSHEET,
    TRUNC(QS.QS_CREATED_DATE) DOC_DATE,
    (LENGTH(TO_CHAR(EUL5_GET_ITEM_NAME(QS.QS_ID)))+1)/9 ITEMS,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),1, 6)) ITEM1,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),10, 6)) ITEM2,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),19, 6)) ITEM3,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),28, 6)) ITEM4,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),37, 6)) ITEM5,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),46, 6)) ITEM6,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),55, 6)) ITEM7,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),64, 6)) ITEM8,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),73, 6)) ITEM9,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),82, 6)) ITEM10,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),91, 6)) ITEM11,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),100,6)) ITEM12,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),109,6)) ITEM13,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),118,6)) ITEM14,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),127,6)) ITEM15,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),136,6)) ITEM16,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),145,6)) ITEM17,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),154,6)) ITEM18,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),163,6)) ITEM19,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),172,6)) ITEM20
    FROM
    EUL5_QPP_STATS QS
    WHERE
    (LENGTH(TO_CHAR(EUL5_GET_ITEM_NAME(QS.QS_ID)))+1)/9 < 21
    As you can see, this code returns worksheets that use 20 or fewer items. You can easily alter this. Further, you may want to restrict this by searching for worksheets that have been run from a certain date using TRUNC(QS.QS_CREATED_DATE), or for a certain workbook using QS.QS_DOC_NAME, or for a certain user using QS.QS_DOC_OWNER. Sometimes you will see QS.QS_DOC_OWNER blank. This means the worksheet has been shared with someone else and was just executed without the user saving it.
    By the way, if you want to query this inside of Discoverer you will have to import the two functions that this uses: EUL5_GET_ITEM and EUL5_GET_ITEM_NAME. They are both owned by the EUL owner.
    Everyone: I will be having discussions with a publisher and a colleage of mine in early April to scope out a new Discoverer book. This book is intended to be a companion to the handbook but be more technical in its approach covering some of the more complex stuff in greater detail. We are looking at about 300 pages. If anyone has any suggestions for material that you would like to see included please send an email to me using [email protected]
    Best wishes
    Michael

  • Find error table created using DBMS_ERRLOG

    Hello,
    I am working on Oracle 10.2.0.5 and have a requirement to log the Error records without allowing the Load process to fail. In order to achieve this, I have decided to use the DBMS_ERRLOG functionality provided.
    However, there is a catch. The application has approx. 100+ database tables, which are loaded with data received in flat files, and many of them have length nearning 30 characters.
    Now, DBMS_ERRLOG, will automatically create an error table corresponding to database table, but will only consider first 25 characters. And since, many tables have similar names differing only towards the end. Hence, my question is, Is there any data dictionary view which might store the underlying database table name?
    I am aware of two options to achieve this:
    1. Maintain a document to reference each Error table to its database table. This being a manual approach, I am trying to avoid it.
    2. Use the USER_TAB_COMMENTS, which will store the table name in comment. Although I have seen this happening, but do not see this as sure-shot approach, since I do not remember reading this anywhere in documentation.
    Can anybody suggest a better approach to manage the situation?

    padders answer is a good one.  I do not see the problem since you can create the error log tables with names of your choosing in any schema you want.  Don't let oracle name the tables.  Use SQL to create the PL/SQL for all your tables based on a tag you put in the table comments or based on another table with the table names to be logged.
      DBMS_ERRLOG.create_error_log
        dml_table_name      => 'real_schema.my_thirty_character_table_name',
        err_log_table_name  => 'my_thirty_character_table_name',
        err_log_table_owner => 'error_schema',
        skip_unsupported    => TRUE
    Table_Name
    Error_Table_Name
    Error_SchemaHeader
    my_thirty_character_table_name
    my_thirty_character_table_name
    error_schema
    my_short_name
    my_short_name_err_log
    support
    With so many tables I would write a generator to create all the error log tables and the DML (insert, update or merge statements) with error logging for all the tables based on the above table and maybe put the DML in an API package that can be called from your app.

  • Table to find the interfaces for a system

    Hi,
    I need to find the number of inbound and outbound interfaces for a particular system.
    Is there any specific table to find the total number of entries?
    <b>WE20</b> is a transaction to find it out manually. But I guess there is some table where we can find it in a easier way.
    Kindly reply...
    Thanks!.

    Hi
    You need to find the Message type and IDoc types
    use table <b>EDBAS</b> for IDOC types and
    <b>EDMSG</b> for finding message types
    <b>EDPP1</b>  for all partner profiles
    <b>EDP12 and EDP13</b>  for inbound and outbound views
    Reward points if useful
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Sql query for finding a string in a column of a table

    Hi All,
    I have an issue, I have gotten a string ie '1D USD PRIME' and I have access to oracle's dictionary tables and views such as (all_source, all_tab_cols etc), my requirement is to find which table' column holds my above mentioned string, so I mean both the table name and the column name, it could be that this string might exist in more than 1 table so I want all the tables that holds it.
    Regards
    Rahul

    Hi All,
    I think you misunderstood my question, so may be I didnt ask it properly, so here it is I am explaining in detail with an example.
    Suppose I have 10 users with 10 different user name's in a database and I am the 11th user as DBA, every 10 of these users have created some tables lets say 20 tables each by every user making a count of the total tables as 200, now lets say 10 of 200 tables has a column ie fname with value as 'rahul', I want to search the string 'rahul' from all the 200 tables that which of the tables contains this string along with the column name.
    I hope this time my question is clear, the point is I just know of a value and I dont know the table name and column name where it may actually residing, futher I want to search tables of other users as well.
    Regards
    Rahul

  • SQL Server 2012 Management Studio:In the Database, how to print out or export the old 3 dbo Tables that were created manually and they have a relationship for 1 Parent table and 2 Child tables?How to handle this relationship in creating a new XML Schema?

    Hi all,
    Long time ago, I manually created a Database (APGriMMRP) and 3 Tables (dbo.Table_1_XYcoordinates, dbo.Table_2_Soil, and dbo.Table_3_Water) in my SQL Server 2012 Management Studio (SSMS2012). The dbo.Table_1_XYcoordinates has the following columns: file_id,
    Pt_ID, X, Y, Z, sample_id, Boring. The dbo.Table_2_Soil has the following columns: Boring, sample_date, sample_id, Unit, Arsenic, Chromium, Lead. The dbo.Table_3_Water has the following columns: Boring, sample_date, sample_id, Unit, Benzene, Ethylbenzene,
    Pyrene. The dbo.Table_1_XYcoordinates is a Parent Table. The dbo.Table_2_Soil and the dbo.Table_3_Water are 2 Child Tables. The sample_id is key link for the relationship between the Parent Table and the Child Tables.
    Problem #1) How can I print out or export these 3 dbo Tables?
    Problem #2) If I right-click on the dbo Table, I see "Start PowerShell" and click on it. I get the following error messages: Warning: Failed to load the 'SQLAS' extension: An exception occurred in SMO while trying to manage a service. 
    --> Failed to retrieve data for this request. --> Invalid class.  Warning: Could not obtain SQL Server Service information. An attemp to connect to WMI on 'NAB-WK-02657306' failed with the following error: An exception occurred in SMO while trying
    to manage a service. --> Failed to retrieve data for this request. --> Invalid class.  .... PS SQLSERVER:\SQL\NAB-WK-02657306\SQLEXPRESS\Databases\APGriMMRP\Table_1_XYcoordinates>   What causes this set of error messages? How can
    I get this problem fixed in my PC that is an end user of the Windows 7 LAN System? Note: I don't have the regular version of Microsoft Visual Studio 2012 in my PC. I just have the Microsoft 2012 Shell (Integrated) program in my PC.
    Problem #3: I plan to create an XML Schema Collection in the "APGriMMRP" database for the Parent Table and the Child Tables. How can I handle the relationship between the Parent Table and the Child Table in the XML Schema Collection?
    Problem #4: I plan to extract some results/data from the Parent Table and the Child Table by using XQuery. What kind of JOIN (Left or Right JOIN) should I use in the XQuerying?
    Please kindly help, answer my questions, and advise me how to resolve these 4 problems.
    Thanks in advance,
    Scott Chang    

    In the future, I would recommend you to post your questions one by one, and to the appropriate forum. Of your questions it is really only #3 that fits into this forum. (And that is the one I will not answer, because I have worked very little with XSD.)
    1) Not sure what you mean with "print" or "export", but when you right-click a database, you can select Tasks from the context menu and in this submenu you find "Export data".
    2) I don't know why you get that error, but any particular reason you want to run PowerShell?
    4) If you have tables, you query them with SQL, not XQuery. XQuery is when you query XML documents, but left and right joins are SQL things. There are no joins in XQuery.
    As for left/right join, notice that these two are equivalent:
    SELECT ...
    FROM   a LEFT JOIN b ON a.col = b.col
    SELECT ...
    FROM   b RIGHT JOIN a ON a.col = b.col
    But please never use RIGHT JOIN - it gives me a headache!
    There is nothing that says that you should use any of the other. In fact, if you are returning rows from parent and child, I would expect an inner join, unless you want to cater for parents without children.
    Here is an example where you can study the different join types and how they behave:
    CREATE TABLE apple (a int         NOT NULL PRIMARY KEY,
                        b varchar(23) NOT NULL)
    INSERT apple(a, b)
       VALUES(1, 'Granny Smith'),
             (2, 'Gloster'),
             (4, 'Ingrid-Marie'),
             (5, 'Milenga')
    CREATE TABLE orange(c int        NOT NULL PRIMARY KEY,
                        d varchar(23) NOT NULL)
    INSERT orange(c, d)
       VALUES(1, 'Agent'),
             (3, 'Netherlands'),
             (4, 'Revolution')
    SELECT a, b, c, d
    FROM   apple
    CROSS  JOIN orange
    SELECT a, b, c, d
    FROM   apple
    INNER  JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    LEFT   OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    RIGHT  OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    FULL OUTER JOIN orange ON apple.a = orange.c
    go
    DROP TABLE apple, orange
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to hide system tables when using the Oracle SQL Developer?

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? I didnt find a way to create a separate database using the Oracle Sql Developer. I see all the tables together, and would like to differentiate between different databases.
    Can anyone explain to me how to do these things?
    Thanks,

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? Your posting is not clear,again tell something more on tables tree,what u want to achieve with it.
    How to hide system tables when using the Oracle SQL Developer? if u connected with sys, system or user with dba role then u have a privilege to see these tables,so revoke the privilege/role from ur user to view this tables if ur connected other then sys,system,
    I didnt find a way to create a separate database using the Oracle Sql Developer. DBCA is a tool for creating the new database.
    Kuljeet

  • SQL for join table  problem?

    hi morning,
    my problem also haven find out the solution,can help me solve.
    I got one part of register student to exam,during that part is like that.
    Student Code:________(table3)
    Exam Code:_________(table 3)
    Student Name:________(table 1)
    Exam Name:_________(table 2)
    I can write code call table 3 but when three table join together in part 3,got problem is come out alry....The problem is inside the Student Name & Exam Name.When i use the button for NEXTRECORD to check record,cannot call the student Name & exam Name.
    Thank for help. Because i use sql code to call table 3 to check table1 and table 2 detail ,then retrive that data.
    my code is like that,
    private void cmd_NexRec_RSEActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
    int i;
    i=0;
    try{
    String x1,x2;
    x1=(jTextField10.getText()).trim();
    x2=(jTextField11.getText()).trim();
    if (x1.equals("")&& x2.equals("") )
    counter.studentExam="R";
    counter.registerStudentExam="N";
    i++;
    jInternalFrame8.setVisible(false);
    Connection con = getConnection2();
    Statement s = con.createStatement (ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    ResultSet rs=getStudentExams();
    ResultSet rs1=getCodes();
    ResultSet rs2=getExams();
    String select="select * from studentExamFile a LEFT JOIN {studentData b} ON a.student_code=b.student_code LEFT JOIN {exam c} ON c.exam_code=a.exam_code where student_code='"+ x1 +"' and exam_code='"+ x2 +"'" ;
    // String select ="select * from studentExamFile , exam , studentData where studentExamFile.student_code=studentData.student_code and exam.exam_code=studentExamFile.exam_code ";
    // rs = s.executeQuery(select);
    rs.next();
    StudentExam c=getstudentcode(rs);
    Code c1=getCode(rs1);
    Examcode c2=getexamcode(rs2);
    jTextField12.setText(c.studentcode);
    jTextField13.setText(c.examcode);
    jTextField14.setText(rs.getString("c1.name"));
    jTextField15.setText(rs.getString("c2.ename"));
    // jTextField14.setText(c1.name);
    // jTextField14.setText(c2.ename);
    jLabel16.setText("Record: Review");
    jInternalFrame10.setVisible(true);
    jTextField12.setEnabled(false);
    jTextField13.setEnabled(false);
    //New Line
    jTextField14.requestFocus();
    else
    Connection con = getConnection2();
    Statement s = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
    String w=(jTextField10.getText()).trim();
    String w2=(jTextField11.getText()).trim();
    //String select= "select * from [studentExamFile] where [student_code]>'" w "'";
    // String select1="select * from [studentExamFile] where [exam_code]>'" w2 "'";
    String select="select * from studentExamFile a LEFT JOIN {studentData b} ON a.student_code=b.student_code LEFT JOIN {exam c} ON c.exam_code=a.exam_code where student_code='"+ x1 +"' and exam_code='"+ x2 +"'" ;
    ResultSet rs;
    rs = s.executeQuery(select);
    // rs = s.executeQuery(select1);
    rs.next();
    if(rs.isFirst())
    counter.registerStudentExam="N";
    jInternalFrame8.setVisible(false);
    jTextField12.setText(rs.getString(1));
    jTextField13.setText(rs.getString(2));
    jLabel16.setText("Record: Review");
    jInternalFrame10.setVisible(true);
    jTextField12.setEnabled(false);
    jTextField13.setEnabled(false);
    //New Line
    jTextField14.requestFocus();
    counter.studentExam="R";
    else
    JOptionPane.showMessageDialog(this,"End of the file ","Infomation",JOptionPane.INFORMATION_MESSAGE);
    }catch(SQLException e)
    System.out.println("Error");
    //jTextField3.requestFocus();
    }

    thanks for reply.
    i think my problem is in connection to database .
    String sql="select studentData.student_name, exam.exam_name from studentData,exam,studentExamFile where studentData.student_code=studentExamFile.student_code and exam.exam_code=studentExamFile.exam_code ";
                    // String sql="select studentData.student_name , exam.exam_name from studentExamFile  LEFT JOIN { studentData }  ON studentExamFile.student_code=studentData.student_code LEFT JOIN { exam }  ON exam.exam_code=studentExamFile.exam_code ";
                     Connection con = getConnection();
                     Statement s = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
                     Connection con2 = getConnection();
                     Statement s3 = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
                     System.out.println("error");//my problem inside here....help me
                     rs3=s.executeQuery(sql);
                     rs3=s3.executeQuery(sql);
                     rs3.next();
                     String s1,s2;
                     s1=rs3.getString(1);//maybe me dunno how to convert the sql data...
                     s2=rs3.getString(2);
                     rs.next();
                     rs2.next();
                    // rs3.next();
                     Code c=getCode(rs);
                     Examcode c2=getexamcode(rs2);
                     StudentExam c3=getstudentcode(rs3);
                     jTextField12.setText(c3.studentcode);
                     jTextField13.setText(c3.examcode);
                    // jTextField14.setText(rs.getString("c.name")); 
                     //jTextField15.setText(rs.getString("c2.ename"));
                     jTextField14.setText(s1); 
                     jTextField15.setText(s2);
                     jLabel16.setText("Record: Review");
                     jInternalFrame10.setVisible(true);
                     jTextField12.setEnabled(false);
                     //New Line
                     jTextField14.requestFocus();                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Table for finding out the User details

    Hi All,
    We need to create a KPI for number of hours a user has looged into a system. Is there any specific table where all the user related information is captured.If the information is not present in a table where  can we find the above information?Please someone help me out.....
    Also is it the same in all the systems or does this information differ from system to system?If it differs then how do we find the number of hours a user has logged in for a BW system, for a CRM system and for ECC system?
    Regards,
    Shravani

    Hello,
    USR01User master record (run-time data)
    USR02 Logon data
    USR03 User address data
    USR04 User master authorizations
    USR05 User Master Parameter ID
    USR06 Additional data per user
    USR07 Object/values of last failed authorization check
    USR08 Table for user menu entries
    USR09 Entries for user menus (work areas)
    USR10 User master authorization profiles
    USR11 User Master Texts for Profiles (USR10)
    USR12 User master authorization values
    USR13 Short Texts for Authorizations
    USR14 Surchargeable language versions per user
    USR15 External User Name
    USR20 Date of last user master reorganization
    USR30 Additional Information for User Menu
    USR40 Table for illegal passwords
    USR41 User master: Additional data
    USRCOBJ Object Filters for Exploding Product Structures
    USRM0 Material Master User Settings: User Screen Reference
    USRM1 Material Master User Settings: Organizational Levels
    USRM2 Material Master User Settings: Logical Screens
    USRMM User settings: material master
    Might be these can help you.
    Thanks
    Geeta

Maybe you are looking for