Creating Job Issue

Hi Experts,
I have created a page in Apex where I m using File browse item say :p13_filebrowse(where i m using CSV format files) and other items too. On click of Submit button I m calling package which dynamically creates the table successfully of browsed CSV FIle.
Now My requirement is to create the dbms_scheduler Job for the existing package(AS Above) so that If I upload the very huge file it should run in backend using the DBMS Job.If I call package directly from the APex . it is happening successfully. But If i create the Job for that package then I m getting error for not identify the Apex file browsed items.
In Package I m using wwv_flow_files from where i m extracting the file and creating the table.Through Job it is unable to recognise the Apex file browse item.For more information please go through the follwing code:-
I m calling package from Apex which is succesfully executing in creaitng the table:-
htmldb_sid_50.parse_file(:P13_FILEBROWSE,'P13_COLLECTION' ,'P13_HEADINGS','P13_COLUMNS','P13_DDL');
htmldb_sid_50.parse_file(:P13_FILEBROWSE,'P13_COLLECTION' ,'P13_HEADINGS','P13_COLUMNS','P13_DDL','gdqdata.gdq_table1');
Foollwing code of Package:-
create or replace PACKAGE BODY htmldb_sid_50
AS
TYPE varchar2_t IS TABLE OF VARCHAR2(32767) INDEX BY binary_integer;
-- Private functions --{{{
PROCEDURE delete_collection ( --{{{
-- Delete the collection if it exists
p_collection_name IN VARCHAR2
IS
BEGIN
IF (htmldb_collection.collection_exists(p_collection_name))
THEN
htmldb_collection.delete_collection(p_collection_name);
END IF;
END delete_collection; --}}}
PROCEDURE csv_to_array ( --{{{
-- Utility to take a CSV string, parse it into a PL/SQL table
-- Note that it takes care of some elements optionally enclosed
-- by double-quotes.
p_csv_string IN VARCHAR2,
p_array OUT wwv_flow_global.vc_arr2,
p_num IN VARCHAR2 DEFAULT null,
p_separator IN VARCHAR2 := ','
IS
l_start_separator PLS_INTEGER := 0;
l_stop_separator PLS_INTEGER := 0;
l_length PLS_INTEGER := 0;
l_idx BINARY_INTEGER := 0;
l_new_idx BINARY_INTEGER := 0;
l_quote_enclosed BOOLEAN := FALSE;
l_offset PLS_INTEGER := 1;
p_csv_string_test varchar2(4000);
cell_value varchar2(400);
BEGIN
l_length := NVL(LENGTH(p_csv_string),0);
IF (l_length <= 0)
THEN
RETURN;
END IF;
LOOP
l_idx := l_idx + 1;
l_quote_enclosed := FALSE;
-- p_csv_string
p_csv_string_test := replace(p_csv_string,'""','@@');
--p_csv_string := p_csv_string_test;
IF SUBSTR(p_csv_string_test, l_start_separator + 1, 1) = '"'
THEN
l_quote_enclosed := TRUE;
l_offset := 2;
l_stop_separator := INSTR(p_csv_string_test, '"', l_start_separator + l_offset, 1);
ELSE
l_offset := 1;
l_stop_separator := INSTR(p_csv_string_test, p_separator, l_start_separator + l_offset, 1);
END IF;
IF l_stop_separator = 0
THEN
l_stop_separator := l_length + 1;
END IF;
if l_idx = 1 then
p_array(l_idx) := p_num;
l_idx := l_idx + 1;
end if;
if(l_idx < 50) then
cell_value := (SUBSTR(p_csv_string_test, l_start_separator + l_offset,(l_stop_separator - l_start_separator - l_offset)));
cell_value := replace(cell_value, '@@', '"');
p_array(l_idx) := cell_value;
end if;
EXIT WHEN l_stop_separator >= l_length;
IF l_quote_enclosed
THEN
l_stop_separator := l_stop_separator + 1;
END IF;
l_start_separator := l_stop_separator;
END LOOP;
END csv_to_array; --}}}
PROCEDURE get_records(p_blob IN blob,p_records OUT varchar2_t) --{{{
IS
l_record_separator VARCHAR2(2) := chr(13)||chr(10);
l_last INTEGER;
l_current INTEGER;
BEGIN
-- Sigh, stupid DOS/Unix newline stuff. If HTMLDB has generated the file,
-- it will be a Unix text file. If user has manually created the file, it
-- will have DOS newlines.
-- If the file has a DOS newline (cr+lf), use that
-- If the file does not have a DOS newline, use a Unix newline (lf)
IF (NVL(dbms_lob.instr(p_blob,utl_raw.cast_to_raw(l_record_separator),1,1),0)=0)
THEN
l_record_separator := chr(10);
END IF;
l_last := 1;
LOOP
l_current := dbms_lob.instr( p_blob, utl_raw.cast_to_raw(l_record_separator), l_last, 1 );
EXIT WHEN (nvl(l_current,0) = 0);
p_records(p_records.count+1) := utl_raw.cast_to_varchar2(dbms_lob.substr(p_blob,l_current-l_last,l_last));
l_last := l_current+length(l_record_separator);
END LOOP;
END get_records; --}}}
-- Utility functions --{{{
PROCEDURE parse_textarea ( --{{{
p_textarea IN VARCHAR2,
p_collection_name IN VARCHAR2
IS
l_index INTEGER;
l_string VARCHAR2(32767) := TRANSLATE(p_textarea,chr(10)||chr(13)||' ,','@@@@');
l_element VARCHAR2(100);
BEGIN
l_string := l_string||'@';
htmldb_collection.create_or_truncate_collection(p_collection_name);
LOOP
l_index := instr(l_string,'@');
EXIT WHEN NVL(l_index,0)=0;
l_element := substr(l_string,1,l_index-1);
IF (trim(l_element) IS NOT NULL)
THEN
htmldb_collection.add_member(p_collection_name,l_element);
END IF;
l_string := substr(l_string,l_index+1);
END LOOP;
END parse_textarea; --}}}
PROCEDURE parse_file( --{{{
p_file_name IN VARCHAR2,
p_collection_name IN VARCHAR2,
p_headings_item IN VARCHAR2,
p_columns_item IN VARCHAR2,
p_ddl_item IN VARCHAR2,
p_table_name IN VARCHAR2 DEFAULT NULL
IS
l_blob blob;
l_records varchar2_t;
l_record wwv_flow_global.vc_arr2;
l_datatypes wwv_flow_global.vc_arr2;
l_headings VARCHAR2(4000);
l_columns VARCHAR2(4000);
l_seq_id NUMBER;
l_num_columns INTEGER;
l_ddl VARCHAR2(4000);
l_keyword varchar2(300);
l_records_count number;
l_count number;
l_filename varchar2(400);
BEGIN
--delete from test_mylog;
-- insert into t_log(slog) values('p_file_name '||p_file_name||'p_collection_name '||p_collection_name||'p_headings_item '||p_headings_item||'p_columns_item '||p_columns_item||'p_ddl_item '||p_ddl_item||'p_table_name '||p_table_name);
-- commit;
insert into testing_job values(p_file_name,p_collection_name,p_headings_item,p_columns_item,p_ddl_item,p_table_name);commit;
IF (p_table_name is not null)
THEN
BEGIN
execute immediate 'drop table '||p_table_name;
EXCEPTION
WHEN OTHERS THEN null;
END;
l_ddl := 'create table '||p_table_name||' '||v(p_ddl_item);
htmldb_util.set_session_state('P13_DEBUG',l_ddl);
execute immediate l_ddl;
l_ddl := 'insert into '||p_table_name||' '||
'select '||v(p_columns_item)||' '||
'from htmldb_collections '||
'where seq_id > 1 and collection_name='''||p_collection_name||'''';
htmldb_util.set_session_state('P13_DEBUG',v('P13_DEBUG')||'/'||l_ddl);
execute immediate l_ddl;
RETURN;
END IF;
BEGIN
/*select blob_content into l_blob from wwv_flow_files
where name=p_file_name;*/
select the_blob into l_blob from t_batch_attachments
where blob_filename=p_file_name;
-- insert into testing_job values (l_blob);commit;
EXCEPTION
WHEN NO_DATA_FOUND THEN
raise_application_error(-20000,'File not found, id='||p_file_name);
END;
get_records(l_blob,l_records);
IF (l_records.count < 2)
THEN
raise_application_error(-20000,'File must have at least 2 ROWS, id='||p_file_name);
END IF;
-- Initialize collection
htmldb_collection.create_or_truncate_collection(p_collection_name);
-- Get column headings and datatypes
csv_to_array(l_records(1),l_record,'sid');
     --l_records_count:=l_record.count+1;
--csv_to_array(l_records(l_records_count),l_datatypes);
     l_num_columns := l_record.count;
     if (l_num_columns > 100) then
raise_application_error(-20000,'Max. of 100 columns allowed, id='||p_file_name);
end if;
-- Get column headings and names
FOR i IN 1..l_record.count
LOOP
l_record(i) := trim(l_record(i));
l_record(i) := replace(l_record(i),' ','_');
l_record(i) := replace(l_record(i),'-','_');
l_record(i) := replace(l_record(i),'(','_');
l_record(i) := replace(l_record(i),')','_');
l_record(i) := replace(l_record(i),':','_');
l_record(i) := replace(l_record(i),';','_');
l_record(i) := replace(l_record(i),'.','_');
l_record(i) := replace(l_record(i),'"','_');
l_headings := l_headings||':'||l_record(i);
l_columns := l_columns||',c'||lpad(i,3,'0');
END LOOP;
l_headings := ltrim(l_headings,':');
l_columns := ltrim(l_columns,',');
htmldb_util.set_session_state(p_headings_item,l_headings);
htmldb_util.set_session_state(p_columns_item,l_columns);
     -- Get datatypes
FOR i IN 1..l_record.count
LOOP
l_datatypes(i):='varchar2(400)';
l_ddl := l_ddl||','||l_record(i)||' '||l_datatypes(i);
END LOOP;
l_ddl := '('||ltrim(l_ddl,',')||')';
htmldb_util.set_session_state(p_ddl_item,l_ddl);
-- Save data into specified collection
FOR i IN 1..l_records.count
LOOP
csv_to_array(l_records(i),l_record,i-1);
l_seq_id := htmldb_collection.add_member(p_collection_name,'dummy');
FOR i IN 1..l_record.count
LOOP
htmldb_collection.update_member_attribute(
p_collection_name=> p_collection_name,
p_seq => l_seq_id,
p_attr_number => i,
p_attr_value => l_record(i)
END LOOP;
END LOOP;
-- DELETE FROM wwv_flow_files WHERE name=p_file_name;
END;
BEGIN
NULL;
END;
Now I m stuck in If I call the Package through following Job:-
DBMS_SCHEDULER.create_job (
job_name => 'New_Testing1',
job_type => 'PLSQL_BLOCK',
job_action => 'begin
GDQ.htmldb_sid_50.parse_file ('''||:P13_FILEBROWSE||''',''P13_COLLECTION'',''P13_HEADINGS'',''P13_COLUMNS'',''P13_DDL'');
htmldb_sid_50.parse_file('''||:P13_FILEBROWSE||''',''P13_COLLECTION'' ,''P13_HEADINGS'',''P13_COLUMNS'',''P13_DDL'',''gdqdata.gdq_table1'');
end;
start_date => NULL,
repeat_interval => NULL,
end_date => NULL,
enabled => TRUE,
comments => 'UPLOAD FILE INTO TABLE IN GDQ.'
I believe there is security issue in APex related to wwv_flow_files which is creating the problem . Please can anybody assist me in this issue.
Thanks in Advance
Danalaxmi

Please post the details of the application release, along with the complete error message and the steps you followed to reproduce the issue.
Thanks,
Hussein

Similar Messages

  • "can not start a job" issue in AWM

    Hi ALL,
    I am maintaining my cube from PLSQL with following options
    1. buildtype = "BACKGROUND"
    2. trackstatus = "true"
    3. maxjobqueues = 3
    i get following error when i see the "olapsys.xml_load_log" table
    ***Error Occured: Failed to Build(Refresh) DB_OWNER.MY_ANALYTICAL_WORKSPACE Analytic Workspace. Can not start a job.
    Can anybody explain when and why this error occurs? I have wasted a lot of time searching for this issue, but have found no person facing such issue.
    Hi Keith, it will be great if you can answer this one.
    My database version is 10.2.0.4.0 and AWM version is also 10.2.0.3.0
    Kind Regards,
    QQ
    Message was edited by:
    dwh_10g

    Applies to:
    Oracle OLAP - Version: 10.1 to 11.1
    This problem can occur on any platform.
    Symptoms
    - We have an AW maintenance / refresh script or procedure that contains BuildType="BACKGROUND", so that the AW maintenance task will be sent to the Oracle Job queue.
    - When we execute the AW maintenance / refresh script or procedure, we do not get any errors in the foreground, the script/procedure has been executed successfully.
    - However when we look into the build/refresh log (see <Note 351688.1> for details) we see that the maintenance/refresh task failed with:
    13:29:39 Failed to Submit a Job to Build(Refresh) Analytic Workspace <schema>.<AW Name>.
    13:29:39 ***Error Occured in BUILD_DRIVER
    - In the generated SQL trace for the session of the user who launches the AW build/refresh script or procedure, we see that ORA-27486 insufficient privileges error occurred at creation of the job.
    We see from the relevant bit of the SQL trace that err=27486 occured while executing the #20 statement which is 'begin DBMS_SCHEDULER.CREATE_JOB ...', and the statement is parsed and tried to be executed as user having uid=91:
    PARSING IN CURSOR #20 len=118 dep=2 uid=91 oct=47 lid=91 tim=1176987702199571
    hv=1976722458 ad='76dd8bcc'
    begin
    DBMS_SCHEDULER.CREATE_JOB(:1, 'plsql_block', :2, 0, null, null, null,
    'DEFAULT_JOB_CLASS', true, true, :3); end;
    END OF STMT
    PARSE
    #20:c=1000,e=1100,p=0,cr=0,cu=0,mis=1,r=0,dep=2,og=1,tim=1176987702199561
    EXEC #20:c=65990,e=125465,p=10,cr=1090,cu=3,mis=1,r=0,dep=2,og=1,tim=
    1176987702325167
    ERROR #20:err=27486 tim=465202984
    Cause
    User who tries to create a job (executes DBMS_SCHEDULER.CREATE_JOB() procedure) does not have the sufficient privileges.
    Solution
    1. Identify the user under which the job is supposed to be created. This user is not necessarily the same as the user who launched AW build/refresh script or procedure. Get the corresponding username from one of the %_USERS views e.g. from ALL_USERS.
    e.g.
    SELECT user_id,username FROM all_users WHERE user_id=91;
    2. Identify the system privileges currently assigned to the user by connecting as the user whom the privileges need to be determined, and execute:
    SELECT * FROM SESSION_PRIVS ORDER BY PRIVILEGE;
    3. Ensure that the CREATE JOB privilege is listed.
    The CREATE JOB privilege can be granted in various ways to a user:
    - via role OLAP_USER or via role OLAP_DBA (see view ROLE_SYS_PRIVS for what privs are assigned to a role):
    GRANT OLAP_USER TO <username>;
    - explicitly
    GRANT CREATE JOB TO <username>;

  • Scheduler doesn't create Jobs

    Hello folks!
    We have scheduled some reports with BI Publisher Scheduler in our Development Enviroment and works very fine. But when we passed that reports to Prod Enviroment, BI Publisher scheduler doesn't create any Job (verified in Report Job History and XMLP/QRTZ tables in Database Schema that isn't any Job created). There isn't any error, exception or message, only scheduler doesn't create Jobs.
    Any idea, solution or way to find any trail about that problem?
    Thanks for your preciated time spent in our issue.
    Best Regards,
    Martín

    I am also facing same issue with BI Publisher Scheduler but showing below mentioned error while creating new job.
    Error
    "Job submission failed : Error occurred while scheduling the job. org.quartz.ObjectAlreadyExistsException: Unable to store Job with name: '-1' and group: 'weblogic', because one already exists with this identification."
    Cheers.
    Vishal

  • ORA-00990 trying to execute 'grant create job'

    SUN Solaris 2.9, ORACLE 9.2.0.4, HTML DB Version 1.4.2.00.21
    ins.sql gets an error "ORA-00990: missing or invalid privilege" while performing "grant create job to FLOWS_010402 with admin option;"
    It appears this command was recently added to coreins.sql (Rem jstraub 09/29/2003 - Added with admin option to create database link priv, added create job, library to privs granted (Bug 3159606)).
    Has anyone had any experience with this?

    we should probably have included a better comment/message in that file, but CREATE JOB is only a valid system priv in 10g...
    SQL> select banner from v$version;
    BANNER
    Oracle10i Enterprise Edition Release 10.1.0.1.0 - Beta
    PL/SQL Release 10.1.0.1.0 - Beta
    CORE 10.1.0.1.0 Beta
    TNS for Linux: Version 10.1.0.1.0 - Beta
    NLSRTL Version 10.1.0.1.0 - Beta
    SQL> grant create job to rmattama;
    Grant succeeded.
    SQL> connect system@captain
    Enter password:
    Connected.
    SQL> select banner from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.2.0 - Production
    PL/SQL Release 9.2.0.2.0 - Production
    CORE 9.2.0.2.0 Production
    TNS for Linux: Version 9.2.0.2.0 - Production
    NLSRTL Version 9.2.0.2.0 - Production
    SQL> grant create job to rmattama;
    grant create job to rmattama
    ERROR at line 1:
    ORA-00990: missing or invalid privilege
    SQL>
    ...i'll log the comment issue is a bit.
    regards,
    raj

  • Creating job

    Hi Experts,
    I am about to create a batch job. I used FM JOB_OPEN, JOB_SUBMIT and JOB_CLOSE. However, whenever I run the program it creates job for every 1 second. It will not stop creating jobs unless you completely exited in the program. The code is not inside the loop.

    mariposa,
       Suppose you have 100000 records which is going for dump in background also.
    Taht time decided to create a job for every 20000 records.
    select * from database table
      into itab
    packaze size 20000
    where x  =  s_x.
       your functionality here if required and moved to final internal table.
    Now  you have to pass this final internal table data to your submit program selection screen.
    CALL FUNCTION 'JOB_OPEN'
          EXPORTING
        DELANFREP              = ' '
        JOBGROUP               = ' '
            jobname                = csm_std_reconciliation_job
        SDLSTRTDT              = NO_DATE
        SDLSTRTTM              = NO_TIME
         IMPORTING
            jobcount               = jobcount
    EXCEPTIONS
       cant_create_job        = 1
       invalid_job_data       = 2
       jobname_missing        = 3
       OTHERS                 = 4
        IF sy-subrc <> 0.
    MESSAGE ID 'CSM' TYPE 'W' NUMBER '045' WITH csm_std_reconciliation_job.
          EXIT.
        ENDIF.
        CALL FUNCTION 'JOB_SUBMIT'
          EXPORTING
        ARCPARAMS                         =
            authcknam                         = sy-uname
        COMMANDNAME                       = ' '
        OPERATINGSYSTEM                   = ' '
        EXTPGM_NAME                       = ' '
        EXTPGM_PARAM                      = ' '
        EXTPGM_SET_TRACE_ON               = ' '
        EXTPGM_STDERR_IN_JOBLOG           = 'X'
        EXTPGM_STDOUT_IN_JOBLOG           = 'X'
        EXTPGM_SYSTEM                     = ' '
        EXTPGM_RFCDEST                    = ' '
        EXTPGM_WAIT_FOR_TERMINATION       = 'X'
            jobcount                          = jobcount
           jobname                           = csm_std_reconciliation_job
        LANGUAGE                          = SY-LANGU
        PRIPARAMS                         = ' '
            report                            = csm_std_reconciler
            variant                           = csmvari
      IMPORTING
        STEP_NUMBER                       =
         EXCEPTIONS
           bad_priparams                     = 1
           bad_xpgflags                      = 2
           invalid_jobdata                   = 3
           jobname_missing                   = 4
           job_notex                         = 5
           job_submit_failed                 = 6
           lock_failed                       = 7
           program_missing                   = 8
           prog_abap_and_extpg_set           = 9
           OTHERS                            = 10
        IF sy-subrc <> 0.
    MESSAGE ID 'CSM' TYPE 'W' NUMBER '045' WITH csm_std_reconciliation_job.
          EXIT.
        ENDIF.
        strttime = sy-uzeit + timepad.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount                          = jobcount
            jobname   = csm_std_reconciliation_job
           sdlstrtdt                         = sy-datum
           sdlstrttm                         = strttime
    IMPORTING
      JOB_WAS_RELEASED                  =
         EXCEPTIONS
           cant_start_immediate              = 1
           invalid_startdate                 = 2
           jobname_missing                   = 3
           job_close_failed                  = 4
           job_nosteps                       = 5
           job_notex                         = 6
           lock_failed                       = 7
           OTHERS                            = 8
        IF sy-subrc <> 0.
          MESSAGE ID 'CSM' TYPE 'W' NUMBER '045'
             WITH csm_std_reconciliation_job.
          EXIT.
        ELSE.
          MESSAGE ID 'CSM' TYPE 'I' NUMBER '104' WITH
              csm_std_reconciliation_job.
        ENDIF.
    endselect.
    Now for every 20000 records it will create one batch job.
    Pls. reward if useful.

  • Creating Job material using public API from WIP

    Take the entered component part number and search in the WIP job material requirements. This should use a WIP API. If the material is found, increment the quantity. If material is not found, create the job material using public API. (Provide WIP API details)
    The java object, oracle.apps.csd.schema.server .CsdHvWipJobPvtEO is a wrapper to call WIP API. This should be used to create material requirements is this the procedure to create job material Req.
    from OAF how we have to create Job material transaction

    Hi Pat,
    What is your SBO version? I've seen several cases in which the login/connection procedure (both in the client and via DI API) has become much slower after upgrading to SBO 2005.
    Do you experience the same slowness when connecting via DI API in a non-WebService setting?
    I would not recommend using DI API in a web service context in the first place. DI Server would give you a much more robust, stable and scalable infrastructure to build upon.
    Henry

  • Creating Job Order without Assembly Routing

    How can you prevent Users from Creating Job Order without creating routing to the Assembly used
    Regards

    Hi Laxmikant
    Please note the steps
    Create a BOM Application in OS30
    Create a new BOM ID in OS31 with BOM Usage as Production
    Assign this BOM ID in BOM Application
    Ensure that ID is responsible for Production planning alone.
    Then in that ID maintain a BOM alone without any items.
    Assign this BOM Application in Order type dependent parameters in OPL8
    Now u can create a production order w/o BOM
    Rgds

  • Can position be created with out creating Job..

    Hi Experts,
    A simple question but quite complicated.
    Can position be created with out creating the job. ( yes it will give the warning and create).
    Here my actual question comes, what is the need of creating the Job. when we can create position without job in general Scenario.
    Is it compulsory to create job whenever we create position.
    Your replies are highly appreciated.
    Thanks in advance.
    Regards,
    Dollly

    Hi Dolly,
    I definitely aggree with what guru Sikindar mentions.
    One more point:
    SAP advises to create separate positions for each of the employees in your organizational structure.
    For example, there may be a hundred "Engineer" positions in your company (with codes: 50000001, 50000002, ... 50000100).
    At this point, when you're asked to take a report of all of the "Engineer"s in your company, then you need to enter all these position codes into the selection screen : Nearly impossible scenario!
    However, if you had linked all of these positions to a single job named "Engineer" and numbered "50000000", then you would be able to find all the positions linked to this job and all the employees holding these positions by entering a single object ID and evaluation path in the selection screen of a particular report.
    Regards,
    Dilek

  • E-recruitement Error " When creating Job Posting "

    Hello Friends
    We are usinng standard  BSP HRRCF_POST_LST for posting the Job.
    But when after releasing the job i go on th job posting page and when i click on  "CREATE JOB POSTING " button i'm getting the following error.
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    BSP Exception: Internal Error in Business Server Page Runtime.
    Program CL_BSP_PAGE_BASE==============CP
    Include CL_BSP_PAGE_BASE==============CM01B
    Line 91 
    Error type:
    Your SAP Business Server Pages Team
    Can you please suggest what would be the cause of error even it is complete standard BSP.
    Please guide me by your valuable comment.
    Regards,
    Nilesh

    Hello Friends
    We are usinng standard  BSP HRRCF_POST_LST for posting the Job.
    But when after releasing the job i go on th job posting page and when i click on  "CREATE JOB POSTING " button i'm getting the following error.
    I tried to check the error log in ST22 & SLG1 but i found nothing in it.
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    BSP Exception: Internal Error in Business Server Page Runtime.
    Program CL_BSP_PAGE_BASE==============CP
    Include CL_BSP_PAGE_BASE==============CM01B
    Line 91 
    Error type:
    Your SAP Business Server Pages Team
    Can you please suggest what would be the cause of error even it is complete standard BSP.
    Please guide me by your valuable comment.
    Regards,
    Nilesh

  • Problem in creating job

    Hey to all
    I wanted to create a job that shrink my temp tablespace after one week. Due to huge data loading I get filled. When i create job through EM I could not understand where I put Alter tablespace temp shrink space command . For database home page click server click job link and create button under the command section where I put this command. Plz help I tried to this IN Pl/Sql but job fail
    DECLARE
    SQLSTMT VARCHAR2 (500);
    Begin
    SQLSTMT:= ALTER TABLESPACE temp SHRINK SPACE';
    execute immediate (sqlstmt);
    END;

    I would not waste my time on creating such jobs.
    Main reason: they don't resolve anything. You shrink the tablespace and it will definitely start to grow again.
    You are only fighting symptoms. Maybe you want to earn your living out of fighting symptoms, I don't.
    Apart from the the syntax of execute immediate is
    execute immediate &lt;variable&gt;|&lt;hard coded literal&gt;;
    Before asking syntax questions please use the docs (in this case the PL/SQL reference manual) to verify your usage of a construct is syntactically correct.
    Also this line
    SQLSTMT:= ALTER TABLESPACE temp SHRINK SPACE';
    is lacking a '
    Sybrand Bakker
    Senior Oracle DBA

  • JSM - Creating Job Documentation from Job Request itself

    Hi all,
    I am still exploring JSM, and I know its possible to create Job Request (Job Req) from Job Documentation (Job Doc).
    But is it possible to create the reverse (Job Doc from Job Req) ?
    This will be great, if the user is creating Job Req from "Detailed" version (compared to "Basic"), which has similar entries and tabs, as Job Doc.
    I did read somewhere that its possible, but I never find any documentation or SCN/blogs on this.
    Thanks in advance
    Regards
    Shahul

    This was answers below, in the comment area by Volker.
    How to configure SAP's standard Job Request form - Part 2
    Hi Shahul,
    the user triggers the Job Doc creation from within the Incident or Change Request in the JSM assignment block, but then the data from teh Job Request is automatically taken over for the Job Document.
    So starting the creation and pushing the save button is manual work, but the filling out the Job Doc is done automatically.
    Kind Regards
    Volker
    Regards
    Shahul

  • Error creating job in oracle

    I'm having a problem creating a job in oracle . I want at the end of each day to put some values from table1 in table2, empty table1, and then delete and re-create some sequences..because I have auto-increment id and each day I want to sequence to start from 0 again. So long story short I tried creating this job using toad for oracle.
    if I just put the first 2 tasks(put data from table1 in table 2, then delete) in the job it works like a charm. if I also add the drop sequence, create sequence I get an error saying
    Encountered the symbol "DROP" when expecting one of the following:
    begin case declare exit for goto if loop mod null pragma
    so this is what I want the job to do:
    insert into A(a,b,c) select a2,b2,c2 from B;
    delete from A;(so far it would work)
    drop sequence ida_seq;
    create sequence ida_seq
    start with 1
    increment by 1
    nomaxvalue;
    drop sequence idb_seq;
    create sequence idb_seq
    start with 1
    increment by 1
    nomaxvalue;
    so anybody can give me a clue on why I get the error? maybe if someone can give me a link on how to do oracle jobs..cause if I google "oracle+job" I get only jobs(for work) in oracle...but I don't get stuff related to syntax and how to create jobs in oracle. 10x in advance

    If this is a PL/SQL question, then PL/SQL has no 'DROP' or 'CREATE' keywords and you would need to use dynamic SQL with EXECUTE IMMEDIATE.
    btw there are various techniques around for resetting a sequence to start again at 1 using ALTER SEQUENCE, rather than dropping and recreating it.

  • Error creating job into trigger using DBMS_SCHEDULER.

    Hi,
    I am trying to create job using dbms_scheduler package. I have one trigger on insert event on one table. I am creating job using following syntax.
    CREATE OR REPLACE TRIGGER TRG_BI_JOB_CONFIG BEFORE INSERT ON JOB_CONFIG FOR EACH ROW
    DECLARE
    BEGIN
         DBMS_SCHEDULER.Create_Job(job_name => 'my_job1'
                             ,job_type => 'PLSQL_BLOCK'
                             ,job_action => 'delete_temp'
                             ,start_date => TO_DATE('15-JUL-2003 1:00:00 AM', 'dd-mon-yyyy hh:mi:ss PM')
                                  ,repeat_interval => 'FREQ=DAILY'
                             ,enabled => TRUE
                             ,comments => 'DELETE FOR job schedule.');
    EXCEPTION
    WHEN OTHERS THEN RAISE;
    END;
    but I am getting following error while inserting into JOB_CONFIG table.
    ORA-04092: cannot in a trigger
    ORA-06512: at "PRAKASH1.TRG_BI_JOB_CONFIG", line 41
    ORA-04088: error during execution of trigger
    same above statement If I am running from sqlplus then It is creating job without error. If I am creating job using DBMS_JOB into trigger then It is also working fine but this package is depricated from oracle10g so I cannt use it any more.
    My Oracle version is 'Oracle DATABASE 10g RELEASE 10.2.0.1.0 - Production'.
    can anyone help me in this context.

    I have a few comments on this thread as an Oracle dbms_scheduler developer.
    - Oracle takes backward compatibility very seriously. Although dbms_job is deprecated, the interface will continue to work indefinitely. The deprecation of dbms_job is so that customers will be encouraged to take advantage of the more powerful dbms_scheduler. It is extremely unlikely that entire blocks of functionality will ever be removed. There is currently no plan to remove dbms_job functionality (and even if there were, doing so would be strenuously opposed by many users).
    - lots of internal Oracle database components are standardizing on using dbms_scheduler (resource manager, materialized views, auto sql tuning etc). This is good evidence that it will continue to be the recommended scheduling method for the foreseeable future - not even the concept of a replacement exists. It is also under active development.
    - The reason for the automatic commit is that a dbms_scheduler job is a full database object like a stored procedure or a table. So a call to dbms_scheduler.create_job is like executing a DDL which takes effect immediately. A dbms_job job is mostly just a row in a table so a call to dbms_job.submit behaves like regular DML. There are many advantages to a job being a full database object but DDL behaviour is an unfortunate requirement of this.
    Hope this clears a few things up, reply with any questions.
    -Ravi

  • Error while creating media issue in msd using jpmg0

    Dear all,
    kindly help me to solve the following issue. when i am creating media issue using tcode jpmg0, in the  process lo,g system shows the following error message.
    "Required parameters missing when calling up module " ACCOUNTING_KEYS_READ_FOR_BWKEY". It is very helpfull to me, give a reply by anybody as early as possible. kindly help me.

    Hi,
    Request you to check media product and media issue master data setup.
    Items for which neither financial accounting nor price calculation is permitted,you might this error.
    Best Regards,
    Chandra

  • HP P1102w don't print - W [16/Aug/2012:08:47:51 -0300] HP_LaserJet_Professional_P1102w: Printer supports Create-Job but not Send-Document operation.

    Sirs,
    I'm trying to print from wirelessy from my MacBook Pro (OS X Mountain Lion) to a P1102w printer without success.
    The error message is:
    W [16/Aug/2012:08:47:51 -0300] HP_LaserJet_Professional_P1102w: Printer supports Create-Job but not Send-Document operation.W [16/Aug/2012:08:47:51 -0300] HP_LaserJet_Professional_P1102w: Printer supports Create-Job but not Send-Document operation.
    The Printer Firmware is 20120130 (HP last version)
    Any hints?
    Regards
    Camilo

    It doesn't share the printer and the Mac can't print

Maybe you are looking for

  • Portable Hard Disk Drive

    Hi All, I am in the market to purchase a Portable Hard Disk Drive, as I had purchased an EZQ drive that is now DOA. I am interested in the LaCie Rugged line, but I was looking for more storage space for a good price. Any suggestions or help would be

  • "Invalid Account. Please Validate." for Curve 9360

    Facing this issue since I bought the device since last Thursday. The issue is recurring, and even the successful account setup attempt never pops up email account message box on home screen and after some time the status is same - Invalid Account. Pl

  • My country is not at Music Store

    Well, here's the thing, I live in mexico, and when I try to create a new account for Itunes, I select the option where it says that if the billing addres is not at the US, so I try to select my country (Mexico), but it's not there, what can I do

  • Error with multiple requests

    Hi, I'm using JSC2_1. I've developed page with table bound to database table via data provider. There are about 1000 rows in database table so my table component has pagination buttons (about 100 pages). My problem is that when user clicks pagination

  • Error in reimporting the model

    hi,     I tried to import a model in which a table is added in the rfc.for the first time when I reimported it was working fine.then for some reason I have reverted the code back in DTR.then when I tried to reimport the model I am getting the followi