Dbms_stats error
Oracle: 9.2.0.8
O/S: HP-UX B11.11
I get this error? Any advice?
begin
dbms_stats.gather_table_stats(ownname=> 'SAPDWS', tabname=> '/BDL/CUST', partname=> NULL);
end;
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "SYS.DBMS_STATS", line 101516
ORA-06512: at "SYS.DBMS_STATS", line 101516
ORA-06512: line 2
Try to put additional double quotes around the table name:
begin
dbms_stats.gather_table_stats(ownname=> 'SAPDWS', tabname=> '"/BDL/CUST"', partname=> NULL);
end;
Similar Messages
-
Dbms_stats Error from Enterprise Manager
A job is scheduled to do dbms_stats on a 10g R2
In the PL/SQL Block it has:
begin
exec dbms_stats.gather_schema_stats ( ownname => 'myTest', options => 'GATHER', estimate_percent => dbms_stats.auto_sample_size, method_opt => 'for all columns size auto', cascade => true, degree => 7 );
exec dbms_stats.gather_schema_stats ( ownname => 'myDev', options => 'GATHER', estimate_percent => dbms_stats.auto_sample_size, method_opt => 'for all columns size auto', cascade => true, degree => 7 );
end;
The error is
ORA-06550: line ORA-06550: line 2, column 8: PLS-00103: Encountered the symbol "DBMS_STATS" when expecting one of the following: := . ( @ % ; The symbol ":=" was substituted for "DBMS_STATS" to continue. ORA-06550: line 3, column 6: PLS-00103: Encountered the symbol "DBMS_STATS" when expecting one of the following: := . ( @ % ; The symbol ":=" was substituted for "DBMS_STATS" to continue. , column :
how to fix it?You don't use EXEC inside a pl/sql block.
Example.
TUBBY_TUBBZ?exec dbms_stats.gather_table_stats(user, 'PARTY_TIMES');
PL/SQL procedure successfully completed.
begin
exec dbms_stats.gather_table_stats(user, 'PARTY_TIMES');
3 end;
4 /
exec dbms_stats.gather_table_stats(user, 'PARTY_TIMES');
ERROR at line 2:
ORA-06550: line 2, column 6:
PLS-00103: Encountered the symbol "DBMS_STATS" when expecting one of the following:
:= . ( @ % ;
The symbol ":=" was substituted for "DBMS_STATS" to continue.
begin
dbms_stats.gather_table_stats(user, 'PARTY_TIMES');
end;
4 /
PL/SQL procedure successfully completed.
TUBBY_TUBBZ? -
Hello Members Please Help Error Installing Sample Schemas (HR)
Hi members, and thank you for your help.
After much mulling I have installed Oracle 12c (64b) on my Windows 7 64b SP.
Apparently everything is working fine, I can access both from the web (EM Express) an SQL Plus as SYS for example.
he probelma is:
I downloaded and unzipped winx64_12c_examples and have installed correctly.
I have verified that you have added the files in the respective folders.
For example, in C: \ Oracle12c \ product \ 12.1.0 \ dbhome_1 \ demo \ schema \ human_resources I have the 10 files.
12/10/2002 19:27 1,173 hr_analz.sql
29/08/2002 14:29 2,825 hr_code.sql
29/08/2002 14:29 7,387 hr_comnt.sql
29/08/2002 14:29 9,718 hr_cre.sql
29/08/2002 14:29 16,439 hr_dn_c.sql
Hr_dn_d.sql 934 29/08/2002 14:29
29/08/2002 14:29 1,196 hr_drop.sql
29/08/2002 14:29 1,410 hr_idx.sql
27/05/2011 11:25 3,368 hr_main.sql
15/08/2008 18:12 46,647 hr_popul.sql
10 files 91 097 bytes
Now I come to install the samples as indicated in the link:
http://docs.oracle.com/cd/E16655_01/server.121/e15979/installation.htm
The inputs...
SQL * Plus: Release 12.1.0.1.0 Production on Tue Sep 6 1:21:36 2013
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Enter the user name: sys as sysdba
Enter the password ± to:
Connected to:
12c Oracle Database Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing opt
ions
SQL> @? / Demo / schema / human_resources / hr_main.sql
specify password for HR as parameter 1:
Enter a value for 1: passw
specify default tablespeace for HR as parameter 2:
Enter a value for 2: users
specify temporary tablespace for HR as parameter 3:
Enter value for 3: temp
specify password for SYS as parameter 4:
Enter value for 4: passw
specify log path as parameter 5:
Enter a value for 5: C: \ Oracle12c \ product \ 12.1.0 \ dbhome_1 \ demo \ schema \ log\
The output is full of errors and seems not to have done anything ... ?
However, if I have created the LOG in the right direction.
Below I put the full LOG output.
===============================================================================
C:\Oracle12c\product\12.1.0\dbhome_1\demo\schema\log\hr_main.log
===============================================================================
DROP USER hr CASCADE
ERROR at line 1:
ORA- 01918 : user ' HR ' does not exist
CREATE USER hr IDENTIFIED BY passw
ERROR at line 1:
ORA- 65096 : user or role name shared Invalid
ALTER USER hr DEFAULT TABLESPACE users
ERROR at line 1:
ORA- 01918 : user ' HR ' does not exist
ALTER USER hr TEMPORARY TABLESPACE temp
ERROR at line 1:
ORA- 01918 : user ' HR ' does not exist
GRANT CREATE SESSION , CREATE VIEW, ALTER SESSION , CREATE SEQUENCE TO hr
ERROR at line 1:
ORA- 01917 : user or role ' HR ' does not exist
GRANT CREATE SYNONYM , CREATE DATABASE LINK , RESOURCE, UNLIMITED TABLESPACE TO hr
ERROR at line 1:
ORA- 01917 : user or role ' HR ' does not exist
Online .
GRANT execute ON TO hr sys.dbms_stats
ERROR at line 1:
ORA- 01917 : user or role ' HR ' does not exist
ERROR :
ORA- 01017 : invalid username / password , logon denied
Warning :no longer connected to ORACLE !
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** REGIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating table COUNTRIES ****** ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** LOCATIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** DEPARTMENTS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** JOBS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** EMPLOYEES table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** JOB_HISTORY table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** EMP_DETAILS_VIEW view ...
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** REGIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** countires table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** LOCATIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** DEPARTMENTS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
JOBS ****** Populating table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** EMPLOYEES table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
JOB_HISTORY ****** Populating table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0641 : " EXECUTE " requires connection to the server
------------------------------------------------------------------------------------------------------------------------------------------------------------------ END
Thats is all, I think ....
So here I come, continued searching google and forums but can not find a solution to this problem.
Please appreciate any help with this, I need the sample database running.
Thank you very much in advance and good luck.NEW ... LAST CHANGES !!
I changed the PDB, which appeared as mounted pdborcl been open with the command:
alter pluggable database pdborcl open;
SQL> connect system/oracle@localhost:1521/pdborcl as sysdba
Conectado.
SQL> SELECT NAME, OPEN_MODE, RESTRICTED, OPEN_TIME FROM V$PDBS;
NAME OPEN_MODE RES
OPEN_TIME
PDBORCL READ WRITE NO
06/09/13 20:54:33,875
And now I repeat the process ...
SQL> @? / Demo / schema / human_resources / hr_main.sql
specify password for HR as parameter 1:
Enter a value for 1: passw
specify default tablespeace for HR as parameter 2:
Enter a value for 2: users
specify temporary tablespace for HR as parameter 3:
Enter value for 3: temp
specify password for SYS as parameter 4:
Enter value for 4: passw
specify log path as parameter 5:
Enter a value for 5: C: \ Oracle12c \ product \ 12.1.0 \ dbhome_1 \ demo \ schema \ log\
And The output of the log has been changed !!!!
===============================================================================
C:\Oracle12c\product\12.1.0\dbhome_1\demo\schema\log\hr_main.log
===============================================================================
User deletion.
User created .
User changed.
User changed.
Grant finished properly.
Grant finished properly.
Online .
GRANT execute ON TO hr sys.dbms_stats
ERROR at line 1:
ORA- 01917 : user or role ' HR ' does not exist
ERROR :
ORA- 01017 : invalid username / password , logon denied
Warning :no longer connected to ORACLE !
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** REGIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating table COUNTRIES ****** ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** LOCATIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** DEPARTMENTS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** JOBS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** EMPLOYEES table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** JOB_HISTORY table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Creating ****** EMP_DETAILS_VIEW view ...
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** REGIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** countires table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** LOCATIONS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** DEPARTMENTS table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
JOBS ****** Populating table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
Populating ****** EMPLOYEES table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
JOB_HISTORY ****** Populating table ....
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0640 : Not connected
SP2 -0641 : " EXECUTE " requires connection to the server
we move forward
Comments are welcome
Thanks again ! -
Error while using DBMS_STATS.GATHER_schema_STATS
Hi All,
My database just got upgraded from Oracle 9i to Oracle 11g.
While everything else is working fine post upgrade Oracle, the DBMS_STATS.GATHER_schema_STATS with METHOD_OPT => 'FOR COLUMNS SIZE ALL' , which was working fine in Oracle 9i is throwing error after upgarde.
Below is the error I received:
SQL> execute DBMS_STATS.GATHER_schema_STATS ('cins_dm', METHOD_OPT => 'FOR COLUMNS SIZE AUTO');
BEGIN DBMS_STATS.GATHER_schema_STATS ('cins_dm', METHOD_OPT => 'FOR COLUMNS SIZE AUTO'); END;
ERROR at line 1:
ORA-20001: method_opt should follow the syntax "[FOR ALL [INDEXED|HIDDEN] COLUMNS [size_caluse]]" when gathering statistics on a group of tables
ORA-06512: at "SYS.DBMS_STATS", line 9641
ORA-06512: at "SYS.DBMS_STATS", line 9716
ORA-06512: at "SYS.DBMS_STATS", line 10048
ORA-06512: at "SYS.DBMS_STATS", line 18939
ORA-06512: at "SYS.DBMS_STATS", line 19132
ORA-06512: at "SYS.DBMS_STATS", line 19088
ORA-06512: at line 1
OS Details:
Has this option got obsolete in Oracle 11g?
What is the alternative to this?
OS and Databse Details*
OS:
scrbbiddkbry002:sas# uname -a
SunOS scrbbiddkbry002 5.9 Generic_122300-51 sun4u sparc SUNW,Sun-Fire-V240
Oracle Client:
SQL*Plus: Release 9.2.0.1.0 - Production
Oracle Server:
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for Solaris: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
Edited by: user13071592 on Aug 3, 2010 2:38 AMHi,
While going through the link, it seems that METHOD_OPT => 'FOR COLUMNS SIZE AUTO' is obsolete in Oracle 11g and I will have to use METHOD_OPT => 'FOR ALL COLUMNS SIZE AUTO' instead of that. But the option METHOD_OPT => 'FOR COLUMNS SIZE AUTO' used to take just 5 minutes to complete while METHOD_OPT => 'FOR ALL COLUMNS SIZE AUTO' is taking 1 hour.
I want it to take time (5-6 minutes) which the original METHOD_OPT => 'FOR COLUMNS SIZE AUTO' was taking. -
Error while trying to run DBMS_STAT.GATHER_TABLE_STATS
Hi Gurus,
I am trying to run DBMS_STAT.GATHER_TABLE_STATS from a procedure from a DBA role granted user I am getting the folowing error:
ORA-20000: Unable to analyze TABLE "<SCHEMA_NAME>"."<TABLE_NAME>", insufficient privileges or does not exist
ORA-06512: at "SYS.DBMS_STATS", line 13046
ORA-06512: at "SYS.DBMS_STATS", line 13076
ORA-06512: at line 2
Is I am missing something?
Please help...
//sabyIt's a quite common problem...
Privileges granted through roles doesn't work inside stored procedures. So the DBA role it's not working inside procedure.
See Metalink Note 168168.1.
If you want to run dbms_stats.gather_table_stats from inside procedure,
you need to grant "ANALYZE ANY" directly to this user.
Thanks
Tomasz K. -
Error when running DBMS_STATS package
Hi all.
Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
PL/SQL Release 9.2.0.4.0 - Production
CORE 9.2.0.3.0 Production
TNS for Solaris: Version 9.2.0.4.0 - Production
NLSRTL Version 9.2.0.4.0 - Production
I am trying to gather schema stats using dbms_stats package and I see the following:
SQL> BEGIN DBMS_STATS.gather_schema_stats('SYSADM');
2 END;
3 /
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file G534513-1004.txt in EXT_WINDIR not found
ORA-06512: at "SYS.DBMS_STATS", line 9375
ORA-06512: at "SYS.DBMS_STATS", line 9857
ORA-06512: at "SYS.DBMS_STATS", line 10041
ORA-06512: at "SYS.DBMS_STATS", line 10095
ORA-06512: at "SYS.DBMS_STATS", line 10072
ORA-06512: at line 1
The directory exists but the file is long gone. How can I get around this error?
ThanksSee if this helps,
ERROR WITH EXTERNAL TABLE
HTH
Aman.... -
Error using dbms_stats.drop_extended_stats
Hi!
I have the following problem:
I want to drop extended stats and i get the following error:
SQL> begin
2 dbms_stats.drop_extended_stats (
3 ownname => 'ORAP'
4 ,tabname => 'TDORGEH'
5 ,extension => '(O2_KOE||''*'')'
6 );
7 end;
8 /
begin
FEHLER in Zeile 1:
ORA-00001: Unique Constraint (SYS.I_WRI$_OPTSTAT_HH_OBJ_ICOL_ST) verletzt
ORA-06512: in "SYS.DBMS_STATS", Zeile 8443
ORA-06512: in "SYS.DBMS_STATS", Zeile 8497
ORA-06512: in "SYS.DBMS_STATS", Zeile 31747
ORA-06512: in Zeile 2
SQL> SELECT extension_name, extension
2 FROM dba_stat_extensions
3 WHERE table_name = 'TDORGEH';
EXTENSION_NAME EXTENSION
SYS_STUU82KTNIFD_P94KDKJ9#0$08 ("O2_KOE"||'*')
SYS_STUH6U9E_VV_9BVM9I3NNRX#8S ("O3_KOE"||'*')
SYS_STUCUZFT$CCNA7ZD6R08R3T660 ("O4_KOE"||'*')
SYS_STUCSINP1TWGAB#R_V3$XR72E7 ("O5_KOE"||'*')
SYS_STUFD58RVB7F0J1IOL2Q#Z$_VB ("O6_KOE"||'*')
SYS_STU#84ID#J#21ML9$7ZN#HQ7$Q ("O7_KOE"||'*')
SYS_STUCMDCY97QZOEH7TEIAB43GUX ("O8_KOE"||'*')
SYS_STUL3EYD$4V756XR5TCCV7KP94 ("O9_KOE"||'*')
SYS_STUWBXP9BM7ZXAR$JL9C6XVT7B ("O10_KOE"||'*')
9 Zeilen ausgewõhlt.
What is the problem?Hi,
While going through the link, it seems that METHOD_OPT => 'FOR COLUMNS SIZE AUTO' is obsolete in Oracle 11g and I will have to use METHOD_OPT => 'FOR ALL COLUMNS SIZE AUTO' instead of that. But the option METHOD_OPT => 'FOR COLUMNS SIZE AUTO' used to take just 5 minutes to complete while METHOD_OPT => 'FOR ALL COLUMNS SIZE AUTO' is taking 1 hour.
I want it to take time (5-6 minutes) which the original METHOD_OPT => 'FOR COLUMNS SIZE AUTO' was taking. -
DBMS_STATS package error message
Hi,
I have Oracle DBA II class and when I do my homework assignment, I encountered this error when exec the DBMS_STATS package......(unsupported construct or internal error). What did I do wrong? Can anyone help? Thanks. - katie
===============================================
SQL> exec dbms_advisor.set_default_task_parameter('ADDM','DB_ACTIVITY_MIN',30);
PL/SQL procedure successfully completed.
SQL> create table addm(id number, name varchar2(2000));
Table created.
SQL> exec DBMS_STATS.GATHER_TABLE_STATS(-ownname=>'ADDM', tabname=>'ADDM',-estimate_percent=>DBMS_ST
ATS.AUTO_SAMPLE_SIZE);
BEGIN DBMS_STATS.GATHER_TABLE_STATS(-ownname=>'ADDM', tabname=>'ADDM',-estimate_percent=>DBMS_STATS.
ERROR at line 1:
ORA-06550: line 1, column 37:
PLS-00707: unsupported construct or internal error [2603]
ORA-06550: line 1, column 7:
PL/SQL: Statement ignoredThank you so much. It works! I removed the dash (-) sign in front of the variable name. Thanks again.
SQL> exec DBMS_STATS.GATHER_TABLE_STATS(ownname=>'ADDM', tabname=>'ADDM',estimate_percent=>DBMS_STAT
S.AUTO_SAMPLE_SIZE);
PL/SQL procedure successfully completed. -
Error while running: SYS.DBMS_STATS Package.
when i am trying to execute the DBMS_STATS Package inside a procedure, getting the error.
ORA-12805: parallel query server died unexpectedly
ORA-06512: at "SYS.DBMS_STATS", line 9643
ORA-06512: at "SYS.DBMS_STATS", line 10137
ORA-06512: at "SYS.DBMS_STATS", line 10324
ORA-06512: at "SYS.DBMS_STATS", line 10378
ORA-06512: at "SYS.DBMS_STATS", line 10355
ORA-06512: at line 2
Can anyone help me out.I dont know much of the DBA stuff.Hi,
Try setting the following parameters in init.ora:
dbhandles_cached = 0
hash_join_enabled=false
timed_statistics = false
If the problem still reproduces then try increasing your SORT_AREA_SIZE of your session to a larger value.
When a ORA-12805 occurs in most cases it is accompanied with a ORA-600 or a ORA-7445. Hence please check your alert.log if such errors are reported there.
Verify the files of the temporary tablespace of type TEMPORARY are in a full file system ( no free space available).
Nicolas. -
I had an issue with the default oracle job to analyze the database. I opened a metalink ticket and they said there is a known bug in 10.1.0.3 with the default oracle job and it does not work.
I am not allowed allowed to update. so the work around was to run this from dba_jobs.
I have this job created as system and run it manually...
dbms_stats.gather_database_stats(cascade => TRUE,method_opt => 'FOR ALL COLUMNS SIZE AUTO',
degree=>8 )
I can execute this when logged in as system.
When I try to execute the job I get:
ORA-12012: error on auto execute of job 26ORA-20000: Insufficient privileges to analyze an object in DatabaseORA-06512: at "SYS.DBMS_STATS", line 12086ORA-06512: at "SYS.DBMS_STATS", line 12425ORA-06512: at "SYS.DBMS_STATS", line 12567ORA-06512: at "SYS.DBMS_STATS", line 12531ORA-06512: at line 1This is running as system?
The table I don't have access to is located in someones schema.
log_user,priv_user, and schema_user are all system...
Why can I run this manually and not through a job?
Edited by: Guess2 on Jul 21, 2009 9:15 AM
Edited by: Guess2 on Jul 21, 2009 9:16 AMThe table I get an error on is not partitioned.
I also do not get a exception when I run that procedure manually as system, but when I run it from dba_jobs, I get an insufficient privileges issue. -
Hi,
i am executing dbms_stats . but i am receiving the following error as
SQL> exec dbms_stats.gather_schema_stats ( ownname => 'STA' , estimate_percent => 10 );
BEGIN dbms_stats.gather_schema_stats ( ownname => 'STA' , estimate_percent => 10 ); END;
ERROR at line 1:
ORA-06521: PL/SQL: Error mapping function
ORA-06512: at "SYS.DBMS_STATS", line 9375
ORA-06512: at "SYS.DBMS_STATS", line 9857
ORA-06512: at "SYS.DBMS_STATS", line 10041
ORA-06512: at "SYS.DBMS_STATS", line 10095
ORA-06512: at "SYS.DBMS_STATS", line 10072
ORA-06512: at line 1
please provide me the solutionI find this better
@>ed
Wrote file afiedt.buf
1 begin
2 dbms_stats.gather_schema_stats(
3 ownname => 'HR',
4 estimate_percent => dbms_stats.auto_sample_size,
5 degree => 7
6 );
7* end;
@>/
PL/SQL procedure successfully completed.Using estimate_percent => dbms_stats.auto_sample_size to let Oracle determine the appropriate sample size
for good statistics.
Please visit here:
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_stats.htm#i1036456
Adith -
DBMS_STATS/DBMS_STATS_INTERNAL won't recompile without errors.
I'm trying to drop and recreate the AWR in an Oracle 11.1.0.7 database. Per instructions, I started the database with statistics_level set to BASIC to turn off AWR/ADDM and then ran:
@?/rdbms/admin/catnoawr.sql -- to drop the AWR structures -- it ran fine.
@?/rdbms/admin/catawrtb.sql -- to rebuild the AWR structures -- it ran fine, too.
I tried to run a manual snapshot in the database and it errored saying that the package
SYS.DBMS_STATS was invalid. I ran the following to recompile the procedures but received
the following error:
Warning: Package created with compilation errors.
SQL> show errors
Errors for PACKAGE DBMS_STATS_INTERNAL:
LINE/COL ERROR
455/5 PL/SQL: SQL Statement ignored
466/40 PL/SQL: ORA-00942: table or view does not exist
1292/5 PL/SQL: SQL Statement ignored
1293/10 PL/SQL: ORA-00942: table or view does not exist
SQL>
Apparently some view or table doesn't exist. I re-ran catalog.sql (ran without errors)
and catproc.sql which only errored (with the same error above) when trying to recompile
DBMS_STATS.
Since the procedures are wrapped I can't view the source to see what table/view is causing
the problems. Any ideas would be much appreciated.
DanAfter digging a bit it looks like the correct script to build the WRI$ tables is doptim.bsq. I ran it and didn't look close at the output and since the missing table was now created I recompiled the DBMS_STATS package, but received another ORA-00942 error. Looking at the trace file I see that the missing table now is WRI$_OPTSTAT_AUX_HISTORY. I ran the script again and spooled the output (like I should have the first time) and found the following error:
SQL> Rem Aux_stats$ history
SQL> create table wri$_optstat_aux_history
2 (
3 savtime timestamp with time zone,
4 sname varchar2("M_IDEN"),
5 pname varchar2("M_IDEN"),
6 pval1 number,
7 pval2 varchar2(255),
8 spare1 number,
9 spare2 number,
10 spare3 number,
11 spare4 varchar2(1000),
12 spare5 varchar2(1000),
13 spare6 timestamp with time zone
14 ) tablespace sysaux
15 pctfree 1
16 enable row movement
17 /
sname varchar2("M_IDEN"),
ERROR at line 4:
ORA-00910: specified length too long for its datatype
I have to admit that the above has me stumped. I looked at another one of my databases and the column
sname is defined in the database as varchar2(30). What's with the size of "M_IDEN")?
Dan -
Error while collecting stale stats dbms_stats
SQL> exec dbms_stats.gather_table_stats('CData3','OM_HEAD',cascade=>'TR
UE',options=>'GATHER STALE');
BEGIN dbms_stats.gather_table_stats('CData3','OM_HEAD',cascade=>'TRUE',
options=>'GATHER STALE'); END;
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'GATHER_TABLE_STATS'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignoredoracle version 9.2
pls suggest me for the same...
Edited by: user00726 on Feb 3, 2009 4:28 AMthere is no such variable options for gather_table_stats:
PROCEDURE GATHER_TABLE_STATS
Argument Name Type In/Out Default?
OWNNAME VARCHAR2 IN
TABNAME VARCHAR2 IN
PARTNAME VARCHAR2 IN DEFAULT
ESTIMATE_PERCENT NUMBER IN DEFAULT
BLOCK_SAMPLE BOOLEAN IN DEFAULT
METHOD_OPT VARCHAR2 IN DEFAULT
DEGREE NUMBER IN DEFAULT
GRANULARITY VARCHAR2 IN DEFAULT
CASCADE BOOLEAN IN DEFAULT
STATTAB VARCHAR2 IN DEFAULT
STATID VARCHAR2 IN DEFAULT
STATOWN VARCHAR2 IN DEFAULT
NO_INVALIDATE BOOLEAN IN DEFAULT
STATTYPE VARCHAR2 IN DEFAULT
FORCE BOOLEAN IN DEFAULT
So you can't use such variable.
Use instead gather_schema_stats with such option, it will automaticaly gather stats for all tables with stale_stats in that schema.
Or You can look into table:
dba_tab_modifications
And from there find which tables are having stale stats and gather with gather_table_stats.
Edited by: Laura Gaigala on Feb 3, 2009 2:53 PM
Edited by: Laura Gaigala on Feb 3, 2009 2:54 PM -
ORA-00904 error in DBMS_STATS.GATHER_SCHEMA_STATS
Oracle 9.2.0.5 on Solaris
I am trying to run weekly stat gathering on a schema, using DBMS_STAT
I am getting this error on a specific table, wehich aborts the entire process:
ORA-00904: "SEARCHKEYWORKS": invalid identifier
there is no such field. the table creator confirmed that initally he called a field SEARCHKEYWORKS, but later dropped it and created a new one with different name. maybe we did run DBMS_STATS on this table before the change.
when trying to delete stats for this table, using bms_stats.delete_table_stats(ownname=> 'yyyy', tabname=> 'xxxx') I get a ORA-20000, unable to set values for column BRIEFDESCRIPTION, an existing column
this table is referenced from many other tables, so a simple drop/recreate would be a pain. any way to fix this?
Note: I can run the old-style command ANALYZE TABLE xxx COMPUTE STATISTICS just fine; its just the DBMS_STATS package that can't be run on this table.thanks for the support.
the weekly task that first reported the error was
EXECUTE DBMS_STATS.GATHER_SCHEMA_STATS('SSSSSS',DBMS_STATS.AUTO_SAMPLE_SIZE,FALSE,'FOR ALL COLUMNS SIZE 1',NULL,'DEFAULT',TRUE);
the log file showed the error. where looking which table was last analyzed I gathered it was this table.
then I tried manually only this table, from manager console using their default, which is:
dbms_stats.gather_table_stats(ownname=> 'SSSSSS', tabname=> 'XXXXXX', partname=> NULL);
Hey,
could you post your dbms_stats complete syntax?
Jaffar -
Error activating data for an ODS
I had a bidding ODS which was working perfectly.
Since I haded 0CALDAY in the data fields (with everything setup around, update rule, transfert, etc), I have an error when activating the data..
I can see that the new data (not yet activated) is correct, with the 0calday field correctly filled in, but impossible to activate.. the problem seems coming from the FORM ACTIVATE_SIDS. and I can't see the field 0calday in this routine.
more info:
here I can see that 0calday is missing:
FORM ACTIVATE_SIDS *
FORM activate_sids "#EC CALLED
USING i_t_request TYPE rsdro_t_request
i_err_count TYPE i
i_serialize type rs_bool
i_checkfl type rs_bool
CHANGING c_t_msg TYPE rsdro_t_msg
e_subrc TYPE sy-subrc.
SP7
i_serialize einbauen...
DATA:
*INSERTAS 26052003 P14 <625425>
l_dummy(72),
*ENDINSERTAS 26052003
l_s_upddata TYPE l_s_sidupddata,
l_t_where TYPE rsdro_t_abapsource,
l_new_sids_possible TYPE rs_bool,
l_count TYPE i VALUE 0,
l_err_found TYPE i VALUE 0,
l_err_count TYPE i,
l_single_convert TYPE rs_bool,
l_subrc TYPE sy-subrc,
l_cursor TYPE cursor,
SP7
l_t_msg TYPE rsdro_t_msg,
l_s_msg type rsdro_s_msg.
remove following line once patch 1 is installed
raise x_message.
IF i_err_count <= 1.
l_err_count = 1.
l_single_convert = rs_c_false.
ELSE.
l_err_count = i_err_count.
l_single_convert = rs_c_true.
ENDIF.
empty tables
PERFORM clear_sid USING SPACE.
SP7
initialise activation task-handling
IF i_serialize = rs_c_false.
PERFORM rsadmina_get_values.
PERFORM init_activate_taskhandler.
ENDIF.
create WHERE condition based on the requests in I_T_REQUEST
PERFORM generate_where_requests(saplrsdro)
USING i_t_request 'U' CHANGING l_t_where.
same SELECT-statement used multiple times
PERFORM open_cursor_with_hold
USING l_t_where
*INSERTAS 13082002 P12/05 <541698>
rs_c_true "sorting means smaller hash-tables??
rs_c_false
g_max_tasks
*ENDINSERTAS
CHANGING l_cursor.
DO.
ADD 1 TO l_count.
FETCH NEXT CURSOR l_cursor INTO l_s_upddata.
IF sy-subrc <> 0.
PERFORM register_sids
USING l_s_upddata rs_c_true rs_c_true.
CLOSE CURSOR l_cursor.
EXIT.
ELSE.
PERFORM register_sids
USING l_s_upddata rs_c_true rs_c_true.
IF l_count >= c_check_intervall. "don't check all the time!
l_count = 0.
l_new_sids_possible = rs_c_false.
IF g_req_BBP_BIDDER_cnt >= c_max_sid_hashtab.
SP7
refresh l_t_msg.
PERFORM check_and_get_sids_iobjnm
USING '0BBP_BIDDER'
l_single_convert
l_err_count
i_serialize
i_checkfl
CHANGING l_t_msg
l_new_sids_possible
l_err_found
l_subrc.
SP7
append lines of l_t_msg to c_t_msg. "note 727227
PERFORM clear_sid USING '0BBP_BIDDER'.
ENDIF.
IF g_req_BBP_BIGUID_cnt >= c_max_sid_hashtab.
SP7
refresh l_t_msg.
PERFORM check_and_get_sids_iobjnm
USING '0BBP_BIGUID'
l_single_convert
l_err_count
i_serialize
i_checkfl
CHANGING l_t_msg
l_new_sids_possible
l_err_found
l_subrc.
SP7
append lines of l_t_msg to c_t_msg. "note 727227
PERFORM clear_sid USING '0BBP_BIGUID'.
ENDIF.
IF g_req_BBP_BID_ID_cnt >= c_max_sid_hashtab.
SP7
refresh l_t_msg.
PERFORM check_and_get_sids_iobjnm
USING '0BBP_BID_ID'
l_single_convert
l_err_count
i_serialize
i_checkfl
CHANGING l_t_msg
l_new_sids_possible
l_err_found
l_subrc.
SP7
append lines of l_t_msg to c_t_msg. "note 727227
PERFORM clear_sid USING '0BBP_BID_ID'.
ENDIF. " l_reached = rs_c_true.
IF g_req_GN_PAR_SSY_cnt >= c_max_sid_hashtab.
SP7
refresh l_t_msg.
PERFORM check_and_get_sids_iobjnm
USING '0GN_PAR_SSY'
l_single_convert
l_err_count
i_serialize
i_checkfl
CHANGING l_t_msg
l_new_sids_possible
l_err_found
l_subrc.
SP7
append lines of l_t_msg to c_t_msg. "note 727227
PERFORM clear_sid USING '0GN_PAR_SSY'.
ENDIF. " l_reached = rs_c_true.
IF g_req_LOGSYS_PUR_cnt >= c_max_sid_hashtab.
SP7
refresh l_t_msg.
PERFORM check_and_get_sids_iobjnm
USING '0LOGSYS_PUR'
l_single_convert
l_err_count
i_serialize
i_checkfl
CHANGING l_t_msg
l_new_sids_possible
l_err_found
l_subrc.
SP7
append lines of l_t_msg to c_t_msg. "note 727227
PERFORM clear_sid USING '0LOGSYS_PUR'.
ENDIF. " l_reached = rs_c_true.
IF g_req_BBP_SYS_BP_cnt >= c_max_sid_hashtab.
SP7
refresh l_t_msg.
PERFORM check_and_get_sids_iobjnm
USING '0BBP_SYS_BP'
l_single_convert
l_err_count
i_serialize
i_checkfl
CHANGING l_t_msg
l_new_sids_possible
l_err_found
l_subrc.
SP7
append lines of l_t_msg to c_t_msg. "note 727227
PERFORM clear_sid USING '0BBP_SYS_BP'.
ENDIF. " l_reached = rs_c_true.
IF g_req_PROD_CATEG_cnt >= c_max_sid_hashtab.
SP7
refresh l_t_msg.
PERFORM check_and_get_sids_iobjnm
USING '0PROD_CATEG'
l_single_convert
l_err_count
i_serialize
i_checkfl
CHANGING l_t_msg
l_new_sids_possible
l_err_found
l_subrc.
SP7
append lines of l_t_msg to c_t_msg. "note 727227
PERFORM clear_sid USING '0PROD_CATEG'.
ENDIF. " l_reached = rs_c_true.
IF g_req_PRCA_ID_cnt >= c_max_sid_hashtab.
SP7
refresh l_t_msg.
PERFORM check_and_get_sids_iobjnm
USING '0PRCA_ID'
l_single_convert
l_err_count
i_serialize
i_checkfl
CHANGING l_t_msg
l_new_sids_possible
l_err_found
l_subrc.
SP7
append lines of l_t_msg to c_t_msg. "note 727227
PERFORM clear_sid USING '0PRCA_ID'.
ENDIF. " l_reached = rs_c_true.
IF g_req_/BIC/ZPROCREF_cnt >= c_max_sid_hashtab.
SP7
refresh l_t_msg.
PERFORM check_and_get_sids_iobjnm
USING 'ZPROCREF'
l_single_convert
l_err_count
i_serialize
i_checkfl
CHANGING l_t_msg
l_new_sids_possible
l_err_found
l_subrc.
SP7
append lines of l_t_msg to c_t_msg. "note 727227
PERFORM clear_sid USING 'ZPROCREF'.
ENDIF. " l_reached = rs_c_true.
IF g_req_/BIC/ZDELTO_cnt >= c_max_sid_hashtab.
SP7
refresh l_t_msg.
PERFORM check_and_get_sids_iobjnm
USING 'ZDELTO'
l_single_convert
l_err_count
i_serialize
i_checkfl
CHANGING l_t_msg
l_new_sids_possible
l_err_found
l_subrc.
SP7
append lines of l_t_msg to c_t_msg. "note 727227
PERFORM clear_sid USING 'ZDELTO'.
ENDIF. " l_reached = rs_c_true.
IF g_req_/BIC/ZDELFROM_cnt >= c_max_sid_hashtab.
SP7
refresh l_t_msg.
PERFORM check_and_get_sids_iobjnm
USING 'ZDELFROM'
l_single_convert
l_err_count
i_serialize
i_checkfl
CHANGING l_t_msg
l_new_sids_possible
l_err_found
l_subrc.
SP7
append lines of l_t_msg to c_t_msg. "note 727227
PERFORM clear_sid USING 'ZDELFROM'.
ENDIF. " l_reached = rs_c_true.
IF g_req_/BIC/ZTYPREL_cnt >= c_max_sid_hashtab.
SP7
refresh l_t_msg.
PERFORM check_and_get_sids_iobjnm
USING 'ZTYPREL'
l_single_convert
l_err_count
i_serialize
i_checkfl
CHANGING l_t_msg
l_new_sids_possible
l_err_found
l_subrc.
SP7
append lines of l_t_msg to c_t_msg. "note 727227
PERFORM clear_sid USING 'ZTYPREL'.
ENDIF. " l_reached = rs_c_true.
IF l_new_sids_possible = rs_c_true.
SP7
PERFORM check_hierarchy_sids
CHANGING c_t_msg. "note 727227
ENDIF.
ENDIF. " l_count >= c_check_intervall.
ENDIF. " sy-subrc <> 0.
ENDDO.
SP7
refresh l_t_msg.
PERFORM check_and_get_sids
USING l_single_convert l_err_count i_serialize i_checkfl
CHANGING c_t_msg l_err_found e_subrc. "note 727227
SP7
IF i_serialize = rs_c_false.
cleanup activation task-handling
PERFORM cleanup_activate_taskhandler.
save error messages from asynchronous RFC tasks:
append lines of g_t_msg to c_t_msg. "note 727227
PERFORM check_hierarchy_sids CHANGING c_t_msg. "note 727227
data: l_sx_task TYPE rsdro_sx_task.
loop at g_thx_task into l_sx_task.
*INSERTAS 20022003 P11 <596983>
*separate handling of error and started
if l_sx_task-status = rsdro_c_task_status-error or
l_sx_task-status = rsdro_c_task_status-started.
if l_sx_task-status = rsdro_c_task_status-error.
*ENDINSERTAS 20022003
*INSERTAS 26052003 P14 <625425>
MESSAGE ID 'RSDRO' TYPE 'E' NUMBER 122
WITH l_sx_task-taskname INTO l_dummy.
PERFORM msg_sy_append(SAPLRSDRO)
USING RS_C_FALSE CHANGING c_t_msg[]. "note 727227
l_s_msg-msgty = 'E'.
l_s_msg-msgid = 'RSDRO'.
l_s_msg-msgno = 122.
l_s_msg-msgv1 = l_sx_task-taskname.
append l_s_msg to g_t_msg.
*ENDINSERTAS 26052003
*INSERTAS 20022003 P11 <596983>
*extra handling of tasks that did not come back regularly
elseif l_sx_task-status = rsdro_c_task_status-started.
*INSERTAS 26052003 P14 <625425>
MESSAGE ID 'RSDRO' TYPE 'E' NUMBER 129
WITH l_sx_task-taskname INTO l_dummy.
PERFORM msg_sy_append(SAPLRSDRO)
USING RS_C_FALSE CHANGING c_t_msg[]. "note 727227
l_s_msg-msgty = 'E'.
l_s_msg-msgid = 'RSDRO'.
l_s_msg-msgno = 129.
l_s_msg-msgv1 = l_sx_task-taskname.
append l_s_msg to g_t_msg.
*ENDINSERTAS 26052003
*ENDINSERTAS 20022003
endif.
endloop.
endif.
c_t_msg[] = g_t_msg[]. "note 727227
ENDFORM. " ACTIVATE_SIDS
More info:
What happened?
Error in ABAP application program.
The current ABAP program "GP421RN9VH6Y2PR0X9WS35LYA6Y" had to be terminated
because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
Following a SELECT statement, the data read could not be placed in AN
the output area.
A conversion may have been intended that is not supported by the
system, or the output area may be too small.
Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
neither
caught nor passed along using a RAISING clause, in the procedure
"ACTIVATE_SIDS" "(FORM)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
The data read during a SELECT access could not be inserted into the
target field.
Either conversion is not supported for the target field's type or the
target field is too short to accept the value or the data are not in a
form that the target field can accept
Missing RAISING Clause in Interface
Program GP421RN9VH6Y2PR0X9WS35LYA6Y
Include GP421RN9VH6Y2PR0X9WS35LYA6Y
Row 9.988
Module type (FORM)
Module Name ACTIVATE_SIDS
Trigger Location of Exception
Program GP421RN9VH6Y2PR0X9WS35LYA6Y
Include GP421RN9VH6Y2PR0X9WS35LYA6Y
Row 10.050
Module type (FORM)
Module Name ACTIVATE_SIDS
Source Code Extract
Line SourceCde
10020 ELSE.
10021 l_err_count = i_err_count.
10022 l_single_convert = rs_c_true.
10023 ENDIF.
10024
10024
10025 * empty tables
10026 PERFORM clear_sid USING SPACE.
10027
10028 *** SP7
10029 * initialise activation task-handling
10030 IF i_serialize = rs_c_false.
10031 PERFORM rsadmina_get_values.
10032 PERFORM init_activate_taskhandler.
10033 ENDIF.
10034
10035 * create WHERE condition based on the requests in I_T_REQUEST
10036 PERFORM generate_where_requests(saplrsdro)
10037 USING i_t_request 'U' CHANGING l_t_where.
10038
10039 * same SELECT-statement used multiple times
10040 PERFORM open_cursor_with_hold
10041 USING l_t_where
10042 *INSERTAS 13082002 P12/05 <541698>
10043 * rs_c_true "sorting means smaller hash-tables??
10044 rs_c_false
10045 g_max_tasks
10046 *ENDINSERTAS
10047 CHANGING l_cursor.
10048 DO.
10049 ADD 1 TO l_count.
>>>>> FETCH NEXT CURSOR l_cursor INTO l_s_upddata.
10051 IF sy-subrc <> 0.
10052
10053 PERFORM register_sids
10054 USING l_s_upddata rs_c_true rs_c_true.
10055
10056 CLOSE CURSOR l_cursor.More info:
Job started
Step 001 started (program RSODSACT1, variant &0000000002104, user ID
Activation is running: Data target SRBIDO03, from 14.293 to 14.293
Data to be activated successfully checked against archiving objects
SQL: 16.08.2006 18:12:15 U92299
ANALYZE TABLE "/BIC/ASRBIDO0340" DELETE
STATISTICS
SQL-END: 16.08.2006 18:12:15 00:00:00
SQL: 16.08.2006 18:12:15 U92299
BEGIN DBMS_STATS.GATHER_TABLE_STATS ( OWNNAME =>
'SAPBD0', TABNAME => '"/BIC/ASRBIDO0340"',
ESTIMATE_PERCENT => 1 , METHOD_OPT => 'FOR ALL
INDEXED COLUMNS SIZE 75', DEGREE => 1 ,
GRANULARITY => 'ALL', CASCADE => TRUE ); END;
SQL-END: 16.08.2006 18:12:16 00:00:01
ABAP/4 processor: DBIF_RSQL_INVALID_RSQL
Job cancelled
Maybe you are looking for
-
How to set a webi report's caching format?
Hello Community, I have come to a hurdle that I can not conquer on my own and for as much as I have tried can not find samples or documents on how to accomplish this. I am writing code to schedule webi reports and the piece that handles the caching f
-
Recordsset per message spliting failed
Hi All, My scenario is File to File. 1) Sender file conists of 50 records 2) Receiver end it should contain 2 files with 25 records each. My source and receiver structures are maintained as Source Structure : Record-------> 1...1 Data--
-
Hi folks, Can any one give me the complete guid on proxies ( client and server), like what are the possible errors occur in proxies and FAQ's asked on proxies. I have searched the sdn regarding this got information to some extant but still to ge
-
License Audit - error executing SLAW tcode
As per SAP's instructions, I'm trying to execute tcode SLAW so I can provide the license audit report using their required format. The instructions say from the menu, select Measurement Data and choose the option to Download for E-mail. As soon as
-
Adding/deleting rows from a treeTable with a read-only view object
Hello -- I'm getting a JBO-25016 error when I go to delete a row from a treeTable. I want to create the hierarchy from a stored procedure, have the user add and remove nodes without calling back to the database. I will iterate through the tree and se