Translate

DBMS_PROFILER INSTALLATION

DBMS_PROFILER INSTALLATION: DBMS_PROFILER must be installed as the SYS user
If you have a database administrator, you can skip the next steps, but if you're on a new database, you'll probably have to install the profiler.
All the installation scripts you need are located in $ORACLE_HOME/RDBMS/Admin. In sqlplus, you can run this script if you simply prepend an @ in front of it.
First, you have to run the following script as SYS:
@$ORACLE_HOME/rdbms/admin/profload.SQL
Next, you have to run the following script with each user you want to use the profiler:
@$ORACLE_HOME/rdbms/admin/proftab.SQL
$ cd $ORACLE_HOME/rdbms/admin
$ Sqlplus / as sysdba

Step: 1 - /* Run profload.sql which will install the DBMS_PROFILER Package*/

SQL> @E:\app\Admin\product\11.2.0\dbhome_1\RDBMS\ADMIN\profload.sql
Package created.
Grant succeeded.
Synonym created.
Library created.
Package body created.
Testing for correct installation
SYS.DBMS_PROFILER successfully loaded.
PL/SQL procedure successfully completed.

/* Now create the user for a test of DBMS_PROFILER */
SQL> Create user Myuser identified by Myuser;
User created.

SQL> Grant Connect, Resource,DBA to Myuser;
Grant succeeded.

SQL> Conn Myuser/ Myuser
Connected.

Step: 2 - /* Once connected run Proftab.sql which will create special tables where profiler puts its results */
SQL> show user
USER is "MYUSER"
SQL> @E:\app\Admin\product\11.2.0\dbhome_1\RDBMS\ADMIN\proftab.sql

drop table plsql_profiler_data cascade constraints
* ERROR at line 1: ORA-00942: table or view does not exist
drop table plsql_profiler_units cascade constraints
*ERROR at line 1:ORA-00942: table or view does not exist
drop table plsql_profiler_runs cascade constraints
*ERROR at line 1:ORA-00942: table or view does not exist
drop sequence plsql_profiler_runnumber
*ERROR at line 1:ORA-02289: sequence does not exist
Table created.
Comment created.
Table created.
Comment created.
Table created.
Comment created.
Sequence created.

Before DBMS_PROFILER was introduced, tuning long PL/SQL programs was a great pain. Tuning PL/SQL was done by SQL TRACE and TKPROF. Code of thousands of lines was monitored via BMS_UTILITY.GET_TIME to measure time consumed by individual statements.
With the presence of DBMS_PROFILER this has become quite easy to monitor the performance of the PL/SQL programs and identifying the culprit statements consuming too much time while the run of the program.



Get involved and leave your Comments in the Box Below. The more people get involved, the more we all benefit. So, leave your thoughts before you leave the page. 

9 comments:

  1. This is the first time I visit here. I found such a large number of engaging stuff in your blog, particularly its conversation. From the huge amounts of remarks on your articles, I surmise I am by all accounts not the only one having all the recreation here! Keep doing awesome. I have been important to compose something like this on my site and you have given me a thought.360DigiTMG data science course in malaysia

    ReplyDelete
  2. Incredibly conventional blog and articles. I am realy very happy to visit your blog. Directly I am found which I truly need. Thankful to you and keeping it together for your new post.
    iot training in delhi








    ReplyDelete
  3. These musings just knocked my socks off. I am happy you have posted this.
    training provider in malaysia

    ReplyDelete
  4. Somebody Sometimes with visits your blog normally and prescribed it as far as I can tell to peruse too.
    https://360digitmg.com/course/artificial-intelligence-ai-and-deep-learning

    ReplyDelete
  5. Your work is generally excellent and I value you and jumping for some more educational posts
    hrdf scheme

    ReplyDelete
  6. https://sasvba.com/visual-basic-application/"

    ReplyDelete
  7. We offer a variety of courses such as Business Intelligence, Graphic Design, Digital Marketing, Machine Learning, Data Science, Advance Excel and 15+ and others. Our goal is to provide our students with the best education so that they can easily study where they want, when they want. We also have a placement unit for 100% placement support. We also prepare our students for interviews to make it easier for them to pass the interview.

    https://sasvba.com/





    ReplyDelete
  8. I am sure that this is going to help a lot of individuals. Keep up the good work. It is highly convincing and I enjoyed going through the entire blog.
    data science course

    ReplyDelete
  9. Cool you write, the information is very good and interesting, I'll give you a link to my site.
    data science courses in aurangabad

    ReplyDelete