Analytics: Content Item metrics - run your jobs frequently!

In our environment the analytics job for "Content Item Sync Job" was set to run once daily.
As it turns out, this job needs to run before analytics can start to be collected on a particular content item.
In our case because we were running it in the middle of the night, we would miss all analytics that would be captured on the very first day a content item is posted (which for us can be the bulk of an items hits).
Upon realizing the significance we've boosted the job to now run every 15 minutes.
Hope that helps someone!

Nice Contribution..
Thanks Alot :)
Joe

Similar Messages

  • Write a Dbms_scheduler to run a job frequently

    Hi,
    I need to write dbms_scheduler to run the job on monthly basis which would delete data from database which are of 2 year old from sysdate.
    For Eg: I have 50000 records in my table which are of differetn dates stored in database since 3 years.
    If I run the job today, records which are created before today's date 2 years back should be deleted.
    Can any one help me in step by step process as how can I do it as I am new in writing jobs.
    Thanks in advance.

    HI, thx for the info.
    I want to run this job from front end application code (calling as a procedure within java or oracle bpm programming) instead of running from database level.
    How can I do that. How can I pass arguments for this as I have parameter for my procedure. Below given are my procedure and job.
    create or replace
    procedure requests_delete_proc(p_request_date string)
    as
    request_count number;
    nodatafound exception;
    begin
    select count(request_id) into request_count from max_request_dtls
    where requested_date < to_date(p_request_date,'dd/mm/yyyy') - (2*365);
    if request_count <> 0 then
    delete from max_req_history_dtls
    where request_id in
    (select request_id from max_request_dtls
    where requested_date < add_months(to_date(p_request_date,'dd-MON-yyyy'),-(2 * 365))
    delete from max_request_dtls
    where requested_date < add_months(to_date(p_request_date,'dd-MON-yyyy'),-(2 * 365));
    dbms_output.put_line('requests deleted');
    commit;
    else
    raise nodatafound;
    end if;
    exception
    when nodatafound then
    dbms_output.put_line('no records found for mentioned requested date');
    end requests_delete_proc;
    BEGIN
    DBMS_SCHEDULER.create_job (
    job_name => 'JOB_DELETEOLD',
    job_type => 'STORED_PROCEDURE',
    job_action => 'requests_delete_proc',
    number_of_arguments => 1,
    start_date => SYSTIMESTAMP,
    repeat_interval => 'freq=MONTHLY; BYMONTHDAY=1; byhour=1; byminute=0',
    end_date => NULL,
    enabled => TRUE,
    comments => 'JOB_DELETEOLD');
    END;
    BEGIN
    DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
    job_name => 'JOB_DELETEOLD',
    argument_name => 'requested_date',
    argument_value => sysdate);
    END;
    Can I club these 2 and put them in a package and call the same in code.
    pls suggest.

  • How to run the job using DBMS_SCHEDULER

    How to run the job using DBMS_SCHEDULER
    pleas give some sample Iam very new to DBMS_SCHEDULER

    Hi
    DBMS_SCHEDULER
    In Oracle 10g the DBMS_JOB package is replaced by the DBMS_SCHEDULER package. The DBMS_JOB package is now depricated and in Oracle 10g it's only provided for backward compatibility. From Oracle 10g the DBMS_JOB package should not be used any more, because is could not exist in a future version of Oracle.
    With DBMS_SCHEDULER Oracle procedures and functions can be executed. Also binary and shell-scripts can be scheduled.
    Rights
    If you have DBA rights you can do all the scheduling. For administering job scheduling you need the privileges belonging to the SCHEDULER_ADMIN role. To create and run jobs in your own schedule you need the 'CREATE JOB' privilege.
    With DBMS_JOB you needed to set an initialization parameter to start a job coordinator background process. With Oracle 10g DBMS_SCHEDULER this is not needed any more.
    If you want to user resource plans and/or consumer groups you need to set a system parameter:
    ALTER SYSTEM SET RESOURCE_LIMIT = TRUE;
    Baisc Parts: Job
    A job instructs the scheduler to run a specific program at a specific time on a specific date.
    Programs
    A program contains the code (or reference to the code ) that needs to be run to accomplish a task. It also contains parameters that should be passed to the program at runtime. And it?s an independent object that can referenced by many jobs
    Schedules
    A schedule contains a start date, an optional end date, and repeat interval with these elements; an execution schedule can be calculated.
    Windows
    A window identifies a recurring block of time during which a specific resource plan should be enabled to govern resource allocation for the database.
    Job groups
    A job group is a logical method of classifying jobs with similar characteristics.
    Window groups
    A window groups is a logical method of grouping windows. They simplify the management of windows by allowing the members of the group to be manipulated as one object. Unlike job groups, window groups don?t set default characteristics for windows that belong to the group.
    Using Job Scheduler
    SQL> drop table emp;
    SQL> Create table emp (eno int, esal int);
    SQL > begin
    dbms_scheduler.create_job (
    job_name => 'test_abc',
    job_type => 'PLSQL_BLOCK',
    job_action => 'update emp set esal=esal*10 ;',
    start_date => SYSDATE,
    repeat_interval => 'FREQ=DAILY; INTERVAL=10',
    comments => 'Iam tesing scheduler');
    end;
    PL/SQL procedure successfully completed.
    Verification
    To verify that job was created, the DBA | ALL | USER_SCHEDULER_JOBS view can be queried.
    SQL> select job_name,enabled,run_count from user_scheduler_jobs;
    JOB_NAME ENABL RUN_COUNT
    TEST_abc FALSE 0
    Note :
    As you can see from the results, the job was indeed created, but is not enabled because the ENABLE attribute was not explicitly set in the CREATE_JOB procedure.
    Run your job
    SQL> begin
    2 dbms_scheduler.run_job('TEST_abc',TRUE);
    3* end;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> select job_name,enabled,run_count from user_scheduler_jobs;
    JOB_NAME ENABL RUN_COUNT
    TEST_ABC FALSE 0
    Copying Jobs
    SQL> begin
    2 dbms_scheduler.copy_job('TEST_ABC','NEW_TEST_ABC');
    3 END;
    4 /
    PL/SQL procedure successfully completed. Hope it will help you upto some level..!!
    Regards
    K

  • BEA's Publisher - Display Published Content Items

    I'm using BEA's Publisher product with ALUI. I want to have a simple portlet that just displays Content Items that I've published, but after playing with it for a couple of hours, I find myself stuck.
    I have a Data Entry template that just takes a name and a file, and a presentation template associated with that. But I can't figure out how to make the presentation template display a list of published content items associated with the Data Entry template.
    I tried using the Tag Helper and I saw that the file properties were available, e.g. name, location, length, however I can't get the template to actually display the information.
    Also, since I can't publish said presentation template (you aren't allowed to publish a presentation template associated with a data entry template), I have to make ANOTHER presentation template, and include the first one, and then make a new portlet that displays that second template. Is this how it's supposed to work? It seems awfully complicated for such a simple task.
    I would greatly appreciate any input anyone can give. Thanks!
    Edited by: user10704201 on Dec 12, 2008 12:32 PM

    " I can't figure out how to make the presentation template display a list of published content items associated with the Data Entry template. "
    While I believe that this is a correct statement, you can't use pcs:foreach to get all items associated with a DET, I think that what you really want is to display all the content items in a folder or in a list. The 2 ways I most commonly do it are:
    use a list
    1) create a DET for the main portlet item (for example, news stories) with a property of type list
    2) create a DET for the type of item that goes into the list (for example, news article)
    3) create a Content Item based on your main portlet item DET
    4) add items to the list
    5) iterate through the list in your presentation template (pcs:foreach expr="item.myList" var="mylistvar"...)
    You can also tell each news article to automatically add itself to the news stories list. (Look in the DET for this setting)
    use a folder
    you can also just create your list items in a folder and then loop through the folder (pcs:foreach expr="folderByPath(item.folder,"folderName")"...

  • Manually Running Timer Job "Content Type Subscriber" on SP Online

    I need to run the "Content Type Subscriber" timer job on my SP Online instance because the default setting is hourly.  This makes it difficult to build out and deploy content types quickly because depending on when you make the content type
    change you have to wait upwards of an hour to see it published.  
    When will we be able to run timer jobs using the PowerShell cmdlets or some other way?  Is there a recommended approach by MS to handle this scenario?

    What you describe is by design, I don't have to use a content type hub to reproduce. Only add a site content type into a list can show this.
    According to
    http://msdn.microsoft.com/en-us/library/ms463016.aspx
    When you add a site content type to a list or library, SharePoint Foundation makes local copies of any columns that are referenced by the content type and adds them to the
    list's fields. For more information, see Fields and Field References.
    In addition, SharePoint Foundation makes a local copy of the site content type and adds the copy to the content type collection on the list.
    The new list content type is a child of the site content type. The value of the
    Id property for
    the list content type is different from the value of the Id property for its parent site content type, but otherwise the two content types are initially the same.

  • Error occurred while publishing the content item to the Knowledge Directory

    We are receiving the following error upon publishing non-binary content items to the knowledge directory:
    Error occurred while publishing the content item to the Knowledge Directory. Contact your portal administrator.
    Ironically, in the KD, we call see all content items located in Publisher when we are in Edit mode -- even though they haven't been published to the KD yet. In Browse mode, we can't see any content items.
    Has anyone see this error before? What could be the cause?
    We are using ALUI 6.1.

    Hi,
    If you are seeing the documents in the Knowledge Directory and in edit mode, but not browse mode then check/try the following. What exactly were you doing when you got the error? Were you in Publisher or in the Knowledge Directory and running the Simple Submit task?:
    1. Try to approve the documents in edit mode.
    2. Go to the Administrative->Intrinsic Operations and run the following jobs.
    --> Search Update 1
    3. Make sure you have proper permissions on the folder in the Knowledge Directory and Publisher Folders.
    4. Check the permissions on the Content Source for the Knowledge Directory
    I need a little more information to get your better help.
    tnx
    James

  • Make content item's status to expire after crossing expiry date in WLP repo

    Can anybody please tell me, how make the status of content to expired after crossing its expiry date(content attribute) programmatically.
    Thanks a ton in advance.

    Are you using Library Services and the WLP Repository? If so, are you looking to automatically move content Nodes to the Retired status when the expiry date is reached? If the answers to both of these are yes, then you'll need to write some type of job that runs on some frequency and queries for Nodes where the expiration/retired date is reached. Of course, you'll need to have a Property on each content Type that holds the scheduled retirement date. Your job would then need to query where the retirement date has been reached and do a checkout, change status to retired, and then check the Node back in. Note that the retirement would only occur as often as your job ran, so if the retirement is time senstivie (ie. to the minute or second), then you'll also need to filter your content searches that are used in your application to filter out items that have reached the expiration date (ex. Type.ExpirationProperty > now).
    If you're not using Library Services, then you would just include the expiration date test (Type.ExpirationProperty > now) in each query/display to ensure that you are not displaying content that has reached maturity.
    Brad

  • Content Items and the Knowledge Directory - 3 questions

    1) Does anyone know of a way to set the default KD folder where all items in a Content folder should publish?
    2) Is there some code I can put in the data entry template to force any content item published to automatically publish in the default KD directory I specify?
    3) And on previously published Content items, is there a way to publish all items in the articles folder en mass to a specified KD folder without going to each one and selecting "publish to directory"?

    Hi,
    If you are seeing the documents in the Knowledge Directory and in edit mode, but not browse mode then check/try the following. What exactly were you doing when you got the error? Were you in Publisher or in the Knowledge Directory and running the Simple Submit task?:
    1. Try to approve the documents in edit mode.
    2. Go to the Administrative->Intrinsic Operations and run the following jobs.
    --> Search Update 1
    3. Make sure you have proper permissions on the folder in the Knowledge Directory and Publisher Folders.
    4. Check the permissions on the Content Source for the Knowledge Directory
    I need a little more information to get your better help.
    tnx
    James

  • Error ORA-01017 happened when dbms_scheduler run a job.

    Hi All,
    I got a problem when I use dbms_scheduler to run a job. I got Error code 1017 when the job is run by scheduler. Please find my steps below:
    Oracle version is : Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    1. Created a job successfully by using the code below:
    begin
    dbms_scheduler.create_job(
    job_name => 'monthly_refresh_elec_splits',
    job_type => 'PLSQL_BLOCK',
    job_action => 'BEGIN TRADINGANALYSIS.PKG_IM_REPORTING_ERM.REFRESH_ELEC_SPLITS_TEST; commit; END;',
    start_date => SYSTIMESTAMP,
    repeat_interval => 'freq=monthly;bymonthday=25;byhour=10;byminute=35;bysecond=0;',
    end_date => NULL,
    enabled => TRUE,
    comments => 'monthly_refresh_elec_splits.',
    auto_drop => FALSE
    end;
    2. Got the job run details from talbe user_scheduler_job_run_details after the job is finished:
    select * from user_scheduler_job_run_details where job_name = 'MONTHLY_REFRESH_ELEC_SPLITS' order by log_id desc;
    LOG_ID     LOG_DATE     OWNER     JOB_NAME     JOB_SUBNAME     STATUS     ERROR#     REQ_START_DATE     ACTUAL_START_DATE     RUN_DURATION     INSTANCE_ID     SESSION_ID     SLAVE_PID     CPU_USED     DESTINATION     ADDITIONAL_INFO
    2054804     25/06/2012 10:35:01.086000 AM +10:00     TRADINGANALYSIS     MONTHLY_REFRESH_ELEC_SPLITS          FAILED     1017     25/06/2012 10:35:00.300000 AM +10:00     25/06/2012 10:35:00.400000 AM +10:00     +00 00:00:01.000000     1     1025,37017     129396     +00 00:00:00.030000          ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from NETS
    ORA-06512: at "TRADINGANALYSIS.PKG_IM_REPORTING_ERM", line 574
    ORA-06512: at line 1
    3. If I run the job directly the job will be finished successfully.
    begin
    dbms_scheduler.run_job('monthly_refresh_elec_splits',TRUE);
    end;
    LOG_ID     LOG_DATE     OWNER     JOB_NAME     JOB_SUBNAME     STATUS     ERROR#     REQ_START_DATE     ACTUAL_START_DATE     RUN_DURATION     INSTANCE_ID     SESSION_ID     SLAVE_PID     CPU_USED     DESTINATION     ADDITIONAL_INFO
    2054835     25/06/2012 11:05:38.515000 AM +10:00     TRADINGANALYSIS     MONTHLY_REFRESH_ELEC_SPLITS          SUCCEEDED     0     25/06/2012 11:04:35.787000 AM +10:00     25/06/2012 11:04:35.787000 AM +10:00     +00 00:01:03.000000     1     1047,700          +00 00:00:00.030000
    Additional Info:
    PL/SQL Code in procedure
    PROCEDURE Refresh_Elec_Splits_Test IS
    BEGIN
    --Refresh im_fact_nets_genvol from v_im_facts_nets_genvol in NETS
    DELETE FROM IM_FACT_NETS_GENVOL;
    --the local NETS_GENVOL table has an additional column providing volume splits by generator and month.
    --INSERT INTO IM_FACT_NETS_GENVOL values ('test',sysdate,'test',1,2,3,4,5,6,7);
    INSERT INTO IM_FACT_NETS_GENVOL
    select ngv.*,
    ratio_to_report (net_mwh) OVER (PARTITION BY settlementmonth, state)
    gen_percent
    from [email protected] ngv;
    commit;
    END;
    Does anyone can advice where should I check and how can I solve the problem?
    Thanks in advance
    Edited by: user13244529 on 24/06/2012 18:33
    Edited by: user13244529 on 24/06/2012 18:43

    I apologize if you already solved this.. but see Metalink ID 790221.1
    +*<Moderator Edit - deleted contents of MOS Doc - pl do NOT post such content - it is a violation of your Support agreement>*+                                                                                                                                                                                                                                                                                                                                                                                                               

  • Best practice for implementing META tags for content items?

    Hello,
    The portal site I'm responsible for managing our content (www.sers.state.pa.us) runs on the following WebCenter products:
    WebCenter Interaction 10.3.0.1
    WebCenter Publisher 6.5
    WebCenter Studio 2.2 MP1
    Content Service 10gR3
    The agency I work for is one of many for the commonwealth of PA, which use this product suite, and I'm encountering some confusion on how to apply META tags to the content items for our site, so we can have effective search results. According to the [W3C site's explanation on META tag standards|http://www.w3schools.com/tags/tag_meta.asp], the tags for description, keywords, etc, should be within the head region of the HTML document. However, with how the WebCenter suite's configuration is set up, the head section of the HTML is closed off by the end of the template code for a common header portlet. I was advised to add fields to our presentation and data entry templates for content, to add these meta fields, however, since they are then placed within the body section of the HTML as a result, these tags fail to have any positive impact on the search results. Instead, many of our content items, when searched for, the description in the search results only shows text that is displayed in the header and left navigation of our template, which come early in the body section of the HTML.
    Please advise as to possible method(s) that would be best to implement usage of META tags so we can get our pages containing content to come up in search results with this relevant data.
    Thanks in advance,
    Brian

    if i remember right the index server will capture meta tags even if they are not in the <head> section. it is not well formed html but I think i remember that we created meta tags down in the body section and the index server still picked them up. you might try this and see if it still works. i believe it worked in 10gR3. Let me know your results.

  • Possible to run Automator job before shutdown (automatically)?

    Subject says it all, really: I have an Autamator job that copies some files from one place to another.
    I want to run this job automatically before the machine shuts down. Is this possible?

    Yes. Just add it to the Automator workflow with the "Run AppleScript" action and save it as an application to put in your Dock, or the sidebar in a Finder window, or the toolbar in a Finder window.
    If you don't want it to be too easy, then put it in a folder first. Then put the folder either in the Dock, or the sidebar or toolbar of the Finder window so you'll have to perform two clicks.
    In the "Run AppleScript" action, you can delete everything in the text box since you don't need to process any items, and then add this:
    tell application "System Events" to shut down
    Note that "shut down" is two words. You can also use the words "restart", "sleep", or "log out". There will not be a confirmation dialog, excepting when applications ask to save unsaved documents (unless sleeping).
    In the future, you can find this is out again with Script Editor somewhere in the Applications folder (or use Spotlight). You'll want to open the "System Events" scripting dictionary, and it's probably already in the "Library" window (check the Window menu, or Command-Shift-L). Use the search in the "System Events" dictionary window to find "shut down", or anything else.
    Be careful about testing this script since it will immediately shutdown the computer without a confirmation dialog. Perhaps have an unsaved document opened while testing, such as another Automator workflow with any action added and unsaved, or a new TextEdit document with a some random text typed in (a single letter will do).

  • Publisher 6.4 to 6.5 - unable to check out content items

    Hello,
    We upgraded from publisher 6.4 to 6.5 and now are having issues with existing content.
    When trying to check out a content item - the browser hangs - checking task manager IE is hung but continually grabbing memory.
    Eventually it comes back as a Windows Internet Explorer error - Out of Memory at line 21 - then it just ignore any other clicks to the 'Check Out' link.
    Previous to this I got an error that said
    "Stop running script?
    A script on this page is causing Internet Explorer to run slowly.
    If it continues to run, your computer may become unresponsive."
    So I did this http://support.microsoft.com/kb/175500
    But now I get the out of memory error.
    I cannot even check out the content item to see what the issue is. It is not all content items just this one. Trying to find a way to edit it...
    Suggestions? Any thoughts?
    Thanks,
    V

    Did you check the publisher log files? Logs should be located here ptcs\6.5\logs
    you could also try increasing the amount of memory publisher uses by changing the min/max settings in this file.. ptcs\6.5\settings\config\service.conf
    After you change the memory settings you may need to uninstall and reinstall the publisher service using the ptcs\6.5\bin\service.bat -remove and -intall....
    Hope that helps.

  • Getting '...A general database error...' on checking-in content item

    Hi All:
    We get the following error message in ALI publisher when we try to check-in a content item:
    Error: Unable to complete the operation. A general database error occurred.
    But Editing and Saving changes works. Even publishing the contentn item works without giving any error.
    Any idea what could be causing the 'general database error..'? and how to fix it. I appreciate.
    Publisher release is 6.3 for Win, ALUI release is 6.1 mp for Win. Thanks!
    Edited by obkalu at 05/06/2008 1:34 PM

    Ok. I found out what was causing the error. It was due to an errant Job that was mistakening scheduled to execute too frequently and so it ended-up creating a huge amount of data that blew-out available space in the database.
    com.plumtree.jdbc.base.BaseBatchUpdateException: [plumtree][Oracle JDBC Driver][Oracle]ORA-01654: unable to extend index CONTENT_SYS.IX_PCSFOLDERINFOLDERPARENTID by 128 in tablespace CONTENT_DATA
    (DataDatabaseError: Unable to complete the operation. A general database error occurred.)
    BTW, i realise the top-level error msg was just too generic that it could have been resulting from any number of underlying issues.
    thnks.

  • Run a job via job schedular, got the error message Connection to Agentlost"

    Hi,
    I have created a job with 60 scripts and trried to run a job via job schedular after executed some scripts i got error message as " Connection to Agent lost". what is the problem here. how to slove the probelm. please help me.
    Thanks in Advance.
    ra
    Edited by: user4502901 on Nov 9, 2009 6:02 AM

    Hi,
    Try increasing your machines Virtual Memory and then run the scripts.
    Thanks
    Edited by: Openscript User 100 on Nov 10, 2009 9:31 PM

  • To identify the user running the job at runtime

    Hi All,
    My requirement is to develop a program which need to send mail only if a particular user runs the job.
    I need to read the user who runs the job at runtime, i tried with SY-UNAME but it holds the user name of the person who created the job at runtime.
    Please suggest me the possible ways of identifying the user running the job at runtime.
    Thanks in advance!!!
    Regards,
    Dinesh.

    "I need to read the user who runs the job at runtime, i tried with SY-UNAME but it holds the user name of the person who created the job at runtime."
    This is not true if your program/form/method is called inside the ABAP report which is executing in the batch job step. There, the active SY-UNAME is the user entered in SM36 as the job step user. It is not the user who planned/scheduled the job.
    It is unclear from your description where your program is actually running. Is it another (ABAP) step belonging to the same job or is it actually some routine called within the same job step that you are checking or is it a program totally unrelated to the batch job in question (in that case, check out the other answers about TBTCO/TBTCP)
    - Alex

Maybe you are looking for

  • Will there be driver support for the 8600m GT under Windows XP?

    Hi! I would like to run Windows XP on my Santa Rosa Macbook Pro. I know that with Bootcamp 1.3 you get drivers for the 8600m GT - the thing is, that those drivers do not seem to be optimised, for the 3dMark 06-test scores pretty low (no more than 10f

  • A GUI Question

    How do I put in a button for each day of the calender (done in this code): for (int i=1; i<=nod; i++) int row = new Integer((i+som-2)/7);      int column = (i+som-2)%7;      mtblCalendar.setValueAt(i, row, column); I want a screen that I have coded t

  • Facebook App Updates???

    Are there any Facebook app updates in the near future? I own the LG Ally and the Facebook app that came installed on the phone keeps saying "Error while fetching data [null]" everytime I go into the News Feed, and when it does work it's all old posts

  • Setting Material Ledger to Productive

    All, How do I set the material ledger to productive for a given plant ? The accounts are all setup and everything  is fine in transaction OMX1 (the active material ledger is checked for the plant\valuation area) However in transaction CKM9 the materi

  • Wacom Tablets & 3rd Party inking apps

    If this is not the correct forum for this question, please redirect me. I have a Wacom Graphire 4. I just found the inkBook software by magesw.com . It keeps locking up in the edit mode. I've tried it on both my new iMac intel and a G4 iBook. Any hin