SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Sql Profiler

 
Reply to topic    SoftTree Technologies Forum Index » DB Audit, DB Mail, DB Tools View previous topic
View next topic
Sql Profiler
Author Message
jd



Joined: 11 Feb 2005
Posts: 1

Post Sql Profiler Reply with quote

I am getting an error with the install. It says DBMS_Profiler does not exist, but it does and I am installing under SYS.

Then when I run the SQL Profiler and try to execute some code I get a Table not found Oracle Error.

Regards
JD

Wed Jun 19, 2002 10:41 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Re: Sql Profiler Reply with quote

Oracle DBMS_PROFILER package requires several tables which are not installed by default.
Oracle admin directory contains 3 scripts DBMSPBP.SQL, PROFTAB.SQL, and PRVTPDB.PLB for creating and setting up these tables

Please check that you have these tables. If not run PROFLOAD.SQL wich will rebuild the profiler package and tables.

Also make sure you have ORA_MONITOR.PROFILER_DATA table that should be created by the setup.

Here is the scipt that you can use for creating this table manually

create table ora_monitor.profiler_data (

runid number not null primary key,

run_name varchar2(100) check (rtrim(run_name) != null),

start_time date default sysdate not null,

user_runid number default 1 not null,

run_seq integer default 1 not null,

user_sid number not null,

user_name varchar2(30) default user not null,

run_cpu number default 0,

run_io number default 0,

run_memory number default 0,

run_sorts number default 0,

run_sort_ratio number default 0,

run_gets number default 0,

run_status varchar2(12) default 'INCOMPLETE',

session_name varchar2(100) check (rtrim(session_name) != null),

session_comments varchar2(4000),

run_source long);

create index ora_monitor.i_profiler_data on ora_monitor.profiler_data (user_name, session_name);
GRANT SELECT, INSERT, DELETE, UPDATE ON ora_monitor.profiler_data TO PUBLIC;

: I am getting an error with the install. It says DBMS_Profiler does not exist,
: but it does and I am installing under SYS.

: Then when I run the SQL Profiler and try to execute some code I get a Table
: not found Oracle Error.

: Regards
: JD

Wed Jun 19, 2002 11:00 am View user's profile Send private message
Sbleck



Joined: 04 Jan 2004
Posts: 9

Post Re: Sql Profiler Reply with quote

: Oracle DBMS_PROFILER package requires several tables which are not installed
: by default.
: Oracle admin directory contains 3 scripts DBMSPBP.SQL, PROFTAB.SQL, and
: PRVTPDB.PLB for creating and setting up these tables
: Please check that you have these tables. If not run PROFLOAD.SQL wich will
: rebuild the profiler package and tables.
: Also make sure you have ORA_MONITOR.PROFILER_DATA table that should be
: created by the setup.
: Here is the scipt that you can use for creating this table manually
: create table ora_monitor.profiler_data ( ...
: GRANT SELECT, INSERT, DELETE, UPDATE ON ora_monitor.profiler_data TO PUBLIC;

Please note that to grant the privileges mentioned previously, this script must have something to change the user that grant these privileges...

SQL> connect system@teste
Informe a senha: *******
Conectado.
SQL> GRANT SELECT, INSERT, DELETE, UPDATE ON ora_monitor.profiler_data TO PUBLIC;
GRANT SELECT, INSERT, DELETE, UPDATE ON ora_monitor.profiler_data TO PUBLIC

*
ERRO na linha 1:
ORA-01031: insufficient privileges

SQL> connect ora_monitor@teste
Informe a senha: ********
Conectado.
SQL> GRANT SELECT, INSERT, DELETE, UPDATE ON ora_monitor.profiler_data TO PUBLIC;

Operação de Grant bem-sucedida.

SQL>

I noted that this problem appeared to be the same as the SYS user. Than, I looked back to find the right owner and its password. Tried again and the problem remain...

Rgds,
Sven


Sat Jan 03, 2004 10:40 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Re: Sql Profiler Reply with quote

Connect as ORA_MONITOR/IMONITOR and then execute
GRANT SELECT, INSERT, DELETE, UPDATE ON ora_monitor.profiler_data TO PUBLIC;

: Please note that to grant the privileges mentioned previously, this script
: must have something to change the user that grant these privileges...

: SQL> connect system@teste
: Informe a senha: *******
: Conectado.
: SQL> GRANT SELECT, INSERT, DELETE, UPDATE ON ora_monitor.profiler_data TO
: PUBLIC;
: GRANT SELECT, INSERT, DELETE, UPDATE ON ora_monitor.profiler_data TO PUBLIC

: *
: ERRO na linha 1: ORA-01031: insufficient privileges

: SQL> connect ora_monitor@teste
: Informe a senha: ********
: Conectado.
: SQL> GRANT SELECT, INSERT, DELETE, UPDATE ON ora_monitor.profiler_data TO
: PUBLIC;

: Operação de Grant bem-sucedida.

: SQL>

: I noted that this problem appeared to be the same as the SYS user. Than, I
: looked back to find the right owner and its password. Tried again and the
: problem remain...

: Rgds,
: Sven

Sun Jan 04, 2004 7:32 pm View user's profile Send private message
Iain Heath



Joined: 11 Feb 2005
Posts: 1

Post Re: Sql Profiler Reply with quote

I am getting the same error after installing the profload.sql as the sys user.
does anyone know how to resolve?

Thnx

Iain

: I am getting an error with the install. It says DBMS_Profiler does not exist,
: but it does and I am installing under SYS.

: Then when I run the SQL Profiler and try to execute some code I get a Table
: not found Oracle Error.

: Regards
: JD

Fri Feb 11, 2005 12:17 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Re: Sql Profiler Reply with quote

Do you have SYS.PLSQL_PROFILER_RUNS table installed?
What about ORA_MONITOR.PROFILER_DATA table?

: I am getting the same error after installing the profload.sql as the sys
: user.
: does anyone know how to resolve?

: Thnx

: Iain

Fri Feb 11, 2005 1:32 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » DB Audit, DB Mail, DB Tools All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.