Oracle Session & Database monitoring

Hi All,
I need to track the users who fired the insert ,delete,update statement on all critical production table and business don't like to enable the audit feature since it will affect performance of oracle database.
Database version : 11gR2
thanks,
Mr.B

903787 wrote:
Hi,
When we enable the Audit trace in the database level it will affect the database performance so business not willing to take that risk in order to avoid any deliverable miss.And so would be taking the backup but does that you mean you won't take the backup too? If you need it, you have to enable it, period! And moreover, as Ed said, its not just enabling it. You have to sit and configure that for what areas you need auditing to be enabled. The overhead, though would be there, won't be that much that it would make your db crawl unless its already very slow.
But they like to restrict the productions table access, is there any way? Restricting the access is a very different requirement from monitoring the access. Still, have a look at data vault for the same.
While discussed with app dev team they said earlier we used to create synonym on those critical tables.
Aman....

Similar Messages

  • Oracle 9i database monitoring scripts

    Hi Friends,
    I am asked by my boss to submit weekly reports about the database status.
    She wanted something in excel format.
    Can you suggest me what reports do I submit?
    I found the following monitoring scripts from google:
    Are these scripts still relevant ,or applicable, or obsolete?
    PURPOSE
    This article contains a few ready-made queries on V$SQLAREA
    for identifying the top 10 most resource-consuming SQL statements
    with a variety of criteria.
    The thresholds used are the same as used by default in Statspack:
    Buffer Gets : 10,000
    Physical Reads : 1,000
    Executions : 100
    Parse Calls : 1,000
    Sharable Memory : 1,048576
    Version Count : 20
    Top 10 by Buffer Gets:
    set linesize 100
    set pagesize 100
    SELECT * FROM
    (SELECT substr(sql_text,1,40) sql,
            buffer_gets, executions, buffer_gets/executions "Gets/Exec",
            hash_value,address
       FROM V$SQLAREA
      WHERE buffer_gets > 10000
    ORDER BY buffer_gets DESC)
    WHERE rownum <= 10
    Rem Top 10 by Physical Reads:
    set linesize 100
    set pagesize 100
    SELECT * FROM
    (SELECT substr(sql_text,1,40) sql,
            disk_reads, executions, disk_reads/executions "Reads/Exec",
            hash_value,address
       FROM V$SQLAREA
      WHERE disk_reads > 1000
    ORDER BY disk_reads DESC)
    WHERE rownum <= 10
    Rem Top 10 by Executions:
    set linesize 100
    set pagesize 100
    SELECT * FROM
    (SELECT substr(sql_text,1,40) sql,
            executions, rows_processed, rows_processed/executions "Rows/Exec",
            hash_value,address
       FROM V$SQLAREA
      WHERE executions > 100
    ORDER BY executions DESC)
    WHERE rownum <= 10
    Rem Top 10 by Parse Calls:
    set linesize 100
    set pagesize 100
    SELECT * FROM
    (SELECT substr(sql_text,1,40) sql,
            parse_calls, executions, hash_value,address
       FROM V$SQLAREA
      WHERE parse_calls > 1000
    ORDER BY parse_calls DESC)
    WHERE rownum <= 10
    Top 10 by Sharable Memory:
    set linesize 100
    set pagesize 100
    SELECT * FROM
    (SELECT substr(sql_text,1,40) sql,
            sharable_mem, executions, hash_value,address
       FROM V$SQLAREA
      WHERE sharable_mem > 1048576
    ORDER BY sharable_mem DESC)
    WHERE rownum <= 10
    Top 10 by Version Count:
    set linesize 100
    set pagesize 100
    SELECT * FROM
    (SELECT substr(sql_text,1,40) sql,
            version_count, executions, hash_value,address
       FROM V$SQLAREA
      WHERE version_count > 20
    ORDER BY version_count DESC)
    WHERE rownum <= 10
    ;I just feel the above reports not really meaningful :(
    Can you give me some other scripts that u have?
    Thanks a lot,
    MsK

    Thanks all :-*
    @sybrand
    Oracle 9i comes with Oracle Enterprise Manager. This includes a reporting website with monitoring scripts.
    Why write them yourself?My boss want a cumulative report over time, for example : what happened @ 1am,2am,3am on tuesday last week, why is the server so slow that the batch job did not complete as expected? Why was an error occured about a table that can not extend? Ora 1635. I mean you can see in the report that at this certain hour a certain tablespace was full.
    oops maybe tablespace sample is not logical :D
    say every day I can have excel reports of tablespace space status like:
    tablespace_name   used     free     date
    TS_DATA          1000K   5000k  1-Oct-2010
    TS_DATA          2000K   4000k  2-Oct-2010
    TS_DATA          3000K   3000k  3-Oct-2010
    TS_DATA          4000K   2000k  4-Oct-2010
    TS_DATA          5000K   1000k  5-Oct-2010
    TS_DATA          5000K      0k  6-Oct-2010Does Statspack can hold historical data for analysis? say for the last 24 hrs?
    Thanks a lot

  • How to monitor oracle 11g database sessions on Windows 2008 server?

    Hi Experts
    How to monitor the Oracle 11g database sessions on Windows 2008 server (other than SQL Developer tool), which procedure or query is taking more time with Java application.

    Recently i found this tool- myorasql on the net to monitor the performence of database, easy to setup and check the performence.  i never tested it but seems impresive.  It is free and i think it would be use ful to you.
    http://myorasql.com/
    You can also use Quest - Toad or sqlplus if you are very good at sql commands and all dictionary tables or OEM/EM grid if it is configured .

  • Can Grid control 11g monitor Oracle 9i database

    Can Grid control 11g monitor Oracle 9i database? This is on Linux5.7
    Thanks for the help
    s.

    Yes but Enterprise Manager 11.1 Grid Control requires the 11.1 Agent.
    Then go to the Targets tab, then Databases. It should self-discover the 9i database.
    Also see Advanced Uses of Oracle Enterprise Manager 11g
    http://www.oracle.com/us/products/enterprise-manager/advanced-uses-em11g-wp-170683.pdf
    >
    Oracle Secure Backup protects not only Oracle Database 9i, 10g and 11g,
    Grid Control supplies a common, standard interface to set up and manage Oracle Data Guard for Oracle Database 9i, 10g and 11g databases

  • ORAMON: Oracle Database Monitoring tool in PHP

    ORAMON is a free Oracle database monitoring tool written in PHP. It can help you in managing critical database administration task easily. It also offers SQL Editor where you can write your own customize queries.
    What you can monitor from Oramon?
    * Database/Listener status
    * Notification on database status
    * Hit ratios
    * User information
    * Rollback segments
    * Tablespaces
    and more..
    Please visit oramon website http://www.oramon.org for more detail.
    For download go to http://www.oramon.org/download.php

    Can you please list this project in open source project list?

  • Script to monitor oracle sessions

    Hi i am looking for a script to monitor oracle sessions......which should find idle sessions which are idle for more than 25 mins and it should be killed...
    is that possible.
    Thanks

    user11278505 wrote:
    Hi i am looking for a script to monitor oracle sessions......which should find idle sessions which are idle for more than 25 mins and it should be killed...
    is that possible.
    ThanksYes it is, use Resource Manager to manage your users,
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/dbrm.htm#ADMIN027
    HTH
    Aman....

  • Oracle 10g Database course

    Hi Guys, i am currently doing my oracle database 10g, SQL fundamental 1, from NIIT, i have been suggested i do the PL/SQL Course and then appear for the ocp and oca exam and once i pass the exam then i should enroll my self for 10g workshop one and workshop two, and again appear for the oca and ocp exam, my question to u all is what are the oppurtunies of doing the oracle database 10g course?as i dont have any experiance earlier, will i get an job after completing my course? i have done my php and my sql course,it was an certification course no exam was held i have also done java again havnt given any exam. need suggestion's

    Guys, this is what i am being taught at NIIT for oracle 10g
    1.     Oracle 10g: Introduction to SQL Ed 3
    This course is divided in 2 parts:
    1.     Oracle Database 10g: SQL Fundamentals (Part I)
    2.     Oracle Database 10g: SQL Fundamentals (Part II)
    •     Run data manipulation statements (DML) to update data in the Oracle Database 10g
    •     Create tables to store and utilize views to display and retrieve data
    •     Identify the major structural components of Oracle Database 10g
    •     Create reports of sorted, restricted and aggregated data
    •     Employ SQL functions to generate and retrieve customized data
    •     Retrieve row and column data from tables with the SELECT statement
    •     Manage Schema Objects
    •     Manipulate large Datasets
    •     Generate Reports by Grouping Related Data
    •     Retrieve data using Sub-queries
    2.     Oracle Database 10g: PL/SQL Fundamentals
    •     Use PL/SQL programming constructs and conditional control statements
    •     Write PL/SQL code to interface with the database
    •     Design PL/SQL program units that execute efficiently
    •     Handle run-time errors
    3.     Oracle Database 10g: Administration Workshop I
    •     Install Oracle Database 10g and configure a database
    •     Manage the Oracle instance
    •     Manage the Database storage structures
    •     Create and administer user accounts
    •     Perform backup and recovery of a database
    •     Monitor, troubleshoot, and maintain a database
    •     Configure Oracle Net services
    •     Move data between databases and files
    4.     Oracle Database 10g: Administration Workshop II
    •     Use RMAN to create and manage backup sets and image copies
    •     Recover the database to a previous point in time
    •     Use Oracle Secure Backup to backup and recover a database
    •     Use Oracle's Flashback technology to recover your database
    •     Detect block corruptions and take appropriate measures to correct them
    •     Use the various Database advisors and views to monitor and improve database performance
    •     Control database resource usage with the Resource Manager
    •     Simplify management tasks by using the Scheduler
    •     Review database log files for diagnostic purposes
    •     Customize language-dependent behavior for the database and individual sessions
    •     Administer a VLDB
    •     Implement a secure database
    •     Transport data across platforms
    5.     Oracle Database 10g: Backup and Recovery
    •     Plan effective backup and recovery procedures
    •     Use Recovery Manager to create backups and perform recovery operations
    •     Use Oracle Flashback technologies to recover from human error
    •     Install Oracle Secure Backup
    •     Perform an Oracle-suggested backup to tape
    •     Use Oracle Secure Backup to perform a file system backup
    •     Use Oracle Secure Backup to perform a file system restoration
    •     Perform an encrypted database backup and restore
    •     Manage the Oracle Secure Backup environment
    •     Monitor and tune Recovery Manager
    •     Perform tablespace point-in-time recovery
    •     Create a duplicate database
    •     Create and manage a recovery catalog database
    6.     Oracle Database 10g: Performance Tuning
    •     Use the Oracle Database tuning methodology appropriate to the available tool
    •     Utilize database advisors to proactively tune an Oracle database
    •     Use the tools based on the Automatic Workload Repository to tune the database
    •     Use Statspack reports to tune the database
    •     Diagnose and tune common database performance problems
    •     Use Enterprise Manager performance-related pages to monitor an Oracle database
    7.     Oracle Database 10g: Security Release 2
    •     Use basic database security features
    •     Choose a user authentication model
    •     Secure the database and its listener
    •     Use the Enterprise Security Manager tool
    •     Manage users using proxy authentication
    •     Implement Enterprise User Security
    •     Describe the benefits and requirements associated with the Advanced Security Option
    •     Manage secure application roles
    •     Implement fine-grain access control
    •     Manage the Virtual Private Database (VPD)
    •     Implement fine-grain auditing
    •     Use Transparent Data Encryption
    •     Use file encryption
    •     Encrypting and Decrypt table columns
    •     Setup a simple Label Security policy
    8.     Oracle Database 10g: SQL Tuning Workshop
    •     Describe the basic steps in processing SQL statements
    •     Describe the causes of performance problems
    •     Understand where SQL tuning fits in an overall tuning methodology
    •     Describe Automatic SQL Tuning
    •     Use the diagnostic tools to gather information about SQL statement processing
    •     Understand Optimizer behavior
    •     Influence the optimizer behavior
    •     Influence the physical data model so as to avoid performance problems
    Is this enought to qualify for a job as a DBA in a good company?also after this can i qualify for ocp and oca exam?

  • Database Monitoring

    Hi guys,
    I am pretty new into Oracle Database Administration. I am currently tasked with database monitoring and I would like to ask you guys what parameters or aspects of database we have to constantly monitor? I know for sure we have to monitor the harddisk space, tablespace free space and latch. However, apart from those parameters, anything else I have to pay attention to? And what are the threshold for each parameter? For example, what is the good percentage of freespace to determine when to expand a tablespace?
    I would really appreciate your view as I am completely clueless. I have checked some books on this matter but most of them jump straight to the finetuning without revealing any detail on the monitoring parameter, threshold, etc.
    My situation is worse since I am the only DBA and the only one competent in it (*sigh*).
    Thank you.
    Richard Siburian

    just study following and try to grab
    #Current working directory
    cwd=`pwd`
    #DBA to whome mail will be sent
    DBALIST="[email protected]";
    while true
    do
    clear
    echo "**************************************************************************"
    echo "* MENU *"
    echo "**************************************************************************"
    echo "* ( 1) Check status of Listener !! *"
    echo "* ( 2) Check status of all Database whose entry in oratab *"
    echo "* ( 3) Display database uptime (days and hours) *"
    echo "* ( 4) Check the ORA- Error in alert log and mail it to dba *"
    echo "* ( 5) Displays information on all database sessions. *"
    echo "* ( *) Press any other key to Go back to main menu *"
    echo "**************************************************************************"
    echo "Enter Your Choice from Menu between 1 and 6 :-"
    read choice
    case $choice in
    1)
    echo "checking for the listiner"
    listiner_up=`ps -ef | grep LISTENER | grep -v grep |awk '{print$9}'|wc -l`     
    if [ $listiner_up -ge 2 ]
    then
         echo "listiner is up, Have a Great time......"
    while true
    do
    echo " Do you want to Stop the Listiner? (y or n) :"
    read CONFIRM1
    case $CONFIRM1 in
    y|Y|YES|yes|Yes)
    lsnrctl stop;
    callme;
    break ;;
    n|N|no|NO|No)
    echo Aborting - you entered $CONFIRM
    callme;
    break
    *) echo Please enter only y or n
    esac
    done
         else
         echo "Listiner is Down, ."
    while true
    do
    echo " Do you want to Start the Listiner? (y or n) :"
    read CONFIRM1
    case $CONFIRM1 in
    y|Y|YES|yes|Yes)
    lsnrctl start;
    callme;
    break ;;
    n|N|no|NO|No)
    echo Aborting - you entered $CONFIRM
    callme;
    break
    *) echo Please enter only y or n
    esac
    done
    fi
    2)
    #Script By DCP
    #Check status of all Database whose entry in oratab
    clear;
    if [ -f /etc/oratab ]
    then
    ORATAB=/etc/oratab
    elif [ -f /var/opt/oracle/oratab ]
    then
    ORATAB=/var/opt/oracle/oratab
    else
    echo "Unable to locate "
    fi
    echo "`date` "
    echo "Oracle Database(s) Status `hostname` "
    db=`egrep -i ":Y|:N" $ORATAB | cut -d":" -f1 | grep -v "\#" | grep -v "\*"`
    for i in $db ; do
    database_up=`ps -ef | grep ora_smon_$i|grep -v grep |awk '{print$8}'|wc -l`
    if [ $database_up -eq 1 ]
    then
         echo "Oracle Instance - $i : UP"
    else
    echo "Oracle Instance - $i : Down"
    fi
    done
    while true
    do
    echo "Do you want to Continue or not Please confirm ? (y or n) :"
    read CONFIRM
    case $CONFIRM in
    y|Y|YES|yes|Yes) break ;;
    n|N|no|NO|No)
    echo Aborting - you entered $CONFIRM
    exit
    *) echo Please enter only y or n
    esac
    done
    echo You entered $CONFIRM. Continuing ...;;
    3)
    #Script By DCP
    #Display database uptime (days and hours)
    clear;
    echo "---------------------------------------------------"
    echo "`date` "
    echo "Oracle Database(s) Status `hostname` "
    echo "---------------------------------------------------"
    Live=`ps -ef | grep ora_smon | grep -v grep |awk '{print$8}'|cut -d "_" -f2-3 >$cwd/live.txt`
    db=`egrep -i "smon" $cwd/live.txt |cut -d "_" -f2`
    for i in $db ; do
    database_up=`ps -ef | grep ora_smon_$i|grep -v grep |awk '{print$8}'|wc -l`
    if [ $database_up -eq 1 ]
    then
         echo "Oracle Instance - $i : UP"
    fi
    echo "---------------------------------------------------"
    done
    echo "Enter the Database name:- "
    read ORACLE_SID
    db=`ps -ef | grep ora_smon_$ORACLE_SID|grep -v grep |awk '{print$8}'|cut -d "_" -f3`
    if [ "$db" = "$ORACLE_SID" ]
    then
    export ORACLE_SID
    sqlplus -s "/ as sysdba" <<EOF
    set feed off
    set linesize 280
    set pagesize 200
    select SYSDATE-logon_time "Days", (SYSDATE-logon_time)*24 "Hours"
    from sys.v_\$session
    where program like '%PMON%';
    exit;
    EOF
    else
    echo "Enter the Valid Name or DB is shudown"
    fi
    while true
    do
    echo "Do you want to Continue or not Please confirm ? (y or n) :"
    read CONFIRM
    case $CONFIRM in
    y|Y|YES|yes|Yes) break ;;
    n|N|no|NO|No)
    echo Aborting - you entered $CONFIRM
    clear
    exit
    echo Please enter only y or n
    esac
    done
    echo You entered $CONFIRM. Continuing ...
    4)
    #Script By DCP
    # Check the ORA- Error in alert log and mail it to dba
    clear;
    echo "---------------------------------------------------"
    echo "`date` "
    echo "Oracle Database(s) Status `hostname` "
    echo "---------------------------------------------------"
    Live=`ps -ef | grep ora_smon | grep -v grep |awk '{print$8}'|cut -d "_" -f2-3 >$cwd/live.txt`
    db=`egrep -i "smon" $cwd/live.txt |cut -d "_" -f2`
    for i in $db ; do
    database_up=`ps -ef | grep ora_smon_$i|grep -v grep |awk '{print$8}'|wc -l`
    if [ $database_up -eq 1 ]
    then
         echo "Oracle Instance - $i : UP"
    fi
    echo "---------------------------------------------------"
    done
    echo "---------------------------------------------------------------------------"
    echo Alert \!!! This part is hardcoded, PLZ Modify it , just change Value of DLOC
    echo "---------------------------------------------------------------------------"
    sleep 2;
    DLOC=/u01/oracle/product/10.2.0/test/test/bdump
    while true
    do
    echo "Enter the database name: "
    read SID
    echo "Checking for alert log of $SID database"
    case $SID in
    $SID)
    cd $DLOC
    if [ -f alert_${SID}.log ]
    then
    echo Moving....................
         mv /$DLOC/alert_${SID}.log /$DLOC/alert_work.log
         echo Touching................
    touch /$DLOC/alert_${SID}.log
    cat /$DLOC/alert_work.log >> /$DLOC/alert_${SID}.hist
    echo greping.....................
    grep ORA- /$DLOC/alert_work.log > /$DLOC/alert.err
    if [ `cat /$DLOC/alert.err|wc -l` -gt 0 ]
    then
    mail -s "${SID} ORACLE ALERT ERRORS" $DBALIST < /$DLOC/alert.err
         echo Sending Mail.................
         else
         echo "No Error from last ......Nothing to Mail to DBA...."
    fi
    rm -f /$DLOC/alert.err
    rm -f /$DLOC/alert_work.log
    while true
    do
    echo "Do you want to Continue or not Please confirm ? (y or n) :"
    read CONFIRM
    case $CONFIRM in
    y|Y|YES|yes|Yes) break ;;
    n|N|no|NO|No)
    echo Aborting - you entered $CONFIRM
    clear
    exit
    echo Please enter only y or n
    esac
    done
    echo You entered $CONFIRM. Continuing ...
    else
    echo " "
    echo "No alert Log file found......Nothing to Mail to DBA...."
    echo " "     
    callme;
    fi
    break ;;
    n|N|no|NO|No)
    echo Aborting - you entered $CONFIRM
    exit
    *) echo Please enter only y or n
    esac
    done
    5)
    #Script By DCP
    #Displays information on all database sessions
    clear;
    echo "---------------------------------------------------"
    echo "`date` "
    echo "Oracle Database(s) Status `hostname` "
    echo "---------------------------------------------------"
    Live=`ps -ef | grep ora_smon | grep -v grep |awk '{print$8}'|cut -d "_" -f2-3 >$cwd/live.txt`
    db=`egrep -i "smon" $cwd/live.txt |cut -d "_" -f2`
    for i in $db ; do
    database_up=`ps -ef | grep ora_smon_$i|grep -v grep |awk '{print$8}'|wc -l`
    if [ $database_up -eq 1 ]
    then
         echo "Oracle Instance - $i : UP"
    fi
    echo "---------------------------------------------------"
    done
    echo "Enter the Database name:- "
    read ORACLE_SID
    db=`ps -ef | grep ora_smon_$ORACLE_SID|grep -v grep |awk '{print$8}'|cut -d "_" -f3`
    if [ "$db" = "$ORACLE_SID" ]
    then
    export ORACLE_SID
    sqlplus -s "/ as sysdba" <<EOF
    spool $cwd/curses.log
    #set feed off
    #set heading off
    set line 180
    SET LINESIZE 500
    SET PAGESIZE 1000
    SET VERIFY OFF
    COLUMN username FORMAT A15
    COLUMN machine FORMAT A25
    COLUMN logon_time FORMAT A20
    SELECT NVL(a.username, '(oracle)') AS username,
    a.osuser,
    c.value ,
    a.status,
    a.module,
    a.machine,
    a.program,
    TO_CHAR(a.logon_Time,'DD-MON-YYYY HH24:MI:SS') AS logon_time
    FROM v\$session a,
    v\$sesstat c,
    v\$statname d
    WHERE a.sid = c.sid
    AND c.statistic#
    = d.statistic#
    AND d.name = DECODE(UPPER('value'), 'READS', 'session logical reads',
    'EXECS', 'execute count',
    'CPU', 'CPU used by this session',
    'CPU used by this session')
    AND USERNAME IS NOT NULL
    ORDER BY c.value DESC;
    SET PAGESIZE 14
    spool off;
    exit;
    EOF
    if [ `cat $cwd/curses.log|wc -l` -gt 0 ]
    then
    cat $cwd/curses.log
    else
    echo "Oppppppssss....No Active user session"
    fi
    else
    echo "Enter the Valid Name or DB is shudown"
    fi
    while true
    do
    echo "Do you want to Continue or not Please confirm ? (y or n) :"
    read CONFIRM
    case $CONFIRM in
    y|Y|YES|yes|Yes) break ;;
    n|N|no|NO|No)
    echo Aborting - you entered $CONFIRM
    clear
    exit
    echo Please enter only y or n
    esac
    done
    echo You entered $CONFIRM. Continuing ...
    #hi
    clear
    exit
    esac
    done

  • Database Monitoring Scripts in Metalink

    Hi,
    Someone give me before a metalink notes where in lots of database monitoring/tuning scripts are compiled.
    I remember saving it in my folder. But I can not find where the folder is located now. :(
    Can you help me find that metalink note again please....
    Thanks a lot
    Ms K

    Hi again;
    Please also check:
    Script To Monitor Memory Usage By Database Sessions [ID 239846.1]
    Script to Monitor Current User Activity in the Database [ID 135749.1]
    How to Perform a Health Check on the Database [ID 122669.1]
    RDBPROD: Monitor Lock Scripts for Oracle Rdb Databases [ID 137026.1]
    Script: To Monitor the Usage of Indexes [ID 1033478.6]
    Regard
    Helios

  • What are the privileges required for explain plan in Oracle 11g database

    I am facing the problem in doing a explain plan for a view in Oracle 11g database. When I select from the view like this:
    select * from zonewisearpu
    It does a select on the view but when I give explain plan like
    explain plan for
    select * from zonewisearpu
    I get the error like insufficient privileges.
    Please let me know if things are getting missed out as I guess system level privileges are required to execute this.
    I hope, my question is clear.
    It’s a humble request to revert urgently if possible as I need to complete a task and do not know the way out.
    Regards

    975148 wrote:
    Thanks for your reply. I have found out that an explain plan is possible on the user's own objects and is not possible on the granted objects from a different schema. For eg, if I do a explain plan on a view querying on tables from a different view, it would not allow the explain plan to proceed. This could mean that explain plan needs different privileges than just a select.
    Requesting for a revert to this.
    Here is a simple test case that I have perfomed
    SQL> create user test1 identified by test1;
    User created.
    SQL> create user test2 identified by test1;
    User created.
    SQL> grant connect, resource to test1,test2;
    Grant succeeded.
    SQL> create table test1.tab1 as select * from v$session;
    Table created.
    SQL> connect test2/test1
    Conencted.
    SQL> show user
    USER is "TEST2"
    SQL>
    SQL> explain plan for
      2  select sid,serial#,status,username from test1.tab1 where username<> '';
    Explained.
    SQL>
    So, as can be seen I am able to do a explain plan from user test2 for tables belong to user test1.
    As far as privileges are concerned, following is the list
    SQL> select * from dba_role_privs where grantee in ('TEST1','TEST2') order by 1;
    GRANTEE                        GRANTED_ROLE                   ADM DEF
    TEST1                          CONNECT                        NO  YES
    TEST1                          RESOURCE                       NO  YES
    TEST2                          CONNECT                        NO  YES
    TEST2                          RESOURCE                       NO  YES
    SQL>
    SQL> select grantee,owner,table_name,privilege from dba_tab_privs where grantee in ('TEST1','TEST2') order by 1;
    GRANTEE    OWNER      TABLE_NAME           PRIVILEGE
    TEST2      TEST1      TAB1                 SELECT
    SQL>
    SQL>  select * from dba_sys_privs where grantee in ('TEST1','TEST2') order by 1;
    GRANTEE    PRIVILEGE                      ADM
    TEST1      UNLIMITED TABLESPACE           NO
    TEST2      UNLIMITED TABLESPACE           NO
    SQL>

  • Oracle 9i Database -- Performance window in Grid Control not data available

    Hi
    I have Grid Control 10.2.0.4 on Red Hat and i monitoring some Oracle 9i Instances. When i go to any of these instances to the Performance section, at begininig , ever, not data available in all the graphics.
    When i select manual refresh the graphic begin to build information. But if i close the explorer and reopen , all graphics not have any information.
    Is the situation normal for all Oracle 9i databases?
    The explanation is that Oracle 9i not have AWR ?
    Thanks

    You have too few RAM on your machine, even you could successfully create an instance, it's going to slow as hell.
    When you run DBCA to create database, instead of actually creating the database you could choose to dump the SQL scripts and files used for database creation to a directory. This way will give you a chance to modify pfile and reduce the SGA parameter. I believe the default SGA of instance created by DBCA is already beyond your RAM limit.

  • What are MD_ tables in Oracle 12c database?  What is their purpose?

    I just set up an Oracle 12c database with the purpose of migrating an existing Oracle 11.2.0.2 database.  Our application developers are a bit confused when it comes to the schemas suddenly having MD_ tables they did not create.  Any help is appreciated.

    I just set up an Oracle 12c database with the purpose of migrating an existing Oracle 11.2.0.2 database.  Our application developers are a bit confused when it comes to the schemas suddenly having MD_ tables they did not create.  Any help is appreciated.
    Did you do this using sql developer and the migration workbench to create a repository?
    See if anything in this article rings a bell:
    http://oraexplorer.com/2008/06/oracle-sql-developer-migration-workbench/#sthash.gNFtpafS.dpbs
    Next, you will need to create a repository. An database account, which has CREATE SESSION, RESOURCE, and CREATE VIEW must be created first. Then logon into SQL Developer as that account. From the tool, create a repository from Migration menu > Repository Management > Create Repository. This process creates a bunch of MD* and MIGR* tables and packages.
    I ask because you said you 'set up an Oracle 12c database' but then implied your developers are accessing it.
    Most people experimenting with 12c create a multitenant database which has a CDB and one PDB that contains the sample schemas.
    You typically would NOT allow developers access to the CDB; that is for admin purposes only. So, hopefully, if you developers access anything it is ONLY the sample PDB or a PDB that you have created from the seed.
    Make sure you, and your developers RTFM about the new multitenant architecture or you will all get horribly confused when you try to do simple things like create users or issue grants. All of that works VERY differently in 12c.
    See chapters 17 and 18 of the Database Concepts doc
    http://docs.oracle.com/cd/E16655_01/server.121/e17633/cdbovrvw.htm
    Pay particular attention to the discussion of 'common' and 'local' users. And a hidden 'gotcha' is that the PDBs will NOT be started/opened by default when you do a 'startup' of the database. If you create common users those users will NOT be created in PDBs that are not open; so there is the potential to have to do perform a lot of manual maintenance if you need to add those users to PDBs that weren't open at the time you added the users.

  • Error in Database monitoring in Solution Manager Diagnostic

    Hello All,
    I'm facing issue in configuring Database monitoring for Java system (EP/PI) from Solution manager .
    It could be configured from sol man diagnostic>Diagnostic System>Managed system>Database monitoring, iei'm unable to have java system in DBACOCKPIT system .
    I can have connection as successful, but along with it i'm getting error as "Error in CL_DB6_SYS with return code ADBC error", for this issue, i got note # 1263152, i did applied this note, but still no success.
    I'm having Sol man system, which is on EHP1 SP2 and rest other java systems are at PI 7.1 & EP 7.0, database is Oracle 10.2.0.4.
    Please let me know, if anyone did face such kind of issue & solution for the same...
    Thanks
    Anand.

    I could solve this problem....latest kernel on managing & managed system is thumb rule for this.

  • Old Oracle Session with Tomcat is not kiiling automatically

    Hi,
    I am facing a problem of increasing inactive oracle sessions with tomcat, Old Oracle sessions with tomcat are visible with new one.
    if somebaody did not restarted tomcat gracefully, then does Oracle keep the session connected or is there any way that whenever any one restarted tomcat abnormally, Oracle session can be killed.
    I had restart the database to kill session.

    Could you please tell me that where do i set this parameter in parameter file or sql net file and what is the recommended value, do you have any document on this.
    Another thing tomcat is in other server machine and my database is in different server machine, killing process in tomcat server machine manually may not kill linux process on oracle database machine and therefore oracle sessions are still there.
    Is it possible?
    Edited by: user605066 on 28-Aug-2008 04:59

  • Oracle 10g database growing day by day

    Oracle 10g database
    database is growing day by day. I would like to know what is inserting into database
    Can you please let me know

    Neeraj Bhatia wrote:
    DBA_TAB_MODIFICATIONS. Monitoring should be enabled for the tables.Just a correction Neeraj, if its 10g or above, the monitoring clause for the tables is actually deprecated and the default monitoring is on out of the box. Please see,
    http://download.oracle.com/docs/cd/B14117_01/server.101/b10739/tables.htm#sthref1903
    Aman....

Maybe you are looking for

  • Envy 17-J130ea ssd, blu-ray and extra upgrade options

    Hi Wondered if someone could help me with some upgrade help. I have a sandisk 120GB SSD and wanted to upgrade the laptop bootable hdd to this containing win 8.1. I know it is possible to do this having just the ssd in the laptop (I know this is a rel

  • How do I change "Save" defaults?

    The current default when I go to save a file is 44100 stereo, 32-bit.  How do I change it to 44100 stereo 16-bit?  The same goes for the "Save As" and "Save Selection As" functions.

  • Associate a file type or protocol with a program.

    I have Windows Vista- and I tried to change the program to open file .url "Internet Shortcut" with Safari, I went to Start > Control Panel > Default Programs > Associate a file type or protocol with a program. The 'Associate a file type or protocol w

  • Not recognized raw files from Nikon D7000

    Hi, I have just bought a Nikon D7000 in stead of my D60. Now my Photoshop Element 9 cannot recognize the files/pictures, which I do not understand. Can anyone help me?

  • Where to post to receive an answer on this?

    I have posted this to Windows Compatibility. No response. I have posted this to IMAC. No response. Can someone tell me where I can post the following message and get a response. I really need help with this and can't figure out where in the Mac Discu