Using nqcmd command to purge cache

Hi,
I'd like to ask a question,
in OBIEE11G, I need to use nqcmd command to purge cache,
in server I run below commond:
nqcmd -d coreapplication_OH1568635987 -u weblogic -p weblogic1 -s C:\purgecache.txt
in purgecache.txt is following command:
call sapurgeallcache()
it's ok in server,
now I want to run this command in other machine,like I want to use informatica to invoke this commant to purge cache in schedule time.
how to do it?
thank you in advance!

lets assume the column name is etl_end_time
Agents can be controlled using reports(analysis in 11g). There is a Condition tab while creating agents which can be used to control agents based on output of the report.
Lets say u create a dummy report. In that you are putting some dummy column. In the Edit formula dialog, use the TIMESTAMPDIFF function to compare your etl_end_time and current_time.
Lets say you are setting the TIMESTAMPDIFF function to return the difference in minutes. Then create a filter on this column with operator as greater than or equal to and value as say 1 minute( this is ur choice)
So this report will now return true when the difference between the time stamps is greater than 1 minute (which means it will become true 1 minute after the etl is over). Suppose you configure the agent to check the condition every 1 minute then at one point when the agent runs, this report will return true and agent is triggered
This agent will then call you purge command
You can of course add another filter to the dummy report as less than or equal to 5 minutes because the timestamp difference of the current time and the previous etl runs will also be greater than 1 minute ;) So to make sure only the latest etl end time is used you can add a second filter as just said.
Phew.. :) hope I made myself clear

Similar Messages

  • Read a command sh ip cache

    Hello,
    can you please tell me how can I determine the dscp value in the results?
    and why we have an asterisk in front of the line Se1 / 0 192.168.87.156?
    Router#sh ip cache 10.136.89.1 255.255.255.255 flow
    IP packet size distribution (1360944M total packets):
       1-32   64   96  128  160  192  224  256  288  320  352  384  416  448  480
       .002 .411 .481 .013 .007 .005 .004 .002 .001 .001 .001 .008 .001 .002 .000
        512  544  576 1024 1536 2048 2560 3072 3584 4096 4608
       .000 .000 .001 .007 .042 .000 .000 .000 .000 .000 .000
    IP Flow Switching Cache, 278544 bytes
      4079 active, 17 inactive, 445750941 added
      1698726152 ager polls, 0 flow alloc failures
      Active flows timeout in 30 minutes
      Inactive flows timeout in 15 seconds
    IP Sub Flow Cache, 165128 bytes
      4079 active, 1041 inactive, 445750941 added, 445750941 added to flow
      0 alloc failures, 1734 force free
      5 chunks, 545 chunks added
      last clearing of statistics never
    Protocol         Total    Flows   Packets Bytes  Packets Active(Sec) Idle(Sec)
    --------         Flows     /Sec     /Flow  /Pkt     /Sec     /Flow     /Flow
    TCP-Telnet  1300843399    302.8         7   162   2239.3       1.2       0.5
    TCP-FTP        4168409      0.9         4    47      4.5       0.6       1.4
    TCP-FTPD         40373      0.0        14   674      0.1       0.0       1.4
    TCP-WWW    31657473924   7370.8         4   401  32146.8       0.7       0.9
    TCP-SMTP         55914      0.0         3   255      0.0       0.2       1.6
    TCP-X         90872816     21.1         2   119     60.3       0.9       2.6
    TCP-BGP           7426      0.0         1    51      0.0       0.0       0.3
    TCP-NNTP         10494      0.0         1    49      0.0       0.0       0.4
    TCP-Frag            12      0.0         8  1480      0.0       0.0       0.8
    TCP-other  40417291290   9410.3         4   290  37753.5       0.3       2.1
    UDP-DNS      101696764     23.6         2    77     68.5       0.6       3.6
    UDP-NTP       13067239      3.0         1    78      3.1       0.0       5.0
    UDP-TFTP        674721      0.1         6    86      1.0       3.5       3.8
    UDP-Frag        489782      0.1       706  1424     80.5       1.5       1.8
    UDP-other  46275723602  10774.4        22    82 243252.3       0.8       0.5
    ICMP         767922077    178.7         5   283    988.4       1.2       2.5
    GRE           74492207     17.3        15   114    271.3       2.3       0.2
    IP-other           701      0.0         1    21      0.0       0.1       4.2
    Total:     120704831150  28103.8        11   141 316870.2       0.6       1.2
    SrcIf         SrcIPaddress    DstIf         DstIPaddress    Pr SrcP DstP  Pkts
    Gi0/0         10.136.89.1     Se1/0*        192.168.87.156  01 0000 0800     5
    Gi0/0         10.136.89.1     Se1/0         192.168.87.156  01 0000 0800     5
    Se1/0         192.168.67.176  Gi0/0*        10.136.89.1     01 0000 0000     5
    Se1/0         192.168.67.16  Gi0/0         10.136.89.1     01 0000 0000     5

    Hi,
    To see QoS information you need to use this command : show ip cache verbose flow.
    The asterisk signals you it is an egress flow.
    Regards
    Alain
    Don't forget to rate helpful posts.

  • Purge Cache in OBIEE 10g using IBOT

    Hi All,
    I follwed the below steps to purge cache.
    Created below java script.
    var nqCmd = “D:\\OracleBI\\server\\Bin\\nqcmd.exe”;
    var dsn = “AnalyticsWeb”;
    var user = “Administrator”;
    var pswd = “SADMIN”;
    var tempInFileName = “D:\\SQL.txt”;
    var tempOutFileName = “D:\\Output.txt”;
    var wshShell = new ActiveXObject(“WScript.Shell”);
    var dosCmd = nqCmd + ” -d \”" + dsn + “\” -u \”" + user+ “\” -p \”" + pswd + “\” -s \”" + tempInFileName + “\”" +” -o \”" + tempOutFileName + “\”";
    try
    wshShell.Run(dosCmd, 0, true);
    catch(e)
    throw e;
    2. created a file SQL.txt in D drive with contents.
    {Call SAPurgeAllCache()};
    3. created an IBOT with advance tab:
    using custom script.
    I run the ibot imideately. but still my cache is not purging.
    If i m missing any steps.?

    Hi,
    Please copy the below script and save it c drive location.
    var nqCmd = "C:\\OracleBI\\server\\Bin\\nqcmd.exe";
    var dsn = "AnalyticsWeb";
    var user = "Administrator";
    var pswd = "Administrator";
    var tempInFileName = "C:\\SQL.txt";
    var tempOutFileName = "C:\\Output.txt";
    var wshShell = new ActiveXObject("WScript.Shell");
    var dosCmd = nqCmd + " -d \"" + dsn + "\" -u \"" + user + "\" -p \"" + pswd + "\" -s \"" + tempInFileName + "\"" +" -o \"" + tempOutFileName + "\"";
    try
    wshShell.Run(dosCmd,0,true);
    catch(e)
    throw e;
    Note: While save this file plz give name like purge.js then it will store js format then create ibot and go to advance tab --> select Custom Script --> give name like purge.js then run the ibot .
    Follow the below steps.
    1. create one note and put the query inside the note pad like below and save file name is SQL.txt.
    {Call SAPurgeAllCache()};
    Save this file is C drive location.
    It will purge all the cache.
    Hope this help's
    Thanks
    Satya

  • Can we purge cache Via nqcmd and ODBC functions?

    Hi All,
    Can we purge cache Via nqcmd and ODBC functions?
    Is this possible if YES then how to go about it?
    Regards,
    Apoorv

    ODBC-extension functions for purging cache:
    http://download.oracle.com/docs/cd/E12103_01/books/admintool/admintool_QueryCaching6.html
    Regards
    Goran
    http://108obiee.blogspot.com

  • PS6: get message, purge cache in preference while using Bridge, everything freezes.

    message says: please try purging the central Cache preference to correct situation. This comes up in Bridge.
    I tried the purge, but nothing happens, Bridge freezes, and I can't exit out.

    Restart Bridge holding down Ctrl (win) or Cmd (mac) and choose reset preferences and purge cache.
    If that doesn't work, try looking through this other thread: Cache issue with CS6 Bridge

  • Purge Cache Error in OBIEE 11g (11.1.1.5.0) in Linux Env.

    Hi all,
    I following the following blog to purge cache in Linux.
    http://shivabizint.wordpress.com/2010/12/22/purge-bi-server-cache-in-obiee11g/
    When I excute I get the following error message. Can someone help me to fix this issue? Thanks
              Oracle BI ODBC Client
              Copyright (c) 1997-2011 Oracle Corporation, All rights reserved
    [0][State: IM002] [DataDirect][ODBC lib] System information file not found. Please check the ODBCINI environment variable.
    Connect open failed
    Connection open failed:
    [0][State: IM002] [DataDirect][ODBC lib] System information file not found. Please check the ODBCINI environment variable.
    Connection open failed

    I have exported ODBC path manually.
    export ODBCINI=$ORACLE_INSTANCE/bifoundation/OracleBIApplication/$ORACLE_BI_APPLICATION/setup/odbc.iniAnd then executed the nqcmd command. Now I am getting the different error.
               Oracle BI ODBC Client
               Copyright (c) 1997-2011 Oracle Corporation, All rights reserved
    Initialize client environment failed, possibly caused by incomplete installation
    [nQSError: 47001] Invalid Oracle BI Bin directory:
    /oracle/home/bifoundation/server/bin.
    Initialize client environment failed, possibly caused by incomplete installation
    [nQSError: 47001] Invalid Oracle BI Bin directory:
    /oracle/home/bifoundation/server/bin.
    [0][State: IM004] [DataDirect][ODBC lib] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed Connect open failed

  • Repeated Purge Cache error

    Every time I open Bridge I get an error that says:
    Bridge encountered a problem and is unable to read the cache. Please try purging the central cache in Cache Preferences to correct the situation.
    I have followed this direction several times and I still get the error every time. I've seen that several others have had this problem too, but the most recent set of directions on how to fix it was written a year ago for an OS that is three generations behind mine. Anyone know how to fix this for an iMac running 10.9.3?

    I have exported ODBC path manually.
    export ODBCINI=$ORACLE_INSTANCE/bifoundation/OracleBIApplication/$ORACLE_BI_APPLICATION/setup/odbc.iniAnd then executed the nqcmd command. Now I am getting the different error.
               Oracle BI ODBC Client
               Copyright (c) 1997-2011 Oracle Corporation, All rights reserved
    Initialize client environment failed, possibly caused by incomplete installation
    [nQSError: 47001] Invalid Oracle BI Bin directory:
    /oracle/home/bifoundation/server/bin.
    Initialize client environment failed, possibly caused by incomplete installation
    [nQSError: 47001] Invalid Oracle BI Bin directory:
    /oracle/home/bifoundation/server/bin.
    [0][State: IM004] [DataDirect][ODBC lib] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed Connect open failed

  • Purge Cache by user

    Is there a command available to purge cache by user? something like "SAPurgeCacheByUser"
    In the documentation the following comands are available for purging the cache
    1. SAPurgeCacheByQuery
    2. SAPurgeCacheByTable
    3. SAPurgeAllCache
    4. SAPurgeCacheByDatabase
    The cache entries can be viewed by user in the cache Manager from Adminisdtrator tool... I wonder why there is no command available to do the same from the scripts...
    Currently I have setup the purge at the physical table level using the UET table (Event Polling table) that gets inserted with entries based on ETL jobs.
    We have requirements to purge cache entries for specific requests (that take lot of time to run) monthly, and still continue to clear cache generated from adhoc analysis requests on a daily basis...
    I seems like I'm left with only one appraoch to clear the cache using "SAPurgeCacheByQuery" by generating scripts that will capture the queries for which the cache needs to be purged...
    If anyone has an alternative (easier) method... please suggest..
    Thanks
    Sundar

    Okay, let me try to explain what I'm looking for...
    Current setup...
    We are purging the entire cache daily at a physical table level using the Event Poll table that is setup to get inserted with physical table names based on the ETL routines. If the Dim or Fact is inserted/updated by the daily loads then I insert a row into the event polling "UET" table with the physical table name of the dim or fact. OBIEE server is set to poll the UET every hour and when it finds an entry for a physical table, it clears all the caches associated with the physical table.
    I'm looking for....
    I have some fact tables that are very large and few queries to report at monthly or yearly level are not performaning well, so I'm looking for ways to retain the cache for specific requests which does not need the incremental daily changes to the facts/dims. Rest of the cache entries created by adhoc quering through answers can continue to be purged on a daily basis.
    To be able to achive this flexibility, I need to do the following
    1. Remove the cache purging based on physical table that is setup now based on UET table polling from OBIEE server...
    2. Identify those requests that need to be retained for a month or a week (typically these are used in dashboards and some monthly or weekly runs identified by users) These reports need not change until the next month or week... even though the fact and dims are loaded on a daily basis...
    3. Purge all the cache entries except for those request that are identified as weekly or monthly refresh rates...
    I was thinking that if I schedule and run those monthly or weekly request for seeding the cache with Administrator login then all I have to do is purge rest of the cache entries that are run by Non Administrators....
    Ofcourse this is not a complete solution as I need to be able to differntiate between a weekly and monthly requests...
    Hope this explaination helps, if not, let me know, I can try to provide more details....
    I appreciate you taking time to understand the question and try to help...
    Thanks
    Sundar

  • New update 8.7.1 CS6 ACR not working---(I own hard copy not a Trial or part of CC), I purged cache in bridge, and photoshop. NO photos will open when I double clik, or  will not open again in ACR alone.  When I double clik on raw file I get Sign In requir

    I purged cache in bridge, and photoshop. NO photos will open when I double clik, or  will not open again in ACR alone.  When I double clik on raw file I get Sign In required Notice--We will now register your TRIAL to your Adobe ID-------I am alread a SUBSCRIBER-------------Yes I get this same issue in Creative Cloud and same issue. error: Camera Raw editing is not enabled-----Camera Raw editing requires that a qualifying product has been launched at least once to enable this feature. These errors are happening inside both CS6 Bridge and CCphotoshop Bridge------NOTE----I am ALREADY signed into Creative Cloud and still get those message errors.........Need to fix ASAP.

    When you sign in to Adobe.com with the user ID and Password your using in the Creative Cloud and Photoshop does this link  https://www.adobe.com/account/my-products-services.html show that the account has a subscription?
    Also this is a user forum not a Adobe Customer Services web site.

  • Bridge CC is asking my to 'purge cache'. When I do this doesn't work and freezes my mac. Bridge is unable to work at all. Please help?

    When I start up Bridge CC I get a error message instructing me to purge cache in preferences which I do but it doesn't work and freezes my mac. I cannot curretnly use Bridge CC. PLease help as this is costing me time and money - thank you in advance....

    Hold down the Option key as you launch Bridge, keep it down until you see a dialog box, then click all three options in the re-set box that comes up.
    If you don't see that re-set box, you're doing it wrong, i.e., you're not holding the Option key down fast enough.

  • Bridge CC asks to Purge Cache but freezes when I try to do so

    Am using Bridge on a MAC. Each time I open Bridge an error message comes up requesting to Purge Cache via preferences - But when I try to do this, it freezes.
    In fact, even before trying to purge cache, if I try navigating to another folder on Bridge it also freezes.
    Have trashed Bridge, downloaded it again and reinstalled - problem continues.
    What should I do?

    Yes that worked - THANKS.
    I created a new cache folder and deleted the other - and now it works!
    I had to show hidden files via terminal to delete the previous cache folder.

  • Unable to delete files from encrypted external SD Card using File Commander

    I've run into some trouble trying to delete the directory com.spotify.music from my external SD Card (encrypted) after a hard reboot using the reset button next to the sim card.
    I need to do this for the Spotify app to work (FC on starting it) and I'm currently unable to delete the folder and its contents from Sony provided file explorer(FC File Commander).
    Is there a way to delete this app from adb or other command line tool or how should I go about this? Developer options are enabled because I'm learning to develop apps. Not particularly keen on rooting or otherwise format my SD Card but it's an option if there are no other ways to do it. 
    I can see the contents of my card using File Commander just fine. Spotify app is uninstalled, I tried remove cache and data before uninstall also.

    Thommo wrote:
    Are you able to delete files via your Pc or are you able to remove the card from your phone and connect it to a Pc for file deletion - There is a free program called Unlocker currently on version 1.9.2 which is excellent at deleting files that don't want to be deleted - You would install the program then right click the file and choose Unlocker and then when the program starts choose delete
    I guess he will not be able to move the SD card to the computer since it's encrypted and is working only with that particular device, but he should be able to access it via PC.
    If you can try to uninstall Spotify from your phone. I assume Spotify is not working due to some rubbish inside it's directory, but on the other hand you can't delete the folder because it may be used by Spotify. If you uninstall app folder may be unlocked.
    Best regards,
    Sergio PL
    Xperia Z1 / Nexus 7 (2012)

  • How to find memory taken by a process using top command

    I wanted to know how to find the memory taken by a process using top command. The output of the top command is as follows as an example:
    Mem: 13333364k total, 13238904k used, 94460k free, 623640k buffers
    Swap: 25165816k total, 112k used, 25165704k free, 4572904k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    16514 applmgr 25 0 2197m 1.7g 10m S 0.3 13.0 15:20.67 java
    30692 crestelo 22 0 2901m 1.4g 9284 S 0.0 11.0 3:03.68 java
    30431 crestelo 25 0 2043m 1.4g 161m S 50.9 11.0 79:02.73 java
    30869 crestelo 25 0 2860m 1.2g 9292 S 0.0 9.6 7:11.18 java
    16655 applmgr 23 0 1934m 1.1g 10m S 0.3 8.9 2:17.49 java
    16319 crestelo 19 0 1541m 299m 44m S 0.0 2.3 2:52.11 java
    I hope, my question is clear as to how to find the memory taken by a process using top command.
    Please revert with the reply to my query.
    Regards

    Have you tried "man top" to see the documentation for the top command?
    How about the following: http://lmgtfy.com/?q=show+memory+with+top+command
    The 5th column (VIRT) shows the amount of RAM + swap
    The 6th column (RES) shows RAM
    The 7th column (SHR) shows memory shared between processes

  • How to find memory taken by Oracle processes using top command

    I wanted to know how to find the memory taken by Oracle processes using top command. The output of the top command is as follows as an example:
    Mem: 16436072k total, 16215708k used, 220364k free, 395128k buffers
    Swap: 25165816k total, 1168288k used, 23997528k free, 13366520k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    27281 oraprod 15 0 6705m 1.3g 1.3g S 0.0 8.6 61:44.71 oracle
    27383 oraprod 15 0 6702m 1.2g 1.2g S 0.0 7.7 2:22.75 oracle
    5199 oraprod 16 0 6745m 1.1g 1.0g S 0.0 6.8 2:51.23 oracle
    The different Oracle processes could be Oracle database, Oracle listener, Oracle enterprise manager etc.
    I hope, my question is clear as to how to find the memory taken by a process using top command.
    Please revert with the reply to my query.
    Regards

    a short and correct answer would be: you can't.
    As oracle uses a fair amount of shared memory, and that shared memory is attached to most of the oracle processes, the same memory appears a number of times.
    you should rephrase your question / what is it you want to achieve?
    you can ask oracle how much memory is assigned to it, v$sga, v$sgastat, v$process (for PGA). moreover, you as DBA are the one who configured that.
    you can look at major an minor faults per process to see what is causing the paging (if you have any).
    you can also look at the /proc/pid/statm pseudofilesystem for your oracle pids.

  • Purge Cache

    Every time I start up Adobe Bridge, I get an error message which reads, "Bridge encountered a problem and its unable to read the cache. Please try purging the central cache in Cache Preferences to correct."
    I then go into Adobe Bridge Preferences > Cache > Manage > Purge Cache. After clicking on Purge Cache, I continue to have the same error message after restarting my computer and opening up Adobe Bridge. In addition,
    my thumbnails continue to load up slowly.
    What do you think the problem is?

    What do you think the problem is?
    A corrupted cache folder. Quickest solution is to Quit Bridge and delete the content of the whole Bridge Cache folder manual.
    Not clear what system you are using neither what version of Bridge and OS. I only know the path for a Mac, Windows might be similar.
    Go to the user library (per MacOsX 7 hidden by default, in Finder use menu Go with option to reveal).
    Here is the path:
    User (your username)/Library/Caches/Adobe/BridgeCSxx/ - Inhere are two files, a plug in cache and a folder called cache.
    Drag both items outside the library, preferable to the trash.
    Restart Bridge (both deleted items will be recreated and fresh but empty) and try again.

Maybe you are looking for

  • Running rcu-tasks Ant file results in errors

    Hi all, When installing BAM 11g (tp4 download), the rcu-tasks Ant script fails. The error is: sql-based-cacheinit:      [copy] Copying 1 file to D:\ora\bam1111\rcu\integration\bam\sql       [sql] 11-mei-2008 16:29:10 oracle.jdbc.driver.OracleDriver r

  • Issues w/ JDK - j2sdk-1_4_2_12-windows-i586-p

    Hi, For some time, I'd been running with the following JDK on my box - j2sdk1.4.0. I also use j2sdk1.4.2_07 on our production box, with no ramifications. However, I downloaded & installed the above JDK - j2sdk-1_4_2_12 - thinking I needed to update m

  • The "send" button in the mail programm is gone ... how can I make it visible again?

    For a couple of days my "send" button in the mail programm is gone and I can´t send emails due to this failure. I am pretty sure my 2-year old daughter hit some button by accident and the "send" button is gone since then. She discovered a couple of f

  • Differences between mcp and mcp t sound

    this is all sound sound info direct from a man at nvidia who knows PLEASE NOTE ONLY MCP2-T BOARD MSI DO AT THE MOMMENT IS THE K7N2G-ILSR The MCP has no hardware support for audio of any kind, period. Windows and the CPU do all the audio work on that

  • Post-install, cannot update pacman, failed to commit transaction

    Hello, Arch install in a virtual box (Oracle VB). Post-install, synced packages OK by issuing pacman -Syy. Want to install sudo, issue pacman -S sudo, below is what I get. eth0 interface OK Both core and netinstall images have been tested, same probl